@everymatrix/player-account-balance-modal 1.10.5 → 1.11.0
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 b(){}function P(e){return e()}function N(){return Object.create(null)}function J(e){e.forEach(P)}function R(e){return"function"==typeof e}function O(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function I(e,...t){if(null==e)return b;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ee(e,t){e.appendChild(t)}function oe(e,t,n){e.insertBefore(t,n||null)}function ae(e){e.parentNode&&e.parentNode.removeChild(e)}function e(e){return document.createElement(e)}function t(e){return document.createTextNode(e)}function te(){return t(" ")}function ie(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ne(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function re(e,t){e.data!==(t=""+t)&&(e.data=t)}let w;function p(e){w=e}const d=[],x=[];let a=[];const D=[],U=Promise.resolve();let G=!1;function $(e){a.push(e)}const F=new Set;let o=0;function f(){if(0===o){const r=w;do{try{for(;o<d.length;){const r=d[o];o++,p(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),J(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach($))}}catch(r){throw d.length=0,o=0,r}for(p(null),d.length=0,o=0;x.length;)x.pop()();for(let e=0;e<a.length;e+=1){var n=a[e];F.has(n)||(F.add(n),n())}}while(a.length=0,d.length);for(;D.length;)D.pop()();G=!1,F.clear(),p(r)}}const k=new Set;function j(r,e,t,n,o,a,i,s=[-1]){var l=w;p(r);const c=r.$$={fragment:null,ctx:[],props:a,update:b,not_equal:o,bound:N(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:N(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let h=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var 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),h)&&(n=e,-1===(e=r).$$.dirty[0]&&(d.push(e),G||(G=!0,U.then(f)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),h=!0,J(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){a=e.target;const b=Array.from(a.childNodes);c.fragment&&c.fragment.l(b),b.forEach(ae)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&(k.delete(s),s.i(void 0));var u=r,i=e.target,t=e.anchor,n=e.customElement,{fragment:a,after_update:s}=u.$$;a&&a.m(i,t),n||$(()=>{var e=u.$$.on_mount.map(P).filter(R);u.$$.on_destroy?u.$$.on_destroy.push(...e):J(e),u.$$.on_mount=[]}),s.forEach($),f()}p(l)}let V;"function"==typeof HTMLElement&&(V=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(P).filter(R);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){J(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],o=[];a.forEach(e=>(-1===n.indexOf(e)?r:o).push(e)),o.forEach(e=>e()),a=r}J(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=b}$on(e,t){if(!R(t))return b;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 n=[];function X(r,o=b){let a;const i=new Set;function s(e){if(O(r,e)&&(r=e,a)){const e=!n.length;for(const e of i)e[1](),n.push(e,r);if(e){for(let e=0;e<n.length;e+=2)n[e][0](n[e+1]);n.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=b){const n=[e,t];return i.add(n),1===i.size&&(a=o(s)||b),e(r),()=>{i.delete(n),0===i.size&&a&&(a(),a=null)}}}}function r(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,h=s.length<2;return{subscribe:X(t,t=>{let n=!1;const r=[];let o=0,a=b;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),h?t(e):a=R(e)?e:b)},e=c.map((e,t)=>I(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){J(e),a(),n=!1}}).subscribe}}function z(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===K);var t}var K="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function Y(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function Z(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function W(e,t){try{return t in e}catch(e){return!1}}function q(r,o,a){var i={};return a.isMergeableObject(r)&&Z(r).forEach(function(e){i[e]=s(r[e],a)}),Z(o).forEach(function(e){var t,n;(!W(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(W(r,e)&&a.isMergeableObject(o[e])?i[e]=((t=a).customMerge&&"function"==typeof(t=t.customMerge(e))?t:l)(r[e],o[e],a):i[e]=s(o[e],a))}),i}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Y,n.isMergeableObject=n.isMergeableObject||z,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):q(e,t,n):s(t,n)}l.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return l(e,t,n)},{});throw new Error("first argument should be an array")};var Q=l,se=function(e,t){return(se=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 le(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}se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,y,g,E=function(){return(E=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 ce(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function he(e){return e.type===y.literal}function ue(e){return e.type===y.number}function pe(e){return e.type===y.date}function de(e){return e.type===y.time}function fe(e){return e.type===y.select}function me(e){return e.type===y.plural}function ge(e){return e.type===y.tag}function be(e){return e&&"object"==typeof e&&e.type===g.number}function ye(e){return e&&"object"==typeof e&&e.type===g.dateTime}(i=m=m||{})[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=y=y||{})[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(i=g=g||{})[i.number=0]="number",i[i.dateTime=1]="dateTime";var i=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ee=/(?:[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 Be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,_e=/(\*)(0+)|(#+)(0+)|(0+)/g,Ae=/^(0+)$/;function He(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Te,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 we(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 Se(e){return we(e)||{}}function Me(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=E(E(E({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return E(E({},e),Se(t))},{}));continue;case"engineering":i=E(E(E({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return E(E({},e),Se(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(_e,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(Ae.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(ve.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ve,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),""});var a=o.options[0];"w"===a?i=E(E({},i),{trailingZeroDisplay:"stripIfInteger"}):a&&(i=E(E({},i),He(a)))}else Te.test(o.stem)?i=E(E({},i),He(o.stem)):((a=we(o.stem))&&(i=E(E({},i),a)),(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)),!Ae.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=E(E({},i),r)))}return i}var Ce={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Le=new RegExp("^".concat(i.source,"*")),Pe=new RegExp("".concat(i.source,"*$"));function B(e,t){return{start:e,end:t}}var i=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,Re=!!Object.fromEntries,Oe=!!String.prototype.codePointAt,Ie=!!String.prototype.trimStart,xe=!!String.prototype.trimEnd,De=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ue=!0;try{Ue="a"===(null==(h=Ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:h[0])}catch(b){Ue=!1}var Ge,$e,Fe=i?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ke=Ne?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},je=Re?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},Ve=Oe?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},Xe=Ie?function(e){return e.trimStart()}:function(e){return e.replace(Le,"")},ze=xe?function(e){return e.trimEnd()}:function(e){return e.replace(Pe,"")};function Ke(e,t){return new RegExp(e,t)}$e=Ue?(Ge=Ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ge.lastIndex=t,null!=(t=Ge.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=Ve(e,t);if(void 0===o||We(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 ke.apply(void 0,r)};c.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},c.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(m.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Ze(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o}else if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}else{a=this.clonePosition();this.bump(),r.push({type:y.pound,location:B(a,this.clonePosition())})}}}return{val:r,err:null}},c.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),o=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(o,"/>"),location:B(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Ze(this.char())?this.error(m.INVALID_TAG,B(e,this.clonePosition())):(n=this.clonePosition(),o!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,B(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:o,children:t,location:B(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,B(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,B(r,this.clonePosition()))):this.error(m.INVALID_TAG,B(r,this.clonePosition()))},c.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())},c.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=B(n,this.clonePosition());return{val:{type:y.literal,value:r,location:n},err:null}},c.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ze(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},c.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 ke.apply(void 0,t)},c.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),ke(n))},c.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,B(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},c.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=$e(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:B(e,this.clonePosition())}},c.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(m.EXPECT_ARGUMENT_TYPE,B(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((u=this.parseSimpleArgStyleIfPossible()).err)return u;if(0===(p=ze(u.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:B(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(d=B(r,this.clonePosition()),l&&Fe(null==l?void 0:l.style,"::",0)?(f=Xe(l.style.slice(2)),"number"===i?(u=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?u:{val:{type:y.number,value:n,location:d,style:u.val},err:null}:0===f.length?this.error(m.EXPECT_DATE_TIME_SKELETON,d):(h=f,this.locale&&(h=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Ce[t||""]||Ce[n||""]||Ce["".concat(n,"-001")]||Ce["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===o?"H":o}return n}(f,this.locale)),p={type:g.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},h.replace(Ee,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):{}},{val:{type:"date"===i?y.date:y.time,value:n,location:d,style:p},err:null})):{val:{type:"number"===i?y.number:"date"===i?y.date:y.time,value:n,location:d,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,B(h,E({},h)));this.bumpSpace();var u,p=this.parseIdentifierIfPossible(),d=0;if("select"!==i&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return u;this.bumpSpace(),p=this.parseIdentifierIfPossible(),d=u.val}var f,l=this.tryParsePluralOrSelectOptions(e,i,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(f=B(r,this.clonePosition()),"select"===i?{val:{type:y.select,value:n,options:je(l.val),location:f},err:null}:{val:{type:y.plural,value:n,options:je(l.val),offset:d,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null});default:return this.error(m.INVALID_ARGUMENT_TYPE,B(a,s))}},c.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},c.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(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(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}},c.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(Be).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(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:g.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Me(n):{}},err:null}},c.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 h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=B(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;a.push([s,{value:c.val,location:B(h,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===a.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:a,err:null}},c.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=B(r,this.clonePosition());return o?De(a*=n)?{val:a,err:null}:this.error(t,r):this.error(e,r)},c.prototype.offset=function(){return this.position.offset},c.prototype.isEOF=function(){return this.offset()===this.message.length},c.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},c.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ve(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},c.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},c.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))},c.prototype.bumpIf=function(e){if(Fe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},c.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},c.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},c.prototype.bumpSpace=function(){for(;!this.isEOF()&&We(this.char());)this.bump()},c.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Ye=c;function c(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ze(e){return 97<=e&&e<=122||65<=e&&e<=90}function We(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function qe(e,t){t=E({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Ye(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,fe(e)||me(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else ue(e)&&be(e.style)||(pe(e)||de(e))&&ye(e.style)?delete e.style.location:ge(e)&&n(e.children)})}(e.val),e.val}function Qe(e,t){var n=t&&t.cache?t.cache:ot,r=t&&t.serializer?t.serializer:nt;return(t&&t.strategy?t.strategy:function(e,t){return tt(e,this,1===e.length?Je:et,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Je(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function et(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function tt(e,t,n,r,o){return n.bind(t,e,r,o)}var nt=function(){return JSON.stringify(arguments)};function rt(){this.cache=Object.create(null)}rt.prototype.get=function(e){return this.cache[e]},rt.prototype.set=function(e,t){this.cache[e]=t};var v,h,ot={create:function(){return new rt}},at={variadic:function(e,t){return tt(e,this,et,t.cache.create(),t.serializer)},monadic:function(e,t){return tt(e,this,Je,t.cache.create(),t.serializer)}};(h=v=v||{}).MISSING_VALUE="MISSING_VALUE",h.INVALID_VALUE="INVALID_VALUE",h.MISSING_INTL_API="MISSING_INTL_API";le(bt,ct=Error),bt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,it,st,lt,ct,ht=bt,ut=(le(gt,lt=ht),gt),pt=(le(mt,st=ht),mt),dt=(le(ft,it=ht),ft);function ft(e,t){return it.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),v.MISSING_VALUE,t)||this}function mt(e,t,n){return st.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),v.INVALID_VALUE,n)||this}function gt(e,t,n,r){return lt.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),v.INVALID_VALUE,r)||this}function bt(e,t,n){e=ct.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function yt(e,t,n,r,o,a,i){if(1===e.length&&he(e[0]))return[{type:T.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var h=c[l];if(he(h))s.push({type:T.literal,value:h.value});else if(h.type===y.pound)"number"==typeof a&&s.push({type:T.literal,value:n.getNumberFormat(t).format(a)});else{var u=h.value;if(!(o&&u in o))throw new dt(u,i);u=o[u];if(h.type===y.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),s.push({type:"string"==typeof u?T.literal:T.object,value:u});else if(pe(h)){var p="string"==typeof h.style?r.date[h.style]:ye(h.style)?h.style.parsedOptions:void 0;s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(u)})}else if(de(h))p="string"==typeof h.style?r.time[h.style]:ye(h.style)?h.style.parsedOptions:r.time.medium,s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(u)});else if(ue(h))(p="string"==typeof h.style?r.number[h.style]:be(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),s.push({type:T.literal,value:n.getNumberFormat(t,p).format(u)});else{if(ge(h)){var d=h.children,f=h.value,m=o[f];if("function"!=typeof m)throw new pt(f,"function",i);f=m(yt(d,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(fe(h)){if(!(g=h.options[u]||h.options.other))throw new ut(h.value,u,Object.keys(h.options),i);s.push.apply(s,yt(g.value,t,n,r,o))}else if(me(h)){if(!(g=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new ht('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',v.MISSING_INTL_API,i);var m=n.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0)),g=h.options[m]||h.options.other}if(!g)throw new ut(h.value,u,Object.keys(h.options),i);s.push.apply(s,yt(g.value,t,n,r,o,u-(h.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===T.literal&&t.type===T.literal?n.value+=t.value:e.push(t),e},[])}function Et(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(i=T=T||{})[i.literal=0]="literal",i[i.object=1]="object",Object.defineProperty(u,"defaultLocale",{get:function(){return u.memoizedDefaultLocale||(u.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),u.memoizedDefaultLocale},enumerable:!1,configurable:!0}),u.memoizedDefaultLocale=null,u.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},u.__parse=qe,u.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"}}};var Bt=u;function u(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=i.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return yt(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=u.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?E(E(E({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=E(E({},n[t]),r[t]||{}),e},{})):n),e},E({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ce([void 0],t,!1)))},{cache:Et((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:at.variadic}),getDateTimeFormat:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ce([void 0],t,!1)))},{cache:Et(t.dateTime),strategy:at.variadic}),getPluralRules:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ce([void 0],t,!1)))},{cache:Et(t.pluralRules),strategy:at.variadic})}}const _={},vt=(e,t,n)=>n&&(t in _||(_[t]={}),e in _[t]||(_[t][e]=n),n),Tt=(t,n)=>{if(null!=n){if(n in _&&t in _[n])return _[n][t];var r=Ot(n);for(let e=0;e<r.length;e++){var o=function(e,t){if(!At(e))return null;e=function(e){return _t[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(o)return vt(t,n,o)}}};let _t;const A=X({});function At(e){return e in _t}function Ht(t,...n){delete _[t],A.update(e=>(e[t]=Q.all([e[t]||{},...n]),e))}r([A],([e])=>Object.keys(e)),A.subscribe(e=>_t=e);const wt={};function St(e){return wt[e]}function Mt(e){return null!=e&&Ot(e).some(e=>{return null==(e=St(e))?void 0:e.size})}const H={};function Ct(e){var t;return Mt(e)?(t=Ot(e).map(e=>{var t=St(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),H[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,wt[t].delete(n),0===wt[t].size&&delete wt[t],e().then(e=>e.default||e);var t,n})).then(e=>Ht(r,...e));var r})).then(()=>{if(Mt(e))return Ct(e);delete H[e]}),H[e]):e in H?H[e]:Promise.resolve()}const S={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Lt=X(!1);let Pt;const Nt=X(null);function Rt(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Ot(e,t=S.fallbackLocale){e=Rt(e);return t?[...new Set([...e,...Rt(t)])]:e}function M(){return null!=Pt?Pt:void 0}Nt.subscribe(e=>{Pt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const C={...Nt,set:t=>{if(t&&function(e){if(null!=e){var t=Ot(e);for(let e=0;e<t.length;e++){var n=t[e];if(At(n))return n}}}(t)&&Mt(t)){var n=S["loadingDelay"];let e;return"undefined"!=typeof window&&null!=M()&&n?e=window.setTimeout(()=>Lt.set(!0),n):Lt.set(!0),Ct(t).then(()=>{Nt.set(t)}).finally(()=>{clearTimeout(e),Lt.set(!1)})}return Nt.set(t)}},It=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},L=(e,t)=>{var n=S["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xt=It(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=L("number",t)),new Intl.NumberFormat(e,n)}),Dt=It(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=L("date",t):0===Object.keys(n).length&&(n=L("date","short")),new Intl.DateTimeFormat(e,n)}),Ut=It(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=L("time",t):0===Object.keys(n).length&&(n=L("time","short")),new Intl.DateTimeFormat(e,n)}),Gt=It((e,t=M())=>new Bt(e,t,S.formats,{ignoreTag:S.ignoreTag})),$t=r([C,A],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:a,locale:i=M(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Tt(e,i);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=S).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!a)return l;let c=l;try{c=Gt(l,i).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function Ft(e,t){Ht(e,t)}r([C],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],Ut({locale:t,...n}).format(e);var n}),r([C],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],Dt({locale:t,...n}).format(e);var n}),r([C],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],xt({locale:t,...n}).format(e);var n}),r([C,A],()=>(e,t=M())=>Tt(e,t));const kt={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},"zh-hk":{balanceModal:{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"}},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:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"}},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 jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vt=function(n){var _=n={path:void 0,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},e=n.exports,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:jt:globalThis,P=t.setTimeout,N=t.clearTimeout,R=t.XMLHttpRequest,r=t.XDomainRequest,o=t.ActiveXObject,a=t.EventSource,i=t.document,u=t.Promise,p=t.fetch,s=t.Response,d=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;{var c;"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==R&&null!=o&&(R=function(){return new o("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==f&&(c=p,p=function(e,t){var n=t.signal;return c(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}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}})}function h(){this.bitsNeeded=0,this.codePoint=0}h.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=(r+=String.fromCharCode(55296+(a-65535-1>>10)))+String.fromCharCode(56320+(a-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=a,r},null!=d&&null!=l&&function(){try{return"test"===(new d).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(d=h);function m(){}function O(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=m}function g(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function b(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[g(a)]=o}this._map=t}function I(){}function y(e){this._headers=e}function x(){}function D(){this._listeners=Object.create(null)}function E(e){P(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 G(e,t){B.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function $(e,t){B.call(this,e),this.error=t.error}O.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:m}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(N(r),r=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 o=this,a=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==o._sendTimeout&&(N(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=m,a.onerror=m,a.onabort=m,a.onprogress=m,a.onreadystatechange=m,a.abort(),0!==r&&(N(r),r=0),e)||(o.readyState=4,o.onabort(null),o.onreadystatechange()),i=0},function(){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())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){r=P(function(){c()},500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){n("load",e)}),"onerror"in a&&(a.onerror=function(e){n("error",e)}),"onabort"in a&&(a.onabort=function(e){n("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||n(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&s())}),!("contentType"in a)&&"ontimeout"in R.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(r=P(function(){c()},0))},O.prototype.abort=function(){this._abort(!1)},O.prototype.getResponseHeader=function(e){return this._contentType},O.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},O.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},O.prototype.send=function(){if("ontimeout"in R.prototype&&("sendAsBinary"in R.prototype||"mozAnon"in R.prototype)||null==i||null==i.readyState||"complete"===i.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=P(function(){t._sendTimeout=0,t.send()},4)}},b.prototype.get=function(e){return this._map[g(e)]},null!=R&&null==R.HEADERS_RECEIVED&&(R.HEADERS_RECEIVED=2),I.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 b(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},y.prototype.get=function(e){return this._headers.get(e)},x.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new f,c=l.signal,h=new d;return p(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 y(e.headers)),new u(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=h.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()}}},D.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)}}},D.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)},D.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),G.prototype=Object.create(B.prototype),$.prototype=Object.create(B.prototype);function F(e,t){e=null==e?t:parseInt(e,10);return j(e=e!=e?t:e)}function k(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){E(e)}}var A=-1,H=0,w=1,S=2,M=-1,C=0,L=1,V=2,X=3,z=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function v(e,t){var l,a,i,c,h,u,p,d,f,n,s,m,g,b,y,E,B,v,T,_,A,H,w,S,M,C,L;D.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,l=this,a=e,e=t,a=String(a),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=j(1e3),h=F(e.heartbeatTimeout,45e3),u="",p=c,d=!1,f=0,n=e.headers||{},e=e.Transport,s=K&&null==e?void 0:new O(new(null!=e?e:null!=R&&"withCredentials"in R.prototype||null==r?R:r)),m=new(null!=e&&"string"!=typeof e?e:null==s?x:I),g=void 0,y=-1,T=v=B=E="",H=A=_=b=0,w=function(e,t,n,r){var o,a;0===y&&(200===e&&null!=n&&z.test(n)?(y=1,d=Date.now(),p=c,l.readyState=1,o=new G("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),k(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.",C(),o=new G("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),k(l,l.onerror,o),console.error(a)))},S=function(e){if(1===y){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?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(d=Date.now(),f+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===_&&i==="\n".charCodeAt(0))_=0;else if(-1===_&&(_=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==_&&(1===_&&(H=o+1),s=r.slice(A,H-1),a=r.slice(H+(H<o&&r.charCodeAt(H)===" ".charCodeAt(0)?1:0),o),"data"===s?E=E+"\n"+a:"id"===s?B=a:"event"===s?v=a:"retry"===s?(c=F(a,c),p=c):"heartbeatTimeout"===s&&(h=F(a,h),0!==b)&&(N(b),b=P(function(){L()},h))),0===_){if(""!==E){u=B;var s=new U(v=""===v?"message":v,{data:E.slice(1),lastEventId:B});if(l.dispatchEvent(s),"open"===v?k(l,l.onopen,s):"message"===v?k(l,l.onmessage,s):"error"===v&&k(l,l.onerror,s),2===y)return}v=E=""}_=i==="\r".charCodeAt(0)?-1:0}else 0===_&&(A=o,_=1),1===_?i===":".charCodeAt(0)&&(H=o+1,_=2):2===_&&(_=3)}}},M=function(e){var t;1!==y&&0!==y||(y=-1,0!==b&&(N(b),b=0),b=P(function(){L()},p),p=j(Math.min(16*c,2*p)),l.readyState=0,t=new $("error",{error:e}),l.dispatchEvent(t),k(l,l.onerror,t),null!=e&&console.error(e))},C=function(){y=2,null!=g&&(g.abort(),g=void 0),0!==b&&(N(b),b=0),l.readyState=2},L=function(){if(b=0,-1===y){d=!1,f=0,b=P(function(){L()},h),B=u,T=v=E="",_=H=A=y=0;var e=a,t=("data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==u&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(u)),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{g=m.open(s,w,S,M,e,t,n)}catch(e){throw C(),e}}else d||null==g?(e=Math.max((d||Date.now())+h-Date.now(),1),d=!1,b=P(function(){L()},e)):(M(new Error("No activity within "+h+" milliseconds. "+(0===y?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=C,L()}var K=null!=p&&null!=s&&"body"in s.prototype;(v.prototype=Object.create(D.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;var T=a;return null==R||null!=a&&"withCredentials"in a.prototype||(T=v),void 0!==(t=function(e){e.EventSourcePolyfill=v,e.NativeEventSource=a,e.EventSource=T}(e)),n.exports}();function Xt(n){let r,o,U,a,i,s,l,G,c,h,u,p,$,d,f,m,F,g,b,k,y,E,B,j,v,T,V,_,A,X,H,w,S,z,M,C,K,L,Y,Z,P,N,W,q,Q,R=n[4]("balanceModal.balanceTitle")+"",O=n[4]("balanceModal.totalBalance")+"",I=n[4]("balanceModal.cashBalance")+"",x=n[4]("balanceModal.bonusBalance")+"",D=n[4]("balanceModal.depositButton")+"";return{c(){r=e("div"),o=e("div"),U=te(),a=e("div"),i=e("div"),s=e("p"),l=t(R),G=te(),c=e("div"),h=e("div"),u=e("p"),p=t(O),$=te(),d=e("p"),f=e("span"),m=t(n[2]),F=te(),g=e("span"),b=t(n[3]),k=te(),y=e("div"),E=e("p"),B=t(I),j=te(),v=e("p"),(T=e("span")).textContent=""+n[8](n[5].get("Casino").balanceAmount),V=te(),_=e("span"),A=t(n[3]),X=te(),H=e("div"),w=e("p"),S=t(x),z=te(),M=e("p"),(C=e("span")).textContent=""+n[8](n[5].get("UBS").balanceAmount),K=te(),L=e("span"),Y=t(n[3]),Z=te(),P=e("div"),N=e("button"),W=t(D),ne(o,"class","BalanceModalClose"),ne(s,"class","BalanceModalTitle"),ne(s,"part","BalanceModalTitle"),ne(i,"class","BalanceModalHeader"),ne(i,"part","BalanceModalHeader"),ne(u,"class","BalanceModalText"),ne(u,"part","BalanceModalText"),ne(f,"class","BalanceModalAmount"),ne(f,"part","BalanceModalAmount"),ne(g,"class","BalanceModalCurrency"),ne(g,"part","BalanceModalCurrency"),ne(d,"class","BalanceModalValue"),ne(d,"part","BalanceModalValue"),ne(h,"class","BalanceModalRow"),ne(h,"part","BalanceModalRow"),ne(E,"class","BalanceModalText"),ne(E,"part","BalanceModalText"),ne(T,"class","BalanceModalAmount"),ne(T,"part","BalanceModalAmount"),ne(_,"class","BalanceModalCurrency"),ne(_,"part","BalanceModalCurrency"),ne(v,"class","BalanceModalValue"),ne(v,"part","BalanceModalValue"),ne(y,"class","BalanceModalRow"),ne(y,"part","BalanceModalRow"),ne(w,"class","BalanceModalText"),ne(w,"part","BalanceModalText"),ne(C,"class","BalanceModalAmount"),ne(C,"part","BalanceModalAmount"),ne(L,"class","BalanceModalCurrency"),ne(L,"part","BalanceModalCurrency"),ne(M,"class","BalanceModalValue"),ne(M,"part","BalanceModalValue"),ne(H,"class","BalanceModalRow"),ne(H,"part","BalanceModalRow"),ne(c,"class","BalanceModalBody"),ne(c,"part","BalanceModalBody"),ne(N,"class","BalanceModalAction"),ne(N,"part","BalanceModalAction"),ne(P,"class","BalanceModalFooter"),ne(P,"part","BalanceModalFooter"),ne(a,"class","BalanceModal"),ne(a,"part","BalanceModal"),ne(r,"class","BalanceModalWrapper"),ne(r,"part","BalanceModalWrapper")},m(e,t){oe(e,r,t),ee(r,o),ee(r,U),ee(r,a),ee(a,i),ee(i,s),ee(s,l),ee(a,G),ee(a,c),ee(c,h),ee(h,u),ee(u,p),ee(h,$),ee(h,d),ee(d,f),ee(f,m),ee(d,F),ee(d,g),ee(g,b),ee(c,k),ee(c,y),ee(y,E),ee(E,B),ee(y,j),ee(y,v),ee(v,T),ee(v,V),ee(v,_),ee(_,A),ee(c,X),ee(c,H),ee(H,w),ee(w,S),ee(H,z),ee(H,M),ee(M,C),ee(M,K),ee(M,L),ee(L,Y),ee(a,Z),ee(a,P),ee(P,N),ee(N,W),q||(Q=[ie(o,"click",n[18]),ie(N,"click",n[19])],q=!0)},p(e,t){16&t[0]&&R!==(R=e[4]("balanceModal.balanceTitle")+"")&&re(l,R),16&t[0]&&O!==(O=e[4]("balanceModal.totalBalance")+"")&&re(p,O),4&t[0]&&re(m,e[2]),8&t[0]&&re(b,e[3]),16&t[0]&&I!==(I=e[4]("balanceModal.cashBalance")+"")&&re(B,I),8&t[0]&&re(A,e[3]),16&t[0]&&x!==(x=e[4]("balanceModal.bonusBalance")+"")&&re(S,x),8&t[0]&&re(Y,e[3]),16&t[0]&&D!==(D=e[4]("balanceModal.depositButton")+"")&&re(W,D)},d(e){e&&ae(r),q=!1,J(Q)}}}function zt(n){let r,o,a;return{c(){ne(r=e("div"),"class","ShowBalanceModalOverlay"),ne(r,"part","ShowBalanceModalOverlay")},m(e,t){oe(e,r,t),o||(a=ie(r,"click",n[20]),o=!0)},p:b,d(e){e&&ae(r),o=!1,a()}}}function Kt(n){let r,o,a,i,s,l,c,h,u,p,d,f,m=n[1]&&Xt(n),g=n[1]&&zt(n);return{c(){r=e("div"),o=e("div"),a=e("p"),i=t(n[2]),s=te(),l=t(n[3]),c=te(),(h=e("span")).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=te(),m&&m.c(),p=te(),g&&g.c(),this.c=b,ne(a,"class","BalanceValue"),ne(a,"part","BalanceValue"),ne(o,"class","ShowBalance"),ne(o,"part","ShowBalance")},m(e,t){oe(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(a,s),ee(a,l),ee(a,c),ee(a,h),ee(o,u),m&&m.m(o,null),ee(r,p),g&&g.m(r,null),n[21](r),d||(f=ie(a,"click",n[17]),d=!0)},p(e,t){4&t[0]&&re(i,e[2]),8&t[0]&&re(l,e[3]),e[1]?m?m.p(e,t):((m=Xt(e)).c(),m.m(o,null)):m&&(m.d(1),m=null),e[1]?g?g.p(e,t):((g=zt(e)).c(),g.m(r,null)):g&&(g.d(1),g=null)},i:b,o:b,d(e){e&&ae(r),m&&m.d(),g&&g.d(),n[21](null),d=!1,f()}}}function Yt(t,e,o){let n;var r=$t;t.$$.on_destroy.push(I(r,e=>o(4,n=e)));let a,i,{userid:s=""}=e,{session:l=""}=e,{endpoint:c=""}=e,{lang:h="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:p=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:f=""}=e,m=!1,g="",b="",y=!1,E=new Map;Object.keys(kt).forEach(e=>{Ft(e,kt[e])});const B=e=>{switch(e){case"balance":o(1,m=!0);break;case"closebalance":o(1,m=!1)}},v=(e,t)=>{e=new Vt.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});i&&i.close(),(i=e).addEventListener("message",e=>{try{var t=JSON.parse(e.data)["balanceChange"],n=E.get("Casino"),r=E.get("UBS");t&&t[n.id]&&E.set("Casino",Object.assign(Object.assign({},n),{balanceAmount:t[n.id].afterAmount})),t&&t[r.id]&&E.set("UBS",Object.assign(Object.assign({},r),{balanceAmount:t[r.id].afterAmount})),n=E.get("Casino"),r=E.get("UBS"),o(2,g=A(Number((parseFloat(n.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))))}catch(e){console.log("Balance stream failed: ",e),v(`${c}/player/${s}/balance/updates`,l)}})},T=()=>{B("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},_=()=>{return f.includes(h)?f:h},A=e=>new Intl.NumberFormat(_()).format(e),H=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&i.close()};return r=()=>(window.addEventListener("message",H,!1),()=>{window.removeEventListener("message",H),i&&i.close()}),function(){if(w)return w;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r),t.$$set=e=>{"userid"in e&&o(9,s=e.userid),"session"in e&&o(10,l=e.session),"endpoint"in e&&o(11,c=e.endpoint),"lang"in e&&o(12,h=e.lang),"clientstyling"in e&&o(13,u=e.clientstyling),"clientstylingurl"in e&&o(14,p=e.clientstylingurl),"translationurl"in e&&o(15,d=e.translationurl),"customlocaleidentifier"in e&&o(16,f=e.customlocaleidentifier)},t.$$.update=()=>{if(4096&t.$$.dirty[0]&&h&&_(),7680&t.$$.dirty[0]&&c&&s&&l&&h&&(e=h,C.set(e),(async e=>{try{y=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw y=!1,new Error("Failed to fetch balance data !");{y=!1,n.items.map(e=>E.set(e.displayName,e));const e=E.get("Casino"),r=E.get("UBS");o(3,b=e.currency),o(2,g=A(Number((parseFloat(e.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))))}}catch(e){y=!1,console.log("Balance error: ",e)}finally{y=!1}})(`${c}/player/${s}/account`)),3584&t.$$.dirty[0]&&c&&s&&l&&v(`${c}/player/${s}/balance/updates`,l),8193&t.$$.dirty[0]&&u&&a&&((e=document.createElement("style")).innerHTML=u,a.appendChild(e)),16385&t.$$.dirty[0]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1)})}var e;32768&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ft(e,t[e])})}).catch(e=>{console.log(e)})},[a,m,g,b,n,E,B,T,A,s,l,c,h,u,p,d,f,()=>B("balance"),()=>B("closebalance"),()=>T(),()=>B("closebalance"),function(e){x[e?"unshift":"push"](()=>{a=e,o(0,a)})}]}class Zt extends V{constructor(e){super();var t=document.createElement("style");t.textContent=':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;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}.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}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:function(e){var t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Yt,Kt,O,{userid:9,session:10,endpoint:11,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,customlocaleidentifier:16},null,[-1,-1]),e&&(e.target&&oe(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["userid","session","endpoint","lang","clientstyling","clientstylingurl","translationurl","customlocaleidentifier"]}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),f()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),f()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),f()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),f()}get customlocaleidentifier(){return this.$$.ctx[16]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),f()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",Zt),Zt});
|
|
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 g(){}function _(e){return e()}function S(){return Object.create(null)}function O(e){e.forEach(_)}function H(e){return"function"==typeof e}function R(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function P(e,...t){if(null==e)return g;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function re(e,t){e.appendChild(t)}function ie(e,t,n){e.insertBefore(t,n||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function le(e){return document.createTextNode(e)}function ce(){return le(" ")}function x(e,t,n,a){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)}function he(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ue(e,t){e.data!==(t=""+t)&&(e.data=t)}let C;function p(e){C=e}const d=[],N=[];let r=[];const I=[],D=Promise.resolve();let U=!1;function G(e){r.push(e)}const $=new Set;let o=0;function f(){if(0===o){const a=C;do{try{for(;o<d.length;){const a=d[o];o++,p(a),e=t=void 0;var e,t=a.$$;null!==t.fragment&&(t.update(),O(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(G))}}catch(a){throw d.length=0,o=0,a}for(p(null),d.length=0,o=0;N.length;)N.pop()();for(let e=0;e<r.length;e+=1){var n=r[e];$.has(n)||($.add(n),n())}}while(r.length=0,d.length);for(;I.length;)I.pop()();U=!1,$.clear(),p(a)}}const F=new Set;function k(a,e,t,n,o,r,i,s=[-1]){var l=C;p(a);const c=a.$$={fragment:null,ctx:[],props:r,update:g,not_equal:o,bound:S(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:S(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let h=!1;if(c.ctx=t?t(a,e.props||{},(e,t,...n)=>{var 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),h)&&(n=e,-1===(e=a).$$.dirty[0]&&(d.push(e),U||(U=!0,D.then(f)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),h=!0,O(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){r=e.target;const g=Array.from(r.childNodes);c.fragment&&c.fragment.l(g),g.forEach(se)}else c.fragment&&c.fragment.c();e.intro&&(s=a.$$.fragment)&&s.i&&(F.delete(s),s.i(void 0));var u=a,i=e.target,t=e.anchor,n=e.customElement,{fragment:r,after_update:s}=u.$$;r&&r.m(i,t),n||G(()=>{var e=u.$$.on_mount.map(_).filter(H);u.$$.on_destroy?u.$$.on_destroy.push(...e):O(e),u.$$.on_mount=[]}),s.forEach(G),f()}p(l)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(_).filter(H);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){O(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const a=[],o=[];r.forEach(e=>(-1===n.indexOf(e)?a:o).push(e)),o.forEach(e=>e()),r=a}O(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=g}$on(e,t){if(!H(t))return g;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 n=[];function V(a,o=g){let r;const i=new Set;function s(e){if(R(a,e)&&(a=e,r)){const e=!n.length;for(const e of i)e[1](),n.push(e,a);if(e){for(let e=0;e<n.length;e+=2)n[e][0](n[e+1]);n.length=0}}}return{set:s,update:function(e){s(e(a))},subscribe:function(e,t=g){const n=[e,t];return i.add(n),1===i.size&&(r=o(s)||g),e(a),()=>{i.delete(n),0===i.size&&r&&(r(),r=null)}}}}function e(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,h=s.length<2;return{subscribe:V(t,t=>{let n=!1;const a=[];let o=0,r=g;const i=()=>{var e;o||(r(),e=s(l?a[0]:a,t),h?t(e):r=H(e)?e:g)},e=c.map((e,t)=>P(e,e=>{a[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){O(e),r(),n=!1}}).subscribe}}function X(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===z);var t}var z="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function K(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function Y(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function Z(e,t){try{return t in e}catch(e){return!1}}function W(a,o,r){var i={};return r.isMergeableObject(a)&&Y(a).forEach(function(e){i[e]=s(a[e],r)}),Y(o).forEach(function(e){var t,n;(!Z(t=a,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(Z(a,e)&&r.isMergeableObject(o[e])?i[e]=((t=r).customMerge&&"function"==typeof(t=t.customMerge(e))?t:l)(a[e],o[e],r):i[e]=s(o[e],r))}),i}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||K,n.isMergeableObject=n.isMergeableObject||X,n.cloneUnlessOtherwiseSpecified=s;var a=Array.isArray(t);return a===Array.isArray(e)?a?n.arrayMerge(e,t,n):W(e,t,n):s(t,n)}l.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return l(e,t,n)},{});throw new Error("first argument should be an array")};var q=l,Q=function(e,t){return(Q=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 J(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}Q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,y,b,B=function(){return(B=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ee(e,t,n){if(n||2===arguments.length)for(var a,o=0,r=t.length;o<r;o++)!a&&o in t||((a=a||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}function te(e){return e.type===y.literal}function ne(e){return e.type===y.number}function ae(e){return e.type===y.date}function oe(e){return e.type===y.time}function pe(e){return e.type===y.select}function de(e){return e.type===y.plural}function fe(e){return e.type===y.tag}function me(e){return e&&"object"==typeof e&&e.type===b.number}function be(e){return e&&"object"==typeof e&&e.type===b.dateTime}(a=m=m||{})[a.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",a[a.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",a[a.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",a[a.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",a[a.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",a[a.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",a[a.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",a[a.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",a[a.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",a[a.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",a[a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",a[a.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",a[a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",a[a.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",a[a.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",a[a.INVALID_TAG=23]="INVALID_TAG",a[a.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",a[a.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",a[a.UNCLOSED_TAG=27]="UNCLOSED_TAG",(a=y=y||{})[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",(a=b=b||{})[a.number=0]="number",a[a.dateTime=1]="dateTime";var a=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ge=/(?:[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 ye=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Be=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ee=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function Me(e){var a={};return"r"===e[e.length-1]?a.roundingPriority="morePrecision":"s"===e[e.length-1]&&(a.roundingPriority="lessPrecision"),e.replace(Ee,function(e,t,n){return"string"!=typeof n?(a.minimumSignificantDigits=t.length,a.maximumSignificantDigits=t.length):"+"===n?a.minimumSignificantDigits=t.length:"#"===t[0]?a.maximumSignificantDigits=t.length:(a.minimumSignificantDigits=t.length,a.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),a}function we(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 Ae(e){return we(e)||{}}function _e(e){for(var i={},t=0,n=e;t<n.length;t++){var a,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=B(B(B({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return B(B({},e),Ae(t))},{}));continue;case"engineering":i=B(B(B({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return B(B({},e),Ae(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(ve,function(e,t,n,a,o,r){if(t)i.minimumIntegerDigits=n.length;else{if(a&&o)throw new Error("We currently do not support maximum integer digits");if(r)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Te.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(Be.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Be,function(e,t,n,a,o,r){return"*"===n?i.minimumFractionDigits=t.length:a&&"#"===a[0]?i.maximumFractionDigits=a.length:o&&r?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+r.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var r=o.options[0];"w"===r?i=B(B({},i),{trailingZeroDisplay:"stripIfInteger"}):r&&(i=B(B({},i),Me(r)))}else Ee.test(o.stem)?i=B(B({},i),Me(o.stem)):((r=we(o.stem))&&(i=B(B({},i),r)),(a=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)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=B(B({},i),a)))}return i}var Se={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var He=new RegExp("^".concat(a.source,"*")),Ce=new RegExp("".concat(a.source,"*$"));function E(e,t){return{start:e,end:t}}var a=!!String.prototype.startsWith,Le=!!String.fromCodePoint,Re=!!Object.fromEntries,Pe=!!String.prototype.codePointAt,Ne=!!String.prototype.trimStart,Ie=!!String.prototype.trimEnd,Oe=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xe=!0;try{xe="a"===(null==(c=Xe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:c[0])}catch(g){xe=!1}var De,Ue,Ge=a?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},$e=Le?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,a="",o=e.length,r=0;r<o;){if(1114111<(n=e[r++]))throw RangeError(n+" is not a valid code point");a+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return a},Fe=Re?Object.fromEntries:function(e){for(var t={},n=0,a=e;n<a.length;n++){var o=a[n],r=o[0],o=o[1];t[r]=o}return t},ke=Pe?function(e,t){return e.codePointAt(t)}:function(e,t){var n,a=e.length;if(!(t<0||a<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===a||(a=e.charCodeAt(t+1))<56320||57343<a?n:a-56320+(n-55296<<10)+65536},je=Ne?function(e){return e.trimStart()}:function(e){return e.replace(He,"")},Ve=Ie?function(e){return e.trimEnd()}:function(e){return e.replace(Ce,"")};function Xe(e,t){return new RegExp(e,t)}Ue=xe?(De=Xe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return De.lastIndex=t,null!=(t=De.exec(e)[1])?t:""}):function(e,t){for(var n,a=[];;){var o=ke(e,t);if(void 0===o||Ye(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;a.push(o),t+=65536<=o?2:1}return $e.apply(void 0,a)};i.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},i.prototype.parseMessage=function(e,t,n){for(var a=[];!this.isEOF();){var o,r=this.char();if(123===r){if((o=this.parseArgument(e,n)).err)return o;a.push(o.val)}else{if(125===r&&0<e)break;if(35!==r||"plural"!==t&&"selectordinal"!==t){if(60===r&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===r&&!this.ignoreTag&&Ke(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o}else if((o=this.parseLiteral(e,t)).err)return o;a.push(o.val)}else{r=this.clonePosition();this.bump(),a.push({type:y.pound,location:E(r,this.clonePosition())})}}}return{val:a,err:null}},i.prototype.parseTag=function(e,t){var n,a=this.clonePosition(),o=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(o,"/>"),location:E(a,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Ke(this.char())?this.error(m.INVALID_TAG,E(e,this.clonePosition())):(n=this.clonePosition(),o!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,E(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:o,children:t,location:E(a,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,E(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,E(a,this.clonePosition()))):this.error(m.INVALID_TAG,E(a,this.clonePosition()))},i.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())},i.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(t);if(o)a+=o;else{o=this.tryParseUnquoted(e,t);if(o)a+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;a+=o}}}n=E(n,this.clonePosition());return{val:{type:y.literal,value:a,location:n},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ke(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},i.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 $e.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),$e(n))},i.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,E(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(m.MALFORMED_ARGUMENT,E(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:a,location:E(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition())):this.parseArgumentOptions(e,t,a,n);default:return this.error(m.MALFORMED_ARGUMENT,E(n,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Ue(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:E(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,n,a){var o,r=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,E(r,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((u=this.parseSimpleArgStyleIfPossible()).err)return u;if(0===(p=Ve(u.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:E(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(a)).err?c:(d=E(a,this.clonePosition()),l&&Ge(null==l?void 0:l.style,"::",0)?(f=je(l.style.slice(2)),"number"===i?(u=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?u:{val:{type:y.number,value:n,location:d,style:u.val},err:null}:0===f.length?this.error(m.EXPECT_DATE_TIME_SKELETON,d):(h=f,this.locale&&(h=function(e,t){for(var n="",a=0;a<e.length;a++){var o=e.charAt(a);if("j"===o){for(var r=0;a+1<e.length&&e.charAt(a+1)===o;)r++,a++;var i=1+(1&r),s=r<2?1:3+(r>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Se[t||""]||Se[n||""]||Se["".concat(n,"-001")]||Se["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===o?"H":o}return n}(f,this.locale)),p={type:b.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},h.replace(ge,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):{}},{val:{type:"date"===i?y.date:y.time,value:n,location:d,style:p},err:null})):{val:{type:"number"===i?y.number:"date"===i?y.date:y.time,value:n,location:d,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,E(h,B({},h)));this.bumpSpace();var u,p=this.parseIdentifierIfPossible(),d=0;if("select"!==i&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return u;this.bumpSpace(),p=this.parseIdentifierIfPossible(),d=u.val}var f,l=this.tryParsePluralOrSelectOptions(e,i,t,p);return l.err?l:(c=this.tryParseArgumentClose(a)).err?c:(f=E(a,this.clonePosition()),"select"===i?{val:{type:y.select,value:n,options:Fe(l.val),location:f},err:null}:{val:{type:y.plural,value:n,options:Fe(l.val),offset:d,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null});default:return this.error(m.INVALID_ARGUMENT_TYPE,E(r,s))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.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(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(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}},i.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,a=e.split(ye).filter(function(e){return 0<e.length});n<a.length;n++){var o=a[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var r=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:r,options:o})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:b.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?_e(n):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,n,a){for(var o=!1,r=[],i=new Set,s=a.value,l=a.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=E(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;r.push([s,{value:c.val,location:E(h,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===r.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:r,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,r=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,r=10*r+(i-48),this.bump()}a=E(a,this.clonePosition());return o?Oe(r*=n)?{val:r,err:null}:this.error(t,a):this.error(e,a)},i.prototype.offset=function(){return this.position.offset},i.prototype.isEOF=function(){return this.offset()===this.message.length},i.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},i.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ke(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},i.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},i.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))},i.prototype.bumpIf=function(e){if(Ge(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},i.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},i.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ye(this.char());)this.bump()},i.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var ze=i;function i(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ke(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ye(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ze(e,t){t=B({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new ze(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,pe(e)||de(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else ne(e)&&me(e.style)||(ae(e)||oe(e))&&be(e.style)?delete e.style.location:fe(e)&&n(e.children)})}(e.val),e.val}function We(e,t){var n=t&&t.cache?t.cache:nt,a=t&&t.serializer?t.serializer:et;return(t&&t.strategy?t.strategy:function(e,t){return Je(e,this,1===e.length?qe:Qe,t.cache.create(),t.serializer)})(e,{cache:n,serializer:a})}function qe(e,t,n,a){var n=null==a||"number"==typeof a||"boolean"==typeof a?a:n(a),o=t.get(n);return void 0===o&&(o=e.call(this,a),t.set(n,o)),o}function Qe(e,t,n){var a=Array.prototype.slice.call(arguments,3),n=n(a),o=t.get(n);return void 0===o&&(o=e.apply(this,a),t.set(n,o)),o}function Je(e,t,n,a,o){return n.bind(t,e,a,o)}var et=function(){return JSON.stringify(arguments)};function tt(){this.cache=Object.create(null)}tt.prototype.get=function(e){return this.cache[e]},tt.prototype.set=function(e,t){this.cache[e]=t};var v,c,nt={create:function(){return new tt}},at={variadic:function(e,t){return Je(e,this,Qe,t.cache.create(),t.serializer)},monadic:function(e,t){return Je(e,this,qe,t.cache.create(),t.serializer)}};(c=v=v||{}).MISSING_VALUE="MISSING_VALUE",c.INVALID_VALUE="INVALID_VALUE",c.MISSING_INTL_API="MISSING_INTL_API";J(mt,st=Error),mt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,ot,rt,it,st,lt=mt,ct=(J(ft,it=lt),ft),ht=(J(dt,rt=lt),dt),ut=(J(pt,ot=lt),pt);function pt(e,t){return ot.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),v.MISSING_VALUE,t)||this}function dt(e,t,n){return rt.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),v.INVALID_VALUE,n)||this}function ft(e,t,n,a){return it.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),v.INVALID_VALUE,a)||this}function mt(e,t,n){e=st.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function bt(e,t,n,a,o,r,i){if(1===e.length&&te(e[0]))return[{type:T.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var h=c[l];if(te(h))s.push({type:T.literal,value:h.value});else if(h.type===y.pound)"number"==typeof r&&s.push({type:T.literal,value:n.getNumberFormat(t).format(r)});else{var u=h.value;if(!(o&&u in o))throw new ut(u,i);u=o[u];if(h.type===y.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),s.push({type:"string"==typeof u?T.literal:T.object,value:u});else if(ae(h)){var p="string"==typeof h.style?a.date[h.style]:be(h.style)?h.style.parsedOptions:void 0;s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(u)})}else if(oe(h))p="string"==typeof h.style?a.time[h.style]:be(h.style)?h.style.parsedOptions:a.time.medium,s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(u)});else if(ne(h))(p="string"==typeof h.style?a.number[h.style]:me(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),s.push({type:T.literal,value:n.getNumberFormat(t,p).format(u)});else{if(fe(h)){var d=h.children,f=h.value,m=o[f];if("function"!=typeof m)throw new ht(f,"function",i);f=m(bt(d,t,n,a,o,r).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(pe(h)){if(!(b=h.options[u]||h.options.other))throw new ct(h.value,u,Object.keys(h.options),i);s.push.apply(s,bt(b.value,t,n,a,o))}else if(de(h)){if(!(b=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new lt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',v.MISSING_INTL_API,i);var m=n.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0)),b=h.options[m]||h.options.other}if(!b)throw new ct(h.value,u,Object.keys(h.options),i);s.push.apply(s,bt(b.value,t,n,a,o,u-(h.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===T.literal&&t.type===T.literal?n.value+=t.value:e.push(t),e},[])}function gt(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(a=T=T||{})[a.literal=0]="literal",a[a.object=1]="object",Object.defineProperty(h,"defaultLocale",{get:function(){return h.memoizedDefaultLocale||(h.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),h.memoizedDefaultLocale},enumerable:!1,configurable:!0}),h.memoizedDefaultLocale=null,h.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},h.__parse=Ze,h.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"}}};var yt=h;function h(e,t,n,a){var o,r,i=this;if(void 0===t&&(t=h.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=i.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return bt(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=h.resolveLocale(t),"string"==typeof e){if(this.message=e,!h.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=h.__parse(e,{ignoreTag:null==a?void 0:a.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=h.formats,(r=n)?Object.keys(o).reduce(function(e,t){var n,a;return e[t]=(n=o[t],(a=r[t])?B(B(B({},n||{}),a||{}),Object.keys(n).reduce(function(e,t){return e[t]=B(B({},n[t]),a[t]||{}),e},{})):n),e},B({},o)):o),this.formatters=a&&a.formatters||{getNumberFormat:We(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ee([void 0],t,!1)))},{cache:gt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:at.variadic}),getDateTimeFormat:We(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ee([void 0],t,!1)))},{cache:gt(t.dateTime),strategy:at.variadic}),getPluralRules:We(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ee([void 0],t,!1)))},{cache:gt(t.pluralRules),strategy:at.variadic})}}const u={},Bt=(e,t,n)=>n&&(t in u||(u[t]={}),e in u[t]||(u[t][e]=n),n),Et=(t,n)=>{if(null!=n){if(n in u&&t in u[n])return u[n][t];var a=Nt(n);for(let e=0;e<a.length;e++){var o=function(e,t){if(!Tt(e))return null;e=function(e){return vt[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var a=n.split(".");let t=e;for(let e=0;e<a.length;e++)if("object"==typeof t){if(0<e){const n=a.slice(e,a.length).join(".");if(n in t){t=t[n];break}}t=t[a[e]]}else t=void 0;return t}}}(a[e],t);if(o)return Bt(t,n,o)}}};let vt;const M=V({});function Tt(e){return e in vt}function Mt(t,...n){delete u[t],M.update(e=>(e[t]=q.all([e[t]||{},...n]),e))}e([M],([e])=>Object.keys(e)),M.subscribe(e=>vt=e);const wt={};function At(e){return wt[e]}function _t(e){return null!=e&&Nt(e).some(e=>{return null==(e=At(e))?void 0:e.size})}const St={};function Ht(e){var t;return _t(e)?(t=Nt(e).map(e=>{var t=At(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),St[e]=Promise.all(t.map(([e,t])=>{return a=e,Promise.all(t.map(e=>{return t=a,n=e,wt[t].delete(n),0===wt[t].size&&delete wt[t],e().then(e=>e.default||e);var t,n})).then(e=>Mt(a,...e));var a})).then(()=>{if(_t(e))return Ht(e);delete St[e]}),St[e]):e in St?St[e]:Promise.resolve()}const w={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Ct=V(!1);let Lt;const Rt=V(null);function Pt(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Nt(e,t=w.fallbackLocale){e=Pt(e);return t?[...new Set([...e,...Pt(t)])]:e}function A(){return null!=Lt?Lt:void 0}Rt.subscribe(e=>{Lt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const L={...Rt,set:t=>{if(t&&function(e){if(null!=e){var t=Nt(e);for(let e=0;e<t.length;e++){var n=t[e];if(Tt(n))return n}}}(t)&&_t(t)){var n=w["loadingDelay"];let e;return"undefined"!=typeof window&&null!=A()&&n?e=window.setTimeout(()=>Ct.set(!0),n):Ct.set(!0),Ht(t).then(()=>{Rt.set(t)}).finally(()=>{clearTimeout(e),Ct.set(!1)})}return Rt.set(t)}},It=n=>{const a=Object.create(null);return e=>{var t=JSON.stringify(e);return t in a?a[t]:a[t]=n(e)}},Ot=(e,t)=>{var n=w["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},xt=It(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Ot("number",t)),new Intl.NumberFormat(e,n)}),Dt=It(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Ot("date",t):0===Object.keys(n).length&&(n=Ot("date","short")),new Intl.DateTimeFormat(e,n)}),Ut=It(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=Ot("time",t):0===Object.keys(n).length&&(n=Ot("time","short")),new Intl.DateTimeFormat(e,n)}),Gt=It((e,t=A())=>new yt(e,t,w.formats,{ignoreTag:w.ignoreTag})),$t=e([L,M],()=>(e,t={})=>{var n,a;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:r,locale:i=A(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Et(e,i);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(a=null!=(n=null==(n=(a=w).handleMissingMessage)?void 0:n.call(a,{locale:i,id:e,defaultValue:s}))?n:s)?a:e;if(!r)return l;let c=l;try{c=Gt(l,i).format(r)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function Ft(e,t){Mt(e,t)}e([L],()=>(e,t)=>{return[{locale:t=A(),...n}={}]=[t],Ut({locale:t,...n}).format(e);var n}),e([L],()=>(e,t)=>{return[{locale:t=A(),...n}={}]=[t],Dt({locale:t,...n}).format(e);var n}),e([L],()=>(e,t)=>{return[{locale:t=A(),...n}={}]=[t],xt({locale:t,...n}).format(e);var n}),e([L,M],()=>(e,t=A())=>Et(e,t));const kt={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},"zh-hk":{balanceModal:{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"}},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:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"}},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 jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vt=function(n){var M=n={path:void 0,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},e=n.exports,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:jt:globalThis,R=t.setTimeout,P=t.clearTimeout,N=t.XMLHttpRequest,a=t.XDomainRequest,o=t.ActiveXObject,r=t.EventSource,i=t.document,u=t.Promise,p=t.fetch,s=t.Response,d=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;{var c;"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==N&&null!=o&&(N=function(){return new o("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==f&&(c=p,p=function(e,t){var n=t.signal;return c(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}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}})}function h(){this.bitsNeeded=0,this.codePoint=0}h.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 a="",o=this.bitsNeeded,r=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(r<<6|63&s,o-6,n(o,r)))&&(o=0,r=65533,a+=String.fromCharCode(r)),0===o?(r=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(r,o,n(o,r))||(o=0,r=65533)):(o-=6,r=r<<6|63&s),0===o&&(r<=65535?a+=String.fromCharCode(r):a=(a+=String.fromCharCode(55296+(r-65535-1>>10)))+String.fromCharCode(56320+(r-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=r,a},null!=d&&null!=l&&function(){try{return"test"===(new d).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(d=h);function m(){}function I(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=m}function b(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),a=0;a<n.length;a+=1){var o=n[a].split(": "),r=o.shift(),o=o.join(": ");t[b(r)]=o}this._map=t}function O(){}function y(e){this._headers=e}function x(){}function D(){this._listeners=Object.create(null)}function B(e){R(function(){throw e},0)}function E(e){this.type=e,this.target=void 0}function U(e,t){E.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function G(e,t){E.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function $(e,t){E.call(this,e),this.error=t.error}I.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:m}),l(),1===i||2===i||3===i){if(i=4,0!==a&&(P(a),a=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 o=this,r=this._xhr,i=1,a=0,s=(this._abort=function(e){0!==o._sendTimeout&&(P(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,r.onload=m,r.onerror=m,r.onabort=m,r.onprogress=m,r.onreadystatechange=m,r.abort(),0!==a&&(P(a),a=0),e)||(o.readyState=4,o.onabort(null),o.onreadystatechange()),i=0},function(){if(1===i){var t=0,n="",a=void 0;if("contentType"in r)t=200,n="OK",a=r.contentType;else try{t=r.status,n=r.statusText,a=r.getResponseHeader("Content-Type")}catch(e){n="",a=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=a,o.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=r.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){a=R(function(){c()},500),3===r.readyState&&l()};"onload"in r&&(r.onload=function(e){n("load",e)}),"onerror"in r&&(r.onerror=function(e){n("error",e)}),"onabort"in r&&(r.onabort=function(e){n("abort",e)}),"onprogress"in r&&(r.onprogress=l),"onreadystatechange"in r&&(r.onreadystatechange=function(e){e=e,null!=r&&(4===r.readyState?"onload"in r&&"onerror"in r&&"onabort"in r||n(""===r.responseText?"error":"load",e):3===r.readyState?"onprogress"in r||l():2===r.readyState&&s())}),!("contentType"in r)&&"ontimeout"in N.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),r.open(e,t,!0),"readyState"in r&&(a=R(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 N.prototype&&("sendAsBinary"in N.prototype||"mozAnon"in N.prototype)||null==i||null==i.readyState||"complete"===i.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=R(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[b(e)]},null!=N&&null==N.HEADERS_RECEIVED&&(N.HEADERS_RECEIVED=2),O.prototype.open=function(o,r,t,n,e,a,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,a;o.readyState===N.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),a=o.getAllResponseHeaders(),r(e,t,n,new g(a)))},o.withCredentials=a,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},y.prototype.get=function(e){return this._headers.get(e)},x.prototype.open=function(e,t,o,n,a,r,i){var s=null,l=new f,c=l.signal,h=new d;return p(a,{headers:i,credentials:r?"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 y(e.headers)),new u(function(t,n){function a(){s.read().then(function(e){e.done?t(void 0):(e=h.decode(e.value,{stream:!0}),o(e),a())}).catch(function(e){n(e)})}a()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},D.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,a=0;a<n;a+=1){var o=t[a];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){B(e)}}},D.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,a=n[e];null==a&&(n[e]=a=[]);for(var o=!1,r=0;r<a.length;r+=1)a[r]===t&&(o=!0);o||a.push(t)},D.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,a=n[e];if(null!=a){for(var o=[],r=0;r<a.length;r+=1)a[r]!==t&&o.push(a[r]);0===o.length?delete n[e]:n[e]=o}},U.prototype=Object.create(E.prototype),G.prototype=Object.create(E.prototype),$.prototype=Object.create(E.prototype);function F(e,t){e=null==e?t:parseInt(e,10);return j(e=e!=e?t:e)}function k(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){B(e)}}var w=-1,A=0,_=1,S=2,H=-1,C=0,L=1,V=2,X=3,z=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function v(e,t){var l,r,i,c,h,u,p,d,f,n,s,m,b,g,y,B,E,v,T,M,w,A,_,S,H,C,L;D.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,l=this,r=e,e=t,r=String(r),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=j(1e3),h=F(e.heartbeatTimeout,45e3),u="",p=c,d=!1,f=0,n=e.headers||{},e=e.Transport,s=K&&null==e?void 0:new I(new(null!=e?e:null!=N&&"withCredentials"in N.prototype||null==a?N:a)),m=new(null!=e&&"string"!=typeof e?e:null==s?x:O),b=void 0,y=-1,T=v=E=B="",A=w=M=g=0,_=function(e,t,n,a){var o,r;0===y&&(200===e&&null!=n&&z.test(n)?(y=1,d=Date.now(),p=c,l.readyState=1,o=new G("open",{status:e,statusText:t,headers:a}),l.dispatchEvent(o),k(l,l.onopen,o)):(r="",r=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.",C(),o=new G("error",{status:e,statusText:t,headers:a}),l.dispatchEvent(o),k(l,l.onerror,o),console.error(r)))},S=function(e){if(1===y){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 a=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(d=Date.now(),f+=e.length);for(var o=0;o<a.length;o+=1){var r,i=a.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&&(A=o+1),s=a.slice(w,A-1),r=a.slice(A+(A<o&&a.charCodeAt(A)===" ".charCodeAt(0)?1:0),o),"data"===s?B=B+"\n"+r:"id"===s?E=r:"event"===s?v=r:"retry"===s?(c=F(r,c),p=c):"heartbeatTimeout"===s&&(h=F(r,h),0!==g)&&(P(g),g=R(function(){L()},h))),0===M){if(""!==B){u=E;var s=new U(v=""===v?"message":v,{data:B.slice(1),lastEventId:E});if(l.dispatchEvent(s),"open"===v?k(l,l.onopen,s):"message"===v?k(l,l.onmessage,s):"error"===v&&k(l,l.onerror,s),2===y)return}v=B=""}M=i==="\r".charCodeAt(0)?-1:0}else 0===M&&(w=o,M=1),1===M?i===":".charCodeAt(0)&&(A=o+1,M=2):2===M&&(M=3)}}},H=function(e){var t;1!==y&&0!==y||(y=-1,0!==g&&(P(g),g=0),g=R(function(){L()},p),p=j(Math.min(16*c,2*p)),l.readyState=0,t=new $("error",{error:e}),l.dispatchEvent(t),k(l,l.onerror,t),null!=e&&console.error(e))},C=function(){y=2,null!=b&&(b.abort(),b=void 0),0!==g&&(P(g),g=0),l.readyState=2},L=function(){if(g=0,-1===y){d=!1,f=0,g=R(function(){L()},h),E=u,T=v=B="",M=A=w=y=0;var e=r,t=("data:"!==r.slice(0,5)&&"blob:"!==r.slice(0,5)&&""!==u&&(e=-1===(t=r.indexOf("?"))?r:r.slice(0,t+1)+r.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===r.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(u)),l.withCredentials),n={Accept:"text/event-stream"},a=l.headers;if(null!=a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o]);try{b=m.open(s,_,S,H,e,t,n)}catch(e){throw C(),e}}else d||null==b?(e=Math.max((d||Date.now())+h-Date.now(),1),d=!1,g=R(function(){L()},e)):(H(new Error("No activity within "+h+" milliseconds. "+(0===y?"No response received.":f+" chars received.")+" Reconnecting.")),null!=b&&(b.abort(),b=void 0))},l.url=r,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=C,L()}var K=null!=p&&null!=s&&"body"in s.prototype;(v.prototype=Object.create(D.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;var T=r;return null==N||null!=r&&"withCredentials"in r.prototype||(T=v),void 0!==(t=function(e){e.EventSourcePolyfill=v,e.NativeEventSource=r,e.EventSource=T}(e)),n.exports}();function Xt(n){let a,o,r,i,s,l,c,h,u,p,d,f,m,b,g,y,B,E,v,T,M,w,A,_,S,H,C=n[7]("balanceModal.balanceTitle")+"",L=n[7]("balanceModal.totalBalance")+"",R=n[7]("balanceModal.depositButton")+"";function P(e){return"gm16"==e[0]?Kt:zt}let N=P(n),I=N(n);return{c(){a=t("div"),o=t("div"),r=ce(),i=t("div"),s=t("div"),l=t("p"),c=le(C),h=ce(),u=t("div"),p=t("div"),d=t("p"),f=le(L),m=ce(),b=t("p"),g=t("span"),y=le(n[4]),B=ce(),E=t("span"),v=le(n[5]),T=ce(),I.c(),M=ce(),w=t("div"),A=t("button"),_=le(R),he(o,"class","BalanceModalClose"),he(l,"class","BalanceModalTitle"),he(l,"part","BalanceModalTitle"),he(s,"class","BalanceModalHeader"),he(s,"part","BalanceModalHeader"),he(d,"class","BalanceModalText"),he(d,"part","BalanceModalText"),he(g,"class","BalanceModalAmount"),he(g,"part","BalanceModalAmount"),he(E,"class","BalanceModalCurrency"),he(E,"part","BalanceModalCurrency"),he(b,"class","BalanceModalValue"),he(b,"part","BalanceModalValue"),he(p,"class","BalanceModalRow"),he(p,"part","BalanceModalRow"),he(u,"class","BalanceModalBody"),he(u,"part","BalanceModalBody"),he(A,"class","BalanceModalAction"),he(A,"part","BalanceModalAction"),he(w,"class","BalanceModalFooter"),he(w,"part","BalanceModalFooter"),he(i,"class","BalanceModal"),he(i,"part","BalanceModal"),he(a,"class","BalanceModalWrapper"),he(a,"part","BalanceModalWrapper")},m(e,t){ie(e,a,t),re(a,o),re(a,r),re(a,i),re(i,s),re(s,l),re(l,c),re(i,h),re(i,u),re(u,p),re(p,d),re(d,f),re(p,m),re(p,b),re(b,g),re(g,y),re(b,B),re(b,E),re(E,v),re(u,T),I.m(u,null),re(i,M),re(i,w),re(w,A),re(A,_),S||(H=[x(o,"click",n[21]),x(A,"click",n[22])],S=!0)},p(e,t){128&t[0]&&C!==(C=e[7]("balanceModal.balanceTitle")+"")&&ue(c,C),128&t[0]&&L!==(L=e[7]("balanceModal.totalBalance")+"")&&ue(f,L),16&t[0]&&ue(y,e[4]),32&t[0]&&ue(v,e[5]),N===(N=P(e))&&I?I.p(e,t):(I.d(1),(I=N(e))&&(I.c(),I.m(u,null))),128&t[0]&&R!==(R=e[7]("balanceModal.depositButton")+"")&&ue(_,R)},d(e){e&&se(a),I.d(),S=!1,O(H)}}}function zt(e){let n,a,o,r,i,s,l,c,h,u,p,d,f,m,b,g,y,B,E,v=e[7]("balanceModal.cashBalance")+"",T=e[7]("balanceModal.bonusBalance")+"";return{c(){n=t("div"),a=t("p"),o=le(v),r=ce(),i=t("p"),(s=t("span")).textContent=""+e[11](e[8].get("Casino").balanceAmount),l=ce(),c=t("span"),h=le(e[5]),u=ce(),p=t("div"),d=t("p"),f=le(T),m=ce(),b=t("p"),(g=t("span")).textContent=""+e[11](e[8].get("UBS").balanceAmount),y=ce(),B=t("span"),E=le(e[5]),he(a,"class","BalanceModalText"),he(a,"part","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(s,"part","BalanceModalAmount"),he(c,"class","BalanceModalCurrency"),he(c,"part","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(i,"part","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(n,"part","BalanceModalRow"),he(d,"class","BalanceModalText"),he(d,"part","BalanceModalText"),he(g,"class","BalanceModalAmount"),he(g,"part","BalanceModalAmount"),he(B,"class","BalanceModalCurrency"),he(B,"part","BalanceModalCurrency"),he(b,"class","BalanceModalValue"),he(b,"part","BalanceModalValue"),he(p,"class","BalanceModalRow"),he(p,"part","BalanceModalRow")},m(e,t){ie(e,n,t),re(n,a),re(a,o),re(n,r),re(n,i),re(i,s),re(i,l),re(i,c),re(c,h),ie(e,u,t),ie(e,p,t),re(p,d),re(d,f),re(p,m),re(p,b),re(b,g),re(b,y),re(b,B),re(B,E)},p(e,t){128&t[0]&&v!==(v=e[7]("balanceModal.cashBalance")+"")&&ue(o,v),32&t[0]&&ue(h,e[5]),128&t[0]&&T!==(T=e[7]("balanceModal.bonusBalance")+"")&&ue(f,T),32&t[0]&&ue(E,e[5])},d(e){e&&se(n),e&&se(u),e&&se(p)}}}function Kt(e){let n;function a(e){return"Casino"==e[1]||"Sports"==e[1]?Zt:"All"==e[1]?Yt:void 0}let o=a(e),r=o&&o(e);return{c(){r&&r.c(),n=le("")},m(e,t){r&&r.m(e,t),ie(e,n,t)},p(e,t){o===(o=a(e))&&r?r.p(e,t):(r&&r.d(1),(r=o&&o(e))&&(r.c(),r.m(n.parentNode,n)))},d(e){r&&r.d(e),e&&se(n)}}}function Yt(e){let n,a,o,r,D,U,i,s,l,G,c,h,$,u,p,d,F,k,f,m,b,j,g,V,X,y,B,E,z,K,Y,v,T,Z,W,M,q,Q,w,A,J,ee,te,_,S,ne,ae,H,oe,C=e[7]("balanceModal.cashBalance")+"",L=e[6].Casino.Real+"",R=e[7]("balanceModal.cashBalance")+"",P=e[6].Sports.Real+"",N=e[7]("balanceModal.bonusBalance")+"",I=e[6].Casino.Bonus+"",O=e[7]("balanceModal.bonusBalance")+"",x=e[6].Sports.Bonus+"";return{c(){n=t("div"),a=t("div"),o=t("p"),r=le(C),D=le(" Casino"),U=ce(),i=t("p"),s=t("span"),l=le(L),G=ce(),c=t("span"),h=le(e[5]),$=ce(),u=t("div"),p=t("p"),d=le(R),F=le(" Sports"),k=ce(),f=t("p"),m=t("span"),b=le(P),j=ce(),g=t("span"),V=le(e[5]),X=ce(),y=t("div"),B=t("div"),E=t("p"),z=le(N),K=le(" Casino"),Y=ce(),v=t("p"),T=t("span"),Z=le(I),W=ce(),M=t("span"),q=le(e[5]),Q=ce(),w=t("div"),A=t("p"),J=le(O),ee=le(" Sports"),te=ce(),_=t("p"),S=t("span"),ne=le(x),ae=ce(),H=t("span"),oe=le(e[5]),he(o,"class","BalanceModalText"),he(o,"part","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(s,"part","BalanceModalAmount"),he(c,"class","BalanceModalCurrency"),he(c,"part","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(i,"part","BalanceModalValue"),he(a,"class","BalanceModalRowLine"),he(p,"class","BalanceModalText"),he(p,"part","BalanceModalText"),he(m,"class","BalanceModalAmount"),he(m,"part","BalanceModalAmount"),he(g,"class","BalanceModalCurrency"),he(g,"part","BalanceModalCurrency"),he(f,"class","BalanceModalValue"),he(f,"part","BalanceModalValue"),he(u,"class","BalanceModalRowLine"),he(n,"class","BalanceModalRowBoth"),he(n,"part","BalanceModalRow"),he(E,"class","BalanceModalText"),he(E,"part","BalanceModalText"),he(T,"class","BalanceModalAmount"),he(T,"part","BalanceModalAmount"),he(M,"class","BalanceModalCurrency"),he(M,"part","BalanceModalCurrency"),he(v,"class","BalanceModalValue"),he(v,"part","BalanceModalValue"),he(B,"class","BalanceModalRowLine"),he(A,"class","BalanceModalText"),he(A,"part","BalanceModalText"),he(S,"class","BalanceModalAmount"),he(S,"part","BalanceModalAmount"),he(H,"class","BalanceModalCurrency"),he(H,"part","BalanceModalCurrency"),he(_,"class","BalanceModalValue"),he(_,"part","BalanceModalValue"),he(w,"class","BalanceModalRowLine"),he(y,"class","BalanceModalRowBoth"),he(y,"part","BalanceModalRow")},m(e,t){ie(e,n,t),re(n,a),re(a,o),re(o,r),re(o,D),re(a,U),re(a,i),re(i,s),re(s,l),re(i,G),re(i,c),re(c,h),re(n,$),re(n,u),re(u,p),re(p,d),re(p,F),re(u,k),re(u,f),re(f,m),re(m,b),re(f,j),re(f,g),re(g,V),ie(e,X,t),ie(e,y,t),re(y,B),re(B,E),re(E,z),re(E,K),re(B,Y),re(B,v),re(v,T),re(T,Z),re(v,W),re(v,M),re(M,q),re(y,Q),re(y,w),re(w,A),re(A,J),re(A,ee),re(w,te),re(w,_),re(_,S),re(S,ne),re(_,ae),re(_,H),re(H,oe)},p(e,t){128&t[0]&&C!==(C=e[7]("balanceModal.cashBalance")+"")&&ue(r,C),64&t[0]&&L!==(L=e[6].Casino.Real+"")&&ue(l,L),32&t[0]&&ue(h,e[5]),128&t[0]&&R!==(R=e[7]("balanceModal.cashBalance")+"")&&ue(d,R),64&t[0]&&P!==(P=e[6].Sports.Real+"")&&ue(b,P),32&t[0]&&ue(V,e[5]),128&t[0]&&N!==(N=e[7]("balanceModal.bonusBalance")+"")&&ue(z,N),64&t[0]&&I!==(I=e[6].Casino.Bonus+"")&&ue(Z,I),32&t[0]&&ue(q,e[5]),128&t[0]&&O!==(O=e[7]("balanceModal.bonusBalance")+"")&&ue(J,O),64&t[0]&&x!==(x=e[6].Sports.Bonus+"")&&ue(ne,x),32&t[0]&&ue(oe,e[5])},d(e){e&&se(n),e&&se(X),e&&se(y)}}}function Zt(e){let n,a,o,r,i,s,l,c,h,u,p,d,f,m,b,g,y,B,E,v,T,M=e[7]("balanceModal.totalBalance")+"",w=e[6][e[1]].Real+"",A=e[7]("balanceModal.bonusBalance")+"",_=e[6][e[1]].Bonus+"";return{c(){n=t("div"),a=t("p"),o=le(M),r=ce(),i=t("p"),s=t("span"),l=le(w),c=ce(),h=t("span"),u=le(e[5]),p=ce(),d=t("div"),f=t("p"),m=le(A),b=ce(),g=t("p"),y=t("span"),B=le(_),E=ce(),v=t("span"),T=le(e[5]),he(a,"class","BalanceModalText"),he(a,"part","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(s,"part","BalanceModalAmount"),he(h,"class","BalanceModalCurrency"),he(h,"part","BalanceModalCurrency"),he(i,"class","BalanceModalValue"),he(i,"part","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(n,"part","BalanceModalRow"),he(f,"class","BalanceModalText"),he(f,"part","BalanceModalText"),he(y,"class","BalanceModalAmount"),he(y,"part","BalanceModalAmount"),he(v,"class","BalanceModalCurrency"),he(v,"part","BalanceModalCurrency"),he(g,"class","BalanceModalValue"),he(g,"part","BalanceModalValue"),he(d,"class","BalanceModalRow"),he(d,"part","BalanceModalRow")},m(e,t){ie(e,n,t),re(n,a),re(a,o),re(n,r),re(n,i),re(i,s),re(s,l),re(i,c),re(i,h),re(h,u),ie(e,p,t),ie(e,d,t),re(d,f),re(f,m),re(d,b),re(d,g),re(g,y),re(y,B),re(g,E),re(g,v),re(v,T)},p(e,t){128&t[0]&&M!==(M=e[7]("balanceModal.totalBalance")+"")&&ue(o,M),66&t[0]&&w!==(w=e[6][e[1]].Real+"")&&ue(l,w),32&t[0]&&ue(u,e[5]),128&t[0]&&A!==(A=e[7]("balanceModal.bonusBalance")+"")&&ue(m,A),66&t[0]&&_!==(_=e[6][e[1]].Bonus+"")&&ue(B,_),32&t[0]&&ue(T,e[5])},d(e){e&&se(n),e&&se(p),e&&se(d)}}}function Wt(n){let a,o,r;return{c(){he(a=t("div"),"class","ShowBalanceModalOverlay"),he(a,"part","ShowBalanceModalOverlay")},m(e,t){ie(e,a,t),o||(r=x(a,"click",n[23]),o=!0)},p:g,d(e){e&&se(a),o=!1,r()}}}function qt(n){let a,o,r,i,s,l,c,h,u,p,d,f,m=n[3]&&Xt(n),b=n[3]&&Wt(n);return{c(){a=t("div"),o=t("div"),r=t("p"),i=le(n[4]),s=ce(),l=le(n[5]),c=ce(),(h=t("span")).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=ce(),m&&m.c(),p=ce(),b&&b.c(),this.c=g,he(r,"class","BalanceValue"),he(r,"part","BalanceValue"),he(o,"class","ShowBalance"),he(o,"part","ShowBalance")},m(e,t){ie(e,a,t),re(a,o),re(o,r),re(r,i),re(r,s),re(r,l),re(r,c),re(r,h),re(o,u),m&&m.m(o,null),re(a,p),b&&b.m(a,null),n[24](a),d||(f=x(r,"click",n[20]),d=!0)},p(e,t){16&t[0]&&ue(i,e[4]),32&t[0]&&ue(l,e[5]),e[3]?m?m.p(e,t):((m=Xt(e)).c(),m.m(o,null)):m&&(m.d(1),m=null),e[3]?b?b.p(e,t):((b=Wt(e)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:g,o:g,d(e){e&&se(a),m&&m.d(),b&&b.d(),n[24](null),d=!1,f()}}}function Qt(t,e,i){let n;var a=$t;t.$$.on_destroy.push(P(a,e=>i(7,n=e)));let o,r,{userid:s=""}=e,{session:l=""}=e,{endpoint:c=""}=e,{lang:h="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:p=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:f=""}=e,{gmversion:m=""}=e,{displaybalanceoption:b="All"}=e,g=!1,y="",B="",E=!1,v=new Map;const T={Casino:{Real:0,Bonus:0},Sports:{Real:0,Bonus:0}},M=(Object.keys(kt).forEach(e=>{Ft(e,kt[e])}),e=>{switch(e){case"balance":i(3,g=!0);break;case"closebalance":i(3,g=!1)}}),w=(e,t)=>{e=new Vt.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});r&&r.close(),(r=e).addEventListener("message",e=>{try{var t=JSON.parse(e.data)["balanceChange"],n=v.get("Casino"),a=v.get("UBS");t&&t[n.id]&&v.set("Casino",Object.assign(Object.assign({},n),{balanceAmount:t[n.id].afterAmount})),t&&t[a.id]&&v.set("UBS",Object.assign(Object.assign({},a),{balanceAmount:t[a.id].afterAmount})),n=v.get("Casino"),a=v.get("UBS"),i(4,y=S(Number((parseFloat(n.balanceAmount)+parseFloat(a.balanceAmount)).toFixed(2))))}catch(e){console.log("Balance stream failed: ",e),w(`${c}/player/${s}/balance/updates`,l)}})},A=()=>{M("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},_=()=>{return f.includes(h)?f:h},S=e=>new Intl.NumberFormat(_()).format(e),H=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&r.close()};return a=()=>(window.addEventListener("message",H,!1),()=>{window.removeEventListener("message",H),r&&r.close()}),function(){if(C)return C;throw new Error("Function called outside component initialization")}().$$.on_mount.push(a),t.$$set=e=>{"userid"in e&&i(12,s=e.userid),"session"in e&&i(13,l=e.session),"endpoint"in e&&i(14,c=e.endpoint),"lang"in e&&i(15,h=e.lang),"clientstyling"in e&&i(16,u=e.clientstyling),"clientstylingurl"in e&&i(17,p=e.clientstylingurl),"translationurl"in e&&i(18,d=e.translationurl),"customlocaleidentifier"in e&&i(19,f=e.customlocaleidentifier),"gmversion"in e&&i(0,m=e.gmversion),"displaybalanceoption"in e&&i(1,b=e.displaybalanceoption)},t.$$.update=()=>{if(32768&t.$$.dirty[0]&&h&&_(),61441&t.$$.dirty[0]&&c&&s&&l&&h&&m){var e=h;switch(L.set(e),m){case"gmcore":(async e=>{try{E=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw E=!1,new Error("Failed to fetch balance data !");{E=!1,n.items.map(e=>v.set(e.displayName,e));const e=v.get("Casino"),a=v.get("UBS");i(5,B=e.currency),i(4,y=S(Number((parseFloat(e.balanceAmount)+parseFloat(a.balanceAmount)).toFixed(2))))}}catch(e){E=!1,console.log("Balance error: ",e)}finally{E=!1}})(new URL(`${c}/player/${s}/account`));break;case"gm16":(async e=>{try{E=!0,"Casino"==b&&e.searchParams.append("productType","Casino"),"Sports"==b&&e.searchParams.append("productType","Sports"),"All"===b&&(e.searchParams.append("productType","Casino"),e.searchParams.append("productType","Sports"));var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw E=!1,new Error("Failed to fetch balance data !");E=!1;for(const e of n.items){var{type:a,amount:o,productType:r}=e;"Casino"===b&&"Casino"===r?i(6,T.Casino[a]+=o,T):"Sports"===b&&"Sports"===r?i(6,T.Sports[a]+=o,T):"All"===b&&i(6,T[r][a]+=o,T),i(5,B=e.currency),i(4,y=n.totalAmount[B])}}catch(e){E=!1,console.log("Balance error: ",e)}finally{E=!1}})(new URL(`${c}/player/${s}/balance`));break;default:throw Error("Invalid apiversion attribute: "+m)}}if(28672&t.$$.dirty[0]&&c&&s&&l&&w(`${c}/player/${s}/balance/updates`,l),65540&t.$$.dirty[0]&&u&&o&&((e=document.createElement("style")).innerHTML=u,o.appendChild(e)),131076&t.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}262144&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ft(e,t[e])})}).catch(e=>{console.log(e)})},[m,b,o,g,y,B,T,n,v,M,A,S,s,l,c,h,u,p,d,f,()=>M("balance"),()=>M("closebalance"),()=>A(),()=>M("closebalance"),function(e){N[e?"unshift":"push"](()=>{o=e,i(2,o)})}]}class Jt extends j{constructor(e){super();var t=document.createElement("style");t.textContent=':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;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.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)}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;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}',this.shadowRoot.appendChild(t),k(this,{target:this.shadowRoot,props:function(e){var t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Qt,qt,R,{userid:12,session:13,endpoint:14,lang:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:0,displaybalanceoption:1},null,[-1,-1]),e&&(e.target&&ie(e.target,this,e.anchor),e.props)&&(this.$set(e.props),f())}static get observedAttributes(){return["userid","session","endpoint","lang","clientstyling","clientstylingurl","translationurl","customlocaleidentifier","gmversion","displaybalanceoption"]}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),f()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),f()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),f()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),f()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),f()}get gmversion(){return this.$$.ctx[0]}set gmversion(e){this.$$set({gmversion:e}),f()}get displaybalanceoption(){return this.$$.ctx[1]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),f()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",Jt),Jt});
|
|
2
2
|
//# sourceMappingURL=player-account-balance-modal.js.map
|