@everymatrix/general-player-register-form-step2-nd 1.86.2 → 1.86.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GeneralPlayerRegisterFormStep2Nd-BMcCaqB9.cjs +17 -0
- package/components/{GeneralPlayerRegisterFormStep2Nd-DE6GfCHZ.js → GeneralPlayerRegisterFormStep2Nd-DnPA6i8H.js} +1720 -1722
- package/components/{GeneralPlayerRegisterFormStep2Nd-CkIpd2e3.js → GeneralPlayerRegisterFormStep2Nd-Uj7AbiZA.js} +1009 -1011
- package/es2015/general-player-register-form-step2-nd.cjs +1 -1
- package/es2015/general-player-register-form-step2-nd.js +1 -1
- package/esnext/general-player-register-form-step2-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerRegisterFormStep2Nd-BEEPokcC.cjs +0 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";var Ba=Object.defineProperty,Ma=Object.defineProperties;var Oa=Object.getOwnPropertyDescriptors;var pr=Object.getOwnPropertySymbols;var Da=Object.prototype.hasOwnProperty,Na=Object.prototype.propertyIsEnumerable;var Ut=(e,t,r)=>t in e?Ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,br=(e,t)=>{for(var r in t||(t={}))Da.call(t,r)&&Ut(e,r,t[r]);if(pr)for(var r of pr(t))Na.call(t,r)&&Ut(e,r,t[r]);return e},yr=(e,t)=>Ma(e,Oa(t));var Pe=(e,t,r)=>(Ut(e,typeof t!="symbol"?t+"":t,r),r);var wr=(e,t,r)=>new Promise((a,n)=>{var o=u=>{try{s(r.next(u))}catch(l){n(l)}},i=u=>{try{s(r.throw(u))}catch(l){n(l)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(o,i);s((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function xe(){}function mn(e){return e()}function _r(){return Object.create(null)}function Ce(e){e.forEach(mn)}function ar(e){return typeof e=="function"}function gn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Sa(e){return Object.keys(e).length===0}function vn(e,...t){if(e==null){for(const a of t)a(void 0);return xe}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Ia(e,t,r){e.$$.on_destroy.push(vn(t,r))}function g(e,t){e.appendChild(t)}function Ha(e,t,r){const a=La(e);if(!a.getElementById(t)){const n=T("style");n.id=t,n.textContent=r,Ua(a,n)}}function La(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ua(e,t){return g(e.head||e,t),t.sheet}function ve(e,t,r){e.insertBefore(t,r||null)}function ce(e){e.parentNode&&e.parentNode.removeChild(e)}function Pt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function T(e){return document.createElement(e)}function wt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function I(e){return document.createTextNode(e)}function ae(){return I(" ")}function pn(){return I("")}function ee(e,t,r,a){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r,a)}function E(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Aa(e){return Array.from(e.childNodes)}function ie(e,t){t=""+t,e.data!==t&&(e.data=t)}function be(e,t){e.value=t==null?"":t}function Oe(e,t,r){for(let a=0;a<e.options.length;a+=1){const n=e.options[a];if(n.__value===t){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function lt(e){const t=e.querySelector(":checked");return t&&t.__value}function ka(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let mt;function dt(e){mt=e}function Fa(){if(!mt)throw new Error("Function called outside component initialization");return mt}function Ra(e){Fa().$$.on_mount.push(e)}const Ve=[],Wt=[];let ze=[];const Tr=[],Ga=Promise.resolve();let qt=!1;function $a(){qt||(qt=!0,Ga.then(Me))}function Re(e){ze.push(e)}const At=new Set;let We=0;function Me(){if(We!==0)return;const e=mt;do{try{for(;We<Ve.length;){const t=Ve[We];We++,dt(t),Ya(t.$$)}}catch(t){throw Ve.length=0,We=0,t}for(dt(null),Ve.length=0,We=0;Wt.length;)Wt.pop()();for(let t=0;t<ze.length;t+=1){const r=ze[t];At.has(r)||(At.add(r),r())}ze.length=0}while(Ve.length);for(;Tr.length;)Tr.pop()();qt=!1,At.clear(),dt(e)}function Ya(e){if(e.fragment!==null){e.update(),Ce(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Re)}}function ja(e){const t=[],r=[];ze.forEach(a=>e.indexOf(a)===-1?t.push(a):r.push(a)),r.forEach(a=>a()),ze=t}const Wa=new Set;function qa(e,t){e&&e.i&&(Wa.delete(e),e.i(t))}function ke(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Xa(e,t,r){const{fragment:a,after_update:n}=e.$$;a&&a.m(t,r),Re(()=>{const o=e.$$.on_mount.map(mn).filter(ar);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ce(o),e.$$.on_mount=[]}),n.forEach(Re)}function Va(e,t){const r=e.$$;r.fragment!==null&&(ja(r.after_update),Ce(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function za(e,t){e.$$.dirty[0]===-1&&(Ve.push(e),$a(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Qa(e,t,r,a,n,o,i=null,s=[-1]){const u=mt;dt(e);const l=e.$$={fragment:null,ctx:[],props:o,update:xe,not_equal:n,bound:_r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:_r(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};i&&i(l.root);let h=!1;if(l.ctx=r?r(e,t.props||{},(d,m,...c)=>{const f=c.length?c[0]:m;return l.ctx&&n(l.ctx[d],l.ctx[d]=f)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](f),h&&za(e,d)),m}):[],l.update(),h=!0,Ce(l.before_update),l.fragment=a?a(l.ctx):!1,t.target){if(t.hydrate){const d=Aa(t.target);l.fragment&&l.fragment.l(d),d.forEach(ce)}else l.fragment&&l.fragment.c();t.intro&&qa(e.$$.fragment),Xa(e,t.target,t.anchor),Me()}dt(u)}let bn;typeof HTMLElement=="function"&&(bn=class extends HTMLElement{constructor(t,r,a){super();Pe(this,"$$ctor");Pe(this,"$$s");Pe(this,"$$c");Pe(this,"$$cn",!1);Pe(this,"$$d",{});Pe(this,"$$r",!1);Pe(this,"$$p_d",{});Pe(this,"$$l",{});Pe(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,a&&this.attachShadow({mode:"open"})}addEventListener(t,r,a){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,a)}removeEventListener(t,r,a){if(super.removeEventListener(t,r,a),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return wr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let i;return{c:function(){i=T("slot"),o!=="default"&&E(i,"name",o)},m:function(l,h){ve(l,i,h)},d:function(l){l&&ce(i)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},a=ka(this);for(const o of this.$$s)o in a&&(r[o]=[t(o)]);for(const o of this.attributes){const i=this.$$g_p(o.name);i in this.$$d||(this.$$d[i]=Tt(i,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yr(br({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const i=Tt(o,this.$$d[o],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,i)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const o in this.$$l)for(const i of this.$$l[o]){const s=this.$$c.$on(o,i);this.$$l_u.set(i,s)}this.$$l={}}})}attributeChangedCallback(t,r,a){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Tt(t,a,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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 Tt(e,t,r,a){var o;const n=(o=r[e])==null?void 0:o.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!a||!r[e])return t;if(a==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Za(e,t,r,a,n,o){let i=class extends bn{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(i.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(u){var l;u=Tt(s,u,t),this.$$d[s]=u,(l=this.$$c)==null||l.$set({[s]:u})}})}),a.forEach(s=>{Object.defineProperty(i.prototype,s,{get(){var u;return(u=this.$$c)==null?void 0:u[s]}})}),e.element=i,i}class Ja{constructor(){Pe(this,"$$");Pe(this,"$$set")}$destroy(){Va(this,1),this.$destroy=xe}$on(t,r){if(!ar(r))return xe;const a=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return a.push(r),()=>{const n=a.indexOf(r);n!==-1&&a.splice(n,1)}}$set(t){this.$$set&&!Sa(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ka="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ka);function Ie(e){"@babel/helpers - typeof";return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(e)}function _e(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function re(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function se(e){re(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ie(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ei(e,t){re(2,arguments);var r=se(e),a=_e(t);if(isNaN(a))return new Date(NaN);if(!a)return r;var n=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+a+1,0);var i=o.getDate();return n>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}function ti(e,t){re(2,arguments);var r=se(e).getTime(),a=_e(t);return new Date(r+a)}var ri={};function tt(){return ri}function yn(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ni(e,t){re(2,arguments);var r=_e(t);return ei(e,r*12)}function Er(e,t){re(2,arguments);var r=se(e),a=se(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}var ai=6e4,ii=36e5,oi=1e3;function si(e){return re(1,arguments),e instanceof Date||Ie(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ui(e){if(re(1,arguments),!si(e)&&typeof e!="number")return!1;var t=se(e);return!isNaN(Number(t))}function li(e,t){re(2,arguments);var r=se(e),a=se(t);return r.getFullYear()-a.getFullYear()}function ci(e,t){re(2,arguments);var r=se(e),a=se(t),n=Er(r,a),o=Math.abs(li(r,a));r.setFullYear(1584),a.setFullYear(1584);var i=Er(r,a)===-n,s=n*(o-Number(i));return s===0?0:s}function wn(e,t){re(2,arguments);var r=_e(t);return ti(e,-r)}var hi=864e5;function fi(e){re(1,arguments);var t=se(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),n=r-a;return Math.floor(n/hi)+1}function Qe(e){re(1,arguments);var t=1,r=se(e),a=r.getUTCDay(),n=(a<t?7:0)+a-t;return r.setUTCDate(r.getUTCDate()-n),r.setUTCHours(0,0,0,0),r}function _n(e){re(1,arguments);var t=se(e),r=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var n=Qe(a),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var i=Qe(o);return t.getTime()>=n.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function di(e){re(1,arguments);var t=_n(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var a=Qe(r);return a}var mi=6048e5;function Tn(e){re(1,arguments);var t=se(e),r=Qe(t).getTime()-di(t).getTime();return Math.round(r/mi)+1}function Ye(e,t){var r,a,n,o,i,s,u,l;re(1,arguments);var h=tt(),d=_e((r=(a=(n=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:h.weekStartsOn)!==null&&a!==void 0?a:(u=h.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=se(e),c=m.getUTCDay(),f=(c<d?7:0)+c-d;return m.setUTCDate(m.getUTCDate()-f),m.setUTCHours(0,0,0,0),m}function ir(e,t){var r,a,n,o,i,s,u,l;re(1,arguments);var h=se(e),d=h.getUTCFullYear(),m=tt(),c=_e((r=(a=(n=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&a!==void 0?a:(u=m.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,c),f.setUTCHours(0,0,0,0);var v=Ye(f,t),x=new Date(0);x.setUTCFullYear(d,0,c),x.setUTCHours(0,0,0,0);var B=Ye(x,t);return h.getTime()>=v.getTime()?d+1:h.getTime()>=B.getTime()?d:d-1}function gi(e,t){var r,a,n,o,i,s,u,l;re(1,arguments);var h=tt(),d=_e((r=(a=(n=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:h.firstWeekContainsDate)!==null&&a!==void 0?a:(u=h.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),m=ir(e,t),c=new Date(0);c.setUTCFullYear(m,0,d),c.setUTCHours(0,0,0,0);var f=Ye(c,t);return f}var vi=6048e5;function En(e,t){re(1,arguments);var r=se(e),a=Ye(r,t).getTime()-gi(r,t).getTime();return Math.round(a/vi)+1}function z(e,t){for(var r=e<0?"-":"",a=Math.abs(e).toString();a.length<t;)a="0"+a;return r+a}var Ae={y:function(t,r){var a=t.getUTCFullYear(),n=a>0?a:1-a;return z(r==="yy"?n%100:n,r.length)},M:function(t,r){var a=t.getUTCMonth();return r==="M"?String(a+1):z(a+1,2)},d:function(t,r){return z(t.getUTCDate(),r.length)},a:function(t,r){var a=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,r){return z(t.getUTCHours()%12||12,r.length)},H:function(t,r){return z(t.getUTCHours(),r.length)},m:function(t,r){return z(t.getUTCMinutes(),r.length)},s:function(t,r){return z(t.getUTCSeconds(),r.length)},S:function(t,r){var a=r.length,n=t.getUTCMilliseconds(),o=Math.floor(n*Math.pow(10,a-3));return z(o,r.length)}},qe={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pi={G:function(t,r,a){var n=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(t,r,a){if(r==="yo"){var n=t.getUTCFullYear(),o=n>0?n:1-n;return a.ordinalNumber(o,{unit:"year"})}return Ae.y(t,r)},Y:function(t,r,a,n){var o=ir(t,n),i=o>0?o:1-o;if(r==="YY"){var s=i%100;return z(s,2)}return r==="Yo"?a.ordinalNumber(i,{unit:"year"}):z(i,r.length)},R:function(t,r){var a=_n(t);return z(a,r.length)},u:function(t,r){var a=t.getUTCFullYear();return z(a,r.length)},Q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return z(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return z(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,a){var n=t.getUTCMonth();switch(r){case"M":case"MM":return Ae.M(t,r);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,a){var n=t.getUTCMonth();switch(r){case"L":return String(n+1);case"LL":return z(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,a,n){var o=En(t,n);return r==="wo"?a.ordinalNumber(o,{unit:"week"}):z(o,r.length)},I:function(t,r,a){var n=Tn(t);return r==="Io"?a.ordinalNumber(n,{unit:"week"}):z(n,r.length)},d:function(t,r,a){return r==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ae.d(t,r)},D:function(t,r,a){var n=fi(t);return r==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):z(n,r.length)},E:function(t,r,a){var n=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,a,n){var o=t.getUTCDay(),i=(o-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return z(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,a,n){var o=t.getUTCDay(),i=(o-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return z(i,r.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,a){var n=t.getUTCDay(),o=n===0?7:n;switch(r){case"i":return String(o);case"ii":return z(o,r.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,a){var n=t.getUTCHours(),o=n/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,a){var n=t.getUTCHours(),o;switch(n===12?o=qe.noon:n===0?o=qe.midnight:o=n/12>=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,a){var n=t.getUTCHours(),o;switch(n>=17?o=qe.evening:n>=12?o=qe.afternoon:n>=4?o=qe.morning:o=qe.night,r){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,a){if(r==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return Ae.h(t,r)},H:function(t,r,a){return r==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ae.H(t,r)},K:function(t,r,a){var n=t.getUTCHours()%12;return r==="Ko"?a.ordinalNumber(n,{unit:"hour"}):z(n,r.length)},k:function(t,r,a){var n=t.getUTCHours();return n===0&&(n=24),r==="ko"?a.ordinalNumber(n,{unit:"hour"}):z(n,r.length)},m:function(t,r,a){return r==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Ae.m(t,r)},s:function(t,r,a){return r==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Ae.s(t,r)},S:function(t,r){return Ae.S(t,r)},X:function(t,r,a,n){var o=n._originalDate||t,i=o.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return Pr(i);case"XXXX":case"XX":return $e(i);case"XXXXX":case"XXX":default:return $e(i,":")}},x:function(t,r,a,n){var o=n._originalDate||t,i=o.getTimezoneOffset();switch(r){case"x":return Pr(i);case"xxxx":case"xx":return $e(i);case"xxxxx":case"xxx":default:return $e(i,":")}},O:function(t,r,a,n){var o=n._originalDate||t,i=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+xr(i,":");case"OOOO":default:return"GMT"+$e(i,":")}},z:function(t,r,a,n){var o=n._originalDate||t,i=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+xr(i,":");case"zzzz":default:return"GMT"+$e(i,":")}},t:function(t,r,a,n){var o=n._originalDate||t,i=Math.floor(o.getTime()/1e3);return z(i,r.length)},T:function(t,r,a,n){var o=n._originalDate||t,i=o.getTime();return z(i,r.length)}};function xr(e,t){var r=e>0?"-":"+",a=Math.abs(e),n=Math.floor(a/60),o=a%60;if(o===0)return r+String(n);var i=t;return r+String(n)+i+z(o,2)}function Pr(e,t){if(e%60===0){var r=e>0?"-":"+";return r+z(Math.abs(e)/60,2)}return $e(e,t)}function $e(e,t){var r=t||"",a=e>0?"-":"+",n=Math.abs(e),o=z(Math.floor(n/60),2),i=z(n%60,2);return a+o+r+i}var Cr=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},xn=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},bi=function(t,r){var a=t.match(/(P+)(p+)?/)||[],n=a[1],o=a[2];if(!o)return Cr(t,r);var i;switch(n){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",Cr(n,r)).replace("{{time}}",xn(o,r))},Xt={p:xn,P:bi},yi=["D","DD"],wi=["YY","YYYY"];function Pn(e){return yi.indexOf(e)!==-1}function Cn(e){return wi.indexOf(e)!==-1}function Ct(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var _i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ti=function(t,r,a){var n,o=_i[t];return typeof o=="string"?n=o:r===1?n=o.one:n=o.other.replace("{{count}}",r.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function kt(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,a=e.formats[r]||e.formats[e.defaultWidth];return a}}var Ei={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ci={date:kt({formats:Ei,defaultWidth:"full"}),time:kt({formats:xi,defaultWidth:"full"}),dateTime:kt({formats:Pi,defaultWidth:"full"})},Bi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mi=function(t,r,a,n){return Bi[t]};function ct(e){return function(t,r){var a=r!=null&&r.context?String(r.context):"standalone",n;if(a==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):o;n=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return n[l]}}var Oi={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Di={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ni={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Si={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ii={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Li=function(t,r){var a=Number(t),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Ui={ordinalNumber:Li,era:ct({values:Oi,defaultWidth:"wide"}),quarter:ct({values:Di,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ct({values:Ni,defaultWidth:"wide"}),day:ct({values:Si,defaultWidth:"wide"}),dayPeriod:ct({values:Ii,defaultWidth:"wide",formattingValues:Hi,defaultFormattingWidth:"wide"})};function ht(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.width,n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(n);if(!o)return null;var i=o[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?ki(s,function(d){return d.test(i)}):Ai(s,function(d){return d.test(i)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var h=t.slice(i.length);return{value:l,rest:h}}}function Ai(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function ki(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Fi(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var n=a[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;var s=t.slice(n.length);return{value:i,rest:s}}}var Ri=/^(\d+)(th|st|nd|rd)?/i,Gi=/\d+/i,$i={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Yi={any:[/^b/i,/^(a|c)/i]},ji={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wi={any:[/1/i,/2/i,/3/i,/4/i]},qi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Xi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Qi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ji={ordinalNumber:Fi({matchPattern:Ri,parsePattern:Gi,valueCallback:function(t){return parseInt(t,10)}}),era:ht({matchPatterns:$i,defaultMatchWidth:"wide",parsePatterns:Yi,defaultParseWidth:"any"}),quarter:ht({matchPatterns:ji,defaultMatchWidth:"wide",parsePatterns:Wi,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ht({matchPatterns:qi,defaultMatchWidth:"wide",parsePatterns:Xi,defaultParseWidth:"any"}),day:ht({matchPatterns:Vi,defaultMatchWidth:"wide",parsePatterns:zi,defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:Qi,defaultMatchWidth:"any",parsePatterns:Zi,defaultParseWidth:"any"})},Bn={code:"en-US",formatDistance:Ti,formatLong:Ci,formatRelative:Mi,localize:Ui,match:Ji,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ki=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,to=/^'([^]*?)'?$/,ro=/''/g,no=/[a-zA-Z]/;function Br(e,t,r){var a,n,o,i,s,u,l,h,d,m,c,f,v,x;re(2,arguments);var B=String(t),M=tt(),P=(a=(n=void 0)!==null&&n!==void 0?n:M.locale)!==null&&a!==void 0?a:Bn,D=_e((o=(i=(s=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&s!==void 0?s:M.firstWeekContainsDate)!==null&&i!==void 0?i:(l=M.locale)===null||l===void 0||(h=l.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=_e((d=(m=(c=(f=void 0)!==null&&f!==void 0?f:void 0)!==null&&c!==void 0?c:M.weekStartsOn)!==null&&m!==void 0?m:(v=M.locale)===null||v===void 0||(x=v.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&d!==void 0?d:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var Q=se(e);if(!ui(Q))throw new RangeError("Invalid time value");var X=yn(Q),V=wn(Q,X),ye={firstWeekContainsDate:D,weekStartsOn:k,locale:P,_originalDate:Q},he=B.match(eo).map(function(O){var N=O[0];if(N==="p"||N==="P"){var Y=Xt[N];return Y(O,P.formatLong)}return O}).join("").match(Ki).map(function(O){if(O==="''")return"'";var N=O[0];if(N==="'")return ao(O);var Y=pi[N];if(Y)return Cn(O)&&Ct(O,t,String(e)),Pn(O)&&Ct(O,t,String(e)),Y(V,O,P.localize,ye);if(N.match(no))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return O}).join("");return he}function ao(e){var t=e.match(to);return t?t[1].replace(ro,"'"):e}function io(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Mr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function oo(e,t){if(e){if(typeof e=="string")return Mr(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mr(e,t):void 0}}function Or(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=oo(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{i||r.return==null||r.return()}finally{if(s)throw o}}}}function b(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vt(e,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Vt(e,t)}function F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vt(e,t)}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bt(e)}function Mn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Mn=function(){return!!e})()}function so(e,t){if(t&&(Ie(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function R(e){var t=Mn();return function(){var r,a=Bt(e);if(t){var n=Bt(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return so(this,r)}}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(e,t){if(Ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Ie(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function On(e){var t=uo(e,"string");return Ie(t)=="symbol"?t:t+""}function lo(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,On(a.key),a)}}function U(e,t,r){return t&&lo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t,r){return(t=On(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var co=10,Dn=function(){function e(){L(this,e),p(this,"priority",void 0),p(this,"subPriority",0)}return U(e,[{key:"validate",value:function(r,a){return!0}}]),e}(),ho=function(e){F(r,e);var t=R(r);function r(a,n,o,i,s){var u;return L(this,r),u=t.call(this),u.value=a,u.validateValue=n,u.setValue=o,u.priority=i,s&&(u.subPriority=s),u}return U(r,[{key:"validate",value:function(n,o){return this.validateValue(n,this.value,o)}},{key:"set",value:function(n,o,i){return this.setValue(n,o,this.value,i)}}]),r}(Dn),fo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",co),p(b(a),"subPriority",-1),a}return U(r,[{key:"set",value:function(n,o){if(o.timestampIsSet)return n;var i=new Date(0);return i.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),i.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),i}}]),r}(Dn),q=function(){function e(){L(this,e),p(this,"incompatibleTokens",void 0),p(this,"priority",void 0),p(this,"subPriority",void 0)}return U(e,[{key:"run",value:function(r,a,n,o){var i=this.parse(r,a,n,o);return i?{setter:new ho(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(r,a,n){return!0}}]),e}(),mo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",140),p(b(a),"incompatibleTokens",["R","u","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}},{key:"set",value:function(n,o,i){return o.era=i,n.setUTCFullYear(i,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(q),me={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},De={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ge(e,t){return e&&{value:t(e.value),rest:e.rest}}function oe(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Ne(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var a=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:a*(n*ii+o*ai+i*oi),rest:t.slice(r[0].length)}}function Nn(e){return oe(me.anyDigitsSigned,e)}function le(e,t){switch(e){case 1:return oe(me.singleDigit,t);case 2:return oe(me.twoDigits,t);case 3:return oe(me.threeDigits,t);case 4:return oe(me.fourDigits,t);default:return oe(new RegExp("^\\d{1,"+e+"}"),t)}}function Mt(e,t){switch(e){case 1:return oe(me.singleDigitSigned,t);case 2:return oe(me.twoDigitsSigned,t);case 3:return oe(me.threeDigitsSigned,t);case 4:return oe(me.fourDigitsSigned,t);default:return oe(new RegExp("^-?\\d{1,"+e+"}"),t)}}function or(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Sn(e,t){var r=t>0,a=r?t:1-t,n;if(a<=50)n=e||100;else{var o=a+50,i=Math.floor(o/100)*100,s=e>=o%100;n=e+i-(s?100:0)}return r?n:1-n}function In(e){return e%400===0||e%4===0&&e%100!==0}var go=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",130),p(b(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){var s=function(l){return{year:l,isTwoDigitYear:o==="yy"}};switch(o){case"y":return ge(le(4,n),s);case"yo":return ge(i.ordinalNumber(n,{unit:"year"}),s);default:return ge(le(o.length,n),s)}}},{key:"validate",value:function(n,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(n,o,i){var s=n.getUTCFullYear();if(i.isTwoDigitYear){var u=Sn(i.year,s);return n.setUTCFullYear(u,0,1),n.setUTCHours(0,0,0,0),n}var l=!("era"in o)||o.era===1?i.year:1-i.year;return n.setUTCFullYear(l,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(q),vo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",130),p(b(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){var s=function(l){return{year:l,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return ge(le(4,n),s);case"Yo":return ge(i.ordinalNumber(n,{unit:"year"}),s);default:return ge(le(o.length,n),s)}}},{key:"validate",value:function(n,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(n,o,i,s){var u=ir(n,s);if(i.isTwoDigitYear){var l=Sn(i.year,u);return n.setUTCFullYear(l,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),Ye(n,s)}var h=!("era"in o)||o.era===1?i.year:1-i.year;return n.setUTCFullYear(h,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),Ye(n,s)}}]),r}(q),po=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",130),p(b(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o){return Mt(o==="R"?4:o.length,n)}},{key:"set",value:function(n,o,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),Qe(s)}}]),r}(q),bo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",130),p(b(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o){return Mt(o==="u"?4:o.length,n)}},{key:"set",value:function(n,o,i){return n.setUTCFullYear(i,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(q),yo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",120),p(b(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"Q":case"QQ":return le(o.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=1&&o<=4}},{key:"set",value:function(n,o,i){return n.setUTCMonth((i-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(q),wo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",120),p(b(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"q":case"qq":return le(o.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=1&&o<=4}},{key:"set",value:function(n,o,i){return n.setUTCMonth((i-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(q),_o=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),p(b(a),"priority",110),a}return U(r,[{key:"parse",value:function(n,o,i){var s=function(l){return l-1};switch(o){case"M":return ge(oe(me.month,n),s);case"MM":return ge(le(2,n),s);case"Mo":return ge(i.ordinalNumber(n,{unit:"month"}),s);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){return n.setUTCMonth(i,1),n.setUTCHours(0,0,0,0),n}}]),r}(q),To=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",110),p(b(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){var s=function(l){return l-1};switch(o){case"L":return ge(oe(me.month,n),s);case"LL":return ge(le(2,n),s);case"Lo":return ge(i.ordinalNumber(n,{unit:"month"}),s);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){return n.setUTCMonth(i,1),n.setUTCHours(0,0,0,0),n}}]),r}(q);function Eo(e,t,r){re(2,arguments);var a=se(e),n=_e(t),o=En(a,r)-n;return a.setUTCDate(a.getUTCDate()-o*7),a}var xo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",100),p(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"w":return oe(me.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=53}},{key:"set",value:function(n,o,i,s){return Ye(Eo(n,i,s),s)}}]),r}(q);function Po(e,t){re(2,arguments);var r=se(e),a=_e(t),n=Tn(r)-a;return r.setUTCDate(r.getUTCDate()-n*7),r}var Co=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",100),p(b(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"I":return oe(me.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=53}},{key:"set",value:function(n,o,i){return Qe(Po(n,i))}}]),r}(q),Bo=[31,28,31,30,31,30,31,31,30,31,30,31],Mo=[31,29,31,30,31,30,31,31,30,31,30,31],Oo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",90),p(b(a),"subPriority",1),p(b(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"d":return oe(me.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){var i=n.getUTCFullYear(),s=In(i),u=n.getUTCMonth();return s?o>=1&&o<=Mo[u]:o>=1&&o<=Bo[u]}},{key:"set",value:function(n,o,i){return n.setUTCDate(i),n.setUTCHours(0,0,0,0),n}}]),r}(q),Do=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",90),p(b(a),"subpriority",1),p(b(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"D":case"DD":return oe(me.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){var i=n.getUTCFullYear(),s=In(i);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(n,o,i){return n.setUTCMonth(0,i),n.setUTCHours(0,0,0,0),n}}]),r}(q);function sr(e,t,r){var a,n,o,i,s,u,l,h;re(2,arguments);var d=tt(),m=_e((a=(n=(o=(i=r==null?void 0:r.weekStartsOn)!==null&&i!==void 0?i:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(h=l.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&a!==void 0?a:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=se(e),f=_e(t),v=c.getUTCDay(),x=f%7,B=(x+7)%7,M=(B<m?7:0)+f-v;return c.setUTCDate(c.getUTCDate()+M),c}var No=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",90),p(b(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,s){return n=sr(n,i,s),n.setUTCHours(0,0,0,0),n}}]),r}(q),So=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",90),p(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i,s){var u=function(h){var d=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+d};switch(o){case"e":case"ee":return ge(le(o.length,n),u);case"eo":return ge(i.ordinalNumber(n,{unit:"day"}),u);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,s){return n=sr(n,i,s),n.setUTCHours(0,0,0,0),n}}]),r}(q),Io=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",90),p(b(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i,s){var u=function(h){var d=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+d};switch(o){case"c":case"cc":return ge(le(o.length,n),u);case"co":return ge(i.ordinalNumber(n,{unit:"day"}),u);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,s){return n=sr(n,i,s),n.setUTCHours(0,0,0,0),n}}]),r}(q);function Ho(e,t){re(2,arguments);var r=_e(t);r%7===0&&(r=r-7);var a=1,n=se(e),o=n.getUTCDay(),i=r%7,s=(i+7)%7,u=(s<a?7:0)+r-o;return n.setUTCDate(n.getUTCDate()+u),n}var Lo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",90),p(b(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){var s=function(l){return l===0?7:l};switch(o){case"i":case"ii":return le(o.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return ge(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return ge(i.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ge(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return ge(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(n,o){return o>=1&&o<=7}},{key:"set",value:function(n,o,i){return n=Ho(n,i),n.setUTCHours(0,0,0,0),n}}]),r}(q),Uo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",80),p(b(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(or(i),0,0,0),n}}]),r}(q),Ao=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",80),p(b(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(or(i),0,0,0),n}}]),r}(q),ko=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",80),p(b(a),"incompatibleTokens",["a","b","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(or(i),0,0,0),n}}]),r}(q),Fo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",70),p(b(a),"incompatibleTokens",["H","K","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"h":return oe(me.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=12}},{key:"set",value:function(n,o,i){var s=n.getUTCHours()>=12;return s&&i<12?n.setUTCHours(i+12,0,0,0):!s&&i===12?n.setUTCHours(0,0,0,0):n.setUTCHours(i,0,0,0),n}}]),r}(q),Ro=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",70),p(b(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"H":return oe(me.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=23}},{key:"set",value:function(n,o,i){return n.setUTCHours(i,0,0,0),n}}]),r}(q),Go=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",70),p(b(a),"incompatibleTokens",["h","H","k","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"K":return oe(me.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){var s=n.getUTCHours()>=12;return s&&i<12?n.setUTCHours(i+12,0,0,0):n.setUTCHours(i,0,0,0),n}}]),r}(q),$o=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",70),p(b(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"k":return oe(me.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=24}},{key:"set",value:function(n,o,i){var s=i<=24?i%24:i;return n.setUTCHours(s,0,0,0),n}}]),r}(q),Yo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",60),p(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"m":return oe(me.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=59}},{key:"set",value:function(n,o,i){return n.setUTCMinutes(i,0,0),n}}]),r}(q),jo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",50),p(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,o,i){switch(o){case"s":return oe(me.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return le(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=59}},{key:"set",value:function(n,o,i){return n.setUTCSeconds(i,0),n}}]),r}(q),Wo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",30),p(b(a),"incompatibleTokens",["t","T"]),a}return U(r,[{key:"parse",value:function(n,o){var i=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return ge(le(o.length,n),i)}},{key:"set",value:function(n,o,i){return n.setUTCMilliseconds(i),n}}]),r}(q),qo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",10),p(b(a),"incompatibleTokens",["t","T","x"]),a}return U(r,[{key:"parse",value:function(n,o){switch(o){case"X":return Ne(De.basicOptionalMinutes,n);case"XX":return Ne(De.basic,n);case"XXXX":return Ne(De.basicOptionalSeconds,n);case"XXXXX":return Ne(De.extendedOptionalSeconds,n);case"XXX":default:return Ne(De.extended,n)}}},{key:"set",value:function(n,o,i){return o.timestampIsSet?n:new Date(n.getTime()-i)}}]),r}(q),Xo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",10),p(b(a),"incompatibleTokens",["t","T","X"]),a}return U(r,[{key:"parse",value:function(n,o){switch(o){case"x":return Ne(De.basicOptionalMinutes,n);case"xx":return Ne(De.basic,n);case"xxxx":return Ne(De.basicOptionalSeconds,n);case"xxxxx":return Ne(De.extendedOptionalSeconds,n);case"xxx":default:return Ne(De.extended,n)}}},{key:"set",value:function(n,o,i){return o.timestampIsSet?n:new Date(n.getTime()-i)}}]),r}(q),Vo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",40),p(b(a),"incompatibleTokens","*"),a}return U(r,[{key:"parse",value:function(n){return Nn(n)}},{key:"set",value:function(n,o,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),r}(q),zo=function(e){F(r,e);var t=R(r);function r(){var a;L(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),p(b(a),"priority",20),p(b(a),"incompatibleTokens","*"),a}return U(r,[{key:"parse",value:function(n){return Nn(n)}},{key:"set",value:function(n,o,i){return[new Date(i),{timestampIsSet:!0}]}}]),r}(q),Qo={G:new mo,y:new go,Y:new vo,R:new po,u:new bo,Q:new yo,q:new wo,M:new _o,L:new To,w:new xo,I:new Co,d:new Oo,D:new Do,E:new No,e:new So,c:new Io,i:new Lo,a:new Uo,b:new Ao,B:new ko,h:new Fo,H:new Ro,K:new Go,k:new $o,m:new Yo,s:new jo,S:new Wo,X:new qo,x:new Xo,t:new Vo,T:new zo},Zo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ko=/^'([^]*?)'?$/,es=/''/g,ts=/\S/,rs=/[a-zA-Z]/;function ns(e,t,r,a){var n,o,i,s,u,l,h,d,m,c,f,v,x,B;re(3,arguments);var M=String(e),P=String(t),D=tt(),k=(n=(o=void 0)!==null&&o!==void 0?o:D.locale)!==null&&n!==void 0?n:Bn;if(!k.match)throw new RangeError("locale must contain match property");var Q=_e((i=(s=(u=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&u!==void 0?u:D.firstWeekContainsDate)!==null&&s!==void 0?s:(h=D.locale)===null||h===void 0||(d=h.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(Q>=1&&Q<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var X=_e((m=(c=(f=(v=void 0)!==null&&v!==void 0?v:void 0)!==null&&f!==void 0?f:D.weekStartsOn)!==null&&c!==void 0?c:(x=D.locale)===null||x===void 0||(B=x.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&m!==void 0?m:0);if(!(X>=0&&X<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(P==="")return M===""?se(r):new Date(NaN);var V={firstWeekContainsDate:Q,weekStartsOn:X,locale:k},ye=[new fo],he=P.match(Jo).map(function(S){var C=S[0];if(C in Xt){var K=Xt[C];return K(S,k.formatLong)}return S}).join("").match(Zo),O=[],N=Or(he),Y;try{var Z=function(){var C=Y.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&Cn(C)&&Ct(C,P,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Pn(C)&&Ct(C,P,e);var K=C[0],Be=Qo[K];if(Be){var He=Be.incompatibleTokens;if(Array.isArray(He)){var Te=O.find(function(Ge){return He.includes(Ge.token)||Ge.token===K});if(Te)throw new RangeError("The format string mustn't contain `".concat(Te.fullToken,"` and `").concat(C,"` at the same time"))}else if(Be.incompatibleTokens==="*"&&O.length>0)throw new RangeError("The format string mustn't contain `".concat(C,"` and any other token at the same time"));O.push({token:K,fullToken:C});var Le=Be.run(M,C,k.match,V);if(!Le)return{v:new Date(NaN)};ye.push(Le.setter),M=Le.rest}else{if(K.match(rs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+K+"`");if(C==="''"?C="'":K==="'"&&(C=as(C)),M.indexOf(C)===0)M=M.slice(C.length);else return{v:new Date(NaN)}}};for(N.s();!(Y=N.n()).done;){var te=Z();if(Ie(te)==="object")return te.v}}catch(S){N.e(S)}finally{N.f()}if(M.length>0&&ts.test(M))return new Date(NaN);var w=ye.map(function(S){return S.priority}).sort(function(S,C){return C-S}).filter(function(S,C,K){return K.indexOf(S)===C}).map(function(S){return ye.filter(function(C){return C.priority===S}).sort(function(C,K){return K.subPriority-C.subPriority})}).map(function(S){return S[0]}),j=se(r);if(isNaN(j.getTime()))return new Date(NaN);var y=wn(j,yn(j)),G={},J=Or(w),fe;try{for(J.s();!(fe=J.n()).done;){var pe=fe.value;if(!pe.validate(y,V))return new Date(NaN);var ue=pe.set(y,G,V);Array.isArray(ue)?(y=ue[0],io(G,ue[1])):y=ue}}catch(S){J.e(S)}finally{J.f()}return y}function as(e){return e.match(Ko)[1].replace(es,"'")}function Dr(e,t){re(2,arguments);var r=_e(t);return ni(e,-r)}const Xe=[];function is(e,t){return{subscribe:Nt(e,t).subscribe}}function Nt(e,t=xe){let r;const a=new Set;function n(s){if(gn(e,s)&&(e=s,r)){const u=!Xe.length;for(const l of a)l[1](),Xe.push(l,e);if(u){for(let l=0;l<Xe.length;l+=2)Xe[l][0](Xe[l+1]);Xe.length=0}}}function o(s){n(s(e))}function i(s,u=xe){const l=[s,u];return a.add(l),a.size===1&&(r=t(n,o)||xe),s(e),()=>{a.delete(l),a.size===0&&r&&(r(),r=null)}}return{set:n,update:o,subscribe:i}}function rt(e,t,r){const a=!Array.isArray(e),n=a?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return is(r,(i,s)=>{let u=!1;const l=[];let h=0,d=xe;const m=()=>{if(h)return;d();const f=t(a?l[0]:l,i,s);o?i(f):d=ar(f)?f:xe},c=n.map((f,v)=>vn(f,x=>{l[v]=x,h&=~(1<<v),u&&m()},()=>{h|=1<<v}));return u=!0,m(),function(){Ce(c),d(),u=!1}})}function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ss=function(t){return us(t)&&!ls(t)};function us(e){return!!e&&typeof e=="object"}function ls(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||fs(e)}var cs=typeof Symbol=="function"&&Symbol.for,hs=cs?Symbol.for("react.element"):60103;function fs(e){return e.$$typeof===hs}function ds(e){return Array.isArray(e)?[]:{}}function gt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ze(ds(e),e,t):e}function ms(e,t,r){return e.concat(t).map(function(a){return gt(a,r)})}function gs(e,t){if(!t.customMerge)return Ze;var r=t.customMerge(e);return typeof r=="function"?r:Ze}function vs(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Nr(e){return Object.keys(e).concat(vs(e))}function Hn(e,t){try{return t in e}catch(r){return!1}}function ps(e,t){return Hn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function bs(e,t,r){var a={};return r.isMergeableObject(e)&&Nr(e).forEach(function(n){a[n]=gt(e[n],r)}),Nr(t).forEach(function(n){ps(e,n)||(Hn(e,n)&&r.isMergeableObject(t[n])?a[n]=gs(n,r)(e[n],t[n],r):a[n]=gt(t[n],r))}),a}function Ze(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ms,r.isMergeableObject=r.isMergeableObject||ss,r.cloneUnlessOtherwiseSpecified=gt;var a=Array.isArray(t),n=Array.isArray(e),o=a===n;return o?a?r.arrayMerge(e,t,r):bs(e,t,r):gt(t,r)}Ze.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(a,n){return Ze(a,n,r)},{})};var ys=Ze,ws=ys;const _s=os(ws);/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */var zt=function(e,t){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},zt(e,t)};function St(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var $=function(){return $=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},$.apply(this,arguments)};function Ts(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}function Ft(e,t,r){if(arguments.length===2)for(var a=0,n=t.length,o;a<n;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||t)}function Rt(e,t){var r=t&&t.cache?t.cache:Ms,a=t&&t.serializer?t.serializer:Bs,n=t&&t.strategy?t.strategy:xs;return n(e,{cache:r,serializer:a})}function Es(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ln(e,t,r,a){var n=Es(a)?a:r(a),o=t.get(n);return typeof o=="undefined"&&(o=e.call(this,a),t.set(n,o)),o}function Un(e,t,r){var a=Array.prototype.slice.call(arguments,3),n=r(a),o=t.get(n);return typeof o=="undefined"&&(o=e.apply(this,a),t.set(n,o)),o}function ur(e,t,r,a,n){return r.bind(t,e,a,n)}function xs(e,t){var r=e.length===1?Ln:Un;return ur(e,this,r,t.cache.create(),t.serializer)}function Ps(e,t){return ur(e,this,Un,t.cache.create(),t.serializer)}function Cs(e,t){return ur(e,this,Ln,t.cache.create(),t.serializer)}var Bs=function(){return JSON.stringify(arguments)};function lr(){this.cache=Object.create(null)}lr.prototype.get=function(e){return this.cache[e]};lr.prototype.set=function(e,t){this.cache[e]=t};var Ms={create:function(){return new lr}},Gt={variadic:Ps,monadic:Cs},H;(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"})(H||(H={}));var ne;(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"})(ne||(ne={}));var Je;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Je||(Je={}));function Sr(e){return e.type===ne.literal}function Os(e){return e.type===ne.argument}function An(e){return e.type===ne.number}function kn(e){return e.type===ne.date}function Fn(e){return e.type===ne.time}function Rn(e){return e.type===ne.select}function Gn(e){return e.type===ne.plural}function Ds(e){return e.type===ne.pound}function $n(e){return e.type===ne.tag}function Yn(e){return!!(e&&typeof e=="object"&&e.type===Je.number)}function Qt(e){return!!(e&&typeof e=="object"&&e.type===Je.dateTime)}var jn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ns=/(?:[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 Ss(e){var t={};return e.replace(Ns,function(r){var a=r.length;switch(r[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===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"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-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=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-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"][a-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][a-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"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<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 Is=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Hs(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Is).filter(function(m){return m.length>0}),r=[],a=0,n=t;a<n.length;a++){var o=n[a],i=o.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var s=i[0],u=i.slice(1),l=0,h=u;l<h.length;l++){var d=h[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function Ls(e){return e.replace(/^(.*?)-/,"")}var Ir=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Wn=/^(@+)?(\+|#+)?[rs]?$/g,Us=/(\*)(0+)|(#+)(0+)|(0+)/g,qn=/^(0+)$/;function Hr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Wn,function(r,a,n){return typeof n!="string"?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):n==="+"?t.minimumSignificantDigits=a.length:a[0]==="#"?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+(typeof n=="string"?n.length:0)),""}),t}function Xn(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 As(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)),!qn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Lr(e){var t={},r=Xn(e);return r||t}function ks(e){for(var t={},r=0,a=e;r<a.length;r++){var n=a[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.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=Ls(n.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=$($($({},t),{notation:"scientific"}),n.options.reduce(function(u,l){return $($({},u),Lr(l))},{}));continue;case"engineering":t=$($($({},t),{notation:"engineering"}),n.options.reduce(function(u,l){return $($({},u),Lr(l))},{}));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(n.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(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Us,function(u,l,h,d,m,c){if(l)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(c)throw new Error("We currently do not support exact integer digits")}return""});continue}if(qn.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Ir.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ir,function(u,l,h,d,m,c){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&c?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+c.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=n.options[0];o==="w"?t=$($({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=$($({},t),Hr(o)));continue}if(Wn.test(n.stem)){t=$($({},t),Hr(n.stem));continue}var i=Xn(n.stem);i&&(t=$($({},t),i));var s=As(n.stem);s&&(t=$($({},t),s))}return t}var _t={"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 Fs(e,t){for(var r="",a=0;a<e.length;a++){var n=e.charAt(a);if(n==="j"){for(var o=0;a+1<e.length&&e.charAt(a+1)===n;)o++,a++;var i=1+(o&1),s=o<2?1:3+(o>>1),u="a",l=Rs(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;i-- >0;)r=l+r}else n==="J"?r+="H":r+=n}return r}function Rs(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,a;r!=="root"&&(a=e.maximize().region);var n=_t[a||""]||_t[r||""]||_t["".concat(r,"-001")]||_t["001"];return n[0]}var $t,Gs=new RegExp("^".concat(jn.source,"*")),$s=new RegExp("".concat(jn.source,"*$"));function A(e,t){return{start:e,end:t}}var Ys=!!String.prototype.startsWith&&"_a".startsWith("a",1),js=!!String.fromCodePoint,Ws=!!Object.fromEntries,qs=!!String.prototype.codePointAt,Xs=!!String.prototype.trimStart,Vs=!!String.prototype.trimEnd,zs=!!Number.isSafeInteger,Qs=zs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Zt=!0;try{var Zs=zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Zt=(($t=Zs.exec("a"))===null||$t===void 0?void 0:$t[0])==="a"}catch(e){Zt=!1}var Ur=Ys?function(t,r,a){return t.startsWith(r,a)}:function(t,r,a){return t.slice(a,a+r.length)===r},Jt=js?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var a="",n=t.length,o=0,i;n>o;){if(i=t[o++],i>1114111)throw RangeError(i+" is not a valid code point");a+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return a},Ar=Ws?Object.fromEntries:function(t){for(var r={},a=0,n=t;a<n.length;a++){var o=n[a],i=o[0],s=o[1];r[i]=s}return r},Vn=qs?function(t,r){return t.codePointAt(r)}:function(t,r){var a=t.length;if(!(r<0||r>=a)){var n=t.charCodeAt(r),o;return n<55296||n>56319||r+1===a||(o=t.charCodeAt(r+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},Js=Xs?function(t){return t.trimStart()}:function(t){return t.replace(Gs,"")},Ks=Vs?function(t){return t.trimEnd()}:function(t){return t.replace($s,"")};function zn(e,t){return new RegExp(e,t)}var Kt;if(Zt){var kr=zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Kt=function(t,r){var a;kr.lastIndex=r;var n=kr.exec(t);return(a=n[1])!==null&&a!==void 0?a:""}}else Kt=function(t,r){for(var a=[];;){var n=Vn(t,r);if(n===void 0||Qn(n)||nu(n))break;a.push(n),r+=n>=65536?2:1}return Jt.apply(void 0,a)};var eu=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,a){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var i=this.parseArgument(t,a);if(i.err)return i;n.push(i.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),n.push({type:ne.pound,location:A(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(H.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&er(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;n.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;n.push(i.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var a=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ne.literal,value:"<".concat(n,"/>"),location:A(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!er(this.char()))return this.error(H.INVALID_TAG,A(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return n!==l?this.error(H.UNMATCHED_CLOSING_TAG,A(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ne.tag,value:n,children:i,location:A(a,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,A(a,this.clonePosition()))}else return this.error(H.INVALID_TAG,A(a,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ru(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var a=this.clonePosition(),n="";;){var o=this.tryParseQuote(r);if(o){n+=o;continue}var i=this.tryParseUnquoted(t,r);if(i){n+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var u=A(a,this.clonePosition());return{val:{type:ne.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tu(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 a=this.char();if(a===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(a);this.bump()}return Jt.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(r==="plural"||r==="selectordinal")||a===125&&t>0?null:(this.bump(),Jt(a))},e.prototype.parseArgument=function(t,r){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,A(a,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(H.MALFORMED_ARGUMENT,A(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ne.argument,value:n,location:A(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(a,this.clonePosition())):this.parseArgumentOptions(t,r,n,a);default:return this.error(H.MALFORMED_ARGUMENT,A(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),a=Kt(this.message,r),n=r+a.length;this.bumpTo(n);var o=this.clonePosition(),i=A(t,o);return{value:a,location:i}},e.prototype.parseArgumentOptions=function(t,r,a,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,A(i,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=Ks(d.val);if(m.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var c=A(h,this.clonePosition());l={style:m,styleLocation:c}}var f=this.tryParseArgumentClose(n);if(f.err)return f;var v=A(n,this.clonePosition());if(l&&Ur(l==null?void 0:l.style,"::",0)){var x=Js(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(x,l.styleLocation);return d.err?d:{val:{type:ne.number,value:a,location:v,style:d.val},err:null}}else{if(x.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,v);var B=x;this.locale&&(B=Fs(x,this.locale));var m={type:Je.dateTime,pattern:B,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ss(B):{}},M=s==="date"?ne.date:ne.time;return{val:{type:M,value:a,location:v,style:m},err:null}}}return{val:{type:s==="number"?ne.number:s==="date"?ne.date:ne.time,value:a,location:v,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,A(P,$({},P)));this.bumpSpace();var D=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&D.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),D=this.parseIdentifierIfPossible(),k=d.val}var Q=this.tryParsePluralOrSelectOptions(t,s,r,D);if(Q.err)return Q;var f=this.tryParseArgumentClose(n);if(f.err)return f;var X=A(n,this.clonePosition());return s==="select"?{val:{type:ne.select,value:a,options:Ar(Q.val),location:X},err:null}:{val:{type:ne.plural,value:a,options:Ar(Q.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,A(i,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,A(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(n,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 a=[];try{a=Hs(t)}catch(n){return this.error(H.INVALID_NUMBER_SKELETON,r)}return{val:{type:Je.number,tokens:a,location:r,parsedOptions:this.shouldParseSkeletons?ks(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,a,n){for(var o,i=!1,s=[],u=new Set,l=n.value,h=n.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(i=!0),this.bumpSpace();var c=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,a);if(f.err)return f;var v=this.tryParseArgumentClose(c);if(v.err)return v;s.push([l,{value:f.val,location:A(c,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}return s.length===0?this.error(r==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(H.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var a=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,i=i*10+(s-48),this.bump();else break}var u=A(n,this.clonePosition());return o?(i*=a,Qs(i)?{val:i,err:null}:this.error(r,u)):this.error(t,u)},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=Vn(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(Ur(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(),a=this.message.indexOf(t,r);return a>=0?(this.bumpTo(a),!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()&&Qn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),a=this.message.charCodeAt(r+(t>=65536?2:1));return a!=null?a:null},e}();function er(e){return e>=97&&e<=122||e>=65&&e<=90}function tu(e){return er(e)||e===47}function ru(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 Qn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nu(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 tr(e){e.forEach(function(t){if(delete t.location,Rn(t)||Gn(t))for(var r in t.options)delete t.options[r].location,tr(t.options[r].value);else An(t)&&Yn(t.style)||(kn(t)||Fn(t))&&Qt(t.style)?delete t.style.location:$n(t)&&tr(t.children)})}function au(e,t){t===void 0&&(t={}),t=$({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new eu(e,t).parse();if(r.err){var a=SyntaxError(H[r.err.kind]);throw a.location=r.err.location,a.originalMessage=r.err.message,a}return t!=null&&t.captureLocation||tr(r.val),r.val}var Ke;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ke||(Ke={}));var It=function(e){St(t,e);function t(r,a,n){var o=e.call(this,r)||this;return o.code=a,o.originalMessage=n,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Fr=function(e){St(t,e);function t(r,a,n,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(a,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Ke.INVALID_VALUE,o)||this}return t}(It),iu=function(e){St(t,e);function t(r,a,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(a),Ke.INVALID_VALUE,n)||this}return t}(It),ou=function(e){St(t,e);function t(r,a){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(a,'"'),Ke.MISSING_VALUE,a)||this}return t}(It),Ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ee||(Ee={}));function su(e){return e.length<2?e:e.reduce(function(t,r){var a=t[t.length-1];return!a||a.type!==Ee.literal||r.type!==Ee.literal?t.push(r):a.value+=r.value,t},[])}function uu(e){return typeof e=="function"}function Et(e,t,r,a,n,o,i){if(e.length===1&&Sr(e[0]))return[{type:Ee.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var h=l[u];if(Sr(h)){s.push({type:Ee.literal,value:h.value});continue}if(Ds(h)){typeof o=="number"&&s.push({type:Ee.literal,value:r.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(n&&d in n))throw new ou(d,i);var m=n[d];if(Os(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?Ee.literal:Ee.object,value:m});continue}if(kn(h)){var c=typeof h.style=="string"?a.date[h.style]:Qt(h.style)?h.style.parsedOptions:void 0;s.push({type:Ee.literal,value:r.getDateTimeFormat(t,c).format(m)});continue}if(Fn(h)){var c=typeof h.style=="string"?a.time[h.style]:Qt(h.style)?h.style.parsedOptions:a.time.medium;s.push({type:Ee.literal,value:r.getDateTimeFormat(t,c).format(m)});continue}if(An(h)){var c=typeof h.style=="string"?a.number[h.style]:Yn(h.style)?h.style.parsedOptions:void 0;c&&c.scale&&(m=m*(c.scale||1)),s.push({type:Ee.literal,value:r.getNumberFormat(t,c).format(m)});continue}if($n(h)){var f=h.children,v=h.value,x=n[v];if(!uu(x))throw new iu(v,"function",i);var B=Et(f,t,r,a,n,o),M=x(B.map(function(k){return k.value}));Array.isArray(M)||(M=[M]),s.push.apply(s,M.map(function(k){return{type:typeof k=="string"?Ee.literal:Ee.object,value:k}}))}if(Rn(h)){var P=h.options[m]||h.options.other;if(!P)throw new Fr(h.value,m,Object.keys(h.options),i);s.push.apply(s,Et(P.value,t,r,a,n));continue}if(Gn(h)){var P=h.options["=".concat(m)];if(!P){if(!Intl.PluralRules)throw new It(`Intl.PluralRules is not available in this environment.
|
|
16
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
17
|
+
`,Ke.MISSING_INTL_API,i);var D=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));P=h.options[D]||h.options.other}if(!P)throw new Fr(h.value,m,Object.keys(h.options),i);s.push.apply(s,Et(P.value,t,r,a,n,m-(h.offset||0)));continue}}return su(s)}function lu(e,t){return t?$($($({},e||{}),t||{}),Object.keys(e).reduce(function(r,a){return r[a]=$($({},e[a]),t[a]||{}),r},{})):e}function cu(e,t){return t?Object.keys(e).reduce(function(r,a){return r[a]=lu(e[a],t[a]),r},$({},e)):e}function Yt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function hu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Rt(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.NumberFormat).bind.apply(t,Ft([void 0],r,!1)))},{cache:Yt(e.number),strategy:Gt.variadic}),getDateTimeFormat:Rt(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.DateTimeFormat).bind.apply(t,Ft([void 0],r,!1)))},{cache:Yt(e.dateTime),strategy:Gt.variadic}),getPluralRules:Rt(function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return new((t=Intl.PluralRules).bind.apply(t,Ft([void 0],r,!1)))},{cache:Yt(e.pluralRules),strategy:Gt.variadic})}}var fu=function(){function e(t,r,a,n){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var h=l.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(u){return Et(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.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 i=n||{};i.formatters;var s=Ts(i,["formatters"]);this.ast=e.__parse(t,$($({},s),{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=cu(e.formats,a),this.formatters=n&&n.formatters||hu(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=au,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 du(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let a=e;for(let n=0;n<r.length;n++)if(typeof a=="object"){if(n>0){const o=r.slice(n,r.length).join(".");if(o in a){a=a[o];break}}a=a[r[n]]}else a=void 0;return a}const Fe={},mu=(e,t,r)=>r&&(t in Fe||(Fe[t]={}),e in Fe[t]||(Fe[t][e]=r),r),Zn=(e,t)=>{if(t==null)return;if(t in Fe&&e in Fe[t])return Fe[t][e];const r=Ht(t);for(let a=0;a<r.length;a++){const n=r[a],o=vu(n,e);if(o)return mu(e,t,o)}};let cr;const pt=Nt({});function gu(e){return cr[e]||null}function Jn(e){return e in cr}function vu(e,t){if(!Jn(e))return null;const r=gu(e);return du(r,t)}function pu(e){if(e==null)return;const t=Ht(e);for(let r=0;r<t.length;r++){const a=t[r];if(Jn(a))return a}}function Kn(e,...t){delete Fe[e],pt.update(r=>(r[e]=_s.all([r[e]||{},...t]),r))}rt([pt],([e])=>Object.keys(e));pt.subscribe(e=>cr=e);const xt={};function bu(e,t){xt[e].delete(t),xt[e].size===0&&delete xt[e]}function ea(e){return xt[e]}function yu(e){return Ht(e).map(t=>{const r=ea(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function rr(e){return e==null?!1:Ht(e).some(t=>{var r;return(r=ea(t))==null?void 0:r.size})}function wu(e,t){return Promise.all(t.map(a=>(bu(e,a),a().then(n=>n.default||n)))).then(a=>Kn(e,...a))}const ft={};function ta(e){if(!rr(e))return e in ft?ft[e]:Promise.resolve();const t=yu(e);return ft[e]=Promise.all(t.map(([r,a])=>wu(r,a))).then(()=>{if(rr(e))return ta(e);delete ft[e]}),ft[e]}const _u={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"}}},Tu={fallbackLocale:null,loadingDelay:200,formats:_u,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Eu=Tu;function et(){return Eu}const jt=Nt(!1);var xu=Object.defineProperty,Pu=Object.defineProperties,Cu=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,Bu=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable,Gr=(e,t,r)=>t in e?xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ou=(e,t)=>{for(var r in t||(t={}))Bu.call(t,r)&&Gr(e,r,t[r]);if(Rr)for(var r of Rr(t))Mu.call(t,r)&&Gr(e,r,t[r]);return e},Du=(e,t)=>Pu(e,Cu(t));let nr;const Ot=Nt(null);function $r(e){return e.split("-").map((t,r,a)=>a.slice(0,r+1).join("-")).reverse()}function Ht(e,t=et().fallbackLocale){const r=$r(e);return t?[...new Set([...r,...$r(t)])]:r}function je(){return nr!=null?nr:void 0}Ot.subscribe(e=>{nr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Nu=e=>{if(e&&pu(e)&&rr(e)){const{loadingDelay:t}=et();let r;return typeof window!="undefined"&&je()!=null&&t?r=window.setTimeout(()=>jt.set(!0),t):jt.set(!0),ta(e).then(()=>{Ot.set(e)}).finally(()=>{clearTimeout(r),jt.set(!1)})}return Ot.set(e)},nt=Du(Ou({},Ot),{set:Nu}),Lt=e=>{const t=Object.create(null);return a=>{const n=JSON.stringify(a);return n in t?t[n]:t[n]=e(a)}};var Su=Object.defineProperty,Dt=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,Yr=(e,t,r)=>t in e?Su(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hr=(e,t)=>{for(var r in t||(t={}))ra.call(t,r)&&Yr(e,r,t[r]);if(Dt)for(var r of Dt(t))na.call(t,r)&&Yr(e,r,t[r]);return e},at=(e,t)=>{var r={};for(var a in e)ra.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&Dt)for(var a of Dt(e))t.indexOf(a)<0&&na.call(e,a)&&(r[a]=e[a]);return r};const vt=(e,t)=>{const{formats:r}=et();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Iu=Lt(e=>{var t=e,{locale:r,format:a}=t,n=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return a&&(n=vt("number",a)),new Intl.NumberFormat(r,n)}),Hu=Lt(e=>{var t=e,{locale:r,format:a}=t,n=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return a?n=vt("date",a):Object.keys(n).length===0&&(n=vt("date","short")),new Intl.DateTimeFormat(r,n)}),Lu=Lt(e=>{var t=e,{locale:r,format:a}=t,n=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return a?n=vt("time",a):Object.keys(n).length===0&&(n=vt("time","short")),new Intl.DateTimeFormat(r,n)}),Uu=(e={})=>{var t=e,{locale:r=je()}=t,a=at(t,["locale"]);return Iu(hr({locale:r},a))},Au=(e={})=>{var t=e,{locale:r=je()}=t,a=at(t,["locale"]);return Hu(hr({locale:r},a))},ku=(e={})=>{var t=e,{locale:r=je()}=t,a=at(t,["locale"]);return Lu(hr({locale:r},a))},Fu=Lt((e,t=je())=>new fu(e,t,et().formats,{ignoreTag:et().ignoreTag})),Ru=(e,t={})=>{var r,a,n,o;let i=t;typeof e=="object"&&(i=e,e=i.id);const{values:s,locale:u=je(),default:l}=i;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Zn(e,u);if(!h)h=(o=(n=(a=(r=et()).handleMissingMessage)==null?void 0:a.call(r,{locale:u,id:e,defaultValue:l}))!=null?n:l)!=null?o: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(!s)return h;let d=h;try{d=Fu(h,u).format(s)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return d},Gu=(e,t)=>ku(t).format(e),$u=(e,t)=>Au(t).format(e),Yu=(e,t)=>Uu(t).format(e),ju=(e,t=je())=>Zn(e,t),Wu=rt([nt,pt],()=>Ru);rt([nt],()=>Gu);rt([nt],()=>$u);rt([nt],()=>Yu);rt([nt,pt],()=>ju);function jr(e,t){Kn(e,t)}function qu(e){nt.set(e)}const Wr={en:{registerBackButton:"Back",registerUserTitle:"Title",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"First Name",registerFirstNameError:"First name must be 2-50 characters long.",registerLastName:"Last Name",registerLastNameError:"Last name must be 2-50 characters.",registerDateOfBirth:"Date of Birth",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},"zh-hk":{registerBackButton:"後退",registerUserTitle:"標題",registerUserTitleSelect:"选择标题",registerUserTitleSelectMr:"先生.",registerUserTitleSelectMrs:"太太.",registerUserTitleSelectMs:"小姐.",registerFirstName:"名",registerFirstNameError:"名字的長度必須至少為 2 個字符,並且不包含特殊字符。",registerLastName:"姓",registerLastNameError:"姓氏必須至少有 2 個字符長並且不包含特殊字符。",registerDateOfBirth:"出生日期",registerBirthDay:"天",registerBirthMonth:"月",registerBirthYear:"年",registerBirthDateError:"最低注册年龄为 {licenseyears} 年。",registerBirthPlace:"出生地",registerBirthPlaceError:"出生地必須至少有 1 個字符長。",registerCurrency:"貨幣",registerNext:"下一個",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},fr:{registerBackButton:"Retour",registerUserTitle:"Titre",registerUserTitleSelect:"Sélectionnez le titre",registerUserTitleSelectMr:"Monsieur",registerUserTitleSelectMrs:"Madame",registerUserTitleSelectMs:"Mademoiselle",registerFirstName:"Prénom",registerFirstNameError:"Le prénom doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerLastName:"Nom de famille",registerLastNameError:"Le nom de famille doit être composé d'au moins 2 caractères et ne doit pas contenir des caracères spéciaux",registerDateOfBirth:"Date de naissance",registerBirthDay:"Jour",registerBirthMonth:"Mois",registerBirthYear:"An",registerBirthDateError:"L'âge minimum d'enregistrement est de {licenseyears} ans.",registerBirthPlace:"Lieu de naissance",registerBirthPlaceError:"Le lieu de naissance doit comporter au moins un caractère.",registerCurrency:"Monnaie",registerNext:"Suivant",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},tr:{registerBackButton:"Geri",registerUserTitle:"Başlık",registerUserTitleSelect:"Başlık Seçin",registerUserTitleSelectMr:"Bay.",registerUserTitleSelectMrs:"Bayan.",registerUserTitleSelectMs:"Hanım.",registerFirstName:"İlk adı",registerFirstNameError:"Ad 2-50 karakter uzunluğunda olmalıdır.",registerLastName:"Soy isim",registerLastNameError:"Soyadı 2-50 karakter arasında olmalıdır.",registerDateOfBirth:"Doğum tarihi",registerBirthDay:"Gün",registerBirthMonth:"Ay",registerBirthYear:"Yıl",registerBirthDateError:"Minimum kayıt yaşı {licenseyears} yıldır.",registerBirthPlace:"Doğum Yeri",registerBirthPlaceError:"Doğum yeri en az 1 karakter uzunluğunda olmalıdır.",registerCurrency:"Para birimi",registerNext:"Sonraki",registerPersonalId:"Kişisel kimlik",registerPersonalIdCharacters:"Sadece sayılar",registerPersonalIdLength:"Yanlış Uzunluk"},ro:{registerBackButton:"Inapoi",registerUserTitle:"Titlu",registerUserTitleSelect:"Selecteaza Titlu",registerUserTitleSelectMr:"Dl.",registerUserTitleSelectMrs:"Dna.",registerUserTitleSelectMs:"Dra.",registerFirstName:"Prenume",registerFirstNameError:"Prenumele trebuie sa fie de 2-50 litere lungime.",registerLastName:"Nume",registerLastNameError:"Numele trebuie sa fie de 2-50 litere lungime.",registerDateOfBirth:"Data Nasterii",registerBirthDay:"Zi",registerBirthMonth:"Luna",registerBirthYear:"An",registerBirthDateError:"Varsta minima pentru inregistrare este de {licenseyears} ani.",registerBirthPlace:"Locule nasterii",registerBirthPlaceError:"Locul nasterii trebuie sa contina minim o litera",registerCurrency:"Moneda",registerNext:"Urmatorul",registerPersonalId:"Cod Numeric Personal",registerPersonalIdCharacters:"Pot fi introduse doar cifre",registerPersonalIdLength:"Codul numeric personal trebuie sa contina 13 cifre."},es:{registerBackButton:"Anterior",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar Título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srta.",registerFirstName:"Nombre",registerFirstNameError:"El nombre debe tener al menos 2 caracteres y no contener caracteres especiales.",registerLastName:"Apellido",registerLastNameError:"Apellido debe tener entre 2 a 50 caracteres.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima para registrarse es {licenseyears} años",registerBirthPlace:"Lugar de Nacimiento",registerBirthPlaceError:"Lugar de Nacimiento debe tener al menos 1 carácter.",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},pt:{registerBackButton:"Voltar",registerUserTitle:"Título",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"Primeiro nome",registerFirstNameError:"O nome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerLastName:"Último nome",registerLastNameError:"O sobrenome deve ter pelo menos 2 caracteres e não conter caracteres especiais.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Local de Nascimento",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"},hr:{registerBackButton:"Prethodno",registerUserTitle:"Titula",registerUserTitleSelect:"Odaberite titulu",registerUserTitleSelectMr:"Gosp.",registerUserTitleSelectMrs:"Gđa",registerUserTitleSelectMs:"Gđica",registerFirstName:"Ime",registerFirstNameError:"Ime mora imati 2-50 znakova.",registerLastName:"Prezime",registerLastNameError:"Prezime mora imati 2-50 znakova.",registerDateOfBirth:"Datum rođenja",registerBirthDay:"Dan",registerBirthMonth:"Mjesec",registerBirthYear:"Godina",registerBirthDateError:"Za registraciju morate imati najmanje 18 godina.",registerBirthPlace:"Mjesto rođenja",registerBirthPlaceError:"Mjesto rođenja mora imati najmanje 1 znak.",registerCurrency:"Valuta",registerNext:"Slijedeće",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Samo brojevi",registerPersonalIdLength:"Pogrešna duljina"},"pt-br":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Selecionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nome",registerFirstNameError:"O nome deve ser de 2 a 20 caracteres de comprimento.",registerLastName:"Sobrenome",registerLastNameError:"O sobrenome deve ter de 2 a 50 caracteres.",registerDateOfBirth:"Data de nascimento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Ano",registerBirthDateError:"A idade mínimo de registro é {licenseyears} anos.",registerBirthPlace:"Lugar de nascimento",registerBirthPlaceError:"O lugar de nascimento deve ter pelo menos 1 caractere",registerCurrency:"Moeda",registerNext:"Próximo",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Somente números",registerPersonalIdLength:"Formato de número de identificação incorreto"},"es-mx":{registerBackButton:"Atrás",registerUserTitle:"Título",registerUserTitleSelect:"Seleccionar título",registerUserTitleSelectMr:"Sr.",registerUserTitleSelectMrs:"Sra.",registerUserTitleSelectMs:"Srita.",registerFirstName:"Nombre",registerFirstNameError:"Nombre debe ser de 2 a 20 caracteres de largo.",registerLastName:"Apellido",registerLastNameError:"Apellido debe ser de 2 a 50 caracteres de largo.",registerDateOfBirth:"Fecha de nacimiento",registerBirthDay:"Día",registerBirthMonth:"Mes",registerBirthYear:"Año",registerBirthDateError:"La edad mínima de registro es {licenseyears} años.",registerBirthPlace:"Lugar de nacimiento",registerBirthPlaceError:"Lugar de nacimiento debe tener al menos 1 caracter",registerCurrency:"Moneda",registerNext:"Siguiente",registerPersonalId:"Identificación",registerPersonalIdCharacters:"Sólo números",registerPersonalIdLength:"Formato de número de identificación Incorrecto"},"en-us":{registerBackButton:"Back",registerUserTitle:"Title",registerUserTitleSelect:"Select Title",registerUserTitleSelectMr:"Mr.",registerUserTitleSelectMrs:"Mrs.",registerUserTitleSelectMs:"Ms.",registerFirstName:"First Name",registerFirstNameError:"First name must be 2-50 characters long.",registerLastName:"Last Name",registerLastNameError:"Last name must be 2-50 characters.",registerDateOfBirth:"Date of Birth",registerBirthDay:"Day",registerBirthMonth:"Month",registerBirthYear:"Year",registerBirthDateError:"The minimum registratione age is {licenseyears} years.",registerBirthPlace:"Birth Place",registerBirthPlaceError:"Birth place must be at least 1 character long.",registerCurrency:"Currency",registerNext:"Next",registerPersonalId:"Personal Id",registerPersonalIdCharacters:"Only numbers",registerPersonalIdLength:"Wrong Length"}};function Xu(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Vu(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(a=>a.text()).then(a=>{const n=document.createElement("style");n.innerHTML=a,e&&e.appendChild(n)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function zu(e,t,r){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(t,n=>{a.innerHTML=n,e&&e.appendChild(a)})}}function Qu(e){Ha(e,"svelte-13nchcb",`input,select{font-family:inherit}.BackButton{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:15px;border-radius: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:24px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.UserTitleContainer label,.CurrencyContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserTitleContainer select,.CurrencyContainer select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size: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}.UserTitleContainer select:focus,.UserTitleContainer select :focus-within,.UserTitleContainer select :focus-visible,.UserTitleContainer select :visited,.CurrencyContainer select:focus,.CurrencyContainer select :focus-within,.CurrencyContainer select :focus-visible,.CurrencyContainer 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))}.UserTitleContainer,.FirstNameContainer,.LastNameContainer,.BirthDateContainer,.BirthPlaceContainer,.PersonalIdContainer,.CurrencyContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.UserTitleContainer label,.FirstNameContainer label,.LastNameContainer label,.BirthDateContainer label,.BirthPlaceContainer label,.PersonalIdContainer label,.CurrencyContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserTitleContainer input,.UserTitleContainer select,.FirstNameContainer input,.FirstNameContainer select,.LastNameContainer input,.LastNameContainer select,.BirthDateContainer input,.BirthDateContainer select,.BirthPlaceContainer input,.BirthPlaceContainer select,.PersonalIdContainer input,.PersonalIdContainer select,.CurrencyContainer input,.CurrencyContainer select{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.UserTitleContainer input:focus,.UserTitleContainer select:focus,.FirstNameContainer input:focus,.FirstNameContainer select:focus,.LastNameContainer input:focus,.LastNameContainer select:focus,.BirthDateContainer input:focus,.BirthDateContainer select:focus,.BirthPlaceContainer input:focus,.BirthPlaceContainer select:focus,.PersonalIdContainer input:focus,.PersonalIdContainer select:focus,.CurrencyContainer input:focus,.CurrencyContainer select:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.UserTitleContainer.InvalidField input,.FirstNameContainer.InvalidField input,.LastNameContainer.InvalidField input,.BirthDateContainer.InvalidField input,.BirthPlaceContainer.InvalidField input,.PersonalIdContainer.InvalidField input,.CurrencyContainer.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))}.UserTitleContainer.Hidden,.FirstNameContainer.Hidden,.LastNameContainer.Hidden,.BirthDateContainer.Hidden,.BirthPlaceContainer.Hidden,.PersonalIdContainer.Hidden,.CurrencyContainer.Hidden{display:none}.BirthDateOptions{display:flex;gap:10px}.BirthDateOptions .BirthDaySelected{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}.BirthDateOptions .BirthDaySelected:focus,.BirthDateOptions .BirthDaySelected :focus-within,.BirthDateOptions .BirthDaySelected :focus-visible,.BirthDateOptions .BirthDaySelected :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))}.BirthDateOptions .BirthMonthSelected{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}.BirthDateOptions .BirthMonthSelected:focus,.BirthDateOptions .BirthMonthSelected :focus-within,.BirthDateOptions .BirthMonthSelected :focus-visible,.BirthDateOptions .BirthMonthSelected :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))}.BirthDateOptions .BirthYearSelected{width:40%;-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}.BirthDateOptions .BirthYearSelected:focus,.BirthDateOptions .BirthYearSelected :focus-within,.BirthDateOptions .BirthYearSelected :focus-visible,.BirthDateOptions .BirthYearSelected :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))}.FormRequired{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #E1A749))}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:-3px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.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-150, #828282);cursor:not-allowed}`)}function qr(e,t,r){const a=e.slice();return a[82]=t[r],a}function Xr(e,t,r){const a=e.slice();return a[85]=t[r],a}function Vr(e,t,r){const a=e.slice();return a[88]=t[r],a}function zr(e,t,r){const a=e.slice();return a[91]=t[r],a}function Qr(e){let t,r,a=e[24]("registerUserTitle")+"",n,o,i,s,u,l,h=e[24]("registerUserTitleSelect")+"",d,m,c=e[24]("registerUserTitleSelectMr")+"",f,v,x=e[24]("registerUserTitleSelectMrs")+"",B,M,P=e[24]("registerUserTitleSelectMs")+"",D,k,Q;return{c(){t=T("div"),r=T("label"),n=I(a),o=I(":"),i=T("span"),i.textContent="*",s=ae(),u=T("select"),l=T("option"),d=I(h),m=T("option"),f=I(c),v=T("option"),B=I(x),M=T("option"),D=I(P),E(i,"class","FormRequired"),E(r,"for","Title"),l.__value="",be(l,l.__value),l.disabled=!0,l.selected=!0,m.__value="Mr.",be(m,m.__value),v.__value="Mrs.",be(v,v.__value),M.__value="Ms.",be(M,M.__value),E(u,"id","Title"),e[12]===void 0&&Re(()=>e[44].call(u)),E(t,"class","UserTitleContainer")},m(X,V){ve(X,t,V),g(t,r),g(r,n),g(r,o),g(r,i),g(t,s),g(t,u),g(u,l),g(l,d),g(u,m),g(m,f),g(u,v),g(v,B),g(u,M),g(M,D),Oe(u,e[12],!0),k||(Q=[ee(u,"change",e[44]),ee(u,"change",e[29])],k=!0)},p(X,V){V[0]&16777216&&a!==(a=X[24]("registerUserTitle")+"")&&ie(n,a),V[0]&16777216&&h!==(h=X[24]("registerUserTitleSelect")+"")&&ie(d,h),V[0]&16777216&&c!==(c=X[24]("registerUserTitleSelectMr")+"")&&ie(f,c),V[0]&16777216&&x!==(x=X[24]("registerUserTitleSelectMrs")+"")&&ie(B,x),V[0]&16777216&&P!==(P=X[24]("registerUserTitleSelectMs")+"")&&ie(D,P),V[0]&4096&&Oe(u,X[12])},d(X){X&&ce(t),k=!1,Ce(Q)}}}function Zr(e){let t,r,a=e[24]("registerFirstName")+"",n,o,i,s,u,l,h,d,m,c=e[2]&&Jr(e);return{c(){t=T("div"),r=T("label"),n=I(a),o=I(":"),i=T("span"),i.textContent="*",s=ae(),u=T("input"),l=ae(),c&&c.c(),E(i,"class","FormRequired"),E(r,"for","FirstName"),E(u,"type","text"),E(u,"id","FirstName"),E(t,"class",h="FirstNameContainer "+(e[2]&&!e[7]?"InvalidField":""))},m(f,v){ve(f,t,v),g(t,r),g(r,n),g(r,o),g(r,i),g(t,s),g(t,u),be(u,e[13]),g(t,l),c&&c.m(t,null),d||(m=[ee(u,"input",e[45]),ee(u,"keyup",e[30]),ee(u,"focus",e[46]),ee(u,"keyup",e[47])],d=!0)},p(f,v){v[0]&16777216&&a!==(a=f[24]("registerFirstName")+"")&&ie(n,a),v[0]&8192&&u.value!==f[13]&&be(u,f[13]),f[2]?c?c.p(f,v):(c=Jr(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),v[0]&132&&h!==(h="FirstNameContainer "+(f[2]&&!f[7]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&ce(t),c&&c.d(),d=!1,Ce(m)}}}function Jr(e){let t,r=e[24]("registerFirstNameError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,o){ve(n,t,o),g(t,a)},p(n,o){o[0]&16777216&&r!==(r=n[24]("registerFirstNameError")+"")&&ie(a,r)},d(n){n&&ce(t)}}}function Kr(e){let t,r,a=e[24]("registerLastName")+"",n,o,i,s,u,l,h,d,m,c=e[3]&&en(e);return{c(){t=T("div"),r=T("label"),n=I(a),o=I(":"),i=T("span"),i.textContent="*",s=ae(),u=T("input"),l=ae(),c&&c.c(),E(i,"class","FormRequired"),E(r,"for","LastName"),E(u,"type","text"),E(u,"id","LastName"),E(t,"class",h="LastNameContainer "+(e[3]&&!e[8]?"InvalidField":""))},m(f,v){ve(f,t,v),g(t,r),g(r,n),g(r,o),g(r,i),g(t,s),g(t,u),be(u,e[14]),g(t,l),c&&c.m(t,null),d||(m=[ee(u,"input",e[48]),ee(u,"keyup",e[31]),ee(u,"focus",e[49]),ee(u,"blur",e[50])],d=!0)},p(f,v){v[0]&16777216&&a!==(a=f[24]("registerLastName")+"")&&ie(n,a),v[0]&16384&&u.value!==f[14]&&be(u,f[14]),f[3]?c?c.p(f,v):(c=en(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),v[0]&264&&h!==(h="LastNameContainer "+(f[3]&&!f[8]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&ce(t),c&&c.d(),d=!1,Ce(m)}}}function en(e){let t,r=e[24]("registerLastNameError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,o){ve(n,t,o),g(t,a)},p(n,o){o[0]&16777216&&r!==(r=n[24]("registerLastNameError")+"")&&ie(a,r)},d(n){n&&ce(t)}}}function tn(e){let t,r,a=e[24]("registerDateOfBirth")+"",n,o,i,s,u,l,h,d=e[24]("registerBirthDay")+"",m,c,f,v,x=e[24]("registerBirthMonth")+"",B,M,P,D,k=e[24]("registerBirthYear")+"",Q,X,V,ye,he=ke(e[25]),O=[];for(let w=0;w<he.length;w+=1)O[w]=rn(zr(e,he,w));let N=ke(e[26]),Y=[];for(let w=0;w<N.length;w+=1)Y[w]=nn(Vr(e,N,w));let Z=!e[23]&&an(e),te=e[4]&&sn(e);return{c(){t=T("div"),r=T("label"),n=I(a),o=I(":"),i=T("span"),i.textContent="*",s=ae(),u=T("div"),l=T("select"),h=T("option"),m=I(d);for(let w=0;w<O.length;w+=1)O[w].c();c=ae(),f=T("select"),v=T("option"),B=I(x);for(let w=0;w<Y.length;w+=1)Y[w].c();M=ae(),P=T("select"),D=T("option"),Q=I(k),Z&&Z.c(),X=ae(),te&&te.c(),E(i,"class","FormRequired"),h.__value="",be(h,h.__value),h.disabled=!0,h.selected=!0,E(l,"class","BirthDaySelected"),e[15]===void 0&&Re(()=>e[51].call(l)),v.__value="",be(v,v.__value),v.disabled=!0,v.selected=!0,E(f,"class","BirthMonthSelected"),e[16]===void 0&&Re(()=>e[52].call(f)),D.__value="",be(D,D.__value),D.disabled=!0,D.selected=!0,E(P,"class","BirthYearSelected"),e[17]===void 0&&Re(()=>e[53].call(P)),E(u,"class","BirthDateOptions"),E(t,"class","BirthDateContainer")},m(w,j){ve(w,t,j),g(t,r),g(r,n),g(r,o),g(r,i),g(t,s),g(t,u),g(u,l),g(l,h),g(h,m);for(let y=0;y<O.length;y+=1)O[y]&&O[y].m(l,null);Oe(l,e[15],!0),g(u,c),g(u,f),g(f,v),g(v,B);for(let y=0;y<Y.length;y+=1)Y[y]&&Y[y].m(f,null);Oe(f,e[16],!0),g(u,M),g(u,P),g(P,D),g(D,Q),Z&&Z.m(P,null),Oe(P,e[17],!0),g(u,X),te&&te.m(u,null),V||(ye=[ee(l,"change",e[51]),ee(l,"change",e[28]),ee(f,"change",e[52]),ee(f,"change",e[28]),ee(P,"change",e[53]),ee(P,"change",e[28])],V=!0)},p(w,j){if(j[0]&16777216&&a!==(a=w[24]("registerDateOfBirth")+"")&&ie(n,a),j[0]&16777216&&d!==(d=w[24]("registerBirthDay")+"")&&ie(m,d),j[0]&33554432){he=ke(w[25]);let y;for(y=0;y<he.length;y+=1){const G=zr(w,he,y);O[y]?O[y].p(G,j):(O[y]=rn(G),O[y].c(),O[y].m(l,null))}for(;y<O.length;y+=1)O[y].d(1);O.length=he.length}if(j[0]&33587200&&Oe(l,w[15]),j[0]&16777216&&x!==(x=w[24]("registerBirthMonth")+"")&&ie(B,x),j[0]&67108864){N=ke(w[26]);let y;for(y=0;y<N.length;y+=1){const G=Vr(w,N,y);Y[y]?Y[y].p(G,j):(Y[y]=nn(G),Y[y].c(),Y[y].m(f,null))}for(;y<Y.length;y+=1)Y[y].d(1);Y.length=N.length}j[0]&67174400&&Oe(f,w[16]),j[0]&16777216&&k!==(k=w[24]("registerBirthYear")+"")&&ie(Q,k),w[23]?Z&&(Z.d(1),Z=null):Z?Z.p(w,j):(Z=an(w),Z.c(),Z.m(P,null)),j[0]&134348800&&Oe(P,w[17]),w[4]?te?te.p(w,j):(te=sn(w),te.c(),te.m(u,null)):te&&(te.d(1),te=null)},d(w){w&&ce(t),Pt(O,w),Pt(Y,w),Z&&Z.d(),te&&te.d(),V=!1,Ce(ye)}}}function rn(e){let t,r=e[91]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[91],be(t,t.__value)},m(n,o){ve(n,t,o),g(t,a)},p:xe,d(n){n&&ce(t)}}}function nn(e){let t,r=e[88]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[88],be(t,t.__value)},m(n,o){ve(n,t,o),g(t,a)},p:xe,d(n){n&&ce(t)}}}function an(e){let t,r=ke(e[27]),a=[];for(let n=0;n<r.length;n+=1)a[n]=on(Xr(e,r,n));return{c(){for(let n=0;n<a.length;n+=1)a[n].c();t=pn()},m(n,o){for(let i=0;i<a.length;i+=1)a[i]&&a[i].m(n,o);ve(n,t,o)},p(n,o){if(o[0]&134217728){r=ke(n[27]);let i;for(i=0;i<r.length;i+=1){const s=Xr(n,r,i);a[i]?a[i].p(s,o):(a[i]=on(s),a[i].c(),a[i].m(t.parentNode,t))}for(;i<a.length;i+=1)a[i].d(1);a.length=r.length}},d(n){n&&ce(t),Pt(a,n)}}}function on(e){let t,r=e[85]+"",a;return{c(){t=T("option"),a=I(r),t.__value=e[85],be(t,t.__value)},m(n,o){ve(n,t,o),g(t,a)},p:xe,d(n){n&&ce(t)}}}function sn(e){let t,r=e[24]("registerBirthDateError",{values:{licenseyears:e[0]}})+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,o){ve(n,t,o),g(t,a)},p(n,o){o[0]&16777217&&r!==(r=n[24]("registerBirthDateError",{values:{licenseyears:n[0]}})+"")&&ie(a,r)},d(n){n&&ce(t)}}}function un(e){let t,r,a=e[24]("registerBirthPlace")+"",n,o,i,s,u,l,h,d,m,c=e[5]&&ln(e);return{c(){t=T("div"),r=T("label"),n=I(a),o=I(":"),i=T("span"),i.textContent="*",s=ae(),u=T("input"),l=ae(),c&&c.c(),E(i,"class","FormRequired"),E(r,"for","BirthPlace"),E(u,"type","text"),E(u,"id","BirthPlace"),E(t,"class",h="BirthPlaceContainer "+(e[5]&&!e[9]?"InvalidField":""))},m(f,v){ve(f,t,v),g(t,r),g(r,n),g(r,o),g(r,i),g(t,s),g(t,u),be(u,e[18]),g(t,l),c&&c.m(t,null),d||(m=[ee(u,"input",e[54]),ee(u,"keyup",e[32]),ee(u,"focus",e[55]),ee(u,"blur",e[56])],d=!0)},p(f,v){v[0]&16777216&&a!==(a=f[24]("registerBirthPlace")+"")&&ie(n,a),v[0]&262144&&u.value!==f[18]&&be(u,f[18]),f[5]?c?c.p(f,v):(c=ln(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),v[0]&544&&h!==(h="BirthPlaceContainer "+(f[5]&&!f[9]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&ce(t),c&&c.d(),d=!1,Ce(m)}}}function ln(e){let t,r=e[24]("registerBirthPlaceError")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,o){ve(n,t,o),g(t,a)},p(n,o){o[0]&16777216&&r!==(r=n[24]("registerBirthPlaceError")+"")&&ie(a,r)},d(n){n&&ce(t)}}}function cn(e){let t,r,a=e[24]("registerPersonalId")+"",n,o,i,s,u,l,h,d,m,c=e[6]&&hn(e);return{c(){t=T("div"),r=T("label"),n=I(a),o=I(":"),i=T("span"),i.textContent="*",s=ae(),u=T("input"),l=ae(),c&&c.c(),E(i,"class","FormRequired"),E(r,"for","PersonalId"),E(u,"type","text"),E(u,"id","PersonalId"),E(t,"class",h="PersonalIdContainer "+(e[6]&&!e[10]?"InvalidField":""))},m(f,v){ve(f,t,v),g(t,r),g(r,n),g(r,o),g(r,i),g(t,s),g(t,u),be(u,e[21]),g(t,l),c&&c.m(t,null),d||(m=[ee(u,"input",e[57]),ee(u,"keyup",e[33]),ee(u,"focus",e[58]),ee(u,"blur",e[59])],d=!0)},p(f,v){v[0]&16777216&&a!==(a=f[24]("registerPersonalId")+"")&&ie(n,a),v[0]&2097152&&u.value!==f[21]&&be(u,f[21]),f[6]?c?c.p(f,v):(c=hn(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),v[0]&1088&&h!==(h="PersonalIdContainer "+(f[6]&&!f[10]?"InvalidField":""))&&E(t,"class",h)},d(f){f&&ce(t),c&&c.d(),d=!1,Ce(m)}}}function hn(e){let t,r;function a(i,s){return s[0]&2097152&&(t=null),t==null&&(t=!/^\d+$/.test(i[21])),t?Ju:Zu}let n=a(e,[-1,-1,-1,-1]),o=n(e);return{c(){o.c(),r=pn()},m(i,s){o.m(i,s),ve(i,r,s)},p(i,s){n===(n=a(i,s))&&o?o.p(i,s):(o.d(1),o=n(i),o&&(o.c(),o.m(r.parentNode,r)))},d(i){i&&ce(r),o.d(i)}}}function Zu(e){let t,r=e[24]("registerPersonalIdLength")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,o){ve(n,t,o),g(t,a)},p(n,o){o[0]&16777216&&r!==(r=n[24]("registerPersonalIdLength")+"")&&ie(a,r)},d(n){n&&ce(t)}}}function Ju(e){let t,r=e[24]("registerPersonalIdCharacters")+"",a;return{c(){t=T("p"),a=I(r),E(t,"class","InvalidInput")},m(n,o){ve(n,t,o),g(t,a)},p(n,o){o[0]&16777216&&r!==(r=n[24]("registerPersonalIdCharacters")+"")&&ie(a,r)},d(n){n&&ce(t)}}}function fn(e){let t,r,a=e[24]("registerCurrency")+"",n,o,i,s,u,l,h,d,m=ke(e[19]),c=[];for(let f=0;f<m.length;f+=1)c[f]=dn(qr(e,m,f));return{c(){var f;t=T("div"),r=T("label"),n=I(a),o=I(":"),i=T("span"),i.textContent="*",s=ae(),u=T("select");for(let v=0;v<c.length;v+=1)c[v].c();E(i,"class","FormRequired"),E(r,"for","Currency"),E(u,"id","Currency"),e[20]===void 0&&Re(()=>e[60].call(u)),E(t,"class",l="CurrencyContainer "+(((f=e[11])==null?void 0:f.indexOf("currency"))>=0?"Hidden":""))},m(f,v){ve(f,t,v),g(t,r),g(r,n),g(r,o),g(r,i),g(t,s),g(t,u);for(let x=0;x<c.length;x+=1)c[x]&&c[x].m(u,null);Oe(u,e[20],!0),h||(d=ee(u,"change",e[60]),h=!0)},p(f,v){var x;if(v[0]&16777216&&a!==(a=f[24]("registerCurrency")+"")&&ie(n,a),v[0]&524288){m=ke(f[19]);let B;for(B=0;B<m.length;B+=1){const M=qr(f,m,B);c[B]?c[B].p(M,v):(c[B]=dn(M),c[B].c(),c[B].m(u,null))}for(;B<c.length;B+=1)c[B].d(1);c.length=m.length}v[0]&1572864&&Oe(u,f[20]),v[0]&2048&&l!==(l="CurrencyContainer "+(((x=f[11])==null?void 0:x.indexOf("currency"))>=0?"Hidden":""))&&E(t,"class",l)},d(f){f&&ce(t),Pt(c,f),h=!1,d()}}}function dn(e){let t,r=e[82]+"",a,n;return{c(){t=T("option"),a=I(r),t.__value=n=e[82],be(t,t.__value)},m(o,i){ve(o,t,i),g(t,a)},p(o,i){i[0]&524288&&r!==(r=o[82]+"")&&ie(a,r),i[0]&524288&&n!==(n=o[82])&&(t.__value=n,be(t,t.__value))},d(o){o&&ce(t)}}}function Ku(e){var C,K,Be,He,Te,Le,Ge;let t,r,a,n,o,i,s,u,l,h=e[24]("registerBackButton")+"",d,m,c,f=!(((C=e[11])==null?void 0:C.indexOf("title"))>=0),v,x=!(((K=e[11])==null?void 0:K.indexOf("firstName"))>=0),B,M=!(((Be=e[11])==null?void 0:Be.indexOf("lastName"))>=0),P,D=!(((He=e[11])==null?void 0:He.indexOf("birthDate"))>=0),k,Q=!(((Te=e[11])==null?void 0:Te.indexOf("birthPlace"))>=0),X,V=!(((Le=e[11])==null?void 0:Le.indexOf("personalId"))>=0),ye,he=!(((Ge=e[11])==null?void 0:Ge.indexOf("currency"))>=0),O,N,Y=e[24]("registerNext")+"",Z,te,w,j,y=f&&Qr(e),G=x&&Zr(e),J=M&&Kr(e),fe=D&&tn(e),pe=Q&&un(e),ue=V&&cn(e),S=he&&fn(e);return{c(){t=T("div"),r=T("div"),a=T("button"),n=wt("svg"),o=wt("defs"),i=wt("style"),s=I(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"),u=wt("path"),l=ae(),d=I(h),m=ae(),c=T("form"),y&&y.c(),v=ae(),G&&G.c(),B=ae(),J&&J.c(),P=ae(),fe&&fe.c(),k=ae(),pe&&pe.c(),X=ae(),ue&&ue.c(),ye=ae(),S&&S.c(),O=ae(),N=T("button"),Z=I(Y),E(u,"class","a"),E(u,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),E(u,"transform","translate(24 24) rotate(180)"),E(n,"xmlns","http://www.w3.org/2000/svg"),E(n,"viewBox","0 0 24 24"),E(a,"class","BackButton"),E(r,"class","RegisterFormHeader"),E(N,"class","RegisterStepNext"),N.disabled=te=!e[22],E(c,"class","RegisterFormContent")},m(W,de){ve(W,t,de),g(t,r),g(r,a),g(a,n),g(n,o),g(o,i),g(i,s),g(n,u),g(a,l),g(a,d),g(t,m),g(t,c),y&&y.m(c,null),g(c,v),G&&G.m(c,null),g(c,B),J&&J.m(c,null),g(c,P),fe&&fe.m(c,null),g(c,k),pe&&pe.m(c,null),g(c,X),ue&&ue.m(c,null),g(c,ye),S&&S.m(c,null),g(c,O),g(c,N),g(N,Z),e[62](t),w||(j=[ee(a,"click",e[35]),ee(N,"click",e[61])],w=!0)},p(W,de){var bt,Se,it,ot,st,ut,yt;de[0]&16777216&&h!==(h=W[24]("registerBackButton")+"")&&ie(d,h),de[0]&2048&&(f=!(((bt=W[11])==null?void 0:bt.indexOf("title"))>=0)),f?y?y.p(W,de):(y=Qr(W),y.c(),y.m(c,v)):y&&(y.d(1),y=null),de[0]&2048&&(x=!(((Se=W[11])==null?void 0:Se.indexOf("firstName"))>=0)),x?G?G.p(W,de):(G=Zr(W),G.c(),G.m(c,B)):G&&(G.d(1),G=null),de[0]&2048&&(M=!(((it=W[11])==null?void 0:it.indexOf("lastName"))>=0)),M?J?J.p(W,de):(J=Kr(W),J.c(),J.m(c,P)):J&&(J.d(1),J=null),de[0]&2048&&(D=!(((ot=W[11])==null?void 0:ot.indexOf("birthDate"))>=0)),D?fe?fe.p(W,de):(fe=tn(W),fe.c(),fe.m(c,k)):fe&&(fe.d(1),fe=null),de[0]&2048&&(Q=!(((st=W[11])==null?void 0:st.indexOf("birthPlace"))>=0)),Q?pe?pe.p(W,de):(pe=un(W),pe.c(),pe.m(c,X)):pe&&(pe.d(1),pe=null),de[0]&2048&&(V=!(((ut=W[11])==null?void 0:ut.indexOf("personalId"))>=0)),V?ue?ue.p(W,de):(ue=cn(W),ue.c(),ue.m(c,ye)):ue&&(ue.d(1),ue=null),de[0]&2048&&(he=!(((yt=W[11])==null?void 0:yt.indexOf("currency"))>=0)),he?S?S.p(W,de):(S=fn(W),S.c(),S.m(c,O)):S&&(S.d(1),S=null),de[0]&16777216&&Y!==(Y=W[24]("registerNext")+"")&&ie(Z,Y),de[0]&4194304&&te!==(te=!W[22])&&(N.disabled=te)},i:xe,o:xe,d(W){W&&ce(t),y&&y.d(),G&&G.d(),J&&J.d(),fe&&fe.d(),pe&&pe.d(),ue&&ue.d(),S&&S.d(),e[62](null),w=!1,Ce(j)}}}function el(e,t,r){let a;Ia(e,Wu,_=>r(24,a=_));let{endpoint:n=""}=t,{lang:o=""}=t,{licenseyears:i=""}=t,{disabledfields:s=""}=t,{personalidlength:u=""}=t,{mbsource:l}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,c=!1,f=!1,v=!1,x=!1,B=!1,M=!1,P=!1,D=!1,k=!1,Q=!1,X,V="",ye="",he="",O=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],N,Y=[1,2,3,4,5,6,7,8,9,10,11,12],Z,te=[],w,j="",y=[],G="",J="",fe=new Date,pe,ue,S,C={},K={title:!1,firstname:!1,lastname:!1,birthPlace:!1,birthDate:!1,currency:!1,personalId:!1},Be=!1,He=!0,Te;const Le=()=>{fetch(m).then(we=>we.json()).then(we=>{Object.keys(we).forEach(Ue=>{jr(Ue,we[Ue])})}).catch(we=>{console.log(we)})};Object.keys(Wr).forEach(_=>{jr(_,Wr[_])});const Ge=()=>{ue=parseInt(Br(Dr(new Date(fe),parseInt(i,10)),"yyyy"),10),pe=parseInt(Br(Dr(new Date(fe),100+parseInt(i,10)),"yyyy"),10);for(let _=ue;_>=pe;_--)te.push(_);r(23,He=!1)},W=()=>{C.birth={},C.birth.day=N,C.birth.month=Z,C.birth.year=w,w&&Z&&N?(S=ci(new Date(fe),ns(`${w}-${Z}-${N}`,"yyyy-MM-dd",new Date)).toString(),r(4,v=S<i)):r(4,v=!0),K.birthDate=!v,Se()},de=()=>{fetch(`${n}/v1/player/operatorSupportedCurrencies`).then(_=>_.json()).then(_=>{r(19,y=_.currencies),G||(r(20,G=y[0]),K.currency=!0)})},bt=(_,we)=>{if(_==="birth"&&(_="birthDate"),!(s.indexOf(_)>=0))switch(_){case"title":r(12,V=we),ot();break;case"firstname":r(13,ye=we),st();break;case"lastname":r(14,he=we),ut();break;case"birthPlace":r(18,j=we),fr();break;case"birthDate":r(15,N=we.day),r(16,Z=we.month),r(17,w=we.year),W();break;case"personalId":r(21,J=we),mr();break;case"currency":r(20,G=we),K.currency=!0;break}},Se=()=>{r(22,Be=Object.keys(K).every(_=>s.includes(_)?!0:K[_]!==!1))},it=_=>!!(_&&_.length>=2&&_.length<=50),ot=()=>{C.title=V,M=!V,K.title=!M,Se()},st=()=>{C.firstname=ye,r(2,c=!it(ye)),K.firstname=!c,Se()},ut=()=>{C.lastname=he,r(3,f=!it(he)),K.lastname=!f,Se()},yt=()=>(C.birthPlace=j,!!(j&&j.length<=120)),fr=()=>{C.birthPlace=j,r(5,x=!yt()),K.birthPlace=!x,Se()},dr=()=>!!(J&&J.length===Number(u)&&/^\d+$/.test(J)),mr=()=>{C.personalId=J,r(6,B=!dr()),K.personalId=dr(),Se()},gr=_=>{C.currency=G,_.preventDefault(),window.postMessage({type:"RegisterStepTwo",registerStepTwoData:C},window.location.href)},ia=()=>{C.currency=G,window.postMessage({type:"GoBackStepTwo",registerStepTwoData:C},window.location.href)},vr=_=>{if(_.data)switch(_.data.type){case"StepTwoDataBackup":const we=_.data.userData;for(const Ue in we)bt(Ue,we[Ue]);r(22,Be=Object.keys(K).every(Ue=>s.includes(Ue)?!0:K[Ue]!==!1));break}},oa=()=>{r(11,X=s.split(","))},sa=()=>{qu(o)};Ra(()=>(window.addEventListener("message",vr,!1),()=>{window.removeEventListener("message",vr)}));function ua(){V=lt(this),r(12,V)}function la(){ye=this.value,r(13,ye)}const ca=()=>r(7,P=!0),ha=()=>r(7,P=!1);function fa(){he=this.value,r(14,he)}const da=()=>r(8,D=!0),ma=()=>r(8,D=!1);function ga(){N=lt(this),r(15,N),r(25,O)}function va(){Z=lt(this),r(16,Z),r(26,Y)}function pa(){w=lt(this),r(17,w),r(27,te)}function ba(){j=this.value,r(18,j)}const ya=()=>r(9,k=!0),wa=()=>r(9,k=!1);function _a(){J=this.value,r(21,J)}const Ta=()=>r(10,Q=!0),Ea=()=>r(10,Q=!1);function xa(){G=lt(this),r(20,G),r(19,y)}const Pa=_=>gr(_);function Ca(_){Wt[_?"unshift":"push"](()=>{Te=_,r(1,Te)})}return e.$$set=_=>{"endpoint"in _&&r(36,n=_.endpoint),"lang"in _&&r(37,o=_.lang),"licenseyears"in _&&r(0,i=_.licenseyears),"disabledfields"in _&&r(38,s=_.disabledfields),"personalidlength"in _&&r(39,u=_.personalidlength),"mbsource"in _&&r(40,l=_.mbsource),"clientstyling"in _&&r(41,h=_.clientstyling),"clientstylingurl"in _&&r(42,d=_.clientstylingurl),"translationurl"in _&&r(43,m=_.translationurl)},e.$$.update=()=>{e.$$.dirty[1]&160&&n&&s.indexOf("currency")===-1&&de(),e.$$.dirty[1]&64&&o&&sa(),e.$$.dirty[0]&1&&i&&Ge(),e.$$.dirty[1]&128&&s&&oa(),e.$$.dirty[0]&2|e.$$.dirty[1]&1024&&h&&Te&&Xu(Te,h),e.$$.dirty[0]&2|e.$$.dirty[1]&2048&&d&&Te&&Vu(Te,d),e.$$.dirty[0]&2|e.$$.dirty[1]&512&&l&&Te&&zu(Te,`${l}.Style`),e.$$.dirty[1]&4096&&m&&Le()},[i,Te,c,f,v,x,B,P,D,k,Q,X,V,ye,he,N,Z,w,j,y,G,J,Be,He,a,O,Y,te,W,ot,st,ut,fr,mr,gr,ia,n,o,s,u,l,h,d,m,ua,la,ca,ha,fa,da,ma,ga,va,pa,ba,ya,wa,_a,Ta,Ea,xa,Pa,Ca]}class aa extends Ja{constructor(t){super(),Qa(this,t,el,Ku,gn,{endpoint:36,lang:37,licenseyears:0,disabledfields:38,personalidlength:39,mbsource:40,clientstyling:41,clientstylingurl:42,translationurl:43},Qu,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[36]}set endpoint(t){this.$$set({endpoint:t}),Me()}get lang(){return this.$$.ctx[37]}set lang(t){this.$$set({lang:t}),Me()}get licenseyears(){return this.$$.ctx[0]}set licenseyears(t){this.$$set({licenseyears:t}),Me()}get disabledfields(){return this.$$.ctx[38]}set disabledfields(t){this.$$set({disabledfields:t}),Me()}get personalidlength(){return this.$$.ctx[39]}set personalidlength(t){this.$$set({personalidlength:t}),Me()}get mbsource(){return this.$$.ctx[40]}set mbsource(t){this.$$set({mbsource:t}),Me()}get clientstyling(){return this.$$.ctx[41]}set clientstyling(t){this.$$set({clientstyling:t}),Me()}get clientstylingurl(){return this.$$.ctx[42]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Me()}get translationurl(){return this.$$.ctx[43]}set translationurl(t){this.$$set({translationurl:t}),Me()}}Za(aa,{endpoint:{},lang:{},licenseyears:{},disabledfields:{},personalidlength:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=aa;
|