@everymatrix/player-account-balance-modal 0.0.283 → 0.0.286
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,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function y(){}function p(e){return e()}function h(){return Object.create(null)}function te(e){e.forEach(p)}function f(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function T(e,...t){if(null==e)return y;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ne(e,t){e.appendChild(t)}function re(e,t,n){e.insertBefore(t,n||null)}function oe(e){e.parentNode.removeChild(e)}function e(e){return document.createElement(e)}function t(e){return document.createTextNode(e)}function ae(){return t(" ")}function ie(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function se(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function le(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let _;function d(e){_=e}const m=[],r=[],o=[],a=[],g=Promise.resolve();let E=!1;function b(e){o.push(e)}let i=!1;const s=new Set;function v(){if(!i){i=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];d(t),function(e){{var t;null!==e.fragment&&(e.update(),te(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(b))}}(t.$$)}for(d(null),m.length=0;r.length;)r.pop()();for(let e=0;e<o.length;e+=1){const n=o[e];s.has(n)||(s.add(n),n())}}while(o.length=0,m.length);for(;a.length;)a.pop()();E=!1,i=!1,s.clear()}}const w=new Set;function l(r,e,t,n,o,a,i=[-1]){var s,l=_;d(r);const c=r.$$={fragment:null,ctx:null,props:a,update:y,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:i,skip_bound:!1};let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u&&(n=e,-1===(e=r).$$.dirty[0]&&(m.push(e),E||(E=!0,g.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],c.update(),u=!0,te(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){const y=(n=e.target,Array.from(n.childNodes));c.fragment&&c.fragment.l(y),y.forEach(oe)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&(w.delete(s),s.i(void 0)),function(t,e,n,r){const{fragment:o,on_mount:a,on_destroy:i,after_update:s}=t.$$;o&&o.m(e,n),r||b(()=>{var e=a.map(p).filter(f);i?i.push(...e):te(e),t.$$.on_mount=[]}),s.forEach(b)}(r,e.target,e.anchor,e.customElement),v()}d(l)}let c;"function"==typeof HTMLElement&&(c=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){te(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(te(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=y}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const u=[];function A(r,o=y){let a;const i=[];function s(e){if(n(r,e)&&(r=e,a)){const e=!u.length;for(let e=0;e<i.length;e+=1){const t=i[e];t[1](),u.push(t,r)}if(e){for(let e=0;e<u.length;e+=2)u[e][0](u[e+1]);u.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=y){const n=[e,t];return i.push(n),1===i.length&&(a=o(s)||y),e(r),()=>{var e=i.indexOf(n);-1!==e&&i.splice(e,1),0===i.length&&(a(),a=null)}}}}function S(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:A(t,t=>{let n=!1;const r=[];let o=0,a=y;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),u?t(e):a=f(e)?e:y)},e=c.map((e,t)=>T(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){te(e),a()}}).subscribe}}var M=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===C));var t},C="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function L(e,t){return!1!==t.clone&&t.isMergeableObject(e)?R(Array.isArray(e)?[]:{},e,t):e}function P(e,t,n){return e.concat(t).map(function(e){return L(e,n)})}function O(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function N(e,t){try{return t in e}catch(e){return!1}}function B(r,o,a){var i={};return a.isMergeableObject(r)&&O(r).forEach(function(e){i[e]=L(r[e],a)}),O(o).forEach(function(t){var e,n;(!N(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(N(r,t)&&a.isMergeableObject(o[t])?i[t]=function(){if(!a.customMerge)return R;var e=a.customMerge(t);return"function"==typeof e?e:R}()(r[t],o[t],a):i[t]=L(o[t],a))}),i}function R(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||P,n.isMergeableObject=n.isMergeableObject||M,n.cloneUnlessOtherwiseSpecified=L;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):B(e,t,n):L(t,n)}R.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return R(e,t,n)},{})};var I=R,x=function(e,t){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function D(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var U,F,k,G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function $(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function j(e){return e.type===F.literal}function V(e){return e.type===F.number}function X(e){return e.type===F.date}function z(e){return e.type===F.time}function H(e){return e.type===F.select}function q(e){return e.type===F.plural}function Y(e){return e.type===F.tag}function K(e){return e&&"object"==typeof e&&e.type===k.number}function Z(e){return e&&"object"==typeof e&&e.type===k.dateTime}(we=U=U||{})[we.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",we[we.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",we[we.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",we[we.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",we[we.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",we[we.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",we[we.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",we[we.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",we[we.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",we[we.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",we[we.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",we[we.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",we[we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",we[we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",we[we.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",we[we.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",we[we.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",we[we.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",we[we.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",we[we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",we[we.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",we[we.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",we[we.INVALID_TAG=23]="INVALID_TAG",we[we.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",we[we.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",we[we.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ae=F=F||{})[Ae.literal=0]="literal",Ae[Ae.argument=1]="argument",Ae[Ae.number=2]="number",Ae[Ae.date=3]="date",Ae[Ae.time=4]="time",Ae[Ae.select=5]="select",Ae[Ae.plural=6]="plural",Ae[Ae.pound=7]="pound",Ae[Ae.tag=8]="tag",(Se=k=k||{})[Se.number=0]="number",Se[Se.dateTime=1]="dateTime";var W=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Q=/(?:[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;var J,ee=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ue=/^(@+)?(\+|#+)?$/g,pe=/(\*)(0+)|(#+)(0+)|(0+)/g,he=/^(0+)$/;function fe(e){var r={};return e.replace(ue,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function de(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function me(e){return de(e)||{}}function ge(e){for(var i={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=G(G(G({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return G(G({},e),me(t))},{}));continue;case"engineering":i=G(G(G({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return G(G({},e),me(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(pe,function(e,t,n,r,o,a){if(t)i.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(he.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(ce.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ce,function(e,t,n,r,o,a){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""}),o.options.length&&(i=G(G({},i),fe(o.options[0])))}else ue.test(o.stem)?i=G(G({},i),fe(o.stem)):((r=de(o.stem))&&(i=G(G({},i),r)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!he.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=G(G({},i),r)))}return i}var ye=new RegExp("^"+W.source+"*"),Ee=new RegExp(W.source+"*$");function be(e,t){return{start:e,end:t}}var ve=!!String.prototype.startsWith,Te=!!String.fromCodePoint,_e=!!Object.fromEntries,we=!!String.prototype.codePointAt,Ae=!!String.prototype.trimStart,Se=!!String.prototype.trimEnd,Me=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},W=!0;try{W="a"===(null===(J=xe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===J?void 0:J[0])}catch(y){W=!1}var Ce,Le,Pe=ve?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Oe=Te?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;a<o;){if(1114111<(n=e[a++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Ne=_e?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],o=o[1];t[a]=o}return t},Be=we?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,o=e.charCodeAt(t);return o<55296||56319<o||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?o:r-56320+(o-55296<<10)+65536}},Re=Ae?function(e){return e.trimStart()}:function(e){return e.replace(ye,"")},Ie=Se?function(e){return e.trimEnd()}:function(e){return e.replace(Ee,"")};function xe(e,t){return new RegExp(e,t)}Le=W?(Ce=xe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ce.lastIndex=t,null!==(e=Ce.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var o=Be(e,t);if(void 0===o||ke(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),t+=65536<=o?2:1}return Oe.apply(void 0,r)};var De=(Ue.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ue.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(U.UNMATCHED_CLOSING_TAG,be(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Fe(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{a=this.clonePosition();this.bump(),r.push({type:F.pound,location:be(a,this.clonePosition())})}}}return{val:r,err:null}},Ue.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:F.literal,value:"<"+r+"/>",location:be(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fe(this.char()))return this.error(U.INVALID_TAG,be(t,this.clonePosition()));o=this.clonePosition();return r!==this.parseTagName()?this.error(U.UNMATCHED_CLOSING_TAG,be(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:F.tag,value:r,children:e,location:be(n,this.clonePosition())},err:null}:this.error(U.INVALID_TAG,be(t,this.clonePosition())))}return this.error(U.UNCLOSED_TAG,be(n,this.clonePosition()))}return this.error(U.INVALID_TAG,be(n,this.clonePosition()))},Ue.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},Ue.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=be(n,this.clonePosition());return{val:{type:F.literal,value:r,location:n},err:null}},Ue.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Fe(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ue.prototype.tryParseQuote=function(e){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"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Oe.apply(void 0,t)},Ue.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Oe(n))},Ue.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,be(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(U.EMPTY_ARGUMENT,be(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(U.MALFORMED_ARGUMENT,be(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,be(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:F.argument,value:r,location:be(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,be(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(U.MALFORMED_ARGUMENT,be(n,this.clonePosition()))}},Ue.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Le(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:be(e,this.clonePosition())}},Ue.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(U.EXPECT_ARGUMENT_TYPE,be(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Ie(h.val)).length)return this.error(U.EXPECT_ARGUMENT_STYLE,be(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:be(c,this.clonePosition())}}if((f=this.tryParseArgumentClose(r)).err)return f;var u=be(r,this.clonePosition());if(l&&Pe(null==l?void 0:l.style,"::",0)){c=Re(l.style.slice(2));if("number"===i)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:F.number,value:n,location:u,style:h.val},err:null};if(0===c.length)return this.error(U.EXPECT_DATE_TIME_SKELETON,u);var p={type:k.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(Q,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"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":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<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""}),o):{}};return{val:{type:"date"===i?F.date:F.time,value:n,location:u,style:p},err:null}}return{val:{type:"number"===i?F.number:"date"===i?F.date:F.time,value:n,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(U.EXPECT_SELECT_ARGUMENT_OPTIONS,be(l,G({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==i&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,be(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(e,i,t,u);if(u.err)return u;if((f=this.tryParseArgumentClose(r)).err)return f;var f=be(r,this.clonePosition());return"select"===i?{val:{type:F.select,value:n,options:Ne(u.val),location:f},err:null}:{val:{type:F.plural,value:n,options:Ne(u.val),offset:l,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null};default:return this.error(U.INVALID_ARGUMENT_TYPE,be(a,s))}},Ue.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,be(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ue.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(U.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,be(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},Ue.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(ee).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(U.INVALID_NUMBER_SKELETON,t)}return{val:{type:k.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ge(n):{}},err:null}},Ue.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,a=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_SELECTOR,U.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=be(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?U.DUPLICATE_SELECT_ARGUMENT_SELECTOR:U.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?U.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:U.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,be(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,n);if(u.err)return u;c=this.tryParseArgumentClose(p);if(c.err)return c;a.push([s,{value:u.val,location:be(p,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===a.length?this.error("select"===t?U.EXPECT_SELECT_ARGUMENT_SELECTOR:U.EXPECT_PLURAL_ARGUMENT_SELECTOR,be(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(U.MISSING_OTHER_CLAUSE,be(this.clonePosition(),this.clonePosition())):{val:a,err:null}},Ue.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}r=be(r,this.clonePosition());return o?Me(a*=n)?{val:a,err:null}:this.error(t,r):this.error(e,r)},Ue.prototype.offset=function(){return this.position.offset},Ue.prototype.isEOF=function(){return this.offset()===this.message.length},Ue.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ue.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Be(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ue.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ue.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},Ue.prototype.bumpIf=function(e){if(Pe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Ue.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Ue.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ue.prototype.bumpSpace=function(){for(;!this.isEOF()&&ke(this.char());)this.bump()},Ue.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Ue);function Ue(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Fe(e){return 97<=e&&e<=122||65<=e&&e<=90}function ke(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ge(e,t){t=G({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new De(e,t).parse();if(n.err){e=SyntaxError(U[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,H(e)||q(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else V(e)&&K(e.style)||(X(e)||z(e))&&Z(e.style)?delete e.style.location:Y(e)&&n(e.children)})}(n.val),n.val}function $e(e,t){var n=t&&t.cache?t.cache:Ye,r=t&&t.serializer?t.serializer:ze;return(t&&t.strategy?t.strategy:function(e,t){return Xe(e,this,1===e.length?je:Ve,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function je(e,t,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(o);return void 0===n&&(n=e.call(this,r),t.set(o,n)),n}function Ve(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),n=t.get(o);return void 0===n&&(n=e.apply(this,r),t.set(o,n)),n}function Xe(e,t,n,r,o){return n.bind(t,e,r,o)}var ze=function(){return JSON.stringify(arguments)};function He(){this.cache=Object.create(null)}He.prototype.has=function(e){return e in this.cache},He.prototype.get=function(e){return this.cache[e]},He.prototype.set=function(e,t){this.cache[e]=t};var qe,Ye={create:function(){return new He}},Ke={variadic:function(e,t){return Xe(e,this,Ve,t.cache.create(),t.serializer)},monadic:function(e,t){return Xe(e,this,je,t.cache.create(),t.serializer)}};(W=qe=qe||{}).MISSING_VALUE="MISSING_VALUE",W.INVALID_VALUE="INVALID_VALUE",W.MISSING_INTL_API="MISSING_INTL_API";var Ze,We,Qe,Je,et,tt=(D(lt,et=Error),lt.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},lt),nt=(D(st,Je=tt),st),rt=(D(it,Qe=tt),it),ot=(D(at,We=tt),at);function at(e,t){return We.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',qe.MISSING_VALUE,t)||this}function it(e,t,n){return Qe.call(this,'Value for "'+e+'" must be of type '+t,qe.INVALID_VALUE,n)||this}function st(e,t,n,r){return Je.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',qe.INVALID_VALUE,r)||this}function lt(e,t,n){e=et.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function ct(e,t,n,r,o,a,i){if(1===e.length&&j(e[0]))return[{type:Ze.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(j(u))s.push({type:Ze.literal,value:u.value});else if(u.type===F.pound)"number"==typeof a&&s.push({type:Ze.literal,value:n.getNumberFormat(t).format(a)});else{var p=u.value;if(!(o&&p in o))throw new ot(p,i);var h=o[p];if(u.type===F.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Ze.literal:Ze.object,value:h});else if(X(u)){var f="string"==typeof u.style?r.date[u.style]:Z(u.style)?u.style.parsedOptions:void 0;s.push({type:Ze.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(z(u))f="string"==typeof u.style?r.time[u.style]:Z(u.style)?u.style.parsedOptions:void 0,s.push({type:Ze.literal,value:n.getDateTimeFormat(t,f).format(h)});else if(V(u))(f="string"==typeof u.style?r.number[u.style]:K(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:Ze.literal,value:n.getNumberFormat(t,f).format(h)});else{if(Y(u)){var d=u.children,m=u.value,p=o[m];if("function"!=typeof p)throw new rt(m,"function",i);d=p(ct(d,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?Ze.literal:Ze.object,value:e}}))}if(H(u)){if(!(g=u.options[h]||u.options.other))throw new nt(u.value,h,Object.keys(u.options),i);s.push.apply(s,ct(g.value,t,n,r,o))}else if(q(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new tt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',qe.MISSING_INTL_API,i);var d=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new nt(u.value,h,Object.keys(u.options),i);s.push.apply(s,ct(g.value,t,n,r,o,h-(u.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===Ze.literal&&t.type===Ze.literal?n.value+=t.value:e.push(t),e},[])}function ut(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(W=Ze=Ze||{})[W.literal=0]="literal",W[W.object=1]="object";var pt=(Object.defineProperty(ht,"defaultLocale",{get:function(){return ht.memoizedDefaultLocale||(ht.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),ht.memoizedDefaultLocale},enumerable:!1,configurable:!0}),ht.memoizedDefaultLocale=null,ht.__parse=Ge,ht.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"}}},ht);function ht(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=ht.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Ze.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return ct(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},"string"==typeof e){if(this.message=e,!ht.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ht.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=ht.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?G(G(G({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=G(G({},n[t]),r[t]||{}),e},{})):n),e},G({},o)):o),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:$e(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,$([void 0],t)))},{cache:ut((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:Ke.variadic}),getDateTimeFormat:$e(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,$([void 0],t)))},{cache:ut(r.dateTime),strategy:Ke.variadic}),getPluralRules:$e(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,$([void 0],t)))},{cache:ut(r.pluralRules),strategy:Ke.variadic})}}const ft={},dt=(t,n)=>{if(null!=n){if(n in ft&&t in ft[n])return ft[n][t];var r,o,a=Ot(n);for(let e=0;e<a.length;e++){var i=(r=a[e],o=t,yt(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return mt[e]||null}(r),o):null);if(i)return r=t,o=n,(i=i)&&(o in ft||(ft[o]={}),r in ft[o]||(ft[o][r]=i),i)}}};let mt;const gt=A({});function yt(e){return e in mt}function Et(t,...n){delete ft[t],gt.update(e=>(e[t]=I.all([e[t]||{},...n]),e))}S([gt],([e])=>Object.keys(e)),gt.subscribe(e=>mt=e);const bt={};function vt(e){return bt[e]}function Tt(e){return Ot(e).some(e=>{return null===(e=vt(e))||void 0===e?void 0:e.size})}const _t={};function wt(e){if(!Tt(e))return e in _t?_t[e]:void 0;const t=Ot(e).map(e=>{var t=vt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return _t[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){bt[e].delete(t),0===bt[e].size&&delete bt[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Et(t,...e))}(e))).then(()=>Tt(e)?wt(e):void delete _t[e]),_t[e]}function At(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}const St={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const Mt=A(!1);let Ct;const Lt=A(null);function Pt(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Ot(e,t=St.fallbackLocale){e=Pt(e);return t?[...new Set([...e,...Pt(t)])]:e}Lt.subscribe(e=>{Ct=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Nt=Lt.set;Lt.set=t=>{if(function(e){if(null!=e){var t=Ot(e);for(let e=0;e<t.length;e++){var n=t[e];if(yt(n))return n}}}(t)&&Tt(t)){var{loadingDelay:n}=St;let e;return"undefined"!=typeof window&&null!=Ct&&n?e=window.setTimeout(()=>Mt.set(!0),n):Mt.set(!0),wt(t).then(()=>{Nt(t)}).finally(()=>{clearTimeout(e),Mt.set(!1)})}return Nt(t)},Lt.update=e=>Nt(e(Ct));const Bt=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Rt=(e,t)=>{var{formats:n}=St;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},It=Bt(e=>{var{locale:t,format:n}=e,e=At(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Rt("number",n)),new Intl.NumberFormat(t,e)}),xt=Bt(e=>{var{locale:t,format:n}=e,e=At(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Rt("date",n):0===Object.keys(e).length&&(e=Rt("date","short")),new Intl.DateTimeFormat(t,e)}),Dt=Bt(e=>{var{locale:t,format:n}=e,e=At(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Rt("time",n):0===Object.keys(e).length&&(e=Rt("time","short")),new Intl.DateTimeFormat(t,e)}),Ut=Bt((e,t=Ct)=>new pt(e,t,St.formats,{ignoreTag:St.ignoreTag})),Ft=S([Lt,gt],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=Ct,default:o}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let a=dt(e,r);if(a){if("string"!=typeof a)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof a}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),a}else St.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Ot(r).join('", "')}".${Tt(Ct)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),a=o||e;if(!n)return a;let i=a;try{i=Ut(a,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return i});S([Lt],()=>(e,t)=>((e={})=>{var{locale:t=Ct}=e,e=At(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),S([Lt],()=>(e,t)=>((e={})=>{var{locale:t=Ct}=e,e=At(e,["locale"]);return xt(Object.assign({locale:t},e))})(t).format(e)),S([Lt],()=>(e,t)=>((e={})=>{var{locale:t=Ct}=e,e=At(e,["locale"]);return It(Object.assign({locale:t},e))})(t).format(e)),S([Lt,gt],()=>(e,t=Ct)=>dt(e,t));const kt={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},de:{balanceModal:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"}},it:{balanceModal:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"}},fr:{balanceModal:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Solde de trésorerie",bonusBalance:"Solde du bonus",depositButton:"Dépôt"}},es:{balanceModal:{balanceTitle:"Tu balance",totalBalance:"Balance total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo de bonificación",depositButton:"Depositar"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu balanço",totalBalance:"Balanço total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}};var Gt,$t,W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},jt=($t=(Gt={path:void 0,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&Gt.path)}}).exports,function(e){var r,N=e.setTimeout,B=e.clearTimeout,R=e.XMLHttpRequest,o=e.XDomainRequest,t=e.ActiveXObject,n=e.EventSource,a=e.document,p=e.Promise,h=e.fetch,i=e.Response,f=e.TextDecoder,s=e.TextEncoder,d=e.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===a||"readyState"in a||null!=a.body||(a.readyState="loading",window.addEventListener("load",function(e){a.readyState="complete"},!1)),null==R&&null!=t&&(R=function(){return new t("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==d&&(r=h,h=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},d=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),l.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,n(o,a)))&&(o=0,a=65533,r+=String.fromCharCode(a)),0===o?(a=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(a,o,n(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?r+=String.fromCharCode(a):(r+=String.fromCharCode(55296+(a-65535-1>>10)),r+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,r},null!=f&&null!=s&&function(){try{return"test"===(new f).decode((new s).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(f=l);var u=function(){};function I(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function c(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function m(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),a=o.shift(),o=o.join(": ");t[c(a)]=o}this._map=t}function x(){}function g(e){this._headers=e}function D(){}function y(){this._listeners=Object.create(null)}function E(e){N(function(){throw e},0)}function b(e){this.type=e,this.target=void 0}function U(e,t){b.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function F(e,t){b.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function k(e,t){b.call(this,e),this.error=t.error}I.prototype.open=function(e,t){this._abort(!0);var o=this,a=this._xhr,i=1,n=0;this._abort=function(e){0!==o._sendTimeout&&(B(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=u,a.onerror=u,a.onabort=u,a.onprogress=u,a.onreadystatechange=u,a.abort(),0!==n&&(B(n),n=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),i=0};function r(){if(1===i){var t=0,n="",r=void 0;if("contentType"in a)t=200,n="OK",r=a.contentType;else try{t=a.status,n=a.statusText,r=a.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}function s(){if(r(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}}function l(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),s(),1===i||2===i||3===i){if(i=4,0!==n&&(B(n),n=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var c=function(){n=N(function(){c()},500),3===a.readyState&&s()};"onload"in a&&(a.onload=function(e){l("load",e)}),"onerror"in a&&(a.onerror=function(e){l("error",e)}),"onabort"in a&&(a.onabort=function(e){l("abort",e)}),"onprogress"in a&&(a.onprogress=s),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||l(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||s():2===a.readyState&&r())}),!("contentType"in a)&&"ontimeout"in R.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(n=N(function(){c()},0))},I.prototype.abort=function(){this._abort(!1)},I.prototype.getResponseHeader=function(e){return this._contentType},I.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},I.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},I.prototype.send=function(){if("ontimeout"in R.prototype&&("sendAsBinary"in R.prototype||"mozAnon"in R.prototype)||null==a||null==a.readyState||"complete"===a.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=N(function(){t._sendTimeout=0,t.send()},4)}},m.prototype.get=function(e){return this._map[c(e)]},null!=R&&null==R.HEADERS_RECEIVED&&(R.HEADERS_RECEIVED=2),x.prototype.open=function(o,a,t,n,e,r,i){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===R.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),a(e,t,n,new m(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},g.prototype.get=function(e){return this._headers.get(e)},D.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new d,c=l.signal,u=new f;return h(r,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new g(e.headers)),new p(function(t,n){var r=function(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),o(e),r())}).catch(function(e){n(e)})};r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},y.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){E(e)}}},y.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,a=0;a<r.length;a+=1)r[a]===t&&(o=!0);o||r.push(t)},y.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],a=0;a<r.length;a+=1)r[a]!==t&&o.push(r[a]);0===o.length?delete n[e]:n[e]=o}},U.prototype=Object.create(b.prototype),F.prototype=Object.create(b.prototype),k.prototype=Object.create(b.prototype);function G(e,t){return e=null==e?t:parseInt(e,10),V(e=e!=e?t:e)}function $(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){E(e)}}var j=/^text\/event\-stream(;.*)?$/i,V=function(e){return Math.min(Math.max(e,1e3),18e6)};function v(e,t){y.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(l,a,e){a=String(a);function i(e,t,n,r){var o,a;0===T&&(200===e&&null!=n&&j.test(n)?(T=1,m=Date.now(),d=p,l.readyState=1,o=new F("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),$(l,l.onopen,o)):(a="",a=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",P(),o=new F("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),$(l,l.onerror,o),console.error(a)))}function s(e){if(1===T){for(var t=-1,n=0;n<e.length;n+=1)(i=e.charCodeAt(n))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?S:"")+e.slice(0,t+1);S=(-1===t?S:"")+e.slice(t+1),""!==e&&(m=Date.now(),g+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===M&&i==="\n".charCodeAt(0))M=0;else if(-1===M&&(M=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==M&&(1===M&&(L=o+1),a=r.slice(C,L-1),s=r.slice(L+(L<o&&r.charCodeAt(L)===" ".charCodeAt(0)?1:0),o),"data"===a?(_+="\n",_+=s):"id"===a?w=s:"event"===a?A=s:"retry"===a?(p=G(s,p),d=p):"heartbeatTimeout"===a&&(h=G(s,h),0!==v&&(B(v),v=N(function(){O()},h)))),0===M){if(""!==_){f=w;var s=new U(A=""===A?"message":A,{data:_.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===A?$(l,l.onopen,s):"message"===A?$(l,l.onmessage,s):"error"===A&&$(l,l.onerror,s),2===T)return}A=_=""}M=i==="\r".charCodeAt(0)?-1:0}else 0===M&&(C=o,M=1),1===M?i===":".charCodeAt(0)&&(L=o+1,M=2):2===M&&(M=3)}}}function c(e){var t;1!==T&&0!==T||(T=-1,0!==v&&(B(v),v=0),v=N(function(){O()},d),d=V(Math.min(16*p,2*d)),l.readyState=0,t=new k("error",{error:e}),l.dispatchEvent(t),$(l,l.onerror,t),null!=e&&console.error(e))}var t=Boolean(e.withCredentials),u=e.lastEventIdQueryParameterName||"lastEventId",p=V(1e3),h=G(e.heartbeatTimeout,45e3),f="",d=p,m=!1,g=0,n=e.headers||{},e=e.Transport,y=X&&null==e?void 0:new I(new(null!=e?e:null!=R&&"withCredentials"in R.prototype||null==o?R:o)),E=new(null!=e&&"string"!=typeof e?e:null==y?D:x),b=void 0,v=0,T=-1,_="",w="",A="",S="",M=0,C=0,L=0,P=function(){T=2,null!=b&&(b.abort(),b=void 0),0!==v&&(B(v),v=0),l.readyState=2},O=function(){if(v=0,-1===T){m=!1,g=0,v=N(function(){O()},h),w=f,S=A=_="",M=L=C=T=0;var e=a;"data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==f&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===u?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(f));var t=l.withCredentials,n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{b=E.open(y,i,s,c,e,t,n)}catch(e){throw P(),e}}else m||null==b?(t=Math.max((m||Date.now())+h-Date.now(),1),m=!1,v=N(function(){O()},t)):(c(new Error("No activity within "+h+" milliseconds. "+(0===T?"No response received.":g+" chars received.")+" Reconnecting.")),null!=b&&(b.abort(),b=void 0))};l.url=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=P,O()}(this,e,t)}var X=null!=h&&null!=i&&"body"in i.prototype;(v.prototype=Object.create(y.prototype)).CONNECTING=0,v.prototype.OPEN=1,v.prototype.CLOSED=2,v.prototype.close=function(){this._close()},v.CONNECTING=0,v.OPEN=1,v.CLOSED=2,v.prototype.withCredentials=void 0;e=n;null==R||null!=n&&"withCredentials"in n.prototype||(e=v),(i=$t).EventSourcePolyfill=v,i.NativeEventSource=n,i.EventSource=e}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:W:globalThis),Gt.exports);function Vt(n){let r,o,a,i,s,l,c,u,p,h,f,d,m,g,y,E,b,v,T,_,w,A,S,M,C,L,P,O,N,B,R,I,x,D,U,F,k,G,$,j,V,X,z,H,q,Y,K,Z=n[5]("balanceModal.balanceTitle")+"",W=n[5]("balanceModal.totalBalance")+"",Q=n[5]("balanceModal.cashBalance")+"",J=n[5]("balanceModal.bonusBalance")+"",ee=n[5]("balanceModal.depositButton")+"";return{c(){r=e("div"),o=e("div"),a=ae(),i=e("div"),s=e("div"),l=e("p"),c=t(Z),u=ae(),p=e("div"),h=e("div"),f=e("p"),d=t(W),m=ae(),g=e("p"),y=e("span"),E=t(n[0]),b=ae(),v=e("span"),T=t(n[3]),_=ae(),w=e("div"),A=e("p"),S=t(Q),M=ae(),C=e("p"),L=e("span"),P=t(n[1]),O=ae(),N=e("span"),B=t(n[3]),R=ae(),I=e("div"),x=e("p"),D=t(J),U=ae(),F=e("p"),k=e("span"),G=t(n[2]),$=ae(),j=e("span"),V=t(n[3]),X=ae(),z=e("div"),H=e("button"),q=t(ee),se(o,"class","BalanceModalClose"),se(l,"class","BalanceModalTitle"),se(l,"part","BalanceModalTitle"),se(s,"class","BalanceModalHeader"),se(s,"part","BalanceModalHeader"),se(f,"class","BalanceModalText"),se(f,"part","BalanceModalText"),se(y,"class","BalanceModalAmount"),se(y,"part","BalanceModalAmount"),se(v,"class","BalanceModalCurrency"),se(v,"part","BalanceModalCurrency"),se(g,"class","BalanceModalValue"),se(g,"part","BalanceModalValue"),se(h,"class","BalanceModalRow"),se(h,"part","BalanceModalRow"),se(A,"class","BalanceModalText"),se(A,"part","BalanceModalText"),se(L,"class","BalanceModalAmount"),se(L,"part","BalanceModalAmount"),se(N,"class","BalanceModalCurrency"),se(N,"part","BalanceModalCurrency"),se(C,"class","BalanceModalValue"),se(C,"part","BalanceModalValue"),se(w,"class","BalanceModalRow"),se(w,"part","BalanceModalRow"),se(x,"class","BalanceModalText"),se(x,"part","BalanceModalText"),se(k,"class","BalanceModalAmount"),se(k,"part","BalanceModalAmount"),se(j,"class","BalanceModalCurrency"),se(j,"part","BalanceModalCurrency"),se(F,"class","BalanceModalValue"),se(F,"part","BalanceModalValue"),se(I,"class","BalanceModalRow"),se(I,"part","BalanceModalRow"),se(p,"class","BalanceModalBody"),se(p,"part","BalanceModalBody"),se(H,"class","BalanceModalAction"),se(H,"part","BalanceModalAction"),se(z,"class","BalanceModalFooter"),se(z,"part","BalanceModalFooter"),se(i,"class","BalanceModal"),se(i,"part","BalanceModal"),se(r,"class","BalanceModalWrapper"),se(r,"part","BalanceModalWrapper")},m(e,t){re(e,r,t),ne(r,o),ne(r,a),ne(r,i),ne(i,s),ne(s,l),ne(l,c),ne(i,u),ne(i,p),ne(p,h),ne(h,f),ne(f,d),ne(h,m),ne(h,g),ne(g,y),ne(y,E),ne(g,b),ne(g,v),ne(v,T),ne(p,_),ne(p,w),ne(w,A),ne(A,S),ne(w,M),ne(w,C),ne(C,L),ne(L,P),ne(C,O),ne(C,N),ne(N,B),ne(p,R),ne(p,I),ne(I,x),ne(x,D),ne(I,U),ne(I,F),ne(F,k),ne(k,G),ne(F,$),ne(F,j),ne(j,V),ne(i,X),ne(i,z),ne(z,H),ne(H,q),Y||(K=[ie(o,"click",n[13]),ie(H,"click",n[14])],Y=!0)},p(e,t){32&t&&Z!==(Z=e[5]("balanceModal.balanceTitle")+"")&&le(c,Z),32&t&&W!==(W=e[5]("balanceModal.totalBalance")+"")&&le(d,W),1&t&&le(E,e[0]),8&t&&le(T,e[3]),32&t&&Q!==(Q=e[5]("balanceModal.cashBalance")+"")&&le(S,Q),2&t&&le(P,e[1]),8&t&&le(B,e[3]),32&t&&J!==(J=e[5]("balanceModal.bonusBalance")+"")&&le(D,J),4&t&&le(G,e[2]),8&t&&le(V,e[3]),32&t&&ee!==(ee=e[5]("balanceModal.depositButton")+"")&&le(q,ee)},d(e){e&&oe(r),Y=!1,te(K)}}}function Xt(n){let r,o,a;return{c(){r=e("div"),se(r,"class","ShowBalanceModalOverlay"),se(r,"part","ShowBalanceModalOverlay")},m(e,t){re(e,r,t),o||(a=ie(r,"click",n[15]),o=!0)},p:y,d(e){e&&oe(r),o=!1,a()}}}function zt(n){let r,o,a,i,s,l,c,u,p,h,f,d,m=n[4]&&Vt(n),g=n[4]&&Xt(n);return{c(){r=e("div"),o=e("p"),a=t(n[0]),i=ae(),s=t(n[3]),l=ae(),c=e("span"),c.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',u=ae(),m&&m.c(),p=ae(),g&&g.c(),h=t(""),this.c=y,se(o,"class","BalanceValue"),se(o,"part","BalanceValue"),se(r,"class","ShowBalance"),se(r,"part","ShowBalance")},m(e,t){re(e,r,t),ne(r,o),ne(o,a),ne(o,i),ne(o,s),ne(o,l),ne(o,c),ne(r,u),m&&m.m(r,null),re(e,p,t),g&&g.m(e,t),re(e,h,t),f||(d=ie(o,"click",n[12]),f=!0)},p(e,[t]){1&t&&le(a,e[0]),8&t&&le(s,e[3]),e[4]?m?m.p(e,t):(m=Vt(e),m.c(),m.m(r,null)):m&&(m.d(1),m=null),e[4]?g?g.p(e,t):(g=Xt(e),g.c(),g.m(h.parentNode,h)):g&&(g.d(1),g=null)},i:y,o:y,d(e){e&&oe(r),m&&m.d(),e&&oe(p),g&&g.d(e),e&&oe(h),f=!1,d()}}}function Ht(e,t,r){let n;var o=Ft;e.$$.on_destroy.push(T(o,e=>r(5,n=e)));let a,i,s,{userid:l=""}=t,{session:c=""}=t,{endpoint:u=""}=t,{lang:p="en"}=t,h="",f="",d="",m="",g=!1;Object.keys(kt).forEach(e=>{Et(e,kt[e])});const y=e=>{switch(e){case"balance":r(4,g=!0);break;case"closebalance":r(4,g=!1)}},E=e=>{"message"==e.type&&((e=JSON.parse(e.data)).balanceChange&&e.balanceChange[i]&&r(1,f=e.balanceChange[i].afterAmount),e.balanceChange&&e.balanceChange[s]&&r(2,d=e.balanceChange[s].afterAmount),r(0,h=(parseFloat(f)+parseFloat(d)).toFixed(2)))},b=()=>{y("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href)},v=()=>{var e,t=p;Lt.set(t),a=new jt.EventSourcePolyfill(`${u}/player/${l}/balance/updates`,{headers:{accept:"text/event-stream","X-SessionID":c}}),e=`${u}/player/${l}/account`,new Promise((t,n)=>{fetch(e,{method:"GET",headers:{"X-SessionID":c}}).then(e=>e.json()).then(e=>{e.items.forEach(e=>{"Casino"==e.displayName&&(i=e.id,r(1,f=e.balanceAmount),r(3,m=e.currency)),"UBS"==e.displayName&&(s=e.id,r(2,d=e.balanceAmount))}),r(0,h=(parseFloat(f)+parseFloat(d)).toFixed(2)),a.addEventListener("open",E),a.addEventListener("message",E),a.addEventListener("error",E),t(e)},e=>{console.error(e),n(e)})})};return t=()=>()=>{a.removeEventListener("open",E),a.removeEventListener("message",E),a.removeEventListener("error",E)},function(){if(!_)throw new Error("Function called outside component initialization");return _}().$$.on_mount.push(t),e.$$set=e=>{"userid"in e&&r(8,l=e.userid),"session"in e&&r(9,c=e.session),"endpoint"in e&&r(10,u=e.endpoint),"lang"in e&&r(11,p=e.lang)},e.$$.update=()=>{3840&e.$$.dirty&&u&&l&&c&&p&&v()},[h,f,d,m,g,n,y,b,l,c,u,p,()=>y("balance"),()=>y("closebalance"),()=>b(),()=>y("closebalance")]}class qt extends c{constructor(e){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'}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer}.ShowBalance .BalanceValue svg{width:16px}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-50%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-color-primary, #D0046C) 1A;border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:\"\";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-color-primary, #D0046C);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-color-primary-600, #99034F)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}</style>",l(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Ht,zt,n,{userid:8,session:9,endpoint:10,lang:11}),e&&(e.target&&re(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["userid","session","endpoint","lang"]}get userid(){return this.$$.ctx[8]}set userid(e){this.$set({userid:e}),v()}get session(){return this.$$.ctx[9]}set session(e){this.$set({session:e}),v()}get endpoint(){return this.$$.ctx[10]}set endpoint(e){this.$set({endpoint:e}),v()}get lang(){return this.$$.ctx[11]}set lang(e){this.$set({lang:e}),v()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",qt),qt});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function y(){}function p(e){return e()}function h(){return Object.create(null)}function J(e){e.forEach(p)}function f(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function E(e,...t){if(null==e)return y;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ee(e,t){e.appendChild(t)}function te(e,t,n){e.insertBefore(t,n||null)}function ne(e){e.parentNode.removeChild(e)}function e(e){return document.createElement(e)}function t(e){return document.createTextNode(e)}function re(){return t(" ")}function oe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ae(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ie(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let b;function d(e){b=e}const m=[],r=[],o=[],a=[],g=Promise.resolve();let v=!1;function T(e){o.push(e)}let i=!1;const s=new Set;function _(){if(!i){i=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];d(t),function(e){{var t;null!==e.fragment&&(e.update(),J(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(T))}}(t.$$)}for(d(null),m.length=0;r.length;)r.pop()();for(let e=0;e<o.length;e+=1){const n=o[e];s.has(n)||(s.add(n),n())}}while(o.length=0,m.length);for(;a.length;)a.pop()();v=!1,i=!1,s.clear()}}const w=new Set;function l(r,e,t,n,o,a,i=[-1]){var s,l=b;d(r);const c=r.$$={fragment:null,ctx:null,props:a,update:y,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:i,skip_bound:!1};let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u&&(n=e,-1===(e=r).$$.dirty[0]&&(m.push(e),v||(v=!0,g.then(_)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],c.update(),u=!0,J(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){const y=(n=e.target,Array.from(n.childNodes));c.fragment&&c.fragment.l(y),y.forEach(ne)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&(w.delete(s),s.i(void 0)),function(t,e,n,r){const{fragment:o,on_mount:a,on_destroy:i,after_update:s}=t.$$;o&&o.m(e,n),r||T(()=>{var e=a.map(p).filter(f);i?i.push(...e):J(e),t.$$.on_mount=[]}),s.forEach(T)}(r,e.target,e.anchor,e.customElement),_()}d(l)}let c;"function"==typeof HTMLElement&&(c=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(f);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){J(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(J(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=y}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const u=[];function A(r,o=y){let a;const i=[];function s(e){if(n(r,e)&&(r=e,a)){const e=!u.length;for(let e=0;e<i.length;e+=1){const t=i[e];t[1](),u.push(t,r)}if(e){for(let e=0;e<u.length;e+=2)u[e][0](u[e+1]);u.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=y){const n=[e,t];return i.push(n),1===i.length&&(a=o(s)||y),e(r),()=>{var e=i.indexOf(n);-1!==e&&i.splice(e,1),0===i.length&&(a(),a=null)}}}}function S(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:A(t,t=>{let n=!1;const r=[];let o=0,a=y;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),u?t(e):a=f(e)?e:y)},e=c.map((e,t)=>E(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){J(e),a()}}).subscribe}}var M=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===C));var t},C="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function P(e,t){return!1!==t.clone&&t.isMergeableObject(e)?R(Array.isArray(e)?[]:{},e,t):e}function O(e,t,n){return e.concat(t).map(function(e){return P(e,n)})}function L(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function B(e,t){try{return t in e}catch(e){return!1}}function N(r,o,a){var i={};return a.isMergeableObject(r)&&L(r).forEach(function(e){i[e]=P(r[e],a)}),L(o).forEach(function(t){var e,n;(!B(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(B(r,t)&&a.isMergeableObject(o[t])?i[t]=function(){if(!a.customMerge)return R;var e=a.customMerge(t);return"function"==typeof e?e:R}()(r[t],o[t],a):i[t]=P(o[t],a))}),i}function R(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||O,n.isMergeableObject=n.isMergeableObject||M,n.cloneUnlessOtherwiseSpecified=P;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):N(e,t,n):P(t,n)}R.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return R(e,t,n)},{})};var I=R,x=function(e,t){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function D(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var U,F,k,G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function $(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function j(e){return e.type===F.literal}function V(e){return e.type===F.number}function X(e){return e.type===F.date}function z(e){return e.type===F.time}function H(e){return e.type===F.select}function q(e){return e.type===F.plural}function Y(e){return e.type===F.tag}function K(e){return e&&"object"==typeof e&&e.type===k.number}function Z(e){return e&&"object"==typeof e&&e.type===k.dateTime}(we=U=U||{})[we.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",we[we.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",we[we.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",we[we.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",we[we.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",we[we.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",we[we.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",we[we.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",we[we.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",we[we.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",we[we.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",we[we.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",we[we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",we[we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",we[we.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",we[we.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",we[we.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",we[we.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",we[we.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",we[we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",we[we.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",we[we.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",we[we.INVALID_TAG=23]="INVALID_TAG",we[we.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",we[we.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",we[we.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ae=F=F||{})[Ae.literal=0]="literal",Ae[Ae.argument=1]="argument",Ae[Ae.number=2]="number",Ae[Ae.date=3]="date",Ae[Ae.time=4]="time",Ae[Ae.select=5]="select",Ae[Ae.plural=6]="plural",Ae[Ae.pound=7]="pound",Ae[Ae.tag=8]="tag",(Se=k=k||{})[Se.number=0]="number",Se[Se.dateTime=1]="dateTime";var W=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Q=/(?:[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;var se,le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ue=/^(@+)?(\+|#+)?$/g,pe=/(\*)(0+)|(#+)(0+)|(0+)/g,he=/^(0+)$/;function fe(e){var r={};return e.replace(ue,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function de(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function me(e){return de(e)||{}}function ge(e){for(var i={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=G(G(G({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return G(G({},e),me(t))},{}));continue;case"engineering":i=G(G(G({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return G(G({},e),me(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(pe,function(e,t,n,r,o,a){if(t)i.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(he.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(ce.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ce,function(e,t,n,r,o,a){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""}),o.options.length&&(i=G(G({},i),fe(o.options[0])))}else ue.test(o.stem)?i=G(G({},i),fe(o.stem)):((r=de(o.stem))&&(i=G(G({},i),r)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!he.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=G(G({},i),r)))}return i}var ye=new RegExp("^"+W.source+"*"),Ee=new RegExp(W.source+"*$");function be(e,t){return{start:e,end:t}}var ve=!!String.prototype.startsWith,Te=!!String.fromCodePoint,_e=!!Object.fromEntries,we=!!String.prototype.codePointAt,Ae=!!String.prototype.trimStart,Se=!!String.prototype.trimEnd,Me=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},W=!0;try{W="a"===(null===(se=xe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===se?void 0:se[0])}catch(y){W=!1}var Ce,Pe,Oe=ve?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Le=Te?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;a<o;){if(1114111<(n=e[a++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Be=_e?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],o=o[1];t[a]=o}return t},Ne=we?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,o=e.charCodeAt(t);return o<55296||56319<o||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?o:r-56320+(o-55296<<10)+65536}},Re=Ae?function(e){return e.trimStart()}:function(e){return e.replace(ye,"")},Ie=Se?function(e){return e.trimEnd()}:function(e){return e.replace(Ee,"")};function xe(e,t){return new RegExp(e,t)}Pe=W?(Ce=xe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ce.lastIndex=t,null!==(e=Ce.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var o=Ne(e,t);if(void 0===o||ke(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),t+=65536<=o?2:1}return Le.apply(void 0,r)};var De=(Ue.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Ue.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(U.UNMATCHED_CLOSING_TAG,be(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Fe(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{a=this.clonePosition();this.bump(),r.push({type:F.pound,location:be(a,this.clonePosition())})}}}return{val:r,err:null}},Ue.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:F.literal,value:"<"+r+"/>",location:be(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fe(this.char()))return this.error(U.INVALID_TAG,be(t,this.clonePosition()));o=this.clonePosition();return r!==this.parseTagName()?this.error(U.UNMATCHED_CLOSING_TAG,be(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:F.tag,value:r,children:e,location:be(n,this.clonePosition())},err:null}:this.error(U.INVALID_TAG,be(t,this.clonePosition())))}return this.error(U.UNCLOSED_TAG,be(n,this.clonePosition()))}return this.error(U.INVALID_TAG,be(n,this.clonePosition()))},Ue.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},Ue.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=be(n,this.clonePosition());return{val:{type:F.literal,value:r,location:n},err:null}},Ue.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Fe(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Ue.prototype.tryParseQuote=function(e){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"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Le.apply(void 0,t)},Ue.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Le(n))},Ue.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,be(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(U.EMPTY_ARGUMENT,be(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(U.MALFORMED_ARGUMENT,be(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,be(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:F.argument,value:r,location:be(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,be(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(U.MALFORMED_ARGUMENT,be(n,this.clonePosition()))}},Ue.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Pe(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:be(e,this.clonePosition())}},Ue.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(U.EXPECT_ARGUMENT_TYPE,be(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Ie(h.val)).length)return this.error(U.EXPECT_ARGUMENT_STYLE,be(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:be(c,this.clonePosition())}}if((f=this.tryParseArgumentClose(r)).err)return f;var u=be(r,this.clonePosition());if(l&&Oe(null==l?void 0:l.style,"::",0)){c=Re(l.style.slice(2));if("number"===i)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:F.number,value:n,location:u,style:h.val},err:null};if(0===c.length)return this.error(U.EXPECT_DATE_TIME_SKELETON,u);var p={type:k.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(Q,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"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":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<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""}),o):{}};return{val:{type:"date"===i?F.date:F.time,value:n,location:u,style:p},err:null}}return{val:{type:"number"===i?F.number:"date"===i?F.date:F.time,value:n,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(U.EXPECT_SELECT_ARGUMENT_OPTIONS,be(l,G({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==i&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,be(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(e,i,t,u);if(u.err)return u;if((f=this.tryParseArgumentClose(r)).err)return f;var f=be(r,this.clonePosition());return"select"===i?{val:{type:F.select,value:n,options:Be(u.val),location:f},err:null}:{val:{type:F.plural,value:n,options:Be(u.val),offset:l,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null};default:return this.error(U.INVALID_ARGUMENT_TYPE,be(a,s))}},Ue.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,be(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Ue.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(U.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,be(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},Ue.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(le).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(U.INVALID_NUMBER_SKELETON,t)}return{val:{type:k.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ge(n):{}},err:null}},Ue.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,a=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_SELECTOR,U.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=be(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?U.DUPLICATE_SELECT_ARGUMENT_SELECTOR:U.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?U.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:U.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,be(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,n);if(u.err)return u;c=this.tryParseArgumentClose(p);if(c.err)return c;a.push([s,{value:u.val,location:be(p,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(p=this.parseIdentifierIfPossible()).value,l=p.location}return 0===a.length?this.error("select"===t?U.EXPECT_SELECT_ARGUMENT_SELECTOR:U.EXPECT_PLURAL_ARGUMENT_SELECTOR,be(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(U.MISSING_OTHER_CLAUSE,be(this.clonePosition(),this.clonePosition())):{val:a,err:null}},Ue.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}r=be(r,this.clonePosition());return o?Me(a*=n)?{val:a,err:null}:this.error(t,r):this.error(e,r)},Ue.prototype.offset=function(){return this.position.offset},Ue.prototype.isEOF=function(){return this.offset()===this.message.length},Ue.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Ue.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ne(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Ue.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Ue.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},Ue.prototype.bumpIf=function(e){if(Oe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Ue.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Ue.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Ue.prototype.bumpSpace=function(){for(;!this.isEOF()&&ke(this.char());)this.bump()},Ue.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Ue);function Ue(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Fe(e){return 97<=e&&e<=122||65<=e&&e<=90}function ke(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ge(e,t){t=G({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new De(e,t).parse();if(n.err){e=SyntaxError(U[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,H(e)||q(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else V(e)&&K(e.style)||(X(e)||z(e))&&Z(e.style)?delete e.style.location:Y(e)&&n(e.children)})}(n.val),n.val}function $e(e,t){var n=t&&t.cache?t.cache:Ye,r=t&&t.serializer?t.serializer:ze;return(t&&t.strategy?t.strategy:function(e,t){return Xe(e,this,1===e.length?je:Ve,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function je(e,t,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(o);return void 0===n&&(n=e.call(this,r),t.set(o,n)),n}function Ve(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),n=t.get(o);return void 0===n&&(n=e.apply(this,r),t.set(o,n)),n}function Xe(e,t,n,r,o){return n.bind(t,e,r,o)}var ze=function(){return JSON.stringify(arguments)};function He(){this.cache=Object.create(null)}He.prototype.has=function(e){return e in this.cache},He.prototype.get=function(e){return this.cache[e]},He.prototype.set=function(e,t){this.cache[e]=t};var qe,Ye={create:function(){return new He}},Ke={variadic:function(e,t){return Xe(e,this,Ve,t.cache.create(),t.serializer)},monadic:function(e,t){return Xe(e,this,je,t.cache.create(),t.serializer)}};(W=qe=qe||{}).MISSING_VALUE="MISSING_VALUE",W.INVALID_VALUE="INVALID_VALUE",W.MISSING_INTL_API="MISSING_INTL_API";var Ze,We,Qe,Je,et,tt=(D(lt,et=Error),lt.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},lt),nt=(D(st,Je=tt),st),rt=(D(it,Qe=tt),it),ot=(D(at,We=tt),at);function at(e,t){return We.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',qe.MISSING_VALUE,t)||this}function it(e,t,n){return Qe.call(this,'Value for "'+e+'" must be of type '+t,qe.INVALID_VALUE,n)||this}function st(e,t,n,r){return Je.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',qe.INVALID_VALUE,r)||this}function lt(e,t,n){e=et.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function ct(e,t,n,r,o,a,i){if(1===e.length&&j(e[0]))return[{type:Ze.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(j(u))s.push({type:Ze.literal,value:u.value});else if(u.type===F.pound)"number"==typeof a&&s.push({type:Ze.literal,value:n.getNumberFormat(t).format(a)});else{var p=u.value;if(!(o&&p in o))throw new ot(p,i);var h=o[p];if(u.type===F.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Ze.literal:Ze.object,value:h});else if(X(u)){var f="string"==typeof u.style?r.date[u.style]:Z(u.style)?u.style.parsedOptions:void 0;s.push({type:Ze.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(z(u))f="string"==typeof u.style?r.time[u.style]:Z(u.style)?u.style.parsedOptions:void 0,s.push({type:Ze.literal,value:n.getDateTimeFormat(t,f).format(h)});else if(V(u))(f="string"==typeof u.style?r.number[u.style]:K(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:Ze.literal,value:n.getNumberFormat(t,f).format(h)});else{if(Y(u)){var d=u.children,m=u.value,p=o[m];if("function"!=typeof p)throw new rt(m,"function",i);d=p(ct(d,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?Ze.literal:Ze.object,value:e}}))}if(H(u)){if(!(g=u.options[h]||u.options.other))throw new nt(u.value,h,Object.keys(u.options),i);s.push.apply(s,ct(g.value,t,n,r,o))}else if(q(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new tt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',qe.MISSING_INTL_API,i);var d=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new nt(u.value,h,Object.keys(u.options),i);s.push.apply(s,ct(g.value,t,n,r,o,h-(u.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===Ze.literal&&t.type===Ze.literal?n.value+=t.value:e.push(t),e},[])}function ut(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(W=Ze=Ze||{})[W.literal=0]="literal",W[W.object=1]="object";var pt=(Object.defineProperty(ht,"defaultLocale",{get:function(){return ht.memoizedDefaultLocale||(ht.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),ht.memoizedDefaultLocale},enumerable:!1,configurable:!0}),ht.memoizedDefaultLocale=null,ht.__parse=Ge,ht.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"}}},ht);function ht(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=ht.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Ze.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return ct(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},"string"==typeof e){if(this.message=e,!ht.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ht.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=ht.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?G(G(G({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=G(G({},n[t]),r[t]||{}),e},{})):n),e},G({},o)):o),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:$e(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,$([void 0],t)))},{cache:ut((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:Ke.variadic}),getDateTimeFormat:$e(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,$([void 0],t)))},{cache:ut(r.dateTime),strategy:Ke.variadic}),getPluralRules:$e(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,$([void 0],t)))},{cache:ut(r.pluralRules),strategy:Ke.variadic})}}const ft={},dt=(t,n)=>{if(null!=n){if(n in ft&&t in ft[n])return ft[n][t];var r,o,a=Lt(n);for(let e=0;e<a.length;e++){var i=(r=a[e],o=t,yt(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return mt[e]||null}(r),o):null);if(i)return r=t,o=n,(i=i)&&(o in ft||(ft[o]={}),r in ft[o]||(ft[o][r]=i),i)}}};let mt;const gt=A({});function yt(e){return e in mt}function Et(t,...n){delete ft[t],gt.update(e=>(e[t]=I.all([e[t]||{},...n]),e))}S([gt],([e])=>Object.keys(e)),gt.subscribe(e=>mt=e);const bt={};function vt(e){return bt[e]}function Tt(e){return Lt(e).some(e=>{return null===(e=vt(e))||void 0===e?void 0:e.size})}const _t={};function wt(e){if(!Tt(e))return e in _t?_t[e]:void 0;const t=Lt(e).map(e=>{var t=vt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return _t[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){bt[e].delete(t),0===bt[e].size&&delete bt[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Et(t,...e))}(e))).then(()=>Tt(e)?wt(e):void delete _t[e]),_t[e]}function At(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}const St={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const Mt=A(!1);let Ct;const Pt=A(null);function Ot(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Lt(e,t=St.fallbackLocale){e=Ot(e);return t?[...new Set([...e,...Ot(t)])]:e}Pt.subscribe(e=>{Ct=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Bt=Pt.set;Pt.set=t=>{if(function(e){if(null!=e){var t=Lt(e);for(let e=0;e<t.length;e++){var n=t[e];if(yt(n))return n}}}(t)&&Tt(t)){var{loadingDelay:n}=St;let e;return"undefined"!=typeof window&&null!=Ct&&n?e=window.setTimeout(()=>Mt.set(!0),n):Mt.set(!0),wt(t).then(()=>{Bt(t)}).finally(()=>{clearTimeout(e),Mt.set(!1)})}return Bt(t)},Pt.update=e=>Bt(e(Ct));const Nt=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Rt=(e,t)=>{var{formats:n}=St;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},It=Nt(e=>{var{locale:t,format:n}=e,e=At(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Rt("number",n)),new Intl.NumberFormat(t,e)}),xt=Nt(e=>{var{locale:t,format:n}=e,e=At(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Rt("date",n):0===Object.keys(e).length&&(e=Rt("date","short")),new Intl.DateTimeFormat(t,e)}),Dt=Nt(e=>{var{locale:t,format:n}=e,e=At(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Rt("time",n):0===Object.keys(e).length&&(e=Rt("time","short")),new Intl.DateTimeFormat(t,e)}),Ut=Nt((e,t=Ct)=>new pt(e,t,St.formats,{ignoreTag:St.ignoreTag})),Ft=S([Pt,gt],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=Ct,default:o}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let a=dt(e,r);if(a){if("string"!=typeof a)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof a}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),a}else St.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Lt(r).join('", "')}".${Tt(Ct)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),a=o||e;if(!n)return a;let i=a;try{i=Ut(a,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return i});S([Pt],()=>(e,t)=>((e={})=>{var{locale:t=Ct}=e,e=At(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),S([Pt],()=>(e,t)=>((e={})=>{var{locale:t=Ct}=e,e=At(e,["locale"]);return xt(Object.assign({locale:t},e))})(t).format(e)),S([Pt],()=>(e,t)=>((e={})=>{var{locale:t=Ct}=e,e=At(e,["locale"]);return It(Object.assign({locale:t},e))})(t).format(e)),S([Pt,gt],()=>(e,t=Ct)=>dt(e,t));const kt={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},de:{balanceModal:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"}},it:{balanceModal:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"}},fr:{balanceModal:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"}},es:{balanceModal:{balanceTitle:"Tu saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo de bonificación",depositButton:"Depositar"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}};var Gt,$t,W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},jt=($t=(Gt={path:void 0,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&Gt.path)}}).exports,function(e){var r,B=e.setTimeout,N=e.clearTimeout,R=e.XMLHttpRequest,o=e.XDomainRequest,t=e.ActiveXObject,n=e.EventSource,a=e.document,p=e.Promise,h=e.fetch,i=e.Response,f=e.TextDecoder,s=e.TextEncoder,d=e.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===a||"readyState"in a||null!=a.body||(a.readyState="loading",window.addEventListener("load",function(e){a.readyState="complete"},!1)),null==R&&null!=t&&(R=function(){return new t("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==d&&(r=h,h=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},d=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),l.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,n(o,a)))&&(o=0,a=65533,r+=String.fromCharCode(a)),0===o?(a=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(a,o,n(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?r+=String.fromCharCode(a):(r+=String.fromCharCode(55296+(a-65535-1>>10)),r+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,r},null!=f&&null!=s&&function(){try{return"test"===(new f).decode((new s).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(f=l);var u=function(){};function I(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function c(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function m(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),a=o.shift(),o=o.join(": ");t[c(a)]=o}this._map=t}function x(){}function g(e){this._headers=e}function D(){}function y(){this._listeners=Object.create(null)}function E(e){B(function(){throw e},0)}function b(e){this.type=e,this.target=void 0}function U(e,t){b.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function F(e,t){b.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function k(e,t){b.call(this,e),this.error=t.error}I.prototype.open=function(e,t){this._abort(!0);var o=this,a=this._xhr,i=1,n=0;this._abort=function(e){0!==o._sendTimeout&&(N(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=u,a.onerror=u,a.onabort=u,a.onprogress=u,a.onreadystatechange=u,a.abort(),0!==n&&(N(n),n=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),i=0};function r(){if(1===i){var t=0,n="",r=void 0;if("contentType"in a)t=200,n="OK",r=a.contentType;else try{t=a.status,n=a.statusText,r=a.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}function s(){if(r(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}}function l(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),s(),1===i||2===i||3===i){if(i=4,0!==n&&(N(n),n=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var c=function(){n=B(function(){c()},500),3===a.readyState&&s()};"onload"in a&&(a.onload=function(e){l("load",e)}),"onerror"in a&&(a.onerror=function(e){l("error",e)}),"onabort"in a&&(a.onabort=function(e){l("abort",e)}),"onprogress"in a&&(a.onprogress=s),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||l(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||s():2===a.readyState&&r())}),!("contentType"in a)&&"ontimeout"in R.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(n=B(function(){c()},0))},I.prototype.abort=function(){this._abort(!1)},I.prototype.getResponseHeader=function(e){return this._contentType},I.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},I.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},I.prototype.send=function(){if("ontimeout"in R.prototype&&("sendAsBinary"in R.prototype||"mozAnon"in R.prototype)||null==a||null==a.readyState||"complete"===a.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=B(function(){t._sendTimeout=0,t.send()},4)}},m.prototype.get=function(e){return this._map[c(e)]},null!=R&&null==R.HEADERS_RECEIVED&&(R.HEADERS_RECEIVED=2),x.prototype.open=function(o,a,t,n,e,r,i){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===R.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),a(e,t,n,new m(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},g.prototype.get=function(e){return this._headers.get(e)},D.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new d,c=l.signal,u=new f;return h(r,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new g(e.headers)),new p(function(t,n){var r=function(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),o(e),r())}).catch(function(e){n(e)})};r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},y.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){E(e)}}},y.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,a=0;a<r.length;a+=1)r[a]===t&&(o=!0);o||r.push(t)},y.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],a=0;a<r.length;a+=1)r[a]!==t&&o.push(r[a]);0===o.length?delete n[e]:n[e]=o}},U.prototype=Object.create(b.prototype),F.prototype=Object.create(b.prototype),k.prototype=Object.create(b.prototype);function G(e,t){return e=null==e?t:parseInt(e,10),V(e=e!=e?t:e)}function $(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){E(e)}}var j=/^text\/event\-stream(;.*)?$/i,V=function(e){return Math.min(Math.max(e,1e3),18e6)};function v(e,t){y.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(l,a,e){a=String(a);function i(e,t,n,r){var o,a;0===T&&(200===e&&null!=n&&j.test(n)?(T=1,m=Date.now(),d=p,l.readyState=1,o=new F("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),$(l,l.onopen,o)):(a="",a=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",O(),o=new F("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),$(l,l.onerror,o),console.error(a)))}function s(e){if(1===T){for(var t=-1,n=0;n<e.length;n+=1)(i=e.charCodeAt(n))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?S:"")+e.slice(0,t+1);S=(-1===t?S:"")+e.slice(t+1),""!==e&&(m=Date.now(),g+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===M&&i==="\n".charCodeAt(0))M=0;else if(-1===M&&(M=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==M&&(1===M&&(P=o+1),a=r.slice(C,P-1),s=r.slice(P+(P<o&&r.charCodeAt(P)===" ".charCodeAt(0)?1:0),o),"data"===a?(_+="\n",_+=s):"id"===a?w=s:"event"===a?A=s:"retry"===a?(p=G(s,p),d=p):"heartbeatTimeout"===a&&(h=G(s,h),0!==v&&(N(v),v=B(function(){L()},h)))),0===M){if(""!==_){f=w;var s=new U(A=""===A?"message":A,{data:_.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===A?$(l,l.onopen,s):"message"===A?$(l,l.onmessage,s):"error"===A&&$(l,l.onerror,s),2===T)return}A=_=""}M=i==="\r".charCodeAt(0)?-1:0}else 0===M&&(C=o,M=1),1===M?i===":".charCodeAt(0)&&(P=o+1,M=2):2===M&&(M=3)}}}function c(e){var t;1!==T&&0!==T||(T=-1,0!==v&&(N(v),v=0),v=B(function(){L()},d),d=V(Math.min(16*p,2*d)),l.readyState=0,t=new k("error",{error:e}),l.dispatchEvent(t),$(l,l.onerror,t),null!=e&&console.error(e))}var t=Boolean(e.withCredentials),u=e.lastEventIdQueryParameterName||"lastEventId",p=V(1e3),h=G(e.heartbeatTimeout,45e3),f="",d=p,m=!1,g=0,n=e.headers||{},e=e.Transport,y=X&&null==e?void 0:new I(new(null!=e?e:null!=R&&"withCredentials"in R.prototype||null==o?R:o)),E=new(null!=e&&"string"!=typeof e?e:null==y?D:x),b=void 0,v=0,T=-1,_="",w="",A="",S="",M=0,C=0,P=0,O=function(){T=2,null!=b&&(b.abort(),b=void 0),0!==v&&(N(v),v=0),l.readyState=2},L=function(){if(v=0,-1===T){m=!1,g=0,v=B(function(){L()},h),w=f,S=A=_="",M=P=C=T=0;var e=a;"data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==f&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===u?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(f));var t=l.withCredentials,n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{b=E.open(y,i,s,c,e,t,n)}catch(e){throw O(),e}}else m||null==b?(t=Math.max((m||Date.now())+h-Date.now(),1),m=!1,v=B(function(){L()},t)):(c(new Error("No activity within "+h+" milliseconds. "+(0===T?"No response received.":g+" chars received.")+" Reconnecting.")),null!=b&&(b.abort(),b=void 0))};l.url=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=O,L()}(this,e,t)}var X=null!=h&&null!=i&&"body"in i.prototype;(v.prototype=Object.create(y.prototype)).CONNECTING=0,v.prototype.OPEN=1,v.prototype.CLOSED=2,v.prototype.close=function(){this._close()},v.CONNECTING=0,v.OPEN=1,v.CLOSED=2,v.prototype.withCredentials=void 0;e=n;null==R||null!=n&&"withCredentials"in n.prototype||(e=v),(i=$t).EventSourcePolyfill=v,i.NativeEventSource=n,i.EventSource=e}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:W:globalThis),Gt.exports);function Vt(n){let r,o,a,i,s,l,c,u,p,h,f,d,m,g,y,E,b,v,T,_,w,A,S,M,C,P,O,L,B,N,R,I,x,D,U,F,k,G,$,j,V,X,z,H,q,Y=n[3]("balanceModal.balanceTitle")+"",K=n[3]("balanceModal.totalBalance")+"",Z=n[3]("balanceModal.cashBalance")+"",W=n[3]("balanceModal.bonusBalance")+"",Q=n[3]("balanceModal.depositButton")+"";return{c(){r=e("div"),o=e("div"),a=re(),i=e("div"),s=e("div"),l=e("p"),c=t(Y),u=re(),p=e("div"),h=e("div"),f=e("p"),d=t(K),m=re(),g=e("p"),y=e("span"),E=t(n[1]),b=re(),v=e("span"),T=t(n[2]),_=re(),w=e("div"),A=e("p"),S=t(Z),M=re(),C=e("p"),P=e("span"),P.textContent=`${n[4].get("Casino").balanceAmount}`,O=re(),L=e("span"),B=t(n[2]),N=re(),R=e("div"),I=e("p"),x=t(W),D=re(),U=e("p"),F=e("span"),F.textContent=`${n[4].get("UBS").balanceAmount}`,k=re(),G=e("span"),$=t(n[2]),j=re(),V=e("div"),X=e("button"),z=t(Q),ae(o,"class","BalanceModalClose"),ae(l,"class","BalanceModalTitle"),ae(l,"part","BalanceModalTitle"),ae(s,"class","BalanceModalHeader"),ae(s,"part","BalanceModalHeader"),ae(f,"class","BalanceModalText"),ae(f,"part","BalanceModalText"),ae(y,"class","BalanceModalAmount"),ae(y,"part","BalanceModalAmount"),ae(v,"class","BalanceModalCurrency"),ae(v,"part","BalanceModalCurrency"),ae(g,"class","BalanceModalValue"),ae(g,"part","BalanceModalValue"),ae(h,"class","BalanceModalRow"),ae(h,"part","BalanceModalRow"),ae(A,"class","BalanceModalText"),ae(A,"part","BalanceModalText"),ae(P,"class","BalanceModalAmount"),ae(P,"part","BalanceModalAmount"),ae(L,"class","BalanceModalCurrency"),ae(L,"part","BalanceModalCurrency"),ae(C,"class","BalanceModalValue"),ae(C,"part","BalanceModalValue"),ae(w,"class","BalanceModalRow"),ae(w,"part","BalanceModalRow"),ae(I,"class","BalanceModalText"),ae(I,"part","BalanceModalText"),ae(F,"class","BalanceModalAmount"),ae(F,"part","BalanceModalAmount"),ae(G,"class","BalanceModalCurrency"),ae(G,"part","BalanceModalCurrency"),ae(U,"class","BalanceModalValue"),ae(U,"part","BalanceModalValue"),ae(R,"class","BalanceModalRow"),ae(R,"part","BalanceModalRow"),ae(p,"class","BalanceModalBody"),ae(p,"part","BalanceModalBody"),ae(X,"class","BalanceModalAction"),ae(X,"part","BalanceModalAction"),ae(V,"class","BalanceModalFooter"),ae(V,"part","BalanceModalFooter"),ae(i,"class","BalanceModal"),ae(i,"part","BalanceModal"),ae(r,"class","BalanceModalWrapper"),ae(r,"part","BalanceModalWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(r,a),ee(r,i),ee(i,s),ee(s,l),ee(l,c),ee(i,u),ee(i,p),ee(p,h),ee(h,f),ee(f,d),ee(h,m),ee(h,g),ee(g,y),ee(y,E),ee(g,b),ee(g,v),ee(v,T),ee(p,_),ee(p,w),ee(w,A),ee(A,S),ee(w,M),ee(w,C),ee(C,P),ee(C,O),ee(C,L),ee(L,B),ee(p,N),ee(p,R),ee(R,I),ee(I,x),ee(R,D),ee(R,U),ee(U,F),ee(U,k),ee(U,G),ee(G,$),ee(i,j),ee(i,V),ee(V,X),ee(X,z),H||(q=[oe(o,"click",n[12]),oe(X,"click",n[13])],H=!0)},p(e,t){8&t&&Y!==(Y=e[3]("balanceModal.balanceTitle")+"")&&ie(c,Y),8&t&&K!==(K=e[3]("balanceModal.totalBalance")+"")&&ie(d,K),2&t&&ie(E,e[1]),4&t&&ie(T,e[2]),8&t&&Z!==(Z=e[3]("balanceModal.cashBalance")+"")&&ie(S,Z),4&t&&ie(B,e[2]),8&t&&W!==(W=e[3]("balanceModal.bonusBalance")+"")&&ie(x,W),4&t&&ie($,e[2]),8&t&&Q!==(Q=e[3]("balanceModal.depositButton")+"")&&ie(z,Q)},d(e){e&&ne(r),H=!1,J(q)}}}function Xt(n){let r,o,a;return{c(){r=e("div"),ae(r,"class","ShowBalanceModalOverlay"),ae(r,"part","ShowBalanceModalOverlay")},m(e,t){te(e,r,t),o||(a=oe(r,"click",n[14]),o=!0)},p:y,d(e){e&&ne(r),o=!1,a()}}}function zt(n){let r,o,a,i,s,l,c,u,p,h,f,d,m=n[0]&&Vt(n),g=n[0]&&Xt(n);return{c(){r=e("div"),o=e("p"),a=t(n[1]),i=re(),s=t(n[2]),l=re(),c=e("span"),c.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',u=re(),m&&m.c(),p=re(),g&&g.c(),h=t(""),this.c=y,ae(o,"class","BalanceValue"),ae(o,"part","BalanceValue"),ae(r,"class","ShowBalance"),ae(r,"part","ShowBalance")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,i),ee(o,s),ee(o,l),ee(o,c),ee(r,u),m&&m.m(r,null),te(e,p,t),g&&g.m(e,t),te(e,h,t),f||(d=oe(o,"click",n[11]),f=!0)},p(e,[t]){2&t&&ie(a,e[1]),4&t&&ie(s,e[2]),e[0]?m?m.p(e,t):(m=Vt(e),m.c(),m.m(r,null)):m&&(m.d(1),m=null),e[0]?g?g.p(e,t):(g=Xt(e),g.c(),g.m(h.parentNode,h)):g&&(g.d(1),g=null)},i:y,o:y,d(e){e&&ne(r),m&&m.d(),e&&ne(p),g&&g.d(e),e&&ne(h),f=!1,d()}}}function Ht(t,e,o){let n;var r=Ft;t.$$.on_destroy.push(E(r,e=>o(3,n=e)));var a=this&&this.__awaiter||function(e,i,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{a(l.next(e))}catch(e){t(e)}}function o(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((l=l.apply(e,i||[])).next())})};let i,{userid:s=""}=e,{session:l=""}=e,{endpoint:c=""}=e,{lang:u="en"}=e,p=!1,h="",f="",d=!1,m=new Map;Object.keys(kt).forEach(e=>{Et(e,kt[e])});const g=e=>{switch(e){case"balance":o(0,p=!0);break;case"closebalance":o(0,p=!1)}},y=()=>{g("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href)};return e=()=>()=>{i&&i.close()},function(){if(!b)throw new Error("Function called outside component initialization");return b}().$$.on_mount.push(e),t.$$set=e=>{"userid"in e&&o(7,s=e.userid),"session"in e&&o(8,l=e.session),"endpoint"in e&&o(9,c=e.endpoint),"lang"in e&&o(10,u=e.lang)},t.$$.update=()=>{var r,e;1920&t.$$.dirty&&c&&s&&l&&u&&(e=u,Pt.set(e),r=`${c}/player/${s}/account`,a(void 0,void 0,void 0,function*(){try{d=!0;const e=yield fetch(r,{method:"GET",headers:{"X-SessionID":l}}),t=yield e.json();if(!e.ok)throw d=!1,new Error("Failed to fetch balance data !");{d=!1,t.items.map(e=>m.set(e.displayName,e));const n=m.get("Casino"),r=m.get("UBS");o(2,f=n.currency),o(1,h=(parseFloat(n.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))}}catch(e){d=!1,console.log("Balance error: ",e)}finally{d=!1}})),896&t.$$.dirty&&c&&s&&l&&((e,t)=>{let n=new jt.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});i&&i.close(),i=n,n.addEventListener("message",e=>{try{var{balanceChange:t}=JSON.parse(e.data),n=m.get("Casino"),r=m.get("UBS");t&&t[n.id]&&m.set("Casino",Object.assign(Object.assign({},n),{balanceAmount:t[n.id].afterAmount})),t&&t[r.id]&&m.set("UBS",Object.assign(Object.assign({},n),{balanceAmount:t[r.id].afterAmount})),o(1,h=(parseFloat(n.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))}catch(e){console.log("Balance stream failed: ",e)}})})(`${c}/player/${s}/balance/updates`,l)},[p,h,f,n,m,g,y,s,l,c,u,()=>g("balance"),()=>g("closebalance"),()=>y(),()=>g("closebalance")]}class qt extends c{constructor(e){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'}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer}.ShowBalance .BalanceValue svg{width:16px}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-50%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-color-primary, #D0046C) 1A;border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:\"\";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-color-primary, #D0046C);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-color-primary-600, #99034F)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}</style>",l(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Ht,zt,n,{userid:7,session:8,endpoint:9,lang:10}),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),_()))}static get observedAttributes(){return["userid","session","endpoint","lang"]}get userid(){return this.$$.ctx[7]}set userid(e){this.$set({userid:e}),_()}get session(){return this.$$.ctx[8]}set session(e){this.$set({session:e}),_()}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$set({endpoint:e}),_()}get lang(){return this.$$.ctx[10]}set lang(e){this.$set({lang:e}),_()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",qt),qt});
|
|
2
2
|
//# sourceMappingURL=player-account-balance-modal.js.map
|