@everymatrix/player-account-gaming-limits-page-2-gmcore 1.86.2 → 1.86.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountGamingLimitsPage2Gmcore-61TL3yMl.cjs +19 -0
- package/components/{PlayerAccountGamingLimitsPage2Gmcore-CDbMnJ9r.js → PlayerAccountGamingLimitsPage2Gmcore-BKD228bo.js} +979 -1000
- package/components/{PlayerAccountGamingLimitsPage2Gmcore-CAB8ISDt.js → PlayerAccountGamingLimitsPage2Gmcore-BljPvoTp.js} +1019 -1040
- package/es2015/player-account-gaming-limits-page-2-gmcore.cjs +1 -1
- package/es2015/player-account-gaming-limits-page-2-gmcore.js +1 -1
- package/esnext/player-account-gaming-limits-page-2-gmcore.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPage2Gmcore-Cx5OiLHn.cjs +0 -19
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";var hr=Object.defineProperty,mr=Object.defineProperties;var fr=Object.getOwnPropertyDescriptors;var Tt=Object.getOwnPropertySymbols;var pr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable;var We=(e,t,i)=>t in e?hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,wt=(e,t)=>{for(var i in t||(t={}))pr.call(t,i)&&We(e,i,t[i]);if(Tt)for(var i of Tt(t))dr.call(t,i)&&We(e,i,t[i]);return e},St=(e,t)=>mr(e,fr(t));var V=(e,t,i)=>(We(e,typeof t!="symbol"?t+"":t,i),i);var Pt=(e,t,i)=>new Promise((r,n)=>{var o=c=>{try{a(i.next(c))}catch(u){n(u)}},s=c=>{try{a(i.throw(c))}catch(u){n(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((i=i.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function U(){}function hi(e){return e()}function At(){return Object.create(null)}function ie(e){e.forEach(hi)}function dt(e){return typeof e=="function"}function mi(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function br(e){return Object.keys(e).length===0}function fi(e,...t){if(e==null){for(const r of t)r(void 0);return U}const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function gr(e,t,i){e.$$.on_destroy.push(fi(t,i))}function d(e,t){e.appendChild(t)}function yr(e,t,i){const r=vr(e);if(!r.getElementById(t)){const n=v("style");n.id=t,n.textContent=i,_r(r,n)}}function vr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _r(e,t){return d(e.head||e,t),t.sheet}function N(e,t,i){e.insertBefore(t,i||null)}function B(e){e.parentNode&&e.parentNode.removeChild(e)}function Ce(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function v(e){return document.createElement(e)}function be(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function F(e){return document.createTextNode(e)}function j(){return F(" ")}function Er(){return F("")}function Y(e,t,i,r){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)}function g(e,t,i){i==null?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function pi(e){return e===""?null:+e}function Lr(e){return Array.from(e.childNodes)}function W(e,t){t=""+t,e.data!==t&&(e.data=t)}function ve(e,t){e.value=t==null?"":t}function Ve(e,t,i,r){i==null?e.style.removeProperty(t):e.style.setProperty(t,i,"")}function He(e,t,i){for(let r=0;r<e.options.length;r+=1){const n=e.options[r];if(n.__value===t){n.selected=!0;return}}(!i||t!==void 0)&&(e.selectedIndex=-1)}function Bt(e){const t=e.querySelector(":checked");return t&&t.__value}function xr(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}let _e;function ye(e){_e=e}function Tr(){if(!_e)throw new Error("Function called outside component initialization");return _e}function wr(e){Tr().$$.on_mount.push(e)}const se=[],Oe=[];let ae=[];const Nt=[],Sr=Promise.resolve();let tt=!1;function Pr(){tt||(tt=!0,Sr.then(X))}function Ee(e){ae.push(e)}const Xe=new Set;let ne=0;function X(){if(ne!==0)return;const e=_e;do{try{for(;ne<se.length;){const t=se[ne];ne++,ye(t),Ar(t.$$)}}catch(t){throw se.length=0,ne=0,t}for(ye(null),se.length=0,ne=0;Oe.length;)Oe.pop()();for(let t=0;t<ae.length;t+=1){const i=ae[t];Xe.has(i)||(Xe.add(i),i())}ae.length=0}while(se.length);for(;Nt.length;)Nt.pop()();tt=!1,Xe.clear(),ye(e)}function Ar(e){if(e.fragment!==null){e.update(),ie(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ee)}}function Br(e){const t=[],i=[];ae.forEach(r=>e.indexOf(r)===-1?t.push(r):i.push(r)),i.forEach(r=>r()),ae=t}const Nr=new Set;function Ir(e,t){e&&e.i&&(Nr.delete(e),e.i(t))}function te(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Hr(e,t,i){const{fragment:r,after_update:n}=e.$$;r&&r.m(t,i),Ee(()=>{const o=e.$$.on_mount.map(hi).filter(dt);e.$$.on_destroy?e.$$.on_destroy.push(...o):ie(o),e.$$.on_mount=[]}),n.forEach(Ee)}function Or(e,t){const i=e.$$;i.fragment!==null&&(Br(i.after_update),ie(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function Mr(e,t){e.$$.dirty[0]===-1&&(se.push(e),Pr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function kr(e,t,i,r,n,o,s=null,a=[-1]){const c=_e;ye(e);const u=e.$$={fragment:null,ctx:[],props:o,update:U,not_equal:n,bound:At(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:At(),dirty:a,skip_bound:!1,root:t.target||c.$$.root};s&&s(u.root);let l=!1;if(u.ctx=i?i(e,t.props||{},(h,f,...m)=>{const p=m.length?m[0]:f;return u.ctx&&n(u.ctx[h],u.ctx[h]=p)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](p),l&&Mr(e,h)),f}):[],u.update(),l=!0,ie(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const h=Lr(t.target);u.fragment&&u.fragment.l(h),h.forEach(B)}else u.fragment&&u.fragment.c();t.intro&&Ir(e.$$.fragment),Hr(e,t.target,t.anchor),X()}ye(c)}let di;typeof HTMLElement=="function"&&(di=class extends HTMLElement{constructor(t,i,r){super();V(this,"$$ctor");V(this,"$$s");V(this,"$$c");V(this,"$$cn",!1);V(this,"$$d",{});V(this,"$$r",!1);V(this,"$$p_d",{});V(this,"$$l",{});V(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=i,r&&this.attachShadow({mode:"open"})}addEventListener(t,i,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(i),this.$$c){const n=this.$$c.$on(t,i);this.$$l_u.set(i,n)}super.addEventListener(t,i,r)}removeEventListener(t,i,r){if(super.removeEventListener(t,i,r),this.$$c){const n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return Pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=v("slot"),o!=="default"&&g(s,"name",o)},m:function(u,l){N(u,s,l)},d:function(u){u&&B(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const i={},r=xr(this);for(const o of this.$$s)o in r&&(i[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Ae(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(wt({},this.$$d),{$$slots:i,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=Ae(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(n),n();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,i,r){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ae(t,r,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(i=>this.$$p_d[i].attribute===t||!this.$$p_d[i].attribute&&i.toLowerCase()===t)||t}});function Ae(e,t,i,r){var o;const n=(o=i[e])==null?void 0:o.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!i[e])return t;if(r==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Cr(e,t,i,r,n,o){let s=class extends di{constructor(){super(e,i,n),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(c){var u;c=Ae(a,c,t),this.$$d[a]=c,(u=this.$$c)==null||u.$set({[a]:c})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var c;return(c=this.$$c)==null?void 0:c[a]}})}),e.element=s,s}class Dr{constructor(){V(this,"$$");V(this,"$$set")}$destroy(){Or(this,1),this.$destroy=U}$on(t,i){if(!dt(i))return U;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(i),()=>{const n=r.indexOf(i);n!==-1&&r.splice(n,1)}}$set(t){this.$$set&&!br(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Rr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Rr);const Z={deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",periods:["Daily","Weekly","Monthly"]},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",periods:["Daily","Weekly","Monthly"]},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",periods:["Monthly"]},stake:{title:"Stake Limit",value:"stake",callValue:"stakeLimit",periods:["Monthly"]}},oe=[];function Ur(e,t){return{subscribe:De(e,t).subscribe}}function De(e,t=U){let i;const r=new Set;function n(a){if(mi(e,a)&&(e=a,i)){const c=!oe.length;for(const u of r)u[1](),oe.push(u,e);if(c){for(let u=0;u<oe.length;u+=2)oe[u][0](oe[u+1]);oe.length=0}}}function o(a){n(a(e))}function s(a,c=U){const u=[a,c];return r.add(u),r.size===1&&(i=t(n,o)||U),a(e),()=>{r.delete(u),r.size===0&&i&&(i(),i=null)}}return{set:n,update:o,subscribe:s}}function fe(e,t,i){const r=!Array.isArray(e),n=r?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ur(i,(s,a)=>{let c=!1;const u=[];let l=0,h=U;const f=()=>{if(l)return;h();const p=t(r?u[0]:u,s,a);o?s(p):h=dt(p)?p:U},m=n.map((p,_)=>fi(p,R=>{u[_]=R,l&=~(1<<_),c&&f()},()=>{l|=1<<_}));return c=!0,f(),function(){ie(m),h(),c=!1}})}function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fr=function(t){return $r(t)&&!Gr(t)};function $r(e){return!!e&&typeof e=="object"}function Gr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Vr(e)}var zr=typeof Symbol=="function"&&Symbol.for,Wr=zr?Symbol.for("react.element"):60103;function Vr(e){return e.$$typeof===Wr}function Xr(e){return Array.isArray(e)?[]:{}}function Le(e,t){return t.clone!==!1&&t.isMergeableObject(e)?le(Xr(e),e,t):e}function Zr(e,t,i){return e.concat(t).map(function(r){return Le(r,i)})}function Yr(e,t){if(!t.customMerge)return le;var i=t.customMerge(e);return typeof i=="function"?i:le}function qr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function It(e){return Object.keys(e).concat(qr(e))}function bi(e,t){try{return t in e}catch(i){return!1}}function Jr(e,t){return bi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Qr(e,t,i){var r={};return i.isMergeableObject(e)&&It(e).forEach(function(n){r[n]=Le(e[n],i)}),It(t).forEach(function(n){Jr(e,n)||(bi(e,n)&&i.isMergeableObject(t[n])?r[n]=Yr(n,i)(e[n],t[n],i):r[n]=Le(t[n],i))}),r}function le(e,t,i){i=i||{},i.arrayMerge=i.arrayMerge||Zr,i.isMergeableObject=i.isMergeableObject||Fr,i.cloneUnlessOtherwiseSpecified=Le;var r=Array.isArray(t),n=Array.isArray(e),o=r===n;return o?r?i.arrayMerge(e,t,i):Qr(e,t,i):Le(t,i)}le.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return le(r,n,i)},{})};var Kr=le,en=Kr;const tn=jr(en);/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var it=function(e,t){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},it(e,t)};function Q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");it(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var S=function(){return S=Object.assign||function(t){for(var i,r=1,n=arguments.length;r<n;r++){i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},S.apply(this,arguments)};function rn(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i}function rt(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nt(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var r=i.call(e),n,o=[],s;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)o.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(s)throw s.error}}return o}function ue(e,t,i){if(i||arguments.length===2)for(var r=0,n=t.length,o;r<n;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}function Ze(e,t){var i=t&&t.cache?t.cache:ln,r=t&&t.serializer?t.serializer:un,n=t&&t.strategy?t.strategy:on;return n(e,{cache:i,serializer:r})}function nn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function gi(e,t,i,r){var n=nn(r)?r:i(r),o=t.get(n);return typeof o=="undefined"&&(o=e.call(this,r),t.set(n,o)),o}function yi(e,t,i){var r=Array.prototype.slice.call(arguments,3),n=i(r),o=t.get(n);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(n,o)),o}function bt(e,t,i,r,n){return i.bind(t,e,r,n)}function on(e,t){var i=e.length===1?gi:yi;return bt(e,this,i,t.cache.create(),t.serializer)}function sn(e,t){return bt(e,this,yi,t.cache.create(),t.serializer)}function an(e,t){return bt(e,this,gi,t.cache.create(),t.serializer)}var un=function(){return JSON.stringify(arguments)};function gt(){this.cache=Object.create(null)}gt.prototype.get=function(e){return this.cache[e]};gt.prototype.set=function(e,t){this.cache[e]=t};var ln={create:function(){return new gt}},Ye={variadic:sn,monadic:an},x;(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"})(x||(x={}));var O;(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"})(O||(O={}));var ce;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ce||(ce={}));function Ht(e){return e.type===O.literal}function cn(e){return e.type===O.argument}function vi(e){return e.type===O.number}function _i(e){return e.type===O.date}function Ei(e){return e.type===O.time}function Li(e){return e.type===O.select}function xi(e){return e.type===O.plural}function hn(e){return e.type===O.pound}function Ti(e){return e.type===O.tag}function wi(e){return!!(e&&typeof e=="object"&&e.type===ce.number)}function ot(e){return!!(e&&typeof e=="object"&&e.type===ce.dateTime)}var Si=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,mn=/(?:[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 fn(e){var t={};return e.replace(mn,function(i){var r=i.length;switch(i[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 pn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function dn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(pn).filter(function(f){return f.length>0}),i=[],r=0,n=t;r<n.length;r++){var o=n[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,l=c;u<l.length;u++){var h=l[u];if(h.length===0)throw new Error("Invalid number skeleton")}i.push({stem:a,options:c})}return i}function bn(e){return e.replace(/^(.*?)-/,"")}var Ot=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Pi=/^(@+)?(\+|#+)?[rs]?$/g,gn=/(\*)(0+)|(#+)(0+)|(0+)/g,Ai=/^(0+)$/;function Mt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Pi,function(i,r,n){return typeof n!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):n==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof n=="string"?n.length:0)),""}),t}function Bi(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 yn(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 i=e.slice(0,2);if(i==="+!"?(t.signDisplay="always",e=e.slice(2)):i==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ai.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function kt(e){var t={},i=Bi(e);return i||t}function vn(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=bn(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=S(S(S({},t),{notation:"scientific"}),n.options.reduce(function(c,u){return S(S({},c),kt(u))},{}));continue;case"engineering":t=S(S(S({},t),{notation:"engineering"}),n.options.reduce(function(c,u){return S(S({},c),kt(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(gn,function(c,u,l,h,f,m){if(u)t.minimumIntegerDigits=l.length;else{if(h&&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(Ai.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Ot.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ot,function(c,u,l,h,f,m){return l==="*"?t.minimumFractionDigits=u.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=n.options[0];o==="w"?t=S(S({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=S(S({},t),Mt(o)));continue}if(Pi.test(n.stem)){t=S(S({},t),Mt(n.stem));continue}var s=Bi(n.stem);s&&(t=S(S({},t),s));var a=yn(n.stem);a&&(t=S(S({},t),a))}return t}var Se={"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 _n(e,t){for(var i="",r=0;r<e.length;r++){var n=e.charAt(r);if(n==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===n;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=En(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)i+=c;for(;s-- >0;)i=u+i}else n==="J"?i+="H":i+=n}return i}function En(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 i=e.language,r;i!=="root"&&(r=e.maximize().region);var n=Se[r||""]||Se[i||""]||Se["".concat(i,"-001")]||Se["001"];return n[0]}var qe,Ln=new RegExp("^".concat(Si.source,"*")),xn=new RegExp("".concat(Si.source,"*$"));function T(e,t){return{start:e,end:t}}var Tn=!!String.prototype.startsWith&&"_a".startsWith("a",1),wn=!!String.fromCodePoint,Sn=!!Object.fromEntries,Pn=!!String.prototype.codePointAt,An=!!String.prototype.trimStart,Bn=!!String.prototype.trimEnd,Nn=!!Number.isSafeInteger,In=Nn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},st=!0;try{var Hn=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");st=((qe=Hn.exec("a"))===null||qe===void 0?void 0:qe[0])==="a"}catch(e){st=!1}var Ct=Tn?function(t,i,r){return t.startsWith(i,r)}:function(t,i,r){return t.slice(r,r+i.length)===i},at=wn?String.fromCodePoint:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(var r="",n=t.length,o=0,s;n>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},Dt=Sn?Object.fromEntries:function(t){for(var i={},r=0,n=t;r<n.length;r++){var o=n[r],s=o[0],a=o[1];i[s]=a}return i},Ni=Pn?function(t,i){return t.codePointAt(i)}:function(t,i){var r=t.length;if(!(i<0||i>=r)){var n=t.charCodeAt(i),o;return n<55296||n>56319||i+1===r||(o=t.charCodeAt(i+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},On=An?function(t){return t.trimStart()}:function(t){return t.replace(Ln,"")},Mn=Bn?function(t){return t.trimEnd()}:function(t){return t.replace(xn,"")};function Ii(e,t){return new RegExp(e,t)}var ut;if(st){var Rt=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ut=function(t,i){var r;Rt.lastIndex=i;var n=Rt.exec(t);return(r=n[1])!==null&&r!==void 0?r:""}}else ut=function(t,i){for(var r=[];;){var n=Ni(t,i);if(n===void 0||Hi(n)||Rn(n))break;r.push(n),i+=n>=65536?2:1}return at.apply(void 0,r)};var kn=function(){function e(t,i){i===void 0&&(i={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.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,i,r){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;n.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(i==="plural"||i==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:O.pound,location:T(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(x.UNMATCHED_CLOSING_TAG,T(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&<(this.peek()||0)){var s=this.parseTag(t,i);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(t,i);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,i){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:O.literal,value:"<".concat(n,"/>"),location:T(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,i,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!lt(this.char()))return this.error(x.INVALID_TAG,T(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(x.UNMATCHED_CLOSING_TAG,T(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:O.tag,value:n,children:s,location:T(r,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,T(a,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,T(r,this.clonePosition()))}else return this.error(x.INVALID_TAG,T(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Dn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,i){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(i);if(o){n+=o;continue}var s=this.tryParseUnquoted(t,i);if(s){n+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var c=T(r,this.clonePosition());return{val:{type:O.literal,value:n,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cn(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 i=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(r);this.bump()}return at.apply(void 0,i)},e.prototype.tryParseUnquoted=function(t,i){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(i==="plural"||i==="selectordinal")||r===125&&t>0?null:(this.bump(),at(r))},e.prototype.parseArgument=function(t,i){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,T(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,T(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(x.MALFORMED_ARGUMENT,T(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,T(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:O.argument,value:n,location:T(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,T(r,this.clonePosition())):this.parseArgumentOptions(t,i,n,r);default:return this.error(x.MALFORMED_ARGUMENT,T(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),i=this.offset(),r=ut(this.message,i),n=i+r.length;this.bumpTo(n);var o=this.clonePosition(),s=T(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,i,r,n){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,T(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var f=Mn(h.val);if(f.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,T(this.clonePosition(),this.clonePosition()));var m=T(l,this.clonePosition());u={style:f,styleLocation:m}}var p=this.tryParseArgumentClose(n);if(p.err)return p;var _=T(n,this.clonePosition());if(u&&Ct(u==null?void 0:u.style,"::",0)){var R=On(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(R,u.styleLocation);return h.err?h:{val:{type:O.number,value:r,location:_,style:h.val},err:null}}else{if(R.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,_);var P=R;this.locale&&(P=_n(R,this.locale));var f={type:ce.dateTime,pattern:P,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?fn(P):{}},L=a==="date"?O.date:O.time;return{val:{type:L,value:r,location:_,style:f},err:null}}}return{val:{type:a==="number"?O.number:a==="date"?O.date:O.time,value:r,location:_,style:(o=u==null?void 0:u.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(x.EXPECT_SELECT_ARGUMENT_OPTIONS,T(w,S({},w)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),A=0;if(a!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),H=this.parseIdentifierIfPossible(),A=h.val}var M=this.tryParsePluralOrSelectOptions(t,a,i,H);if(M.err)return M;var p=this.tryParseArgumentClose(n);if(p.err)return p;var D=T(n,this.clonePosition());return a==="select"?{val:{type:O.select,value:r,options:Dt(M.val),location:D},err:null}:{val:{type:O.plural,value:r,options:Dt(M.val),offset:A,pluralType:a==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,T(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,T(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,i=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,T(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,i){var r=[];try{r=dn(t)}catch(n){return this.error(x.INVALID_NUMBER_SKELETON,i)}return{val:{type:ce.number,tokens:r,location:i,parsedOptions:this.shouldParseSkeletons?vn(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,i,r,n){for(var o,s=!1,a=[],c=new Set,u=n.value,l=n.location;;){if(u.length===0){var h=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=T(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(c.has(u))return this.error(i==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);u==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,T(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,i,r);if(p.err)return p;var _=this.tryParseArgumentClose(m);if(_.err)return _;a.push([u,{value:p.val,location:T(m,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,l=o.location}return a.length===0?this.error(i==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,T(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(x.MISSING_OTHER_CLAUSE,T(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,i){var r=1,n=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 c=T(n,this.clonePosition());return o?(s*=r,In(s)?{val:s,err:null}:this.error(i,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var i=Ni(this.message,t);if(i===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(t,i){return{val:null,err:{kind:t,message:this.message,location:i}}},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(Ct(this.message,t,this.offset())){for(var i=0;i<t.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var i=this.offset(),r=this.message.indexOf(t,i);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 i=this.offset();if(i===t)break;if(i>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()&&Hi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),i=this.offset(),r=this.message.charCodeAt(i+(t>=65536?2:1));return r!=null?r:null},e}();function lt(e){return e>=97&&e<=122||e>=65&&e<=90}function Cn(e){return lt(e)||e===47}function Dn(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 Hi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Rn(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 ct(e){e.forEach(function(t){if(delete t.location,Li(t)||xi(t))for(var i in t.options)delete t.options[i].location,ct(t.options[i].value);else vi(t)&&wi(t.style)||(_i(t)||Ei(t))&&ot(t.style)?delete t.style.location:Ti(t)&&ct(t.children)})}function Un(e,t){t===void 0&&(t={}),t=S({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new kn(e,t).parse();if(i.err){var r=SyntaxError(x[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return t!=null&&t.captureLocation||ct(i.val),i.val}var he;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(he||(he={}));var Re=function(e){Q(t,e);function t(i,r,n){var o=e.call(this,i)||this;return o.code=r,o.originalMessage=n,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ut=function(e){Q(t,e);function t(i,r,n,o){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),he.INVALID_VALUE,o)||this}return t}(Re),jn=function(e){Q(t,e);function t(i,r,n){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(r),he.INVALID_VALUE,n)||this}return t}(Re),Fn=function(e){Q(t,e);function t(i,r){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(r,'"'),he.MISSING_VALUE,r)||this}return t}(Re),z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(z||(z={}));function $n(e){return e.length<2?e:e.reduce(function(t,i){var r=t[t.length-1];return!r||r.type!==z.literal||i.type!==z.literal?t.push(i):r.value+=i.value,t},[])}function Gn(e){return typeof e=="function"}function Be(e,t,i,r,n,o,s){if(e.length===1&&Ht(e[0]))return[{type:z.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var l=u[c];if(Ht(l)){a.push({type:z.literal,value:l.value});continue}if(hn(l)){typeof o=="number"&&a.push({type:z.literal,value:i.getNumberFormat(t).format(o)});continue}var h=l.value;if(!(n&&h in n))throw new Fn(h,s);var f=n[h];if(cn(l)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?z.literal:z.object,value:f});continue}if(_i(l)){var m=typeof l.style=="string"?r.date[l.style]:ot(l.style)?l.style.parsedOptions:void 0;a.push({type:z.literal,value:i.getDateTimeFormat(t,m).format(f)});continue}if(Ei(l)){var m=typeof l.style=="string"?r.time[l.style]:ot(l.style)?l.style.parsedOptions:r.time.medium;a.push({type:z.literal,value:i.getDateTimeFormat(t,m).format(f)});continue}if(vi(l)){var m=typeof l.style=="string"?r.number[l.style]:wi(l.style)?l.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:z.literal,value:i.getNumberFormat(t,m).format(f)});continue}if(Ti(l)){var p=l.children,_=l.value,R=n[_];if(!Gn(R))throw new jn(_,"function",s);var P=Be(p,t,i,r,n,o),L=R(P.map(function(A){return A.value}));Array.isArray(L)||(L=[L]),a.push.apply(a,L.map(function(A){return{type:typeof A=="string"?z.literal:z.object,value:A}}))}if(Li(l)){var w=l.options[f]||l.options.other;if(!w)throw new Ut(l.value,f,Object.keys(l.options),s);a.push.apply(a,Be(w.value,t,i,r,n));continue}if(xi(l)){var w=l.options["=".concat(f)];if(!w){if(!Intl.PluralRules)throw new Re(`Intl.PluralRules is not available in this environment.
|
|
15
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
16
|
+
`,he.MISSING_INTL_API,s);var H=i.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));w=l.options[H]||l.options.other}if(!w)throw new Ut(l.value,f,Object.keys(l.options),s);a.push.apply(a,Be(w.value,t,i,r,n,f-(l.offset||0)));continue}}return $n(a)}function zn(e,t){return t?S(S(S({},e||{}),t||{}),Object.keys(e).reduce(function(i,r){return i[r]=S(S({},e[r]),t[r]||{}),i},{})):e}function Wn(e,t){return t?Object.keys(e).reduce(function(i,r){return i[r]=zn(e[r],t[r]),i},S({},e)):e}function Je(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}function Vn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ze(function(){for(var t,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ue([void 0],i,!1)))},{cache:Je(e.number),strategy:Ye.variadic}),getDateTimeFormat:Ze(function(){for(var t,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ue([void 0],i,!1)))},{cache:Je(e.dateTime),strategy:Ye.variadic}),getPluralRules:Ze(function(){for(var t,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ue([void 0],i,!1)))},{cache:Je(e.pluralRules),strategy:Ye.variadic})}}var Xn=function(){function e(t,i,r,n){i===void 0&&(i=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var l=u.reduce(function(h,f){return!h.length||f.type!==z.literal||typeof h[h.length-1]!="string"?h.push(f.value):h[h.length-1]+=f.value,h},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(c){return Be(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),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=n||{};s.formatters;var a=rn(s,["formatters"]);this.ast=e.__parse(t,S(S({},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=Wn(e.formats,r),this.formatters=n&&n.formatters||Vn(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 i=Intl.NumberFormat.supportedLocalesOf(t);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Un,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 Zn(e,t){if(t==null)return;if(t in e)return e[t];const i=t.split(".");let r=e;for(let n=0;n<i.length;n++)if(typeof r=="object"){if(n>0){const o=i.slice(n,i.length).join(".");if(o in r){r=r[o];break}}r=r[i[n]]}else r=void 0;return r}const ee={},Yn=(e,t,i)=>i&&(t in ee||(ee[t]={}),e in ee[t]||(ee[t][e]=i),i),Oi=(e,t)=>{if(t==null)return;if(t in ee&&e in ee[t])return ee[t][e];const i=Ue(t);for(let r=0;r<i.length;r++){const n=i[r],o=Jn(n,e);if(o)return Yn(e,t,o)}};let yt;const Te=De({});function qn(e){return yt[e]||null}function Mi(e){return e in yt}function Jn(e,t){if(!Mi(e))return null;const i=qn(e);return Zn(i,t)}function Qn(e){if(e==null)return;const t=Ue(e);for(let i=0;i<t.length;i++){const r=t[i];if(Mi(r))return r}}function ki(e,...t){delete ee[e],Te.update(i=>(i[e]=tn.all([i[e]||{},...t]),i))}fe([Te],([e])=>Object.keys(e));Te.subscribe(e=>yt=e);const Ne={};function Kn(e,t){Ne[e].delete(t),Ne[e].size===0&&delete Ne[e]}function Ci(e){return Ne[e]}function eo(e){return Ue(e).map(t=>{const i=Ci(t);return[t,i?[...i]:[]]}).filter(([,t])=>t.length>0)}function ht(e){return e==null?!1:Ue(e).some(t=>{var i;return(i=Ci(t))==null?void 0:i.size})}function to(e,t){return Promise.all(t.map(r=>(Kn(e,r),r().then(n=>n.default||n)))).then(r=>ki(e,...r))}const ge={};function Di(e){if(!ht(e))return e in ge?ge[e]:Promise.resolve();const t=eo(e);return ge[e]=Promise.all(t.map(([i,r])=>to(i,r))).then(()=>{if(ht(e))return Di(e);delete ge[e]}),ge[e]}const io={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"}}},ro={fallbackLocale:null,loadingDelay:200,formats:io,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},no=ro;function me(){return no}const Qe=De(!1);var oo=Object.defineProperty,so=Object.defineProperties,ao=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable,Ft=(e,t,i)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,co=(e,t)=>{for(var i in t||(t={}))uo.call(t,i)&&Ft(e,i,t[i]);if(jt)for(var i of jt(t))lo.call(t,i)&&Ft(e,i,t[i]);return e},ho=(e,t)=>so(e,ao(t));let mt;const Me=De(null);function $t(e){return e.split("-").map((t,i,r)=>r.slice(0,i+1).join("-")).reverse()}function Ue(e,t=me().fallbackLocale){const i=$t(e);return t?[...new Set([...i,...$t(t)])]:i}function re(){return mt!=null?mt:void 0}Me.subscribe(e=>{mt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const mo=e=>{if(e&&Qn(e)&&ht(e)){const{loadingDelay:t}=me();let i;return typeof window!="undefined"&&re()!=null&&t?i=window.setTimeout(()=>Qe.set(!0),t):Qe.set(!0),Di(e).then(()=>{Me.set(e)}).finally(()=>{clearTimeout(i),Qe.set(!1)})}return Me.set(e)},pe=ho(co({},Me),{set:mo}),je=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var fo=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Gt=(e,t,i)=>t in e?fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,vt=(e,t)=>{for(var i in t||(t={}))Ri.call(t,i)&&Gt(e,i,t[i]);if(ke)for(var i of ke(t))Ui.call(t,i)&&Gt(e,i,t[i]);return e},de=(e,t)=>{var i={};for(var r in e)Ri.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&ke)for(var r of ke(e))t.indexOf(r)<0&&Ui.call(e,r)&&(i[r]=e[r]);return i};const xe=(e,t)=>{const{formats:i}=me();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},po=je(e=>{var t=e,{locale:i,format:r}=t,n=de(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=xe("number",r)),new Intl.NumberFormat(i,n)}),bo=je(e=>{var t=e,{locale:i,format:r}=t,n=de(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=xe("date",r):Object.keys(n).length===0&&(n=xe("date","short")),new Intl.DateTimeFormat(i,n)}),go=je(e=>{var t=e,{locale:i,format:r}=t,n=de(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=xe("time",r):Object.keys(n).length===0&&(n=xe("time","short")),new Intl.DateTimeFormat(i,n)}),yo=(e={})=>{var t=e,{locale:i=re()}=t,r=de(t,["locale"]);return po(vt({locale:i},r))},vo=(e={})=>{var t=e,{locale:i=re()}=t,r=de(t,["locale"]);return bo(vt({locale:i},r))},_o=(e={})=>{var t=e,{locale:i=re()}=t,r=de(t,["locale"]);return go(vt({locale:i},r))},Eo=je((e,t=re())=>new Xn(e,t,me().formats,{ignoreTag:me().ignoreTag})),Lo=(e,t={})=>{var i,r,n,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:c=re(),default:u}=s;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Oi(e,c);if(!l)l=(o=(n=(r=(i=me()).handleMissingMessage)==null?void 0:r.call(i,{locale:c,id:e,defaultValue:u}))!=null?n:u)!=null?o:e;else if(typeof l!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l;if(!a)return l;let h=l;try{h=Eo(l,c).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return h},xo=(e,t)=>_o(t).format(e),To=(e,t)=>vo(t).format(e),wo=(e,t)=>yo(t).format(e),So=(e,t=re())=>Oi(e,t),Po=fe([pe,Te],()=>Lo);fe([pe],()=>xo);fe([pe],()=>To);fe([pe],()=>wo);fe([pe,Te],()=>So);function zt(e,t){ki(e,t)}function Ao(e){pe.set(e)}const Wt={en:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:"",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:"minutes",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",lugas:"Current Deposit Limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"There was a problem while setting the limit, please try again.",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"},de:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:"",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:"minute",new:"Neu",limit:"Limit",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"},hr:{loadingText:"Učitavanje",Monthly:"mjesečno",Weekly:"tjedno",Daily:"dnevno",adjectiveMonthly:"mjesečno",adjectiveWeekly:"tjedno",adjectiveDaily:"dnevno",None:"Nijedno",noPeriod:"Nijedno",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno dana",noLimitText:"Trenutno nije postavljeno ograničenje.",lugasPrivacy:"Ograničenje LUGAS za više pružatelja nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Razdoblje",amount:"Iznos",minutes:"minute",new:"Novo",limit:"ograničenje",setLimit:"POSTAVITE OGRANIČENJE",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wager:"Ograničenje igranja",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Vremenska ograničenja jedne sesije",cumulativeSession:"Vremensko ograničenje razdoblja",removeLimit:"OTKAŽI",popupPendingUpdate:"Primili smo zahtjev za promjenu limita. Imajte na umu da će ažuriranje stupiti na snagu tek",popupImmediateUpdate:"Vaš novi {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje promijenjeno",popupSuccess:"Uspješno",kycNotNeeded:"Ograničenje uplate je uspješno postavljeno. Svojim ograničenjima možete upravljati u bilo kojem trenutku u postavkama računa.",kycNeeded1:"We were able to set your monthly deposit limit to",kycNeeded2:". Kako bi povećali ograničenje na željeni iznos",uploadDocumentsButton:"UČITAJ DOKUMENTE",closeButton:"ZATVORI",popupError:"Došlo je do problema prilikom postavljanja ograničenja"},sl:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:"",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:"minutes",new:"Novo",limit:"Limit",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"},pl:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:"",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:"minutes",new:"Nowe",limit:"Limit",setLimit:"USTAW LIMIT",loss:"Limit Strat",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"},fr:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",per:"par",updateText:"sera appliqué sur",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit"},ro:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",new:"Limita pe",limit:"noua",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!"},es:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno",noPeriod:"Sin periodo",per:"por",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",new:"Nuevo",limit:"límite",setLimit:"ESTABELECE UN LÍMITE",loss:"Límite de pérdida",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",sessionLimit:"Límites de tiempo en sesión única",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Hubo un problema mientras se establecía el límite",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"SUBIR DOCUMENTOS / ADJUNTAR DOCUMENTOS",closeButton:"CERRAR"},pt:{loadingText:"Carregando, por favor espere..."},"pt-br":{"Loading Text":"Carregando, por favor espere...",Monthly:"Por mês",Weekly:"Semanalmente",Daily:"Diário",adjectiveMonthly:"Por mês",adjectiveWeekly:"Semanalmente",adjectiveDaily:"Diário",None:"Nada",noPeriod:"nenhum periodo",per:"per",updateText:"Serão aplicados",removedLimitText:"O limite será removido em",noLimitText:"Não há limite definido",lugasPrivacy:"O provedor LUGAS não é visível para outros provedores",limitType:"Tipo de limite",period:"Período",amount:"Quantidade",minutes:"minutos",new:"Novo",limit:"limite",setLimit:"DEFINIR LIMITE",loss:"Limite de perda",deposit:"Limite de depósito",wager:"Limite de aposta",stake:"Limite de valor da aposta",lugas:"Limite de depósito atual",sessionLimit:"Limite de sessão única",cumulativeSession:"Limite por período de tempo",removeLimit:"REMOVER",popupPendingUpdate:"Recebemos a solicitação para alterar o limite. Observe que a atualização entrará em vigor em",popupImmediateUpdate:"Seu novo limite {selectedLimit} é {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limite alterado",popupSuccess:"Operação bem-sucedida",popupError:"Ocorreu um problema ao definir o limite, por favor, tente novamente",kycNotNeeded:"O limite de depósito foi definido com sucesso. Você pode gerenciar seus limites a qualquer momento nas configurações da sua conta.",kycNeeded1:"Conseguimos definir seu depósito mensal em",kycNeeded2:"Para aumentar o limite solicitado,Pedimos que você compartilhe as informações relevantes conosco. Essas informações podem ser enviadas na seção de upload de arquivos da página",uploadDocumentsButton:"fazer upload de arquivos",closeButton:"Data"},"es-mx":{"Loading Text":"Cargando, por favor espere...",Monthly:"Mensual",Weekly:"Semanal",Daily:"Diario",adjectiveMonthly:"Mensual",adjectiveWeekly:"Semanal",adjectiveDaily:"Diario",None:"Nada",noPeriod:"Ningún periodo",per:"per",updateText:"será aplicado el",removedLimitText:"el límite será removido el",noLimitText:"No hay límite puesto",lugasPrivacy:"El proveedor LUGAS no es visible para los demás proveedores",limitType:"Tipo de límite",period:"Periodo",amount:"Monto",minutes:"minutos",new:"Nuevo",limit:"límite",setLimit:"FIJAR LÍMITE",loss:"Límite de pérdida",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de monto de apuesta",lugas:"Límite de depósito actual",sessionLimit:"Límite de sesión única",cumulativeSession:"Límite por periodo de tiempo",removeLimit:"REMOVER",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor tome en cuenta que la actualización entrará en efecto el",popupImmediateUpdate:"Su nuevo límite {selectedLimit} es {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Límite cambiado",popupSuccess:"Operación exitosa",popupError:"Hubo un problema fijando el límite, por favor intente de nuevo",kycNotNeeded:"El límite de depósito se ha fijado exitosamente. Ustede puede manejar sus límites en cualquier momento en ajustes de su cuenta.",kycNeeded1:"Pudimos fijar su depósito mensual en",kycNeeded2:"Para poder incrementar el límite solicitado,le pedimos nos comparta la información relevante . Esta información puede ser enviada en la sección para subir archivos en la página",uploadDocumentsButton:"subir archivos",closeButton:"CERRAR"},tr:{loadingText:"Yükleniyor lütfen bekleyin...",Monthly:"her ay",Weekly:"haftada",Daily:"günlük",adjectiveMonthly:"aylık",adjectiveWeekly:"haftalık",adjectiveDaily:"günlük",None:"",noPeriod:".",per:"",updateText:"tarihinde uygulanacak",removedLimitText:"Limit kaldırılacak",noLimitText:"Şu anda belirlenmiş bir limit bulunmamaktadır.",lugasPrivacy:"Sağlayıcılar arası LUGAS limiti sağlayıcılar tarafından görülmez.",limitType:"Limit Türü",period:"Dönem",amount:"Miktar",minutes:"dakika",new:"Yeni",limit:"sınır",setLimit:"LİMİT AYARI",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wager:"Bahis Limiti",stake:"Bahis Limiti",lugas:"Güncel Para Yatırma Limiti",sessionLimit:"Tek Oturum Süre Sınırları",cumulativeSession:"Dönem Zaman Sınırı",removeLimit:"KALDIRMAK",popupPendingUpdate:"Limitin değiştirilmesi talebini aldık. Lütfen güncellemenin yalnızca şu tarihte geçerli olacağını unutmayın:",popupImmediateUpdate:"Yeni {selectedLimit}'iniz: {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Sınır değiştirildi",popupSuccess:"Başarılı",popupError:"Limit ayarlanırken bir sorun oluştu, lütfen tekrar deneyin.",kycNotNeeded:"Para yatırma limiti başarıyla belirlendi. Limitlerinizi istediğiniz zaman hesap ayarlarından yönetebilirsiniz.",kycNeeded1:"Aylık para yatırma limitinizi şu şekilde ayarlayabildik:",kycNeeded2:". Limitin istenilen tutara yükseltilebilmesi için ilgili bilgileri tarafımıza iletmenizi rica ederiz. Bu bilgi belge yüklemede gönderilebilir.",uploadDocumentsButton:"BELGELERİ YÜKLE",closeButton:"KAPALI"},"en-us":{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:"",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:"minutes",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",lugas:"Current Deposit Limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"There was a problem while setting the limit, please try again.",kycNotNeeded:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kycNeeded1:"We were able to set your monthly deposit limit to",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE"}};function J(e){return typeof e=="function"}function ji(e){var t=function(r){Error.call(r),r.stack=new Error().stack},i=e(t);return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Ke=ji(function(e){return function(i){e(this),this.message=i?i.length+` errors occurred during unsubscription:
|
|
17
|
+
`+i.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=i}});function ft(e,t){if(e){var i=e.indexOf(t);0<=i&&e.splice(i,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,i,r,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=rt(s),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(J(l))try{l()}catch(_){o=_ instanceof Ke?_.errors:[_]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=rt(h),m=f.next();!m.done;m=f.next()){var p=m.value;try{Vt(p)}catch(_){o=o!=null?o:[],_ instanceof Ke?o=ue(ue([],nt(o)),nt(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}}if(o)throw new Ke(o)}},e.prototype.add=function(t){var i;if(t&&t!==this)if(this.closed)Vt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(t)}},e.prototype._hasParent=function(t){var i=this._parentage;return i===t||Array.isArray(i)&&i.includes(t)},e.prototype._addParent=function(t){var i=this._parentage;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t},e.prototype._removeParent=function(t){var i=this._parentage;i===t?this._parentage=null:Array.isArray(i)&&ft(i,t)},e.prototype.remove=function(t){var i=this._finalizers;i&&ft(i,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Fi=Fe.EMPTY;function $i(e){return e instanceof Fe||e&&"closed"in e&&J(e.remove)&&J(e.add)&&J(e.unsubscribe)}function Vt(e){J(e)?e():e.unsubscribe()}var Gi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Bo={setTimeout:function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return setTimeout.apply(void 0,ue([e,t],nt(i)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function No(e){Bo.setTimeout(function(){throw e})}function Xt(){}function Ie(e){e()}var zi=function(e){Q(t,e);function t(i){var r=e.call(this)||this;return r.isStopped=!1,i?(r.destination=i,$i(i)&&i.add(r)):r.destination=Mo,r}return t.create=function(i,r,n){return new pt(i,r,n)},t.prototype.next=function(i){this.isStopped||this._next(i)},t.prototype.error=function(i){this.isStopped||(this.isStopped=!0,this._error(i))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(i){this.destination.next(i)},t.prototype._error=function(i){try{this.destination.error(i)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fe),Io=Function.prototype.bind;function et(e,t){return Io.call(e,t)}var Ho=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var i=this.partialObserver;if(i.next)try{i.next(t)}catch(r){Pe(r)}},e.prototype.error=function(t){var i=this.partialObserver;if(i.error)try{i.error(t)}catch(r){Pe(r)}else Pe(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(i){Pe(i)}},e}(),pt=function(e){Q(t,e);function t(i,r,n){var o=e.call(this)||this,s;if(J(i)||!i)s={next:i!=null?i:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0};else{var a;o&&Gi.useDeprecatedNextContext?(a=Object.create(i),a.unsubscribe=function(){return o.unsubscribe()},s={next:i.next&&et(i.next,a),error:i.error&&et(i.error,a),complete:i.complete&&et(i.complete,a)}):s=i}return o.destination=new Ho(s),o}return t}(zi);function Pe(e){No(e)}function Oo(e){throw e}var Mo={closed:!0,next:Xt,error:Oo,complete:Xt},ko=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Co(e){return e}function Do(e){return e.length===0?Co:e.length===1?e[0]:function(i){return e.reduce(function(r,n){return n(r)},i)}}var Zt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var i=new e;return i.source=this,i.operator=t,i},e.prototype.subscribe=function(t,i,r){var n=this,o=Uo(t)?t:new pt(t,i,r);return Ie(function(){var s=n,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(i){t.error(i)}},e.prototype.forEach=function(t,i){var r=this;return i=Yt(i),new i(function(n,o){var s=new pt({next:function(a){try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:n});r.subscribe(s)})},e.prototype._subscribe=function(t){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(t)},e.prototype[ko]=function(){return this},e.prototype.pipe=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return Do(t)(this)},e.prototype.toPromise=function(t){var i=this;return t=Yt(t),new t(function(r,n){var o;i.subscribe(function(s){return o=s},function(s){return n(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function Yt(e){var t;return(t=e!=null?e:Gi.Promise)!==null&&t!==void 0?t:Promise}function Ro(e){return e&&J(e.next)&&J(e.error)&&J(e.complete)}function Uo(e){return e&&e instanceof zi||Ro(e)&&$i(e)}var jo=ji(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wi=function(e){Q(t,e);function t(){var i=e.call(this)||this;return i.closed=!1,i.currentObservers=null,i.observers=[],i.isStopped=!1,i.hasError=!1,i.thrownError=null,i}return t.prototype.lift=function(i){var r=new qt(this,this);return r.operator=i,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new jo},t.prototype.next=function(i){var r=this;Ie(function(){var n,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=rt(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(i)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(i){var r=this;Ie(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=i;for(var n=r.observers;n.length;)n.shift().error(i)}})},t.prototype.complete=function(){var i=this;Ie(function(){if(i._throwIfClosed(),!i.isStopped){i.isStopped=!0;for(var r=i.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(i){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,i)},t.prototype._subscribe=function(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)},t.prototype._innerSubscribe=function(i){var r=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?Fi:(this.currentObservers=null,a.push(i),new Fe(function(){r.currentObservers=null,ft(a,i)}))},t.prototype._checkFinalizedStatuses=function(i){var r=this,n=r.hasError,o=r.thrownError,s=r.isStopped;n?i.error(o):s&&i.complete()},t.prototype.asObservable=function(){var i=new Zt;return i.source=this,i},t.create=function(i,r){return new qt(i,r)},t}(Zt),qt=function(e){Q(t,e);function t(i,r){var n=e.call(this)||this;return n.destination=i,n.source=r,n}return t.prototype.next=function(i){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,i)},t.prototype.error=function(i){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,i)},t.prototype.complete=function(){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||r===void 0||r.call(i)},t.prototype._subscribe=function(i){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(i))!==null&&n!==void 0?n:Fi},t}(Wi),Vi={now:function(){return(Vi.delegate||Date).now()},delegate:void 0},Fo=function(e){Q(t,e);function t(i,r,n){i===void 0&&(i=1/0),r===void 0&&(r=1/0),n===void 0&&(n=Vi);var o=e.call(this)||this;return o._bufferSize=i,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,i),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(i){var r=this,n=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,c=r._windowTime;n||(o.push(i),!s&&o.push(a.now()+c)),this._trimBuffer(),e.prototype.next.call(this,i)},t.prototype._subscribe=function(i){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(i),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),c=0;c<a.length&&!i.closed;c+=o?1:2)i.next(a[c]);return this._checkFinalizedStatuses(i),r},t.prototype._trimBuffer=function(){var i=this,r=i._bufferSize,n=i._timestampProvider,o=i._buffer,s=i._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var c=n.now(),u=0,l=1;l<o.length&&o[l]<=c;l+=2)u=l;u&&o.splice(0,u+1)}},t}(Wi);const Jt=[],Qt={},$o=(e,t=0)=>{if(Jt.indexOf(e)==-1){const i=new Fo(t);Qt[e]=i,Jt.push(e)}return Qt[e]};window.emWidgets={topic:$o};const Go=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;function zo(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function Wo(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then(r=>r.text()).then(r=>{const n=document.createElement("style");n.innerHTML=r,e&&e.appendChild(n)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Vo(e,t,i){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,n=>{r.innerHTML=n,e&&e.appendChild(r)})}}function Xo(e){yr(e,"svelte-1uoztsw",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A))}input:focus,input :focus-within,input :focus-visible,input :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;cursor:pointer;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF)}select:focus,select :focus-within,select :focus-visible,select :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gmcore{color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A))}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emw--color-white, #fff);font-size:1.3rem;border:1px solid var(--emw--color-gray-300, #58586B);padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:var(--emw--color-valid, var(--emw--color-green, #48952a));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:1px solid var(--emw--color-gray-50, #F9F8F8)}.LimitDetailsTextWrapper{font-size:1.3rem;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A))}.PendingLimit{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A))}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background-color:rgba(0, 0, 0, 0.5);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:var(--emw--color-white, #FFFFFF);font-size:1rem;color:var(--emw--color-black, #000000);width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:var(--emw--color-white, #FFFFFF);font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:var(--emw--color-white, #FFFFFF);color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B);border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:var(--emw--color-gray-300, #58586B)}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}')}function Kt(e,t,i){const r=e.slice();return r[50]=t[i],r}function ei(e,t,i){const r=e.slice();return r[53]=t[i],r}function ti(e,t,i){const r=e.slice();return r[53]=t[i],r}function ii(e,t,i){const r=e.slice();return r[58]=t[i],r}function ri(e){let t,i;function r(s,a){return s[11]?Zo:Yo}let n=r(e),o=n(e);return{c(){t=v("div"),i=v("div"),o.c(),g(i,"class","PopupContainer "+(e[14]?"Desktop":"")),g(t,"class","PopupOverlay")},m(s,a){N(s,t,a),d(t,i),o.m(i,null)},p(s,a){n===(n=r(s))&&o?o.p(s,a):(o.d(1),o=n(s),o&&(o.c(),o.m(i,null)))},d(s){s&&B(t),o.d()}}}function Zo(e){let t,i,r=e[13]("popupTitle")+"",n,o,s,a,c,u,l,h,f,m,p,_,R,P=!e[9]&&ni(e);return{c(){t=v("div"),i=v("span"),n=F(r),o=j(),s=v("button"),s.textContent="X",a=j(),c=v("div"),u=v("div"),P&&P.c(),l=j(),h=v("p"),f=F(e[12]),m=j(),p=v("button"),p.textContent="OK",g(i,"class","PopupTitle"),g(s,"class","ClosePopup"),g(t,"class","PopupTitleWrapper"),g(u,"class","ResultIconWrapper"),g(h,"class","DescriptionParagraph"),g(c,"class","DescriptionWrapper"),g(p,"class","ConfirmButton")},m(L,w){N(L,t,w),d(t,i),d(i,n),d(t,o),d(t,s),N(L,a,w),N(L,c,w),d(c,u),P&&P.m(u,null),d(c,l),d(c,h),d(h,f),N(L,m,w),N(L,p,w),_||(R=[Y(s,"click",e[20]),Y(p,"click",e[20])],_=!0)},p(L,w){w[0]&8192&&r!==(r=L[13]("popupTitle")+"")&&W(n,r),L[9]?P&&(P.d(1),P=null):P?P.p(L,w):(P=ni(L),P.c(),P.m(u,null)),w[0]&4096&&W(f,L[12])},d(L){L&&(B(t),B(a),B(c),B(m),B(p)),P&&P.d(),_=!1,ie(R)}}}function Yo(e){let t;return{c(){t=v("div"),g(t,"class","LoadingIndicator")},m(i,r){N(i,t,r)},p:U,d(i){i&&B(t)}}}function ni(e){let t,i,r,n,o,s,a,c,u=e[13]("popupSuccess")+"",l;return{c(){t=be("svg"),i=be("defs"),r=be("style"),n=F(`.fil0 {fill:black;fill-rule:nonzero}
|
|
19
|
+
`),o=be("g"),s=be("polygon"),a=j(),c=v("p"),l=F(u),g(r,"type","text/css"),g(s,"class","fil0"),g(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),g(t,"xmlns","http://www.w3.org/2000/svg"),g(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),g(t,"xml:space","preserve"),g(t,"version","1.1"),Ve(t,"shape-rendering","geometricPrecision"),Ve(t,"text-rendering","geometricPrecision"),Ve(t,"image-rendering","optimizeQuality"),g(t,"viewBox","0 0 90 69"),g(t,"x","0px"),g(t,"y","0px"),g(t,"fill-rule","evenodd"),g(t,"clip-rule","evenodd")},m(h,f){N(h,t,f),d(t,i),d(i,r),d(r,n),d(t,o),d(o,s),N(h,a,f),N(h,c,f),d(c,l)},p(h,f){f[0]&8192&&u!==(u=h[13]("popupSuccess")+"")&&W(l,u)},d(h){h&&(B(t),B(a),B(c))}}}function qo(e){let t,i,r,n,o,s,a,c,u,l=e[6]?`${e[13]("amount")}`:`${e[13]("new")} ${e[13](`gamingLimits.${e[2]}`)} ${e[13]("limit")}`,h,f,m,p,_,R=e[13]("setLimit")+"",P,L,w,H=te(e[15]),A=[];for(let E=0;E<H.length;E+=1)A[E]=si(ti(e,H,E));let M=e[5]&&ai(e),D=e[6]&&li(e);return{c(){t=v("div"),i=v("div"),r=v("div");for(let E=0;E<A.length;E+=1)A[E].c();n=j(),o=v("form"),M&&M.c(),s=j(),D&&D.c(),a=j(),c=v("label"),u=v("span"),h=F(l),f=j(),m=v("input"),p=j(),_=v("button"),P=F(R),g(r,"class","LimitsList "+(e[14]?"Desktop":"")),g(u,"class","LimitInputText"),g(c,"class","LimitAmountInputWrapper"),g(m,"type","number"),g(m,"pattern","[0-9]*"),g(_,"class","LimitSubmitButton"),g(_,"type","button"),_.disabled=!0,g(o,"class","LimitsInteractionArea "+(e[14]?"Desktop":"")),g(i,"class","LimitsPageContainer"),g(t,"class","player-account-gaming-limits-page-2-gmcore")},m(E,G){N(E,t,G),d(t,i),d(i,r);for(let k=0;k<A.length;k+=1)A[k]&&A[k].m(r,null);d(i,n),d(i,o),M&&M.m(o,null),d(o,s),D&&D.m(o,null),d(o,a),d(o,c),d(c,u),d(u,h),d(o,f),d(o,m),ve(m,e[3]),d(o,p),d(o,_),d(_,P),e[35](_),L||(w=[Y(m,"input",e[34]),Y(m,"keyup",e[18]),Y(_,"click",e[17]),Y(o,"submit",e[17])],L=!0)},p(E,G){if(G[0]&581632){H=te(E[15]);let k;for(k=0;k<H.length;k+=1){const K=ti(E,H,k);A[k]?A[k].p(K,G):(A[k]=si(K),A[k].c(),A[k].m(r,null))}for(;k<A.length;k+=1)A[k].d(1);A.length=H.length}E[5]?M?M.p(E,G):(M=ai(E),M.c(),M.m(o,s)):M&&(M.d(1),M=null),E[6]?D?D.p(E,G):(D=li(E),D.c(),D.m(o,a)):D&&(D.d(1),D=null),G[0]&8260&&l!==(l=E[6]?`${E[13]("amount")}`:`${E[13]("new")} ${E[13](`gamingLimits.${E[2]}`)} ${E[13]("limit")}`)&&W(h,l),G[0]&8&&pi(m.value)!==E[3]&&ve(m,E[3]),G[0]&8192&&R!==(R=E[13]("setLimit")+"")&&W(P,R)},d(E){E&&B(t),Ce(A,E),M&&M.d(),D&&D.d(),e[35](null),L=!1,ie(w)}}}function Jo(e){let t;return{c(){t=v("p"),t.textContent="500 Server error"},m(i,r){N(i,t,r)},p:U,d(i){i&&B(t)}}}function Qo(e){return{c:U,m:U,p:U,d:U}}function Ko(e){let t;return{c(){t=v("div"),g(t,"class","LoadingIndicator")},m(i,r){N(i,t,r)},p:U,d(i){i&&B(t)}}}function es(e){let t,i,r,n=e[13]("noLimitText")+"",o;return{c(){t=v("div"),i=v("div"),r=v("div"),o=F(n),g(r,"class","LimitDetailsTextWrapper"),g(i,"class","LimitDetailsWrapper"),g(t,"class","LimitDetails")},m(s,a){N(s,t,a),d(t,i),d(i,r),d(r,o)},p(s,a){a[0]&8192&&n!==(n=s[13]("noLimitText")+"")&&W(o,n)},d(s){s&&B(t)}}}function ts(e){let t,i=te(e[53].currentLimits),r=[];for(let n=0;n<i.length;n+=1)r[n]=oi(ii(e,i,n));return{c(){for(let n=0;n<r.length;n+=1)r[n].c();t=Er()},m(n,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(n,o);N(n,t,o)},p(n,o){if(o[0]&565248){i=te(n[53].currentLimits);let s;for(s=0;s<i.length;s+=1){const a=ii(n,i,s);r[s]?r[s].p(a,o):(r[s]=oi(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=i.length}},d(n){n&&B(t),Ce(r,n)}}}function is(e){let t,i=`${e[13]("removedLimitText")} ${e[58].expiryDate}`,r;return{c(){t=v("div"),r=F(i),g(t,"class","PendingLimit")},m(n,o){N(n,t,o),d(t,r)},p(n,o){o[0]&8192&&i!==(i=`${n[13]("removedLimitText")} ${n[58].expiryDate}`)&&W(r,i)},d(n){n&&B(t)}}}function rs(e){let t,i=`${e[58].updateAmount}${e[58].currency} ${e[13](`gamingLimits.${e[58].period}`)} ${e[13]("updateText")} ${e[58].expiryDate}`,r;return{c(){t=v("div"),r=F(i),g(t,"class","PendingLimit")},m(n,o){N(n,t,o),d(t,r)},p(n,o){o[0]&8192&&i!==(i=`${n[58].updateAmount}${n[58].currency} ${n[13](`gamingLimits.${n[58].period}`)} ${n[13]("updateText")} ${n[58].expiryDate}`)&&W(r,i)},d(n){n&&B(t)}}}function ns(e){let t,i=e[13]("gamingLimits.removeLimit")+"",r,n,o;function s(){return e[31](e[58])}return{c(){t=v("button"),r=F(i),g(t,"class","RemoveLimitButton")},m(a,c){N(a,t,c),d(t,r),n||(o=Y(t,"click",s),n=!0)},p(a,c){e=a,c[0]&8192&&i!==(i=e[13]("gamingLimits.removeLimit")+"")&&W(r,i)},d(a){a&&B(t),n=!1,o()}}}function oi(e){let t,i,r,n=`${e[58].amount}${e[58].currency} ${e[13](`gamingLimits.${e[58].period}`)}`,o,s,a,c;function u(m,p){if(m[58].isModified&&m[58].updateAmount!="-1")return rs;if(m[58].isModified)return is}let l=u(e),h=l&&l(e),f=!e[58].isModified&&ns(e);return{c(){t=v("div"),i=v("div"),r=v("div"),o=F(n),s=j(),h&&h.c(),a=j(),f&&f.c(),c=j(),g(r,"class","CurrentLimit"),g(i,"class","LimitDetailsTextWrapper"),g(t,"class","LimitDetails")},m(m,p){N(m,t,p),d(t,i),d(i,r),d(r,o),d(i,s),h&&h.m(i,null),d(t,a),f&&f.m(t,null),d(t,c)},p(m,p){p[0]&8192&&n!==(n=`${m[58].amount}${m[58].currency} ${m[13](`gamingLimits.${m[58].period}`)}`)&&W(o,n),h&&h.p(m,p),m[58].isModified||f.p(m,p)},d(m){m&&B(t),h&&h.d(),f&&f.d()}}}function si(e){let t,i,r=e[13](`gamingLimits.${e[53].value}`)+"",n,o,s;function a(l,h){return l[53].currentLimits.length>0?ts:es}let u=a(e)(e);return{c(){t=v("div"),i=v("p"),n=F(r),o=j(),u.c(),s=j(),g(i,"class","LimitTitle"),g(t,"class","LimitWrapper "+(e[14]?"Desktop":""))},m(l,h){N(l,t,h),d(t,i),d(i,n),d(t,o),u.m(t,null),d(t,s)},p(l,h){h[0]&8192&&r!==(r=l[13](`gamingLimits.${l[53].value}`)+"")&&W(n,r),u.p(l,h)},d(l){l&&B(t),u.d()}}}function ai(e){let t,i,r=e[13]("limitType")+"",n,o,s,a,c,u=te(e[15]),l=[];for(let h=0;h<u.length;h+=1)l[h]=ui(ei(e,u,h));return{c(){t=v("label"),i=v("span"),n=F(r),o=j(),s=v("select");for(let h=0;h<l.length;h+=1)l[h].c();g(i,"class","LimitSelectText"),g(s,"name",""),g(s,"id",""),e[1]===void 0&&Ee(()=>e[32].call(s)),g(t,"class","LimitTypeDropdownWrapper")},m(h,f){N(h,t,f),d(t,i),d(i,n),d(t,o),d(t,s);for(let m=0;m<l.length;m+=1)l[m]&&l[m].m(s,null);He(s,e[1],!0),a||(c=[Y(s,"change",e[32]),Y(s,"change",e[16])],a=!0)},p(h,f){if(f[0]&8192&&r!==(r=h[13]("limitType")+"")&&W(n,r),f[0]&32768){u=te(h[15]);let m;for(m=0;m<u.length;m+=1){const p=ei(h,u,m);l[m]?l[m].p(p,f):(l[m]=ui(p),l[m].c(),l[m].m(s,null))}for(;m<l.length;m+=1)l[m].d(1);l.length=u.length}f[0]&32770&&He(s,h[1])},d(h){h&&B(t),Ce(l,h),a=!1,ie(c)}}}function ui(e){let t,i=e[53].title+"",r;return{c(){t=v("option"),r=F(i),t.__value=e[53].value,ve(t,t.__value)},m(n,o){N(n,t,o),d(t,r)},p:U,d(n){n&&B(t)}}}function li(e){let t,i,r=e[13]("period")+"",n,o,s,a,c,u=te(Z[e[1]].periods),l=[];for(let h=0;h<u.length;h+=1)l[h]=ci(Kt(e,u,h));return{c(){t=v("label"),i=v("span"),n=F(r),o=j(),s=v("select");for(let h=0;h<l.length;h+=1)l[h].c();g(i,"class","PeriodSelectText"),g(t,"class","LimitPeriodDropdownWrapper"),g(s,"name",""),g(s,"id",""),e[2]===void 0&&Ee(()=>e[33].call(s))},m(h,f){N(h,t,f),d(t,i),d(i,n),N(h,o,f),N(h,s,f);for(let m=0;m<l.length;m+=1)l[m]&&l[m].m(s,null);He(s,e[2],!0),a||(c=Y(s,"change",e[33]),a=!0)},p(h,f){if(f[0]&8192&&r!==(r=h[13]("period")+"")&&W(n,r),f[0]&8194){u=te(Z[h[1]].periods);let m;for(m=0;m<u.length;m+=1){const p=Kt(h,u,m);l[m]?l[m].p(p,f):(l[m]=ci(p),l[m].c(),l[m].m(s,null))}for(;m<l.length;m+=1)l[m].d(1);l.length=u.length}f[0]&6&&He(s,h[2])},d(h){h&&(B(t),B(o),B(s)),Ce(l,h),a=!1,c()}}}function ci(e){let t,i=e[13](`gamingLimits.${e[50]}`)+"",r,n;return{c(){t=v("option"),r=F(i),t.__value=n=e[50],ve(t,t.__value),t.selected=!0},m(o,s){N(o,t,s),d(t,r)},p(o,s){s[0]&8194&&i!==(i=o[13](`gamingLimits.${o[50]}`)+"")&&W(r,i),s[0]&32770&&n!==(n=o[50])&&(t.__value=n,ve(t,t.__value))},d(o){o&&B(t)}}}function os(e){let t,i,r=e[10]&&ri(e);function n(a,c){return a[7]&&!a[10]?Ko:a[7]?Qo:a[8]?Jo:qo}let o=n(e),s=o(e);return{c(){t=v("div"),r&&r.c(),i=j(),s.c()},m(a,c){N(a,t,c),r&&r.m(t,null),d(t,i),s.m(t,null),e[36](t)},p(a,c){a[10]?r?r.p(a,c):(r=ri(a),r.c(),r.m(t,i)):r&&(r.d(1),r=null),o===(o=n(a))&&s?s.p(a,c):(s.d(1),s=o(a),s&&(s.c(),s.m(t,null)))},i:U,o:U,d(a){a&&B(t),r&&r.d(),s.d(),e[36](null)}}}function ss(e,t,i){let r;gr(e,Po,b=>i(13,r=b));let{lang:n="en"}=t,{currency:o=""}=t,{limits:s=""}=t,{session:a=""}=t,{userid:c=""}=t,{endpoint:u=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{translationurl:f=""}=t,{mbsource:m}=t,p,_=window.navigator.userAgent,R=!Go(_),P=[],L="",w="",H,A,M=!1,D=!1,E=!0,G=!1,k=!1,K=!1,$e=!1,Ge="",we;const _t={EUR:"€",RON:" lei"},Zi={updatePendingError:["SYS_1037","SYS_1142","SYS_1140"]},Yi=()=>{fetch(f).then(y=>y.json()).then(y=>{Object.keys(y).forEach(I=>{zt(I,y[I])})}).catch(y=>{console.log(y)})};Object.keys(Wt).forEach(b=>{zt(b,Wt[b])});const qi=()=>{s.split(" ").forEach(y=>{Z[y]?P.push(Z[y]):console.error(`Unknown limit: ${y}`)}),i(1,L=P[0].value),i(2,w=Z[L].periods[0]),i(5,M=P.length>1),i(6,D=Z[L].periods.length>1)},Ji=()=>{i(2,w=Z[L].periods[0]),i(6,D=Z[L].periods.length>1)},Qi=()=>{if(!(H>0))return;i(10,K=!0),i(7,E=!0);let b=new URL(`/v2/player/${c}/limits`,u);const y={};y[Z[L].callValue]=[{period:w,amount:H,currency:o}];let I={method:"PUT",headers:{"X-SessionID":a,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(y)};fetch(b.href,I).then(C=>(C.status>=300&&i(9,k=!0),C.json())).then(C=>{ze(),k&&Ki(C)}).catch(C=>{console.log(C),i(7,E=!1),i(8,G=!0)})},Ki=b=>{const y=b.error.match(/errorCode:(.*)\)/)[1];console.error(`API response error: ${y}`);let I;for(const[C,$]of Object.entries(Zi))$.includes(y)&&(I=r(`gamingLimits.${C}`));I=I!=null?I:r("gamingLimits.genericError"),Et(y,I)},ze=()=>{let b=new URL(`/v2/player/${c}/limits`,u),y=!k,I={method:"GET",headers:{"X-SessionID":a,"Content-Type":"application/json",Accept:"application/json"}};fetch(b.href,I).then(C=>{if(C.status>=300)throw i(7,E=!1),i(8,G=!0),new Error("There was an error fetching the limits");return C.json()}).then(C=>{we=C,K&&y&&Et(),er(we),i(7,E=!1),i(3,H=null)}).catch(C=>{console.log(C),i(7,E=!1),i(8,G=!0)})},er=b=>{P.forEach(y=>{var I;y.currentLimits=[],(I=b[Z[y.value].callValue])==null||I.forEach((C,$)=>{var xt;const q=b[Z[y.value].callValue][$];y.currentLimits.push({}),y.currentLimits[$].limitType=y.value,y.currentLimits[$].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(q.amount),y.currentLimits[$].currency=(xt=_t[q.currency])!=null?xt:q.currency,y.currentLimits[$].period=q.period,y.currentLimits[$].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(q.updateAmount),y.currentLimits[$].isModified=q.isModified,y.currentLimits[$].expiryDate=`${new Date(q.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`}),y.currentLimits=tr(y.currentLimits)})},tr=b=>{const y={Daily:0,Weekly:1,Monthly:2};return b.sort((I,C)=>y[I.period]-y[C.period]),b},ir=()=>{H>999999999999999&&i(3,H=999999999999999);const y=H-Math.floor(H)===0;H>0&&y?A.removeAttribute("disabled"):A.setAttribute("disabled","true")},Et=(b,y)=>{if(b)i(12,Ge=y);else if(we){const I=we[Z[L].callValue].filter(q=>q.period===w)[0],C=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(I.amount);let $=r("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",r(`gamingLimits.${L}`).toLowerCase()).replace("{updatedAmount}",C).replace("{currency}",_t[I.currency]||I.currency).replace("{selectedPeriod}",r(`gamingLimits.${w}`).toLowerCase());i(12,Ge=I.isModified?`${r("popupPendingUpdate")} ${new Date(I.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:$)}else console.error("Couldn't populate popupContent");i(11,$e=!0)},Lt=b=>{const y={wager:"wagering",loss:"loss",deposit:"deposit"};i(10,K=!0),i(7,E=!0);let I=new URL(`/v2/player/${c}/limits/${y[b.limitType]}?periods=${b.period}`,u),C={method:"DELETE",headers:{"X-SessionID":a,"Content-Type":"application/json",Accept:"application/json"}};fetch(I.href,C).then($=>$.json()).then($=>{ze()}).catch($=>{console.log($),i(7,E=!1),i(8,G=!0)})},rr=()=>{i(11,$e=i(10,K=!1))},nr=()=>{Ao(n)};wr(()=>()=>{});const or=b=>Lt(b);function sr(){L=Bt(this),i(1,L),i(15,P)}function ar(){w=Bt(this),i(2,w),i(1,L)}function ur(){H=pi(this.value),i(3,H)}function lr(b){Oe[b?"unshift":"push"](()=>{A=b,i(4,A)})}function cr(b){Oe[b?"unshift":"push"](()=>{p=b,i(0,p)})}return e.$$set=b=>{"lang"in b&&i(21,n=b.lang),"currency"in b&&i(22,o=b.currency),"limits"in b&&i(23,s=b.limits),"session"in b&&i(24,a=b.session),"userid"in b&&i(25,c=b.userid),"endpoint"in b&&i(26,u=b.endpoint),"clientstyling"in b&&i(27,l=b.clientstyling),"clientstylingurl"in b&&i(28,h=b.clientstylingurl),"translationurl"in b&&i(29,f=b.translationurl),"mbsource"in b&&i(30,m=b.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&8388608&&s&&qi(),e.$$.dirty[0]&2097152&&n&&nr(),e.$$.dirty[0]&117440512&&c&&a&&u&&ze(),e.$$.dirty[0]&134217729&&l&&p&&zo(p,l),e.$$.dirty[0]&268435457&&h&&p&&Wo(p,h),e.$$.dirty[0]&1073741825&&m&&p&&Vo(p,`${m}.Style`),e.$$.dirty[0]&536870912&&f&&Yi()},[p,L,w,H,A,M,D,E,G,k,K,$e,Ge,r,R,P,Ji,Qi,ir,Lt,rr,n,o,s,a,c,u,l,h,f,m,or,sr,ar,ur,lr,cr]}class Xi extends Dr{constructor(t){super(),kr(this,t,ss,os,mi,{lang:21,currency:22,limits:23,session:24,userid:25,endpoint:26,clientstyling:27,clientstylingurl:28,translationurl:29,mbsource:30},Xo,[-1,-1])}get lang(){return this.$$.ctx[21]}set lang(t){this.$$set({lang:t}),X()}get currency(){return this.$$.ctx[22]}set currency(t){this.$$set({currency:t}),X()}get limits(){return this.$$.ctx[23]}set limits(t){this.$$set({limits:t}),X()}get session(){return this.$$.ctx[24]}set session(t){this.$$set({session:t}),X()}get userid(){return this.$$.ctx[25]}set userid(t){this.$$set({userid:t}),X()}get endpoint(){return this.$$.ctx[26]}set endpoint(t){this.$$set({endpoint:t}),X()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(t){this.$$set({clientstyling:t}),X()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),X()}get translationurl(){return this.$$.ctx[29]}set translationurl(t){this.$$set({translationurl:t}),X()}get mbsource(){return this.$$.ctx[30]}set mbsource(t){this.$$set({mbsource:t}),X()}}Cr(Xi,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=Xi;
|