@everymatrix/cashier-step-up-cashpoint 1.99.57 → 1.99.59

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.
@@ -10,7 +10,7 @@ var ot = (e, t, n) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writ
10
10
  rr.call(t, n) && ot(e, n, t[n]);
11
11
  return e;
12
12
  }, st = (e, t) => er(e, tr(t));
13
- var Q = (e, t, n) => (ot(e, typeof t != "symbol" ? t + "" : t, n), n);
13
+ var Q = (e, t, n) => ot(e, typeof t != "symbol" ? t + "" : t, n);
14
14
  var se = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (u) => {
16
16
  try {
@@ -70,8 +70,7 @@ function sr(e, t, n) {
70
70
  }
71
71
  }
72
72
  function ar(e) {
73
- if (!e)
74
- return document;
73
+ if (!e) return document;
75
74
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
76
75
  return t && /** @type {ShadowRoot} */
77
76
  t.host ? (
@@ -141,8 +140,7 @@ function Ae(e) {
141
140
  Me = e;
142
141
  }
143
142
  function dr() {
144
- if (!Me)
145
- throw new Error("Function called outside component initialization");
143
+ if (!Me) throw new Error("Function called outside component initialization");
146
144
  return Me;
147
145
  }
148
146
  function pr(e) {
@@ -173,8 +171,7 @@ function Y() {
173
171
  } catch (t) {
174
172
  throw ye.length = 0, ge = 0, t;
175
173
  }
176
- for (Ae(null), ye.length = 0, ge = 0; Ge.length; )
177
- Ge.pop()();
174
+ for (Ae(null), ye.length = 0, ge = 0; Ge.length; ) Ge.pop()();
178
175
  for (let t = 0; t < Ee.length; t += 1) {
179
176
  const n = Ee[t];
180
177
  at.has(n) || (at.add(n), n());
@@ -494,8 +491,7 @@ function Hr(e, t) {
494
491
  }
495
492
  }
496
493
  function Ar(e, t) {
497
- if (!e || !t)
498
- return;
494
+ if (!e || !t) return;
499
495
  const n = new URL(t);
500
496
  fetch(n.href).then((r) => r.text()).then((r) => {
501
497
  const i = document.createElement("style");
@@ -505,8 +501,7 @@ function Ar(e, t) {
505
501
  });
506
502
  }
507
503
  function Mr(e, t, n, r = !1) {
508
- if (!window.emMessageBus)
509
- return;
504
+ if (!window.emMessageBus) return;
510
505
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
511
506
  return n = Br(e, t), n;
512
507
  window[ve] || (window[ve] = {}), n = Pr(e, t);
@@ -527,8 +522,7 @@ function Br(e, t) {
527
522
  }
528
523
  function Pr(e, t) {
529
524
  return window.emMessageBus.subscribe(t, (n) => {
530
- if (!e)
531
- return;
525
+ if (!e) return;
532
526
  const r = e.getRootNode(), i = window[ve];
533
527
  let o = i[t] && i[t].sheet;
534
528
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(n), i[t] = {
@@ -680,8 +674,7 @@ var gt = function(e, t) {
680
674
  return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
681
675
  n.__proto__ = r;
682
676
  } || function(n, r) {
683
- for (var i in r)
684
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
677
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
685
678
  }, gt(e, t);
686
679
  };
687
680
  function Xe(e, t) {
@@ -697,25 +690,22 @@ var ne = function() {
697
690
  return ne = Object.assign || function(t) {
698
691
  for (var n, r = 1, i = arguments.length; r < i; r++) {
699
692
  n = arguments[r];
700
- for (var o in n)
701
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
693
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
702
694
  }
703
695
  return t;
704
696
  }, ne.apply(this, arguments);
705
697
  };
706
698
  function Qr(e, t) {
707
699
  var n = {};
708
- for (var r in e)
709
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
700
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
710
701
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
711
702
  for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
712
703
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
713
704
  return n;
714
705
  }
715
706
  function lt(e, t, n) {
716
- if (n || arguments.length === 2)
717
- for (var r = 0, i = t.length, o; r < i; r++)
718
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
707
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
708
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
719
709
  return e.concat(o || Array.prototype.slice.call(t));
720
710
  }
721
711
  function ut(e, t) {
@@ -770,8 +760,7 @@ var ti = function() {
770
760
  return Ve = Object.assign || function(t) {
771
761
  for (var n, r = 1, i = arguments.length; r < i; r++) {
772
762
  n = arguments[r];
773
- for (var o in n)
774
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
763
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
775
764
  }
776
765
  return t;
777
766
  }, Ve.apply(this, arguments);
@@ -917,8 +906,7 @@ var N = function() {
917
906
  return N = Object.assign || function(t) {
918
907
  for (var n, r = 1, i = arguments.length; r < i; r++) {
919
908
  n = arguments[r];
920
- for (var o in n)
921
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
909
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
922
910
  }
923
911
  return t;
924
912
  }, N.apply(this, arguments);
@@ -2560,8 +2548,7 @@ function pi(e, t) {
2560
2548
  n += u;
2561
2549
  for (; s-- > 0; )
2562
2550
  n = l + n;
2563
- } else
2564
- i === "J" ? n += "H" : n += i;
2551
+ } else i === "J" ? n += "H" : n += i;
2565
2552
  }
2566
2553
  return n;
2567
2554
  }
@@ -3164,8 +3151,7 @@ function xt(e) {
3164
3151
  if (delete t.location, pn(t) || mn(t))
3165
3152
  for (var n in t.options)
3166
3153
  delete t.options[n].location, xt(t.options[n].value);
3167
- else
3168
- cn(t) && bn(t.style) || (fn(t) || dn(t)) && bt(t.style) ? delete t.style.location : gn(t) && xt(t.children);
3154
+ else cn(t) && bn(t.style) || (fn(t) || dn(t)) && bt(t.style) ? delete t.style.location : gn(t) && xt(t.children);
3169
3155
  });
3170
3156
  }
3171
3157
  function Li(e, t) {
@@ -4042,13 +4028,11 @@ function So(e) {
4042
4028
  if (
4043
4029
  /*isOidcFlow*/
4044
4030
  g[14]
4045
- )
4046
- return Lo;
4031
+ ) return Lo;
4047
4032
  if (
4048
4033
  /*selectedChannel*/
4049
4034
  g[1]
4050
- )
4051
- return Po;
4035
+ ) return Po;
4052
4036
  }
4053
4037
  let f = d(e), m = f && f(e);
4054
4038
  function _(g, T) {
@@ -4056,28 +4040,24 @@ function So(e) {
4056
4040
  /*isLoading*/
4057
4041
  g[4] && /*showOtpInput*/
4058
4042
  g[13]
4059
- )
4060
- return Ro;
4043
+ ) return Ro;
4061
4044
  if (
4062
4045
  /*showOtpInput*/
4063
4046
  g[13] && /*config*/
4064
4047
  g[5]
4065
- )
4066
- return ko;
4048
+ ) return ko;
4067
4049
  }
4068
4050
  let b = _(e), v = b && b(e);
4069
4051
  function y(g, T) {
4070
4052
  if (
4071
4053
  /*showResendOtp*/
4072
4054
  g[10]
4073
- )
4074
- return Uo;
4055
+ ) return Uo;
4075
4056
  if (
4076
4057
  /*showOtpInput*/
4077
4058
  g[13] && /*config*/
4078
4059
  g[5]
4079
- )
4080
- return Do;
4060
+ ) return Do;
4081
4061
  }
4082
4062
  let M = y(e), w = M && M(e);
4083
4063
  return {
@@ -4895,8 +4875,7 @@ function Vo(e, t, n) {
4895
4875
  }, Pt = (c, x) => {
4896
4876
  const S = c.key, U = c.ctrlKey || c.metaKey;
4897
4877
  if (/^[a-z0-9]$/i.test(S)) {
4898
- if (U && S.toLowerCase() === "v")
4899
- return;
4878
+ if (U && S.toLowerCase() === "v") return;
4900
4879
  c.preventDefault(), nt(x, S);
4901
4880
  const j = he[x + 1];
4902
4881
  j == null || j.focus();
@@ -4904,8 +4883,7 @@ function Vo(e, t, n) {
4904
4883
  c.preventDefault(), b[x] !== "" && nt(x, "");
4905
4884
  const j = he[x - 1];
4906
4885
  j == null || j.focus();
4907
- } else
4908
- S === "Enter" && (c.preventDefault(), rt());
4886
+ } else S === "Enter" && (c.preventDefault(), rt());
4909
4887
  }, Vn = () => {
4910
4888
  W == "stateful" && (Mt(), n(10, G = !1));
4911
4889
  const c = new CustomEvent("otpResendRequested");
@@ -0,0 +1,3 @@
1
+ "use strict";var er=Object.defineProperty,tr=Object.defineProperties;var nr=Object.getOwnPropertyDescriptors;var It=Object.getOwnPropertySymbols;var rr=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;var ot=(e,t,n)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ne=(e,t)=>{for(var n in t||(t={}))rr.call(t,n)&&ot(e,n,t[n]);if(It)for(var n of It(t))ir.call(t,n)&&ot(e,n,t[n]);return e},st=(e,t)=>tr(e,nr(t));var Q=(e,t,n)=>ot(e,typeof t!="symbol"?t+"":t,n);var se=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(l){i(l)}},s=u=>{try{a(n.throw(u))}catch(l){i(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function J(){}function rn(e){return e()}function Nt(){return Object.create(null)}function ce(e){e.forEach(rn)}function Tt(e){return typeof e=="function"}function on(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function or(e){return Object.keys(e).length===0}function sn(e,...t){if(e==null){for(const r of t)r(void 0);return J}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function sr(e,t,n){e.$$.on_destroy.push(sn(t,n))}function E(e,t){e.appendChild(t)}function ar(e,t,n){const r=lr(e);if(!r.getElementById(t)){const i=C("style");i.id=t,i.textContent=n,ur(r,i)}}function lr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ur(e,t){return E(e.head||e,t),t.sheet}function B(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function hr(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function C(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function L(e){return document.createTextNode(e)}function V(){return L(" ")}function cr(){return L("")}function re(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function p(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function fr(e){return Array.from(e.childNodes)}function D(e,t){t=""+t,e.data!==t&&(e.data=t)}function te(e,t,n){e.classList.toggle(t,!!n)}function dr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let Me;function Ae(e){Me=e}function pr(){if(!Me)throw new Error("Function called outside component initialization");return Me}function mr(e){pr().$$.on_mount.push(e)}const ye=[],Ge=[];let Ee=[];const kt=[],gr=Promise.resolve();let pt=!1;function br(){pt||(pt=!0,gr.then(Y))}function mt(e){Ee.push(e)}const at=new Set;let ge=0;function Y(){if(ge!==0)return;const e=Me;do{try{for(;ge<ye.length;){const t=ye[ge];ge++,Ae(t),yr(t.$$)}}catch(t){throw ye.length=0,ge=0,t}for(Ae(null),ye.length=0,ge=0;Ge.length;)Ge.pop()();for(let t=0;t<Ee.length;t+=1){const n=Ee[t];at.has(n)||(at.add(n),n())}Ee.length=0}while(ye.length);for(;kt.length;)kt.pop()();pt=!1,at.clear(),Ae(e)}function yr(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(mt)}}function vr(e){const t=[],n=[];Ee.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ee=t}const Er=new Set;function _r(e,t){e&&e.i&&(Er.delete(e),e.i(t))}function Rt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function xr(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),mt(()=>{const o=e.$$.on_mount.map(rn).filter(Tt);e.$$.on_destroy?e.$$.on_destroy.push(...o):ce(o),e.$$.on_mount=[]}),i.forEach(mt)}function wr(e,t){const n=e.$$;n.fragment!==null&&(vr(n.after_update),ce(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Sr(e,t){e.$$.dirty[0]===-1&&(ye.push(e),br(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Tr(e,t,n,r,i,o,s=null,a=[-1]){const u=Me;Ae(e);const l=e.$$={fragment:null,ctx:[],props:o,update:J,not_equal:i,bound:Nt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Nt(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let h=!1;if(l.ctx=n?n(e,t.props||{},(d,f,...m)=>{const _=m.length?m[0]:f;return l.ctx&&i(l.ctx[d],l.ctx[d]=_)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](_),h&&Sr(e,d)),f}):[],l.update(),h=!0,ce(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const d=fr(t.target);l.fragment&&l.fragment.l(d),d.forEach(A)}else l.fragment&&l.fragment.c();t.intro&&_r(e.$$.fragment),xr(e,t.target,t.anchor),Y()}Ae(u)}let an;typeof HTMLElement=="function"&&(an=class extends HTMLElement{constructor(t,n,r){super();Q(this,"$$ctor");Q(this,"$$s");Q(this,"$$c");Q(this,"$$cn",!1);Q(this,"$$d",{});Q(this,"$$r",!1);Q(this,"$$p_d",{});Q(this,"$$l",{});Q(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return se(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=C("slot"),o!=="default"&&p(s,"name",o)},m:function(l,h){B(l,s,h)},d:function(l){l&&A(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=dr(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Re(s,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:st(Ne({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{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 s=Re(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Re(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Re(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Or(e,t,n,r,i,o){let s=class extends an{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Re(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class Cr{constructor(){Q(this,"$$");Q(this,"$$set")}$destroy(){wr(this,1),this.$destroy=J}$on(t,n){if(!Tt(n))return J;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!or(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Hr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Hr);const ve="__WIDGET_GLOBAL_STYLE_CACHE__";function Ar(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Mr(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Br(e,t,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=Pr(e,t),n;window[ve]||(window[ve]={}),n=Lr(e,t);const o=n.unsubscribe.bind(n),s=()=>{if(window[ve][t]){const a=window[ve][t];a.refCount>1?a.refCount=a.refCount-1:delete window[ve][t]}o()};return n.unsubscribe=s,n}function Pr(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,r=>{e&&(n.innerHTML=r,e.appendChild(n))})}function Lr(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const r=e.getRootNode(),i=window[ve];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),i[t]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}const be=[];function Ir(e,t){return{subscribe:ze(e,t).subscribe}}function ze(e,t=J){let n;const r=new Set;function i(a){if(on(e,a)&&(e=a,n)){const u=!be.length;for(const l of r)l[1](),be.push(l,e);if(u){for(let l=0;l<be.length;l+=2)be[l][0](be[l+1]);be.length=0}}}function o(a){i(a(e))}function s(a,u=J){const l=[a,u];return r.add(l),r.size===1&&(n=t(i,o)||J),a(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function Te(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ir(n,(s,a)=>{let u=!1;const l=[];let h=0,d=J;const f=()=>{if(h)return;d();const _=t(r?l[0]:l,s,a);o?s(_):d=Tt(_)?_:J},m=i.map((_,b)=>sn(_,v=>{l[b]=v,h&=~(1<<b),u&&f()},()=>{h|=1<<b}));return u=!0,f(),function(){ce(m),d(),u=!1}})}function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kr=function(t){return Rr(t)&&!Dr(t)};function Rr(e){return!!e&&typeof e=="object"}function Dr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Vr(e)}var Ur=typeof Symbol=="function"&&Symbol.for,Gr=Ur?Symbol.for("react.element"):60103;function Vr(e){return e.$$typeof===Gr}function Fr(e){return Array.isArray(e)?[]:{}}function Be(e,t){return t.clone!==!1&&t.isMergeableObject(e)?_e(Fr(e),e,t):e}function jr(e,t,n){return e.concat(t).map(function(r){return Be(r,n)})}function zr(e,t){if(!t.customMerge)return _e;var n=t.customMerge(e);return typeof n=="function"?n:_e}function Xr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Dt(e){return Object.keys(e).concat(Xr(e))}function ln(e,t){try{return t in e}catch(n){return!1}}function $r(e,t){return ln(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Wr(e,t,n){var r={};return n.isMergeableObject(e)&&Dt(e).forEach(function(i){r[i]=Be(e[i],n)}),Dt(t).forEach(function(i){$r(e,i)||(ln(e,i)&&n.isMergeableObject(t[i])?r[i]=zr(i,n)(e[i],t[i],n):r[i]=Be(t[i],n))}),r}function _e(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||jr,n.isMergeableObject=n.isMergeableObject||kr,n.cloneUnlessOtherwiseSpecified=Be;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Wr(e,t,n):Be(t,n)}_e.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return _e(r,i,n)},{})};var qr=_e,Zr=qr;const Qr=Nr(Zr);var gt=function(e,t){return gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},gt(e,t)};function Xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ne=function(){return ne=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ne.apply(this,arguments)};function Jr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function lt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ut(e,t){var n=t&&t.cache?t.cache:ii,r=t&&t.serializer?t.serializer:ni,i=t&&t.strategy?t.strategy:ei;return i(e,{cache:n,serializer:r})}function Yr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Kr(e,t,n,r){var i=Yr(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function un(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function hn(e,t,n,r,i){return n.bind(t,e,r,i)}function ei(e,t){var n=e.length===1?Kr:un;return hn(e,this,n,t.cache.create(),t.serializer)}function ti(e,t){return hn(e,this,un,t.cache.create(),t.serializer)}var ni=function(){return JSON.stringify(arguments)},ri=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),ii={create:function(){return new ri}},ht={variadic:ti},Ve=function(){return Ve=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ve.apply(this,arguments)};var O;(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"})(O||(O={}));var P;(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"})(P||(P={}));var xe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(xe||(xe={}));function Ut(e){return e.type===P.literal}function oi(e){return e.type===P.argument}function cn(e){return e.type===P.number}function fn(e){return e.type===P.date}function dn(e){return e.type===P.time}function pn(e){return e.type===P.select}function mn(e){return e.type===P.plural}function si(e){return e.type===P.pound}function gn(e){return e.type===P.tag}function bn(e){return!!(e&&typeof e=="object"&&e.type===xe.number)}function bt(e){return!!(e&&typeof e=="object"&&e.type===xe.dateTime)}var yn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ai=/(?:[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 li(e){var t={};return e.replace(ai,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-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=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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 N=function(){return N=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},N.apply(this,arguments)};var ui=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ui).filter(function(f){return f.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,h=u;l<h.length;l++){var d=h[l];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function ci(e){return e.replace(/^(.*?)-/,"")}var Gt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vn=/^(@+)?(\+|#+)?[rs]?$/g,fi=/(\*)(0+)|(#+)(0+)|(0+)/g,En=/^(0+)$/;function Vt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(vn,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function _n(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 di(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 n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!En.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ft(e){var t={},n=_n(e);return n||t}function pi(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ci(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return N(N({},u),Ft(l))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return N(N({},u),Ft(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(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(fi,function(u,l,h,d,f,m){if(l)t.minimumIntegerDigits=h.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(En.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Gt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Gt,function(u,l,h,d,f,m){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=N(N({},t),Vt(o)));continue}if(vn.test(i.stem)){t=N(N({},t),Vt(i.stem));continue}var s=_n(i.stem);s&&(t=N(N({},t),s));var a=di(i.stem);a&&(t=N(N({},t),a))}return t}var ke={"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 mi(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=gi(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function gi(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 n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=ke[r||""]||ke[n||""]||ke["".concat(n,"-001")]||ke["001"];return i[0]}var ct,bi=new RegExp("^".concat(yn.source,"*")),yi=new RegExp("".concat(yn.source,"*$"));function H(e,t){return{start:e,end:t}}var vi=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ei=!!String.fromCodePoint,_i=!!Object.fromEntries,xi=!!String.prototype.codePointAt,wi=!!String.prototype.trimStart,Si=!!String.prototype.trimEnd,Ti=!!Number.isSafeInteger,Oi=Ti?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},yt=!0;try{var Ci=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yt=((ct=Ci.exec("a"))===null||ct===void 0?void 0:ct[0])==="a"}catch(e){yt=!1}var jt=vi?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},vt=Ei?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},zt=_i?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},xn=xi?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Hi=wi?function(t){return t.trimStart()}:function(t){return t.replace(bi,"")},Ai=Si?function(t){return t.trimEnd()}:function(t){return t.replace(yi,"")};function wn(e,t){return new RegExp(e,t)}var Et;if(yt){var Xt=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Et=function(t,n){var r;Xt.lastIndex=n;var i=Xt.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Et=function(t,n){for(var r=[];;){var i=xn(t,n);if(i===void 0||Sn(i)||Li(i))break;r.push(i),n+=i>=65536?2:1}return vt.apply(void 0,r)};var Mi=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:P.pound,location:H(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(O.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&_t(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:"<".concat(i,"/>"),location:H(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_t(this.char()))return this.error(O.INVALID_TAG,H(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(O.UNMATCHED_CLOSING_TAG,H(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:P.tag,value:i,children:s,location:H(r,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,H(a,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,H(r,this.clonePosition()))}else return this.error(O.INVALID_TAG,H(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Pi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=H(r,this.clonePosition());return{val:{type:P.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Bi(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 n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return vt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),vt(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,H(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(O.MALFORMED_ARGUMENT,H(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:i,location:H(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(O.MALFORMED_ARGUMENT,H(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Et(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=H(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,H(s,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 f=Ai(d.val);if(f.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var m=H(h,this.clonePosition());l={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var b=H(i,this.clonePosition());if(l&&jt(l==null?void 0:l.style,"::",0)){var v=Hi(l.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(v,l.styleLocation);return d.err?d:{val:{type:P.number,value:r,location:b,style:d.val},err:null}}else{if(v.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,b);var y=v;this.locale&&(y=mi(v,this.locale));var f={type:xe.dateTime,pattern:y,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?li(y):{}},M=a==="date"?P.date:P.time;return{val:{type:M,value:r,location:b,style:f},err:null}}}return{val:{type:a==="number"?P.number:a==="date"?P.date:P.time,value:r,location:b,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,H(w,Ve({},w)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),T=0;if(a!=="select"&&g.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),g=this.parseIdentifierIfPossible(),T=d.val}var k=this.tryParsePluralOrSelectOptions(t,a,n,g);if(k.err)return k;var _=this.tryParseArgumentClose(i);if(_.err)return _;var R=H(i,this.clonePosition());return a==="select"?{val:{type:P.select,value:r,options:zt(k.val),location:R},err:null}:{val:{type:P.plural,value:r,options:zt(k.val),offset:T,pluralType:a==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,H(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,H(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=hi(t)}catch(i){return this.error(O.INVALID_NUMBER_SKELETON,n)}return{val:{type:xe.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?pi(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],u=new Set,l=i.value,h=i.location;;){if(l.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;h=H(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,n,r);if(_.err)return _;var b=this.tryParseArgumentClose(m);if(b.err)return b;a.push([l,{value:_.val,location:H(m,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}return a.length===0?this.error(n==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(O.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=H(i,this.clonePosition());return o?(s*=r,Oi(s)?{val:s,err:null}:this.error(n,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 n=xn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},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(jt(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!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 n=this.offset();if(n===t)break;if(n>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()&&Sn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function _t(e){return e>=97&&e<=122||e>=65&&e<=90}function Bi(e){return _t(e)||e===47}function Pi(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 Sn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Li(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 xt(e){e.forEach(function(t){if(delete t.location,pn(t)||mn(t))for(var n in t.options)delete t.options[n].location,xt(t.options[n].value);else cn(t)&&bn(t.style)||(fn(t)||dn(t))&&bt(t.style)?delete t.style.location:gn(t)&&xt(t.children)})}function Ii(e,t){t===void 0&&(t={}),t=Ve({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Mi(e,t).parse();if(n.err){var r=SyntaxError(O[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||xt(n.val),n.val}var we;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(we||(we={}));var $e=function(e){Xe(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),$t=function(e){Xe(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),we.INVALID_VALUE,o)||this}return t}($e),Ni=function(e){Xe(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),we.INVALID_VALUE,i)||this}return t}($e),ki=function(e){Xe(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),we.MISSING_VALUE,r)||this}return t}($e),$;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})($||($={}));function Ri(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==$.literal||n.type!==$.literal?t.push(n):r.value+=n.value,t},[])}function Di(e){return typeof e=="function"}function De(e,t,n,r,i,o,s){if(e.length===1&&Ut(e[0]))return[{type:$.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];if(Ut(h)){a.push({type:$.literal,value:h.value});continue}if(si(h)){typeof o=="number"&&a.push({type:$.literal,value:n.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new ki(d,s);var f=i[d];if(oi(h)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?$.literal:$.object,value:f});continue}if(fn(h)){var m=typeof h.style=="string"?r.date[h.style]:bt(h.style)?h.style.parsedOptions:void 0;a.push({type:$.literal,value:n.getDateTimeFormat(t,m).format(f)});continue}if(dn(h)){var m=typeof h.style=="string"?r.time[h.style]:bt(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:$.literal,value:n.getDateTimeFormat(t,m).format(f)});continue}if(cn(h)){var m=typeof h.style=="string"?r.number[h.style]:bn(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:$.literal,value:n.getNumberFormat(t,m).format(f)});continue}if(gn(h)){var _=h.children,b=h.value,v=i[b];if(!Di(v))throw new Ni(b,"function",s);var y=De(_,t,n,r,i,o),M=v(y.map(function(T){return T.value}));Array.isArray(M)||(M=[M]),a.push.apply(a,M.map(function(T){return{type:typeof T=="string"?$.literal:$.object,value:T}}))}if(pn(h)){var w=h.options[f]||h.options.other;if(!w)throw new $t(h.value,f,Object.keys(h.options),s);a.push.apply(a,De(w.value,t,n,r,i));continue}if(mn(h)){var w=h.options["=".concat(f)];if(!w){if(!Intl.PluralRules)throw new $e(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,we.MISSING_INTL_API,s);var g=n.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));w=h.options[g]||h.options.other}if(!w)throw new $t(h.value,f,Object.keys(h.options),s);a.push.apply(a,De(w.value,t,n,r,i,f-(h.offset||0)));continue}}return Ri(a)}function Ui(e,t){return t?ne(ne(ne({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ne(ne({},e[r]),t[r]||{}),n},{})):e}function Gi(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ui(e[r],t[r]),n},ne({},e)):e}function ft(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Vi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,lt([void 0],n,!1)))},{cache:ft(e.number),strategy:ht.variadic}),getDateTimeFormat:ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,lt([void 0],n,!1)))},{cache:ft(e.dateTime),strategy:ht.variadic}),getPluralRules:ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,lt([void 0],n,!1)))},{cache:ft(e.pluralRules),strategy:ht.variadic})}}var Fi=function(){function e(t,n,r,i){n===void 0&&(n=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,f){return!d.length||f.type!==$.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return De(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=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Jr(s,["formatters"]);this.ast=e.__parse(t,ne(ne({},a),{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=Gi(e.formats,r),this.formatters=i&&i.formatters||Vi(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 n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ii,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 ji(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const le={},zi=(e,t,n)=>n&&(t in le||(le[t]={}),e in le[t]||(le[t][e]=n),n),Tn=(e,t)=>{if(t==null)return;if(t in le&&e in le[t])return le[t][e];const n=We(t);for(let r=0;r<n.length;r++){const i=n[r],o=$i(i,e);if(o)return zi(e,t,o)}};let Ot;const Le=ze({});function Xi(e){return Ot[e]||null}function On(e){return e in Ot}function $i(e,t){if(!On(e))return null;const n=Xi(e);return ji(n,t)}function Wi(e){if(e==null)return;const t=We(e);for(let n=0;n<t.length;n++){const r=t[n];if(On(r))return r}}function Cn(e,...t){delete le[e],Le.update(n=>(n[e]=Qr.all([n[e]||{},...t]),n))}Te([Le],([e])=>Object.keys(e));Le.subscribe(e=>Ot=e);const Ue={};function qi(e,t){Ue[e].delete(t),Ue[e].size===0&&delete Ue[e]}function Hn(e){return Ue[e]}function Zi(e){return We(e).map(t=>{const n=Hn(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function wt(e){return e==null?!1:We(e).some(t=>{var n;return(n=Hn(t))==null?void 0:n.size})}function Qi(e,t){return Promise.all(t.map(r=>(qi(e,r),r().then(i=>i.default||i)))).then(r=>Cn(e,...r))}const He={};function An(e){if(!wt(e))return e in He?He[e]:Promise.resolve();const t=Zi(e);return He[e]=Promise.all(t.map(([n,r])=>Qi(n,r))).then(()=>{if(wt(e))return An(e);delete He[e]}),He[e]}const Ji={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"}}},Yi={fallbackLocale:null,loadingDelay:200,formats:Ji,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ki=Yi;function Se(){return Ki}const dt=ze(!1);var eo=Object.defineProperty,to=Object.defineProperties,no=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,qt=(e,t,n)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oo=(e,t)=>{for(var n in t||(t={}))ro.call(t,n)&&qt(e,n,t[n]);if(Wt)for(var n of Wt(t))io.call(t,n)&&qt(e,n,t[n]);return e},so=(e,t)=>to(e,no(t));let St;const Fe=ze(null);function Zt(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function We(e,t=Se().fallbackLocale){const n=Zt(e);return t?[...new Set([...n,...Zt(t)])]:n}function fe(){return St!=null?St:void 0}Fe.subscribe(e=>{St=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ao=e=>{if(e&&Wi(e)&&wt(e)){const{loadingDelay:t}=Se();let n;return typeof window!="undefined"&&fe()!=null&&t?n=window.setTimeout(()=>dt.set(!0),t):dt.set(!0),An(e).then(()=>{Fe.set(e)}).finally(()=>{clearTimeout(n),dt.set(!1)})}return Fe.set(e)},Oe=so(oo({},Fe),{set:ao}),qe=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var lo=Object.defineProperty,je=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Qt=(e,t,n)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ct=(e,t)=>{for(var n in t||(t={}))Mn.call(t,n)&&Qt(e,n,t[n]);if(je)for(var n of je(t))Bn.call(t,n)&&Qt(e,n,t[n]);return e},Ce=(e,t)=>{var n={};for(var r in e)Mn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&je)for(var r of je(e))t.indexOf(r)<0&&Bn.call(e,r)&&(n[r]=e[r]);return n};const Pe=(e,t)=>{const{formats:n}=Se();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},uo=qe(e=>{var t=e,{locale:n,format:r}=t,i=Ce(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Pe("number",r)),new Intl.NumberFormat(n,i)}),ho=qe(e=>{var t=e,{locale:n,format:r}=t,i=Ce(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Pe("date",r):Object.keys(i).length===0&&(i=Pe("date","short")),new Intl.DateTimeFormat(n,i)}),co=qe(e=>{var t=e,{locale:n,format:r}=t,i=Ce(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Pe("time",r):Object.keys(i).length===0&&(i=Pe("time","short")),new Intl.DateTimeFormat(n,i)}),fo=(e={})=>{var t=e,{locale:n=fe()}=t,r=Ce(t,["locale"]);return uo(Ct({locale:n},r))},po=(e={})=>{var t=e,{locale:n=fe()}=t,r=Ce(t,["locale"]);return ho(Ct({locale:n},r))},mo=(e={})=>{var t=e,{locale:n=fe()}=t,r=Ce(t,["locale"]);return co(Ct({locale:n},r))},go=qe((e,t=fe())=>new Fi(e,t,Se().formats,{ignoreTag:Se().ignoreTag})),bo=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=fe(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Tn(e,u);if(!h)h=(o=(i=(r=(n=Se()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))!=null?i: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(!a)return h;let d=h;try{d=go(h,u).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return d},yo=(e,t)=>mo(t).format(e),vo=(e,t)=>po(t).format(e),Eo=(e,t)=>fo(t).format(e),_o=(e,t=fe())=>Tn(e,t),xo=Te([Oe,Le],()=>bo);Te([Oe],()=>yo);Te([Oe],()=>vo);Te([Oe],()=>Eo);Te([Oe,Le],()=>_o);function Jt(e,t){Cn(e,t)}function wo(e){Oe.set(e)}const Yt={en:{otpTitle:"Code verification is required",popupMessage:"Please enter the security code received on your SMS/email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, your transaction will fail and you will be returned back to payment method.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resent OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",timeRemaining:"Code expires in:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS",channelEmail:"Email",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Identity verification",identityVerificationSubtitle:"Please verify your identity via {method} to proceed",sendCode:"Send code",waitSeconds:"Please wait for before resending:"},tr:{otpTitle:"Kod doğrulaması gereklidir",popupMessage:"Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama denemesi başarısız olursa, işleminiz başarısız olacak ve ödeme yöntemine geri döndürüleceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",accountBlocked:"OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",submissionError:"Bir şeyler ters gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",timeRemaining:"Kodun süresi doluyor:",selectChannelTitle:"Doğrulama yöntemi seçin",selectChannelMessage:"Doğrulama kodunuzu nasıl almak istediğinizi seçin",channelSMS:"SMS kodu",channelEmail:"E-posta kodu",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Kimlik doğrulama",identityVerificationSubtitle:"Devam etmek için lütfen kimliğinizi {method} ile doğrulayın",sendCode:"Kodu gönder",waitSeconds:"Tekrar göndermeden önce lütfen bekleyin:"},fr:{otpTitle:"La vérification par code est requise",popupMessage:"Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d'effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Saisir le code OTP",resendOtp:"Renvoyer le code OTP",submit:"Valider",close:"Fermer",invalidOtp:"Le code que vous avez saisi n'est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Une erreur s'est produite. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",timeRemaining:"Le code expire dans :",selectChannelTitle:"Sélectionner la méthode de vérification",selectChannelMessage:"Choisissez comment vous souhaitez recevoir votre code de vérification",channelSMS:"SMS",channelEmail:"E-mail",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Vérification d'identité",identityVerificationSubtitle:"Veuillez vérifier votre identité via {method} pour continuer",sendCode:"Envoyer le code",waitSeconds:"Veuillez patienter avant de renvoyer le code :"},da:{otpTitle:"Kodebekræftelse er påkrævet",popupMessage:"Indtast venligst sikkerhedskoden modtaget på din SMS/e-mailadresse for at udføre opdateringen.",popupMessageLastWarning:"Hvis det næste valideringsforsøg mislykkes, vil din transaktion mislykkes, og du vil blive sendt tilbage til betalingsmetoden.",minutes:"minutter",errorHeader:"Fejl",configError:"Kan ikke indlæse OTP-data. Prøv venligst igen senere.",otpHeading:"Indtast OTP",resendOtp:"Send OTP igen",submit:"Indsend",close:"Luk",invalidOtp:"Koden du har sendt er ikke gyldig. Prøv venligst igen.",accountBlocked:"For mange forsøg på OTP. Din konto er blevet blokeret i en time.",submissionError:"Noget gik galt. Prøv venligst igen.",otpExpiredMessage:"Valideringskoden er udløbet. Anmod venligst om en ny for at fortsætte.",timeRemaining:"Koden udløber om:",selectChannelTitle:"Vælg bekræftelsesmetode",selectChannelMessage:"Vælg, hvordan du gerne vil modtage din bekræftelseskode",channelSMS:"SMS",channelEmail:"E-mail",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Identitetsbekræftelse",identityVerificationSubtitle:"Bekræft venligst din identitet via {method} for at fortsætte",sendCode:"Send kode",waitSeconds:"Vent venligst før genafsendelse:"},de:{otpTitle:"Code-Verifizierung ist erforderlich",popupMessage:"Bitte geben Sie den Sicherheitscode ein, den Sie per SMS/E-Mail erhalten haben, um die Aktualisierung durchzuführen.",popupMessageLastWarning:"Wenn der nächste Validierungsversuch fehlschlägt, schlägt Ihre Transaktion fehl und Sie werden zur Zahlungsmethode zurückgeleitet.",minutes:"Minuten",errorHeader:"Fehler",configError:"OTP-Daten können nicht geladen werden. Bitte versuchen Sie es später erneut.",otpHeading:"OTP eingeben",resendOtp:"OTP erneut senden",submit:"Absenden",close:"Schließen",invalidOtp:"Der von Ihnen gesendete Code ist ungültig. Bitte versuchen Sie es erneut.",accountBlocked:"Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",submissionError:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",otpExpiredMessage:"Der Validierungscode ist abgelaufen. Bitte fordern Sie einen neuen an, um fortzufahren.",timeRemaining:"Code läuft ab in:",selectChannelTitle:"Verifizierungsmethode auswählen",selectChannelMessage:"Wählen Sie, wie Sie Ihren Verifizierungscode erhalten möchten",channelSMS:"SMS",channelEmail:"E-Mail",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Identitätsprüfung",identityVerificationSubtitle:"Bitte verifizieren Sie Ihre Identität über {method}, um fortzufahren",sendCode:"Code senden",waitSeconds:"Bitte warten Sie, bevor Sie erneut senden:"},nl:{otpTitle:"Codeverificatie is vereist",popupMessage:"Voer de beveiligingscode in die u via SMS/e-mail heeft ontvangen om de update uit te voeren.",popupMessageLastWarning:"Als de volgende validatiepoging mislukt, zal uw transactie mislukken en wordt u teruggestuurd naar de betaalmethode.",minutes:"minuten",errorHeader:"Fout",configError:"Kan OTP-gegevens niet laden. Probeer het later opnieuw.",otpHeading:"OTP invoeren",resendOtp:"OTP opnieuw verzenden",submit:"Verzenden",close:"Sluiten",invalidOtp:"De code die u heeft verzonden is niet geldig. Probeer het opnieuw.",accountBlocked:"Te veel OTP-pogingen. Uw account is voor één uur geblokkeerd.",submissionError:"Er is iets misgegaan. Probeer het opnieuw.",otpExpiredMessage:"De validatiecode is verlopen. Vraag een nieuwe aan om door te gaan.",timeRemaining:"Code verloopt over:",selectChannelTitle:"Verificatiemethode selecteren",selectChannelMessage:"Kies hoe u uw verificatiecode wilt ontvangen",channelSMS:"SMS",channelEmail:"E-mail",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Identiteitsverificatie",identityVerificationSubtitle:"Verifieer uw identiteit via {method} om door te gaan",sendCode:"Code verzenden",waitSeconds:"Wacht even voordat u opnieuw verzendt:"},ru:{otpTitle:"Требуется подтверждение кода",popupMessage:"Пожалуйста, введите код безопасности, полученный по SMS/на электронную почту, чтобы выполнить обновление.",popupMessageLastWarning:"Если следующая попытка проверки не удастся, ваша операция завершится ошибкой, и вы будете возвращены к способу оплаты.",minutes:"минут",errorHeader:"Ошибка",configError:"Не удалось загрузить данные OTP. Пожалуйста, попробуйте позже.",otpHeading:"Введите OTP",resendOtp:"Отправить OTP повторно",submit:"Отправить",close:"Закрыть",invalidOtp:"Отправленный вами код недействителен. Пожалуйста, попробуйте снова.",accountBlocked:"Слишком много попыток ввода OTP. Ваш аккаунт заблокирован на один час.",submissionError:"Что-то пошло не так. Пожалуйста, попробуйте снова.",otpExpiredMessage:"Код подтверждения истёк, пожалуйста, запросите новый, чтобы продолжить.",timeRemaining:"Код истекает через:",selectChannelTitle:"Выберите способ подтверждения",selectChannelMessage:"Выберите, как вы хотите получить код подтверждения",channelSMS:"SMS",channelEmail:"Email",sendCode:"Отправить код",waitSeconds:"Пожалуйста, подождите перед повторной отправкой:"},az:{otpTitle:"Kod təsdiqi tələb olunur",popupMessage:"Yeniləməni icra etmək üçün SMS/e-poçt ünvanınıza göndərilən təhlükəsizlik kodunu daxil edin.",popupMessageLastWarning:"Növbəti təsdiqləmə cəhdi baş tutmasa, əməliyyatınız alınmayacaq və ödəniş üsuluna qaytarılacaqsınız.",minutes:"dəqiqə",errorHeader:"Xəta",configError:"OTP məlumatları yüklənə bilmədi. Zəhmət olmasa sonra yenidən cəhd edin.",otpHeading:"OTP daxil edin",resendOtp:"OTP-ni yenidən göndər",submit:"Göndər",close:"Bağla",invalidOtp:"Göndərdiyiniz kod yalnışdır. Zəhmət olmasa yenidən cəhd edin.",accountBlocked:"OTP üçün çox sayda cəhd edildi. Hesabınız bir saat müddətinə bloklanıb.",submissionError:"Nəsə səhv getdi. Zəhmət olmasa yenidən cəhd edin.",otpExpiredMessage:"Təsdiqləmə kodunun müddəti bitib, davam etmək üçün yenisini tələb edin.",timeRemaining:"Kodun müddəti bitir:",selectChannelTitle:"Təsdiqləmə üsulunu seçin",selectChannelMessage:"Təsdiqləmə kodunuzu necə almaq istədiyinizi seçin",channelSMS:"SMS",channelEmail:"E-poçt",sendCode:"Kodu göndər",waitSeconds:"Yenidən göndərmədən əvvəl zəhmət olmasa gözləyin:"}};function So(e){ar(e,"svelte-gpy3mu",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}')}function Kt(e,t,n){const r=e.slice();return r[74]=t[n],r[75]=t,r[76]=n,r}function To(e){let t,n,r,i,o,s;function a(g,T){return g[14]?Mo:g[10]?Ao:g[13]?Co:Ho}let u=a(e),l=u(e),h=!e[14]&&tn(e);function d(g,T){if(g[14])return Io;if(g[1])return Lo}let f=d(e),m=f&&f(e);function _(g,T){if(g[4]&&g[13])return Do;if(g[13]&&g[5])return Ro}let b=_(e),v=b&&b(e);function y(g,T){if(g[10])return Go;if(g[13]&&g[5])return Uo}let M=y(e),w=M&&M(e);return{c(){t=C("div"),l.c(),n=V(),h&&h.c(),r=V(),m&&m.c(),i=V(),v&&v.c(),o=V(),s=C("div"),w&&w.c(),p(t,"class","OtpDescription"),p(s,"class","OtpActionButtons")},m(g,T){B(g,t,T),l.m(t,null),B(g,n,T),h&&h.m(g,T),B(g,r,T),m&&m.m(g,T),B(g,i,T),v&&v.m(g,T),B(g,o,T),B(g,s,T),w&&w.m(s,null)},p(g,T){u===(u=a(g))&&l?l.p(g,T):(l.d(1),l=u(g),l&&(l.c(),l.m(t,null))),g[14]?h&&(h.d(1),h=null):h?h.p(g,T):(h=tn(g),h.c(),h.m(r.parentNode,r)),f===(f=d(g))&&m?m.p(g,T):(m&&m.d(1),m=f&&f(g),m&&(m.c(),m.m(i.parentNode,i))),b===(b=_(g))&&v?v.p(g,T):(v&&v.d(1),v=b&&b(g),v&&(v.c(),v.m(o.parentNode,o))),M===(M=y(g))&&w?w.p(g,T):(w&&w.d(1),w=M&&M(g),w&&(w.c(),w.m(s,null)))},d(g){g&&(A(t),A(n),A(r),A(i),A(o),A(s)),l.d(),h&&h.d(g),m&&m.d(g),v&&v.d(g),w&&w.d()}}}function Oo(e){let t,n,r,i,o,s,a=e[21]("errorHeader")+"",u,l,h,d,f,m,_=e[21]("close")+"",b,v,y;return{c(){t=C("div"),n=C("div"),r=ee("svg"),i=ee("path"),o=V(),s=C("h2"),u=L(a),l=V(),h=C("p"),d=L(e[9]),f=V(),m=C("button"),b=L(_),p(i,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"viewBox","0 0 512 512"),p(n,"class","OtpErrorHeader"),p(m,"class","OtpButton error"),p(t,"class","OtpError")},m(M,w){B(M,t,w),E(t,n),E(n,r),E(r,i),E(n,o),E(n,s),E(s,u),E(t,l),E(t,h),E(h,d),E(t,f),E(t,m),E(m,b),v||(y=re(m,"click",e[31]),v=!0)},p(M,w){w[0]&2097152&&a!==(a=M[21]("errorHeader")+"")&&D(u,a),w[0]&512&&D(d,M[9]),w[0]&2097152&&_!==(_=M[21]("close")+"")&&D(b,_)},d(M){M&&A(t),v=!1,y()}}}function Co(e){let t,n,r,i;function o(l,h){return l[11]?Po:Bo}let s=o(e),a=s(e),u=e[7]&&en(e);return{c(){t=C("p"),a.c(),r=V(),u&&u.c(),i=cr(),p(t,"class",n=e[11]?"LastWarningMessage":"")},m(l,h){B(l,t,h),a.m(t,null),B(l,r,h),u&&u.m(l,h),B(l,i,h)},p(l,h){s===(s=o(l))&&a?a.p(l,h):(a.d(1),a=s(l),a&&(a.c(),a.m(t,null))),h[0]&2048&&n!==(n=l[11]?"LastWarningMessage":"")&&p(t,"class",n),l[7]?u?u.p(l,h):(u=en(l),u.c(),u.m(i.parentNode,i)):u&&(u.d(1),u=null)},d(l){l&&(A(t),A(r),A(i)),a.d(),u&&u.d(l)}}}function Ho(e){let t,n=(e[21]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"",r;return{c(){t=C("p"),r=L(n)},m(i,o){B(i,t,o),E(t,r)},p(i,o){o[0]&2097152&&n!==(n=(i[21]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"")&&D(r,n)},d(i){i&&A(t)}}}function Ao(e){let t,n=e[21]("otpExpiredMessage")+"",r;return{c(){t=C("p"),r=L(n),p(t,"class","OtpNoticeMessage"),p(t,"role","alert")},m(i,o){B(i,t,o),E(t,r)},p(i,o){o[0]&2097152&&n!==(n=i[21]("otpExpiredMessage")+"")&&D(r,n)},d(i){i&&A(t)}}}function Mo(e){let t,n=e[21]("identityVerificationSubtitle",{values:{method:e[0]}})+"",r;return{c(){t=C("p"),r=L(n),p(t,"class","IdentityVerificationSubtitle")},m(i,o){B(i,t,o),E(t,r)},p(i,o){o[0]&2097153&&n!==(n=i[21]("identityVerificationSubtitle",{values:{method:i[0]}})+"")&&D(r,n)},d(i){i&&A(t)}}}function Bo(e){let t=e[21]("popupMessage")+"",n;return{c(){n=L(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&2097152&&t!==(t=r[21]("popupMessage")+"")&&D(n,t)},d(r){r&&A(n)}}}function Po(e){let t=e[21]("popupMessageLastWarning")+"",n;return{c(){n=L(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&2097152&&t!==(t=r[21]("popupMessageLastWarning")+"")&&D(n,t)},d(r){r&&A(n)}}}function en(e){let t,n;return{c(){t=C("p"),n=L(e[9]),p(t,"class","OtpErrorMessage"),p(t,"role","alert")},m(r,i){B(r,t,i),E(t,n)},p(r,i){i[0]&512&&D(n,r[9])},d(r){r&&A(t)}}}function tn(e){let t,n,r,i,o,s,a,u,l,h,d,f,m,_,b,v=e[21]("channelSMS")+"",y,M,w,g,T,k,R,ie,W,G,Z,de,F,X,z=e[21]("channelEmail")+"",ae,ue,pe;return{c(){t=C("div"),n=C("label"),r=C("div"),i=V(),o=C("input"),a=V(),u=C("div"),l=ee("svg"),h=ee("path"),d=ee("circle"),f=ee("circle"),m=ee("circle"),_=V(),b=C("span"),y=L(v),M=V(),w=C("label"),g=C("div"),T=V(),k=C("input"),ie=V(),W=C("div"),G=ee("svg"),Z=ee("rect"),de=ee("path"),F=V(),X=C("span"),ae=L(z),p(r,"class","RadioIndicator"),te(r,"checked",e[1]===e[22].SMS),p(o,"type","radio"),p(o,"name","channel"),o.value=e[22].SMS,o.checked=s=e[1]===e[22].SMS,p(h,"d","M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"),p(d,"cx","9"),p(d,"cy","11"),p(d,"r","0.5"),p(d,"fill","currentColor"),p(f,"cx","12"),p(f,"cy","11"),p(f,"r","0.5"),p(f,"fill","currentColor"),p(m,"cx","15"),p(m,"cy","11"),p(m,"r","0.5"),p(m,"fill","currentColor"),p(l,"xmlns","http://www.w3.org/2000/svg"),p(l,"width","24"),p(l,"height","24"),p(l,"viewBox","0 0 24 24"),p(l,"fill","none"),p(l,"stroke","currentColor"),p(l,"stroke-width","2"),p(l,"stroke-linecap","round"),p(l,"stroke-linejoin","round"),p(u,"class","ChannelContent"),p(n,"class","ChannelCheckbox"),te(n,"selected",e[1]===e[22].SMS),p(g,"class","RadioIndicator"),te(g,"checked",e[1]===e[22].EMAIL),p(k,"type","radio"),p(k,"name","channel"),k.value=e[22].EMAIL,k.checked=R=e[1]===e[22].EMAIL,p(Z,"x","2"),p(Z,"y","4"),p(Z,"width","20"),p(Z,"height","16"),p(Z,"rx","2"),p(de,"d","m2 7 10 6 10-6"),p(G,"xmlns","http://www.w3.org/2000/svg"),p(G,"width","24"),p(G,"height","24"),p(G,"viewBox","0 0 24 24"),p(G,"fill","none"),p(G,"stroke","currentColor"),p(G,"stroke-width","2"),p(G,"stroke-linecap","round"),p(G,"stroke-linejoin","round"),p(W,"class","ChannelContent"),p(w,"class","ChannelCheckbox"),te(w,"selected",e[1]===e[22].EMAIL),p(t,"class","ChannelSelection")},m(I,q){B(I,t,q),E(t,n),E(n,r),E(n,i),E(n,o),E(n,a),E(n,u),E(u,l),E(l,h),E(l,d),E(l,f),E(l,m),E(u,_),E(u,b),E(b,y),E(t,M),E(t,w),E(w,g),E(w,T),E(w,k),E(w,ie),E(w,W),E(W,G),E(G,Z),E(G,de),E(W,F),E(W,X),E(X,ae),ue||(pe=[re(o,"change",e[42]),re(k,"change",e[43])],ue=!0)},p(I,q){q[0]&4194306&&te(r,"checked",I[1]===I[22].SMS),q[0]&2&&s!==(s=I[1]===I[22].SMS)&&(o.checked=s),q[0]&2097152&&v!==(v=I[21]("channelSMS")+"")&&D(y,v),q[0]&4194306&&te(n,"selected",I[1]===I[22].SMS),q[0]&4194306&&te(g,"checked",I[1]===I[22].EMAIL),q[0]&2&&R!==(R=I[1]===I[22].EMAIL)&&(k.checked=R),q[0]&2097152&&z!==(z=I[21]("channelEmail")+"")&&D(ae,z),q[0]&4194306&&te(w,"selected",I[1]===I[22].EMAIL)},d(I){I&&A(t),ue=!1,ce(pe)}}}function Lo(e){let t,n,r,i;function o(u,l){return u[19]>0?ko:No}let s=o(e),a=s(e);return{c(){t=C("button"),a.c(),p(t,"class","OtpButton"),t.disabled=n=!e[20],te(t,"disabled",!e[20]||e[18])},m(u,l){B(u,t,l),a.m(t,null),r||(i=re(t,"click",e[25]),r=!0)},p(u,l){s===(s=o(u))&&a?a.p(u,l):(a.d(1),a=s(u),a&&(a.c(),a.m(t,null))),l[0]&1048576&&n!==(n=!u[20])&&(t.disabled=n),l[0]&1310720&&te(t,"disabled",!u[20]||u[18])},d(u){u&&A(t),a.d(),r=!1,i()}}}function Io(e){let t,n=(e[21]("continueVerification")||"Continue")+"",r,i,o;return{c(){t=C("button"),r=L(n),p(t,"class","OtpButton")},m(s,a){B(s,t,a),E(t,r),i||(o=re(t,"click",e[24]),i=!0)},p(s,a){a[0]&2097152&&n!==(n=(s[21]("continueVerification")||"Continue")+"")&&D(r,n)},d(s){s&&A(t),i=!1,o()}}}function No(e){let t=e[21]("sendCode")+"",n;return{c(){n=L(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&2097152&&t!==(t=r[21]("sendCode")+"")&&D(n,t)},d(r){r&&A(n)}}}function ko(e){let t=e[21]("waitSeconds")+"",n,r,i,o;return{c(){n=L(t),r=L(" ("),i=L(e[19]),o=L("s)")},m(s,a){B(s,n,a),B(s,r,a),B(s,i,a),B(s,o,a)},p(s,a){a[0]&2097152&&t!==(t=s[21]("waitSeconds")+"")&&D(n,t),a[0]&524288&&D(i,s[19])},d(s){s&&(A(n),A(r),A(i),A(o))}}}function Ro(e){let t,n,r=e[21]("timeRemaining")+"",i,o,s=e[26](e[6])+"",a,u,l=e[21]("minutes")+"",h,d,f,m=Rt(e[3]),_=[];for(let b=0;b<m.length;b+=1)_[b]=nn(Kt(e,m,b));return{c(){t=C("div"),n=C("div"),i=L(r),o=V(),a=L(s),u=V(),h=L(l),d=V(),f=C("div");for(let b=0;b<_.length;b+=1)_[b].c();p(n,"class","OtpTimer"),p(f,"class","OtpField"),p(t,"class","OtpFieldWrapper")},m(b,v){B(b,t,v),E(t,n),E(n,i),E(n,o),E(n,a),E(n,u),E(n,h),E(t,d),E(t,f);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(f,null)},p(b,v){if(v[0]&2097152&&r!==(r=b[21]("timeRemaining")+"")&&D(i,r),v[0]&64&&s!==(s=b[26](b[6])+"")&&D(a,s),v[0]&2097152&&l!==(l=b[21]("minutes")+"")&&D(h,l),v[0]&939593768){m=Rt(b[3]);let y;for(y=0;y<m.length;y+=1){const M=Kt(b,m,y);_[y]?_[y].p(M,v):(_[y]=nn(M),_[y].c(),_[y].m(f,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=m.length}},d(b){b&&A(t),hr(_,b)}}}function Do(e){let t;return{c(){t=C("div"),t.innerHTML='<span class="OtpLoader"></span>',p(t,"class","OtpLoaderContainer")},m(n,r){B(n,t,r)},p:J,d(n){n&&A(t)}}}function nn(e){let t,n,r,i=e[76],o,s;const a=()=>e[44](t,i),u=()=>e[44](null,i);function l(...d){return e[45](e[76],...d)}function h(...d){return e[46](e[76],...d)}return{c(){t=C("input"),p(t,"id",`otp-input-${e[76]}`),p(t,"type","text"),p(t,"class",n=`otp-box ${e[5].inputLength%2===0&&e[76]===e[5].inputLength/2-1?"space":""}`),p(t,"maxlength",1),t.value=r=e[74],p(t,"inputmode","numeric"),t.disabled=e[12],p(t,"autocomplete","off")},m(d,f){B(d,t,f),a(),o||(s=[re(t,"input",l),re(t,"keydown",h),re(t,"paste",e[27])],o=!0)},p(d,f){e=d,f[0]&32&&n!==(n=`otp-box ${e[5].inputLength%2===0&&e[76]===e[5].inputLength/2-1?"space":""}`)&&p(t,"class",n),f[0]&8&&r!==(r=e[74])&&t.value!==r&&(t.value=r),f[0]&4096&&(t.disabled=e[12]),i!==e[76]&&(u(),i=e[76],a())},d(d){d&&A(t),u(),o=!1,ce(s)}}}function Uo(e){let t,n=e[21]("submit")+"",r,i,o,s;return{c(){t=C("button"),r=L(n),p(t,"class","OtpButton"),t.disabled=i=e[3].join("").length!==e[5].inputLength||e[15]||e[17]},m(a,u){B(a,t,u),E(t,r),o||(s=re(t,"click",e[32]),o=!0)},p(a,u){u[0]&2097152&&n!==(n=a[21]("submit")+"")&&D(r,n),u[0]&163880&&i!==(i=a[3].join("").length!==a[5].inputLength||a[15]||a[17])&&(t.disabled=i)},d(a){a&&A(t),o=!1,s()}}}function Go(e){let t,n=e[21]("resendOtp")+"",r,i,o;return{c(){t=C("button"),r=L(n),p(t,"class","OtpButton")},m(s,a){B(s,t,a),E(t,r),i||(o=re(t,"click",e[30]),i=!0)},p(s,a){a[0]&2097152&&n!==(n=s[21]("resendOtp")+"")&&D(r,n)},d(s){s&&A(t),i=!1,o()}}}function Vo(e){let t;function n(o,s){return o[8]?Oo:To}let r=n(e),i=r(e);return{c(){t=C("div"),i.c(),p(t,"class","OtpContent")},m(o,s){B(o,t,s),i.m(t,null),e[47](t)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(t,null)))},i:J,o:J,d(o){o&&A(t),i.d(),e[47](null)}}}function Fo(e,t,n){let r,i,o;sr(e,xo,c=>n(21,o=c));let{clientstyling:s=""}=t,{clientstylingurl:a=""}=t,{mbsource:u}=t,{lang:l="en"}=t,{endpoint:h}=t,{session:d}=t,{translationurl:f}=t,{templateid:m}=t,{oidcverificationmethod:_=""}=t,b=[],v=!0,y=null,M=0,w="",g="",T=!1,k=!1,R="",ie="",W="",G=!1,Z=!1,de=!1,F="",X={},z=null,ae=!1,ue=!1,pe="",I=!1,q="",oe,Ln,he=[],K=null,Ze=0,Qe=!1,Je=!1;const Ye={SMS:"sms",EMAIL:"email"},Ie={MAX_ATTEMPTS_EXCEEDED:"gm.twofa.token_max_attempts_exceeded",INTERNAL_SERVER_ERROR:"gm.multifactorauthentication.internal_server_error",MAX_INVALIDATE:"gm.multifactorauthentication.challenge_internal_server_error"};Object.keys(Yt).forEach(c=>{Jt(c,Yt[c])});const In=()=>{wo(l)},Nn=()=>{fetch(f).then(c=>c.json()).then(c=>{Object.keys(c).forEach(x=>{Jt(x,c[x])})}).catch(c=>{console.log(c)})},Ht=c=>se(this,null,function*(){var x;if((x=c.detail)!=null&&x["x-step-up-required"]){if(n(8,k=!1),n(7,T=!1),n(9,R=""),ie=c.detail["x-step-up-token"],W=c.detail.flow,n(14,ue=W==="oidc"),!ie||!W){n(4,v=!1),n(8,k=!0),n(9,R=o("configError"));return}n(13,ae=!1),n(4,v=!1)}}),kn=()=>{K&&(clearInterval(K),K=null),z&&(clearInterval(z),z=null),n(7,T=!1),n(8,k=!1),n(9,R=""),n(11,Z=!1),n(3,b=[]),n(5,y=null),n(4,v=!0),n(1,F=""),n(13,ae=!1),n(41,X={}),n(14,ue=!1),pe=""},At=()=>{kn()},Mt=()=>new Promise((c,x)=>{const S=new URL(`${h}/api/pam/v1/mfa/challenge/${ie}`),U=new Headers;U.append("accept","application/json"),U.append("Content-Type","application/json"),U.append("X-SessionId",`${d}`),n(18,Je=!0);const me={method:"PATCH",headers:U,body:JSON.stringify({channel:F,templateId:m})};fetch(S,me).then(Lt=>Lt.json()).then(()=>{n(17,Qe=!1),et(),tt(),c()}).catch(Lt=>{x()})}),Rn=()=>{z&&clearInterval(z),z=setInterval(()=>{const c=Ne({},X);let x=!1;Object.keys(c).forEach(S=>{c[S]>0&&(c[S]--,x=!0)}),n(41,X=c),!x&&z&&(clearInterval(z),z=null)},1e3)},Ke=c=>{n(1,F=c)},Dn=()=>se(this,null,function*(){yield Wn(),!(k||!(y!=null&&y.authorizeUrl))&&(pe=y.authorizeUrl,window.postMessage({type:"oidcRedirectRequired",authoriseUrl:pe,challengeSessionId:y.challengeSessionId},window.location.href))}),Un=()=>se(this,null,function*(){if(!(!F||X[F]&&X[F]>0)){n(4,v=!0),m&&m.startsWith("2fa-")&&n(33,m=`2fa-${F}`);try{yield Mt(),yield it(),n(41,X=st(Ne({},X),{[F]:30})),Rn(),n(13,ae=!0),et(),tt()}catch(c){console.error("Error submitting channel:",c),n(7,T=!0),n(9,R=o("submissionError"))}finally{n(4,v=!1)}}}),et=()=>{const c=new Date(w),x=new Date(g),S=new Date,U=x.getTime()-S.getTime();Ze=c.getTime()-U;const j=Date.now(),me=Math.max(0,Math.floor((Ze-j)/1e3));n(6,M=me)},tt=()=>{K&&clearInterval(K),K=setInterval(()=>{const c=Date.now(),x=Math.max(0,Math.floor((Ze-c)/1e3));n(6,M=x),n(12,de=x<=0),x<=0&&(clearInterval(K),K=null,n(10,G=!0),n(7,T=!1),n(11,Z=!1))},1e3)},Gn=c=>{const x=Math.floor(c/60),S=c%60;return`${x.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}`},nt=(c,x)=>{const S=[...b];S[c]=x.toUpperCase(),n(3,b=S),S.join("")!==q&&n(15,I=!1)},Vn=c=>{var U,j,me;c.preventDefault();const S=(((j=(U=c.clipboardData)==null?void 0:U.getData("text"))==null?void 0:j.trim())||"").slice(0,y.inputLength).split("");n(3,b=[...S,...Array(y.inputLength-S.length).fill("")]),(me=he[S.length])==null||me.focus(),S.length===y.inputLength&&rt()},Bt=(c,x)=>{const S=c.target,U=S.value;if(/^[a-z0-9]$/i.test(U)){nt(x,U);const j=he[x+1];j==null||j.focus()}S.value=""},Pt=(c,x)=>{const S=c.key,U=c.ctrlKey||c.metaKey;if(/^[a-z0-9]$/i.test(S)){if(U&&S.toLowerCase()==="v")return;c.preventDefault(),nt(x,S);const j=he[x+1];j==null||j.focus()}else if(S==="Backspace"){c.preventDefault(),b[x]!==""&&nt(x,"");const j=he[x-1];j==null||j.focus()}else S==="Enter"&&(c.preventDefault(),rt())},Fn=()=>{W=="stateful"&&(Mt(),n(10,G=!1));const c=new CustomEvent("otpResendRequested");window.dispatchEvent(c)},jn=c=>{window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:c,maxAttempts:y.maxValidationAttempts,validatedAttempts:y.numberOfValidateAttempts}}))},zn=c=>se(this,null,function*(){const x=new URL(`/api/nwa/api/v1/mfa/challenge/${ie}/validate`,h);x.searchParams.append("input",c);try{const S=yield fetch(x.href,{method:"POST"});if(S.status===200){Xn();return}const U=yield S.json();throw new Error(U.message)}catch(S){if(yield it(),S.message===Ie.INTERNAL_SERVER_ERROR){if(y.numberOfValidateAttempts===y.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("accountBlocked")}},window.location.href),window.dispatchEvent(new CustomEvent("manualClosePopup"));return}n(7,T=!0),n(9,R=o("invalidOtp")),it();return}S.message===Ie.MAX_INVALIDATE&&(n(7,T=!0),n(9,R=o("invalidOtp"))),S.details===Ie.MAX_ATTEMPTS_EXCEEDED&&n(17,Qe=!0),console.error("OTP submission failed:",S),n(7,T=!0),n(9,R=o("submissionError"))}finally{n(4,v=!1)}}),Xn=()=>{window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}}))},$n=()=>{window.dispatchEvent(new CustomEvent("manualClosePopup"))},rt=()=>se(this,null,function*(){if(b.join("").length!==y.inputLength){n(7,T=!0),n(9,R=o("invalidOtp"));return}const c=b.join("");n(15,I=!0),q=c,n(4,v=!0),n(7,T=!1),n(9,R=""),W==="stateless"&&jn(c),W==="stateful"&&(yield zn(c))}),Wn=()=>se(this,null,function*(){if(h)try{n(4,v=!0);const c=new URL(`/api/v1/mfa/challenge/${ie}/config`,h),x=yield fetch(c.href),S=yield x.json();if(x.ok)n(5,y=S);else throw new Error(S&&S.message||`Failed to load config. Status: ${x.status}`)}catch(c){n(8,k=!0),n(9,R=o("configError")),console.error("Error loading OIDC config:",c)}finally{n(4,v=!1)}}),it=()=>se(this,null,function*(){if(h)try{n(4,v=!0);const c=new URL(`/api/nwa/api/v1/mfa/challenge/${ie}/config`,h),x=yield fetch(c.href),S=yield x.json();if(x.ok)n(5,y=S),n(3,b=Array(y.inputLength).fill("")),n(10,G=!1),w=y.expirationTime,g=y.serverTime,y.numberOfValidateAttempts!==0&&(n(7,T=!0),n(9,R=o("invalidOtp"))),y.numberOfValidateAttempts===y.maxValidationAttempts-1&&n(11,Z=!0),n(4,v=!1),et(),tt(),n(18,Je=!1);else if(S&&S.details===Ie.MAX_ATTEMPTS_EXCEEDED)window.dispatchEvent(new CustomEvent("manualClosePopup"));else{const U=S&&S.message||`Failed to load config. Status: ${x.status}`;throw new Error(U)}}catch(c){n(4,v=!1),n(8,k=!0),n(9,R=o("configError")),window.dispatchEvent(new CustomEvent("2fa-loading",{detail:{isLoading:!1}})),console.error("Error loading 2FA config:",c)}});mr(()=>(window.addEventListener("stepUpAuthRequired",Ht,!1),window.addEventListener("closePopup",At,!1),()=>{window.removeEventListener("stepUpAuthRequired",Ht),window.removeEventListener("closePopup",At,!1),K&&clearInterval(K),z&&clearInterval(z)}));const qn=()=>Ke(Ye.SMS),Zn=()=>Ke(Ye.EMAIL);function Qn(c,x){Ge[c?"unshift":"push"](()=>{he[x]=c,n(16,he)})}const Jn=(c,x)=>Bt(x,c),Yn=(c,x)=>Pt(x,c);function Kn(c){Ge[c?"unshift":"push"](()=>{oe=c,n(2,oe)})}return e.$$set=c=>{"clientstyling"in c&&n(34,s=c.clientstyling),"clientstylingurl"in c&&n(35,a=c.clientstylingurl),"mbsource"in c&&n(36,u=c.mbsource),"lang"in c&&n(37,l=c.lang),"endpoint"in c&&n(38,h=c.endpoint),"session"in c&&n(39,d=c.session),"translationurl"in c&&n(40,f=c.translationurl),"templateid"in c&&n(33,m=c.templateid),"oidcverificationmethod"in c&&n(0,_=c.oidcverificationmethod)},e.$$.update=()=>{e.$$.dirty[0]&4|e.$$.dirty[1]&8&&s&&oe&&Ar(oe,s),e.$$.dirty[0]&4|e.$$.dirty[1]&16&&a&&oe&&Mr(oe,a),e.$$.dirty[0]&4|e.$$.dirty[1]&32&&u&&oe&&Br(oe,`${u}.Style`,Ln),e.$$.dirty[1]&64&&l&&In(),e.$$.dirty[1]&576&&l&&f&&Nn(),e.$$.dirty[0]&2|e.$$.dirty[1]&1024&&n(20,r=F&&(!X[F]||X[F]===0)),e.$$.dirty[0]&2|e.$$.dirty[1]&1024&&n(19,i=F&&X[F]||0)},[_,F,oe,b,v,y,M,T,k,R,G,Z,de,ae,ue,I,he,Qe,Je,i,r,o,Ye,Ke,Dn,Un,Gn,Vn,Bt,Pt,Fn,$n,rt,m,s,a,u,l,h,d,f,X,qn,Zn,Qn,Jn,Yn,Kn]}class Pn extends Cr{constructor(t){super(),Tr(this,t,Fo,Vo,on,{clientstyling:34,clientstylingurl:35,mbsource:36,lang:37,endpoint:38,session:39,translationurl:40,templateid:33,oidcverificationmethod:0},So,[-1,-1,-1])}get clientstyling(){return this.$$.ctx[34]}set clientstyling(t){this.$$set({clientstyling:t}),Y()}get clientstylingurl(){return this.$$.ctx[35]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Y()}get mbsource(){return this.$$.ctx[36]}set mbsource(t){this.$$set({mbsource:t}),Y()}get lang(){return this.$$.ctx[37]}set lang(t){this.$$set({lang:t}),Y()}get endpoint(){return this.$$.ctx[38]}set endpoint(t){this.$$set({endpoint:t}),Y()}get session(){return this.$$.ctx[39]}set session(t){this.$$set({session:t}),Y()}get translationurl(){return this.$$.ctx[40]}set translationurl(t){this.$$set({translationurl:t}),Y()}get templateid(){return this.$$.ctx[33]}set templateid(t){this.$$set({templateid:t}),Y()}get oidcverificationmethod(){return this.$$.ctx[0]}set oidcverificationmethod(t){this.$$set({oidcverificationmethod:t}),Y()}}Or(Pn,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},session:{},translationurl:{},templateid:{},oidcverificationmethod:{}},[],[],!0);exports.default=Pn;
@@ -41,8 +41,7 @@ function Zn(e, t, n) {
41
41
  }
42
42
  }
43
43
  function Qn(e) {
44
- if (!e)
45
- return document;
44
+ if (!e) return document;
46
45
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
47
46
  return t && /** @type {ShadowRoot} */
48
47
  t.host ? (
@@ -112,8 +111,7 @@ function Oe(e) {
112
111
  Ce = e;
113
112
  }
114
113
  function nr() {
115
- if (!Ce)
116
- throw new Error("Function called outside component initialization");
114
+ if (!Ce) throw new Error("Function called outside component initialization");
117
115
  return Ce;
118
116
  }
119
117
  function rr(e) {
@@ -144,8 +142,7 @@ function Q() {
144
142
  } catch (t) {
145
143
  throw pe.length = 0, fe = 0, t;
146
144
  }
147
- for (Oe(null), pe.length = 0, fe = 0; ke.length; )
148
- ke.pop()();
145
+ for (Oe(null), pe.length = 0, fe = 0; ke.length; ) ke.pop()();
149
146
  for (let t = 0; t < ge.length; t += 1) {
150
147
  const n = ge[t];
151
148
  nt.has(n) || (nt.add(n), n());
@@ -457,8 +454,7 @@ function br(e, t) {
457
454
  }
458
455
  }
459
456
  function yr(e, t) {
460
- if (!e || !t)
461
- return;
457
+ if (!e || !t) return;
462
458
  const n = new URL(t);
463
459
  fetch(n.href).then((r) => r.text()).then((r) => {
464
460
  const i = document.createElement("style");
@@ -468,8 +464,7 @@ function yr(e, t) {
468
464
  });
469
465
  }
470
466
  function vr(e, t, n, r = !1) {
471
- if (!window.emMessageBus)
472
- return;
467
+ if (!window.emMessageBus) return;
473
468
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
474
469
  return n = Er(e, t), n;
475
470
  window[me] || (window[me] = {}), n = _r(e, t);
@@ -490,8 +485,7 @@ function Er(e, t) {
490
485
  }
491
486
  function _r(e, t) {
492
487
  return window.emMessageBus.subscribe(t, (n) => {
493
- if (!e)
494
- return;
488
+ if (!e) return;
495
489
  const r = e.getRootNode(), i = window[me];
496
490
  let o = i[t] && i[t].sheet;
497
491
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(n), i[t] = {
@@ -643,8 +637,7 @@ var ct = function(e, t) {
643
637
  return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
644
638
  n.__proto__ = r;
645
639
  } || function(n, r) {
646
- for (var i in r)
647
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
640
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
648
641
  }, ct(e, t);
649
642
  };
650
643
  function Ve(e, t) {
@@ -660,25 +653,22 @@ var ee = function() {
660
653
  return ee = Object.assign || function(t) {
661
654
  for (var n, r = 1, i = arguments.length; r < i; r++) {
662
655
  n = arguments[r];
663
- for (var o in n)
664
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
656
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
665
657
  }
666
658
  return t;
667
659
  }, ee.apply(this, arguments);
668
660
  };
669
661
  function Ur(e, t) {
670
662
  var n = {};
671
- for (var r in e)
672
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
663
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
673
664
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
674
665
  for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
675
666
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
676
667
  return n;
677
668
  }
678
669
  function rt(e, t, n) {
679
- if (n || arguments.length === 2)
680
- for (var r = 0, i = t.length, o; r < i; r++)
681
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
670
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
671
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
682
672
  return e.concat(o || Array.prototype.slice.call(t));
683
673
  }
684
674
  function it(e, t) {
@@ -733,8 +723,7 @@ var zr = function() {
733
723
  return Re = Object.assign || function(t) {
734
724
  for (var n, r = 1, i = arguments.length; r < i; r++) {
735
725
  n = arguments[r];
736
- for (var o in n)
737
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
726
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
738
727
  }
739
728
  return t;
740
729
  }, Re.apply(this, arguments);
@@ -880,8 +869,7 @@ var N = function() {
880
869
  return N = Object.assign || function(t) {
881
870
  for (var n, r = 1, i = arguments.length; r < i; r++) {
882
871
  n = arguments[r];
883
- for (var o in n)
884
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
872
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
885
873
  }
886
874
  return t;
887
875
  }, N.apply(this, arguments);
@@ -2523,8 +2511,7 @@ function ri(e, t) {
2523
2511
  n += u;
2524
2512
  for (; a-- > 0; )
2525
2513
  n = l + n;
2526
- } else
2527
- i === "J" ? n += "H" : n += i;
2514
+ } else i === "J" ? n += "H" : n += i;
2528
2515
  }
2529
2516
  return n;
2530
2517
  }
@@ -3127,8 +3114,7 @@ function bt(e) {
3127
3114
  if (delete t.location, ln(t) || un(t))
3128
3115
  for (var n in t.options)
3129
3116
  delete t.options[n].location, bt(t.options[n].value);
3130
- else
3131
- on(t) && cn(t.style) || (sn(t) || an(t)) && ft(t.style) ? delete t.style.location : hn(t) && bt(t.children);
3117
+ else on(t) && cn(t.style) || (sn(t) || an(t)) && ft(t.style) ? delete t.style.location : hn(t) && bt(t.children);
3132
3118
  });
3133
3119
  }
3134
3120
  function xi(e, t) {
@@ -4005,13 +3991,11 @@ function fo(e) {
4005
3991
  if (
4006
3992
  /*isOidcFlow*/
4007
3993
  g[14]
4008
- )
4009
- return xo;
3994
+ ) return xo;
4010
3995
  if (
4011
3996
  /*selectedChannel*/
4012
3997
  g[1]
4013
- )
4014
- return _o;
3998
+ ) return _o;
4015
3999
  }
4016
4000
  let f = d(e), m = f && f(e);
4017
4001
  function _(g, T) {
@@ -4019,28 +4003,24 @@ function fo(e) {
4019
4003
  /*isLoading*/
4020
4004
  g[4] && /*showOtpInput*/
4021
4005
  g[13]
4022
- )
4023
- return Oo;
4006
+ ) return Oo;
4024
4007
  if (
4025
4008
  /*showOtpInput*/
4026
4009
  g[13] && /*config*/
4027
4010
  g[5]
4028
- )
4029
- return To;
4011
+ ) return To;
4030
4012
  }
4031
4013
  let b = _(e), y = b && b(e);
4032
4014
  function v(g, T) {
4033
4015
  if (
4034
4016
  /*showResendOtp*/
4035
4017
  g[10]
4036
- )
4037
- return Ho;
4018
+ ) return Ho;
4038
4019
  if (
4039
4020
  /*showOtpInput*/
4040
4021
  g[13] && /*config*/
4041
4022
  g[5]
4042
- )
4043
- return Co;
4023
+ ) return Co;
4044
4024
  }
4045
4025
  let M = v(e), x = M && M(e);
4046
4026
  return {
@@ -4852,11 +4832,9 @@ function Mo(e, t, n) {
4852
4832
  }, Ct = (c, w) => {
4853
4833
  const S = c.key, j = c.ctrlKey || c.metaKey;
4854
4834
  if (/^[a-z0-9]$/i.test(S)) {
4855
- if (j && S.toLowerCase() === "v")
4856
- return;
4835
+ if (j && S.toLowerCase() === "v") return;
4857
4836
  c.preventDefault(), Ye(w, S), ae[w + 1]?.focus();
4858
- } else
4859
- S === "Backspace" ? (c.preventDefault(), b[w] !== "" && Ye(w, ""), ae[w - 1]?.focus()) : S === "Enter" && (c.preventDefault(), Ke());
4837
+ } else S === "Backspace" ? (c.preventDefault(), b[w] !== "" && Ye(w, ""), ae[w - 1]?.focus()) : S === "Enter" && (c.preventDefault(), Ke());
4860
4838
  }, Nn = () => {
4861
4839
  $ == "stateful" && (Tt(), n(10, U = !1));
4862
4840
  const c = new CustomEvent("otpResendRequested");
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierStepUpCashpoint-CmiYX5or.cjs")).then(({default:t})=>{!customElements.get("cashier-step-up-cashpoint")&&customElements.define("cashier-step-up-cashpoint",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierStepUpCashpoint-CwbrMtE0.cjs")).then(({default:t})=>{!customElements.get("cashier-step-up-cashpoint")&&customElements.define("cashier-step-up-cashpoint",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierStepUpCashpoint-C-ljk3jM.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierStepUpCashpoint-3wLXkL-f.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-step-up-cashpoint") && customElements.define("cashier-step-up-cashpoint", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierStepUpCashpoint-BDiFLca3.js";
1
+ import { C as n } from "../components/CashierStepUpCashpoint-DISHHqp_.js";
2
2
  function i(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-step-up-cashpoint",
3
- "version": "1.99.57",
3
+ "version": "1.99.59",
4
4
  "type": "module",
5
5
  "main": "esnext/cashier-step-up-cashpoint.js",
6
6
  "module": "esnext/cashier-step-up-cashpoint.js",
@@ -1,3 +0,0 @@
1
- "use strict";var er=Object.defineProperty,tr=Object.defineProperties;var nr=Object.getOwnPropertyDescriptors;var It=Object.getOwnPropertySymbols;var rr=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;var ot=(e,t,n)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ne=(e,t)=>{for(var n in t||(t={}))rr.call(t,n)&&ot(e,n,t[n]);if(It)for(var n of It(t))ir.call(t,n)&&ot(e,n,t[n]);return e},st=(e,t)=>tr(e,nr(t));var Q=(e,t,n)=>(ot(e,typeof t!="symbol"?t+"":t,n),n);var se=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(l){i(l)}},s=u=>{try{a(n.throw(u))}catch(l){i(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function J(){}function rn(e){return e()}function Nt(){return Object.create(null)}function ce(e){e.forEach(rn)}function Tt(e){return typeof e=="function"}function on(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function or(e){return Object.keys(e).length===0}function sn(e,...t){if(e==null){for(const r of t)r(void 0);return J}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function sr(e,t,n){e.$$.on_destroy.push(sn(t,n))}function E(e,t){e.appendChild(t)}function ar(e,t,n){const r=lr(e);if(!r.getElementById(t)){const i=C("style");i.id=t,i.textContent=n,ur(r,i)}}function lr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ur(e,t){return E(e.head||e,t),t.sheet}function B(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function hr(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function C(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function L(e){return document.createTextNode(e)}function V(){return L(" ")}function cr(){return L("")}function re(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function p(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function fr(e){return Array.from(e.childNodes)}function D(e,t){t=""+t,e.data!==t&&(e.data=t)}function te(e,t,n){e.classList.toggle(t,!!n)}function dr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let Me;function Ae(e){Me=e}function pr(){if(!Me)throw new Error("Function called outside component initialization");return Me}function mr(e){pr().$$.on_mount.push(e)}const ye=[],Ge=[];let Ee=[];const kt=[],gr=Promise.resolve();let pt=!1;function br(){pt||(pt=!0,gr.then(Y))}function mt(e){Ee.push(e)}const at=new Set;let ge=0;function Y(){if(ge!==0)return;const e=Me;do{try{for(;ge<ye.length;){const t=ye[ge];ge++,Ae(t),yr(t.$$)}}catch(t){throw ye.length=0,ge=0,t}for(Ae(null),ye.length=0,ge=0;Ge.length;)Ge.pop()();for(let t=0;t<Ee.length;t+=1){const n=Ee[t];at.has(n)||(at.add(n),n())}Ee.length=0}while(ye.length);for(;kt.length;)kt.pop()();pt=!1,at.clear(),Ae(e)}function yr(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(mt)}}function vr(e){const t=[],n=[];Ee.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ee=t}const Er=new Set;function _r(e,t){e&&e.i&&(Er.delete(e),e.i(t))}function Rt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function xr(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),mt(()=>{const o=e.$$.on_mount.map(rn).filter(Tt);e.$$.on_destroy?e.$$.on_destroy.push(...o):ce(o),e.$$.on_mount=[]}),i.forEach(mt)}function wr(e,t){const n=e.$$;n.fragment!==null&&(vr(n.after_update),ce(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Sr(e,t){e.$$.dirty[0]===-1&&(ye.push(e),br(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Tr(e,t,n,r,i,o,s=null,a=[-1]){const u=Me;Ae(e);const l=e.$$={fragment:null,ctx:[],props:o,update:J,not_equal:i,bound:Nt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Nt(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let h=!1;if(l.ctx=n?n(e,t.props||{},(d,f,...m)=>{const _=m.length?m[0]:f;return l.ctx&&i(l.ctx[d],l.ctx[d]=_)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](_),h&&Sr(e,d)),f}):[],l.update(),h=!0,ce(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const d=fr(t.target);l.fragment&&l.fragment.l(d),d.forEach(A)}else l.fragment&&l.fragment.c();t.intro&&_r(e.$$.fragment),xr(e,t.target,t.anchor),Y()}Ae(u)}let an;typeof HTMLElement=="function"&&(an=class extends HTMLElement{constructor(t,n,r){super();Q(this,"$$ctor");Q(this,"$$s");Q(this,"$$c");Q(this,"$$cn",!1);Q(this,"$$d",{});Q(this,"$$r",!1);Q(this,"$$p_d",{});Q(this,"$$l",{});Q(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return se(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=C("slot"),o!=="default"&&p(s,"name",o)},m:function(l,h){B(l,s,h)},d:function(l){l&&A(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=dr(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Re(s,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:st(Ne({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{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 s=Re(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Re(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Re(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Or(e,t,n,r,i,o){let s=class extends an{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Re(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class Cr{constructor(){Q(this,"$$");Q(this,"$$set")}$destroy(){wr(this,1),this.$destroy=J}$on(t,n){if(!Tt(n))return J;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!or(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Hr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Hr);const ve="__WIDGET_GLOBAL_STYLE_CACHE__";function Ar(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Mr(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Br(e,t,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=Pr(e,t),n;window[ve]||(window[ve]={}),n=Lr(e,t);const o=n.unsubscribe.bind(n),s=()=>{if(window[ve][t]){const a=window[ve][t];a.refCount>1?a.refCount=a.refCount-1:delete window[ve][t]}o()};return n.unsubscribe=s,n}function Pr(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,r=>{e&&(n.innerHTML=r,e.appendChild(n))})}function Lr(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const r=e.getRootNode(),i=window[ve];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),i[t]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}const be=[];function Ir(e,t){return{subscribe:ze(e,t).subscribe}}function ze(e,t=J){let n;const r=new Set;function i(a){if(on(e,a)&&(e=a,n)){const u=!be.length;for(const l of r)l[1](),be.push(l,e);if(u){for(let l=0;l<be.length;l+=2)be[l][0](be[l+1]);be.length=0}}}function o(a){i(a(e))}function s(a,u=J){const l=[a,u];return r.add(l),r.size===1&&(n=t(i,o)||J),a(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function Te(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ir(n,(s,a)=>{let u=!1;const l=[];let h=0,d=J;const f=()=>{if(h)return;d();const _=t(r?l[0]:l,s,a);o?s(_):d=Tt(_)?_:J},m=i.map((_,b)=>sn(_,v=>{l[b]=v,h&=~(1<<b),u&&f()},()=>{h|=1<<b}));return u=!0,f(),function(){ce(m),d(),u=!1}})}function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kr=function(t){return Rr(t)&&!Dr(t)};function Rr(e){return!!e&&typeof e=="object"}function Dr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Vr(e)}var Ur=typeof Symbol=="function"&&Symbol.for,Gr=Ur?Symbol.for("react.element"):60103;function Vr(e){return e.$$typeof===Gr}function Fr(e){return Array.isArray(e)?[]:{}}function Be(e,t){return t.clone!==!1&&t.isMergeableObject(e)?_e(Fr(e),e,t):e}function jr(e,t,n){return e.concat(t).map(function(r){return Be(r,n)})}function zr(e,t){if(!t.customMerge)return _e;var n=t.customMerge(e);return typeof n=="function"?n:_e}function Xr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Dt(e){return Object.keys(e).concat(Xr(e))}function ln(e,t){try{return t in e}catch(n){return!1}}function $r(e,t){return ln(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Wr(e,t,n){var r={};return n.isMergeableObject(e)&&Dt(e).forEach(function(i){r[i]=Be(e[i],n)}),Dt(t).forEach(function(i){$r(e,i)||(ln(e,i)&&n.isMergeableObject(t[i])?r[i]=zr(i,n)(e[i],t[i],n):r[i]=Be(t[i],n))}),r}function _e(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||jr,n.isMergeableObject=n.isMergeableObject||kr,n.cloneUnlessOtherwiseSpecified=Be;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Wr(e,t,n):Be(t,n)}_e.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return _e(r,i,n)},{})};var qr=_e,Zr=qr;const Qr=Nr(Zr);var gt=function(e,t){return gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},gt(e,t)};function Xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ne=function(){return ne=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ne.apply(this,arguments)};function Jr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function lt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ut(e,t){var n=t&&t.cache?t.cache:ii,r=t&&t.serializer?t.serializer:ni,i=t&&t.strategy?t.strategy:ei;return i(e,{cache:n,serializer:r})}function Yr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Kr(e,t,n,r){var i=Yr(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function un(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function hn(e,t,n,r,i){return n.bind(t,e,r,i)}function ei(e,t){var n=e.length===1?Kr:un;return hn(e,this,n,t.cache.create(),t.serializer)}function ti(e,t){return hn(e,this,un,t.cache.create(),t.serializer)}var ni=function(){return JSON.stringify(arguments)},ri=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),ii={create:function(){return new ri}},ht={variadic:ti},Ve=function(){return Ve=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ve.apply(this,arguments)};var O;(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"})(O||(O={}));var P;(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"})(P||(P={}));var xe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(xe||(xe={}));function Ut(e){return e.type===P.literal}function oi(e){return e.type===P.argument}function cn(e){return e.type===P.number}function fn(e){return e.type===P.date}function dn(e){return e.type===P.time}function pn(e){return e.type===P.select}function mn(e){return e.type===P.plural}function si(e){return e.type===P.pound}function gn(e){return e.type===P.tag}function bn(e){return!!(e&&typeof e=="object"&&e.type===xe.number)}function bt(e){return!!(e&&typeof e=="object"&&e.type===xe.dateTime)}var yn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ai=/(?:[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 li(e){var t={};return e.replace(ai,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-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=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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 N=function(){return N=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},N.apply(this,arguments)};var ui=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ui).filter(function(f){return f.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,h=u;l<h.length;l++){var d=h[l];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function ci(e){return e.replace(/^(.*?)-/,"")}var Gt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vn=/^(@+)?(\+|#+)?[rs]?$/g,fi=/(\*)(0+)|(#+)(0+)|(0+)/g,En=/^(0+)$/;function Vt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(vn,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function _n(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 di(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 n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!En.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ft(e){var t={},n=_n(e);return n||t}function pi(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ci(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return N(N({},u),Ft(l))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return N(N({},u),Ft(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(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(fi,function(u,l,h,d,f,m){if(l)t.minimumIntegerDigits=h.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(En.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Gt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Gt,function(u,l,h,d,f,m){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=N(N({},t),Vt(o)));continue}if(vn.test(i.stem)){t=N(N({},t),Vt(i.stem));continue}var s=_n(i.stem);s&&(t=N(N({},t),s));var a=di(i.stem);a&&(t=N(N({},t),a))}return t}var ke={"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 mi(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=gi(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function gi(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 n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=ke[r||""]||ke[n||""]||ke["".concat(n,"-001")]||ke["001"];return i[0]}var ct,bi=new RegExp("^".concat(yn.source,"*")),yi=new RegExp("".concat(yn.source,"*$"));function H(e,t){return{start:e,end:t}}var vi=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ei=!!String.fromCodePoint,_i=!!Object.fromEntries,xi=!!String.prototype.codePointAt,wi=!!String.prototype.trimStart,Si=!!String.prototype.trimEnd,Ti=!!Number.isSafeInteger,Oi=Ti?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},yt=!0;try{var Ci=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yt=((ct=Ci.exec("a"))===null||ct===void 0?void 0:ct[0])==="a"}catch(e){yt=!1}var jt=vi?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},vt=Ei?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},zt=_i?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},xn=xi?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Hi=wi?function(t){return t.trimStart()}:function(t){return t.replace(bi,"")},Ai=Si?function(t){return t.trimEnd()}:function(t){return t.replace(yi,"")};function wn(e,t){return new RegExp(e,t)}var Et;if(yt){var Xt=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Et=function(t,n){var r;Xt.lastIndex=n;var i=Xt.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Et=function(t,n){for(var r=[];;){var i=xn(t,n);if(i===void 0||Sn(i)||Li(i))break;r.push(i),n+=i>=65536?2:1}return vt.apply(void 0,r)};var Mi=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:P.pound,location:H(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(O.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&_t(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:"<".concat(i,"/>"),location:H(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_t(this.char()))return this.error(O.INVALID_TAG,H(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(O.UNMATCHED_CLOSING_TAG,H(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:P.tag,value:i,children:s,location:H(r,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,H(a,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,H(r,this.clonePosition()))}else return this.error(O.INVALID_TAG,H(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Pi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=H(r,this.clonePosition());return{val:{type:P.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Bi(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 n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return vt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),vt(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,H(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(O.MALFORMED_ARGUMENT,H(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:i,location:H(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(O.MALFORMED_ARGUMENT,H(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Et(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=H(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,H(s,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 f=Ai(d.val);if(f.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var m=H(h,this.clonePosition());l={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var b=H(i,this.clonePosition());if(l&&jt(l==null?void 0:l.style,"::",0)){var v=Hi(l.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(v,l.styleLocation);return d.err?d:{val:{type:P.number,value:r,location:b,style:d.val},err:null}}else{if(v.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,b);var y=v;this.locale&&(y=mi(v,this.locale));var f={type:xe.dateTime,pattern:y,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?li(y):{}},M=a==="date"?P.date:P.time;return{val:{type:M,value:r,location:b,style:f},err:null}}}return{val:{type:a==="number"?P.number:a==="date"?P.date:P.time,value:r,location:b,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,H(w,Ve({},w)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),T=0;if(a!=="select"&&g.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),g=this.parseIdentifierIfPossible(),T=d.val}var k=this.tryParsePluralOrSelectOptions(t,a,n,g);if(k.err)return k;var _=this.tryParseArgumentClose(i);if(_.err)return _;var R=H(i,this.clonePosition());return a==="select"?{val:{type:P.select,value:r,options:zt(k.val),location:R},err:null}:{val:{type:P.plural,value:r,options:zt(k.val),offset:T,pluralType:a==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,H(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,H(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=hi(t)}catch(i){return this.error(O.INVALID_NUMBER_SKELETON,n)}return{val:{type:xe.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?pi(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],u=new Set,l=i.value,h=i.location;;){if(l.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;h=H(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,n,r);if(_.err)return _;var b=this.tryParseArgumentClose(m);if(b.err)return b;a.push([l,{value:_.val,location:H(m,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}return a.length===0?this.error(n==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(O.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=H(i,this.clonePosition());return o?(s*=r,Oi(s)?{val:s,err:null}:this.error(n,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 n=xn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},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(jt(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!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 n=this.offset();if(n===t)break;if(n>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()&&Sn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function _t(e){return e>=97&&e<=122||e>=65&&e<=90}function Bi(e){return _t(e)||e===47}function Pi(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 Sn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Li(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 xt(e){e.forEach(function(t){if(delete t.location,pn(t)||mn(t))for(var n in t.options)delete t.options[n].location,xt(t.options[n].value);else cn(t)&&bn(t.style)||(fn(t)||dn(t))&&bt(t.style)?delete t.style.location:gn(t)&&xt(t.children)})}function Ii(e,t){t===void 0&&(t={}),t=Ve({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Mi(e,t).parse();if(n.err){var r=SyntaxError(O[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||xt(n.val),n.val}var we;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(we||(we={}));var $e=function(e){Xe(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),$t=function(e){Xe(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),we.INVALID_VALUE,o)||this}return t}($e),Ni=function(e){Xe(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),we.INVALID_VALUE,i)||this}return t}($e),ki=function(e){Xe(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),we.MISSING_VALUE,r)||this}return t}($e),$;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})($||($={}));function Ri(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==$.literal||n.type!==$.literal?t.push(n):r.value+=n.value,t},[])}function Di(e){return typeof e=="function"}function De(e,t,n,r,i,o,s){if(e.length===1&&Ut(e[0]))return[{type:$.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];if(Ut(h)){a.push({type:$.literal,value:h.value});continue}if(si(h)){typeof o=="number"&&a.push({type:$.literal,value:n.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new ki(d,s);var f=i[d];if(oi(h)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?$.literal:$.object,value:f});continue}if(fn(h)){var m=typeof h.style=="string"?r.date[h.style]:bt(h.style)?h.style.parsedOptions:void 0;a.push({type:$.literal,value:n.getDateTimeFormat(t,m).format(f)});continue}if(dn(h)){var m=typeof h.style=="string"?r.time[h.style]:bt(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:$.literal,value:n.getDateTimeFormat(t,m).format(f)});continue}if(cn(h)){var m=typeof h.style=="string"?r.number[h.style]:bn(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:$.literal,value:n.getNumberFormat(t,m).format(f)});continue}if(gn(h)){var _=h.children,b=h.value,v=i[b];if(!Di(v))throw new Ni(b,"function",s);var y=De(_,t,n,r,i,o),M=v(y.map(function(T){return T.value}));Array.isArray(M)||(M=[M]),a.push.apply(a,M.map(function(T){return{type:typeof T=="string"?$.literal:$.object,value:T}}))}if(pn(h)){var w=h.options[f]||h.options.other;if(!w)throw new $t(h.value,f,Object.keys(h.options),s);a.push.apply(a,De(w.value,t,n,r,i));continue}if(mn(h)){var w=h.options["=".concat(f)];if(!w){if(!Intl.PluralRules)throw new $e(`Intl.PluralRules is not available in this environment.
2
- Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,we.MISSING_INTL_API,s);var g=n.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));w=h.options[g]||h.options.other}if(!w)throw new $t(h.value,f,Object.keys(h.options),s);a.push.apply(a,De(w.value,t,n,r,i,f-(h.offset||0)));continue}}return Ri(a)}function Ui(e,t){return t?ne(ne(ne({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ne(ne({},e[r]),t[r]||{}),n},{})):e}function Gi(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ui(e[r],t[r]),n},ne({},e)):e}function ft(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Vi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,lt([void 0],n,!1)))},{cache:ft(e.number),strategy:ht.variadic}),getDateTimeFormat:ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,lt([void 0],n,!1)))},{cache:ft(e.dateTime),strategy:ht.variadic}),getPluralRules:ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,lt([void 0],n,!1)))},{cache:ft(e.pluralRules),strategy:ht.variadic})}}var Fi=function(){function e(t,n,r,i){n===void 0&&(n=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,f){return!d.length||f.type!==$.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return De(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=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Jr(s,["formatters"]);this.ast=e.__parse(t,ne(ne({},a),{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=Gi(e.formats,r),this.formatters=i&&i.formatters||Vi(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 n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ii,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 ji(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const le={},zi=(e,t,n)=>n&&(t in le||(le[t]={}),e in le[t]||(le[t][e]=n),n),Tn=(e,t)=>{if(t==null)return;if(t in le&&e in le[t])return le[t][e];const n=We(t);for(let r=0;r<n.length;r++){const i=n[r],o=$i(i,e);if(o)return zi(e,t,o)}};let Ot;const Le=ze({});function Xi(e){return Ot[e]||null}function On(e){return e in Ot}function $i(e,t){if(!On(e))return null;const n=Xi(e);return ji(n,t)}function Wi(e){if(e==null)return;const t=We(e);for(let n=0;n<t.length;n++){const r=t[n];if(On(r))return r}}function Cn(e,...t){delete le[e],Le.update(n=>(n[e]=Qr.all([n[e]||{},...t]),n))}Te([Le],([e])=>Object.keys(e));Le.subscribe(e=>Ot=e);const Ue={};function qi(e,t){Ue[e].delete(t),Ue[e].size===0&&delete Ue[e]}function Hn(e){return Ue[e]}function Zi(e){return We(e).map(t=>{const n=Hn(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function wt(e){return e==null?!1:We(e).some(t=>{var n;return(n=Hn(t))==null?void 0:n.size})}function Qi(e,t){return Promise.all(t.map(r=>(qi(e,r),r().then(i=>i.default||i)))).then(r=>Cn(e,...r))}const He={};function An(e){if(!wt(e))return e in He?He[e]:Promise.resolve();const t=Zi(e);return He[e]=Promise.all(t.map(([n,r])=>Qi(n,r))).then(()=>{if(wt(e))return An(e);delete He[e]}),He[e]}const Ji={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"}}},Yi={fallbackLocale:null,loadingDelay:200,formats:Ji,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ki=Yi;function Se(){return Ki}const dt=ze(!1);var eo=Object.defineProperty,to=Object.defineProperties,no=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,qt=(e,t,n)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oo=(e,t)=>{for(var n in t||(t={}))ro.call(t,n)&&qt(e,n,t[n]);if(Wt)for(var n of Wt(t))io.call(t,n)&&qt(e,n,t[n]);return e},so=(e,t)=>to(e,no(t));let St;const Fe=ze(null);function Zt(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function We(e,t=Se().fallbackLocale){const n=Zt(e);return t?[...new Set([...n,...Zt(t)])]:n}function fe(){return St!=null?St:void 0}Fe.subscribe(e=>{St=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ao=e=>{if(e&&Wi(e)&&wt(e)){const{loadingDelay:t}=Se();let n;return typeof window!="undefined"&&fe()!=null&&t?n=window.setTimeout(()=>dt.set(!0),t):dt.set(!0),An(e).then(()=>{Fe.set(e)}).finally(()=>{clearTimeout(n),dt.set(!1)})}return Fe.set(e)},Oe=so(oo({},Fe),{set:ao}),qe=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var lo=Object.defineProperty,je=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Qt=(e,t,n)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ct=(e,t)=>{for(var n in t||(t={}))Mn.call(t,n)&&Qt(e,n,t[n]);if(je)for(var n of je(t))Bn.call(t,n)&&Qt(e,n,t[n]);return e},Ce=(e,t)=>{var n={};for(var r in e)Mn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&je)for(var r of je(e))t.indexOf(r)<0&&Bn.call(e,r)&&(n[r]=e[r]);return n};const Pe=(e,t)=>{const{formats:n}=Se();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},uo=qe(e=>{var t=e,{locale:n,format:r}=t,i=Ce(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Pe("number",r)),new Intl.NumberFormat(n,i)}),ho=qe(e=>{var t=e,{locale:n,format:r}=t,i=Ce(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Pe("date",r):Object.keys(i).length===0&&(i=Pe("date","short")),new Intl.DateTimeFormat(n,i)}),co=qe(e=>{var t=e,{locale:n,format:r}=t,i=Ce(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Pe("time",r):Object.keys(i).length===0&&(i=Pe("time","short")),new Intl.DateTimeFormat(n,i)}),fo=(e={})=>{var t=e,{locale:n=fe()}=t,r=Ce(t,["locale"]);return uo(Ct({locale:n},r))},po=(e={})=>{var t=e,{locale:n=fe()}=t,r=Ce(t,["locale"]);return ho(Ct({locale:n},r))},mo=(e={})=>{var t=e,{locale:n=fe()}=t,r=Ce(t,["locale"]);return co(Ct({locale:n},r))},go=qe((e,t=fe())=>new Fi(e,t,Se().formats,{ignoreTag:Se().ignoreTag})),bo=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=fe(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Tn(e,u);if(!h)h=(o=(i=(r=(n=Se()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))!=null?i: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(!a)return h;let d=h;try{d=go(h,u).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return d},yo=(e,t)=>mo(t).format(e),vo=(e,t)=>po(t).format(e),Eo=(e,t)=>fo(t).format(e),_o=(e,t=fe())=>Tn(e,t),xo=Te([Oe,Le],()=>bo);Te([Oe],()=>yo);Te([Oe],()=>vo);Te([Oe],()=>Eo);Te([Oe,Le],()=>_o);function Jt(e,t){Cn(e,t)}function wo(e){Oe.set(e)}const Yt={en:{otpTitle:"Code verification is required",popupMessage:"Please enter the security code received on your SMS/email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, your transaction will fail and you will be returned back to payment method.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resent OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",timeRemaining:"Code expires in:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS",channelEmail:"Email",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Identity verification",identityVerificationSubtitle:"Please verify your identity via {method} to proceed",sendCode:"Send code",waitSeconds:"Please wait for before resending:"},tr:{otpTitle:"Kod doğrulaması gereklidir",popupMessage:"Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama denemesi başarısız olursa, işleminiz başarısız olacak ve ödeme yöntemine geri döndürüleceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",accountBlocked:"OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",submissionError:"Bir şeyler ters gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",timeRemaining:"Kodun süresi doluyor:",selectChannelTitle:"Doğrulama yöntemi seçin",selectChannelMessage:"Doğrulama kodunuzu nasıl almak istediğinizi seçin",channelSMS:"SMS kodu",channelEmail:"E-posta kodu",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Kimlik doğrulama",identityVerificationSubtitle:"Devam etmek için lütfen kimliğinizi {method} ile doğrulayın",sendCode:"Kodu gönder",waitSeconds:"Tekrar göndermeden önce lütfen bekleyin:"},fr:{otpTitle:"La vérification par code est requise",popupMessage:"Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d'effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Saisir le code OTP",resendOtp:"Renvoyer le code OTP",submit:"Valider",close:"Fermer",invalidOtp:"Le code que vous avez saisi n'est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Une erreur s'est produite. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",timeRemaining:"Le code expire dans :",selectChannelTitle:"Sélectionner la méthode de vérification",selectChannelMessage:"Choisissez comment vous souhaitez recevoir votre code de vérification",channelSMS:"SMS",channelEmail:"E-mail",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Vérification d'identité",identityVerificationSubtitle:"Veuillez vérifier votre identité via {method} pour continuer",sendCode:"Envoyer le code",waitSeconds:"Veuillez patienter avant de renvoyer le code :"},da:{otpTitle:"Kodebekræftelse er påkrævet",popupMessage:"Indtast venligst sikkerhedskoden modtaget på din SMS/e-mailadresse for at udføre opdateringen.",popupMessageLastWarning:"Hvis det næste valideringsforsøg mislykkes, vil din transaktion mislykkes, og du vil blive sendt tilbage til betalingsmetoden.",minutes:"minutter",errorHeader:"Fejl",configError:"Kan ikke indlæse OTP-data. Prøv venligst igen senere.",otpHeading:"Indtast OTP",resendOtp:"Send OTP igen",submit:"Indsend",close:"Luk",invalidOtp:"Koden du har sendt er ikke gyldig. Prøv venligst igen.",accountBlocked:"For mange forsøg på OTP. Din konto er blevet blokeret i en time.",submissionError:"Noget gik galt. Prøv venligst igen.",otpExpiredMessage:"Valideringskoden er udløbet. Anmod venligst om en ny for at fortsætte.",timeRemaining:"Koden udløber om:",selectChannelTitle:"Vælg bekræftelsesmetode",selectChannelMessage:"Vælg, hvordan du gerne vil modtage din bekræftelseskode",channelSMS:"SMS",channelEmail:"E-mail",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Identitetsbekræftelse",identityVerificationSubtitle:"Bekræft venligst din identitet via {method} for at fortsætte",sendCode:"Send kode",waitSeconds:"Vent venligst før genafsendelse:"},de:{otpTitle:"Code-Verifizierung ist erforderlich",popupMessage:"Bitte geben Sie den Sicherheitscode ein, den Sie per SMS/E-Mail erhalten haben, um die Aktualisierung durchzuführen.",popupMessageLastWarning:"Wenn der nächste Validierungsversuch fehlschlägt, schlägt Ihre Transaktion fehl und Sie werden zur Zahlungsmethode zurückgeleitet.",minutes:"Minuten",errorHeader:"Fehler",configError:"OTP-Daten können nicht geladen werden. Bitte versuchen Sie es später erneut.",otpHeading:"OTP eingeben",resendOtp:"OTP erneut senden",submit:"Absenden",close:"Schließen",invalidOtp:"Der von Ihnen gesendete Code ist ungültig. Bitte versuchen Sie es erneut.",accountBlocked:"Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",submissionError:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",otpExpiredMessage:"Der Validierungscode ist abgelaufen. Bitte fordern Sie einen neuen an, um fortzufahren.",timeRemaining:"Code läuft ab in:",selectChannelTitle:"Verifizierungsmethode auswählen",selectChannelMessage:"Wählen Sie, wie Sie Ihren Verifizierungscode erhalten möchten",channelSMS:"SMS",channelEmail:"E-Mail",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Identitätsprüfung",identityVerificationSubtitle:"Bitte verifizieren Sie Ihre Identität über {method}, um fortzufahren",sendCode:"Code senden",waitSeconds:"Bitte warten Sie, bevor Sie erneut senden:"},nl:{otpTitle:"Codeverificatie is vereist",popupMessage:"Voer de beveiligingscode in die u via SMS/e-mail heeft ontvangen om de update uit te voeren.",popupMessageLastWarning:"Als de volgende validatiepoging mislukt, zal uw transactie mislukken en wordt u teruggestuurd naar de betaalmethode.",minutes:"minuten",errorHeader:"Fout",configError:"Kan OTP-gegevens niet laden. Probeer het later opnieuw.",otpHeading:"OTP invoeren",resendOtp:"OTP opnieuw verzenden",submit:"Verzenden",close:"Sluiten",invalidOtp:"De code die u heeft verzonden is niet geldig. Probeer het opnieuw.",accountBlocked:"Te veel OTP-pogingen. Uw account is voor één uur geblokkeerd.",submissionError:"Er is iets misgegaan. Probeer het opnieuw.",otpExpiredMessage:"De validatiecode is verlopen. Vraag een nieuwe aan om door te gaan.",timeRemaining:"Code verloopt over:",selectChannelTitle:"Verificatiemethode selecteren",selectChannelMessage:"Kies hoe u uw verificatiecode wilt ontvangen",channelSMS:"SMS",channelEmail:"E-mail",channelVerification:"Verification",continueVerification:"Continue",identityVerificationTitle:"Identiteitsverificatie",identityVerificationSubtitle:"Verifieer uw identiteit via {method} om door te gaan",sendCode:"Code verzenden",waitSeconds:"Wacht even voordat u opnieuw verzendt:"},ru:{otpTitle:"Требуется подтверждение кода",popupMessage:"Пожалуйста, введите код безопасности, полученный по SMS/на электронную почту, чтобы выполнить обновление.",popupMessageLastWarning:"Если следующая попытка проверки не удастся, ваша операция завершится ошибкой, и вы будете возвращены к способу оплаты.",minutes:"минут",errorHeader:"Ошибка",configError:"Не удалось загрузить данные OTP. Пожалуйста, попробуйте позже.",otpHeading:"Введите OTP",resendOtp:"Отправить OTP повторно",submit:"Отправить",close:"Закрыть",invalidOtp:"Отправленный вами код недействителен. Пожалуйста, попробуйте снова.",accountBlocked:"Слишком много попыток ввода OTP. Ваш аккаунт заблокирован на один час.",submissionError:"Что-то пошло не так. Пожалуйста, попробуйте снова.",otpExpiredMessage:"Код подтверждения истёк, пожалуйста, запросите новый, чтобы продолжить.",timeRemaining:"Код истекает через:",selectChannelTitle:"Выберите способ подтверждения",selectChannelMessage:"Выберите, как вы хотите получить код подтверждения",channelSMS:"SMS",channelEmail:"Email",sendCode:"Отправить код",waitSeconds:"Пожалуйста, подождите перед повторной отправкой:"},az:{otpTitle:"Kod təsdiqi tələb olunur",popupMessage:"Yeniləməni icra etmək üçün SMS/e-poçt ünvanınıza göndərilən təhlükəsizlik kodunu daxil edin.",popupMessageLastWarning:"Növbəti təsdiqləmə cəhdi baş tutmasa, əməliyyatınız alınmayacaq və ödəniş üsuluna qaytarılacaqsınız.",minutes:"dəqiqə",errorHeader:"Xəta",configError:"OTP məlumatları yüklənə bilmədi. Zəhmət olmasa sonra yenidən cəhd edin.",otpHeading:"OTP daxil edin",resendOtp:"OTP-ni yenidən göndər",submit:"Göndər",close:"Bağla",invalidOtp:"Göndərdiyiniz kod yalnışdır. Zəhmət olmasa yenidən cəhd edin.",accountBlocked:"OTP üçün çox sayda cəhd edildi. Hesabınız bir saat müddətinə bloklanıb.",submissionError:"Nəsə səhv getdi. Zəhmət olmasa yenidən cəhd edin.",otpExpiredMessage:"Təsdiqləmə kodunun müddəti bitib, davam etmək üçün yenisini tələb edin.",timeRemaining:"Kodun müddəti bitir:",selectChannelTitle:"Təsdiqləmə üsulunu seçin",selectChannelMessage:"Təsdiqləmə kodunuzu necə almaq istədiyinizi seçin",channelSMS:"SMS",channelEmail:"E-poçt",sendCode:"Kodu göndər",waitSeconds:"Yenidən göndərmədən əvvəl zəhmət olmasa gözləyin:"}};function So(e){ar(e,"svelte-gpy3mu",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}')}function Kt(e,t,n){const r=e.slice();return r[74]=t[n],r[75]=t,r[76]=n,r}function To(e){let t,n,r,i,o,s;function a(g,T){return g[14]?Mo:g[10]?Ao:g[13]?Co:Ho}let u=a(e),l=u(e),h=!e[14]&&tn(e);function d(g,T){if(g[14])return Io;if(g[1])return Lo}let f=d(e),m=f&&f(e);function _(g,T){if(g[4]&&g[13])return Do;if(g[13]&&g[5])return Ro}let b=_(e),v=b&&b(e);function y(g,T){if(g[10])return Go;if(g[13]&&g[5])return Uo}let M=y(e),w=M&&M(e);return{c(){t=C("div"),l.c(),n=V(),h&&h.c(),r=V(),m&&m.c(),i=V(),v&&v.c(),o=V(),s=C("div"),w&&w.c(),p(t,"class","OtpDescription"),p(s,"class","OtpActionButtons")},m(g,T){B(g,t,T),l.m(t,null),B(g,n,T),h&&h.m(g,T),B(g,r,T),m&&m.m(g,T),B(g,i,T),v&&v.m(g,T),B(g,o,T),B(g,s,T),w&&w.m(s,null)},p(g,T){u===(u=a(g))&&l?l.p(g,T):(l.d(1),l=u(g),l&&(l.c(),l.m(t,null))),g[14]?h&&(h.d(1),h=null):h?h.p(g,T):(h=tn(g),h.c(),h.m(r.parentNode,r)),f===(f=d(g))&&m?m.p(g,T):(m&&m.d(1),m=f&&f(g),m&&(m.c(),m.m(i.parentNode,i))),b===(b=_(g))&&v?v.p(g,T):(v&&v.d(1),v=b&&b(g),v&&(v.c(),v.m(o.parentNode,o))),M===(M=y(g))&&w?w.p(g,T):(w&&w.d(1),w=M&&M(g),w&&(w.c(),w.m(s,null)))},d(g){g&&(A(t),A(n),A(r),A(i),A(o),A(s)),l.d(),h&&h.d(g),m&&m.d(g),v&&v.d(g),w&&w.d()}}}function Oo(e){let t,n,r,i,o,s,a=e[21]("errorHeader")+"",u,l,h,d,f,m,_=e[21]("close")+"",b,v,y;return{c(){t=C("div"),n=C("div"),r=ee("svg"),i=ee("path"),o=V(),s=C("h2"),u=L(a),l=V(),h=C("p"),d=L(e[9]),f=V(),m=C("button"),b=L(_),p(i,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"viewBox","0 0 512 512"),p(n,"class","OtpErrorHeader"),p(m,"class","OtpButton error"),p(t,"class","OtpError")},m(M,w){B(M,t,w),E(t,n),E(n,r),E(r,i),E(n,o),E(n,s),E(s,u),E(t,l),E(t,h),E(h,d),E(t,f),E(t,m),E(m,b),v||(y=re(m,"click",e[31]),v=!0)},p(M,w){w[0]&2097152&&a!==(a=M[21]("errorHeader")+"")&&D(u,a),w[0]&512&&D(d,M[9]),w[0]&2097152&&_!==(_=M[21]("close")+"")&&D(b,_)},d(M){M&&A(t),v=!1,y()}}}function Co(e){let t,n,r,i;function o(l,h){return l[11]?Po:Bo}let s=o(e),a=s(e),u=e[7]&&en(e);return{c(){t=C("p"),a.c(),r=V(),u&&u.c(),i=cr(),p(t,"class",n=e[11]?"LastWarningMessage":"")},m(l,h){B(l,t,h),a.m(t,null),B(l,r,h),u&&u.m(l,h),B(l,i,h)},p(l,h){s===(s=o(l))&&a?a.p(l,h):(a.d(1),a=s(l),a&&(a.c(),a.m(t,null))),h[0]&2048&&n!==(n=l[11]?"LastWarningMessage":"")&&p(t,"class",n),l[7]?u?u.p(l,h):(u=en(l),u.c(),u.m(i.parentNode,i)):u&&(u.d(1),u=null)},d(l){l&&(A(t),A(r),A(i)),a.d(),u&&u.d(l)}}}function Ho(e){let t,n=(e[21]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"",r;return{c(){t=C("p"),r=L(n)},m(i,o){B(i,t,o),E(t,r)},p(i,o){o[0]&2097152&&n!==(n=(i[21]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"")&&D(r,n)},d(i){i&&A(t)}}}function Ao(e){let t,n=e[21]("otpExpiredMessage")+"",r;return{c(){t=C("p"),r=L(n),p(t,"class","OtpNoticeMessage"),p(t,"role","alert")},m(i,o){B(i,t,o),E(t,r)},p(i,o){o[0]&2097152&&n!==(n=i[21]("otpExpiredMessage")+"")&&D(r,n)},d(i){i&&A(t)}}}function Mo(e){let t,n=e[21]("identityVerificationSubtitle",{values:{method:e[0]}})+"",r;return{c(){t=C("p"),r=L(n),p(t,"class","IdentityVerificationSubtitle")},m(i,o){B(i,t,o),E(t,r)},p(i,o){o[0]&2097153&&n!==(n=i[21]("identityVerificationSubtitle",{values:{method:i[0]}})+"")&&D(r,n)},d(i){i&&A(t)}}}function Bo(e){let t=e[21]("popupMessage")+"",n;return{c(){n=L(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&2097152&&t!==(t=r[21]("popupMessage")+"")&&D(n,t)},d(r){r&&A(n)}}}function Po(e){let t=e[21]("popupMessageLastWarning")+"",n;return{c(){n=L(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&2097152&&t!==(t=r[21]("popupMessageLastWarning")+"")&&D(n,t)},d(r){r&&A(n)}}}function en(e){let t,n;return{c(){t=C("p"),n=L(e[9]),p(t,"class","OtpErrorMessage"),p(t,"role","alert")},m(r,i){B(r,t,i),E(t,n)},p(r,i){i[0]&512&&D(n,r[9])},d(r){r&&A(t)}}}function tn(e){let t,n,r,i,o,s,a,u,l,h,d,f,m,_,b,v=e[21]("channelSMS")+"",y,M,w,g,T,k,R,ie,W,G,Z,de,F,X,z=e[21]("channelEmail")+"",ae,ue,pe;return{c(){t=C("div"),n=C("label"),r=C("div"),i=V(),o=C("input"),a=V(),u=C("div"),l=ee("svg"),h=ee("path"),d=ee("circle"),f=ee("circle"),m=ee("circle"),_=V(),b=C("span"),y=L(v),M=V(),w=C("label"),g=C("div"),T=V(),k=C("input"),ie=V(),W=C("div"),G=ee("svg"),Z=ee("rect"),de=ee("path"),F=V(),X=C("span"),ae=L(z),p(r,"class","RadioIndicator"),te(r,"checked",e[1]===e[22].SMS),p(o,"type","radio"),p(o,"name","channel"),o.value=e[22].SMS,o.checked=s=e[1]===e[22].SMS,p(h,"d","M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"),p(d,"cx","9"),p(d,"cy","11"),p(d,"r","0.5"),p(d,"fill","currentColor"),p(f,"cx","12"),p(f,"cy","11"),p(f,"r","0.5"),p(f,"fill","currentColor"),p(m,"cx","15"),p(m,"cy","11"),p(m,"r","0.5"),p(m,"fill","currentColor"),p(l,"xmlns","http://www.w3.org/2000/svg"),p(l,"width","24"),p(l,"height","24"),p(l,"viewBox","0 0 24 24"),p(l,"fill","none"),p(l,"stroke","currentColor"),p(l,"stroke-width","2"),p(l,"stroke-linecap","round"),p(l,"stroke-linejoin","round"),p(u,"class","ChannelContent"),p(n,"class","ChannelCheckbox"),te(n,"selected",e[1]===e[22].SMS),p(g,"class","RadioIndicator"),te(g,"checked",e[1]===e[22].EMAIL),p(k,"type","radio"),p(k,"name","channel"),k.value=e[22].EMAIL,k.checked=R=e[1]===e[22].EMAIL,p(Z,"x","2"),p(Z,"y","4"),p(Z,"width","20"),p(Z,"height","16"),p(Z,"rx","2"),p(de,"d","m2 7 10 6 10-6"),p(G,"xmlns","http://www.w3.org/2000/svg"),p(G,"width","24"),p(G,"height","24"),p(G,"viewBox","0 0 24 24"),p(G,"fill","none"),p(G,"stroke","currentColor"),p(G,"stroke-width","2"),p(G,"stroke-linecap","round"),p(G,"stroke-linejoin","round"),p(W,"class","ChannelContent"),p(w,"class","ChannelCheckbox"),te(w,"selected",e[1]===e[22].EMAIL),p(t,"class","ChannelSelection")},m(I,q){B(I,t,q),E(t,n),E(n,r),E(n,i),E(n,o),E(n,a),E(n,u),E(u,l),E(l,h),E(l,d),E(l,f),E(l,m),E(u,_),E(u,b),E(b,y),E(t,M),E(t,w),E(w,g),E(w,T),E(w,k),E(w,ie),E(w,W),E(W,G),E(G,Z),E(G,de),E(W,F),E(W,X),E(X,ae),ue||(pe=[re(o,"change",e[42]),re(k,"change",e[43])],ue=!0)},p(I,q){q[0]&4194306&&te(r,"checked",I[1]===I[22].SMS),q[0]&2&&s!==(s=I[1]===I[22].SMS)&&(o.checked=s),q[0]&2097152&&v!==(v=I[21]("channelSMS")+"")&&D(y,v),q[0]&4194306&&te(n,"selected",I[1]===I[22].SMS),q[0]&4194306&&te(g,"checked",I[1]===I[22].EMAIL),q[0]&2&&R!==(R=I[1]===I[22].EMAIL)&&(k.checked=R),q[0]&2097152&&z!==(z=I[21]("channelEmail")+"")&&D(ae,z),q[0]&4194306&&te(w,"selected",I[1]===I[22].EMAIL)},d(I){I&&A(t),ue=!1,ce(pe)}}}function Lo(e){let t,n,r,i;function o(u,l){return u[19]>0?ko:No}let s=o(e),a=s(e);return{c(){t=C("button"),a.c(),p(t,"class","OtpButton"),t.disabled=n=!e[20],te(t,"disabled",!e[20]||e[18])},m(u,l){B(u,t,l),a.m(t,null),r||(i=re(t,"click",e[25]),r=!0)},p(u,l){s===(s=o(u))&&a?a.p(u,l):(a.d(1),a=s(u),a&&(a.c(),a.m(t,null))),l[0]&1048576&&n!==(n=!u[20])&&(t.disabled=n),l[0]&1310720&&te(t,"disabled",!u[20]||u[18])},d(u){u&&A(t),a.d(),r=!1,i()}}}function Io(e){let t,n=(e[21]("continueVerification")||"Continue")+"",r,i,o;return{c(){t=C("button"),r=L(n),p(t,"class","OtpButton")},m(s,a){B(s,t,a),E(t,r),i||(o=re(t,"click",e[24]),i=!0)},p(s,a){a[0]&2097152&&n!==(n=(s[21]("continueVerification")||"Continue")+"")&&D(r,n)},d(s){s&&A(t),i=!1,o()}}}function No(e){let t=e[21]("sendCode")+"",n;return{c(){n=L(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&2097152&&t!==(t=r[21]("sendCode")+"")&&D(n,t)},d(r){r&&A(n)}}}function ko(e){let t=e[21]("waitSeconds")+"",n,r,i,o;return{c(){n=L(t),r=L(" ("),i=L(e[19]),o=L("s)")},m(s,a){B(s,n,a),B(s,r,a),B(s,i,a),B(s,o,a)},p(s,a){a[0]&2097152&&t!==(t=s[21]("waitSeconds")+"")&&D(n,t),a[0]&524288&&D(i,s[19])},d(s){s&&(A(n),A(r),A(i),A(o))}}}function Ro(e){let t,n,r=e[21]("timeRemaining")+"",i,o,s=e[26](e[6])+"",a,u,l=e[21]("minutes")+"",h,d,f,m=Rt(e[3]),_=[];for(let b=0;b<m.length;b+=1)_[b]=nn(Kt(e,m,b));return{c(){t=C("div"),n=C("div"),i=L(r),o=V(),a=L(s),u=V(),h=L(l),d=V(),f=C("div");for(let b=0;b<_.length;b+=1)_[b].c();p(n,"class","OtpTimer"),p(f,"class","OtpField"),p(t,"class","OtpFieldWrapper")},m(b,v){B(b,t,v),E(t,n),E(n,i),E(n,o),E(n,a),E(n,u),E(n,h),E(t,d),E(t,f);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(f,null)},p(b,v){if(v[0]&2097152&&r!==(r=b[21]("timeRemaining")+"")&&D(i,r),v[0]&64&&s!==(s=b[26](b[6])+"")&&D(a,s),v[0]&2097152&&l!==(l=b[21]("minutes")+"")&&D(h,l),v[0]&939593768){m=Rt(b[3]);let y;for(y=0;y<m.length;y+=1){const M=Kt(b,m,y);_[y]?_[y].p(M,v):(_[y]=nn(M),_[y].c(),_[y].m(f,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=m.length}},d(b){b&&A(t),hr(_,b)}}}function Do(e){let t;return{c(){t=C("div"),t.innerHTML='<span class="OtpLoader"></span>',p(t,"class","OtpLoaderContainer")},m(n,r){B(n,t,r)},p:J,d(n){n&&A(t)}}}function nn(e){let t,n,r,i=e[76],o,s;const a=()=>e[44](t,i),u=()=>e[44](null,i);function l(...d){return e[45](e[76],...d)}function h(...d){return e[46](e[76],...d)}return{c(){t=C("input"),p(t,"id",`otp-input-${e[76]}`),p(t,"type","text"),p(t,"class",n=`otp-box ${e[5].inputLength%2===0&&e[76]===e[5].inputLength/2-1?"space":""}`),p(t,"maxlength",1),t.value=r=e[74],p(t,"inputmode","numeric"),t.disabled=e[12],p(t,"autocomplete","off")},m(d,f){B(d,t,f),a(),o||(s=[re(t,"input",l),re(t,"keydown",h),re(t,"paste",e[27])],o=!0)},p(d,f){e=d,f[0]&32&&n!==(n=`otp-box ${e[5].inputLength%2===0&&e[76]===e[5].inputLength/2-1?"space":""}`)&&p(t,"class",n),f[0]&8&&r!==(r=e[74])&&t.value!==r&&(t.value=r),f[0]&4096&&(t.disabled=e[12]),i!==e[76]&&(u(),i=e[76],a())},d(d){d&&A(t),u(),o=!1,ce(s)}}}function Uo(e){let t,n=e[21]("submit")+"",r,i,o,s;return{c(){t=C("button"),r=L(n),p(t,"class","OtpButton"),t.disabled=i=e[3].join("").length!==e[5].inputLength||e[15]||e[17]},m(a,u){B(a,t,u),E(t,r),o||(s=re(t,"click",e[32]),o=!0)},p(a,u){u[0]&2097152&&n!==(n=a[21]("submit")+"")&&D(r,n),u[0]&163880&&i!==(i=a[3].join("").length!==a[5].inputLength||a[15]||a[17])&&(t.disabled=i)},d(a){a&&A(t),o=!1,s()}}}function Go(e){let t,n=e[21]("resendOtp")+"",r,i,o;return{c(){t=C("button"),r=L(n),p(t,"class","OtpButton")},m(s,a){B(s,t,a),E(t,r),i||(o=re(t,"click",e[30]),i=!0)},p(s,a){a[0]&2097152&&n!==(n=s[21]("resendOtp")+"")&&D(r,n)},d(s){s&&A(t),i=!1,o()}}}function Vo(e){let t;function n(o,s){return o[8]?Oo:To}let r=n(e),i=r(e);return{c(){t=C("div"),i.c(),p(t,"class","OtpContent")},m(o,s){B(o,t,s),i.m(t,null),e[47](t)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(t,null)))},i:J,o:J,d(o){o&&A(t),i.d(),e[47](null)}}}function Fo(e,t,n){let r,i,o;sr(e,xo,c=>n(21,o=c));let{clientstyling:s=""}=t,{clientstylingurl:a=""}=t,{mbsource:u}=t,{lang:l="en"}=t,{endpoint:h}=t,{session:d}=t,{translationurl:f}=t,{templateid:m}=t,{oidcverificationmethod:_=""}=t,b=[],v=!0,y=null,M=0,w="",g="",T=!1,k=!1,R="",ie="",W="",G=!1,Z=!1,de=!1,F="",X={},z=null,ae=!1,ue=!1,pe="",I=!1,q="",oe,Ln,he=[],K=null,Ze=0,Qe=!1,Je=!1;const Ye={SMS:"sms",EMAIL:"email"},Ie={MAX_ATTEMPTS_EXCEEDED:"gm.twofa.token_max_attempts_exceeded",INTERNAL_SERVER_ERROR:"gm.multifactorauthentication.internal_server_error",MAX_INVALIDATE:"gm.multifactorauthentication.challenge_internal_server_error"};Object.keys(Yt).forEach(c=>{Jt(c,Yt[c])});const In=()=>{wo(l)},Nn=()=>{fetch(f).then(c=>c.json()).then(c=>{Object.keys(c).forEach(x=>{Jt(x,c[x])})}).catch(c=>{console.log(c)})},Ht=c=>se(this,null,function*(){var x;if((x=c.detail)!=null&&x["x-step-up-required"]){if(n(8,k=!1),n(7,T=!1),n(9,R=""),ie=c.detail["x-step-up-token"],W=c.detail.flow,n(14,ue=W==="oidc"),!ie||!W){n(4,v=!1),n(8,k=!0),n(9,R=o("configError"));return}n(13,ae=!1),n(4,v=!1)}}),kn=()=>{K&&(clearInterval(K),K=null),z&&(clearInterval(z),z=null),n(7,T=!1),n(8,k=!1),n(9,R=""),n(11,Z=!1),n(3,b=[]),n(5,y=null),n(4,v=!0),n(1,F=""),n(13,ae=!1),n(41,X={}),n(14,ue=!1),pe=""},At=()=>{kn()},Mt=()=>new Promise((c,x)=>{const S=new URL(`${h}/api/pam/v1/mfa/challenge/${ie}`),U=new Headers;U.append("accept","application/json"),U.append("Content-Type","application/json"),U.append("X-SessionId",`${d}`),n(18,Je=!0);const me={method:"PATCH",headers:U,body:JSON.stringify({channel:F,templateId:m})};fetch(S,me).then(Lt=>Lt.json()).then(()=>{n(17,Qe=!1),et(),tt(),c()}).catch(Lt=>{x()})}),Rn=()=>{z&&clearInterval(z),z=setInterval(()=>{const c=Ne({},X);let x=!1;Object.keys(c).forEach(S=>{c[S]>0&&(c[S]--,x=!0)}),n(41,X=c),!x&&z&&(clearInterval(z),z=null)},1e3)},Ke=c=>{n(1,F=c)},Dn=()=>se(this,null,function*(){yield Wn(),!(k||!(y!=null&&y.authorizeUrl))&&(pe=y.authorizeUrl,window.postMessage({type:"oidcRedirectRequired",authoriseUrl:pe,challengeSessionId:y.challengeSessionId},window.location.href))}),Un=()=>se(this,null,function*(){if(!(!F||X[F]&&X[F]>0)){n(4,v=!0),m&&m.startsWith("2fa-")&&n(33,m=`2fa-${F}`);try{yield Mt(),yield it(),n(41,X=st(Ne({},X),{[F]:30})),Rn(),n(13,ae=!0),et(),tt()}catch(c){console.error("Error submitting channel:",c),n(7,T=!0),n(9,R=o("submissionError"))}finally{n(4,v=!1)}}}),et=()=>{const c=new Date(w),x=new Date(g),S=new Date,U=x.getTime()-S.getTime();Ze=c.getTime()-U;const j=Date.now(),me=Math.max(0,Math.floor((Ze-j)/1e3));n(6,M=me)},tt=()=>{K&&clearInterval(K),K=setInterval(()=>{const c=Date.now(),x=Math.max(0,Math.floor((Ze-c)/1e3));n(6,M=x),n(12,de=x<=0),x<=0&&(clearInterval(K),K=null,n(10,G=!0),n(7,T=!1),n(11,Z=!1))},1e3)},Gn=c=>{const x=Math.floor(c/60),S=c%60;return`${x.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}`},nt=(c,x)=>{const S=[...b];S[c]=x.toUpperCase(),n(3,b=S),S.join("")!==q&&n(15,I=!1)},Vn=c=>{var U,j,me;c.preventDefault();const S=(((j=(U=c.clipboardData)==null?void 0:U.getData("text"))==null?void 0:j.trim())||"").slice(0,y.inputLength).split("");n(3,b=[...S,...Array(y.inputLength-S.length).fill("")]),(me=he[S.length])==null||me.focus(),S.length===y.inputLength&&rt()},Bt=(c,x)=>{const S=c.target,U=S.value;if(/^[a-z0-9]$/i.test(U)){nt(x,U);const j=he[x+1];j==null||j.focus()}S.value=""},Pt=(c,x)=>{const S=c.key,U=c.ctrlKey||c.metaKey;if(/^[a-z0-9]$/i.test(S)){if(U&&S.toLowerCase()==="v")return;c.preventDefault(),nt(x,S);const j=he[x+1];j==null||j.focus()}else if(S==="Backspace"){c.preventDefault(),b[x]!==""&&nt(x,"");const j=he[x-1];j==null||j.focus()}else S==="Enter"&&(c.preventDefault(),rt())},Fn=()=>{W=="stateful"&&(Mt(),n(10,G=!1));const c=new CustomEvent("otpResendRequested");window.dispatchEvent(c)},jn=c=>{window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:c,maxAttempts:y.maxValidationAttempts,validatedAttempts:y.numberOfValidateAttempts}}))},zn=c=>se(this,null,function*(){const x=new URL(`/api/nwa/api/v1/mfa/challenge/${ie}/validate`,h);x.searchParams.append("input",c);try{const S=yield fetch(x.href,{method:"POST"});if(S.status===200){Xn();return}const U=yield S.json();throw new Error(U.message)}catch(S){if(yield it(),S.message===Ie.INTERNAL_SERVER_ERROR){if(y.numberOfValidateAttempts===y.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("accountBlocked")}},window.location.href),window.dispatchEvent(new CustomEvent("manualClosePopup"));return}n(7,T=!0),n(9,R=o("invalidOtp")),it();return}S.message===Ie.MAX_INVALIDATE&&(n(7,T=!0),n(9,R=o("invalidOtp"))),S.details===Ie.MAX_ATTEMPTS_EXCEEDED&&n(17,Qe=!0),console.error("OTP submission failed:",S),n(7,T=!0),n(9,R=o("submissionError"))}finally{n(4,v=!1)}}),Xn=()=>{window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}}))},$n=()=>{window.dispatchEvent(new CustomEvent("manualClosePopup"))},rt=()=>se(this,null,function*(){if(b.join("").length!==y.inputLength){n(7,T=!0),n(9,R=o("invalidOtp"));return}const c=b.join("");n(15,I=!0),q=c,n(4,v=!0),n(7,T=!1),n(9,R=""),W==="stateless"&&jn(c),W==="stateful"&&(yield zn(c))}),Wn=()=>se(this,null,function*(){if(h)try{n(4,v=!0);const c=new URL(`/api/v1/mfa/challenge/${ie}/config`,h),x=yield fetch(c.href),S=yield x.json();if(x.ok)n(5,y=S);else throw new Error(S&&S.message||`Failed to load config. Status: ${x.status}`)}catch(c){n(8,k=!0),n(9,R=o("configError")),console.error("Error loading OIDC config:",c)}finally{n(4,v=!1)}}),it=()=>se(this,null,function*(){if(h)try{n(4,v=!0);const c=new URL(`/api/nwa/api/v1/mfa/challenge/${ie}/config`,h),x=yield fetch(c.href),S=yield x.json();if(x.ok)n(5,y=S),n(3,b=Array(y.inputLength).fill("")),n(10,G=!1),w=y.expirationTime,g=y.serverTime,y.numberOfValidateAttempts!==0&&(n(7,T=!0),n(9,R=o("invalidOtp"))),y.numberOfValidateAttempts===y.maxValidationAttempts-1&&n(11,Z=!0),n(4,v=!1),et(),tt(),n(18,Je=!1);else if(S&&S.details===Ie.MAX_ATTEMPTS_EXCEEDED)window.dispatchEvent(new CustomEvent("manualClosePopup"));else{const U=S&&S.message||`Failed to load config. Status: ${x.status}`;throw new Error(U)}}catch(c){n(4,v=!1),n(8,k=!0),n(9,R=o("configError")),window.dispatchEvent(new CustomEvent("2fa-loading",{detail:{isLoading:!1}})),console.error("Error loading 2FA config:",c)}});mr(()=>(window.addEventListener("stepUpAuthRequired",Ht,!1),window.addEventListener("closePopup",At,!1),()=>{window.removeEventListener("stepUpAuthRequired",Ht),window.removeEventListener("closePopup",At,!1),K&&clearInterval(K),z&&clearInterval(z)}));const qn=()=>Ke(Ye.SMS),Zn=()=>Ke(Ye.EMAIL);function Qn(c,x){Ge[c?"unshift":"push"](()=>{he[x]=c,n(16,he)})}const Jn=(c,x)=>Bt(x,c),Yn=(c,x)=>Pt(x,c);function Kn(c){Ge[c?"unshift":"push"](()=>{oe=c,n(2,oe)})}return e.$$set=c=>{"clientstyling"in c&&n(34,s=c.clientstyling),"clientstylingurl"in c&&n(35,a=c.clientstylingurl),"mbsource"in c&&n(36,u=c.mbsource),"lang"in c&&n(37,l=c.lang),"endpoint"in c&&n(38,h=c.endpoint),"session"in c&&n(39,d=c.session),"translationurl"in c&&n(40,f=c.translationurl),"templateid"in c&&n(33,m=c.templateid),"oidcverificationmethod"in c&&n(0,_=c.oidcverificationmethod)},e.$$.update=()=>{e.$$.dirty[0]&4|e.$$.dirty[1]&8&&s&&oe&&Ar(oe,s),e.$$.dirty[0]&4|e.$$.dirty[1]&16&&a&&oe&&Mr(oe,a),e.$$.dirty[0]&4|e.$$.dirty[1]&32&&u&&oe&&Br(oe,`${u}.Style`,Ln),e.$$.dirty[1]&64&&l&&In(),e.$$.dirty[1]&576&&l&&f&&Nn(),e.$$.dirty[0]&2|e.$$.dirty[1]&1024&&n(20,r=F&&(!X[F]||X[F]===0)),e.$$.dirty[0]&2|e.$$.dirty[1]&1024&&n(19,i=F&&X[F]||0)},[_,F,oe,b,v,y,M,T,k,R,G,Z,de,ae,ue,I,he,Qe,Je,i,r,o,Ye,Ke,Dn,Un,Gn,Vn,Bt,Pt,Fn,$n,rt,m,s,a,u,l,h,d,f,X,qn,Zn,Qn,Jn,Yn,Kn]}class Pn extends Cr{constructor(t){super(),Tr(this,t,Fo,Vo,on,{clientstyling:34,clientstylingurl:35,mbsource:36,lang:37,endpoint:38,session:39,translationurl:40,templateid:33,oidcverificationmethod:0},So,[-1,-1,-1])}get clientstyling(){return this.$$.ctx[34]}set clientstyling(t){this.$$set({clientstyling:t}),Y()}get clientstylingurl(){return this.$$.ctx[35]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Y()}get mbsource(){return this.$$.ctx[36]}set mbsource(t){this.$$set({mbsource:t}),Y()}get lang(){return this.$$.ctx[37]}set lang(t){this.$$set({lang:t}),Y()}get endpoint(){return this.$$.ctx[38]}set endpoint(t){this.$$set({endpoint:t}),Y()}get session(){return this.$$.ctx[39]}set session(t){this.$$set({session:t}),Y()}get translationurl(){return this.$$.ctx[40]}set translationurl(t){this.$$set({translationurl:t}),Y()}get templateid(){return this.$$.ctx[33]}set templateid(t){this.$$set({templateid:t}),Y()}get oidcverificationmethod(){return this.$$.ctx[0]}set oidcverificationmethod(t){this.$$set({oidcverificationmethod:t}),Y()}}Or(Pn,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},session:{},translationurl:{},templateid:{},oidcverificationmethod:{}},[],[],!0);exports.default=Pn;