@everymatrix/player-account-balance-modal 1.13.13 → 1.13.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function y(){}function _(e){return e()}function S(){return Object.create(null)}function O(e){e.forEach(_)}function H(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function I(e,...t){if(null==e)return y;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function oe(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,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ue(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function he(e,t){e.data!==(t=""+t)&&(e.data=t)}let P;function p(e){P=e}const d=[],D=[];let o=[];const L=[],R=Promise.resolve();let U=!1;function $(e){o.push(e)}const G=new Set;let a=0;function f(){if(0===a){const r=P;do{try{for(;a<d.length;){const r=d[a];a++,p(r),e=t=void 0;var e,t=r.$$;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($))}}catch(r){throw d.length=0,a=0,r}for(p(null),d.length=0,a=0;D.length;)D.pop()();for(let e=0;e<o.length;e+=1){var n=o[e];G.has(n)||(G.add(n),n())}}while(o.length=0,d.length);for(;L.length;)L.pop()();U=!1,G.clear(),p(r)}}const F=new Set;function k(r,e,t,n,a,o,i,s=[-1]){var l=P;p(r);const c=r.$$={fragment:null,ctx:[],props:o,update:y,not_equal:a,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 u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&a(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u)&&(n=e,-1===(e=r).$$.dirty[0]&&(d.push(e),U||(U=!0,R.then(f)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),u=!0,O(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){o=e.target;const y=Array.from(o.childNodes);c.fragment&&c.fragment.l(y),y.forEach(se)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&(F.delete(s),s.i(void 0));var h=r,i=e.target,t=e.anchor,n=e.customElement,{fragment:o,after_update:s}=h.$$;o&&o.m(i,t),n||$(()=>{var e=h.$$.on_mount.map(_).filter(H);h.$$.on_destroy?h.$$.on_destroy.push(...e):O(e),h.$$.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(_).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 r=[],a=[];o.forEach(e=>(-1===n.indexOf(e)?r:a).push(e)),a.forEach(e=>e()),o=r}O(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=y}$on(e,t){if(!H(t))return y;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 j(r,a=y){let o;const i=new Set;function s(e){if(C(r,e)&&(r=e,o)){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=y){const n=[e,t];return i.add(n),1===i.size&&(o=a(s)||y),e(r),()=>{i.delete(n),0===i.size&&o&&(o(),o=null)}}}}function e(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:j(t,t=>{let n=!1;const r=[];let a=0,o=y;const i=()=>{var e;a||(o(),e=s(l?r[0]:r,t),u?t(e):o=H(e)?e:y)},e=c.map((e,t)=>I(e,e=>{r[t]=e,a&=~(1<<t),n&&i()},()=>{a|=1<<t}));return n=!0,i(),function(){O(e),o(),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(r,a,o){var i={};return o.isMergeableObject(r)&&Y(r).forEach(function(e){i[e]=s(r[e],o)}),Y(a).forEach(function(e){var t,n;(!Z(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(Z(r,e)&&o.isMergeableObject(a[e])?i[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:l)(r[e],a[e],o):i[e]=s(a[e],o))}),i}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||K,n.isMergeableObject=n.isMergeableObject||X,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?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,J=function(e,t){return(J=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 Q(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}J(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,b,g,B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function ee(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||((r=r||Array.prototype.slice.call(t,0,a))[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function te(e){return e.type===b.literal}function ne(e){return e.type===b.number}function re(e){return e.type===b.date}function ae(e){return e.type===b.time}function pe(e){return e.type===b.select}function de(e){return e.type===b.plural}function fe(e){return e.type===b.tag}function me(e){return e&&"object"==typeof e&&e.type===g.number}function ge(e){return e&&"object"==typeof e&&e.type===g.dateTime}(r=m=m||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=b=b||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=g=g||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ye=/(?:[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,Be=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ee=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function we(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Ee,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 Ae(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Me(e){return Ae(e)||{}}function _e(e){for(var i={},t=0,n=e;t<n.length;t++){var r,a=n[t];switch(a.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=a.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=a.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"}),a.options.reduce(function(e,t){return B(B({},e),Me(t))},{}));continue;case"engineering":i=B(B(B({},i),{notation:"engineering"}),a.options.reduce(function(e,t){return B(B({},e),Me(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(a.options[0]);continue;case"integer-width":if(1<a.options.length)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(ve,function(e,t,n,r,a,o){if(t)i.minimumIntegerDigits=n.length;else{if(r&&a)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Te.test(a.stem))i.minimumIntegerDigits=a.stem.length;else if(Be.test(a.stem)){if(1<a.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Be,function(e,t,n,r,a,o){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:a&&o?(i.minimumFractionDigits=a.length,i.maximumFractionDigits=a.length+o.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var o=a.options[0];"w"===o?i=B(B({},i),{trailingZeroDisplay:"stripIfInteger"}):o&&(i=B(B({},i),we(o)))}else Ee.test(a.stem)?i=B(B({},i),we(a.stem)):((o=Ae(a.stem))&&(i=B(B({},i),o)),(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)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(a.stem))&&(i=B(B({},i),r)))}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(r.source,"*")),Ce=new RegExp("".concat(r.source,"*$"));function E(e,t){return{start:e,end:t}}var r=!!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(y){xe=!1}var De,Ue,$e=r?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Ge=Le?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",a=e.length,o=0;o<a;){if(1114111<(n=e[o++]))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},Fe=Re?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n],o=a[0],a=a[1];t[o]=a}return t},ke=Pe?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},Ve=Ne?function(e){return e.trimStart()}:function(e){return e.replace(He,"")},je=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,r=[];;){var a=ke(e,t);if(void 0===a||Ye(a)||33<=(n=a)&&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(a),t+=65536<=a?2:1}return Ge.apply(void 0,r)};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 r=[];!this.isEOF();){var a,o=this.char();if(123===o){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ke(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a}else if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}else{o=this.clonePosition();this.bump(),r.push({type:b.pound,location:E(o,this.clonePosition())})}}}return{val:r,err:null}},i.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),a=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(a,"/>"),location:E(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()||!Ke(this.char())?this.error(m.INVALID_TAG,E(e,this.clonePosition())):(n=this.clonePosition(),a!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,E(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:a,children:t,location:E(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,E(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,E(r,this.clonePosition()))):this.error(m.INVALID_TAG,E(r,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(),r="";;){var a=this.tryParseQuote(t);if(a)r+=a;else{a=this.tryParseUnquoted(e,t);if(a)r+=a;else{a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}n=E(n,this.clonePosition());return{val:{type:b.literal,value:r,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 Ge.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(),Ge(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 r=this.parseIdentifierIfPossible().value;if(!r)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:b.argument,value:r,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,r,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,r){var a,o=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,E(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=je(h.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(r)).err?c:(d=E(r,this.clonePosition()),l&&$e(null==l?void 0:l.style,"::",0)?(f=Ve(l.style.slice(2)),"number"===i?(h=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:d,style:h.val},err:null}:0===f.length?this.error(m.EXPECT_DATE_TIME_SKELETON,d):(u=f,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if("j"===a){for(var o=0;r+1<e.length&&e.charAt(r+1)===a;)o++,r++;var i=1+(1&o),s=o<2?1:3+(o>>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"===a?"H":a}return n}(f,this.locale)),p={type:g.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(a={},u.replace(ye,function(e){var t=e.length;switch(e[0]){case"G":a.era=4===t?"long":5===t?"narrow":"short";break;case"y":a.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":a.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":a.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":a.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][t-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][t-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][t-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][t-1];break;case"k":a.hourCycle="h24",a.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":a.minute=["numeric","2-digit"][t-1];break;case"s":a.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":a.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""}),a):{}},{val:{type:"date"===i?b.date:b.time,value:n,location:d,style:p},err:null})):{val:{type:"number"===i?b.number:"date"===i?b.date:b.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 u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,E(u,B({},u)));this.bumpSpace();var h,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(),(h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),p=this.parseIdentifierIfPossible(),d=h.val}var f,l=this.tryParsePluralOrSelectOptions(e,i,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(f=E(r,this.clonePosition()),"select"===i?{val:{type:b.select,value:n,options:Fe(l.val),location:f},err:null}:{val:{type:b.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(o,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,r=e.split(be).filter(function(e){return 0<e.length});n<r.length;n++){var a=r[n].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var o=a[0],a=a.slice(1),i=0,s=a;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}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?_e(n):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var a=!1,o=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;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&&(a=!0),this.bumpSpace();u=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 h=this.tryParseArgumentClose(u);if(h.err)return h;o.push([s,{value:c.val,location:E(u,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(m.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:o,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,o=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;a=!0,o=10*o+(i-48),this.bump()}r=E(r,this.clonePosition());return a?Oe(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},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($e(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)||(re(e)||ae(e))&&ge(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,r=t&&t.serializer?t.serializer:et;return(t&&t.strategy?t.strategy:function(e,t){return Qe(e,this,1===e.length?qe:Je,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function qe(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(n);return void 0===a&&(a=e.call(this,r),t.set(n,a)),a}function Je(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),a=t.get(n);return void 0===a&&(a=e.apply(this,r),t.set(n,a)),a}function Qe(e,t,n,r,a){return n.bind(t,e,r,a)}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}},rt={variadic:function(e,t){return Qe(e,this,Je,t.cache.create(),t.serializer)},monadic:function(e,t){return Qe(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";Q(mt,st=Error),mt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,at,ot,it,st,lt=mt,ct=(Q(ft,it=lt),ft),ut=(Q(dt,ot=lt),dt),ht=(Q(pt,at=lt),pt);function pt(e,t){return at.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 ot.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),v.INVALID_VALUE,n)||this}function ft(e,t,n,r){return it.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),v.INVALID_VALUE,r)||this}function mt(e,t,n){e=st.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function gt(e,t,n,r,a,o,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 u=c[l];if(te(u))s.push({type:T.literal,value:u.value});else if(u.type===b.pound)"number"==typeof o&&s.push({type:T.literal,value:n.getNumberFormat(t).format(o)});else{var h=u.value;if(!(a&&h in a))throw new ht(h,i);h=a[h];if(u.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?T.literal:T.object,value:h});else if(re(u)){var p="string"==typeof u.style?r.date[u.style]:ge(u.style)?u.style.parsedOptions:void 0;s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(h)})}else if(ae(u))p="string"==typeof u.style?r.time[u.style]:ge(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(h)});else if(ne(u))(p="string"==typeof u.style?r.number[u.style]:me(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:T.literal,value:n.getNumberFormat(t,p).format(h)});else{if(fe(u)){var d=u.children,f=u.value,m=a[f];if("function"!=typeof m)throw new ut(f,"function",i);f=m(gt(d,t,n,r,a,o).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(u)){if(!(g=u.options[h]||u.options.other))throw new ct(u.value,h,Object.keys(u.options),i);s.push.apply(s,gt(g.value,t,n,r,a))}else if(de(u)){if(!(g=u.options["=".concat(h)])){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:u.pluralType}).select(h-(u.offset||0)),g=u.options[m]||u.options.other}if(!g)throw new ct(u.value,h,Object.keys(u.options),i);s.push.apply(s,gt(g.value,t,n,r,a,h-(u.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 yt(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(r=T=T||{})[r.literal=0]="literal",r[r.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=Ze,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 a,o,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 gt(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=(a=u.formats,(o=n)?Object.keys(a).reduce(function(e,t){var n,r;return e[t]=(n=a[t],(r=o[t])?B(B(B({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=B(B({},n[t]),r[t]||{}),e},{})):n),e},B({},a)):a),this.formatters=r&&r.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:yt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:rt.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:yt(t.dateTime),strategy:rt.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:yt(t.pluralRules),strategy:rt.variadic})}}const h={},Bt=(e,t,n)=>n&&(t in h||(h[t]={}),e in h[t]||(h[t][e]=n),n),Et=(t,n)=>{if(null!=n){if(n in h&&t in h[n])return h[n][t];var r=Nt(n);for(let e=0;e<r.length;e++){var a=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 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(a)return Bt(t,n,a)}}};let vt;const w=j({});function Tt(e){return e in vt}function wt(t,...n){delete h[t],w.update(e=>(e[t]=q.all([e[t]||{},...n]),e))}e([w],([e])=>Object.keys(e)),w.subscribe(e=>vt=e);const At={};function Mt(e){return At[e]}function _t(e){return null!=e&&Nt(e).some(e=>{return null==(e=Mt(e))?void 0:e.size})}const St={};function Ht(e){var t;return _t(e)?(t=Nt(e).map(e=>{var t=Mt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),St[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,At[t].delete(n),0===At[t].size&&delete At[t],e().then(e=>e.default||e);var t,n})).then(e=>wt(r,...e));var r})).then(()=>{if(_t(e))return Ht(e);delete St[e]}),St[e]):e in St?St[e]:Promise.resolve()}const A={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=j(!1);let Lt;const Rt=j(null);function Pt(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Nt(e,t=A.fallbackLocale){e=Pt(e);return t?[...new Set([...e,...Pt(t)])]:e}function M(){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 N={...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=A["loadingDelay"];let e;return"undefined"!=typeof window&&null!=M()&&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 r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Ot=(e,t)=>{var n=A["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)}),$t=It((e,t=M())=>new bt(e,t,A.formats,{ignoreTag:A.ignoreTag})),Gt=e([N,w],()=>(e,t={})=>{var n,r;let a=t;"object"==typeof e&&(e=(a=e).id);var{values:o,locale:i=M(),default:s}=a;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!=(r=null!=(n=null==(n=(r=A).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!o)return l;let c=l;try{c=$t(l,i).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function Ft(e,t){wt(e,t)}e([N],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],Ut({locale:t,...n}).format(e);var n}),e([N],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],Dt({locale:t,...n}).format(e);var n}),e([N],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],xt({locale:t,...n}).format(e);var n}),e([N,w],()=>(e,t=M())=>Et(e,t));const kt={en:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"},"zh-hk":{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"},de:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"},it:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"},fr:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"},es:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"},tr:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"},ru:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"},ro:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"},hr:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"},hu:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"},pl:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"},pt:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"},sl:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"},sr:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}};var Vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function jt(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var Xt=jt(function(v,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Vt:globalThis,R=t.setTimeout,P=t.clearTimeout,N=t.XMLHttpRequest,a=t.XDomainRequest,n=t.ActiveXObject,o=t.EventSource,i=t.document,h=t.Promise,p=t.fetch,s=t.Response,d=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;function c(){this.bitsNeeded=0,this.codePoint=0}function u(){}function I(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function m(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"),r=0;r<n.length;r+=1){var a=n[r].split(": "),o=a.shift(),a=a.join(": ");t[m(o)]=a}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 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 $(e,t){B.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function G(e,t){B.call(this,e),this.error=t.error}function F(e,t){return e=null==e?t:parseInt(e,10),j(e=e!=e?t:e)}function k(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}"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!=n&&(N=function(){return new n("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&&(r=p,p=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),c.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="",a=this.bitsNeeded,o=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==a&&(s<128||191<s||!t(o<<6|63&s,a-6,n(a,o)))&&(a=0,o=65533,r+=String.fromCharCode(o)),0===a?(o=0<=s&&s<=127?(a=0,s):192<=s&&s<=223?(a=6,31&s):224<=s&&s<=239?(a=12,15&s):240<=s&&s<=247?(a=18,7&s):(a=0,65533),0===a||t(o,a,n(a,o))||(a=0,o=65533)):(a-=6,o=o<<6|63&s),0===a&&(o<=65535?r+=String.fromCharCode(o):r=(r+=String.fromCharCode(55296+(o-65535-1>>10)))+String.fromCharCode(56320+(o-65535-1&1023)))}return this.bitsNeeded=a,this.codePoint=o,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=c),I.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(P(r),r=0),a.readyState=4,"load"===e)a.onload(t);else if("error"===e)a.onerror(t);else{if("abort"!==e)throw new TypeError;a.onabort(t)}a.onreadystatechange()}}var a=this,o=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==a._sendTimeout&&(P(a._sendTimeout),a._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,o.onload=u,o.onerror=u,o.onabort=u,o.onprogress=u,o.onreadystatechange=u,o.abort(),0!==r&&(P(r),r=0),e)||(a.readyState=4,a.onabort(null),a.onreadystatechange()),i=0},function(){if(1===i){var t=0,n="",r=void 0;if("contentType"in o)t=200,n="OK",r=o.contentType;else try{t=o.status,n=o.statusText,r=o.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,a.readyState=2,a.status=t,a.statusText=n,a._contentType=r,a.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=o.responseText}catch(e){}a.readyState=3,a.responseText=e,a.onprogress()}},c=function(){r=R(function(){c()},500),3===o.readyState&&l()};"onload"in o&&(o.onload=function(e){n("load",e)}),"onerror"in o&&(o.onerror=function(e){n("error",e)}),"onabort"in o&&(o.onabort=function(e){n("abort",e)}),"onprogress"in o&&(o.onprogress=l),"onreadystatechange"in o&&(o.onreadystatechange=function(e){e=e,null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||n(""===o.responseText?"error":"load",e):3===o.readyState?"onprogress"in o||l():2===o.readyState&&s())}),!("contentType"in o)&&"ontimeout"in N.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),o.open(e,t,!0),"readyState"in o&&(r=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[m(e)]},null!=N&&null==N.HEADERS_RECEIVED&&(N.HEADERS_RECEIVED=2),O.prototype.open=function(a,o,t,n,e,r,i){a.open("GET",e);var s,l=0;for(s in a.onprogress=function(){var e=a.responseText.slice(l);l+=e.length,t(e)},a.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},a.onload=function(){n(null)},a.onabort=function(){n(null)},a.onreadystatechange=function(){var e,t,n,r;a.readyState===N.HEADERS_RECEIVED&&(e=a.status,t=a.statusText,n=a.getResponseHeader("Content-Type"),r=a.getAllResponseHeaders(),o(e,t,n,new g(r)))},a.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&a.setRequestHeader(s,i[s]);return a.send(),a},y.prototype.get=function(e){return this._headers.get(e)},x.prototype.open=function(e,t,a,n,r,o,i){var s=null,l=new f,c=l.signal,u=new d;return p(r,{headers:i,credentials:o?"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 h(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),a(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 a=t[r];try{"function"==typeof a.handleEvent?a.handleEvent(e):a.call(this,e)}catch(e){b(e)}}},D.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var a=!1,o=0;o<r.length;o+=1)r[o]===t&&(a=!0);a||r.push(t)},D.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var a=[],o=0;o<r.length;o+=1)r[o]!==t&&a.push(r[o]);0===a.length?delete n[e]:n[e]=a}},U.prototype=Object.create(B.prototype),$.prototype=Object.create(B.prototype),G.prototype=Object.create(B.prototype);var V=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function E(e,t){var l,o,i,c,u,h,p,d,f,n,s,m,g,y,b,B,E,v,T,w,A,M,_,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,o=e,e=t,o=String(o),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=j(1e3),u=F(e.heartbeatTimeout,45e3),h="",p=c,d=!1,f=0,n=e.headers||{},e=e.Transport,s=X&&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),g=void 0,b=-1,T=v=E=B="",M=A=w=y=0,_=function(e,t,n,r){var a,o;0===b&&(200===e&&null!=n&&V.test(n)?(b=1,d=Date.now(),p=c,l.readyState=1,a=new $("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(a),k(l,l.onopen,a)):(o="",o=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(),a=new $("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(a),k(l,l.onerror,a),console.error(o)))},S=function(e){if(1===b){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 a=0;a<r.length;a+=1){var o,i=r.charCodeAt(a);if(-1===w&&i==="\n".charCodeAt(0))w=0;else if(-1===w&&(w=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==w&&(1===w&&(M=a+1),s=r.slice(A,M-1),o=r.slice(M+(M<a&&r.charCodeAt(M)===" ".charCodeAt(0)?1:0),a),"data"===s?B=B+"\n"+o:"id"===s?E=o:"event"===s?v=o:"retry"===s?(c=F(o,c),p=c):"heartbeatTimeout"===s&&(u=F(o,u),0!==y)&&(P(y),y=R(function(){L()},u))),0===w){if(""!==B){h=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===b)return}v=B=""}w=i==="\r".charCodeAt(0)?-1:0}else 0===w&&(A=a,w=1),1===w?i===":".charCodeAt(0)&&(M=a+1,w=2):2===w&&(w=3)}}},H=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&(P(y),y=0),y=R(function(){L()},p),p=j(Math.min(16*c,2*p)),l.readyState=0,t=new G("error",{error:e}),l.dispatchEvent(t),k(l,l.onerror,t),null!=e&&console.error(e))},C=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&(P(y),y=0),l.readyState=2},L=function(){if(y=0,-1===b){d=!1,f=0,y=R(function(){L()},u),E=h,T=v=B="",w=M=A=b=0;var e=o,t=("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h&&(e=-1===(t=o.indexOf("?"))?o:o.slice(0,t+1)+o.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===o.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a]);try{g=m.open(s,_,S,H,e,t,n)}catch(e){throw C(),e}}else d||null==g?(e=Math.max((d||Date.now())+u-Date.now(),1),d=!1,y=R(function(){L()},e)):(H(new Error("No activity within "+u+" milliseconds. "+(0===b?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=o,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=C,L()}var X=null!=p&&null!=s&&"body"in s.prototype;(E.prototype=Object.create(D.prototype)).CONNECTING=0,E.prototype.OPEN=1,E.prototype.CLOSED=2,E.prototype.close=function(){this._close()},E.CONNECTING=0,E.OPEN=1,E.CLOSED=2,E.prototype.withCredentials=void 0,t=o,null==N||null!=o&&"withCredentials"in o.prototype||(t=E),(s=e).EventSourcePolyfill=E,s.NativeEventSource=o,s.EventSource=t}),zt=jt(function(e,t){function l(e,t){if(!(this instanceof l))return new l(e,t);t=Object.assign({},a,t);var n=Math.pow(10,t.precision);this.intValue=e=r(e,t),this.value=e/n,t.increment=t.increment||1/n,t.groups=t.useVedic?i:o,this.s=t,this.p=n}function r(e,t,n){var n=!(2<arguments.length&&void 0!==n)||n,r=t.decimal,a=t.errorOnInvalid,o=t.fromCents,t=Math.pow(10,t.precision),i=e instanceof l;if(i&&o)return e.intValue;if("number"==typeof e||i)r=i?e.value:e;else if("string"==typeof e)a=new RegExp("[^-\\d"+r+"]","g"),r=new RegExp("\\"+r,"g"),r=e.replace(/\((.*)\)/,"-$1").replace(a,"").replace(r,".")||0;else{if(a)throw Error("Invalid Input");r=0}return o||(r=(r*t).toFixed(4)),n?Math.round(r):r}var a,o,i;e.exports=(a={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var n=t.pattern,r=t.negativePattern,a=t.symbol,o=t.separator,i=t.decimal;t=t.groups;var s=(l=(""+e).replace(/^-/,"").split("."))[0],l=l[1];return(0<=e.value?n:r).replace("!",a).replace("#",s.replace(t,"$1"+o)+(l?i+l:""))},fromCents:!1},o=/(\d)(?=(\d{3})+\b)/g,i=/(\d)(?=(\d\d)+\d\b)/g,l.prototype={add:function(e){var t=this.s,n=this.p;return l((this.intValue+r(e,t))/(t.fromCents?1:n),t)},subtract:function(e){var t=this.s,n=this.p;return l((this.intValue-r(e,t))/(t.fromCents?1:n),t)},multiply:function(e){var t=this.s;return l(this.intValue*e/(t.fromCents?1:Math.pow(10,t.precision)),t)},divide:function(e){var t=this.s;return l(this.intValue/r(e,t,!1),t)},distribute:function(e){for(var t=this.intValue,n=this.p,r=this.s,a=[],o=Math[0<=t?"floor":"ceil"](t/e),i=Math.abs(t-o*e),n=r.fromCents?1:n;0!==e;e--){var s=l(o/n,r);0<i--&&(s=s[0<=t?"add":"subtract"](1/n)),a.push(s)}return a},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e=this.s,t=e.increment;return(Math.round(this.intValue/this.p/t)*t).toFixed(e.precision)},toJSON:function(){return this.value}},l)});function Kt(n){let r,a,o,i,s,l,c,u,h,p,d,f,m,g,y,b,B,E,v,T,w,A,M,_,S,H,C=n[7]("balanceTitle")+"",L=n[7]("totalBalance")+"",R=n[7]("depositButton")+"";function P(e){return"gm16"==e[0]?Zt:Yt}let N=P(n),I=N(n);return{c(){r=t("div"),a=t("div"),o=ce(),i=t("div"),s=t("div"),l=t("p"),c=le(C),u=ce(),h=t("div"),p=t("div"),d=t("p"),f=le(L),m=ce(),g=t("p"),y=t("span"),b=le(n[4]),B=ce(),E=t("span"),v=le(n[5]),T=ce(),I.c(),w=ce(),A=t("div"),M=t("button"),_=le(R),ue(a,"class","BalanceModalClose"),ue(l,"class","BalanceModalTitle"),ue(l,"part","BalanceModalTitle"),ue(s,"class","BalanceModalHeader"),ue(s,"part","BalanceModalHeader"),ue(d,"class","BalanceModalText"),ue(d,"part","BalanceModalText"),ue(y,"class","BalanceModalAmount"),ue(y,"part","BalanceModalAmount"),ue(E,"class","BalanceModalCurrency"),ue(E,"part","BalanceModalCurrency"),ue(g,"class","BalanceModalValue"),ue(g,"part","BalanceModalValue"),ue(p,"class","BalanceModalRow"),ue(p,"part","BalanceModalRow"),ue(h,"class","BalanceModalBody"),ue(h,"part","BalanceModalBody"),ue(M,"class","BalanceModalAction"),ue(M,"part","BalanceModalAction"),ue(A,"class","BalanceModalFooter"),ue(A,"part","BalanceModalFooter"),ue(i,"class","BalanceModal"),ue(i,"part","BalanceModal"),ue(r,"class","BalanceModalWrapper"),ue(r,"part","BalanceModalWrapper")},m(e,t){ie(e,r,t),oe(r,a),oe(r,o),oe(r,i),oe(i,s),oe(s,l),oe(l,c),oe(i,u),oe(i,h),oe(h,p),oe(p,d),oe(d,f),oe(p,m),oe(p,g),oe(g,y),oe(y,b),oe(g,B),oe(g,E),oe(E,v),oe(h,T),I.m(h,null),oe(i,w),oe(i,A),oe(A,M),oe(M,_),S||(H=[x(a,"click",n[24]),x(M,"click",n[25])],S=!0)},p(e,t){128&t[0]&&C!==(C=e[7]("balanceTitle")+"")&&he(c,C),128&t[0]&&L!==(L=e[7]("totalBalance")+"")&&he(f,L),16&t[0]&&he(b,e[4]),32&t[0]&&he(v,e[5]),N===(N=P(e))&&I?I.p(e,t):(I.d(1),(I=N(e))&&(I.c(),I.m(h,null))),128&t[0]&&R!==(R=e[7]("depositButton")+"")&&he(_,R)},d(e){e&&se(r),I.d(),S=!1,O(H)}}}function Yt(e){let n,r,a,o,i,s,l,c,u,h,p,d,f,m,g,y,b,B,E,v=e[7]("cashBalance")+"",T=e[7]("bonusBalance")+"";return{c(){n=t("div"),r=t("p"),a=le(v),o=ce(),i=t("p"),(s=t("span")).textContent=""+e[11](e[8].get("Casino").balanceAmount),l=ce(),c=t("span"),u=le(e[5]),h=ce(),p=t("div"),d=t("p"),f=le(T),m=ce(),g=t("p"),(y=t("span")).textContent=""+e[11](e[8].get("UBS").balanceAmount),b=ce(),B=t("span"),E=le(e[5]),ue(r,"class","BalanceModalText"),ue(r,"part","BalanceModalText"),ue(s,"class","BalanceModalAmount"),ue(s,"part","BalanceModalAmount"),ue(c,"class","BalanceModalCurrency"),ue(c,"part","BalanceModalCurrency"),ue(i,"class","BalanceModalValue"),ue(i,"part","BalanceModalValue"),ue(n,"class","BalanceModalRow"),ue(n,"part","BalanceModalRow"),ue(d,"class","BalanceModalText"),ue(d,"part","BalanceModalText"),ue(y,"class","BalanceModalAmount"),ue(y,"part","BalanceModalAmount"),ue(B,"class","BalanceModalCurrency"),ue(B,"part","BalanceModalCurrency"),ue(g,"class","BalanceModalValue"),ue(g,"part","BalanceModalValue"),ue(p,"class","BalanceModalRow"),ue(p,"part","BalanceModalRow")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(n,o),oe(n,i),oe(i,s),oe(i,l),oe(i,c),oe(c,u),ie(e,h,t),ie(e,p,t),oe(p,d),oe(d,f),oe(p,m),oe(p,g),oe(g,y),oe(g,b),oe(g,B),oe(B,E)},p(e,t){128&t[0]&&v!==(v=e[7]("cashBalance")+"")&&he(a,v),32&t[0]&&he(u,e[5]),128&t[0]&&T!==(T=e[7]("bonusBalance")+"")&&he(f,T),32&t[0]&&he(E,e[5])},d(e){e&&se(n),e&&se(h),e&&se(p)}}}function Zt(e){let n;function r(e){return"Casino"==e[1]||"Sports"==e[1]?qt:"All"==e[1]?Wt:void 0}let a=r(e),o=a&&a(e);return{c(){o&&o.c(),n=le("")},m(e,t){o&&o.m(e,t),ie(e,n,t)},p(e,t){a===(a=r(e))&&o?o.p(e,t):(o&&o.d(1),(o=a&&a(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o&&o.d(e),e&&se(n)}}}function Wt(e){let n,r,a,o,D,U,i,s,l,$,c,u,G,h,p,d,F,k,f,m,g,V,y,j,X,b,B,E,z,K,Y,v,T,Z,W,w,q,J,A,M,Q,ee,te,_,S,ne,re,H,ae,C=e[7]("cashBalance")+"",L=e[6].Casino.Real+"",R=e[7]("cashBalance")+"",P=e[6].Sports.Real+"",N=e[7]("bonusBalance")+"",I=e[6].Casino.Bonus+"",O=e[7]("bonusBalance")+"",x=e[6].Sports.Bonus+"";return{c(){n=t("div"),r=t("div"),a=t("p"),o=le(C),D=le(" Casino"),U=ce(),i=t("p"),s=t("span"),l=le(L),$=ce(),c=t("span"),u=le(e[5]),G=ce(),h=t("div"),p=t("p"),d=le(R),F=le(" Sports"),k=ce(),f=t("p"),m=t("span"),g=le(P),V=ce(),y=t("span"),j=le(e[5]),X=ce(),b=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(),w=t("span"),q=le(e[5]),J=ce(),A=t("div"),M=t("p"),Q=le(O),ee=le(" Sports"),te=ce(),_=t("p"),S=t("span"),ne=le(x),re=ce(),H=t("span"),ae=le(e[5]),ue(a,"class","BalanceModalText"),ue(a,"part","BalanceModalText"),ue(s,"class","BalanceModalAmount"),ue(s,"part","BalanceModalAmount"),ue(c,"class","BalanceModalCurrency"),ue(c,"part","BalanceModalCurrency"),ue(i,"class","BalanceModalValue"),ue(i,"part","BalanceModalValue"),ue(r,"class","BalanceModalRowLine"),ue(p,"class","BalanceModalText"),ue(p,"part","BalanceModalText"),ue(m,"class","BalanceModalAmount"),ue(m,"part","BalanceModalAmount"),ue(y,"class","BalanceModalCurrency"),ue(y,"part","BalanceModalCurrency"),ue(f,"class","BalanceModalValue"),ue(f,"part","BalanceModalValue"),ue(h,"class","BalanceModalRowLine"),ue(n,"class","BalanceModalRowBoth"),ue(n,"part","BalanceModalRow"),ue(E,"class","BalanceModalText"),ue(E,"part","BalanceModalText"),ue(T,"class","BalanceModalAmount"),ue(T,"part","BalanceModalAmount"),ue(w,"class","BalanceModalCurrency"),ue(w,"part","BalanceModalCurrency"),ue(v,"class","BalanceModalValue"),ue(v,"part","BalanceModalValue"),ue(B,"class","BalanceModalRowLine"),ue(M,"class","BalanceModalText"),ue(M,"part","BalanceModalText"),ue(S,"class","BalanceModalAmount"),ue(S,"part","BalanceModalAmount"),ue(H,"class","BalanceModalCurrency"),ue(H,"part","BalanceModalCurrency"),ue(_,"class","BalanceModalValue"),ue(_,"part","BalanceModalValue"),ue(A,"class","BalanceModalRowLine"),ue(b,"class","BalanceModalRowBoth"),ue(b,"part","BalanceModalRow")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(a,o),oe(a,D),oe(r,U),oe(r,i),oe(i,s),oe(s,l),oe(i,$),oe(i,c),oe(c,u),oe(n,G),oe(n,h),oe(h,p),oe(p,d),oe(p,F),oe(h,k),oe(h,f),oe(f,m),oe(m,g),oe(f,V),oe(f,y),oe(y,j),ie(e,X,t),ie(e,b,t),oe(b,B),oe(B,E),oe(E,z),oe(E,K),oe(B,Y),oe(B,v),oe(v,T),oe(T,Z),oe(v,W),oe(v,w),oe(w,q),oe(b,J),oe(b,A),oe(A,M),oe(M,Q),oe(M,ee),oe(A,te),oe(A,_),oe(_,S),oe(S,ne),oe(_,re),oe(_,H),oe(H,ae)},p(e,t){128&t[0]&&C!==(C=e[7]("cashBalance")+"")&&he(o,C),64&t[0]&&L!==(L=e[6].Casino.Real+"")&&he(l,L),32&t[0]&&he(u,e[5]),128&t[0]&&R!==(R=e[7]("cashBalance")+"")&&he(d,R),64&t[0]&&P!==(P=e[6].Sports.Real+"")&&he(g,P),32&t[0]&&he(j,e[5]),128&t[0]&&N!==(N=e[7]("bonusBalance")+"")&&he(z,N),64&t[0]&&I!==(I=e[6].Casino.Bonus+"")&&he(Z,I),32&t[0]&&he(q,e[5]),128&t[0]&&O!==(O=e[7]("bonusBalance")+"")&&he(Q,O),64&t[0]&&x!==(x=e[6].Sports.Bonus+"")&&he(ne,x),32&t[0]&&he(ae,e[5])},d(e){e&&se(n),e&&se(X),e&&se(b)}}}function qt(e){let n,r,a,o,i,s,l,c,u,h,p,d,f,m,g,y,b,B,E,v,T,w=e[7]("cashBalance")+"",A=e[6][e[1]].Real+"",M=e[7]("bonusBalance")+"",_=e[6][e[1]].Bonus+"";return{c(){n=t("div"),r=t("p"),a=le(w),o=ce(),i=t("p"),s=t("span"),l=le(A),c=ce(),u=t("span"),h=le(e[5]),p=ce(),d=t("div"),f=t("p"),m=le(M),g=ce(),y=t("p"),b=t("span"),B=le(_),E=ce(),v=t("span"),T=le(e[5]),ue(r,"class","BalanceModalText"),ue(r,"part","BalanceModalText"),ue(s,"class","BalanceModalAmount"),ue(s,"part","BalanceModalAmount"),ue(u,"class","BalanceModalCurrency"),ue(u,"part","BalanceModalCurrency"),ue(i,"class","BalanceModalValue"),ue(i,"part","BalanceModalValue"),ue(n,"class","BalanceModalRow"),ue(n,"part","BalanceModalRow"),ue(f,"class","BalanceModalText"),ue(f,"part","BalanceModalText"),ue(b,"class","BalanceModalAmount"),ue(b,"part","BalanceModalAmount"),ue(v,"class","BalanceModalCurrency"),ue(v,"part","BalanceModalCurrency"),ue(y,"class","BalanceModalValue"),ue(y,"part","BalanceModalValue"),ue(d,"class","BalanceModalRow"),ue(d,"part","BalanceModalRow")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(n,o),oe(n,i),oe(i,s),oe(s,l),oe(i,c),oe(i,u),oe(u,h),ie(e,p,t),ie(e,d,t),oe(d,f),oe(f,m),oe(d,g),oe(d,y),oe(y,b),oe(b,B),oe(y,E),oe(y,v),oe(v,T)},p(e,t){128&t[0]&&w!==(w=e[7]("cashBalance")+"")&&he(a,w),66&t[0]&&A!==(A=e[6][e[1]].Real+"")&&he(l,A),32&t[0]&&he(h,e[5]),128&t[0]&&M!==(M=e[7]("bonusBalance")+"")&&he(m,M),66&t[0]&&_!==(_=e[6][e[1]].Bonus+"")&&he(B,_),32&t[0]&&he(T,e[5])},d(e){e&&se(n),e&&se(p),e&&se(d)}}}function Jt(n){let r,a,o;return{c(){ue(r=t("div"),"class","ShowBalanceModalOverlay"),ue(r,"part","ShowBalanceModalOverlay")},m(e,t){ie(e,r,t),a||(o=x(r,"click",n[26]),a=!0)},p:y,d(e){e&&se(r),a=!1,o()}}}function Qt(n){let r,a,o,i,s,l,c,u,h,p,d,f,m=n[3]&&Kt(n),g=n[3]&&Jt(n);return{c(){r=t("div"),a=t("div"),o=t("p"),i=le(n[4]),s=ce(),l=le(n[5]),c=ce(),(u=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>',h=ce(),m&&m.c(),p=ce(),g&&g.c(),this.c=y,ue(o,"class","BalanceValue"),ue(o,"part","BalanceValue"),ue(a,"class","ShowBalance"),ue(a,"part","ShowBalance")},m(e,t){ie(e,r,t),oe(r,a),oe(a,o),oe(o,i),oe(o,s),oe(o,l),oe(o,c),oe(o,u),oe(a,h),m&&m.m(a,null),oe(r,p),g&&g.m(r,null),n[27](r),d||(f=x(o,"click",n[23]),d=!0)},p(e,t){16&t[0]&&he(i,e[4]),32&t[0]&&he(l,e[5]),e[3]?m?m.p(e,t):((m=Kt(e)).c(),m.m(a,null)):m&&(m.d(1),m=null),e[3]?g?g.p(e,t):((g=Jt(e)).c(),g.m(r,null)):g&&(g.d(1),g=null)},i:y,o:y,d(e){e&&se(r),m&&m.d(),g&&g.d(),n[27](null),d=!1,f()}}}function en(t,e,i){let n;var r=Gt;t.$$.on_destroy.push(I(r,e=>i(7,n=e)));let a,o,{userid:s=""}=e,{session:l=""}=e,{endpoint:c=""}=e,{lang:u="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:p=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:f=""}=e,{gmversion:m=""}=e,{displaybalanceoption:g="All"}=e,{currencyseparator:y=""}=e,{currencydecimal:b=""}=e,{currencyprecision:B="2"}=e,E=!1,v="",T="",w=!1,A=new Map;const M={Casino:{Real:0,Bonus:0},Sports:{Real:0,Bonus:0}},_=(Object.keys(kt).forEach(e=>{Ft(e,kt[e])}),e=>{switch(e){case"balance":i(3,E=!0);break;case"closebalance":i(3,E=!1)}}),S=(e,t)=>{e=new Xt.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});o&&o.close(),(o=e).addEventListener("message",e=>{try{var t=JSON.parse(e.data)["balanceChange"],n=A.get("Casino"),r=A.get("UBS");t&&t[n.id]&&A.set("Casino",Object.assign(Object.assign({},n),{balanceAmount:t[n.id].afterAmount})),t&&t[r.id]&&A.set("UBS",Object.assign(Object.assign({},r),{balanceAmount:t[r.id].afterAmount})),n=A.get("Casino"),r=A.get("UBS"),i(4,v=L(Number((parseFloat(n.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))))}catch(e){console.log("Balance stream failed: ",e),S(`${c}/player/${s}/balance/updates`,l)}})},H=()=>{_("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},C=()=>{let e;return e=f.includes(u)?f:e},L=e=>{return f?new Intl.NumberFormat(C(),{useGrouping:!0}).format(e):(y&&b?zt(e,{separator:y,decimal:b,symbol:"",precision:parseInt(B,10)}):zt(e,{separator:".",decimal:",",symbol:"",precision:parseInt(B,10)})).format()},R=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&o.close()};return r=()=>(window.addEventListener("message",R,!1),()=>{window.removeEventListener("message",R),o&&o.close()}),function(){if(P)return P;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r),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,u=e.lang),"clientstyling"in e&&i(16,h=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,g=e.displaybalanceoption),"currencyseparator"in e&&i(20,y=e.currencyseparator),"currencydecimal"in e&&i(21,b=e.currencydecimal),"currencyprecision"in e&&i(22,B=e.currencyprecision)},t.$$.update=()=>{if(32768&t.$$.dirty[0]&&u&&C(),61441&t.$$.dirty[0]&&c&&s&&l&&u&&m){var e=u;switch(N.set(e),m){case"gmcore":(async e=>{try{w=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw w=!1,new Error("Failed to fetch balance data !");{w=!1,n.items.map(e=>A.set(e.displayName,e));const e=A.get("Casino"),r=A.get("UBS");i(5,T=e.currency),i(4,v=L(Number((parseFloat(e.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(parseInt(B,10)))))}}catch(e){w=!1,console.log("Balance error: ",e)}finally{w=!1}})(new URL(`${c}/player/${s}/account`));break;case"gm16":(async e=>{try{w=!0,"Casino"==g&&e.searchParams.append("productType","Casino"),"Sports"==g&&e.searchParams.append("productType","Sports"),"All"===g&&(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 w=!1,new Error("Failed to fetch balance data !");w=!1;for(const e of n.items){var{type:r,amount:a,productType:o}=e;"Casino"===g&&"Casino"===o?i(6,M.Casino[r]+=a,M):"Sports"===g&&"Sports"===o?i(6,M.Sports[r]+=a,M):"All"===g&&i(6,M[o][r]+=a,M)}i(5,T=Object.keys(n.totalAmount)[0]),i(4,v=n.totalAmount[T])}catch(e){w=!1,console.log("Balance error: ",e)}finally{w=!1}})(new URL(`${c}/player/${s}/balance`));break;default:throw Error("Invalid apiversion attribute: "+m)}}if(28672&t.$$.dirty[0]&&c&&s&&l&&S(`${c}/player/${s}/balance/updates`,l),65540&t.$$.dirty[0]&&h&&a&&((e=document.createElement("style")).innerHTML=h,a.appendChild(e)),131076&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)})}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,g,a,E,v,T,M,n,A,_,H,L,s,l,c,u,h,p,d,f,y,b,B,()=>_("balance"),()=>_("closebalance"),()=>H(),()=>_("closebalance"),function(e){D[e?"unshift":"push"](()=>{a=e,i(2,a)})}]}class tn extends V{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{font-family:inherit}:host{font-family:inherit}button{font-family:inherit}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(-60%);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:60%;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},en,Qt,C,{userid:12,session:13,endpoint:14,lang:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:0,displaybalanceoption:1,currencyseparator:20,currencydecimal:21,currencyprecision:22},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","currencyseparator","currencydecimal","currencyprecision"]}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()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(e){this.$$set({currencyseparator:e}),f()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(e){this.$$set({currencydecimal:e}),f()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(e){this.$$set({currencyprecision:e}),f()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",tn),tn});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function y(){}function _(e){return e()}function H(){return Object.create(null)}function O(e){e.forEach(_)}function S(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function x(e,...t){if(null==e)return y;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function oe(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 D(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ue(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function he(e,t){e.data!==(t=""+t)&&(e.data=t)}let N;function p(e){N=e}const d=[],$=[];let o=[];const L=[],R=Promise.resolve();let P=!1;function U(e){o.push(e)}const G=new Set;let a=0;function f(){if(0===a){const r=N;do{try{for(;a<d.length;){const r=d[a];a++,p(r),e=t=void 0;var e,t=r.$$;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(U))}}catch(r){throw d.length=0,a=0,r}for(p(null),d.length=0,a=0;$.length;)$.pop()();for(let e=0;e<o.length;e+=1){var n=o[e];G.has(n)||(G.add(n),n())}}while(o.length=0,d.length);for(;L.length;)L.pop()();P=!1,G.clear(),p(r)}}const F=new Set;function k(r,e,t,n,a,o,i,s=[-1]){var l=N;p(r);const c=r.$$={fragment:null,ctx:[],props:o,update:y,not_equal:a,bound:H(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:H(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&a(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u)&&(n=e,-1===(e=r).$$.dirty[0]&&(d.push(e),P||(P=!0,R.then(f)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),u=!0,O(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){o=e.target;const y=Array.from(o.childNodes);c.fragment&&c.fragment.l(y),y.forEach(se)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&(F.delete(s),s.i(void 0));var h=r,i=e.target,t=e.anchor,n=e.customElement,{fragment:o,after_update:s}=h.$$;o&&o.m(i,t),n||U(()=>{var e=h.$$.on_mount.map(_).filter(S);h.$$.on_destroy?h.$$.on_destroy.push(...e):O(e),h.$$.on_mount=[]}),s.forEach(U),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(_).filter(S);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 r=[],a=[];o.forEach(e=>(-1===n.indexOf(e)?r:a).push(e)),a.forEach(e=>e()),o=r}O(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=y}$on(e,t){if(!S(t))return y;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 j(r,a=y){let o;const i=new Set;function s(e){if(C(r,e)&&(r=e,o)){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=y){const n=[e,t];return i.add(n),1===i.size&&(o=a(s)||y),e(r),()=>{i.delete(n),0===i.size&&o&&(o(),o=null)}}}}function e(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:j(t,t=>{let n=!1;const r=[];let a=0,o=y;const i=()=>{var e;a||(o(),e=s(l?r[0]:r,t),u?t(e):o=S(e)?e:y)},e=c.map((e,t)=>x(e,e=>{r[t]=e,a&=~(1<<t),n&&i()},()=>{a|=1<<t}));return n=!0,i(),function(){O(e),o(),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(r,a,o){var i={};return o.isMergeableObject(r)&&Y(r).forEach(function(e){i[e]=s(r[e],o)}),Y(a).forEach(function(e){var t,n;(!Z(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(Z(r,e)&&o.isMergeableObject(a[e])?i[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:l)(r[e],a[e],o):i[e]=s(a[e],o))}),i}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||K,n.isMergeableObject=n.isMergeableObject||X,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?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,J=function(e,t){return(J=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 Q(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}J(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,b,g,B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function ee(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||((r=r||Array.prototype.slice.call(t,0,a))[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function te(e){return e.type===b.literal}function ne(e){return e.type===b.number}function re(e){return e.type===b.date}function ae(e){return e.type===b.time}function pe(e){return e.type===b.select}function de(e){return e.type===b.plural}function fe(e){return e.type===b.tag}function me(e){return e&&"object"==typeof e&&e.type===g.number}function ge(e){return e&&"object"==typeof e&&e.type===g.dateTime}(r=m=m||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=b=b||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=g=g||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ye=/(?:[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,Be=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ee=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function we(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Ee,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 Ae(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Me(e){return Ae(e)||{}}function _e(e){for(var i={},t=0,n=e;t<n.length;t++){var r,a=n[t];switch(a.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=a.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=a.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"}),a.options.reduce(function(e,t){return B(B({},e),Me(t))},{}));continue;case"engineering":i=B(B(B({},i),{notation:"engineering"}),a.options.reduce(function(e,t){return B(B({},e),Me(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(a.options[0]);continue;case"integer-width":if(1<a.options.length)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(ve,function(e,t,n,r,a,o){if(t)i.minimumIntegerDigits=n.length;else{if(r&&a)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Te.test(a.stem))i.minimumIntegerDigits=a.stem.length;else if(Be.test(a.stem)){if(1<a.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Be,function(e,t,n,r,a,o){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:a&&o?(i.minimumFractionDigits=a.length,i.maximumFractionDigits=a.length+o.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var o=a.options[0];"w"===o?i=B(B({},i),{trailingZeroDisplay:"stripIfInteger"}):o&&(i=B(B({},i),we(o)))}else Ee.test(a.stem)?i=B(B({},i),we(a.stem)):((o=Ae(a.stem))&&(i=B(B({},i),o)),(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)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(a.stem))&&(i=B(B({},i),r)))}return i}var He={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 Se=new RegExp("^".concat(r.source,"*")),Ce=new RegExp("".concat(r.source,"*$"));function E(e,t){return{start:e,end:t}}var r=!!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(y){xe=!1}var De,$e,Ue=r?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Ge=Le?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",a=e.length,o=0;o<a;){if(1114111<(n=e[o++]))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},Fe=Re?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n],o=a[0],a=a[1];t[o]=a}return t},ke=Pe?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},Ve=Ne?function(e){return e.trimStart()}:function(e){return e.replace(Se,"")},je=Ie?function(e){return e.trimEnd()}:function(e){return e.replace(Ce,"")};function Xe(e,t){return new RegExp(e,t)}$e=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,r=[];;){var a=ke(e,t);if(void 0===a||Ye(a)||33<=(n=a)&&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(a),t+=65536<=a?2:1}return Ge.apply(void 0,r)};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 r=[];!this.isEOF();){var a,o=this.char();if(123===o){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ke(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a}else if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}else{o=this.clonePosition();this.bump(),r.push({type:b.pound,location:E(o,this.clonePosition())})}}}return{val:r,err:null}},i.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),a=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(a,"/>"),location:E(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()||!Ke(this.char())?this.error(m.INVALID_TAG,E(e,this.clonePosition())):(n=this.clonePosition(),a!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,E(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:a,children:t,location:E(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,E(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,E(r,this.clonePosition()))):this.error(m.INVALID_TAG,E(r,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(),r="";;){var a=this.tryParseQuote(t);if(a)r+=a;else{a=this.tryParseUnquoted(e,t);if(a)r+=a;else{a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}n=E(n,this.clonePosition());return{val:{type:b.literal,value:r,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 Ge.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(),Ge(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 r=this.parseIdentifierIfPossible().value;if(!r)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:b.argument,value:r,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,r,n);default:return this.error(m.MALFORMED_ARGUMENT,E(n,this.clonePosition()))}},i.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:E(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,n,r){var a,o=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,E(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=je(h.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(r)).err?c:(d=E(r,this.clonePosition()),l&&Ue(null==l?void 0:l.style,"::",0)?(f=Ve(l.style.slice(2)),"number"===i?(h=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:d,style:h.val},err:null}:0===f.length?this.error(m.EXPECT_DATE_TIME_SKELETON,d):(u=f,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if("j"===a){for(var o=0;r+1<e.length&&e.charAt(r+1)===a;)o++,r++;var i=1+(1&o),s=o<2?1:3+(o>>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),(He[t||""]||He[n||""]||He["".concat(n,"-001")]||He["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===a?"H":a}return n}(f,this.locale)),p={type:g.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(a={},u.replace(ye,function(e){var t=e.length;switch(e[0]){case"G":a.era=4===t?"long":5===t?"narrow":"short";break;case"y":a.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":a.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":a.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":a.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][t-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][t-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][t-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][t-1];break;case"k":a.hourCycle="h24",a.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":a.minute=["numeric","2-digit"][t-1];break;case"s":a.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":a.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""}),a):{}},{val:{type:"date"===i?b.date:b.time,value:n,location:d,style:p},err:null})):{val:{type:"number"===i?b.number:"date"===i?b.date:b.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 u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,E(u,B({},u)));this.bumpSpace();var h,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(),(h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),p=this.parseIdentifierIfPossible(),d=h.val}var f,l=this.tryParsePluralOrSelectOptions(e,i,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(f=E(r,this.clonePosition()),"select"===i?{val:{type:b.select,value:n,options:Fe(l.val),location:f},err:null}:{val:{type:b.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(o,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,r=e.split(be).filter(function(e){return 0<e.length});n<r.length;n++){var a=r[n].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var o=a[0],a=a.slice(1),i=0,s=a;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}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?_e(n):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var a=!1,o=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;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&&(a=!0),this.bumpSpace();u=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 h=this.tryParseArgumentClose(u);if(h.err)return h;o.push([s,{value:c.val,location:E(u,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(m.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:o,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,o=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;a=!0,o=10*o+(i-48),this.bump()}r=E(r,this.clonePosition());return a?Oe(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},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(Ue(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)||(re(e)||ae(e))&&ge(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,r=t&&t.serializer?t.serializer:et;return(t&&t.strategy?t.strategy:function(e,t){return Qe(e,this,1===e.length?qe:Je,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function qe(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(n);return void 0===a&&(a=e.call(this,r),t.set(n,a)),a}function Je(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),a=t.get(n);return void 0===a&&(a=e.apply(this,r),t.set(n,a)),a}function Qe(e,t,n,r,a){return n.bind(t,e,r,a)}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}},rt={variadic:function(e,t){return Qe(e,this,Je,t.cache.create(),t.serializer)},monadic:function(e,t){return Qe(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";Q(mt,st=Error),mt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,at,ot,it,st,lt=mt,ct=(Q(ft,it=lt),ft),ut=(Q(dt,ot=lt),dt),ht=(Q(pt,at=lt),pt);function pt(e,t){return at.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 ot.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),v.INVALID_VALUE,n)||this}function ft(e,t,n,r){return it.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),v.INVALID_VALUE,r)||this}function mt(e,t,n){e=st.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function gt(e,t,n,r,a,o,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 u=c[l];if(te(u))s.push({type:T.literal,value:u.value});else if(u.type===b.pound)"number"==typeof o&&s.push({type:T.literal,value:n.getNumberFormat(t).format(o)});else{var h=u.value;if(!(a&&h in a))throw new ht(h,i);h=a[h];if(u.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?T.literal:T.object,value:h});else if(re(u)){var p="string"==typeof u.style?r.date[u.style]:ge(u.style)?u.style.parsedOptions:void 0;s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(h)})}else if(ae(u))p="string"==typeof u.style?r.time[u.style]:ge(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:T.literal,value:n.getDateTimeFormat(t,p).format(h)});else if(ne(u))(p="string"==typeof u.style?r.number[u.style]:me(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:T.literal,value:n.getNumberFormat(t,p).format(h)});else{if(fe(u)){var d=u.children,f=u.value,m=a[f];if("function"!=typeof m)throw new ut(f,"function",i);f=m(gt(d,t,n,r,a,o).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(u)){if(!(g=u.options[h]||u.options.other))throw new ct(u.value,h,Object.keys(u.options),i);s.push.apply(s,gt(g.value,t,n,r,a))}else if(de(u)){if(!(g=u.options["=".concat(h)])){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:u.pluralType}).select(h-(u.offset||0)),g=u.options[m]||u.options.other}if(!g)throw new ct(u.value,h,Object.keys(u.options),i);s.push.apply(s,gt(g.value,t,n,r,a,h-(u.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 yt(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(r=T=T||{})[r.literal=0]="literal",r[r.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=Ze,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 a,o,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 gt(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=(a=u.formats,(o=n)?Object.keys(a).reduce(function(e,t){var n,r;return e[t]=(n=a[t],(r=o[t])?B(B(B({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=B(B({},n[t]),r[t]||{}),e},{})):n),e},B({},a)):a),this.formatters=r&&r.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:yt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:rt.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:yt(t.dateTime),strategy:rt.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:yt(t.pluralRules),strategy:rt.variadic})}}const h={},Bt=(e,t,n)=>n&&(t in h||(h[t]={}),e in h[t]||(h[t][e]=n),n),Et=(t,n)=>{if(null!=n){if(n in h&&t in h[n])return h[n][t];var r=Nt(n);for(let e=0;e<r.length;e++){var a=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 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(a)return Bt(t,n,a)}}};let vt;const w=j({});function Tt(e){return e in vt}function wt(t,...n){delete h[t],w.update(e=>(e[t]=q.all([e[t]||{},...n]),e))}e([w],([e])=>Object.keys(e)),w.subscribe(e=>vt=e);const At={};function Mt(e){return At[e]}function _t(e){return null!=e&&Nt(e).some(e=>{return null==(e=Mt(e))?void 0:e.size})}const Ht={};function St(e){var t;return _t(e)?(t=Nt(e).map(e=>{var t=Mt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Ht[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,At[t].delete(n),0===At[t].size&&delete At[t],e().then(e=>e.default||e);var t,n})).then(e=>wt(r,...e));var r})).then(()=>{if(_t(e))return St(e);delete Ht[e]}),Ht[e]):e in Ht?Ht[e]:Promise.resolve()}const A={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=j(!1);let Lt;const Rt=j(null);function Pt(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Nt(e,t=A.fallbackLocale){e=Pt(e);return t?[...new Set([...e,...Pt(t)])]:e}function M(){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 I={...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=A["loadingDelay"];let e;return"undefined"!=typeof window&&null!=M()&&n?e=window.setTimeout(()=>Ct.set(!0),n):Ct.set(!0),St(t).then(()=>{Rt.set(t)}).finally(()=>{clearTimeout(e),Ct.set(!1)})}return Rt.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)}},Ot=(e,t)=>{var n=A["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)}),$t=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)}),Ut=It((e,t=M())=>new bt(e,t,A.formats,{ignoreTag:A.ignoreTag})),Gt=e([I,w],()=>(e,t={})=>{var n,r;let a=t;"object"==typeof e&&(e=(a=e).id);var{values:o,locale:i=M(),default:s}=a;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!=(r=null!=(n=null==(n=(r=A).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!o)return l;let c=l;try{c=Ut(l,i).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});function Ft(e,t){wt(e,t)}e([I],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],$t({locale:t,...n}).format(e);var n}),e([I],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],Dt({locale:t,...n}).format(e);var n}),e([I],()=>(e,t)=>{return[{locale:t=M(),...n}={}]=[t],xt({locale:t,...n}).format(e);var n}),e([I,w],()=>(e,t=M())=>Et(e,t));const kt={en:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"},"zh-hk":{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"},de:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"},it:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"},fr:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"},es:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"},tr:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"},ru:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"},ro:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"},hr:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"},hu:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"},pl:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"},pt:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"},sl:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"},sr:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}};var Vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function jt(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var Xt=jt(function(v,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Vt:globalThis,R=t.setTimeout,P=t.clearTimeout,N=t.XMLHttpRequest,a=t.XDomainRequest,n=t.ActiveXObject,o=t.EventSource,i=t.document,h=t.Promise,p=t.fetch,s=t.Response,d=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;function c(){this.bitsNeeded=0,this.codePoint=0}function u(){}function I(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function m(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"),r=0;r<n.length;r+=1){var a=n[r].split(": "),o=a.shift(),a=a.join(": ");t[m(o)]=a}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 B(e){this.type=e,this.target=void 0}function $(e,t){B.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function U(e,t){B.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function G(e,t){B.call(this,e),this.error=t.error}function F(e,t){return e=null==e?t:parseInt(e,10),j(e=e!=e?t:e)}function k(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}"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!=n&&(N=function(){return new n("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&&(r=p,p=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),c.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="",a=this.bitsNeeded,o=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==a&&(s<128||191<s||!t(o<<6|63&s,a-6,n(a,o)))&&(a=0,o=65533,r+=String.fromCharCode(o)),0===a?(o=0<=s&&s<=127?(a=0,s):192<=s&&s<=223?(a=6,31&s):224<=s&&s<=239?(a=12,15&s):240<=s&&s<=247?(a=18,7&s):(a=0,65533),0===a||t(o,a,n(a,o))||(a=0,o=65533)):(a-=6,o=o<<6|63&s),0===a&&(o<=65535?r+=String.fromCharCode(o):r=(r+=String.fromCharCode(55296+(o-65535-1>>10)))+String.fromCharCode(56320+(o-65535-1&1023)))}return this.bitsNeeded=a,this.codePoint=o,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=c),I.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(P(r),r=0),a.readyState=4,"load"===e)a.onload(t);else if("error"===e)a.onerror(t);else{if("abort"!==e)throw new TypeError;a.onabort(t)}a.onreadystatechange()}}var a=this,o=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==a._sendTimeout&&(P(a._sendTimeout),a._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,o.onload=u,o.onerror=u,o.onabort=u,o.onprogress=u,o.onreadystatechange=u,o.abort(),0!==r&&(P(r),r=0),e)||(a.readyState=4,a.onabort(null),a.onreadystatechange()),i=0},function(){if(1===i){var t=0,n="",r=void 0;if("contentType"in o)t=200,n="OK",r=o.contentType;else try{t=o.status,n=o.statusText,r=o.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,a.readyState=2,a.status=t,a.statusText=n,a._contentType=r,a.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=o.responseText}catch(e){}a.readyState=3,a.responseText=e,a.onprogress()}},c=function(){r=R(function(){c()},500),3===o.readyState&&l()};"onload"in o&&(o.onload=function(e){n("load",e)}),"onerror"in o&&(o.onerror=function(e){n("error",e)}),"onabort"in o&&(o.onabort=function(e){n("abort",e)}),"onprogress"in o&&(o.onprogress=l),"onreadystatechange"in o&&(o.onreadystatechange=function(e){e=e,null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||n(""===o.responseText?"error":"load",e):3===o.readyState?"onprogress"in o||l():2===o.readyState&&s())}),!("contentType"in o)&&"ontimeout"in N.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),o.open(e,t,!0),"readyState"in o&&(r=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[m(e)]},null!=N&&null==N.HEADERS_RECEIVED&&(N.HEADERS_RECEIVED=2),O.prototype.open=function(a,o,t,n,e,r,i){a.open("GET",e);var s,l=0;for(s in a.onprogress=function(){var e=a.responseText.slice(l);l+=e.length,t(e)},a.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},a.onload=function(){n(null)},a.onabort=function(){n(null)},a.onreadystatechange=function(){var e,t,n,r;a.readyState===N.HEADERS_RECEIVED&&(e=a.status,t=a.statusText,n=a.getResponseHeader("Content-Type"),r=a.getAllResponseHeaders(),o(e,t,n,new g(r)))},a.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&a.setRequestHeader(s,i[s]);return a.send(),a},y.prototype.get=function(e){return this._headers.get(e)},x.prototype.open=function(e,t,a,n,r,o,i){var s=null,l=new f,c=l.signal,u=new d;return p(r,{headers:i,credentials:o?"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 h(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),a(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 a=t[r];try{"function"==typeof a.handleEvent?a.handleEvent(e):a.call(this,e)}catch(e){b(e)}}},D.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var a=!1,o=0;o<r.length;o+=1)r[o]===t&&(a=!0);a||r.push(t)},D.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var a=[],o=0;o<r.length;o+=1)r[o]!==t&&a.push(r[o]);0===a.length?delete n[e]:n[e]=a}},$.prototype=Object.create(B.prototype),U.prototype=Object.create(B.prototype),G.prototype=Object.create(B.prototype);var V=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function E(e,t){var l,o,i,c,u,h,p,d,f,n,s,m,g,y,b,B,E,v,T,w,A,M,_,H,S,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,o=e,e=t,o=String(o),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=j(1e3),u=F(e.heartbeatTimeout,45e3),h="",p=c,d=!1,f=0,n=e.headers||{},e=e.Transport,s=X&&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),g=void 0,b=-1,T=v=E=B="",M=A=w=y=0,_=function(e,t,n,r){var a,o;0===b&&(200===e&&null!=n&&V.test(n)?(b=1,d=Date.now(),p=c,l.readyState=1,a=new U("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(a),k(l,l.onopen,a)):(o="",o=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(),a=new U("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(a),k(l,l.onerror,a),console.error(o)))},H=function(e){if(1===b){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 a=0;a<r.length;a+=1){var o,i=r.charCodeAt(a);if(-1===w&&i==="\n".charCodeAt(0))w=0;else if(-1===w&&(w=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==w&&(1===w&&(M=a+1),s=r.slice(A,M-1),o=r.slice(M+(M<a&&r.charCodeAt(M)===" ".charCodeAt(0)?1:0),a),"data"===s?B=B+"\n"+o:"id"===s?E=o:"event"===s?v=o:"retry"===s?(c=F(o,c),p=c):"heartbeatTimeout"===s&&(u=F(o,u),0!==y)&&(P(y),y=R(function(){L()},u))),0===w){if(""!==B){h=E;var s=new $(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===b)return}v=B=""}w=i==="\r".charCodeAt(0)?-1:0}else 0===w&&(A=a,w=1),1===w?i===":".charCodeAt(0)&&(M=a+1,w=2):2===w&&(w=3)}}},S=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&(P(y),y=0),y=R(function(){L()},p),p=j(Math.min(16*c,2*p)),l.readyState=0,t=new G("error",{error:e}),l.dispatchEvent(t),k(l,l.onerror,t),null!=e&&console.error(e))},C=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&(P(y),y=0),l.readyState=2},L=function(){if(y=0,-1===b){d=!1,f=0,y=R(function(){L()},u),E=h,T=v=B="",w=M=A=b=0;var e=o,t=("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h&&(e=-1===(t=o.indexOf("?"))?o:o.slice(0,t+1)+o.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===o.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a]);try{g=m.open(s,_,H,S,e,t,n)}catch(e){throw C(),e}}else d||null==g?(e=Math.max((d||Date.now())+u-Date.now(),1),d=!1,y=R(function(){L()},e)):(S(new Error("No activity within "+u+" milliseconds. "+(0===b?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=o,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=C,L()}var X=null!=p&&null!=s&&"body"in s.prototype;(E.prototype=Object.create(D.prototype)).CONNECTING=0,E.prototype.OPEN=1,E.prototype.CLOSED=2,E.prototype.close=function(){this._close()},E.CONNECTING=0,E.OPEN=1,E.CLOSED=2,E.prototype.withCredentials=void 0,t=o,null==N||null!=o&&"withCredentials"in o.prototype||(t=E),(s=e).EventSourcePolyfill=E,s.NativeEventSource=o,s.EventSource=t}),zt=jt(function(e,t){function l(e,t){if(!(this instanceof l))return new l(e,t);t=Object.assign({},a,t);var n=Math.pow(10,t.precision);this.intValue=e=r(e,t),this.value=e/n,t.increment=t.increment||1/n,t.groups=t.useVedic?i:o,this.s=t,this.p=n}function r(e,t,n){var n=!(2<arguments.length&&void 0!==n)||n,r=t.decimal,a=t.errorOnInvalid,o=t.fromCents,t=Math.pow(10,t.precision),i=e instanceof l;if(i&&o)return e.intValue;if("number"==typeof e||i)r=i?e.value:e;else if("string"==typeof e)a=new RegExp("[^-\\d"+r+"]","g"),r=new RegExp("\\"+r,"g"),r=e.replace(/\((.*)\)/,"-$1").replace(a,"").replace(r,".")||0;else{if(a)throw Error("Invalid Input");r=0}return o||(r=(r*t).toFixed(4)),n?Math.round(r):r}var a,o,i;e.exports=(a={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var n=t.pattern,r=t.negativePattern,a=t.symbol,o=t.separator,i=t.decimal;t=t.groups;var s=(l=(""+e).replace(/^-/,"").split("."))[0],l=l[1];return(0<=e.value?n:r).replace("!",a).replace("#",s.replace(t,"$1"+o)+(l?i+l:""))},fromCents:!1},o=/(\d)(?=(\d{3})+\b)/g,i=/(\d)(?=(\d\d)+\d\b)/g,l.prototype={add:function(e){var t=this.s,n=this.p;return l((this.intValue+r(e,t))/(t.fromCents?1:n),t)},subtract:function(e){var t=this.s,n=this.p;return l((this.intValue-r(e,t))/(t.fromCents?1:n),t)},multiply:function(e){var t=this.s;return l(this.intValue*e/(t.fromCents?1:Math.pow(10,t.precision)),t)},divide:function(e){var t=this.s;return l(this.intValue/r(e,t,!1),t)},distribute:function(e){for(var t=this.intValue,n=this.p,r=this.s,a=[],o=Math[0<=t?"floor":"ceil"](t/e),i=Math.abs(t-o*e),n=r.fromCents?1:n;0!==e;e--){var s=l(o/n,r);0<i--&&(s=s[0<=t?"add":"subtract"](1/n)),a.push(s)}return a},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e=this.s,t=e.increment;return(Math.round(this.intValue/this.p/t)*t).toFixed(e.precision)},toJSON:function(){return this.value}},l)});function Kt(n){let r,a,o,i,s,l,c,u,h,p,d,f,m,g,y,b,B,E,v,T,w,A,M,_,H,S,C=n[8]("balanceTitle")+"",L=n[8]("totalBalance")+"",R=n[8]("depositButton")+"";function P(e){return"gm16"==e[0]?Zt:Yt}let N=P(n),I=N(n);return{c(){r=t("div"),a=t("div"),o=ce(),i=t("div"),s=t("div"),l=t("p"),c=le(C),u=ce(),h=t("div"),p=t("div"),d=t("p"),f=le(L),m=ce(),g=t("p"),y=t("span"),b=le(n[4]),B=ce(),E=t("span"),v=le(n[5]),T=ce(),I.c(),w=ce(),A=t("div"),M=t("button"),_=le(R),ue(a,"class","BalanceModalClose"),ue(l,"class","BalanceModalTitle"),ue(l,"part","BalanceModalTitle"),ue(s,"class","BalanceModalHeader"),ue(s,"part","BalanceModalHeader"),ue(d,"class","BalanceModalText"),ue(d,"part","BalanceModalText"),ue(y,"class","BalanceModalAmount"),ue(y,"part","BalanceModalAmount"),ue(E,"class","BalanceModalCurrency"),ue(E,"part","BalanceModalCurrency"),ue(g,"class","BalanceModalValue"),ue(g,"part","BalanceModalValue"),ue(p,"class","BalanceModalRow"),ue(p,"part","BalanceModalRow"),ue(h,"class","BalanceModalBody"),ue(h,"part","BalanceModalBody"),ue(M,"class","BalanceModalAction"),ue(M,"part","BalanceModalAction"),ue(A,"class","BalanceModalFooter"),ue(A,"part","BalanceModalFooter"),ue(i,"class","BalanceModal"),ue(i,"part","BalanceModal"),ue(r,"class","BalanceModalWrapper"),ue(r,"part","BalanceModalWrapper")},m(e,t){ie(e,r,t),oe(r,a),oe(r,o),oe(r,i),oe(i,s),oe(s,l),oe(l,c),oe(i,u),oe(i,h),oe(h,p),oe(p,d),oe(d,f),oe(p,m),oe(p,g),oe(g,y),oe(y,b),oe(g,B),oe(g,E),oe(E,v),oe(h,T),I.m(h,null),oe(i,w),oe(i,A),oe(A,M),oe(M,_),H||(S=[D(a,"click",n[24]),D(M,"click",n[25])],H=!0)},p(e,t){256&t[0]&&C!==(C=e[8]("balanceTitle")+"")&&he(c,C),256&t[0]&&L!==(L=e[8]("totalBalance")+"")&&he(f,L),16&t[0]&&he(b,e[4]),32&t[0]&&he(v,e[5]),N===(N=P(e))&&I?I.p(e,t):(I.d(1),(I=N(e))&&(I.c(),I.m(h,null))),256&t[0]&&R!==(R=e[8]("depositButton")+"")&&he(_,R)},d(e){e&&se(r),I.d(),H=!1,O(S)}}}function Yt(e){let n,r,a,o,i,s,l,c,u,h,p,d,f,m,g,y,b,B,E,v,T,w=e[8]("cashBalance")+"",A=e[11](e[6][0].balanceAmount)+"",M=e[8]("bonusBalance")+"",_=e[11](e[6][1].balanceAmount)+"";return{c(){n=t("div"),r=t("p"),a=le(w),o=ce(),i=t("p"),s=t("span"),l=le(A),c=ce(),u=t("span"),h=le(e[5]),p=ce(),d=t("div"),f=t("p"),m=le(M),g=ce(),y=t("p"),b=t("span"),B=le(_),E=ce(),v=t("span"),T=le(e[5]),ue(r,"class","BalanceModalText"),ue(r,"part","BalanceModalText"),ue(s,"class","BalanceModalAmount"),ue(s,"part","BalanceModalAmount"),ue(u,"class","BalanceModalCurrency"),ue(u,"part","BalanceModalCurrency"),ue(i,"class","BalanceModalValue"),ue(i,"part","BalanceModalValue"),ue(n,"class","BalanceModalRow"),ue(n,"part","BalanceModalRow"),ue(f,"class","BalanceModalText"),ue(f,"part","BalanceModalText"),ue(b,"class","BalanceModalAmount"),ue(b,"part","BalanceModalAmount"),ue(v,"class","BalanceModalCurrency"),ue(v,"part","BalanceModalCurrency"),ue(y,"class","BalanceModalValue"),ue(y,"part","BalanceModalValue"),ue(d,"class","BalanceModalRow"),ue(d,"part","BalanceModalRow")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(n,o),oe(n,i),oe(i,s),oe(s,l),oe(i,c),oe(i,u),oe(u,h),ie(e,p,t),ie(e,d,t),oe(d,f),oe(f,m),oe(d,g),oe(d,y),oe(y,b),oe(b,B),oe(y,E),oe(y,v),oe(v,T)},p(e,t){256&t[0]&&w!==(w=e[8]("cashBalance")+"")&&he(a,w),64&t[0]&&A!==(A=e[11](e[6][0].balanceAmount)+"")&&he(l,A),32&t[0]&&he(h,e[5]),256&t[0]&&M!==(M=e[8]("bonusBalance")+"")&&he(m,M),64&t[0]&&_!==(_=e[11](e[6][1].balanceAmount)+"")&&he(B,_),32&t[0]&&he(T,e[5])},d(e){e&&se(n),e&&se(p),e&&se(d)}}}function Zt(e){let n;function r(e){return"Casino"==e[1]||"Sports"==e[1]?qt:"All"==e[1]?Wt:void 0}let a=r(e),o=a&&a(e);return{c(){o&&o.c(),n=le("")},m(e,t){o&&o.m(e,t),ie(e,n,t)},p(e,t){a===(a=r(e))&&o?o.p(e,t):(o&&o.d(1),(o=a&&a(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o&&o.d(e),e&&se(n)}}}function Wt(e){let n,r,a,o,D,$,i,s,l,U,c,u,G,h,p,d,F,k,f,m,g,V,y,j,X,b,B,E,z,K,Y,v,T,Z,W,w,q,J,A,M,Q,ee,te,_,H,ne,re,S,ae,C=e[8]("cashBalance")+"",L=e[7].Casino.Real+"",R=e[8]("cashBalance")+"",P=e[7].Sports.Real+"",N=e[8]("bonusBalance")+"",I=e[7].Casino.Bonus+"",O=e[8]("bonusBalance")+"",x=e[7].Sports.Bonus+"";return{c(){n=t("div"),r=t("div"),a=t("p"),o=le(C),D=le(" Casino"),$=ce(),i=t("p"),s=t("span"),l=le(L),U=ce(),c=t("span"),u=le(e[5]),G=ce(),h=t("div"),p=t("p"),d=le(R),F=le(" Sports"),k=ce(),f=t("p"),m=t("span"),g=le(P),V=ce(),y=t("span"),j=le(e[5]),X=ce(),b=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(),w=t("span"),q=le(e[5]),J=ce(),A=t("div"),M=t("p"),Q=le(O),ee=le(" Sports"),te=ce(),_=t("p"),H=t("span"),ne=le(x),re=ce(),S=t("span"),ae=le(e[5]),ue(a,"class","BalanceModalText"),ue(a,"part","BalanceModalText"),ue(s,"class","BalanceModalAmount"),ue(s,"part","BalanceModalAmount"),ue(c,"class","BalanceModalCurrency"),ue(c,"part","BalanceModalCurrency"),ue(i,"class","BalanceModalValue"),ue(i,"part","BalanceModalValue"),ue(r,"class","BalanceModalRowLine"),ue(p,"class","BalanceModalText"),ue(p,"part","BalanceModalText"),ue(m,"class","BalanceModalAmount"),ue(m,"part","BalanceModalAmount"),ue(y,"class","BalanceModalCurrency"),ue(y,"part","BalanceModalCurrency"),ue(f,"class","BalanceModalValue"),ue(f,"part","BalanceModalValue"),ue(h,"class","BalanceModalRowLine"),ue(n,"class","BalanceModalRowBoth"),ue(n,"part","BalanceModalRow"),ue(E,"class","BalanceModalText"),ue(E,"part","BalanceModalText"),ue(T,"class","BalanceModalAmount"),ue(T,"part","BalanceModalAmount"),ue(w,"class","BalanceModalCurrency"),ue(w,"part","BalanceModalCurrency"),ue(v,"class","BalanceModalValue"),ue(v,"part","BalanceModalValue"),ue(B,"class","BalanceModalRowLine"),ue(M,"class","BalanceModalText"),ue(M,"part","BalanceModalText"),ue(H,"class","BalanceModalAmount"),ue(H,"part","BalanceModalAmount"),ue(S,"class","BalanceModalCurrency"),ue(S,"part","BalanceModalCurrency"),ue(_,"class","BalanceModalValue"),ue(_,"part","BalanceModalValue"),ue(A,"class","BalanceModalRowLine"),ue(b,"class","BalanceModalRowBoth"),ue(b,"part","BalanceModalRow")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(a,o),oe(a,D),oe(r,$),oe(r,i),oe(i,s),oe(s,l),oe(i,U),oe(i,c),oe(c,u),oe(n,G),oe(n,h),oe(h,p),oe(p,d),oe(p,F),oe(h,k),oe(h,f),oe(f,m),oe(m,g),oe(f,V),oe(f,y),oe(y,j),ie(e,X,t),ie(e,b,t),oe(b,B),oe(B,E),oe(E,z),oe(E,K),oe(B,Y),oe(B,v),oe(v,T),oe(T,Z),oe(v,W),oe(v,w),oe(w,q),oe(b,J),oe(b,A),oe(A,M),oe(M,Q),oe(M,ee),oe(A,te),oe(A,_),oe(_,H),oe(H,ne),oe(_,re),oe(_,S),oe(S,ae)},p(e,t){256&t[0]&&C!==(C=e[8]("cashBalance")+"")&&he(o,C),128&t[0]&&L!==(L=e[7].Casino.Real+"")&&he(l,L),32&t[0]&&he(u,e[5]),256&t[0]&&R!==(R=e[8]("cashBalance")+"")&&he(d,R),128&t[0]&&P!==(P=e[7].Sports.Real+"")&&he(g,P),32&t[0]&&he(j,e[5]),256&t[0]&&N!==(N=e[8]("bonusBalance")+"")&&he(z,N),128&t[0]&&I!==(I=e[7].Casino.Bonus+"")&&he(Z,I),32&t[0]&&he(q,e[5]),256&t[0]&&O!==(O=e[8]("bonusBalance")+"")&&he(Q,O),128&t[0]&&x!==(x=e[7].Sports.Bonus+"")&&he(ne,x),32&t[0]&&he(ae,e[5])},d(e){e&&se(n),e&&se(X),e&&se(b)}}}function qt(e){let n,r,a,o,i,s,l,c,u,h,p,d,f,m,g,y,b,B,E,v,T,w=e[8]("cashBalance")+"",A=e[7][e[1]].Real+"",M=e[8]("bonusBalance")+"",_=e[7][e[1]].Bonus+"";return{c(){n=t("div"),r=t("p"),a=le(w),o=ce(),i=t("p"),s=t("span"),l=le(A),c=ce(),u=t("span"),h=le(e[5]),p=ce(),d=t("div"),f=t("p"),m=le(M),g=ce(),y=t("p"),b=t("span"),B=le(_),E=ce(),v=t("span"),T=le(e[5]),ue(r,"class","BalanceModalText"),ue(r,"part","BalanceModalText"),ue(s,"class","BalanceModalAmount"),ue(s,"part","BalanceModalAmount"),ue(u,"class","BalanceModalCurrency"),ue(u,"part","BalanceModalCurrency"),ue(i,"class","BalanceModalValue"),ue(i,"part","BalanceModalValue"),ue(n,"class","BalanceModalRow"),ue(n,"part","BalanceModalRow"),ue(f,"class","BalanceModalText"),ue(f,"part","BalanceModalText"),ue(b,"class","BalanceModalAmount"),ue(b,"part","BalanceModalAmount"),ue(v,"class","BalanceModalCurrency"),ue(v,"part","BalanceModalCurrency"),ue(y,"class","BalanceModalValue"),ue(y,"part","BalanceModalValue"),ue(d,"class","BalanceModalRow"),ue(d,"part","BalanceModalRow")},m(e,t){ie(e,n,t),oe(n,r),oe(r,a),oe(n,o),oe(n,i),oe(i,s),oe(s,l),oe(i,c),oe(i,u),oe(u,h),ie(e,p,t),ie(e,d,t),oe(d,f),oe(f,m),oe(d,g),oe(d,y),oe(y,b),oe(b,B),oe(y,E),oe(y,v),oe(v,T)},p(e,t){256&t[0]&&w!==(w=e[8]("cashBalance")+"")&&he(a,w),130&t[0]&&A!==(A=e[7][e[1]].Real+"")&&he(l,A),32&t[0]&&he(h,e[5]),256&t[0]&&M!==(M=e[8]("bonusBalance")+"")&&he(m,M),130&t[0]&&_!==(_=e[7][e[1]].Bonus+"")&&he(B,_),32&t[0]&&he(T,e[5])},d(e){e&&se(n),e&&se(p),e&&se(d)}}}function Jt(n){let r,a,o;return{c(){ue(r=t("div"),"class","ShowBalanceModalOverlay"),ue(r,"part","ShowBalanceModalOverlay")},m(e,t){ie(e,r,t),a||(o=D(r,"click",n[26]),a=!0)},p:y,d(e){e&&se(r),a=!1,o()}}}function Qt(n){let r,a,o,i,s,l,c,u,h,p,d,f,m=n[3]&&Kt(n),g=n[3]&&Jt(n);return{c(){r=t("div"),a=t("div"),o=t("p"),i=le(n[4]),s=ce(),l=le(n[5]),c=ce(),(u=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>',h=ce(),m&&m.c(),p=ce(),g&&g.c(),this.c=y,ue(o,"class","BalanceValue"),ue(o,"part","BalanceValue"),ue(a,"class","ShowBalance"),ue(a,"part","ShowBalance")},m(e,t){ie(e,r,t),oe(r,a),oe(a,o),oe(o,i),oe(o,s),oe(o,l),oe(o,c),oe(o,u),oe(a,h),m&&m.m(a,null),oe(r,p),g&&g.m(r,null),n[27](r),d||(f=D(o,"click",n[23]),d=!0)},p(e,t){16&t[0]&&he(i,e[4]),32&t[0]&&he(l,e[5]),e[3]?m?m.p(e,t):((m=Kt(e)).c(),m.m(a,null)):m&&(m.d(1),m=null),e[3]?g?g.p(e,t):((g=Jt(e)).c(),g.m(r,null)):g&&(g.d(1),g=null)},i:y,o:y,d(e){e&&se(r),m&&m.d(),g&&g.d(),n[27](null),d=!1,f()}}}function en(t,e,i){let n;var r=Gt;t.$$.on_destroy.push(x(r,e=>i(8,n=e)));let a,o,{userid:s=""}=e,{session:l=""}=e,{endpoint:c=""}=e,{lang:u="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:p=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:f=""}=e,{gmversion:m=""}=e,{displaybalanceoption:g="All"}=e,{currencyseparator:y=""}=e,{currencydecimal:b=""}=e,{currencyprecision:B=""}=e,E=!1,v="",T="",w=[],A="0",M=!1;const _={Casino:{Real:0,Bonus:0},Sports:{Real:0,Bonus:0}},H=(Object.keys(kt).forEach(e=>{Ft(e,kt[e])}),e=>{switch(e){case"balance":i(3,E=!0);break;case"closebalance":i(3,E=!1)}}),S=(e,t)=>{e=new Xt.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});o&&o.close(),(o=e).addEventListener("message",e=>{A="0";try{let r=JSON.parse(e.data)["balanceChange"];i(6,w=w.map(e=>{var t,n;return r&&r[e.id]&&(t=e,n=r[e.id].afterAmount,e=Object.assign(Object.assign({},t),{balanceAmount:n})),A=parseFloat(e.balanceAmount)+A,e})),i(4,v=R(Number(A)))}catch(e){console.log("Balance stream failed: ",e),S(`${c}/player/${s}/balance/updates`,l)}})},C=()=>{H("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},L=()=>{let e;return e=f.includes(u)?f:e},R=e=>{return f?new Intl.NumberFormat(L(),{useGrouping:!0}).format(e):(y&&b?zt(e,{separator:y,decimal:b,symbol:"",precision:parseInt(B||"2",10)}):zt(e,{separator:".",decimal:",",symbol:"",precision:parseInt(B||"2",10)})).format()},P=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&o.close()};return r=()=>(window.addEventListener("message",P,!1),()=>{window.removeEventListener("message",P),o&&o.close()}),function(){if(N)return N;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r),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,u=e.lang),"clientstyling"in e&&i(16,h=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,g=e.displaybalanceoption),"currencyseparator"in e&&i(20,y=e.currencyseparator),"currencydecimal"in e&&i(21,b=e.currencydecimal),"currencyprecision"in e&&i(22,B=e.currencyprecision)},t.$$.update=()=>{if(32768&t.$$.dirty[0]&&u&&L(),61441&t.$$.dirty[0]&&c&&s&&l&&u&&m){var e=u;switch(I.set(e),m){case"gmcore":(async e=>{try{M=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":l}}),n=await t.json();if(!t.ok)throw M=!1,new Error("Failed to fetch balance data !");M=!1,i(6,w=n.items),i(5,T=Object.keys(n.totalAmount)[0]),i(4,v=R(n.totalAmount[T]))}catch(e){M=!1,console.log("Balance error: ",e)}finally{M=!1}})(new URL(`${c}/player/${s}/account`));break;case"gm16":(async e=>{try{M=!0,"Casino"==g&&e.searchParams.append("productType","Casino"),"Sports"==g&&e.searchParams.append("productType","Sports"),"All"===g&&(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 M=!1,new Error("Failed to fetch balance data !");M=!1;for(const e of n.items){var{type:r,amount:a,productType:o}=e;"Casino"===g&&"Casino"===o?i(7,_.Casino[r]+=a,_):"Sports"===g&&"Sports"===o?i(7,_.Sports[r]+=a,_):"All"===g&&i(7,_[o][r]+=a,_)}i(5,T=Object.keys(n.totalAmount)[0]),i(4,v=n.totalAmount[T])}catch(e){M=!1,console.log("Balance error: ",e)}finally{M=!1}})(new URL(`${c}/player/${s}/balance`));break;default:throw Error("Invalid apiversion attribute: "+m)}}if(28672&t.$$.dirty[0]&&c&&s&&l&&S(`${c}/player/${s}/balance/updates`,l),65540&t.$$.dirty[0]&&h&&a&&((e=document.createElement("style")).innerHTML=h,a.appendChild(e)),131076&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)})}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,g,a,E,v,T,w,_,n,H,C,R,s,l,c,u,h,p,d,f,y,b,B,()=>H("balance"),()=>H("closebalance"),()=>C(),()=>H("closebalance"),function(e){$[e?"unshift":"push"](()=>{a=e,i(2,a)})}]}class tn extends V{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{font-family:inherit}:host{font-family:inherit}button{font-family:inherit}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(-60%);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:60%;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},en,Qt,C,{userid:12,session:13,endpoint:14,lang:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:0,displaybalanceoption:1,currencyseparator:20,currencydecimal:21,currencyprecision:22},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","currencyseparator","currencydecimal","currencyprecision"]}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()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(e){this.$$set({currencyseparator:e}),f()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(e){this.$$set({currencydecimal:e}),f()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(e){this.$$set({currencyprecision:e}),f()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",tn),tn});
2
2
  //# sourceMappingURL=player-account-balance-modal.js.map