@everymatrix/player-account-gaming-limits-page-2-gmcore 0.0.382 → 0.0.384

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.
@@ -1,672 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function a(t,e){t.appendChild(e)}function u(t,e,r){t.insertBefore(e,r||null)}function l(t){t.parentNode.removeChild(t)}function c(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function h(t){return document.createElement(t)}function p(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function f(t){return document.createTextNode(t)}function m(){return f(" ")}function d(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function g(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function y(t){return""===t?null:+t}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function v(t,e){t.value=null==e?"":e}function E(t,e,r,n){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function T(t,e){for(let r=0;r<t.options.length;r+=1){const n=t.options[r];if(n.__value===e)return void(n.selected=!0)}t.selectedIndex=-1}function _(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}function L(t){const e={};for(const r of t)e[r.name]=r.value;return e}let w;function A(t){w=t}const B=[],S=[],H=[],P=[],O=Promise.resolve();let I=!1;function x(t){H.push(t)}
2
- // flush() calls callbacks in this order:
3
- // 1. All beforeUpdate callbacks, in order: parents before children
4
- // 2. All bind:this callbacks, in reverse order: children before parents.
5
- // 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
6
- // for afterUpdates called during the initial onMount, which are called in
7
- // reverse order: children before parents.
8
- // Since callbacks might update component values, which could trigger another
9
- // call to flush(), the following steps guard against this:
10
- // 1. During beforeUpdate, any updated components will be added to the
11
- // dirty_components array and will cause a reentrant call to flush(). Because
12
- // the flush index is kept outside the function, the reentrant call will pick
13
- // up where the earlier call left off and go through all dirty components. The
14
- // current_component value is saved and restored so that the reentrant call will
15
- // not interfere with the "parent" flush() call.
16
- // 2. bind:this callbacks cannot trigger new flush() calls.
17
- // 3. During afterUpdate, any updated components will NOT have their afterUpdate
18
- // callback called a second time; the seen_callbacks set, outside the flush()
19
- // function, guarantees this behavior.
20
- const C=new Set;let N=0;// Do *not* move this inside the flush() function
21
- function R(){const t=w;do{
22
- // first, call beforeUpdate functions
23
- // and update components
24
- for(;N<B.length;){const t=B[N];N++,A(t),M(t.$$)}for(A(null),B.length=0,N=0;S.length;)S.pop()();
25
- // then, once components are updated, call
26
- // afterUpdate functions. This may cause
27
- // subsequent updates...
28
- for(let t=0;t<H.length;t+=1){const e=H[t];C.has(e)||(
29
- // ...so guard against infinite loops
30
- C.add(e),e())}H.length=0}while(B.length);for(;P.length;)P.pop()();I=!1,C.clear(),A(t)}function M(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(x)}}const D=new Set;function U(t,e){-1===t.$$.dirty[0]&&(B.push(t),I||(I=!0,O.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function $(o,s,a,u,c,h,p,f=[-1]){const m=w;A(o);const d=o.$$={fragment:null,ctx:null,
31
- // state
32
- props:h,update:t,not_equal:c,bound:r(),
33
- // lifecycle
34
- on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
35
- // everything else
36
- callbacks:r(),dirty:f,skip_bound:!1,root:s.target||m.$$.root};p&&p(d.root);let g=!1;if(d.ctx=a?a(o,s.props||{},((t,e,...r)=>{const n=r.length?r[0]:e;return d.ctx&&c(d.ctx[t],d.ctx[t]=n)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](n),g&&U(o,t)),e})):[],d.update(),g=!0,n(d.before_update),
37
- // `false` as a special case of no DOM component
38
- d.fragment=!!u&&u(d.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
39
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
40
- d.fragment&&d.fragment.l(t),t.forEach(l)}else
41
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
42
- d.fragment&&d.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(D.delete(y),y.i(b))),function(t,r,o,s){const{fragment:a,on_mount:u,on_destroy:l,after_update:c}=t.$$;a&&a.m(r,o),s||
43
- // onMount happens before the initial afterUpdate
44
- x((()=>{const r=u.map(e).filter(i);l?l.push(...r):
45
- // Edge case - component was destroyed immediately,
46
- // most likely as a result of a binding initialising
47
- n(r),t.$$.on_mount=[]})),c.forEach(x)}(o,s.target,s.anchor,s.customElement),R()}var y,b;A(m)}let k;"function"==typeof HTMLElement&&(k=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);
48
- // @ts-ignore todo: improve typings
49
- for(const t in this.$$.slotted)
50
- // @ts-ignore todo: improve typings
51
- this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){!function(t,e){const r=t.$$;null!==r.fragment&&(n(r.on_destroy),r.fragment&&r.fragment.d(e),
52
- // TODO null out other refs, including component.$$ (but need to
53
- // preserve final state?)
54
- r.on_destroy=r.fragment=null,r.ctx=[])}(this,1),this.$destroy=t}$on(t,e){
55
- // TODO should this delegate to addEventListener?
56
- const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const G={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"]}},F=[];
57
- /**
58
- * Create a `Writable` store that allows both updating and reading by subscription.
59
- * @param {*=}value initial value
60
- * @param {StartStopNotifier=}start start and stop notifications for subscriptions
61
- */
62
- function j(e,r=t){let n;const i=new Set;function s(t){if(o(e,t)&&(e=t,n)){// store is ready
63
- const t=!F.length;for(const t of i)t[1](),F.push(t,e);if(t){for(let t=0;t<F.length;t+=2)F[t][0](F[t+1]);F.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const u=[o,a];return i.add(u),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(u),0===i.size&&(n(),n=null)}}}}function V(e,r,o){const a=!Array.isArray(e),u=a?[e]:e,l=r.length<2;return c=e=>{let o=!1;const c=[];let h=0,p=t;const f=()=>{if(h)return;p();const n=r(a?c[0]:c,e);l?e(n):p=i(n)?n:t},m=u.map(((t,e)=>s(t,(t=>{c[e]=t,h&=~(1<<e),o&&f()}),(()=>{h|=1<<e}))));return o=!0,f(),function(){n(m),p()}},{subscribe:j(o,c).subscribe};
64
- /**
65
- * Creates a `Readable` store that allows reading by subscription.
66
- * @param value initial value
67
- * @param {StartStopNotifier}start start and stop notifications for subscriptions
68
- */
69
- var c}var W=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===X}(t)}
70
- // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
71
- (t)};var X="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function z(t,e){return!1!==e.clone&&e.isMergeableObject(t)?J((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function K(t,e,r){return t.concat(e).map((function(t){return z(t,r)}))}function Y(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function Z(t,e){try{return e in t}catch(t){return!1}}
72
- // Protects from prototype poisoning and unexpected merging up the prototype chain.
73
- function q(t,e,r){var n={};return r.isMergeableObject(t)&&Y(t).forEach((function(e){n[e]=z(t[e],r)})),Y(e).forEach((function(i){(function(t,e){return Z(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
74
- })(t,i)||(Z(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return J;var r=e.customMerge(t);return"function"==typeof r?r:J}(i,r)(t[i],e[i],r):n[i]=z(e[i],r))})),n}function J(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||K,r.isMergeableObject=r.isMergeableObject||W,
75
- // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
76
- // implementations can use it. The caller may not replace it.
77
- r.cloneUnlessOtherwiseSpecified=z;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):q(t,e,r):z(e,r)}J.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return J(t,r,e)}),{})};var Q=J,tt=function(t,e){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},tt(t,e)};function et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}tt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var rt,nt,it,ot=function(){return ot=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ot.apply(this,arguments)};function st(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}
78
- /**
79
- * Type Guards
80
- */
81
- function at(t){return t.type===nt.literal}function ut(t){return t.type===nt.argument}function lt(t){return t.type===nt.number}function ct(t){return t.type===nt.date}function ht(t){return t.type===nt.time}function pt(t){return t.type===nt.select}function ft(t){return t.type===nt.plural}function mt(t){return t.type===nt.pound}function dt(t){return t.type===nt.tag}function gt(t){return!(!t||"object"!=typeof t||t.type!==it.number)}function yt(t){return!(!t||"object"!=typeof t||t.type!==it.dateTime)}
82
- // @generated from regex-gen.ts
83
- !function(t){
84
- /** Argument is unclosed (e.g. `{0`) */
85
- t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
86
- /** Argument is empty (e.g. `{}`). */
87
- t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",
88
- /** Argument is malformed (e.g. `{foo!}``) */
89
- t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",
90
- /** Expect an argument type (e.g. `{foo,}`) */
91
- t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",
92
- /** Unsupported argument type (e.g. `{foo,foo}`) */
93
- t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",
94
- /** Expect an argument style (e.g. `{foo, number, }`) */
95
- t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",
96
- /** The number skeleton is invalid. */
97
- t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",
98
- /** The date time skeleton is invalid. */
99
- t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",
100
- /** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */
101
- t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",
102
- /** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */
103
- t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",
104
- /** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */
105
- t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",
106
- /** Missing select argument options (e.g. `{foo, select}`) */
107
- t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",
108
- /** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */
109
- t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",
110
- /** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */
111
- t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",
112
- /** Expecting a selector in `select` argument (e.g `{foo, select}`) */
113
- t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",
114
- /** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */
115
- t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
116
- /** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */
117
- t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
118
- /**
119
- * Expecting a message fragment after the `plural` or `selectordinal` selector
120
- * (e.g. `{foo, plural, one}`)
121
- */
122
- t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
123
- /** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */
124
- t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
125
- /**
126
- * Duplicate selectors in `plural` or `selectordinal` argument.
127
- * (e.g. {foo, plural, one {#} one {#}})
128
- */
129
- t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
130
- /** Duplicate selectors in `select` argument.
131
- * (e.g. {foo, select, apple {apple} apple {apple}})
132
- */
133
- t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
134
- /** Plural or select argument option must have `other` clause. */
135
- t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
136
- /** The tag is malformed. (e.g. `<bold!>foo</bold!>) */
137
- t[t.INVALID_TAG=23]="INVALID_TAG",
138
- /** The tag name is invalid. (e.g. `<123>foo</123>`) */
139
- t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
140
- /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
141
- t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
142
- /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
143
- t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(rt||(rt={})),function(t){
144
- /**
145
- * Raw text
146
- */
147
- t[t.literal=0]="literal",
148
- /**
149
- * Variable w/o any format, e.g `var` in `this is a {var}`
150
- */
151
- t[t.argument=1]="argument",
152
- /**
153
- * Variable w/ number format
154
- */
155
- t[t.number=2]="number",
156
- /**
157
- * Variable w/ date format
158
- */
159
- t[t.date=3]="date",
160
- /**
161
- * Variable w/ time format
162
- */
163
- t[t.time=4]="time",
164
- /**
165
- * Variable w/ select format
166
- */
167
- t[t.select=5]="select",
168
- /**
169
- * Variable w/ plural format
170
- */
171
- t[t.plural=6]="plural",
172
- /**
173
- * Only possible within plural argument.
174
- * This is the `#` symbol that will be substituted with the count.
175
- */
176
- t[t.pound=7]="pound",
177
- /**
178
- * XML-like tag
179
- */
180
- t[t.tag=8]="tag"}(nt||(nt={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(it||(it={}));var bt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vt=/(?:[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;
181
- /**
182
- * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
183
- * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
184
- * with some tweaks
185
- */
186
- /**
187
- * Parse Date time skeleton into Intl.DateTimeFormatOptions
188
- * Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
189
- * @public
190
- * @param skeleton skeleton string
191
- */
192
- function Et(t){var e={};return t.replace(vt,(function(t){var r=t.length;switch(t[0]){
193
- // Era
194
- case"G":e.era=4===r?"long":5===r?"narrow":"short";break;
195
- // Year
196
- case"y":e.year=2===r?"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");
197
- // Quarter
198
- case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");
199
- // Month
200
- case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;
201
- // Week
202
- case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.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");
203
- // Weekday
204
- case"E":e.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;
205
- // Period
206
- case"a":// AM, PM
207
- e.hour12=!0;break;case"b":// am, pm, noon, midnight
208
- case"B":// flexible day periods
209
- throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
210
- // Hour
211
- case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.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");
212
- // Minute
213
- case"m":e.minute=["numeric","2-digit"][r-1];break;
214
- // Second
215
- case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
216
- // Zone
217
- case"z":// 1..3, 4: specific non-location format
218
- e.timeZoneName=r<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
219
- case"O":// 1, 4: miliseconds in day short, long
220
- case"v":// 1, 4: generic non-location format
221
- case"V":// 1, 2, 3, 4: time zone ID or city
222
- case"X":// 1, 2, 3, 4: The ISO8601 varios formats
223
- case"x":// 1, 2, 3, 4: The ISO8601 varios formats
224
- throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}
225
- // @generated from regex-gen.ts
226
- var Tt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var _t=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lt=/^(@+)?(\+|#+)?[rs]?$/g,wt=/(\*)(0+)|(#+)(0+)|(0+)/g,At=/^(0+)$/;function Bt(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Lt,(function(t,r,n){
227
- // @@@ case
228
- return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function St(t){switch(t){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 Ht(t){
229
- // Engineering
230
- var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!At.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Pt(t){var e=St(t);return e||{}}
231
- /**
232
- * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
233
- */function Ot(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=ot(ot(ot({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return ot(ot({},t),Pt(e))}),{}));continue;case"engineering":e=ot(ot(ot({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return ot(ot({},t),Pt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
234
- // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
235
- case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;
236
- // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
237
- case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(wt,(function(t,r,n,i,o,s){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
238
- // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
239
- if(At.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(_t.test(i.stem)){
240
- // Precision
241
- // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
242
- // precision-integer case
243
- if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(_t,(function(t,r,n,i,o,s){
244
- // .000* case (before ICU67 it was .000+)
245
- return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];
246
- // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
247
- "w"===o?e=ot(ot({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=ot(ot({},e),Bt(o)))}
248
- // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
249
- else if(Lt.test(i.stem))e=ot(ot({},e),Bt(i.stem));else{var s=St(i.stem);s&&(e=ot(ot({},e),s));var a=Ht(i.stem);a&&(e=ot(ot({},e),a))}}return e}
250
- // @generated from time-data-gen.ts
251
- // prettier-ignore
252
- var It,xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
253
- /**
254
- * Returns the best matching date time pattern if a date time skeleton
255
- * pattern is provided with a locale. Follows the Unicode specification:
256
- * https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns
257
- * @param skeleton date time skeleton pattern that possibly includes j, J or C
258
- * @param locale
259
- */
260
- /**
261
- * Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)
262
- * of the given `locale` to the corresponding time pattern.
263
- * @param locale
264
- */
265
- function Ct(t){var e=t.hourCycle;if(void 0===e&&
266
- // @ts-ignore hourCycle(s) is not identified yet
267
- t.hourCycles&&
268
- // @ts-ignore
269
- t.hourCycles.length&&(
270
- // @ts-ignore
271
- e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
272
- // TODO: Once hourCycle is fully supported remove the following with data generation
273
- var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(xt[r||""]||xt[n||""]||xt["".concat(n,"-001")]||xt["001"])[0]}var Nt=new RegExp("^".concat(bt.source,"*")),Rt=new RegExp("".concat(bt.source,"*$"));function Mt(t,e){return{start:t,end:e}}
274
- // #region Ponyfills
275
- // Consolidate these variables up top for easier toggling during debugging
276
- var Dt=!!String.prototype.startsWith,Ut=!!String.fromCodePoint,$t=!!Object.fromEntries,kt=!!String.prototype.codePointAt,Gt=!!String.prototype.trimStart,Ft=!!String.prototype.trimEnd,jt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Vt=!0;try{
277
- /**
278
- * legacy Edge or Xbox One browser
279
- * Unicode flag support: supported
280
- * Pattern_Syntax support: not supported
281
- * See https://github.com/formatjs/formatjs/issues/2822
282
- */
283
- Vt="a"===(null===(It=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===It?void 0:It[0])}catch(t){Vt=!1}var Wt,Xt=Dt?// Native
284
- function(t,e,r){return t.startsWith(e,r)}:// For IE11
285
- function(t,e,r){return t.slice(r,r+e.length)===e},zt=Ut?String.fromCodePoint:// IE11
286
- function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Kt=
287
- // native
288
- $t?Object.fromEntries:// Ponyfill
289
- function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e},Yt=kt?// Native
290
- function(t,e){return t.codePointAt(e)}:// IE 11
291
- function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Zt=Gt?// Native
292
- function(t){return t.trimStart()}:// Ponyfill
293
- function(t){return t.replace(Nt,"")},qt=Ft?// Native
294
- function(t){return t.trimEnd()}:// Ponyfill
295
- function(t){return t.replace(Rt,"")};
296
- // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
297
- function Jt(t,e){return new RegExp(t,e)}
298
- // #endregion
299
- if(Vt){
300
- // Native
301
- var Qt=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wt=function(t,e){var r;return Qt.lastIndex=e,null!==(r=Qt.exec(t)[1])&&void 0!==r?r:""}}else
302
- // IE11
303
- Wt=function(t,e){for(var r=[];;){var n=Yt(t,e);if(void 0===n||ne(n)||ie(n))break;r.push(n),e+=n>=65536?2:1}return zt.apply(void 0,r)};var te=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(rt.UNMATCHED_CLOSING_TAG,Mt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&ee(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:nt.pound,location:Mt(s,this.clonePosition())})}}}return{val:n,err:null}},
304
- /**
305
- * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
306
- * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
307
- * are accepted:
308
- *
309
- * ```
310
- * tag ::= "<" tagName (whitespace)* "/>" | "<" tagName (whitespace)* ">" message "</" tagName (whitespace)* ">"
311
- * tagName ::= [a-z] (PENChar)*
312
- * PENChar ::=
313
- * "-" | "." | [0-9] | "_" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |
314
- * [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |
315
- * [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
316
- * ```
317
- *
318
- * [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
319
- * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
320
- * since other tag-based engines like React allow it
321
- */
322
- t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();// `<`
323
- var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
324
- // Self closing tag
325
- return{val:{type:nt.literal,value:"<".concat(n,"/>"),location:Mt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
326
- // Expecting a close tag
327
- if(this.bumpIf("</")){if(this.isEOF()||!ee(this.char()))return this.error(rt.INVALID_TAG,Mt(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(rt.UNMATCHED_CLOSING_TAG,Mt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:nt.tag,value:n,children:o,location:Mt(r,this.clonePosition())},err:null}:this.error(rt.INVALID_TAG,Mt(s,this.clonePosition())))}return this.error(rt.UNCLOSED_TAG,Mt(r,this.clonePosition()))}return this.error(rt.INVALID_TAG,Mt(r,this.clonePosition()))},
328
- /**
329
- * This method assumes that the caller has peeked ahead for the first tag character.
330
- */
331
- t.prototype.parseTagName=function(){var t=this.offset();// the first tag name character
332
- for(this.bump();!this.isEOF()&&re(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{var o=this.tryParseUnquoted(t,e);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Mt(r,this.clonePosition());return{val:{type:nt.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(ee(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
333
- /** See `parseTag` function docs. */},
334
- /**
335
- * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
336
- * a character that requires quoting (that is, "only where needed"), and works the same in
337
- * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.
338
- */
339
- t.prototype.tryParseQuote=function(t){if(this.isEOF()||39/* `'` */!==this.char())return null;
340
- // Parse escaped char following the apostrophe, or early return if there is no escaped char.
341
- // Check if is valid escaped character
342
- switch(this.peek()){case 39/* `'` */:
343
- // double quote, should return as a single quote.
344
- return this.bump(),this.bump(),"'";
345
- // '{', '<', '>', '}'
346
- case 123:case 60:case 62:case 125:break;case 35:// '#'
347
- if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();// apostrophe
348
- var e=[this.char()];// escaped char
349
- // read chars until the optional closing apostrophe is found
350
- for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'` */!==this.peek()){
351
- // Optional closing apostrophe.
352
- this.bump();break}e.push(39),
353
- // Bump one more time because we need to skip 2 characters.
354
- this.bump()}else e.push(r);this.bump()}return zt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===e||"selectordinal"===e)||125/* `}` */===r&&t>0?null:(this.bump(),zt(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),// `{`
355
- this.bumpSpace(),this.isEOF())return this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(rt.EMPTY_ARGUMENT,Mt(r,this.clonePosition()));
356
- // argument name
357
- var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(rt.MALFORMED_ARGUMENT,Mt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition()));switch(this.char()){
358
- // Simple argument: `{name}`
359
- case 125/* `}` */:// `}`
360
- return this.bump(),{val:{type:nt.argument,
361
- // value does not include the opening and closing braces.
362
- value:n,location:Mt(r,this.clonePosition())},err:null};
363
- // Argument with options: `{name, format, ...}`
364
- case 44/* `,` */:return this.bump(),// `,`
365
- this.bumpSpace(),this.isEOF()?this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(rt.MALFORMED_ARGUMENT,Mt(r,this.clonePosition()))}},
366
- /**
367
- * Advance the parser until the end of the identifier, if it is currently on
368
- * an identifier character. Return an empty string otherwise.
369
- */
370
- t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Wt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Mt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
371
- // Parse this range:
372
- // {name, type, style}
373
- // ^---^
374
- switch(s){case"":
375
- // Expecting a style string number, date, time, plural, selectordinal, or select.
376
- return this.error(rt.EXPECT_ARGUMENT_TYPE,Mt(o,a));case"number":case"date":case"time":
377
- // Parse this range:
378
- // {name, number, style}
379
- // ^-------^
380
- this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(f=qt(y.val)).length)return this.error(rt.EXPECT_ARGUMENT_STYLE,Mt(this.clonePosition(),this.clonePosition()));u={style:f,styleLocation:Mt(l,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Mt(n,this.clonePosition());
381
- // Extract style or skeleton
382
- if(u&&Xt(null==u?void 0:u.style,"::",0)){
383
- // Skeleton starts with `::`.
384
- var h=Zt(u.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?y:{val:{type:nt.number,value:r,location:c,style:y.val},err:null};if(0===h.length)return this.error(rt.EXPECT_DATE_TIME_SKELETON,c);var p=h;
385
- // Get "best match" pattern only if locale is passed, if not, let it
386
- // pass as-is where `parseDateTimeSkeleton()` will throw an error
387
- // for unsupported patterns.
388
- this.locale&&(p=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),u=Ct(e);for("H"!=u&&"k"!=u||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=u+r}else r+="J"===i?"H":i}return r}(h,this.locale));var f={type:it.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Et(p):{}};return{val:{type:"date"===s?nt.date:nt.time,value:r,location:c,style:f},err:null}}
389
- // Regular style or no style.
390
- return{val:{type:"number"===s?nt.number:"date"===s?nt.date:nt.time,value:r,location:c,style:null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
391
- // Parse this range:
392
- // {name, plural, options}
393
- // ^---------^
394
- var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(rt.EXPECT_SELECT_ARGUMENT_OPTIONS,Mt(m,ot({},m)));this.bumpSpace();
395
- // Parse offset:
396
- // {name, plural, offset:1, options}
397
- // ^-----^
398
- // or the first option:
399
- // {name, plural, one {...} other {...}}
400
- // ^--^
401
- var d=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(rt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Mt(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(rt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,rt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
402
- // Parse another identifier for option parsing
403
- this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,d);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var E=Mt(n,this.clonePosition());return"select"===s?{val:{type:nt.select,value:r,options:Kt(v.val),location:E},err:null}:{val:{type:nt.plural,value:r,options:Kt(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(rt.INVALID_ARGUMENT_TYPE,Mt(o,a))}},t.prototype.tryParseArgumentClose=function(t){
404
- // Parse: {value, number, ::currency/GBP }
405
- return this.isEOF()||125/* `}` */!==this.char()?this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
406
- /**
407
- * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
408
- */
409
- t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
410
- // Treat apostrophe as quoting but include it in the style part.
411
- // Find the end of the quoted literal text.
412
- this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(rt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Mt(r,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
413
- // Parse the skeleton
414
- for(var e=t.split(Tt).filter((function(t){return t.length>0})),r=[],n=0,i=e;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),u=0,l=a;u<l.length;u++)if(0===l[u].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(t)}catch(t){return this.error(rt.INVALID_NUMBER_SKELETON,e)}return{val:{type:it.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ot(r):{}},err:null}},
415
- /**
416
- * @param nesting_level The current nesting level of messages.
417
- * This can be positive when parsing message fragment in select or plural argument options.
418
- * @param parent_arg_type The parent argument's type.
419
- * @param parsed_first_identifier If provided, this is the first identifier-like selector of
420
- * the argument. It is a by-product of a previous parsing attempt.
421
- * @param expecting_close_tag If true, this message is directly or indirectly nested inside
422
- * between a pair of opening and closing tags. The nested message will not parse beyond
423
- * the closing tag boundary.
424
- */
425
- t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){
426
- // Parse:
427
- // one {one apple}
428
- // ^--^
429
- for(var i,o=!1,s=[],a=new Set,u=n.value,l=n.location;;){if(0===u.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;
430
- // Try parse `={number}` selector
431
- var h=this.tryParseDecimalInteger(rt.EXPECT_PLURAL_ARGUMENT_SELECTOR,rt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=Mt(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}
432
- // Duplicate selector clauses
433
- if(a.has(u))return this.error("select"===e?rt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:rt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(o=!0),
434
- // Parse:
435
- // one {one apple}
436
- // ^----------^
437
- this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?rt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:rt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Mt(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,e,r);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([u,{value:f.val,location:Mt(p,this.clonePosition())}]),
438
- // Keep track of the existing selectors
439
- a.add(u),
440
- // Prep next selector clause.
441
- this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===e?rt.EXPECT_SELECT_ARGUMENT_SELECTOR:rt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Mt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(rt.MISSING_OTHER_CLAUSE,Mt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Mt(n,this.clonePosition());return i?jt(o*=r)?{val:o,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
442
- // This is much faster than `Object.assign` or spread.
443
- return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
444
- /**
445
- * Return the code point at the current position of the parser.
446
- * Throws if the index is out of bound.
447
- */
448
- t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Yt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},
449
- /** Bump the parser to the next UTF-16 code unit. */
450
- t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10/* '\n' */===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
451
- // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
452
- this.position.offset+=t<65536?1:2)}},
453
- /**
454
- * If the substring starting at the current position of the parser has
455
- * the given prefix, then bump the parser to the character immediately
456
- * following the prefix and return true. Otherwise, don't bump the parser
457
- * and return false.
458
- */
459
- t.prototype.bumpIf=function(t){if(Xt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
460
- /**
461
- * Bump the parser until the pattern character is found and return `true`.
462
- * Otherwise bump to the end of the file and return `false`.
463
- */
464
- t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
465
- /**
466
- * Bump the parser to the target offset.
467
- * If target offset is beyond the end of the input, bump the parser to the end of the input.
468
- */
469
- t.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 e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
470
- /** advance the parser through all whitespace to the next non-whitespace code unit. */
471
- t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},
472
- /**
473
- * Peek at the *next* Unicode codepoint in the input without advancing the parser.
474
- * If the input has been exhausted, then this returns null.
475
- */
476
- t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();
477
- /**
478
- * This check if codepoint is alphabet (lower & uppercase)
479
- * @param codepoint
480
- * @returns
481
- */function ee(t){return t>=97&&t<=122||t>=65&&t<=90}function re(t){return 45/* '-' */===t||46/* '.' */===t||t>=48&&t<=57/* 0..9 */||95/* '_' */===t||t>=97&&t<=122/** a..z */||t>=65&&t<=90/* A..Z */||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}
482
- /**
483
- * Code point equivalent of regex `\p{White_Space}`.
484
- * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
485
- */function ne(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
486
- /**
487
- * Code point equivalent of regex `\p{Pattern_Syntax}`.
488
- * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
489
- */function ie(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function oe(t){t.forEach((function(t){if(delete t.location,pt(t)||ft(t))for(var e in t.options)delete t.options[e].location,oe(t.options[e].value);else lt(t)&&gt(t.style)||(ct(t)||ht(t))&&yt(t.style)?delete t.style.location:dt(t)&&oe(t.children)}))}function se(t,e){void 0===e&&(e={}),e=ot({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new te(t,e).parse();if(r.err){var n=SyntaxError(rt[r.err.kind]);
490
- // @ts-expect-error Assign to error object
491
- throw n.location=r.err.location,
492
- // @ts-expect-error Assign to error object
493
- n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||oe(r.val),r.val}
494
-
495
- // Main
496
-
497
- function ae(t,e){var r=e&&e.cache?e.cache:de,n=e&&e.serializer?e.serializer:pe;return(e&&e.strategy?e.strategy:he)(t,{cache:r,serializer:n})}
498
-
499
- // Strategy
500
-
501
- function ue(t,e,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=e.get(o);return void 0===s&&(s=t.call(this,n),e.set(o,s)),s}function le(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return void 0===o&&(o=t.apply(this,n),e.set(i,o)),o}function ce(t,e,r,n,i){return r.bind(e,t,n,i)}function he(t,e){return ce(t,this,1===t.length?ue:le,e.cache.create(),e.serializer)}
502
- // Serializer
503
- var pe=function(){return JSON.stringify(arguments)};
504
-
505
- // Cache
506
-
507
- function fe(){this.cache=Object.create(null)}fe.prototype.get=function(t){return this.cache[t]},fe.prototype.set=function(t,e){this.cache[t]=e};var me,de={create:function(){
508
- // @ts-ignore
509
- return new fe}},ge={variadic:function(t,e){return ce(t,this,le,e.cache.create(),e.serializer)},monadic:function(t,e){return ce(t,this,ue,e.cache.create(),e.serializer)}};!function(t){
510
- // When we have a placeholder but no value to format
511
- t.MISSING_VALUE="MISSING_VALUE",
512
- // When value supplied is invalid
513
- t.INVALID_VALUE="INVALID_VALUE",
514
- // When we need specific Intl API but it's not available
515
- t.MISSING_INTL_API="MISSING_INTL_API"}(me||(me={}));var ye,be=/** @class */function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return et(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),ve=/** @class */function(t){function e(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),me.INVALID_VALUE,i)||this}return et(e,t),e}(be),Ee=/** @class */function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),me.INVALID_VALUE,n)||this}return et(e,t),e}(be),Te=/** @class */function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),me.MISSING_VALUE,r)||this}return et(e,t),e}(be);function _e(t){return"function"==typeof t}
516
- // TODO(skeleton): add skeleton support
517
- function Le(t,e,r,n,i,o,
518
- // For debugging
519
- s){
520
- // Hot path for straight simple msg translations
521
- if(1===t.length&&at(t[0]))return[{type:ye.literal,value:t[0].value}];for(var a=[],u=0,l=t;u<l.length;u++){var c=l[u];
522
- // Exit early for string parts.
523
- if(at(c))a.push({type:ye.literal,value:c.value});else
524
- // TODO: should this part be literal type?
525
- // Replace `#` in plural rules with the actual numeric value.
526
- if(mt(c))"number"==typeof o&&a.push({type:ye.literal,value:r.getNumberFormat(e).format(o)});else{var h=c.value;
527
- // Enforce that all required values are provided by the caller.
528
- if(!i||!(h in i))throw new Te(h,s);var p=i[h];if(ut(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?ye.literal:ye.object,value:p});else
529
- // Recursively format plural and select parts' option — which can be a
530
- // nested pattern structure. The choosing of the option to use is
531
- // abstracted-by and delegated-to the part helper object.
532
- if(ct(c)){var f="string"==typeof c.style?n.date[c.style]:yt(c.style)?c.style.parsedOptions:void 0;a.push({type:ye.literal,value:r.getDateTimeFormat(e,f).format(p)})}else if(ht(c)){f="string"==typeof c.style?n.time[c.style]:yt(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:ye.literal,value:r.getDateTimeFormat(e,f).format(p)})}else if(lt(c)){(f="string"==typeof c.style?n.number[c.style]:gt(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:ye.literal,value:r.getNumberFormat(e,f).format(p)})}else{if(dt(c)){var m=c.children,d=c.value,g=i[d];if(!_e(g))throw new Ee(d,"function",s);var y=g(Le(m,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(t){return{type:"string"==typeof t?ye.literal:ye.object,value:t}})))}if(pt(c)){if(!(b=c.options[p]||c.options.other))throw new ve(c.value,p,Object.keys(c.options),s);a.push.apply(a,Le(b.value,e,r,n,i))}else if(ft(c)){var b;if(!(b=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new be('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',me.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new ve(c.value,p,Object.keys(c.options),s);a.push.apply(a,Le(b.value,e,r,n,i,p-(c.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===ye.literal&&e.type===ye.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
533
- /*
534
- Copyright (c) 2014, Yahoo! Inc. All rights reserved.
535
- Copyrights licensed under the New BSD License.
536
- See the accompanying LICENSE file for terms.
537
- */
538
- // -- MessageFormat --------------------------------------------------------
539
- function we(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?ot(ot(ot({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=ot(ot({},i[e]),o[e]||{}),t}),{})):i),r}),ot({},t)):t}function Ae(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(ye||(ye={}));var Be=/** @class */function(){function t(e,r,n,i){var o,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
540
- // Hot path for straight simple msg translations
541
- if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===ye.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Le(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
542
- // Defined first because it's used to build the format pattern.
543
- this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
544
- // Parse string messages into an AST.
545
- this.ast=t.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
546
- // Creates a new object with the specified `formats` merged with the default
547
- // formats.
548
- this.formats=we(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ae((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,st([void 0],e,!1)))}),{cache:Ae(o.number),strategy:ge.variadic}),getDateTimeFormat:ae((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,st([void 0],e,!1)))}),{cache:Ae(o.dateTime),strategy:ge.variadic}),getPluralRules:ae((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,st([void 0],e,!1)))}),{cache:Ae(o.pluralRules),strategy:ge.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=se,
549
- // Default format options used as the prototype of the `formats` provided to the
550
- // constructor. These are used when constructing the internal Intl.NumberFormat
551
- // and Intl.DateTimeFormat instances.
552
- t.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"}}},t}(),Se=Be;
553
- /*
554
- Copyright (c) 2014, Yahoo! Inc. All rights reserved.
555
- Copyrights licensed under the New BSD License.
556
- See the accompanying LICENSE file for terms.
557
- */const He={},Pe=(t,e,r)=>r?(e in He||(He[e]={}),t in He[e]||(He[e][t]=r),r):r,Oe=(t,e)=>{if(null==e)return;if(e in He&&t in He[e])return He[e][t];const r=Ke(e);for(let n=0;n<r.length;n++){const i=Ne(r[n],t);if(i)return Pe(t,e,i)}};let Ie;const xe=j({});function Ce(t){return t in Ie}function Ne(t,e){if(!Ce(t))return null;const r=function(t){return Ie[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Re(t,...e){delete He[t],xe.update((r=>(r[t]=Q.all([r[t]||{},...e]),r)))}V([xe],(([t])=>Object.keys(t))),xe.subscribe((t=>Ie=t));const Me={};function De(t){return Me[t]}function Ue(t){return null!=t&&Ke(t).some((t=>{var e;return null===(e=De(t))||void 0===e?void 0:e.size}))}const $e={};function ke(t){if(!Ue(t))return t in $e?$e[t]:Promise.resolve();const e=function(t){return Ke(t).map((t=>{const e=De(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return $e[t]=Promise.all(e.map((([t,e])=>function(t,e){const r=Promise.all(e.map((e=>(function(t,e){Me[t].delete(e),0===Me[t].size&&delete Me[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Re(t,...e)))}(t,e)))).then((()=>{if(Ue(t))return ke(t);delete $e[t]})),$e[t]}
558
- /*! *****************************************************************************
559
- Copyright (c) Microsoft Corporation.
560
-
561
- Permission to use, copy, modify, and/or distribute this software for any
562
- purpose with or without fee is hereby granted.
563
-
564
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
565
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
566
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
567
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
568
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
569
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
570
- PERFORMANCE OF THIS SOFTWARE.
571
- ***************************************************************************** */function Ge(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}const Fe={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function je(){return Fe}const Ve=j(!1);let We;const Xe=j(null);function ze(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Ke(t,e=je().fallbackLocale){const r=ze(t);return e?[...new Set([...r,...ze(e)])]:r}function Ye(){return null!=We?We:void 0}Xe.subscribe((t=>{We=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ze=Object.assign(Object.assign({},Xe),{set:t=>{if(t&&function(t){if(null==t)return;const e=Ke(t);for(let t=0;t<e.length;t++){const r=e[t];if(Ce(r))return r}}(t)&&Ue(t)){const{loadingDelay:e}=je();let r;return"undefined"!=typeof window&&null!=Ye()&&e?r=window.setTimeout((()=>Ve.set(!0)),e):Ve.set(!0),ke(t).then((()=>{Xe.set(t)})).finally((()=>{clearTimeout(r),Ve.set(!1)}))}return Xe.set(t)}}),qe=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Je=(t,e)=>{const{formats:r}=je();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Qe=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Je("number",r)),new Intl.NumberFormat(e,n)})),tr=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Je("date",r):0===Object.keys(n).length&&(n=Je("date","short")),new Intl.DateTimeFormat(e,n)})),er=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Je("time",r):0===Object.keys(n).length&&(n=Je("time","short")),new Intl.DateTimeFormat(e,n)})),rr=qe(((t,e=Ye())=>new Se(t,e,je().formats,{ignoreTag:je().ignoreTag}))),nr=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:u=Ye(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Oe(t,u);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(n=(r=je()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:u,id:t,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:t;if(!a)return c;let h=c;try{h=rr(c,u).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},ir=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return er(Object.assign({locale:e},r))})(e).format(t),or=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return tr(Object.assign({locale:e},r))})(e).format(t),sr=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return Qe(Object.assign({locale:e},r))})(e).format(t),ar=(t,e=Ye())=>Oe(t,e),ur=V([Ze,xe],(()=>nr));V([Ze],(()=>ir)),V([Ze],(()=>or)),V([Ze],(()=>sr)),V([Ze,xe],(()=>ar));const lr={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"month",Weekly:"week",Daily:"day",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager 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:"Succesful"}},fr:{gamingLimits:{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:{gamingLimits:{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:{gamingLimits:{loadingText:"Cargando por favor espere..."}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}},de:{gamingLimits:{loadingText:"Laden, bitte warten..."}}};var cr="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==cr&&cr,hr="URLSearchParams"in cr,pr="Symbol"in cr&&"iterator"in Symbol,fr="FileReader"in cr&&"Blob"in cr&&function(){try{return new Blob,!0}catch(t){return!1}}(),mr="FormData"in cr,dr="ArrayBuffer"in cr;if(dr)var gr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],yr=ArrayBuffer.isView||function(t){return t&&gr.indexOf(Object.prototype.toString.call(t))>-1};function br(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function vr(t){return"string"!=typeof t&&(t=String(t)),t}
572
- // Build a destructive iterator for the value list
573
- function Er(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return pr&&(e[Symbol.iterator]=function(){return e}),e}function Tr(t){this.map={},t instanceof Tr?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function _r(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Lr(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function wr(t){var e=new FileReader,r=Lr(e);return e.readAsArrayBuffer(t),r}function Ar(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Br(){return this.bodyUsed=!1,this._initBody=function(t){var e;
574
- /*
575
- fetch-mock wraps the Response object in an ES6 Proxy to
576
- provide useful test harness features such as flush. However, on
577
- ES5 browsers without fetch or Proxy support pollyfills must be used;
578
- the proxy-pollyfill is unable to proxy an attribute unless it exists
579
- on the object before the Proxy is created. This change ensures
580
- Response.bodyUsed exists on the instance, while maintaining the
581
- semantic of setting Request.bodyUsed in the constructor before
582
- _initBody is called.
583
- */
584
- this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:fr&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:mr&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:hr&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():dr&&fr&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=Ar(t.buffer),
585
- // IE 10-11 can't handle a DataView body.
586
- this._bodyInit=new Blob([this._bodyArrayBuffer])):dr&&(ArrayBuffer.prototype.isPrototypeOf(t)||yr(t))?this._bodyArrayBuffer=Ar(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):hr&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fr&&(this.blob=function(){var t=_r(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=_r(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(wr)}),this.text=function(){var t,e,r,n=_r(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=Lr(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},mr&&(this.formData=function(){return this.text().then(Pr)}),this.json=function(){return this.text().then(JSON.parse)},this}
587
- // HTTP methods whose capitalization should be normalized
588
- Tr.prototype.append=function(t,e){t=br(t),e=vr(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},Tr.prototype.delete=function(t){delete this.map[br(t)]},Tr.prototype.get=function(t){return t=br(t),this.has(t)?this.map[t]:null},Tr.prototype.has=function(t){return this.map.hasOwnProperty(br(t))},Tr.prototype.set=function(t,e){this.map[br(t)]=vr(e)},Tr.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Tr.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),Er(t)},Tr.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),Er(t)},Tr.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),Er(t)},pr&&(Tr.prototype[Symbol.iterator]=Tr.prototype.entries);var Sr=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Hr(t,e){if(!(this instanceof Hr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(e=e||{}).body;if(t instanceof Hr){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Tr(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new Tr(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),Sr.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
589
- // Search for a '_' parameter in the query string
590
- var o=/([?&])_=[^&]*/;if(o.test(this.url))
591
- // If it already exists then set the value with the current time
592
- this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Pr(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function Or(t,e){if(!(this instanceof Or))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new Tr(e.headers),this.url=e.url||"",this._initBody(t)}Hr.prototype.clone=function(){return new Hr(this,{body:this._bodyInit})},Br.call(Hr.prototype),Br.call(Or.prototype),Or.prototype.clone=function(){return new Or(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Tr(this.headers),url:this.url})},Or.error=function(){var t=new Or(null,{status:0,statusText:""});return t.type="error",t};var Ir=[301,302,303,307,308];Or.redirect=function(t,e){if(-1===Ir.indexOf(e))throw new RangeError("Invalid status code");return new Or(null,{status:e,headers:{location:t}})};var xr=cr.DOMException;try{new xr}catch(t){(xr=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),xr.prototype.constructor=xr}function Cr(t,e){return new Promise((function(r,n){var i=new Hr(t,e);if(i.signal&&i.signal.aborted)return n(new xr("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var t,e,n={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new Tr,
593
- // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
594
- // https://github.com/github/fetch/issues/748
595
- // https://github.com/zloirock/core-js/issues/751
596
- t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){r(new Or(i,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new xr("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&cr.location.href?cr.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(fr?o.responseType="blob":dr&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof Tr?i.headers.forEach((function(t,e){o.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){o.setRequestHeader(t,vr(e.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
597
- // DONE (success or failure)
598
- 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Cr.polyfill=!0,cr.fetch||(cr.fetch=Cr,cr.Headers=Tr,cr.Request=Hr,cr.Response=Or),
599
- // the whatwg-fetch polyfill installs the fetch() function
600
- // on the global object (window or self)
601
- // Return that as the export for use in Webpack, Browserify etc.
602
- self.fetch.bind(self);
603
- /******************************************************************************
604
- Copyright (c) Microsoft Corporation.
605
-
606
- Permission to use, copy, modify, and/or distribute this software for any
607
- purpose with or without fee is hereby granted.
608
-
609
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
610
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
611
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
612
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
613
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
614
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
615
- PERFORMANCE OF THIS SOFTWARE.
616
- ***************************************************************************** */
617
- /* global Reflect, Promise */
618
- var Nr=function(t,e){return Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Nr(t,e)};function Rr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Nr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Mr(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ur(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function $r(t){return"function"==typeof t}function kr(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Gr=kr((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Fr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var jr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Mr(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if($r(u))try{u()}catch(t){i=t instanceof Gr?t.errors:[t]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var c=Mr(l),h=c.next();!h.done;h=c.next()){var p=h.value;try{Xr(p)}catch(t){i=null!=i?i:[],t instanceof Gr?i=Ur(Ur([],Dr(i)),Dr(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new Gr(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Xr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Fr(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&Fr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Vr=jr.EMPTY;function Wr(t){return t instanceof jr||t&&"closed"in t&&$r(t.remove)&&$r(t.add)&&$r(t.unsubscribe)}function Xr(t){$r(t)?t():t.unsubscribe()}var zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Kr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ur([t,e],Dr(r))):setTimeout.apply(void 0,Ur([t,e],Dr(r)))},clearTimeout:function(t){var e=Kr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Yr(){}var Zr=null;function qr(t){if(zr.useDeprecatedSynchronousErrorHandling){var e=!Zr;if(e&&(Zr={errorThrown:!1,error:null}),t(),e){var r=Zr,n=r.errorThrown,i=r.error;if(Zr=null,n)throw i}}else t()}var Jr=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Wr(e)&&e.add(r)):r.destination=on,r}return Rr(e,t),e.create=function(t,e,r){return new rn(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(jr),Qr=Function.prototype.bind;function tn(t,e){return Qr.call(t,e)}var en=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){nn(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){nn(t)}else nn(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){nn(t)}},t}(),rn=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;$r(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&zr.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&tn(e.next,o),error:e.error&&tn(e.error,o),complete:e.complete&&tn(e.complete,o)}):i=e;return s.destination=new en(i),s}return Rr(e,t),e}(Jr);function nn(t){var e;e=t,Kr.setTimeout((function(){throw e}))}var on={closed:!0,next:Yr,error:function(t){throw t},complete:Yr},sn="function"==typeof Symbol&&Symbol.observable||"@@observable";function an(t){return t}function un(t){return 0===t.length?an:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var ln=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof Jr||function(t){return t&&$r(t.next)&&$r(t.error)&&$r(t.complete)}(n)&&Wr(n)?t:new rn(t,e,r);return qr((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=cn(e))((function(e,n){var i=new rn({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[sn]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return un(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=cn(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function cn(t){var e;return null!==(e=null!=t?t:zr.Promise)&&void 0!==e?e:Promise}var hn=kr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),pn=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Rr(e,t),e.prototype.lift=function(t){var e=new fn(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new hn},e.prototype.next=function(t){var e=this;qr((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Mr(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;qr((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;qr((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?Vr:(this.currentObservers=null,o.push(t),new jr((function(){e.currentObservers=null,Fr(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new ln;return t.source=this,t},e.create=function(t,e){return new fn(t,e)},e}(ln),fn=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return Rr(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:Vr},e}(pn),mn={now:function(){return(mn.delegate||Date).now()},delegate:void 0},dn=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=mn);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return Rr(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,u=1;u<n.length&&n[u]<=s;u+=2)a=u;a&&n.splice(0,a+1)}},e}(pn);let gn=[],yn={};window.emWidgets={topic:(t,e=0)=>{if(-1==gn.indexOf(t)){let r=new dn(e);yn[t]=r,gn.push(t)}return yn[t]}};
619
- /* src/PlayerAccountGamingLimitsPage_2Gmcore.svelte generated by Svelte v3.48.0 */
620
- function bn(t,e,r){const n=t.slice();return n[46]=e[r],n}function vn(t,e,r){const n=t.slice();return n[49]=e[r],n}function En(t,e,r){const n=t.slice();return n[49]=e[r],n}function Tn(t,e,r){const n=t.slice();return n[54]=e[r],n}
621
- // (235:2) {#if popupVisible}
622
- function _n(t){let e,r,n;function i(t,e){/*popupReady*/
623
- return t[10]?Ln:wn}let o=i(t),s=o(t);return{c(){e=h("div"),r=h("div"),s.c(),g(r,"class",n="PopupContainer "+(/*isDesktop*/t[13]?"Desktop":"")),g(e,"class","PopupOverlay")},m(t,n){u(t,e,n),a(e,r),s.m(r,null)},p(t,e){o===(o=i(t))&&s?s.p(t,e):(s.d(1),s=o(t),s&&(s.c(),s.m(r,null)))},d(t){t&&l(e),s.d()}}}
624
- // (240:6) {:else}
625
- function Ln(t){let e,r,i,o,s,c,y,v,T,_,L,w,A,B,S,H,P,O,I,x,C,N,R,M,D=/*$_*/t[12]("gamingLimits.popupTitle")+"",U=/*$_*/t[12]("gamingLimits.popupSuccess")+"";return{c(){e=h("div"),r=h("span"),i=f(D),o=m(),s=h("button"),s.textContent="X",c=m(),y=h("div"),v=h("div"),T=p("svg"),_=p("defs"),L=p("style"),w=f(".fil0 {fill:black;fill-rule:nonzero}\n "),A=p("g"),B=p("polygon"),S=m(),H=h("p"),P=f(U),O=m(),I=h("p"),x=f(/*popupContent*/t[11]),C=m(),N=h("button"),N.textContent="OK",g(r,"class","PopupTitle"),g(s,"class","ClosePopup"),g(e,"class","PopupTitleWrapper"),g(L,"type","text/css"),g(B,"class","fil0"),g(B,"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"),E(T,"shape-rendering","geometricPrecision"),E(T,"text-rendering","geometricPrecision"),E(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"),g(v,"class","ResultIconWrapper"),g(I,"class","DescriptionParagraph"),g(y,"class","DescriptionWrapper"),g(N,"class","ConfirmButton")},m(n,l){u(n,e,l),a(e,r),a(r,i),a(e,o),a(e,s),u(n,c,l),u(n,y,l),a(y,v),a(v,T),a(T,_),a(_,L),a(L,w),a(T,A),a(A,B),a(v,S),a(v,H),a(H,P),a(y,O),a(y,I),a(I,x),u(n,C,l),u(n,N,l),R||(M=[d(s,"click",/*closePopup*/t[19]),d(N,"click",/*closePopup*/t[19])],R=!0)},p(t,e){/*$_*/4096&e[0]&&D!==(D=/*$_*/t[12]("gamingLimits.popupTitle")+"")&&b(i,D),/*$_*/4096&e[0]&&U!==(U=/*$_*/t[12]("gamingLimits.popupSuccess")+"")&&b(P,U),/*popupContent*/2048&e[0]&&b(x,/*popupContent*/t[11])},d(t){t&&l(e),t&&l(c),t&&l(y),t&&l(C),t&&l(N),R=!1,n(M)}}}
626
- // (238:6) {#if !popupReady}
627
- function wn(e){let r;return{c(){r=h("div"),g(r,"class","LoadingIndicator")},m(t,e){u(t,r,e)},p:t,d(t){t&&l(r)}}}
628
- // (269:2) {:else}
629
- function An(t){let e,r,i,o,s,p,E,T,_,L,w,A,B,S,H,P,O,I=/*multiplePeriods*/t[6]?`${/*$_*/t[12]("gamingLimits.amount")}`:`${/*$_*/t[12]("gamingLimits.new")} ${/*$_*/t[12](`gamingLimits.${/*selectedPeriod*/t[2]}`)} ${/*$_*/t[12]("gamingLimits.limit")}`,x=/*$_*/t[12]("gamingLimits.setLimit")+"",C=/*availableLimits*/t[14],N=[];for(let e=0;e<C.length;e+=1)N[e]=Nn(En(t,C,e));let R=/*multipleLimits*/t[5]&&Rn(t),M=/*multiplePeriods*/t[6]&&Dn(t);return{c(){e=h("div"),r=h("div"),i=h("div");for(let t=0;t<N.length;t+=1)N[t].c();o=m(),s=h("form"),R&&R.c(),p=m(),M&&M.c(),E=m(),T=h("label"),_=h("span"),L=f(I),w=m(),A=h("input"),B=m(),S=h("button"),H=f(x),g(i,"class","LimitsList "+(/*isDesktop*/t[13]?"Desktop":"")),g(_,"class","LimitInputText"),g(A,"type","number"),g(T,"class","LimitAmountInputWrapper"),g(S,"class","LimitSubmitButton"),g(S,"type","button"),S.disabled=!0,g(s,"class","LimitsInteractionArea "+(/*isDesktop*/t[13]?"Desktop":"")),g(r,"class","LimitsPageContainer"),g(e,"class","player-account-gaming-limits-page-2-gmcore")},m(n,l){u(n,e,l),a(e,r),a(r,i);for(let t=0;t<N.length;t+=1)N[t].m(i,null);a(r,o),a(r,s),R&&R.m(s,null),a(s,p),M&&M.m(s,null),a(s,E),a(s,T),a(T,_),a(_,L),a(T,w),a(T,A),v(A,/*inputAmount*/t[3]),a(s,B),a(s,S),a(S,H),
630
- /*button_binding*/t[32](S),P||(O=[d(A,"input",/*input_input_handler*/t[31]),d(A,"keyup",/*updateInputValue*/t[17]),d(S,"click",/*updateLimits*/t[16]),d(s,"submit",/*updateLimits*/t[16])],P=!0)},p(t,e){if(/*isDesktop, availableLimits, removeLimit, $_*/290816&e[0]){let r;for(C=/*availableLimits*/t[14],r=0;r<C.length;r+=1){const n=En(t,C,r);N[r]?N[r].p(n,e):(N[r]=Nn(n),N[r].c(),N[r].m(i,null))}for(;r<N.length;r+=1)N[r].d(1);N.length=C.length}/*multipleLimits*/t[5]?R?R.p(t,e):(R=Rn(t),R.c(),R.m(s,p)):R&&(R.d(1),R=null),/*multiplePeriods*/t[6]?M?M.p(t,e):(M=Dn(t),M.c(),M.m(s,E)):M&&(M.d(1),M=null),/*multiplePeriods, $_, selectedPeriod*/4164&e[0]&&I!==(I=/*multiplePeriods*/t[6]?`${/*$_*/t[12]("gamingLimits.amount")}`:`${/*$_*/t[12]("gamingLimits.new")} ${/*$_*/t[12](`gamingLimits.${/*selectedPeriod*/t[2]}`)} ${/*$_*/t[12]("gamingLimits.limit")}`)&&b(L,I),/*inputAmount*/8&e[0]&&y(A.value)!==/*inputAmount*/t[3]&&v(A,/*inputAmount*/t[3]),/*$_*/4096&e[0]&&x!==(x=/*$_*/t[12]("gamingLimits.setLimit")+"")&&b(H,x)},d(r){r&&l(e),c(N,r),R&&R.d(),M&&M.d()
631
- /*button_binding*/,t[32](null),P=!1,n(O)}}}
632
- // (267:22)
633
- function Bn(e){let r;return{c(){r=h("p"),r.textContent="500 Server error"},m(t,e){u(t,r,e)},p:t,d(t){t&&l(r)}}}
634
- // (266:22)
635
- function Sn(e){return{c:t,m:t,p:t,d:t}}
636
- // (263:2) {#if isLoading && !popupVisible}
637
- function Hn(e){let r;return{c(){r=h("div"),g(r,"class","LoadingIndicator")},m(t,e){u(t,r,e)},p:t,d(t){t&&l(r)}}}
638
- // (293:12) {:else}
639
- function Pn(t){let e,r,n,i,o=/*$_*/t[12]("gamingLimits.noLimitText")+"";return{c(){e=h("div"),r=h("div"),n=h("div"),i=f(o),g(n,"class","LimitDetailsTextWrapper"),g(r,"class","LimitDetailsWrapper"),g(e,"class","LimitDetails")},m(t,o){u(t,e,o),a(e,r),a(r,n),a(n,i)},p(t,e){/*$_*/4096&e[0]&&o!==(o=/*$_*/t[12]("gamingLimits.noLimitText")+"")&&b(i,o)},d(t){t&&l(e)}}}
640
- // (277:12) {#if limit.currentLimits.length > 0}
641
- function On(t){let e,r=/*limit*/t[49].currentLimits,n=[];for(let e=0;e<r.length;e+=1)n[e]=Cn(Tn(t,r,e));return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=f("")},m(t,r){for(let e=0;e<n.length;e+=1)n[e].m(t,r);u(t,e,r)},p(t,i){if(/*removeLimit, availableLimits, $_*/282624&i[0]){let o;for(r=/*limit*/t[49].currentLimits,o=0;o<r.length;o+=1){const s=Tn(t,r,o);n[o]?n[o].p(s,i):(n[o]=Cn(s),n[o].c(),n[o].m(e.parentNode,e))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(t){c(n,t),t&&l(e)}}}
642
- // (284:54)
643
- function In(t){let e,r,n=`${/*$_*/t[12]("gamingLimits.removedLimitText")} ${/*currentLimit*/t[54].expiryDate}`;return{c(){e=h("div"),r=f(n),g(e,"class","PendingLimit")},m(t,n){u(t,e,n),a(e,r)},p(t,e){/*$_*/4096&e[0]&&n!==(n=`${/*$_*/t[12]("gamingLimits.removedLimitText")} ${/*currentLimit*/t[54].expiryDate}`)&&b(r,n)},d(t){t&&l(e)}}}
644
- // (282:18) {#if currentLimit.isModified && currentLimit.updateAmount!= "-1"}
645
- function xn(t){let e,r,n=`${/*currentLimit*/t[54].updateAmount}${/*currentLimit*/t[54].currency} ${/*$_*/t[12]("gamingLimits.per")} ${/*$_*/t[12](`gamingLimits.${/*currentLimit*/t[54].period}`)} ${/*$_*/t[12]("gamingLimits.updateText")} ${/*currentLimit*/t[54].expiryDate}`;return{c(){e=h("div"),r=f(n),g(e,"class","PendingLimit")},m(t,n){u(t,e,n),a(e,r)},p(t,e){/*$_*/4096&e[0]&&n!==(n=`${/*currentLimit*/t[54].updateAmount}${/*currentLimit*/t[54].currency} ${/*$_*/t[12]("gamingLimits.per")} ${/*$_*/t[12](`gamingLimits.${/*currentLimit*/t[54].period}`)} ${/*$_*/t[12]("gamingLimits.updateText")} ${/*currentLimit*/t[54].expiryDate}`)&&b(r,n)},d(t){t&&l(e)}}}
646
- // (288:16) {#if !currentLimit.isModified}
647
- // (278:14) {#each limit.currentLimits as currentLimit}
648
- function Cn(t){let e,r,n,i,o,s,c,p=`${/*currentLimit*/t[54].amount}${/*currentLimit*/t[54].currency} ${/*$_*/t[12]("gamingLimits.per")} ${/*$_*/t[12](`gamingLimits.${/*currentLimit*/t[54].period}`)}`;let y=function(t,e){/*currentLimit*/
649
- return t[54].isModified&&/*currentLimit*/"-1"!=t[54].updateAmount?xn:/*currentLimit*/t[54].isModified?In:void 0}(t),v=y&&y(t),E=!/*currentLimit*/t[54].isModified&&function(t){let e,r,n,i,o=/*$_*/t[12]("gamingLimits.removeLimit")+"";function s(){/*click_handler*/
650
- return t[28](/*currentLimit*/t[54])}return{c(){e=h("button"),r=f(o),g(e,"class","RemoveLimitButton")},m(t,o){u(t,e,o),a(e,r),n||(i=d(e,"click",s),n=!0)},p(e,n){t=e,/*$_*/4096&n[0]&&o!==(o=/*$_*/t[12]("gamingLimits.removeLimit")+"")&&b(r,o)},d(t){t&&l(e),n=!1,i()}}}(t);return{c(){e=h("div"),r=h("div"),n=h("div"),i=f(p),o=m(),v&&v.c(),s=m(),E&&E.c(),c=m(),g(n,"class","CurrentLimit"),g(r,"class","LimitDetailsTextWrapper"),g(e,"class","LimitDetails")},m(t,l){u(t,e,l),a(e,r),a(r,n),a(n,i),a(r,o),v&&v.m(r,null),a(e,s),E&&E.m(e,null),a(e,c)},p(t,e){/*$_*/4096&e[0]&&p!==(p=`${/*currentLimit*/t[54].amount}${/*currentLimit*/t[54].currency} ${/*$_*/t[12]("gamingLimits.per")} ${/*$_*/t[12](`gamingLimits.${/*currentLimit*/t[54].period}`)}`)&&b(i,p),v&&v.p(t,e),/*currentLimit*/t[54].isModified||E.p(t,e)},d(t){t&&l(e),v&&v.d(),E&&E.d()}}}
651
- // (274:8) {#each availableLimits as limit}
652
- function Nn(t){let e,r,n,i,o,s,c=/*$_*/t[12](`gamingLimits.${/*limit*/t[49].value}`)+"";let p=function(t,e){/*limit*/
653
- return t[49].currentLimits.length>0?On:Pn}(t),d=p(t);return{c(){e=h("div"),r=h("p"),n=f(c),i=m(),d.c(),o=m(),g(r,"class","LimitTitle"),g(e,"class",s="LimitWrapper "+(/*isDesktop*/t[13]?"Desktop":""))},m(t,s){u(t,e,s),a(e,r),a(r,n),a(e,i),d.m(e,null),a(e,o)},p(t,e){/*$_*/4096&e[0]&&c!==(c=/*$_*/t[12](`gamingLimits.${/*limit*/t[49].value}`)+"")&&b(n,c),d.p(t,e)},d(t){t&&l(e),d.d()}}}
654
- // (302:8) {#if multipleLimits}
655
- function Rn(t){let e,r,i,o,s,p,y,v=/*$_*/t[12]("gamingLimits.limitType")+"",E=/*availableLimits*/t[14],_=[];for(let e=0;e<E.length;e+=1)_[e]=Mn(vn(t,E,e));return{c(){e=h("label"),r=h("span"),i=f(v),o=m(),s=h("select");for(let t=0;t<_.length;t+=1)_[t].c();g(r,"class","LimitSelectText"),g(s,"name",""),g(s,"id",""),/*selectedLimit*/void 0===t[1]&&x((()=>/*select_change_handler*/t[29].call(s))),g(e,"class","LimitTypeDropdownWrapper")},m(n,l){u(n,e,l),a(e,r),a(r,i),a(e,o),a(e,s);for(let t=0;t<_.length;t+=1)_[t].m(s,null);T(s,/*selectedLimit*/t[1]),p||(y=[d(s,"change",/*select_change_handler*/t[29]),d(s,"change",/*updateLimitSelection*/t[15])],p=!0)},p(t,e){if(/*$_*/4096&e[0]&&v!==(v=/*$_*/t[12]("gamingLimits.limitType")+"")&&b(i,v),/*availableLimits*/16384&e[0]){let r;for(E=/*availableLimits*/t[14],r=0;r<E.length;r+=1){const n=vn(t,E,r);_[r]?_[r].p(n,e):(_[r]=Mn(n),_[r].c(),_[r].m(s,null))}for(;r<_.length;r+=1)_[r].d(1);_.length=E.length}/*selectedLimit, availableLimits*/16386&e[0]&&T(s,/*selectedLimit*/t[1])},d(t){t&&l(e),c(_,t),p=!1,n(y)}}}
656
- // (305:12) {#each availableLimits as limit}
657
- function Mn(e){let r,n,i,o=/*limit*/e[49].title+"";return{c(){r=h("option"),n=f(o),r.__value=i=/*limit*/e[49].value,r.value=r.__value},m(t,e){u(t,r,e),a(r,n)},p:t,d(t){t&&l(r)}}}
658
- // (311:8) {#if multiplePeriods}
659
- function Dn(t){let e,r,n,i,o,s,p,y=/*$_*/t[12]("gamingLimits.period")+"",v=G[/*selectedLimit*/t[1]].periods,E=[];for(let e=0;e<v.length;e+=1)E[e]=Un(bn(t,v,e));return{c(){e=h("label"),r=h("span"),n=f(y),i=m(),o=h("select");for(let t=0;t<E.length;t+=1)E[t].c();g(r,"class","PeriodSelectText"),g(o,"name",""),g(o,"id",""),/*selectedPeriod*/void 0===t[2]&&x((()=>/*select_change_handler_1*/t[30].call(o))),g(e,"class","LimitPeriodDropdownWrapper")},m(l,c){u(l,e,c),a(e,r),a(r,n),a(e,i),a(e,o);for(let t=0;t<E.length;t+=1)E[t].m(o,null);T(o,/*selectedPeriod*/t[2]),s||(p=d(o,"change",/*select_change_handler_1*/t[30]),s=!0)},p(t,e){if(/*$_*/4096&e[0]&&y!==(y=/*$_*/t[12]("gamingLimits.period")+"")&&b(n,y),/*selectedLimit, $_*/4098&e[0]){let r;for(v=G[/*selectedLimit*/t[1]].periods,r=0;r<v.length;r+=1){const n=bn(t,v,r);E[r]?E[r].p(n,e):(E[r]=Un(n),E[r].c(),E[r].m(o,null))}for(;r<E.length;r+=1)E[r].d(1);E.length=v.length}/*selectedPeriod, selectedLimit*/6&e[0]&&T(o,/*selectedPeriod*/t[2])},d(t){t&&l(e),c(E,t),s=!1,p()}}}
660
- // (314:12) {#each limitsConfig[selectedLimit].periods as period}
661
- function Un(t){let e,r,n,i,o,s=/*$_*/t[12]("gamingLimits.per")+"",c=/*$_*/t[12](`gamingLimits.${/*period*/t[46]}`)+"";return{c(){e=h("option"),r=f(s),n=m(),i=f(c),e.__value=o=/*period*/t[46],e.value=e.__value,e.selected=!0},m(t,o){u(t,e,o),a(e,r),a(e,n),a(e,i)},p(t,n){/*$_*/4096&n[0]&&s!==(s=/*$_*/t[12]("gamingLimits.per")+"")&&b(r,s),/*$_, selectedLimit*/4098&n[0]&&c!==(c=/*$_*/t[12](`gamingLimits.${/*period*/t[46]}`)+"")&&b(i,c),/*selectedLimit, availableLimits*/16386&n[0]&&o!==(o=/*period*/t[46])&&(e.__value=o,e.value=e.__value)},d(t){t&&l(e)}}}function $n(e){let r,n,i=/*popupVisible*/e[9]&&_n(e);function o(t,e){/*isLoading*/
662
- return t[7]&&!/*popupVisible*/t[9]?Hn:/*isLoading*/t[7]?Sn:/*hasErrors*/t[8]?Bn:An}let s=o(e),c=s(e);return{c(){r=h("div"),i&&i.c(),n=m(),c.c(),this.c=t},m(t,o){u(t,r,o),i&&i.m(r,null),a(r,n),c.m(r,null),
663
- /*div_binding*/e[33](r)},p(t,e){/*popupVisible*/t[9]?i?i.p(t,e):(i=_n(t),i.c(),i.m(r,n)):i&&(i.d(1),i=null),s===(s=o(t))&&c?c.p(t,e):(c.d(1),c=s(t),c&&(c.c(),c.m(r,null)))},i:t,o:t,d(t){t&&l(r),i&&i.d(),c.d(),
664
- /*div_binding*/e[33](null)}}}function kn(t,e,r){let n;var i,o;i=ur,o=t=>r(12,n=t),t.$$.on_destroy.push(s(i,o));let a,u,l,c,{lang:h="en"}=e,{currency:p=""}=e,{limits:f=""}=e,{session:m=""}=e,{userid:d=""}=e,{endpoint:g=""}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,E=!(t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(window.navigator.userAgent),T=[],L="",w="",A=!1,B=!1,H=!0,P=!1,O=!1,I=!1,x="";const C={EUR:"€",RON:" lei"};Object.keys(lr).forEach((t=>{!function(t,e){Re(t,e)}(t,lr[t])}));const N=()=>{let t=new URL(`v2/player/${d}/limits`,g),e={method:"GET",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,e).then((t=>{if(t.status>=300)throw r(7,H=!1),r(8,P=!0),new Error("There was an error fetching the limits");return t.json()})).then((t=>{c=t,O&&D(),R(c),r(7,H=!1),r(3,u=null)})).catch((t=>{console.log(t),r(7,H=!1),r(8,P=!0)}))},R=t=>{T.forEach((e=>{var r;e.currentLimits=[],
665
- // this is not n^2, despite the nesting loop. It's max totalLimitType * totalPeriodType, so 4 * 3 = 12 operations tops
666
- null===(r=t[G[e.value].callValue])||void 0===r||r.forEach(((r,n)=>{var i;const o=t[G[e.value].callValue][n];e.currentLimits.push({}),
667
- // format the limit data
668
- e.currentLimits[n].limitType=e.value,e.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),e.currentLimits[n].currency=null!==(i=C[o.currency])&&void 0!==i?i:o.currency,e.currentLimits[n].period=o.period,e.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),e.currentLimits[n].isModified=o.isModified,e.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),e.currentLimits=M(e.currentLimits)}))},M=t=>{const e={Daily:0,Weekly:1,Monthly:2};return t.sort(((t,r)=>e[t.period]-e[r.period])),t},D=()=>{if(c){const t=c[G[L].callValue].filter((t=>t.period===w))[0],e=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.amount);let i=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${L}`).toLowerCase()).replace("{updatedAmount}",e).replace("{currency}",C[t.currency]||t.currency).replace("{selectedPeriod}",n(`gamingLimits.${w}`).toLowerCase());r(11,x=t.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)}r(10,I=!0)},U=t=>{r(9,O=!0),r(7,H=!0);let e=new URL(`v2/player/${d}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit"}[t.limitType]}?periods=${t.period}`,g),n={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,n).then((t=>t.json())).then((t=>{N()})).catch((t=>{console.log(t),r(7,H=!1),r(8,P=!0)}))},$=()=>{var t;t=h,Ze.set(t)};return t.$$set=t=>{"lang"in t&&r(20,h=t.lang),"currency"in t&&r(21,p=t.currency),"limits"in t&&r(22,f=t.limits),"session"in t&&r(23,m=t.session),"userid"in t&&r(24,d=t.userid),"endpoint"in t&&r(25,g=t.endpoint),"clientstyling"in t&&r(26,b=t.clientstyling),"clientstylingurl"in t&&r(27,v=t.clientstylingurl)},t.$$.update=()=>{/*limits*/4194304&t.$$.dirty[0]&&f&&(f.split(" ").forEach((t=>{G[t]?T.push(G[t]):console.error(`Unknown limit: ${t}`)})),
669
- //set default selected limit
670
- r(1,L=T[0].value),r(2,w=G[L].periods[0]),r(5,A=T.length>1),r(6,B=G[L].periods.length>1)),/*lang*/1048576&t.$$.dirty[0]&&h&&$(),/*userid, session, endpoint*/58720256&t.$$.dirty[0]&&d&&m&&g&&N(),/*clientstylingurl*/134217728&t.$$.dirty[0]&&v&&(()=>{let t=new URL(v),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,a&&(setTimeout((()=>{a.appendChild(e)}),1),setTimeout((()=>{}),500))}))})(),/*clientstyling*/67108864&t.$$.dirty[0]&&b&&(()=>{let t=document.createElement("style");t.innerHTML=b,a.appendChild(t)})()},[a,L,w,u,l,A,B,H,P,O,I,x,n,E,T,()=>{r(2,w=G[L].periods[0]),// select the first period by default until the user selects a different period
671
- r(6,B=G[L].periods.length>1)},()=>{if(!(u>0))return;r(9,O=!0),r(7,H=!0);let t=new URL(`v2/player/${d}/limits`,g);const e={};e[G[L].callValue]=[{period:w,amount:u,currency:p}];let n={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t.href,n).then((t=>t.json())).then((t=>{N()})).catch((t=>{console.log(t),r(7,H=!1),r(8,P=!0)}))},()=>{const t=u-Math.floor(u)==0;u>0&&t?l.removeAttribute("disabled"):l.setAttribute("disabled","true")},U,()=>{r(10,I=r(9,O=!1))},h,p,f,m,d,g,b,v,t=>U(t),function(){L=_(this),r(1,L),r(14,T)},function(){w=_(this),r(2,w),r(1,L)},function(){u=y(this.value),r(3,u)},function(t){S[t?"unshift":"push"]((()=>{l=t,r(4,l)}))},function(t){S[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class Gn extends k{constructor(t){super(),this.shadowRoot.innerHTML="<style>: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}select,input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:2px;border:1px solid #999}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(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:63%;padding:0 12px;margin:0 auto}.LimitsList.Desktop{display:flex;flex-wrap:wrap;justify-content:space-between;width:63%;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:#7ac317;color:#fff;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:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:1.3rem;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background:#000;height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:#fff;font-size:1rem;color:#333;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:#fff;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:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@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 #7ac317;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:1.0s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1.0s;animation-iteration-count:infinite;animation-timing-function:linear}</style>",$(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},kn,$n,o,{lang:20,currency:21,limits:22,session:23,userid:24,endpoint:25,clientstyling:26,clientstylingurl:27},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[20]}set lang(t){this.$$set({lang:t}),R()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),R()}get limits(){return this.$$.ctx[22]}set limits(t){this.$$set({limits:t}),R()}get session(){return this.$$.ctx[23]}set session(t){this.$$set({session:t}),R()}get userid(){return this.$$.ctx[24]}set userid(t){this.$$set({userid:t}),R()}get endpoint(){return this.$$.ctx[25]}set endpoint(t){this.$$set({endpoint:t}),R()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(t){this.$$set({clientstyling:t}),R()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),R()}}return!customElements.get("player-account-gaming-limits-page-2-gmcore")&&customElements.define("player-account-gaming-limits-page-2-gmcore",Gn),Gn}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function a(t,e){t.appendChild(e)}function u(t,e,r){t.insertBefore(e,r||null)}function l(t){t.parentNode.removeChild(t)}function c(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function h(t){return document.createElement(t)}function p(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function f(t){return document.createTextNode(t)}function m(){return f(" ")}function d(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function g(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function y(t){return""===t?null:+t}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function v(t,e){t.value=null==e?"":e}function E(t,e,r,n){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function T(t,e){for(let r=0;r<t.options.length;r+=1){const n=t.options[r];if(n.__value===e)return void(n.selected=!0)}t.selectedIndex=-1}function _(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}function L(t){const e={};for(const r of t)e[r.name]=r.value;return e}let w;function A(t){w=t}const B=[],S=[],P=[],H=[],O=Promise.resolve();let I=!1;function x(t){P.push(t)}const C=new Set;let N=0;function R(){const t=w;do{for(;N<B.length;){const t=B[N];N++,A(t),M(t.$$)}for(A(null),B.length=0,N=0;S.length;)S.pop()();for(let t=0;t<P.length;t+=1){const e=P[t];C.has(e)||(C.add(e),e())}P.length=0}while(B.length);for(;H.length;)H.pop()();I=!1,C.clear(),A(t)}function M(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(x)}}const D=new Set;function U(t,e){-1===t.$$.dirty[0]&&(B.push(t),I||(I=!0,O.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function $(o,s,a,u,c,h,p,f=[-1]){const m=w;A(o);const d=o.$$={fragment:null,ctx:null,props:h,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),callbacks:r(),dirty:f,skip_bound:!1,root:s.target||m.$$.root};p&&p(d.root);let g=!1;if(d.ctx=a?a(o,s.props||{},((t,e,...r)=>{const n=r.length?r[0]:e;return d.ctx&&c(d.ctx[t],d.ctx[t]=n)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](n),g&&U(o,t)),e})):[],d.update(),g=!0,n(d.before_update),d.fragment=!!u&&u(d.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);d.fragment&&d.fragment.l(t),t.forEach(l)}else d.fragment&&d.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(D.delete(y),y.i(b))),function(t,r,o,s){const{fragment:a,on_mount:u,on_destroy:l,after_update:c}=t.$$;a&&a.m(r,o),s||x((()=>{const r=u.map(e).filter(i);l?l.push(...r):n(r),t.$$.on_mount=[]})),c.forEach(x)}(o,s.target,s.anchor,s.customElement),R()}var y,b;A(m)}let k;"function"==typeof HTMLElement&&(k=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){!function(t,e){const r=t.$$;null!==r.fragment&&(n(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const G={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"]}},F=[];function j(e,r=t){let n;const i=new Set;function s(t){if(o(e,t)&&(e=t,n)){const t=!F.length;for(const t of i)t[1](),F.push(t,e);if(t){for(let t=0;t<F.length;t+=2)F[t][0](F[t+1]);F.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const u=[o,a];return i.add(u),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(u),0===i.size&&(n(),n=null)}}}}function V(e,r,o){const a=!Array.isArray(e),u=a?[e]:e,l=r.length<2;return c=e=>{let o=!1;const c=[];let h=0,p=t;const f=()=>{if(h)return;p();const n=r(a?c[0]:c,e);l?e(n):p=i(n)?n:t},m=u.map(((t,e)=>s(t,(t=>{c[e]=t,h&=~(1<<e),o&&f()}),(()=>{h|=1<<e}))));return o=!0,f(),function(){n(m),p()}},{subscribe:j(o,c).subscribe};var c}var W=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===X}(t)}(t)};var X="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function z(t,e){return!1!==e.clone&&e.isMergeableObject(t)?J((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function K(t,e,r){return t.concat(e).map((function(t){return z(t,r)}))}function Y(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function Z(t,e){try{return e in t}catch(t){return!1}}function q(t,e,r){var n={};return r.isMergeableObject(t)&&Y(t).forEach((function(e){n[e]=z(t[e],r)})),Y(e).forEach((function(i){(function(t,e){return Z(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(Z(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return J;var r=e.customMerge(t);return"function"==typeof r?r:J}(i,r)(t[i],e[i],r):n[i]=z(e[i],r))})),n}function J(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||K,r.isMergeableObject=r.isMergeableObject||W,r.cloneUnlessOtherwiseSpecified=z;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):q(t,e,r):z(e,r)}J.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return J(t,r,e)}),{})};var Q=J,tt=function(t,e){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},tt(t,e)};function et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}tt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var rt,nt,it,ot=function(){return ot=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ot.apply(this,arguments)};function st(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function at(t){return t.type===nt.literal}function ut(t){return t.type===nt.argument}function lt(t){return t.type===nt.number}function ct(t){return t.type===nt.date}function ht(t){return t.type===nt.time}function pt(t){return t.type===nt.select}function ft(t){return t.type===nt.plural}function mt(t){return t.type===nt.pound}function dt(t){return t.type===nt.tag}function gt(t){return!(!t||"object"!=typeof t||t.type!==it.number)}function yt(t){return!(!t||"object"!=typeof t||t.type!==it.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(rt||(rt={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(nt||(nt={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(it||(it={}));var bt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vt=/(?:[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 Et(t){var e={};return t.replace(vt,(function(t){var r=t.length;switch(t[0]){case"G":e.era=4===r?"long":5===r?"narrow":"short";break;case"y":e.year=2===r?"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":e.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":e.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":e.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][r-1];break;case"s":e.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":e.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""})),e}var Tt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var _t=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lt=/^(@+)?(\+|#+)?[rs]?$/g,wt=/(\*)(0+)|(#+)(0+)|(0+)/g,At=/^(0+)$/;function Bt(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Lt,(function(t,r,n){return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function St(t){switch(t){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 Pt(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!At.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Ht(t){var e=St(t);return e||{}}function Ot(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=ot(ot(ot({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return ot(ot({},t),Ht(e))}),{}));continue;case"engineering":e=ot(ot(ot({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return ot(ot({},t),Ht(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(wt,(function(t,r,n,i,o,s){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(At.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(_t.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(_t,(function(t,r,n,i,o,s){return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?e=ot(ot({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=ot(ot({},e),Bt(o)))}else if(Lt.test(i.stem))e=ot(ot({},e),Bt(i.stem));else{var s=St(i.stem);s&&(e=ot(ot({},e),s));var a=Pt(i.stem);a&&(e=ot(ot({},e),a))}}return e}var It,xt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Ct(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(xt[r||""]||xt[n||""]||xt["".concat(n,"-001")]||xt["001"])[0]}var Nt=new RegExp("^".concat(bt.source,"*")),Rt=new RegExp("".concat(bt.source,"*$"));function Mt(t,e){return{start:t,end:e}}var Dt=!!String.prototype.startsWith,Ut=!!String.fromCodePoint,$t=!!Object.fromEntries,kt=!!String.prototype.codePointAt,Gt=!!String.prototype.trimStart,Ft=!!String.prototype.trimEnd,jt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Vt=!0;try{Vt="a"===(null===(It=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===It?void 0:It[0])}catch(t){Vt=!1}var Wt,Xt=Dt?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},zt=Ut?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Kt=$t?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e},Yt=kt?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Zt=Gt?function(t){return t.trimStart()}:function(t){return t.replace(Nt,"")},qt=Ft?function(t){return t.trimEnd()}:function(t){return t.replace(Rt,"")};function Jt(t,e){return new RegExp(t,e)}if(Vt){var Qt=Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wt=function(t,e){var r;return Qt.lastIndex=e,null!==(r=Qt.exec(t)[1])&&void 0!==r?r:""}}else Wt=function(t,e){for(var r=[];;){var n=Yt(t,e);if(void 0===n||ne(n)||ie(n))break;r.push(n),e+=n>=65536?2:1}return zt.apply(void 0,r)};var te=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125===i&&t>0)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(rt.UNMATCHED_CLOSING_TAG,Mt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ee(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:nt.pound,location:Mt(s,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:nt.literal,value:"<".concat(n,"/>"),location:Mt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ee(this.char()))return this.error(rt.INVALID_TAG,Mt(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(rt.UNMATCHED_CLOSING_TAG,Mt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:nt.tag,value:n,children:o,location:Mt(r,this.clonePosition())},err:null}:this.error(rt.INVALID_TAG,Mt(s,this.clonePosition())))}return this.error(rt.UNCLOSED_TAG,Mt(r,this.clonePosition()))}return this.error(rt.INVALID_TAG,Mt(r,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&re(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{var o=this.tryParseUnquoted(t,e);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Mt(r,this.clonePosition());return{val:{type:nt.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ee(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return zt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),zt(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(rt.EMPTY_ARGUMENT,Mt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(rt.MALFORMED_ARGUMENT,Mt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:nt.argument,value:n,location:Mt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(rt.MALFORMED_ARGUMENT,Mt(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Wt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Mt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(rt.EXPECT_ARGUMENT_TYPE,Mt(o,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(f=qt(y.val)).length)return this.error(rt.EXPECT_ARGUMENT_STYLE,Mt(this.clonePosition(),this.clonePosition()));u={style:f,styleLocation:Mt(l,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var c=Mt(n,this.clonePosition());if(u&&Xt(null==u?void 0:u.style,"::",0)){var h=Zt(u.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?y:{val:{type:nt.number,value:r,location:c,style:y.val},err:null};if(0===h.length)return this.error(rt.EXPECT_DATE_TIME_SKELETON,c);var p=h;this.locale&&(p=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),u=Ct(e);for("H"!=u&&"k"!=u||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=u+r}else r+="J"===i?"H":i}return r}(h,this.locale));var f={type:it.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Et(p):{}};return{val:{type:"date"===s?nt.date:nt.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===s?nt.number:"date"===s?nt.date:nt.time,value:r,location:c,style:null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(rt.EXPECT_SELECT_ARGUMENT_OPTIONS,Mt(m,ot({},m)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(rt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Mt(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(rt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,rt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=y.val}var b,v=this.tryParsePluralOrSelectOptions(t,s,e,d);if(v.err)return v;if((b=this.tryParseArgumentClose(n)).err)return b;var E=Mt(n,this.clonePosition());return"select"===s?{val:{type:nt.select,value:r,options:Kt(v.val),location:E},err:null}:{val:{type:nt.plural,value:r,options:Kt(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(rt.INVALID_ARGUMENT_TYPE,Mt(o,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(rt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Mt(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=t.split(Tt).filter((function(t){return t.length>0})),r=[],n=0,i=e;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),u=0,l=a;u<l.length;u++)if(0===l[u].length)throw new Error("Invalid number skeleton");r.push({stem:s,options:a})}return r}(t)}catch(t){return this.error(rt.INVALID_NUMBER_SKELETON,e)}return{val:{type:it.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ot(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var i,o=!1,s=[],a=new Set,u=n.value,l=n.location;;){if(0===u.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(rt.EXPECT_PLURAL_ARGUMENT_SELECTOR,rt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=Mt(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}if(a.has(u))return this.error("select"===e?rt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:rt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?rt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:rt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Mt(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,e,r);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([u,{value:f.val,location:Mt(p,this.clonePosition())}]),a.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===e?rt.EXPECT_SELECT_ARGUMENT_SELECTOR:rt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Mt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(rt.MISSING_OTHER_CLAUSE,Mt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var a=Mt(n,this.clonePosition());return i?jt(o*=r)?{val:o,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Yt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Xt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.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 e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function ee(t){return t>=97&&t<=122||t>=65&&t<=90}function re(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ne(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ie(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function oe(t){t.forEach((function(t){if(delete t.location,pt(t)||ft(t))for(var e in t.options)delete t.options[e].location,oe(t.options[e].value);else lt(t)&&gt(t.style)||(ct(t)||ht(t))&&yt(t.style)?delete t.style.location:dt(t)&&oe(t.children)}))}function se(t,e){void 0===e&&(e={}),e=ot({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new te(t,e).parse();if(r.err){var n=SyntaxError(rt[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||oe(r.val),r.val}function ae(t,e){var r=e&&e.cache?e.cache:de,n=e&&e.serializer?e.serializer:pe;return(e&&e.strategy?e.strategy:he)(t,{cache:r,serializer:n})}function ue(t,e,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=e.get(o);return void 0===s&&(s=t.call(this,n),e.set(o,s)),s}function le(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return void 0===o&&(o=t.apply(this,n),e.set(i,o)),o}function ce(t,e,r,n,i){return r.bind(e,t,n,i)}function he(t,e){return ce(t,this,1===t.length?ue:le,e.cache.create(),e.serializer)}var pe=function(){return JSON.stringify(arguments)};function fe(){this.cache=Object.create(null)}fe.prototype.get=function(t){return this.cache[t]},fe.prototype.set=function(t,e){this.cache[t]=e};var me,de={create:function(){return new fe}},ge={variadic:function(t,e){return ce(t,this,le,e.cache.create(),e.serializer)},monadic:function(t,e){return ce(t,this,ue,e.cache.create(),e.serializer)}};!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(me||(me={}));var ye,be=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return et(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),ve=function(t){function e(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),me.INVALID_VALUE,i)||this}return et(e,t),e}(be),Ee=function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),me.INVALID_VALUE,n)||this}return et(e,t),e}(be),Te=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),me.MISSING_VALUE,r)||this}return et(e,t),e}(be);function _e(t){return"function"==typeof t}function Le(t,e,r,n,i,o,s){if(1===t.length&&at(t[0]))return[{type:ye.literal,value:t[0].value}];for(var a=[],u=0,l=t;u<l.length;u++){var c=l[u];if(at(c))a.push({type:ye.literal,value:c.value});else if(mt(c))"number"==typeof o&&a.push({type:ye.literal,value:r.getNumberFormat(e).format(o)});else{var h=c.value;if(!i||!(h in i))throw new Te(h,s);var p=i[h];if(ut(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?ye.literal:ye.object,value:p});else if(ct(c)){var f="string"==typeof c.style?n.date[c.style]:yt(c.style)?c.style.parsedOptions:void 0;a.push({type:ye.literal,value:r.getDateTimeFormat(e,f).format(p)})}else if(ht(c)){f="string"==typeof c.style?n.time[c.style]:yt(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:ye.literal,value:r.getDateTimeFormat(e,f).format(p)})}else if(lt(c)){(f="string"==typeof c.style?n.number[c.style]:gt(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:ye.literal,value:r.getNumberFormat(e,f).format(p)})}else{if(dt(c)){var m=c.children,d=c.value,g=i[d];if(!_e(g))throw new Ee(d,"function",s);var y=g(Le(m,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(t){return{type:"string"==typeof t?ye.literal:ye.object,value:t}})))}if(pt(c)){if(!(b=c.options[p]||c.options.other))throw new ve(c.value,p,Object.keys(c.options),s);a.push.apply(a,Le(b.value,e,r,n,i))}else if(ft(c)){var b;if(!(b=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new be('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',me.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[v]||c.options.other}if(!b)throw new ve(c.value,p,Object.keys(c.options),s);a.push.apply(a,Le(b.value,e,r,n,i,p-(c.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===ye.literal&&e.type===ye.literal?r.value+=e.value:t.push(e),t}),[])}(a)}function we(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?ot(ot(ot({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=ot(ot({},i[e]),o[e]||{}),t}),{})):i),r}),ot({},t)):t}function Ae(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(ye||(ye={}));var Be=function(){function t(e,r,n,i){var o,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===ye.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Le(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=we(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ae((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,st([void 0],e,!1)))}),{cache:Ae(o.number),strategy:ge.variadic}),getDateTimeFormat:ae((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,st([void 0],e,!1)))}),{cache:Ae(o.dateTime),strategy:ge.variadic}),getPluralRules:ae((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,st([void 0],e,!1)))}),{cache:Ae(o.pluralRules),strategy:ge.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=se,t.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"}}},t}(),Se=Be;const Pe={},He=(t,e,r)=>r?(e in Pe||(Pe[e]={}),t in Pe[e]||(Pe[e][t]=r),r):r,Oe=(t,e)=>{if(null==e)return;if(e in Pe&&t in Pe[e])return Pe[e][t];const r=Ke(e);for(let n=0;n<r.length;n++){const i=Ne(r[n],t);if(i)return He(t,e,i)}};let Ie;const xe=j({});function Ce(t){return t in Ie}function Ne(t,e){if(!Ce(t))return null;const r=function(t){return Ie[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Re(t,...e){delete Pe[t],xe.update((r=>(r[t]=Q.all([r[t]||{},...e]),r)))}V([xe],(([t])=>Object.keys(t))),xe.subscribe((t=>Ie=t));const Me={};function De(t){return Me[t]}function Ue(t){return null!=t&&Ke(t).some((t=>{var e;return null===(e=De(t))||void 0===e?void 0:e.size}))}const $e={};function ke(t){if(!Ue(t))return t in $e?$e[t]:Promise.resolve();const e=function(t){return Ke(t).map((t=>{const e=De(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return $e[t]=Promise.all(e.map((([t,e])=>function(t,e){const r=Promise.all(e.map((e=>(function(t,e){Me[t].delete(e),0===Me[t].size&&delete Me[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Re(t,...e)))}(t,e)))).then((()=>{if(Ue(t))return ke(t);delete $e[t]})),$e[t]}function Ge(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}const Fe={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function je(){return Fe}const Ve=j(!1);let We;const Xe=j(null);function ze(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Ke(t,e=je().fallbackLocale){const r=ze(t);return e?[...new Set([...r,...ze(e)])]:r}function Ye(){return null!=We?We:void 0}Xe.subscribe((t=>{We=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ze=Object.assign(Object.assign({},Xe),{set:t=>{if(t&&function(t){if(null==t)return;const e=Ke(t);for(let t=0;t<e.length;t++){const r=e[t];if(Ce(r))return r}}(t)&&Ue(t)){const{loadingDelay:e}=je();let r;return"undefined"!=typeof window&&null!=Ye()&&e?r=window.setTimeout((()=>Ve.set(!0)),e):Ve.set(!0),ke(t).then((()=>{Xe.set(t)})).finally((()=>{clearTimeout(r),Ve.set(!1)}))}return Xe.set(t)}}),qe=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Je=(t,e)=>{const{formats:r}=je();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Qe=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Je("number",r)),new Intl.NumberFormat(e,n)})),tr=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Je("date",r):0===Object.keys(n).length&&(n=Je("date","short")),new Intl.DateTimeFormat(e,n)})),er=qe((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Je("time",r):0===Object.keys(n).length&&(n=Je("time","short")),new Intl.DateTimeFormat(e,n)})),rr=qe(((t,e=Ye())=>new Se(t,e,je().formats,{ignoreTag:je().ignoreTag}))),nr=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:u=Ye(),default:l}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Oe(t,u);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(n=(r=je()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:u,id:t,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:t;if(!a)return c;let h=c;try{h=rr(c,u).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},ir=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return er(Object.assign({locale:e},r))})(e).format(t),or=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return tr(Object.assign({locale:e},r))})(e).format(t),sr=(t,e)=>((t={})=>{var{locale:e=Ye()}=t,r=Ge(t,["locale"]);return Qe(Object.assign({locale:e},r))})(e).format(t),ar=(t,e=Ye())=>Oe(t,e),ur=V([Ze,xe],(()=>nr));V([Ze],(()=>ir)),V([Ze],(()=>or)),V([Ze],(()=>sr)),V([Ze,xe],(()=>ar));const lr={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"month",Weekly:"week",Daily:"day",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager 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:"Succesful",popupError:"There was a problem while setting the limit, please try again."}},fr:{gamingLimits:{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",popupError:"There was a problem while setting the limit, please try again."}},ro:{gamingLimits:{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!",popupError:"There was a problem while setting the limit, please try again."}},es:{gamingLimits:{loadingText:"Cargando por favor espere..."}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}},de:{gamingLimits:{loadingText:"Laden, bitte warten...",popupError:"There was a problem while setting the limit, please try again."}}};var cr="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==cr&&cr,hr="URLSearchParams"in cr,pr="Symbol"in cr&&"iterator"in Symbol,fr="FileReader"in cr&&"Blob"in cr&&function(){try{return new Blob,!0}catch(t){return!1}}(),mr="FormData"in cr,dr="ArrayBuffer"in cr;if(dr)var gr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],yr=ArrayBuffer.isView||function(t){return t&&gr.indexOf(Object.prototype.toString.call(t))>-1};function br(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function vr(t){return"string"!=typeof t&&(t=String(t)),t}function Er(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return pr&&(e[Symbol.iterator]=function(){return e}),e}function Tr(t){this.map={},t instanceof Tr?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function _r(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Lr(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function wr(t){var e=new FileReader,r=Lr(e);return e.readAsArrayBuffer(t),r}function Ar(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Br(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:fr&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:mr&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:hr&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():dr&&fr&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=Ar(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):dr&&(ArrayBuffer.prototype.isPrototypeOf(t)||yr(t))?this._bodyArrayBuffer=Ar(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):hr&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fr&&(this.blob=function(){var t=_r(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=_r(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(wr)}),this.text=function(){var t,e,r,n=_r(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=Lr(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},mr&&(this.formData=function(){return this.text().then(Hr)}),this.json=function(){return this.text().then(JSON.parse)},this}Tr.prototype.append=function(t,e){t=br(t),e=vr(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},Tr.prototype.delete=function(t){delete this.map[br(t)]},Tr.prototype.get=function(t){return t=br(t),this.has(t)?this.map[t]:null},Tr.prototype.has=function(t){return this.map.hasOwnProperty(br(t))},Tr.prototype.set=function(t,e){this.map[br(t)]=vr(e)},Tr.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Tr.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),Er(t)},Tr.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),Er(t)},Tr.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),Er(t)},pr&&(Tr.prototype[Symbol.iterator]=Tr.prototype.entries);var Sr=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Pr(t,e){if(!(this instanceof Pr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(e=e||{}).body;if(t instanceof Pr){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Tr(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new Tr(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),Sr.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Hr(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function Or(t,e){if(!(this instanceof Or))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new Tr(e.headers),this.url=e.url||"",this._initBody(t)}Pr.prototype.clone=function(){return new Pr(this,{body:this._bodyInit})},Br.call(Pr.prototype),Br.call(Or.prototype),Or.prototype.clone=function(){return new Or(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Tr(this.headers),url:this.url})},Or.error=function(){var t=new Or(null,{status:0,statusText:""});return t.type="error",t};var Ir=[301,302,303,307,308];Or.redirect=function(t,e){if(-1===Ir.indexOf(e))throw new RangeError("Invalid status code");return new Or(null,{status:e,headers:{location:t}})};var xr=cr.DOMException;try{new xr}catch(t){(xr=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),xr.prototype.constructor=xr}function Cr(t,e){return new Promise((function(r,n){var i=new Pr(t,e);if(i.signal&&i.signal.aborted)return n(new xr("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var t,e,n={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new Tr,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){r(new Or(i,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new xr("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&cr.location.href?cr.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(fr?o.responseType="blob":dr&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof Tr?i.headers.forEach((function(t,e){o.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){o.setRequestHeader(t,vr(e.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Cr.polyfill=!0,cr.fetch||(cr.fetch=Cr,cr.Headers=Tr,cr.Request=Pr,cr.Response=Or),self.fetch.bind(self);var Nr=function(t,e){return Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Nr(t,e)};function Rr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Nr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Mr(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ur(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function $r(t){return"function"==typeof t}function kr(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Gr=kr((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Fr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var jr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Mr(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if($r(u))try{u()}catch(t){i=t instanceof Gr?t.errors:[t]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var c=Mr(l),h=c.next();!h.done;h=c.next()){var p=h.value;try{Xr(p)}catch(t){i=null!=i?i:[],t instanceof Gr?i=Ur(Ur([],Dr(i)),Dr(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new Gr(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Xr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Fr(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&Fr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Vr=jr.EMPTY;function Wr(t){return t instanceof jr||t&&"closed"in t&&$r(t.remove)&&$r(t.add)&&$r(t.unsubscribe)}function Xr(t){$r(t)?t():t.unsubscribe()}var zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Kr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ur([t,e],Dr(r))):setTimeout.apply(void 0,Ur([t,e],Dr(r)))},clearTimeout:function(t){var e=Kr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Yr(){}var Zr=null;function qr(t){if(zr.useDeprecatedSynchronousErrorHandling){var e=!Zr;if(e&&(Zr={errorThrown:!1,error:null}),t(),e){var r=Zr,n=r.errorThrown,i=r.error;if(Zr=null,n)throw i}}else t()}var Jr=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Wr(e)&&e.add(r)):r.destination=on,r}return Rr(e,t),e.create=function(t,e,r){return new rn(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(jr),Qr=Function.prototype.bind;function tn(t,e){return Qr.call(t,e)}var en=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){nn(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){nn(t)}else nn(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){nn(t)}},t}(),rn=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;$r(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&zr.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&tn(e.next,o),error:e.error&&tn(e.error,o),complete:e.complete&&tn(e.complete,o)}):i=e;return s.destination=new en(i),s}return Rr(e,t),e}(Jr);function nn(t){var e;e=t,Kr.setTimeout((function(){throw e}))}var on={closed:!0,next:Yr,error:function(t){throw t},complete:Yr},sn="function"==typeof Symbol&&Symbol.observable||"@@observable";function an(t){return t}function un(t){return 0===t.length?an:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var ln=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof Jr||function(t){return t&&$r(t.next)&&$r(t.error)&&$r(t.complete)}(n)&&Wr(n)?t:new rn(t,e,r);return qr((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=cn(e))((function(e,n){var i=new rn({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[sn]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return un(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=cn(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function cn(t){var e;return null!==(e=null!=t?t:zr.Promise)&&void 0!==e?e:Promise}var hn=kr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),pn=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Rr(e,t),e.prototype.lift=function(t){var e=new fn(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new hn},e.prototype.next=function(t){var e=this;qr((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Mr(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;qr((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;qr((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?Vr:(this.currentObservers=null,o.push(t),new jr((function(){e.currentObservers=null,Fr(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new ln;return t.source=this,t},e.create=function(t,e){return new fn(t,e)},e}(ln),fn=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return Rr(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:Vr},e}(pn),mn={now:function(){return(mn.delegate||Date).now()},delegate:void 0},dn=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=mn);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return Rr(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,u=1;u<n.length&&n[u]<=s;u+=2)a=u;a&&n.splice(0,a+1)}},e}(pn);let gn=[],yn={};window.emWidgets={topic:(t,e=0)=>{if(-1==gn.indexOf(t)){let r=new dn(e);yn[t]=r,gn.push(t)}return yn[t]}};function bn(t,e,r){const n=t.slice();return n[47]=e[r],n}function vn(t,e,r){const n=t.slice();return n[50]=e[r],n}function En(t,e,r){const n=t.slice();return n[50]=e[r],n}function Tn(t,e,r){const n=t.slice();return n[55]=e[r],n}function _n(t){let e,r,n;function i(t,e){return t[11]?Ln:wn}let o=i(t),s=o(t);return{c(){e=h("div"),r=h("div"),s.c(),g(r,"class",n="PopupContainer "+(t[14]?"Desktop":"")),g(e,"class","PopupOverlay")},m(t,n){u(t,e,n),a(e,r),s.m(r,null)},p(t,e){o===(o=i(t))&&s?s.p(t,e):(s.d(1),s=o(t),s&&(s.c(),s.m(r,null)))},d(t){t&&l(e),s.d()}}}function Ln(t){let e,r,n,i;function o(t,e){return t[9]?Bn:An}let s=o(t),a=s(t);return{c(){a.c(),e=m(),r=h("button"),r.textContent="OK",g(r,"class","ConfirmButton")},m(o,s){a.m(o,s),u(o,e,s),u(o,r,s),n||(i=d(r,"click",t[20]),n=!0)},p(t,r){s===(s=o(t))&&a?a.p(t,r):(a.d(1),a=s(t),a&&(a.c(),a.m(e.parentNode,e)))},d(t){a.d(t),t&&l(e),t&&l(r),n=!1,i()}}}function wn(e){let r;return{c(){r=h("div"),g(r,"class","LoadingIndicator")},m(t,e){u(t,r,e)},p:t,d(t){t&&l(r)}}}function An(t){let e,r,n,i,o,s,c,y,v,T,_,L,w,A,B,S,P,H,O,I,x,C,N=t[13]("gamingLimits.popupTitle")+"",R=t[13]("gamingLimits.popupSuccess")+"";return{c(){e=h("div"),r=h("span"),n=f(N),i=m(),o=h("button"),o.textContent="X",s=m(),c=h("div"),y=h("div"),v=p("svg"),T=p("defs"),_=p("style"),L=f(".fil0 {fill:black;fill-rule:nonzero}\n "),w=p("g"),A=p("polygon"),B=m(),S=h("p"),P=f(R),H=m(),O=h("p"),I=f(t[12]),g(r,"class","PopupTitle"),g(o,"class","ClosePopup"),g(e,"class","PopupTitleWrapper"),g(_,"type","text/css"),g(A,"class","fil0"),g(A,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),g(v,"xmlns","http://www.w3.org/2000/svg"),g(v,"xmlns:xlink","http://www.w3.org/1999/xlink"),g(v,"xml:space","preserve"),g(v,"version","1.1"),E(v,"shape-rendering","geometricPrecision"),E(v,"text-rendering","geometricPrecision"),E(v,"image-rendering","optimizeQuality"),g(v,"viewBox","0 0 90 69"),g(v,"x","0px"),g(v,"y","0px"),g(v,"fill-rule","evenodd"),g(v,"clip-rule","evenodd"),g(y,"class","ResultIconWrapper"),g(O,"class","DescriptionParagraph"),g(c,"class","DescriptionWrapper")},m(l,h){u(l,e,h),a(e,r),a(r,n),a(e,i),a(e,o),u(l,s,h),u(l,c,h),a(c,y),a(y,v),a(v,T),a(T,_),a(_,L),a(v,w),a(w,A),a(y,B),a(y,S),a(S,P),a(c,H),a(c,O),a(O,I),x||(C=d(o,"click",t[20]),x=!0)},p(t,e){8192&e[0]&&N!==(N=t[13]("gamingLimits.popupTitle")+"")&&b(n,N),8192&e[0]&&R!==(R=t[13]("gamingLimits.popupSuccess")+"")&&b(P,R),4096&e[0]&&b(I,t[12])},d(t){t&&l(e),t&&l(s),t&&l(c),x=!1,C()}}}function Bn(t){let e,r,n,i,o,s,c,p,y,v,E,T=t[13]("gamingLimits.popupTitle")+"",_=t[13]("gamingLimits.popupError")+"";return{c(){e=h("div"),r=h("span"),n=f(T),i=m(),o=h("button"),o.textContent="X",s=m(),c=h("div"),p=h("p"),y=f(_),g(r,"class","PopupTitle"),g(o,"class","ClosePopup"),g(e,"class","PopupTitleWrapper"),g(p,"class","DescriptionParagraph"),g(c,"class","DescriptionWrapper")},m(l,h){u(l,e,h),a(e,r),a(r,n),a(e,i),a(e,o),u(l,s,h),u(l,c,h),a(c,p),a(p,y),v||(E=d(o,"click",t[20]),v=!0)},p(t,e){8192&e[0]&&T!==(T=t[13]("gamingLimits.popupTitle")+"")&&b(n,T),8192&e[0]&&_!==(_=t[13]("gamingLimits.popupError")+"")&&b(y,_)},d(t){t&&l(e),t&&l(s),t&&l(c),v=!1,E()}}}function Sn(t){let e,r,i,o,s,p,E,T,_,L,w,A,B,S,P,H,O,I=t[6]?`${t[13]("gamingLimits.amount")}`:`${t[13]("gamingLimits.new")} ${t[13](`gamingLimits.${t[2]}`)} ${t[13]("gamingLimits.limit")}`,x=t[13]("gamingLimits.setLimit")+"",C=t[15],N=[];for(let e=0;e<C.length;e+=1)N[e]=Mn(En(t,C,e));let R=t[5]&&Dn(t),M=t[6]&&$n(t);return{c(){e=h("div"),r=h("div"),i=h("div");for(let t=0;t<N.length;t+=1)N[t].c();o=m(),s=h("form"),R&&R.c(),p=m(),M&&M.c(),E=m(),T=h("label"),_=h("span"),L=f(I),w=m(),A=h("input"),B=m(),S=h("button"),P=f(x),g(i,"class","LimitsList "+(t[14]?"Desktop":"")),g(_,"class","LimitInputText"),g(A,"type","number"),g(A,"pattern","[0-9]*"),g(T,"class","LimitAmountInputWrapper"),g(S,"class","LimitSubmitButton"),g(S,"type","button"),S.disabled=!0,g(s,"class","LimitsInteractionArea "+(t[14]?"Desktop":"")),g(r,"class","LimitsPageContainer"),g(e,"class","player-account-gaming-limits-page-2-gmcore")},m(n,l){u(n,e,l),a(e,r),a(r,i);for(let t=0;t<N.length;t+=1)N[t].m(i,null);a(r,o),a(r,s),R&&R.m(s,null),a(s,p),M&&M.m(s,null),a(s,E),a(s,T),a(T,_),a(_,L),a(T,w),a(T,A),v(A,t[3]),a(s,B),a(s,S),a(S,P),t[33](S),H||(O=[d(A,"input",t[32]),d(A,"keyup",t[18]),d(S,"click",t[17]),d(s,"submit",t[17])],H=!0)},p(t,e){if(581632&e[0]){let r;for(C=t[15],r=0;r<C.length;r+=1){const n=En(t,C,r);N[r]?N[r].p(n,e):(N[r]=Mn(n),N[r].c(),N[r].m(i,null))}for(;r<N.length;r+=1)N[r].d(1);N.length=C.length}t[5]?R?R.p(t,e):(R=Dn(t),R.c(),R.m(s,p)):R&&(R.d(1),R=null),t[6]?M?M.p(t,e):(M=$n(t),M.c(),M.m(s,E)):M&&(M.d(1),M=null),8260&e[0]&&I!==(I=t[6]?`${t[13]("gamingLimits.amount")}`:`${t[13]("gamingLimits.new")} ${t[13](`gamingLimits.${t[2]}`)} ${t[13]("gamingLimits.limit")}`)&&b(L,I),8&e[0]&&y(A.value)!==t[3]&&v(A,t[3]),8192&e[0]&&x!==(x=t[13]("gamingLimits.setLimit")+"")&&b(P,x)},d(r){r&&l(e),c(N,r),R&&R.d(),M&&M.d(),t[33](null),H=!1,n(O)}}}function Pn(e){let r;return{c(){r=h("p"),r.textContent="500 Server error"},m(t,e){u(t,r,e)},p:t,d(t){t&&l(r)}}}function Hn(e){return{c:t,m:t,p:t,d:t}}function On(e){let r;return{c(){r=h("div"),g(r,"class","LoadingIndicator")},m(t,e){u(t,r,e)},p:t,d(t){t&&l(r)}}}function In(t){let e,r,n,i,o=t[13]("gamingLimits.noLimitText")+"";return{c(){e=h("div"),r=h("div"),n=h("div"),i=f(o),g(n,"class","LimitDetailsTextWrapper"),g(r,"class","LimitDetailsWrapper"),g(e,"class","LimitDetails")},m(t,o){u(t,e,o),a(e,r),a(r,n),a(n,i)},p(t,e){8192&e[0]&&o!==(o=t[13]("gamingLimits.noLimitText")+"")&&b(i,o)},d(t){t&&l(e)}}}function xn(t){let e,r=t[50].currentLimits,n=[];for(let e=0;e<r.length;e+=1)n[e]=Rn(Tn(t,r,e));return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=f("")},m(t,r){for(let e=0;e<n.length;e+=1)n[e].m(t,r);u(t,e,r)},p(t,i){if(565248&i[0]){let o;for(r=t[50].currentLimits,o=0;o<r.length;o+=1){const s=Tn(t,r,o);n[o]?n[o].p(s,i):(n[o]=Rn(s),n[o].c(),n[o].m(e.parentNode,e))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(t){c(n,t),t&&l(e)}}}function Cn(t){let e,r,n=`${t[13]("gamingLimits.removedLimitText")} ${t[55].expiryDate}`;return{c(){e=h("div"),r=f(n),g(e,"class","PendingLimit")},m(t,n){u(t,e,n),a(e,r)},p(t,e){8192&e[0]&&n!==(n=`${t[13]("gamingLimits.removedLimitText")} ${t[55].expiryDate}`)&&b(r,n)},d(t){t&&l(e)}}}function Nn(t){let e,r,n=`${t[55].updateAmount}${t[55].currency} ${t[13]("gamingLimits.per")} ${t[13](`gamingLimits.${t[55].period}`)} ${t[13]("gamingLimits.updateText")} ${t[55].expiryDate}`;return{c(){e=h("div"),r=f(n),g(e,"class","PendingLimit")},m(t,n){u(t,e,n),a(e,r)},p(t,e){8192&e[0]&&n!==(n=`${t[55].updateAmount}${t[55].currency} ${t[13]("gamingLimits.per")} ${t[13](`gamingLimits.${t[55].period}`)} ${t[13]("gamingLimits.updateText")} ${t[55].expiryDate}`)&&b(r,n)},d(t){t&&l(e)}}}function Rn(t){let e,r,n,i,o,s,c,p=`${t[55].amount}${t[55].currency} ${t[13]("gamingLimits.per")} ${t[13](`gamingLimits.${t[55].period}`)}`;let y=function(t,e){return t[55].isModified&&"-1"!=t[55].updateAmount?Nn:t[55].isModified?Cn:void 0}(t),v=y&&y(t),E=!t[55].isModified&&function(t){let e,r,n,i,o=t[13]("gamingLimits.removeLimit")+"";function s(){return t[29](t[55])}return{c(){e=h("button"),r=f(o),g(e,"class","RemoveLimitButton")},m(t,o){u(t,e,o),a(e,r),n||(i=d(e,"click",s),n=!0)},p(e,n){t=e,8192&n[0]&&o!==(o=t[13]("gamingLimits.removeLimit")+"")&&b(r,o)},d(t){t&&l(e),n=!1,i()}}}(t);return{c(){e=h("div"),r=h("div"),n=h("div"),i=f(p),o=m(),v&&v.c(),s=m(),E&&E.c(),c=m(),g(n,"class","CurrentLimit"),g(r,"class","LimitDetailsTextWrapper"),g(e,"class","LimitDetails")},m(t,l){u(t,e,l),a(e,r),a(r,n),a(n,i),a(r,o),v&&v.m(r,null),a(e,s),E&&E.m(e,null),a(e,c)},p(t,e){8192&e[0]&&p!==(p=`${t[55].amount}${t[55].currency} ${t[13]("gamingLimits.per")} ${t[13](`gamingLimits.${t[55].period}`)}`)&&b(i,p),v&&v.p(t,e),t[55].isModified||E.p(t,e)},d(t){t&&l(e),v&&v.d(),E&&E.d()}}}function Mn(t){let e,r,n,i,o,s,c=t[13](`gamingLimits.${t[50].value}`)+"";let p=function(t,e){return t[50].currentLimits.length>0?xn:In}(t),d=p(t);return{c(){e=h("div"),r=h("p"),n=f(c),i=m(),d.c(),o=m(),g(r,"class","LimitTitle"),g(e,"class",s="LimitWrapper "+(t[14]?"Desktop":""))},m(t,s){u(t,e,s),a(e,r),a(r,n),a(e,i),d.m(e,null),a(e,o)},p(t,e){8192&e[0]&&c!==(c=t[13](`gamingLimits.${t[50].value}`)+"")&&b(n,c),d.p(t,e)},d(t){t&&l(e),d.d()}}}function Dn(t){let e,r,i,o,s,p,y,v=t[13]("gamingLimits.limitType")+"",E=t[15],_=[];for(let e=0;e<E.length;e+=1)_[e]=Un(vn(t,E,e));return{c(){e=h("label"),r=h("span"),i=f(v),o=m(),s=h("select");for(let t=0;t<_.length;t+=1)_[t].c();g(r,"class","LimitSelectText"),g(s,"name",""),g(s,"id",""),void 0===t[1]&&x((()=>t[30].call(s))),g(e,"class","LimitTypeDropdownWrapper")},m(n,l){u(n,e,l),a(e,r),a(r,i),a(e,o),a(e,s);for(let t=0;t<_.length;t+=1)_[t].m(s,null);T(s,t[1]),p||(y=[d(s,"change",t[30]),d(s,"change",t[16])],p=!0)},p(t,e){if(8192&e[0]&&v!==(v=t[13]("gamingLimits.limitType")+"")&&b(i,v),32768&e[0]){let r;for(E=t[15],r=0;r<E.length;r+=1){const n=vn(t,E,r);_[r]?_[r].p(n,e):(_[r]=Un(n),_[r].c(),_[r].m(s,null))}for(;r<_.length;r+=1)_[r].d(1);_.length=E.length}32770&e[0]&&T(s,t[1])},d(t){t&&l(e),c(_,t),p=!1,n(y)}}}function Un(e){let r,n,i,o=e[50].title+"";return{c(){r=h("option"),n=f(o),r.__value=i=e[50].value,r.value=r.__value},m(t,e){u(t,r,e),a(r,n)},p:t,d(t){t&&l(r)}}}function $n(t){let e,r,n,i,o,s,p,y=t[13]("gamingLimits.period")+"",v=G[t[1]].periods,E=[];for(let e=0;e<v.length;e+=1)E[e]=kn(bn(t,v,e));return{c(){e=h("label"),r=h("span"),n=f(y),i=m(),o=h("select");for(let t=0;t<E.length;t+=1)E[t].c();g(r,"class","PeriodSelectText"),g(o,"name",""),g(o,"id",""),void 0===t[2]&&x((()=>t[31].call(o))),g(e,"class","LimitPeriodDropdownWrapper")},m(l,c){u(l,e,c),a(e,r),a(r,n),a(e,i),a(e,o);for(let t=0;t<E.length;t+=1)E[t].m(o,null);T(o,t[2]),s||(p=d(o,"change",t[31]),s=!0)},p(t,e){if(8192&e[0]&&y!==(y=t[13]("gamingLimits.period")+"")&&b(n,y),8194&e[0]){let r;for(v=G[t[1]].periods,r=0;r<v.length;r+=1){const n=bn(t,v,r);E[r]?E[r].p(n,e):(E[r]=kn(n),E[r].c(),E[r].m(o,null))}for(;r<E.length;r+=1)E[r].d(1);E.length=v.length}6&e[0]&&T(o,t[2])},d(t){t&&l(e),c(E,t),s=!1,p()}}}function kn(t){let e,r,n,i,o,s=t[13]("gamingLimits.per")+"",c=t[13](`gamingLimits.${t[47]}`)+"";return{c(){e=h("option"),r=f(s),n=m(),i=f(c),e.__value=o=t[47],e.value=e.__value,e.selected=!0},m(t,o){u(t,e,o),a(e,r),a(e,n),a(e,i)},p(t,n){8192&n[0]&&s!==(s=t[13]("gamingLimits.per")+"")&&b(r,s),8194&n[0]&&c!==(c=t[13](`gamingLimits.${t[47]}`)+"")&&b(i,c),32770&n[0]&&o!==(o=t[47])&&(e.__value=o,e.value=e.__value)},d(t){t&&l(e)}}}function Gn(e){let r,n,i=e[10]&&_n(e);function o(t,e){return t[7]&&!t[10]?On:t[7]?Hn:t[8]?Pn:Sn}let s=o(e),c=s(e);return{c(){r=h("div"),i&&i.c(),n=m(),c.c(),this.c=t},m(t,o){u(t,r,o),i&&i.m(r,null),a(r,n),c.m(r,null),e[34](r)},p(t,e){t[10]?i?i.p(t,e):(i=_n(t),i.c(),i.m(r,n)):i&&(i.d(1),i=null),s===(s=o(t))&&c?c.p(t,e):(c.d(1),c=s(t),c&&(c.c(),c.m(r,null)))},i:t,o:t,d(t){t&&l(r),i&&i.d(),c.d(),e[34](null)}}}function Fn(t,e,r){let n;var i,o;i=ur,o=t=>r(13,n=t),t.$$.on_destroy.push(s(i,o));let a,u,l,c,{lang:h="en"}=e,{currency:p=""}=e,{limits:f=""}=e,{session:m=""}=e,{userid:d=""}=e,{endpoint:g=""}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,E=!(t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(window.navigator.userAgent),T=[],L="",w="",A=!1,B=!1,P=!0,H=!1,O=!1,I=!1,x=!1,C="";const N={EUR:"€",RON:" lei"};Object.keys(lr).forEach((t=>{!function(t,e){Re(t,e)}(t,lr[t])}));const R=()=>{let t=new URL(`v2/player/${d}/limits`,g),e={method:"GET",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,e).then((t=>{if(t.status>=300)throw r(7,P=!1),r(8,H=!0),new Error("There was an error fetching the limits");return t.json()})).then((t=>{c=t,I&&U(),M(c),r(7,P=!1),r(3,u=null)})).catch((t=>{console.log(t),r(7,P=!1),r(8,H=!0)}))},M=t=>{T.forEach((e=>{var r;e.currentLimits=[],null===(r=t[G[e.value].callValue])||void 0===r||r.forEach(((r,n)=>{var i;const o=t[G[e.value].callValue][n];e.currentLimits.push({}),e.currentLimits[n].limitType=e.value,e.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),e.currentLimits[n].currency=null!==(i=N[o.currency])&&void 0!==i?i:o.currency,e.currentLimits[n].period=o.period,e.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),e.currentLimits[n].isModified=o.isModified,e.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),e.currentLimits=D(e.currentLimits)}))},D=t=>{const e={Daily:0,Weekly:1,Monthly:2};return t.sort(((t,r)=>e[t.period]-e[r.period])),t},U=()=>{if(c){const t=c[G[L].callValue].filter((t=>t.period===w))[0],e=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.amount);let i=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${L}`).toLowerCase()).replace("{updatedAmount}",e).replace("{currency}",N[t.currency]||t.currency).replace("{selectedPeriod}",n(`gamingLimits.${w}`).toLowerCase());r(12,C=t.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:i)}r(11,x=!0)},$=t=>{r(10,I=!0),r(7,P=!0);let e=new URL(`v2/player/${d}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit"}[t.limitType]}?periods=${t.period}`,g),n={method:"DELETE",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,n).then((t=>t.json())).then((t=>{R()})).catch((t=>{console.log(t),r(7,P=!1),r(8,H=!0)}))},k=()=>{var t;t=h,Ze.set(t)};return t.$$set=t=>{"lang"in t&&r(21,h=t.lang),"currency"in t&&r(22,p=t.currency),"limits"in t&&r(23,f=t.limits),"session"in t&&r(24,m=t.session),"userid"in t&&r(25,d=t.userid),"endpoint"in t&&r(26,g=t.endpoint),"clientstyling"in t&&r(27,b=t.clientstyling),"clientstylingurl"in t&&r(28,v=t.clientstylingurl)},t.$$.update=()=>{8388608&t.$$.dirty[0]&&f&&(f.split(" ").forEach((t=>{G[t]?T.push(G[t]):console.error(`Unknown limit: ${t}`)})),r(1,L=T[0].value),r(2,w=G[L].periods[0]),r(5,A=T.length>1),r(6,B=G[L].periods.length>1)),2097152&t.$$.dirty[0]&&h&&k(),117440512&t.$$.dirty[0]&&d&&m&&g&&R(),268435456&t.$$.dirty[0]&&v&&(()=>{let t=new URL(v),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,a&&(setTimeout((()=>{a.appendChild(e)}),1),setTimeout((()=>{}),500))}))})(),134217728&t.$$.dirty[0]&&b&&(()=>{let t=document.createElement("style");t.innerHTML=b,a.appendChild(t)})()},[a,L,w,u,l,A,B,P,H,O,I,x,C,n,E,T,()=>{r(2,w=G[L].periods[0]),r(6,B=G[L].periods.length>1)},()=>{if(!(u>0))return;r(10,I=!0),r(7,P=!0);let t=new URL(`v2/player/${d}/limits`,g);const e={};e[G[L].callValue]=[{period:w,amount:u,currency:p}];let n={method:"PUT",headers:{"X-SessionID":m,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(t.href,n).then((t=>{if(t.status>=300)throw r(7,P=!1),r(11,x=!0),r(9,O=!0),new Error("There was an error while setting the new limit");return t.json()})).then((t=>{R()})).catch((t=>{console.log(t),r(9,O=!0),r(11,x=!0),r(7,P=!1)}))},()=>{const t=999999999999999;u>t&&r(3,u=t);const e=u-Math.floor(u)==0;u>0&&e?l.removeAttribute("disabled"):l.setAttribute("disabled","true")},$,()=>{r(11,x=r(10,I=!1))},h,p,f,m,d,g,b,v,t=>$(t),function(){L=_(this),r(1,L),r(15,T)},function(){w=_(this),r(2,w),r(1,L)},function(){u=y(this.value),r(3,u)},function(t){S[t?"unshift":"push"]((()=>{l=t,r(4,l)}))},function(t){S[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class jn extends k{constructor(t){super(),this.shadowRoot.innerHTML="<style>: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}select,input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:2px;border:1px solid #999}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(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:63%;padding:0 12px;margin:0 auto}.LimitsList.Desktop{display:flex;flex-wrap:wrap;justify-content:space-between;width:63%;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:#7ac317;color:#fff;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:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:1.3rem;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background:#000;height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:#fff;font-size:1rem;color:#333;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:#fff;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:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@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 #7ac317;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:1.0s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1.0s;animation-iteration-count:infinite;animation-timing-function:linear}</style>",$(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Fn,Gn,o,{lang:21,currency:22,limits:23,session:24,userid:25,endpoint:26,clientstyling:27,clientstylingurl:28},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[21]}set lang(t){this.$$set({lang:t}),R()}get currency(){return this.$$.ctx[22]}set currency(t){this.$$set({currency:t}),R()}get limits(){return this.$$.ctx[23]}set limits(t){this.$$set({limits:t}),R()}get session(){return this.$$.ctx[24]}set session(t){this.$$set({session:t}),R()}get userid(){return this.$$.ctx[25]}set userid(t){this.$$set({userid:t}),R()}get endpoint(){return this.$$.ctx[26]}set endpoint(t){this.$$set({endpoint:t}),R()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(t){this.$$set({clientstyling:t}),R()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),R()}}return!customElements.get("player-account-gaming-limits-page-2-gmcore")&&customElements.define("player-account-gaming-limits-page-2-gmcore",jn),jn}));
672
2
  //# sourceMappingURL=player-account-gaming-limits-page-2-gmcore.js.map