@everymatrix/casino-header-controller 1.9.2 → 1.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
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 E(){}const M=e=>e;function p(e){return e()}function f(){return Object.create(null)}function q(e){e.forEach(p)}function H(e){return"function"==typeof e}function B(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let x;function m(e,t){return(x=x||document.createElement("a")).href=t,e===x.href}function T(e,...t){if(null==e)return E;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Z(e,t,n){e.$$.on_destroy.push(T(t,n))}function A(e){return e&&H(e.destroy)?e.destroy:E}var e="undefined"!=typeof window;let _=e?()=>window.performance.now():()=>Date.now(),S=e?e=>requestAnimationFrame(e):E;const I=new Set;function L(t){I.forEach(e=>{e.c(t)||(I.delete(e),e.f())}),0!==I.size&&S(L)}function ee(e,t){e.appendChild(t)}function P(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function te(e,t,n){e.insertBefore(t,n||null)}function ne(e){e.parentNode&&e.parentNode.removeChild(e)}function F(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function re(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function oe(e){return document.createTextNode(e)}function ae(){return oe(" ")}function O(){return oe("")}function ie(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function se(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function $(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:se(e,t,n)}function le(e,t){e.data!==(t=""+t)&&(e.data=t)}function N(t,n,e){for(let e=0;e<t.options.length;e+=1){var r=t.options[e];if(r.__value===n)return r.selected=!0}e&&void 0===n||(t.selectedIndex=-1)}function Y(e){e=e.querySelector(":checked");return e&&e.__value}function k(e){var t={};for(const n of e)t[n.name]=n.value;return t}const D=new Map;let U,G=0;function j(e,t,n,r,o,a,i,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(n-t)*a(e);c+=100*e+`%{${i(r,1-r)}}
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 E(){}const M=e=>e;function p(e){return e()}function f(){return Object.create(null)}function q(e){e.forEach(p)}function H(e){return"function"==typeof e}function B(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let x;function g(e,t){return(x=x||document.createElement("a")).href=t,e===x.href}function T(e,...t){if(null==e)return E;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Z(e,t,n){e.$$.on_destroy.push(T(t,n))}function A(e){return e&&H(e.destroy)?e.destroy:E}var e="undefined"!=typeof window;let S=e?()=>window.performance.now():()=>Date.now(),_=e?e=>requestAnimationFrame(e):E;const I=new Set;function L(t){I.forEach(e=>{e.c(t)||(I.delete(e),e.f())}),0!==I.size&&_(L)}function ee(e,t){e.appendChild(t)}function F(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function te(e,t,n){e.insertBefore(t,n||null)}function ne(e){e.parentNode&&e.parentNode.removeChild(e)}function P(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function re(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function oe(e){return document.createTextNode(e)}function ae(){return oe(" ")}function O(){return oe("")}function ie(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function se(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function $(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:se(e,t,n)}function le(e,t){e.data!==(t=""+t)&&(e.data=t)}function k(t,n,e){for(let e=0;e<t.options.length;e+=1){var r=t.options[e];if(r.__value===n)return r.selected=!0}e&&void 0===n||(t.selectedIndex=-1)}function Y(e){e=e.querySelector(":checked");return e&&e.__value}function N(e){var t={};for(const n of e)t[n.name]=n.value;return t}const D=new Map;let U,G=0;function j(e,t,n,r,o,a,i,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(n-t)*a(e);c+=100*e+`%{${i(r,1-r)}}
2
2
  `}var u,h=c+`100% {${i(n,1-n)}}
3
- }`,s=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(h)}_`+s,d=P(e),{stylesheet:p,rules:f}=D.get(d)||(d=d,u={stylesheet:(u=e,f=re("style"),u=P(u),p=f,ee(u.head||u,p),p.sheet,f.sheet),rules:{}},D.set(d,u),u),d=(f[s]||(f[s]=!0,p.insertRule(`@keyframes ${s} `+h,p.cssRules.length)),e.style.animation||"");return e.style.animation=(d?d+", ":"")+s+` ${r}ms linear ${o}ms 1 both`,G+=1,s}function z(e){U=e}function K(e){!function(){if(U)return U;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const W=[],V=[];let J=[];const Q=[],ce=Promise.resolve();let ue=!1;function R(e){J.push(e)}const he=new Set;let de,pe=0;function d(){if(0===pe){const r=U;do{try{for(;pe<W.length;){const r=W[pe];pe++,z(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),q(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(R))}}catch(r){throw W.length=0,pe=0,r}for(z(null),W.length=0,pe=0;V.length;)V.pop()();for(let e=0;e<J.length;e+=1){var n=J[e];he.has(n)||(he.add(n),n())}}while(J.length=0,W.length);for(;Q.length;)Q.pop()();ue=!1,he.clear(),z(r)}}function fe(e,t,n){var r;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:n=!1}={}]=[(t?"intro":"outro")+n],(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,void 0),r))}const ge=new Set;let y;function me(e,t){e&&e.i&&(ge.delete(e),e.i(t))}function ye(e,t,n,r){e&&e.o?ge.has(e)||(ge.add(e),y.c.push(()=>{ge.delete(e),r&&(n&&e.d(1),r())}),e.o(t)):r&&r()}const be={duration:0};function ve(l,e,t,n){const r={direction:"both"};let c=e(l,t,r),u=n?0:1,h=null,d=null,p=null;function f(){var e,t,n,r;p&&(e=l,t=p,n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(n=n.length-r.length)||(e.style.animation=r.join(", "),G-=n)||S(()=>{G||(D.forEach(e=>{e=e.stylesheet.ownerNode;e&&ne(e)}),D.clear())}))}function g(e,t){var n=e.b-u;return t*=Math.abs(n),{a:u,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function o(e){const{delay:t=0,duration:n=300,easing:r=M,tick:o=E,css:a}=c||be,i={start:_()+t,b:e};if(e||((i.group=y).r+=1),h||d)d=i;else{a&&(f(),p=j(l,u,e,n,t,r,a)),e&&o(0,1),h=g(i,n),R(()=>fe(l,e,"start"));{var s=e=>{return d&&e>d.start&&(h=g(d,n),d=null,fe(l,h.b,"start"),a)&&(f(),p=j(l,u,h.b,h.duration,0,r,c.css)),h&&(e>=h.end?(o(u=h.b,1-u),fe(l,h.b,"end"),d||(h.b?f():--h.group.r||q(h.group.c)),h=null):e>=h.start&&(e=e-h.start,u=h.a+h.d*r(e/h.duration),o(u,1-u))),!(!h&&!d)};let t;0===I.size&&S(L),new Promise(e=>{I.add(t={c:s,f:e})})}}}return{run(e){H(c)?(de||(de=Promise.resolve()).then(()=>{de=null}),de.then(()=>{c=c(r),o(e)})):o(e)},end(){f(),h=d=null}}}function we(e,t){e.d(1),t.delete(e.key)}function Ee(t,n,r,o,a,i,s,l,e,c,u,h){let d=t.length,p=i.length,f=d;for(var g={};f--;)g[t[f].key]=f;var m=[],y=new Map,b=new Map,v=[];for(f=p;f--;){const t=h(a,i,f),q=r(t);let e=s.get(q);e?o&&v.push(()=>e.p(t,n)):(e=c(q,t)).c(),y.set(q,m[f]=e),q in g&&b.set(q,Math.abs(f-g[q]))}var w=new Set,E=new Set;function C(e){me(e,1),e.m(l,u),s.set(e.key,e),u=e.first,p--}for(;d&&p;){const n=m[p-1],r=t[d-1],o=n.key,q=r.key;n===r?(u=n.first,d--,p--):y.has(q)?!s.has(o)||w.has(o)?C(n):E.has(q)?d--:b.get(o)>b.get(q)?(E.add(o),C(n)):(w.add(q),d--):(e(r,s),d--)}for(;d--;){const n=t[d];y.has(n.key)||e(n,s)}for(;p;)C(m[p-1]);return q(v),m}function Ce(r,e,t,n,o,a,i,s=[-1]){var l=U;z(r);const c=r.$$={fragment:null,ctx:[],props:a,update:E,not_equal:o,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:f(),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&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u)&&(n=e,-1===(e=r).$$.dirty[0]&&(W.push(e),ue||(ue=!0,ce.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),u=!0,q(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){a=e.target;const E=Array.from(a.childNodes);c.fragment&&c.fragment.l(E),E.forEach(ne)}else c.fragment&&c.fragment.c();e.intro&&me(r.$$.fragment);var h=r,s=e.target,i=e.anchor,t=e.customElement,{fragment:n,after_update:a}=h.$$;n&&n.m(s,i),t||R(()=>{var e=h.$$.on_mount.map(p).filter(H);h.$$.on_destroy?h.$$.on_destroy.push(...e):q(e),h.$$.on_mount=[]}),a.forEach(R),d()}z(l)}let Me;"function"==typeof HTMLElement&&(Me=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(p).filter(H);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){q(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],o=[];J.forEach(e=>(-1===n.indexOf(e)?r:o).push(e)),o.forEach(e=>e()),J=r}q(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=E}$on(e,t){if(!H(t))return E;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)}});var He,Be,s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==s&&s,xe="URLSearchParams"in s,Te="Symbol"in s&&"iterator"in Symbol,Ae="FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(e){return!1}}(),_e="FormData"in s,Se="ArrayBuffer"in s;function Ie(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function $e(e){return e="string"!=typeof e?String(e):e}function Le(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Te&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Pe(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Fe(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Re(e){var t=new FileReader,n=Fe(t);return t.readAsArrayBuffer(e),n}function Oe(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Ne(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Ae&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_e&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:xe&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Se&&Ae&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Oe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Se&&(ArrayBuffer.prototype.isPrototypeOf(e)||Be(e))?this._bodyArrayBuffer=Oe(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):xe&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ae&&(this.blob=function(){var e=Pe(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Pe(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Re)}),this.text=function(){var e,t,n=Pe(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=new FileReader,t=Fe(e),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_e&&(this.formData=function(){return this.text().then(Ue)}),this.json=function(){return this.text().then(JSON.parse)},this}Se&&(He=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Be=ArrayBuffer.isView||function(e){return e&&-1<He.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=Ie(e),t=$e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[Ie(e)]},l.prototype.get=function(e){return e=Ie(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(Ie(e))},l.prototype.set=function(e,t){this.map[Ie(e)]=$e(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Le(n)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Le(t)},l.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Le(n)},Te&&(l.prototype[Symbol.iterator]=l.prototype.entries);var ke=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof De){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<ke.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ue(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}De.prototype.clone=function(){return new De(this,{body:this._bodyInit})},Ne.call(De.prototype),Ne.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var Ge=[301,302,303,307,308],je=(c.redirect=function(e,t){if(-1===Ge.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},s.DOMException);try{new je}catch(E){(je=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),je.prototype.constructor=je}function ze(r,i){return new Promise(function(o,e){var t=new De(r,i);if(t.signal&&t.signal.aborted)return e(new je("Aborted","AbortError"));var a=new XMLHttpRequest;function n(){a.abort()}a.onload=function(){var e,n,t={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",n=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},r=(t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL"),"response"in a?a.response:a.responseText);setTimeout(function(){o(new c(r,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){e(new je("Aborted","AbortError"))},0)},a.open(t.method,function(t){try{return""===t&&s.location.href?s.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?a.withCredentials=!0:"omit"===t.credentials&&(a.withCredentials=!1),"responseType"in a&&(Ae?a.responseType="blob":Se&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof l?t.headers.forEach(function(e,t){a.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){a.setRequestHeader(e,$e(i.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),a.onreadystatechange=function(){4===a.readyState&&t.signal.removeEventListener("abort",n)}),a.send(void 0===t._bodyInit?null:t._bodyInit)})}ze.polyfill=!0,s.fetch||(s.fetch=ze,s.Headers=l,s.Request=De,s.Response=c);var We="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ve=(self.fetch.bind(self),function(e,t){return(Ve=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 Xe(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}Ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Ze(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ye(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||0<t--)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ke(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Je(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Qe=Je(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function qe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var i=Ze(a),s=i.next();!s.done;s=i.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else a.remove(this);a=this.initialTeardown;if(h(a))try{a()}catch(e){o=e instanceof Qe?e.errors:[e]}a=this._finalizers;if(a){this._finalizers=null;try{for(var l=Ze(a),c=l.next();!c.done;c=l.next()){var u=c.value;try{rt(u)}catch(e){o=null!=o?o:[],e instanceof Qe?o=Ke(Ke([],Ye(o)),Ye(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new Qe(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)rt(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&qe(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&qe(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((e=new n).closed=!0,e);var et=n,tt=et.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function nt(e){return e instanceof et||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function rt(e){h(e)?e():e.unsubscribe()}var ot=void 0,at=!1,it=!1,st={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=st.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Ke([e,t],Ye(n))):setTimeout.apply(void 0,Ke([e,t],Ye(n)))},clearTimeout:function(e){var t=st.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function lt(){}var ct=null;function ut(e){if(at){var t=!ct;if(t&&(ct={errorThrown:!1,error:null}),e(),t){var t=ct,n=t.errorThrown,t=t.error;if(ct=null,n)throw t}}else e()}Xe(r,ht=et),r.create=function(e,t,n){return new yt(e,t,n)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ht.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var ht,dt=r,pt=Function.prototype.bind;function r(e){var t=ht.call(this)||this;return t.isStopped=!1,e?nt(t.destination=e)&&e.add(t):t.destination=Et,t}function ft(e,t){return pt.call(e,t)}vt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){wt(e)}},vt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){wt(e)}else wt(e)},vt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){wt(e)}};var gt,mt=vt,yt=(Xe(bt,gt=dt),bt);function bt(e,t,n){var r=gt.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&it?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&ft(e.next,t),error:e.error&&ft(e.error,t),complete:e.complete&&ft(e.complete,t)}):e;return r.destination=new mt(n),r}function vt(e){this.partialObserver=e}function wt(e){var t=e;st.setTimeout(function(){throw t})}var Et={closed:!0,next:lt,error:function(e){throw e},complete:lt},e="function"==typeof Symbol&&Symbol.observable||"@@observable";o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,o=this,a=(r=e)&&r instanceof dt||r&&h(r.next)&&h(r.error)&&h(r.complete)&&nt(r)?e:new yt(e,t,n);return ut(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var o=this;return new(e=Mt(e))(function(e,t){var n=new yt({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});o.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[e]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=Mt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var Ct=o;function o(e){e&&(this._subscribe=e)}function Mt(e){return null!=(e=null!=e?e:ot)?e:Promise}var Ht,Bt,xt,Tt=Je(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Xe(a,xt=Ct),a.prototype.lift=function(e){var t=new At(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new Tt},a.prototype.next=function(o){var a=this;ut(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var n=Ze(a.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(o)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},a.prototype.error=function(t){var n=this;ut(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},a.prototype.complete=function(){var t=this;ut(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(e){return this._throwIfClosed(),xt.prototype._trySubscribe.call(this,e)},a.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},a.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,o=this.observers;return n||r?tt:(this.currentObservers=null,o.push(e),new et(function(){t.currentObservers=null,qe(o,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},a.prototype.asObservable=function(){var e=new Ct;return e.source=this,e},a.create=function(e,t){return new At(e,t)},a),At=(Xe($t,Bt=e),$t.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},$t.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},$t.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},$t.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:tt},$t),_t={now:function(){return(_t.delegate||Date).now()},delegate:void 0},St=(Xe(It,Ht=e),It.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,o=t._infiniteTimeWindow,a=t._timestampProvider,t=t._windowTime;n||(r.push(e),o)||r.push(a.now()+t),this._trimBuffer(),Ht.prototype.next.call(this,e)},It.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},It.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var a=t.now(),i=0,s=1;s<n.length&&n[s]<=a;s+=2)i=s;i&&n.splice(0,i+1)}},It);function It(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=_t);var r=Ht.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function $t(e,t){var n=Bt.call(this)||this;return n.destination=e,n.source=t,n}function a(){var e=xt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Lt=[],Pt={};const Ft=[];function Rt(r,o=E){let a;const i=new Set;function s(e){if(B(r,e)&&(r=e,a)){const e=!Ft.length;for(const e of i)e[1](),Ft.push(e,r);if(e){for(let e=0;e<Ft.length;e+=2)Ft[e][0](Ft[e+1]);Ft.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=E){const n=[e,t];return i.add(n),1===i.size&&(a=o(s)||E),e(r),()=>{i.delete(n),0===i.size&&a&&(a(),a=null)}}}}function Ot(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:Rt(t,t=>{let n=!1;const r=[];let o=0,a=E;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),u?t(e):a=H(e)?e:E)},e=c.map((e,t)=>T(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){q(e),a(),n=!1}}).subscribe}}function Nt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===kt);var t}var kt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Dt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Wt(Array.isArray(e)?[]:{},e,t):e}function Ut(e,t,n){return e.concat(t).map(function(e){return Dt(e,n)})}function Gt(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 jt(e,t){try{return t in e}catch(e){return!1}}function zt(r,o,a){var i={};return a.isMergeableObject(r)&&Gt(r).forEach(function(e){i[e]=Dt(r[e],a)}),Gt(o).forEach(function(e){var t,n;(!jt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(jt(r,e)&&a.isMergeableObject(o[e])?i[e]=((t=a).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Wt)(r[e],o[e],a):i[e]=Dt(o[e],a))}),i}function Wt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ut,n.isMergeableObject=n.isMergeableObject||Nt,n.cloneUnlessOtherwiseSpecified=Dt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):zt(e,t,n):Dt(t,n)}Wt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Wt(e,t,n)},{});throw new Error("first argument should be an array")};var Vt=Wt,Xt=function(e,t){return(Xt=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 Zt(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}Xt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var g,b,Yt,v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Kt(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Jt(e){return e.type===b.literal}function Qt(e){return e.type===b.number}function qt(e){return e.type===b.date}function en(e){return e.type===b.time}function tn(e){return e.type===b.select}function nn(e){return e.type===b.plural}function rn(e){return e.type===b.tag}function on(e){return e&&"object"==typeof e&&e.type===Yt.number}function an(e){return e&&"object"==typeof e&&e.type===Yt.dateTime}(e=g=g||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=b=b||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Yt=Yt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,sn=/(?:[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 ln=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,cn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,un=/^(@+)?(\+|#+)?[rs]?$/g,hn=/(\*)(0+)|(#+)(0+)|(0+)/g,dn=/^(0+)$/;function pn(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(un,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 fn(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 gn(e){return fn(e)||{}}function mn(e){for(var i={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=v(v(v({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return v(v({},e),gn(t))},{}));continue;case"engineering":i=v(v(v({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return v(v({},e),gn(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(hn,function(e,t,n,r,o,a){if(t)i.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(dn.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(cn.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(cn,function(e,t,n,r,o,a){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var a=o.options[0];"w"===a?i=v(v({},i),{trailingZeroDisplay:"stripIfInteger"}):a&&(i=v(v({},i),pn(a)))}else un.test(o.stem)?i=v(v({},i),pn(o.stem)):((a=fn(o.stem))&&(i=v(v({},i),a)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!dn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=v(v({},i),r)))}return i}var yn={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 bn=new RegExp("^".concat(e.source,"*")),vn=new RegExp("".concat(e.source,"*$"));function w(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,wn=!!String.fromCodePoint,En=!!Object.fromEntries,Cn=!!String.prototype.codePointAt,Mn=!!String.prototype.trimStart,Hn=!!String.prototype.trimEnd,Bn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xn=!0;try{xn="a"===(null==(Xn=Fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Xn[0])}catch(E){xn=!1}var Tn,An,_n=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Sn=wn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;a<o;){if(1114111<(n=e[a++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},In=En?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],o=o[1];t[a]=o}return t},$n=Cn?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},Ln=Mn?function(e){return e.trimStart()}:function(e){return e.replace(bn,"")},Pn=Hn?function(e){return e.trimEnd()}:function(e){return e.replace(vn,"")};function Fn(e,t){return new RegExp(e,t)}An=xn?(Tn=Fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Tn.lastIndex=t,null!=(t=Tn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=$n(e,t);if(void 0===o||Nn(o)||33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(o),t+=65536<=o?2:1}return Sn.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 o,a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(g.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&On(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o}else if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}else{a=this.clonePosition();this.bump(),r.push({type:b.pound,location:w(a,this.clonePosition())})}}}return{val:r,err:null}},i.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),o=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(o,"/>"),location:w(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()||!On(this.char())?this.error(g.INVALID_TAG,w(e,this.clonePosition())):(n=this.clonePosition(),o!==this.parseTagName()?this.error(g.UNMATCHED_CLOSING_TAG,w(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:o,children:t,location:w(r,this.clonePosition())},err:null}:this.error(g.INVALID_TAG,w(e,this.clonePosition())))):this.error(g.UNCLOSED_TAG,w(r,this.clonePosition()))):this.error(g.INVALID_TAG,w(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 o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=w(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&&(On(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 Sn.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(),Sn(n))},i.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(g.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(g.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(g.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=An(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(g.EXPECT_ARGUMENT_TYPE,w(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=Pn(h.val)).length)return this.error(g.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:w(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(p=w(r,this.clonePosition()),l&&_n(null==l?void 0:l.style,"::",0)?(f=Ln(l.style.slice(2)),"number"===i?(h=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:p,style:h.val},err:null}:0===f.length?this.error(g.EXPECT_DATE_TIME_SKELETON,p):(u=f,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(yn[t||""]||yn[n||""]||yn["".concat(n,"-001")]||yn["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===o?"H":o}return n}(f,this.locale)),d={type:Yt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(sn,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}},{val:{type:"date"===i?b.date:b.time,value:n,location:p,style:d},err:null})):{val:{type:"number"===i?b.number:"date"===i?b.date:b.time,value:n,location:p,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(g.EXPECT_SELECT_ARGUMENT_OPTIONS,w(u,v({},u)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),p=0;if("select"!==i&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=h.val}var f,l=this.tryParsePluralOrSelectOptions(e,i,t,d);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(f=w(r,this.clonePosition()),"select"===i?{val:{type:b.select,value:n,options:In(l.val),location:f},err:null}:{val:{type:b.plural,value:n,options:In(l.val),offset:p,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null});default:return this.error(g.INVALID_ARGUMENT_TYPE,w(a,s))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,w(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(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(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(ln).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(g.INVALID_NUMBER_SKELETON,t)}return{val:{type:Yt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?mn(n):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,a=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR,g.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=w(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?g.DUPLICATE_SELECT_ARGUMENT_SELECTOR:g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(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;a.push([s,{value:c.val,location:w(u,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===a.length?this.error("select"===t?g.EXPECT_SELECT_ARGUMENT_SELECTOR:g.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(g.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}r=w(r,this.clonePosition());return o?Bn(a*=n)?{val:a,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=$n(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(_n(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()&&Nn(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 Rn=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 On(e){return 97<=e&&e<=122||65<=e&&e<=90}function Nn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function kn(e,t){t=v({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Rn(e,t).parse();if(e.err)throw(n=SyntaxError(g[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,tn(e)||nn(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Qt(e)&&on(e.style)||(qt(e)||en(e))&&an(e.style)?delete e.style.location:rn(e)&&n(e.children)})}(e.val),e.val}function Dn(e,t){var n=t&&t.cache?t.cache:Zn,r=t&&t.serializer?t.serializer:zn;return(t&&t.strategy?t.strategy:function(e,t){return jn(e,this,1===e.length?Un:Gn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Un(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function Gn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function jn(e,t,n,r,o){return n.bind(t,e,r,o)}var zn=function(){return JSON.stringify(arguments)};function Wn(){this.cache=Object.create(null)}Wn.prototype.get=function(e){return this.cache[e]},Wn.prototype.set=function(e,t){this.cache[e]=t};var Vn,Xn,Zn={create:function(){return new Wn}},Yn={variadic:function(e,t){return jn(e,this,Gn,t.cache.create(),t.serializer)},monadic:function(e,t){return jn(e,this,Un,t.cache.create(),t.serializer)}};(Xn=Vn=Vn||{}).MISSING_VALUE="MISSING_VALUE",Xn.INVALID_VALUE="INVALID_VALUE",Xn.MISSING_INTL_API="MISSING_INTL_API";Zt(sr,qn=Error),sr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var C,Kn,Jn,Qn,qn,er=sr,tr=(Zt(ir,Qn=er),ir),nr=(Zt(ar,Jn=er),ar),rr=(Zt(or,Kn=er),or);function or(e,t){return Kn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Vn.MISSING_VALUE,t)||this}function ar(e,t,n){return Jn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Vn.INVALID_VALUE,n)||this}function ir(e,t,n,r){return Qn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Vn.INVALID_VALUE,r)||this}function sr(e,t,n){e=qn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function lr(e,t,n,r,o,a,i){if(1===e.length&&Jt(e[0]))return[{type:C.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Jt(u))s.push({type:C.literal,value:u.value});else if(u.type===b.pound)"number"==typeof a&&s.push({type:C.literal,value:n.getNumberFormat(t).format(a)});else{var h=u.value;if(!(o&&h in o))throw new rr(h,i);h=o[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?C.literal:C.object,value:h});else if(qt(u)){var d="string"==typeof u.style?r.date[u.style]:an(u.style)?u.style.parsedOptions:void 0;s.push({type:C.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(en(u))d="string"==typeof u.style?r.time[u.style]:an(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:C.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Qt(u))(d="string"==typeof u.style?r.number[u.style]:on(u.style)?u.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),s.push({type:C.literal,value:n.getNumberFormat(t,d).format(h)});else{if(rn(u)){var p=u.children,f=u.value,g=o[f];if("function"!=typeof g)throw new nr(f,"function",i);f=g(lr(p,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?C.literal:C.object,value:e}}))}if(tn(u)){if(!(m=u.options[h]||u.options.other))throw new tr(u.value,h,Object.keys(u.options),i);s.push.apply(s,lr(m.value,t,n,r,o))}else if(nn(u)){if(!(m=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new er('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Vn.MISSING_INTL_API,i);var g=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),m=u.options[g]||u.options.other}if(!m)throw new tr(u.value,h,Object.keys(u.options),i);s.push.apply(s,lr(m.value,t,n,r,o,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===C.literal&&t.type===C.literal?n.value+=t.value:e.push(t),e},[])}function cr(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=C=C||{})[e.literal=0]="literal",e[e.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=kn,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 ur=u;function u(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=i.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===C.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 lr(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=u.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?v(v(v({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=v(v({},n[t]),r[t]||{}),e},{})):n),e},v({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:Dn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Kt([void 0],t,!1)))},{cache:cr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Yn.variadic}),getDateTimeFormat:Dn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Kt([void 0],t,!1)))},{cache:cr(t.dateTime),strategy:Yn.variadic}),getPluralRules:Dn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Kt([void 0],t,!1)))},{cache:cr(t.pluralRules),strategy:Yn.variadic})}}const hr={},dr=(e,t,n)=>n&&(t in hr||(hr[t]={}),e in hr[t]||(hr[t][e]=n),n),pr=(t,n)=>{if(null!=n){if(n in hr&&t in hr[n])return hr[n][t];var r=Ar(n);for(let e=0;e<r.length;e++){var o=function(e,t){if(!mr(e))return null;e=function(e){return fr[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(o)return dr(t,n,o)}}};let fr;const gr=Rt({});function mr(e){return e in fr}function yr(t,...n){delete hr[t],gr.update(e=>(e[t]=Vt.all([e[t]||{},...n]),e))}Ot([gr],([e])=>Object.keys(e)),gr.subscribe(e=>fr=e);const br={};function vr(e){return br[e]}function wr(e){return null!=e&&Ar(e).some(e=>{return null==(e=vr(e))?void 0:e.size})}const Er={};function Cr(e){var t;return wr(e)?(t=Ar(e).map(e=>{var t=vr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Er[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,br[t].delete(n),0===br[t].size&&delete br[t],e().then(e=>e.default||e);var t,n})).then(e=>yr(r,...e));var r})).then(()=>{if(wr(e))return Cr(e);delete Er[e]}),Er[e]):e in Er?Er[e]:Promise.resolve()}const Mr={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 Hr=Rt(!1);let Br;const xr=Rt(null);function Tr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Ar(e,t=Mr.fallbackLocale){e=Tr(e);return t?[...new Set([...e,...Tr(t)])]:e}function _r(){return null!=Br?Br:void 0}xr.subscribe(e=>{Br=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const X={...xr,set:t=>{if(t&&function(e){if(null!=e){var t=Ar(e);for(let e=0;e<t.length;e++){var n=t[e];if(mr(n))return n}}}(t)&&wr(t)){var n=Mr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=_r()&&n?e=window.setTimeout(()=>Hr.set(!0),n):Hr.set(!0),Cr(t).then(()=>{xr.set(t)}).finally(()=>{clearTimeout(e),Hr.set(!1)})}return xr.set(t)}},Sr=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Ir=(e,t)=>{var n=Mr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},$r=Sr(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Ir("number",t)),new Intl.NumberFormat(e,n)}),Lr=Sr(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Ir("date",t):0===Object.keys(n).length&&(n=Ir("date","short")),new Intl.DateTimeFormat(e,n)}),Pr=Sr(({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=Ir("time",t):0===Object.keys(n).length&&(n=Ir("time","short")),new Intl.DateTimeFormat(e,n)}),Fr=Sr((e,t=_r())=>new ur(e,t,Mr.formats,{ignoreTag:Mr.ignoreTag})),Rr=Ot([X,gr],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:a,locale:i=_r(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=pr(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=Mr).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!a)return l;let c=l;try{c=Fr(l,i).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Or=(Ot([X],()=>(e,t)=>{return[{locale:t=_r(),...n}={}]=[t],Pr({locale:t,...n}).format(e);var n}),Ot([X],()=>(e,t)=>{return[{locale:t=_r(),...n}={}]=[t],Lr({locale:t,...n}).format(e);var n}),Ot([X],()=>(e,t)=>{return[{locale:t=_r(),...n}={}]=[t],$r({locale:t,...n}).format(e);var n}),Ot([X,gr],()=>(e,t=_r())=>pr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Lt.indexOf(e)&&(t=new St(t),Pt[e]=t,Lt.push(e)),Pt[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),Nr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function kr(e,t){yr(e,t)}const Dr={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"},fallbackSecondaryMenu:{promotions:"Promotions"}},"zh-hk":{headerItem:{login:"登錄",register:"登記",deposit:"訂金"},fallbackSecondaryMenu:{promotions:"促销活动"}},fr:{headerItem:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt"},fallbackSecondaryMenu:{promotions:"Promotions"}},tr:{headerItem:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"},fallbackSecondaryMenu:{promotions:"Promosyonlar"}},ro:{headerItem:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},fallbackSecondaryMenu:{promotions:"Promotii"}},es:{headerItem:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},fallbackSecondaryMenu:{promotions:"Promociones"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promoções"}}};function Ur(e,t){yr(e,t)}const Gr={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"}},"zh-hk":{headerItem:{login:"登錄",register:"登記",deposit:"訂金"}},fr:{headerItem:{login:"Connexion",register:"Registre",deposit:"Dépôt"}},tr:{headerItem:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"}},ro:{headerItem:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"}},es:{headerItem:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"}}};function jr(e,t,n){e=e.slice();return e[47]=t[n],e[49]=n,e}function zr(e,t,n){e=e.slice();return e[50]=t[n],e}function Wr(e,t,n){e=e.slice();return e[53]=t[n],e[55]=n,e}function Vr(t){let r,o=[],n=new Map,a=t[9];const i=e=>e[47].id;for(let e=0;e<a.length;e+=1){var s=jr(t,a,e),l=i(s);n.set(l,o[e]=eo(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=O()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);te(t,r,n)},p(e,t){20429&t[0]&&(a=e[9],o=Ee(o,t,i,1,e,a,n,r.parentNode,we,eo,r,jr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&ne(r)}}}function Xr(e){let n,r,o=e[47].name+"";return{c(){n=re("a"),r=oe(o),se(n,"href","#")},m(e,t){te(e,n,t),ee(n,r)},p(e,t){512&t[0]&&o!==(o=e[47].name+"")&&le(r,o)},d(e){e&&ne(n)}}}function Zr(e){let n,r,o=e[47].label+"";return{c(){n=re("a"),r=oe(o),se(n,"href","#")},m(e,t){te(e,n,t),ee(n,r)},p(e,t){512&t[0]&&o!==(o=e[47].label+"")&&le(r,o)},d(e){e&&ne(n)}}}function Yr(e){let n,r=0<e[10].length&&"true"==e[3]&&Kr(e);return{c(){r&&r.c(),n=O()},m(e,t){r&&r.m(e,t),te(e,n,t)},p(e,t){0<e[10].length&&"true"==e[3]?r?r.p(e,t):((r=Kr(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&ne(n)}}}function Kr(t){let o,a=t[10],i=[];for(let e=0;e<a.length;e+=1)i[e]=qr(zr(t,a,e));return{c(){o=re("ul");for(let e=0;e<i.length;e+=1)i[e].c();se(o,"class","DropDown")},m(e,t){te(e,o,t);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(o,null)},p(t,n){if(18368&n[0]){let e;for(a=t[10],e=0;e<a.length;e+=1){var r=zr(t,a,e);i[e]?i[e].p(r,n):(i[e]=qr(r),i[e].c(),i[e].m(o,null))}for(;e<i.length;e+=1)i[e].d(1);i.length=a.length}},d(e){e&&ne(o),F(i,e)}}}function Jr(n){let r,o,a,i,s,l,c,u=n[53]?.name+"";function h(...e){return n[30](n[47],n[49],n[53],n[55],...e)}return{c(){r=re("li"),o=re("a"),a=oe(u),s=ae(),se(o,"class",i="SubDropDown "+(n[49]!=n[6]||n[7]!=n[55]&&n[8]!=n[55]?"":"active"))},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,s),l||(c=ie(r,"click",h),l=!0)},p(e,t){n=e,1024&t[0]&&u!==(u=n[53]?.name+"")&&le(a,u),1984&t[0]&&i!==(i="SubDropDown "+(n[49]!=n[6]||n[7]!=n[55]&&n[8]!=n[55]?"":"active"))&&se(o,"class",i)},d(e){e&&ne(r),l=!1,c()}}}function Qr(e,n){let r,o,a=n[49]==n[50].index&&Jr(n);return{key:e,first:null,c(){r=O(),a&&a.c(),o=O(),this.first=r},m(e,t){te(e,r,t),a&&a.m(e,t),te(e,o,t)},p(e,t){(n=e)[49]==n[50].index?a?a.p(n,t):((a=Jr(n)).c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(e){e&&ne(r),a&&a.d(e),e&&ne(o)}}}function qr(t){let r,o=[],n=new Map,a=t[50].items;const i=e=>e[53].id;for(let e=0;e<a.length;e+=1){var s=Wr(t,a,e),l=i(s);n.set(l,o[e]=Qr(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=O()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);te(t,r,n)},p(e,t){18368&t[0]&&(a=e[50].items,o=Ee(o,t,i,1,e,a,n,r.parentNode,we,Qr,r,Wr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&ne(r)}}}function eo(e,n){let r,o,a,i,s,l;function c(e){return"headerMain"===e[0]?Zr:Xr}let u=c(n),h=u(n),d=1==n[11][n[49]]&&Yr(n);function p(...e){return n[31](n[47],n[49],...e)}return{key:e,first:null,c(){r=re("li"),h.c(),o=ae(),d&&d.c(),a=ae(),se(r,"class",i="CarouselItem "+(-1<n[2]?.toString().indexOf("$")?n[2]?.split("$").pop()==n[47].id.split("$").pop()?"active":"":n[2]==n[47].id?"active":"")+" "+("headerMain"==n[0]?"":"SecondaryMenu")),se(r,"part","CarouselItem"),this.first=r},m(e,t){te(e,r,t),h.m(r,null),ee(r,o),d&&d.m(r,null),ee(r,a),s||(l=ie(r,"click",p),s=!0)},p(e,t){u===(u=c(n=e))&&h?h.p(n,t):(h.d(1),(h=u(n))&&(h.c(),h.m(r,o))),1==n[11][n[49]]?d?d.p(n,t):((d=Yr(n)).c(),d.m(r,a)):d&&(d.d(1),d=null),517&t[0]&&i!==(i="CarouselItem "+(-1<n[2]?.toString().indexOf("$")?n[2]?.split("$").pop()==n[47].id.split("$").pop()?"active":"":n[2]==n[47].id?"active":"")+" "+("headerMain"==n[0]?"":"SecondaryMenu"))&&se(r,"class",i)},d(e){e&&ne(r),h.d(),d&&d.d(),s=!1,l()}}}function to(n){let r,o,a,i,s,l,c,u,h,d,p,f,g,m,y,b,v,w=0<n[9].length&&Vr(n);return{c(){r=re("div"),o=re("div"),(a=re("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=ae(),s=re("div"),l=re("ul"),(c=re("li")).innerHTML='<a href="#CarouselNav">Close Subs</a>',u=ae(),w&&w.c(),h=ae(),(d=re("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',this.c=E,se(a,"class","CarouselLeftArrow"),se(a,"part","CarouselLeftArrow"),se(c,"class","TouchOnly"),se(l,"id","CarouselNav"),se(l,"class","CarouselItems"),se(l,"part","CarouselItems"),se(s,"class","CarouselNavWrap"),se(d,"class","CarouselRightArrow"),se(d,"part","CarouselRightArrow"),se(o,"class",p="CarouselContainer CarouselContainerMobile} "+("headerMain"===n[0]?"CarouselContainerHeaderMain":"")),se(o,"part",f="CarouselContainer "+(n[13]?"CarouselContainerMobile":"")+" "+("headerMain"===n[0]?"CarouselContainerHeaderMain":"")),se(o,"style",g="headerMain"===n[0]?"max-width: auto":`max-width: ${n[1]}px`),se(r,"class",m="CarouselWrapper "+("headerMain"===n[0]?"CarouselWrapperHeaderMain":"")),se(r,"part",y="CarouselWrapper "+("headerMain"===n[0]?"CarouselWrapperHeaderMain":""))},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,i),ee(o,s),ee(s,l),ee(l,c),ee(l,u),w&&w.m(l,null),n[32](l),n[33](s),ee(o,h),ee(o,d),n[35](r),b||(v=[ie(a,"click",n[29]),ie(d,"click",n[34])],b=!0)},p(e,t){0<e[9].length?w?w.p(e,t):((w=Vr(e)).c(),w.m(l,null)):w&&(w.d(1),w=null),1&t[0]&&p!==(p="CarouselContainer CarouselContainerMobile} "+("headerMain"===e[0]?"CarouselContainerHeaderMain":""))&&se(o,"class",p),1&t[0]&&f!==(f="CarouselContainer "+(e[13]?"CarouselContainerMobile":"")+" "+("headerMain"===e[0]?"CarouselContainerHeaderMain":""))&&se(o,"part",f),3&t[0]&&g!==(g="headerMain"===e[0]?"max-width: auto":`max-width: ${e[1]}px`)&&se(o,"style",g),1&t[0]&&m!==(m="CarouselWrapper "+("headerMain"===e[0]?"CarouselWrapperHeaderMain":""))&&se(r,"class",m),1&t[0]&&y!==(y="CarouselWrapper "+("headerMain"===e[0]?"CarouselWrapperHeaderMain":""))&&se(r,"part",y)},i:E,o:E,d(e){e&&ne(r),w&&w.d(),n[32](null),n[33](null),n[35](null),b=!1,q(v)}}}function no(t,e,a){let{endpoint:i=""}=e,{datasource:s=""}=e,{onclickeventname:n="defaultEvent"}=e,{actionevent:l="defaultEvent"}=e,{favoritesnumber:r="0"}=e,{location:c=""}=e,{clientstyling:o=""}=e,{clientstylingurl:u=""}=e,{identity:h=""}=e,{translationurl:d=""}=e,{containermaxwidth:p=""}=e,{isprimarymenu:f=!1}=e,{issecondarymenu:g=!1}=e,{lang:m=""}=e,{activeindex:y="0"}=e,{showsubgroups:b="false"}=e;var v,w;({withLocale:v,translations:w}={withLocale:"en",translations:{}}),X.subscribe(e=>{null==e&&(gr.set(w),X.set(v))}),Object.keys(Gr).forEach(e=>{Ur(e,Gr[e])});let E,C,M,H,B,x,T=window.navigator.userAgent,R="PC"!==Nr(T),A=[],_=[],S=[],I=(e,t,n,r,o)=>{e.subGroups&&null===r||(F(),a(6,C=t),a(6,C),"secondary"!=o?(window.postMessage({type:l,itemId:e.id,index:t,item:e,externalLink:e.externalLink,target:(null==(o=e.attrs)?void 0:o.target)||null},window.location.href),a(7,M=null),a(8,H=null)):(a(7,M=r),a(7,M),a(8,H=M),window.postMessage({type:l,itemId:n.id,subIndex:r,subItem:n},window.location.href)))},$=()=>{x.scrollBy({left:-250,behavior:"smooth"})},L=()=>{x.scrollBy({left:250,behavior:"smooth"})};const P=e=>{"SliderData"==e.data.type&&e.data.identity==h&&(a(9,A=e.data.data),a(11,S=new Array(A.length).fill(!1)),"true"==b)&&A.forEach((e,t)=>{var r,o,n;0<(null==(n=null==e?void 0:e.subGroups)?void 0:n.count)&&(a(11,S[t]=!0,S),r=e,o=t,"secondaryMenu"==c&&i&&s&&m&&r.id&&(n=new URL(`${i}/casino/groups/${s}/${r.id}/subGroups?language=`+m),fetch(n.href).then(e=>e.json()).then(e=>{e.index=o,a(10,_=_.concat(e)),"false"==b&&window.postMessage({type:l,itemId:r.id,index:o,item:r},window.location.href);const n=[];_.map(e=>(e.items.forEach(t=>{n.find(e=>t.id==e)||n.push(t.id)}),n.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:n})}).then(()=>{E.querySelectorAll(".DropDown")&&F()})),"headerMain"==c)&&window.postMessage({type:l,item:r},window.location.href)}),"GoToHomepage"==e.data.type&&A.forEach((e,t)=>{e.path.endsWith("/casino")&&(a(6,C=t),a(6,C))})},F=()=>{var t=E.querySelectorAll(".DropDown");document.activeElement.blur(),x.classList.add("isScrolling");for(let e=0;e<t.length;e++)t[e].style.transform="translateX(-"+x.scrollLeft+"px)";x.classList.remove("isScrolling")};return K(()=>("ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),window.addEventListener("message",P,!1),setTimeout(()=>{x.addEventListener("scroll",F)},500),()=>{window.removeEventListener("message",P),E.removeEventListener("scroll",F)})),t.$$set=e=>{"endpoint"in e&&a(17,i=e.endpoint),"datasource"in e&&a(18,s=e.datasource),"onclickeventname"in e&&a(19,n=e.onclickeventname),"actionevent"in e&&a(20,l=e.actionevent),"favoritesnumber"in e&&a(21,r=e.favoritesnumber),"location"in e&&a(0,c=e.location),"clientstyling"in e&&a(22,o=e.clientstyling),"clientstylingurl"in e&&a(23,u=e.clientstylingurl),"identity"in e&&a(24,h=e.identity),"translationurl"in e&&a(25,d=e.translationurl),"containermaxwidth"in e&&a(1,p=e.containermaxwidth),"isprimarymenu"in e&&a(26,f=e.isprimarymenu),"issecondarymenu"in e&&a(27,g=e.issecondarymenu),"lang"in e&&a(28,m=e.lang),"activeindex"in e&&a(2,y=e.activeindex),"showsubgroups"in e&&a(3,b=e.showsubgroups)},t.$$.update=()=>{if(t.$$.dirty[0],33554432&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ur(e,t[e])})}).catch(e=>{console.log(e)}),4194320&t.$$.dirty[0]&&o&&B&&((e=document.createElement("style")).innerHTML=o,B.appendChild(e)),8388624&t.$$.dirty[0]&&u&&B){let t=document.createElement("style"),e=new URL(u);fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{B.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&m&&(e=m,X.set(e))},[c,p,y,b,B,E,C,M,H,A,_,S,x,R,I,$,L,i,s,n,l,r,o,u,h,d,f,g,m,()=>$(),(e,t,n,r,o)=>{I(e,t,n,r,"secondary"),o.stopPropagation()},(e,t,n)=>{I(e,t,null,null,"main"),n.preventDefault()},function(e){V[e?"unshift":"push"](()=>{E=e,a(5,E)})},function(e){V[e?"unshift":"push"](()=>{x=e,a(12,x)})},()=>L(),function(e){V[e?"unshift":"push"](()=>{B=e,a(4,B)})}]}function ro(e,{delay:t=0,duration:n=400,easing:r=M}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*o}}function oo(e,t){yr(e,t)}customElements.get("casino-slider")||customElements.define("casino-slider",class extends Me{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:var(--emfe-w-color-primary, #D0046C);background:-webkit-linear-gradient(to left, var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C));background:linear-gradient(to left, var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-color-white, #FFFFFF);margin:0 auto}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emfe-w-color-contrast, #07072A);cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:rgba(255, 255, 255, 0.3)}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems a{display:block;padding:7px 10px;color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emfe-w-color-contrast, #07072A)}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emfe-w-color-secondary, #FD2839);background:-webkit-linear-gradient(var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C));background:linear-gradient(var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emfe-w-color-black, #000);background:var(--emfe-w-color-white, #FFF)}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #D0046C)}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emfe-w-color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}',this.shadowRoot.appendChild(t),Ce(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},no,to,B,{endpoint:17,datasource:18,onclickeventname:19,actionevent:20,favoritesnumber:21,location:0,clientstyling:22,clientstylingurl:23,identity:24,translationurl:25,containermaxwidth:1,isprimarymenu:26,issecondarymenu:27,lang:28,activeindex:2,showsubgroups:3},null,[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["endpoint","datasource","onclickeventname","actionevent","favoritesnumber","location","clientstyling","clientstylingurl","identity","translationurl","containermaxwidth","isprimarymenu","issecondarymenu","lang","activeindex","showsubgroups"]}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),d()}get datasource(){return this.$$.ctx[18]}set datasource(e){this.$$set({datasource:e}),d()}get onclickeventname(){return this.$$.ctx[19]}set onclickeventname(e){this.$$set({onclickeventname:e}),d()}get actionevent(){return this.$$.ctx[20]}set actionevent(e){this.$$set({actionevent:e}),d()}get favoritesnumber(){return this.$$.ctx[21]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),d()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),d()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get identity(){return this.$$.ctx[24]}set identity(e){this.$$set({identity:e}),d()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),d()}get containermaxwidth(){return this.$$.ctx[1]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),d()}get isprimarymenu(){return this.$$.ctx[26]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),d()}get issecondarymenu(){return this.$$.ctx[27]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),d()}get lang(){return this.$$.ctx[28]}set lang(e){this.$$set({lang:e}),d()}get activeindex(){return this.$$.ctx[2]}set activeindex(e){this.$$set({activeindex:e}),d()}get showsubgroups(){return this.$$.ctx[3]}set showsubgroups(e){this.$$set({showsubgroups:e}),d()}});const ao={en:{languageSelector:{language:"Select Language"}},"zh-hk":{languageSelector:{language:"選擇語言"}},fr:{languageSelector:{language:"Sélectionner la langue"}},tr:{languageSelector:{language:"Dil Seçin"}},ro:{languageSelector:{language:"Selecteaza limba"}},es:{languageSelector:{language:"Seleccionar idioma"}},pt:{languageSelector:{language:"Selecione o idioma"}}};function io(e,t,n){e=e.slice();return e[0]=t[n],e}function so(e,t,n){e=e.slice();return e[43]=t[n],e}function lo(e,t,n){e=e.slice();return e[46]=t[n],e}function co(n){let r,o,a,i,s,l,c,u,h,d,p,f,g,m,y,b,v,w,E,C,M,H,t,B,x,T,A=n[11]("languageSelector.language")+"",_=n[3],S=[];for(let e=0;e<_.length;e+=1)S[e]=uo(lo(n,_,e));let I=n[5],$=[];for(let e=0;e<I.length;e+=1)$[e]=ho(so(n,I,e));let L=n[9],P=[];for(let e=0;e<L.length;e+=1)P[e]=po(io(n,L,e));return{c(){r=re("div"),o=re("span"),(a=re("slot")).innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',l=ae(),c=re("div"),u=re("ul");for(let e=0;e<S.length;e+=1)S[e].c();p=ae(),f=re("ul");for(let e=0;e<$.length;e+=1)$[e].c();y=ae(),b=re("div"),v=re("span"),w=oe(A),E=ae(),C=re("select");for(let e=0;e<P.length;e+=1)P[e].c();se(a,"name","close"),se(o,"class",i=n[6]?"ModalCloseBtn":""),se(o,"part",s=n[6]?"ModalCloseBtn":""),se(o,"role","button"),se(u,"class",h="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")),se(u,"part",d="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")),se(f,"class",g="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")),se(f,"part",m="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")),se(C,"class","Item ItemLanguage"),se(C,"part","Item ItemLanguage"),void 0===n[10]&&R(()=>n[25].call(C)),se(b,"class","LanguageSelectorTitle"),se(b,"part","LanguageSelectorTitle"),se(c,"class",M="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")),se(c,"part",H="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")),se(r,"class","HamburgerModalWindow"),se(r,"part","HamburgerModalWindow")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,l),ee(r,c),ee(c,u);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(u,null);ee(c,p),ee(c,f);for(let e=0;e<$.length;e+=1)$[e]&&$[e].m(f,null);ee(c,y),ee(c,b),ee(b,v),ee(v,w),ee(b,E),ee(b,C);for(let e=0;e<P.length;e+=1)P[e]&&P[e].m(C,null);N(C,n[10],!0),n[27](r),B=!0,x||(T=[ie(o,"click",n[12]),ie(C,"change",n[25]),ie(C,"change",n[26])],x=!0)},p(e,t){if(n=e,(!B||64&t[0]&&i!==(i=n[6]?"ModalCloseBtn":""))&&se(o,"class",i),(!B||64&t[0]&&s!==(s=n[6]?"ModalCloseBtn":""))&&se(o,"part",s),8216&t[0]){let e;for(_=n[3],e=0;e<_.length;e+=1){const o=lo(n,_,e);S[e]?S[e].p(o,t):(S[e]=uo(o),S[e].c(),S[e].m(u,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=_.length}if((!B||128&t[0]&&h!==(h="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"class",h),(!B||128&t[0]&&d!==(d="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"part",d),16416&t[0]){let e;for(I=n[5],e=0;e<I.length;e+=1){const o=so(n,I,e);$[e]?$[e].p(o,t):($[e]=ho(o),$[e].c(),$[e].m(f,null))}for(;e<$.length;e+=1)$[e].d(1);$.length=I.length}if((!B||128&t[0]&&g!==(g="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"class",g),(!B||128&t[0]&&m!==(m="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"part",m),(!B||2048&t[0])&&A!==(A=n[11]("languageSelector.language")+"")&&le(w,A),512&t[0]){let e;for(L=n[9],e=0;e<L.length;e+=1){const o=io(n,L,e);P[e]?P[e].p(o,t):(P[e]=po(o),P[e].c(),P[e].m(C,null))}for(;e<P.length;e+=1)P[e].d(1);P.length=L.length}1536&t[0]&&N(C,n[10]),(!B||64&t[0]&&M!==(M="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")))&&se(c,"class",M),(!B||64&t[0]&&H!==(H="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")))&&se(c,"part",H)},i(e){B||(R(()=>{B&&(t=t||ve(r,ro,{transitionDuration:go},!0)).run(1)}),B=!0)},o(e){(t=t||ve(r,ro,{transitionDuration:go},!1)).run(0),B=!1},d(e){e&&ne(r),F(S,e),F($,e),F(P,e),n[27](null),e&&t&&t.end(),x=!1,q(T)}}}function uo(n){let r,o,a,i,s,l,c,u,h,d,p,f=n[46].label+"";function g(){return n[23](n[46])}return{c(){r=re("li"),o=re("div"),a=re("img"),s=ae(),l=oe(f),c=ae(),m(a.src,i=n[46].img)||se(a,"src",i),se(a,"alt","menu icon"),se(o,"class","HamburgerItemContainer"),se(o,"part","HamburgerItemContainer"),se(r,"class",u=n[4]===n[46].id?"ActiveItem":""),se(r,"part",h=n[4]===n[46].id?"ActiveItem":"")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,s),ee(o,l),ee(r,c),d||(p=ie(r,"click",g),d=!0)},p(e,t){n=e,8&t[0]&&!m(a.src,i=n[46].img)&&se(a,"src",i),8&t[0]&&f!==(f=n[46].label+"")&&le(l,f),24&t[0]&&u!==(u=n[4]===n[46].id?"ActiveItem":"")&&se(r,"class",u),24&t[0]&&h!==(h=n[4]===n[46].id?"ActiveItem":"")&&se(r,"part",h)},d(e){e&&ne(r),d=!1,p()}}}function ho(n){let r,o,a,i,s,l,c,u,h=n[43].label+"";function d(...e){return n[24](n[43],...e)}return{c(){r=re("li"),o=re("img"),i=ae(),s=oe(h),l=ae(),m(o.src,a=n[43].img)||se(o,"src",a),se(o,"alt","menu icon")},m(e,t){te(e,r,t),ee(r,o),ee(r,i),ee(r,s),ee(r,l),c||(u=ie(r,"click",d),c=!0)},p(e,t){n=e,32&t[0]&&!m(o.src,a=n[43].img)&&se(o,"src",a),32&t[0]&&h!==(h=n[43].label+"")&&le(s,h)},d(e){e&&ne(r),c=!1,u()}}}function po(e){let n,r,o,a=e[0]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[0],n.value=n.__value,n.selected=!0},m(e,t){te(e,n,t),ee(n,r)},p(e,t){512&t[0]&&a!==(a=e[0]+"")&&le(r,a),512&t[0]&&o!==(o=e[0])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function fo(n){let r,o,a=!0===n[8]&&co(n);return{c(){r=re("div"),a&&a.c(),this.c=E},m(e,t){te(e,r,t),a&&a.m(r,null),n[28](r),o=!0},p(e,t){!0===e[8]?a?(a.p(e,t),256&t[0]&&me(a,1)):((a=co(e)).c(),me(a,1),a.m(r,null)):a&&(y={r:0,c:[],p:y},ye(a,1,1,()=>{a=null}),y.r||q(y.c),y=y.p)},i(e){o||(me(a),o=!0)},o(e){ye(a),o=!1},d(e){e&&ne(r),a&&a.d(),n[28](null)}}}let go=350;function mo(t,e,r){let n;Z(t,Rr,e=>r(11,n=e));let o,a,i,{menuitemsurl:s=""}=e,{lang:l="en"}=e,{activecategory:c=""}=e,{languageslist:u=""}=e,{translationurl:h=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,f=window.navigator.userAgent,g=[],m="",y=[],b=!1,v=!1,w=!1,E=!0,C=[],M=!1,H="";Object.keys(ao).forEach(e=>{oo(e,ao[e])});const B=()=>{r(8,w=!1),r(6,b=!1),r(7,v=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href)},x=e=>{var n;"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),r(8,w=!0),setTimeout(()=>{r(6,b=!0)},500),setTimeout(()=>{r(7,v=!0)},1500),n=s,new Promise((e,t)=>{a&&!M?e(a):_(n)}))},T=(e,t)=>{r(4,m=e),r(5,y=t||[]),"function"==typeof gtag&&gtag("event","ChangeMenu",{context:"HamburgerMenu",menuItem:""+m})},A=()=>{var e=g.filter(e=>{let t=!1;if(e.children.forEach(e=>{e.path.includes(c)&&(t=!0)}),t)return e});0<e.length&&T(e[0].id,e[0].children)},_=e=>{fetch(e).then(e=>e.json()).then(e=>{r(3,g=e),A(),r(22,E=!1),a=e,M=!1},e=>{console.error(e)})};let S=e=>{window.postMessage({type:"HamburgerItemClicked",item:e,externalLink:e.externalLink,target:e.attrs.target||null},window.location.href),B()};const I=()=>{M=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:H},window.location.href)};return K(()=>(window.addEventListener("message",x,!1),Or(f),()=>{window.removeEventListener("message",x)})),t.$$set=e=>{"menuitemsurl"in e&&r(16,s=e.menuitemsurl),"lang"in e&&r(0,l=e.lang),"activecategory"in e&&r(17,c=e.activecategory),"languageslist"in e&&r(18,u=e.languageslist),"translationurl"in e&&r(19,h=e.translationurl),"clientstyling"in e&&r(20,d=e.clientstyling),"clientstylingurl"in e&&r(21,p=e.clientstylingurl)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&l&&u&&(e=l,X.set(e),M&&_(s),r(9,C=u.replace(/ /g,"").split(",")),r(9,C=C.map(e=>e.toUpperCase())),r(10,H=l.toUpperCase())),4325376&t.$$.dirty[0]&&c&&!E&&A(),524288&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{oo(e,t[e])})}).catch(e=>{console.log(e)}),1048578&t.$$.dirty[0]&&d&&i&&((e=document.createElement("style")).innerHTML=d,i.appendChild(e)),2097154&t.$$.dirty[0]&&p&&i){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e},[l,i,void 0,g,m,y,b,v,w,C,H,n,B,T,S,I,s,c,u,h,d,p,E,e=>T(e.id,e.children),(e,t)=>{S(e),t.preventDefault()},function(){H=Y(this),r(10,H),r(9,C)},()=>I(),function(e){V[e?"unshift":"push"](()=>{o=e,r(2,o)})},function(e){V[e?"unshift":"push"](()=>{i=e,r(1,i)})}]}function yo(e,t){yr(e,t)}customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",class extends Me{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LanguageSelectorTitle{width:94%;position:absolute;bottom:3%}.LanguageSelectorTitle span{display:inline;color:var(--emfe-w-color-gray-150, #828282);margin:0 20px;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:12px}.ItemLanguage{height:34px;width:88%;margin:0 20px;text-align:left;line-height:34px;background:transparent;color:var(--emfe-w-color-white, #FFFFFF);border:none}.ItemLanguage option{color:var(--emfe-w-color-contrast, #07072A)}.HamburgerModalWindow{display:block;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.7)}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emfe-w-color-black, #000000);width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width 0.4s ease-in-out;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{width:90vw}.HamburgerModalWindow .ModalCloseBtn{position:absolute;top:9px;right:9px;width:20px;height:20px;border-radius:100%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.2);opacity:1;cursor:pointer;transition:all 150ms ease-in-out;transition:opacity 500ms ease-in-out}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emfe-w-color-white, #FFFFFF)}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:all 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emfe-w-color-contrast, #07072A);white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid var(--emfe-w-color-primary, #D0046C);width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emfe-w-color-primary, #D0046C)}.HamburgerModalWindow .HamburgerPrimaryMenu.HamburgerPrimaryMenuFixed{position:fixed}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.HamburgerSecondaryMenuFixed{margin-top:106px}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),Ce(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},mo,fo,B,{menuitemsurl:16,lang:0,activecategory:17,languageslist:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["menuitemsurl","lang","activecategory","languageslist","translationurl","clientstyling","clientstylingurl"]}get menuitemsurl(){return this.$$.ctx[16]}set menuitemsurl(e){this.$$set({menuitemsurl:e}),d()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d()}get activecategory(){return this.$$.ctx[17]}set activecategory(e){this.$$set({activecategory:e}),d()}get languageslist(){return this.$$.ctx[18]}set languageslist(e){this.$$set({languageslist:e}),d()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}});const bo={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},"zh-hk":{balanceModal:{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"}},de:{balanceModal:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"}},it:{balanceModal:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"}},fr:{balanceModal:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"}},es:{balanceModal:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}};var vo=function(n){var M=n={path:void 0,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},e=n.exports,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:We:globalThis,I=t.setTimeout,$=t.clearTimeout,L=t.XMLHttpRequest,r=t.XDomainRequest,o=t.ActiveXObject,a=t.EventSource,i=t.document,h=t.Promise,d=t.fetch,s=t.Response,p=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;{var c;"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==L&&null!=o&&(L=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(c=d,d=function(e,t){var n=t.signal;return c(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}})}function u(){this.bitsNeeded=0,this.codePoint=0}u.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,n(o,a)))&&(o=0,a=65533,r+=String.fromCharCode(a)),0===o?(a=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(a,o,n(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?r+=String.fromCharCode(a):r=(r+=String.fromCharCode(55296+(a-65535-1>>10)))+String.fromCharCode(56320+(a-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=a,r},null!=p&&null!=l&&function(){try{return"test"===(new p).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(p=u);function g(){}function P(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=g,this.onload=g,this.onerror=g,this.onreadystatechange=g,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=g}function m(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function y(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),a=o.shift(),o=o.join(": ");t[m(a)]=o}this._map=t}function F(){}function b(e){this._headers=e}function R(){}function O(){this._listeners=Object.create(null)}function v(e){I(function(){throw e},0)}function w(e){this.type=e,this.target=void 0}function N(e,t){w.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function k(e,t){w.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){w.call(this,e),this.error=t.error}P.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:g}),l(),1===i||2===i||3===i){if(i=4,0!==r&&($(r),r=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var o=this,a=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==o._sendTimeout&&($(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=g,a.onerror=g,a.onabort=g,a.onprogress=g,a.onreadystatechange=g,a.abort(),0!==r&&($(r),r=0),e)||(o.readyState=4,o.onabort(null),o.onreadystatechange()),i=0},function(){if(1===i){var t=0,n="",r=void 0;if("contentType"in a)t=200,n="OK",r=a.contentType;else try{t=a.status,n=a.statusText,r=a.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){r=I(function(){c()},500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){n("load",e)}),"onerror"in a&&(a.onerror=function(e){n("error",e)}),"onabort"in a&&(a.onabort=function(e){n("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||n(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&s())}),!("contentType"in a)&&"ontimeout"in L.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(r=I(function(){c()},0))},P.prototype.abort=function(){this._abort(!1)},P.prototype.getResponseHeader=function(e){return this._contentType},P.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},P.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},P.prototype.send=function(){if("ontimeout"in L.prototype&&("sendAsBinary"in L.prototype||"mozAnon"in L.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=I(function(){t._sendTimeout=0,t.send()},4)}},y.prototype.get=function(e){return this._map[m(e)]},null!=L&&null==L.HEADERS_RECEIVED&&(L.HEADERS_RECEIVED=2),F.prototype.open=function(o,a,t,n,e,r,i){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===L.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),a(e,t,n,new y(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},b.prototype.get=function(e){return this._headers.get(e)},R.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new f,c=l.signal,u=new p;return d(r,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new b(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}),o(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},O.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){v(e)}}},O.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,a=0;a<r.length;a+=1)r[a]===t&&(o=!0);o||r.push(t)},O.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],a=0;a<r.length;a+=1)r[a]!==t&&o.push(r[a]);0===o.length?delete n[e]:n[e]=o}},N.prototype=Object.create(w.prototype),k.prototype=Object.create(w.prototype),D.prototype=Object.create(w.prototype);function U(e,t){e=null==e?t:parseInt(e,10);return j(e=e!=e?t:e)}function G(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){v(e)}}var H=-1,B=0,x=1,T=2,A=-1,_=0,S=1,z=2,W=3,V=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function E(e,t){var l,a,i,c,u,h,d,p,f,n,s,g,m,y,b,v,w,E,C,M,H,B,x,T,A,_,S;O.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,a=e,e=t,a=String(a),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=j(1e3),u=U(e.heartbeatTimeout,45e3),h="",d=c,p=!1,f=0,n=e.headers||{},e=e.Transport,s=X&&null==e?void 0:new P(new(null!=e?e:null!=L&&"withCredentials"in L.prototype||null==r?L:r)),g=new(null!=e&&"string"!=typeof e?e:null==s?R:F),m=void 0,b=-1,C=E=w=v="",B=H=M=y=0,x=function(e,t,n,r){var o,a;0===b&&(200===e&&null!=n&&V.test(n)?(b=1,p=Date.now(),d=c,l.readyState=1,o=new k("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),G(l,l.onopen,o)):(a="",a=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",_(),o=new k("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),G(l,l.onerror,o),console.error(a)))},T=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?C:"")+e.slice(0,t+1);C=(-1===t?C:"")+e.slice(t+1),""!==e&&(p=Date.now(),f+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===M&&i==="\n".charCodeAt(0))M=0;else if(-1===M&&(M=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==M&&(1===M&&(B=o+1),s=r.slice(H,B-1),a=r.slice(B+(B<o&&r.charCodeAt(B)===" ".charCodeAt(0)?1:0),o),"data"===s?v=v+"\n"+a:"id"===s?w=a:"event"===s?E=a:"retry"===s?(c=U(a,c),d=c):"heartbeatTimeout"===s&&(u=U(a,u),0!==y)&&($(y),y=I(function(){S()},u))),0===M){if(""!==v){h=w;var s=new N(E=""===E?"message":E,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===E?G(l,l.onopen,s):"message"===E?G(l,l.onmessage,s):"error"===E&&G(l,l.onerror,s),2===b)return}E=v=""}M=i==="\r".charCodeAt(0)?-1:0}else 0===M&&(H=o,M=1),1===M?i===":".charCodeAt(0)&&(B=o+1,M=2):2===M&&(M=3)}}},A=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&($(y),y=0),y=I(function(){S()},d),d=j(Math.min(16*c,2*d)),l.readyState=0,t=new D("error",{error:e}),l.dispatchEvent(t),G(l,l.onerror,t),null!=e&&console.error(e))},_=function(){b=2,null!=m&&(m.abort(),m=void 0),0!==y&&($(y),y=0),l.readyState=2},S=function(){if(y=0,-1===b){p=!1,f=0,y=I(function(){S()},u),w=h,C=E=v="",M=B=H=b=0;var e=a,t=("data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==h&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{m=g.open(s,x,T,A,e,t,n)}catch(e){throw _(),e}}else p||null==m?(e=Math.max((p||Date.now())+u-Date.now(),1),p=!1,y=I(function(){S()},e)):(A(new Error("No activity within "+u+" milliseconds. "+(0===b?"No response received.":f+" chars received.")+" Reconnecting.")),null!=m&&(m.abort(),m=void 0))},l.url=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=_,S()}var X=null!=d&&null!=s&&"body"in s.prototype;(E.prototype=Object.create(O.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;var C=a;return null==L||null!=a&&"withCredentials"in a.prototype||(C=E),void 0!==(t=function(e){e.EventSourcePolyfill=E,e.NativeEventSource=a,e.EventSource=C}(e)),n.exports}();function wo(n){let r,o,N,a,i,s,l,k,c,u,h,d,D,p,f,g,U,m,y,G,b,v,w,j,E,C,z,M,H,W,B,x,T,V,A,_,X,S,Z,Y,I,$,K,J,Q,L=n[4]("balanceModal.balanceTitle")+"",P=n[4]("balanceModal.totalBalance")+"",F=n[4]("balanceModal.cashBalance")+"",R=n[4]("balanceModal.bonusBalance")+"",O=n[4]("balanceModal.depositButton")+"";return{c(){r=re("div"),o=re("div"),N=ae(),a=re("div"),i=re("div"),s=re("p"),l=oe(L),k=ae(),c=re("div"),u=re("div"),h=re("p"),d=oe(P),D=ae(),p=re("p"),f=re("span"),g=oe(n[2]),U=ae(),m=re("span"),y=oe(n[3]),G=ae(),b=re("div"),v=re("p"),w=oe(F),j=ae(),E=re("p"),(C=re("span")).textContent=""+n[8](n[5].get("Casino").balanceAmount),z=ae(),M=re("span"),H=oe(n[3]),W=ae(),B=re("div"),x=re("p"),T=oe(R),V=ae(),A=re("p"),(_=re("span")).textContent=""+n[8](n[5].get("UBS").balanceAmount),X=ae(),S=re("span"),Z=oe(n[3]),Y=ae(),I=re("div"),$=re("button"),K=oe(O),se(o,"class","BalanceModalClose"),se(s,"class","BalanceModalTitle"),se(s,"part","BalanceModalTitle"),se(i,"class","BalanceModalHeader"),se(i,"part","BalanceModalHeader"),se(h,"class","BalanceModalText"),se(h,"part","BalanceModalText"),se(f,"class","BalanceModalAmount"),se(f,"part","BalanceModalAmount"),se(m,"class","BalanceModalCurrency"),se(m,"part","BalanceModalCurrency"),se(p,"class","BalanceModalValue"),se(p,"part","BalanceModalValue"),se(u,"class","BalanceModalRow"),se(u,"part","BalanceModalRow"),se(v,"class","BalanceModalText"),se(v,"part","BalanceModalText"),se(C,"class","BalanceModalAmount"),se(C,"part","BalanceModalAmount"),se(M,"class","BalanceModalCurrency"),se(M,"part","BalanceModalCurrency"),se(E,"class","BalanceModalValue"),se(E,"part","BalanceModalValue"),se(b,"class","BalanceModalRow"),se(b,"part","BalanceModalRow"),se(x,"class","BalanceModalText"),se(x,"part","BalanceModalText"),se(_,"class","BalanceModalAmount"),se(_,"part","BalanceModalAmount"),se(S,"class","BalanceModalCurrency"),se(S,"part","BalanceModalCurrency"),se(A,"class","BalanceModalValue"),se(A,"part","BalanceModalValue"),se(B,"class","BalanceModalRow"),se(B,"part","BalanceModalRow"),se(c,"class","BalanceModalBody"),se(c,"part","BalanceModalBody"),se($,"class","BalanceModalAction"),se($,"part","BalanceModalAction"),se(I,"class","BalanceModalFooter"),se(I,"part","BalanceModalFooter"),se(a,"class","BalanceModal"),se(a,"part","BalanceModal"),se(r,"class","BalanceModalWrapper"),se(r,"part","BalanceModalWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(r,N),ee(r,a),ee(a,i),ee(i,s),ee(s,l),ee(a,k),ee(a,c),ee(c,u),ee(u,h),ee(h,d),ee(u,D),ee(u,p),ee(p,f),ee(f,g),ee(p,U),ee(p,m),ee(m,y),ee(c,G),ee(c,b),ee(b,v),ee(v,w),ee(b,j),ee(b,E),ee(E,C),ee(E,z),ee(E,M),ee(M,H),ee(c,W),ee(c,B),ee(B,x),ee(x,T),ee(B,V),ee(B,A),ee(A,_),ee(A,X),ee(A,S),ee(S,Z),ee(a,Y),ee(a,I),ee(I,$),ee($,K),J||(Q=[ie(o,"click",n[18]),ie($,"click",n[19])],J=!0)},p(e,t){16&t[0]&&L!==(L=e[4]("balanceModal.balanceTitle")+"")&&le(l,L),16&t[0]&&P!==(P=e[4]("balanceModal.totalBalance")+"")&&le(d,P),4&t[0]&&le(g,e[2]),8&t[0]&&le(y,e[3]),16&t[0]&&F!==(F=e[4]("balanceModal.cashBalance")+"")&&le(w,F),8&t[0]&&le(H,e[3]),16&t[0]&&R!==(R=e[4]("balanceModal.bonusBalance")+"")&&le(T,R),8&t[0]&&le(Z,e[3]),16&t[0]&&O!==(O=e[4]("balanceModal.depositButton")+"")&&le(K,O)},d(e){e&&ne(r),J=!1,q(Q)}}}function Eo(n){let r,o,a;return{c(){se(r=re("div"),"class","ShowBalanceModalOverlay"),se(r,"part","ShowBalanceModalOverlay")},m(e,t){te(e,r,t),o||(a=ie(r,"click",n[20]),o=!0)},p:E,d(e){e&&ne(r),o=!1,a()}}}function Co(n){let r,o,a,i,s,l,c,u,h,d,p,f,g=n[1]&&wo(n),m=n[1]&&Eo(n);return{c(){r=re("div"),o=re("div"),a=re("p"),i=oe(n[2]),s=ae(),l=oe(n[3]),c=ae(),(u=re("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=ae(),g&&g.c(),d=ae(),m&&m.c(),this.c=E,se(a,"class","BalanceValue"),se(a,"part","BalanceValue"),se(o,"class","ShowBalance"),se(o,"part","ShowBalance")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(a,s),ee(a,l),ee(a,c),ee(a,u),ee(o,h),g&&g.m(o,null),ee(r,d),m&&m.m(r,null),n[21](r),p||(f=ie(a,"click",n[17]),p=!0)},p(e,t){4&t[0]&&le(i,e[2]),8&t[0]&&le(l,e[3]),e[1]?g?g.p(e,t):((g=wo(e)).c(),g.m(o,null)):g&&(g.d(1),g=null),e[1]?m?m.p(e,t):((m=Eo(e)).c(),m.m(r,null)):m&&(m.d(1),m=null)},i:E,o:E,d(e){e&&ne(r),g&&g.d(),m&&m.d(),n[21](null),p=!1,f()}}}function Mo(t,e,o){let n;Z(t,Rr,e=>o(4,n=e));let r,a,{userid:i=""}=e,{session:s=""}=e,{endpoint:l=""}=e,{lang:c="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:p=""}=e,f=!1,g="",m="",y=!1,b=new Map;Object.keys(bo).forEach(e=>{yo(e,bo[e])});const v=e=>{switch(e){case"balance":o(1,f=!0);break;case"closebalance":o(1,f=!1)}},w=(e,t)=>{e=new vo.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});a&&a.close(),(a=e).addEventListener("message",e=>{try{var t=JSON.parse(e.data)["balanceChange"],n=b.get("Casino"),r=b.get("UBS");t&&t[n.id]&&b.set("Casino",Object.assign(Object.assign({},n),{balanceAmount:t[n.id].afterAmount})),t&&t[r.id]&&b.set("UBS",Object.assign(Object.assign({},r),{balanceAmount:t[r.id].afterAmount})),n=b.get("Casino"),r=b.get("UBS"),o(2,g=M(Number((parseFloat(n.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))))}catch(e){console.log("Balance stream failed: ",e),w(`${l}/player/${i}/balance/updates`,s)}})},E=()=>{v("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},C=()=>{return p.includes(c)?p:c},M=e=>new Intl.NumberFormat(C()).format(e),H=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&a.close()};return K(()=>(window.addEventListener("message",H,!1),()=>{window.removeEventListener("message",H),a&&a.close()})),t.$$set=e=>{"userid"in e&&o(9,i=e.userid),"session"in e&&o(10,s=e.session),"endpoint"in e&&o(11,l=e.endpoint),"lang"in e&&o(12,c=e.lang),"clientstyling"in e&&o(13,u=e.clientstyling),"clientstylingurl"in e&&o(14,h=e.clientstylingurl),"translationurl"in e&&o(15,d=e.translationurl),"customlocaleidentifier"in e&&o(16,p=e.customlocaleidentifier)},t.$$.update=()=>{if(4096&t.$$.dirty[0]&&c&&C(),7680&t.$$.dirty[0]&&l&&i&&s&&c&&(e=c,X.set(e),(async e=>{try{y=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":s}}),n=await t.json();if(!t.ok)throw y=!1,new Error("Failed to fetch balance data !");{y=!1,n.items.map(e=>b.set(e.displayName,e));const e=b.get("Casino"),r=b.get("UBS");o(3,m=e.currency),o(2,g=M(Number((parseFloat(e.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))))}}catch(e){y=!1,console.log("Balance error: ",e)}finally{y=!1}})(`${l}/player/${i}/account`)),3584&t.$$.dirty[0]&&l&&i&&s&&w(`${l}/player/${i}/balance/updates`,s),8193&t.$$.dirty[0]&&u&&r&&((e=document.createElement("style")).innerHTML=u,r.appendChild(e)),16385&t.$$.dirty[0]&&h&&r){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;32768&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{yo(e,t[e])})}).catch(e=>{console.log(e)})},[r,f,g,m,n,b,v,E,M,i,s,l,c,u,h,d,p,()=>v("balance"),()=>v("closebalance"),()=>E(),()=>v("closebalance"),function(e){V[e?"unshift":"push"](()=>{r=e,o(0,r)})}]}customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",class extends Me{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-50%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-color-primary, #D0046C) 1A;border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-color-primary, #D0046C);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-color-primary-600, #99034F)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}',this.shadowRoot.appendChild(t),Ce(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},Mo,Co,B,{userid:9,session:10,endpoint:11,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,customlocaleidentifier:16},null,[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["userid","session","endpoint","lang","clientstyling","clientstylingurl","translationurl","customlocaleidentifier"]}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),d()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),d()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),d()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[16]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}});var Ho="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Bo(e,t,n){e=e.slice();return e[78]=t[n],e}function xo(e,t,n){e=e.slice();return e[81]=t[n],e}function To(e,t,n){e=e.slice();return e[78]=t[n],e}function Ao(e,t,n){e=e.slice();return e[81]=t[n],e}function _o(n){let r,o,a,i,s,l,c,u,h,d,p,f,g,m,y,b,v,w,E,C,e=n[23]("headerItem.login")+"",M=n[23]("headerItem.register")+"";function H(e){return e[17]?Lo:$o}let B=H(n),x=B(n),T=!n[12]&&Po(n),A=n[20],_=[];for(let e=0;e<A.length;e+=1)_[e]=Fo(xo(n,A,e));let S=n[14],I=[];for(let e=0;e<S.length;e+=1)I[e]=Ro(Bo(n,S,e));return{c(){r=re("header"),o=re("div"),a=re("div"),x.c(),i=ae(),s=re("nav"),T&&T.c(),l=ae(),c=re("div"),u=re("div"),h=re("div"),d=oe(e),p=ae(),f=re("div"),g=oe(M),m=ae(),y=re("select");for(let e=0;e<_.length;e+=1)_[e].c();b=ae(),v=re("nav"),w=re("ul");for(let e=0;e<I.length;e+=1)I[e].c();se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(s,"class","HeaderMainNav"),se(s,"part","HeaderMainNav"),se(h,"class","Item ItemLogin"),se(h,"part","Item ItemLogin"),se(h,"tabindex","0"),se(f,"class","Item ItemRegister"),se(f,"part","Item ItemRegister"),se(f,"tabindex","0"),se(y,"class","Item ItemLanguage"),se(y,"part","Item ItemLanguage"),void 0===n[15]&&R(()=>n[55].call(y)),se(u,"class","HeaderItemsMenu"),se(u,"part","HeaderItemsMenu"),se(c,"class","HeaderTopActions"),se(c,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(w,"class","HeaderItemsMenuSecondary"),se(w,"part","HeaderItemsMenuSecondary"),se(v,"class","HeaderSecondaryNav"),se(v,"part","HeaderSecondaryNav"),se(r,"class","HeaderWrapper"),se(r,"part","HeaderWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),x.m(a,null),ee(o,i),ee(o,s),T&&T.m(s,null),ee(o,l),ee(o,c),ee(c,u),ee(u,h),ee(h,d),ee(u,p),ee(u,f),ee(f,g),ee(u,m),ee(u,y);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(y,null);N(y,n[15],!0),ee(r,b),ee(r,v),ee(v,w);for(let e=0;e<I.length;e+=1)I[e]&&I[e].m(w,null);n[58](r),E||(C=[ie(a,"click",n[52]),ie(h,"click",n[53]),ie(f,"click",n[54]),ie(y,"change",n[55]),ie(y,"change",n[56])],E=!0)},p(t,n){if(B===(B=H(t))&&x?x.p(t,n):(x.d(1),(x=B(t))&&(x.c(),x.m(a,null))),t[12]?T&&(T.d(1),T=null):T?T.p(t,n):((T=Po(t)).c(),T.m(s,null)),8388608&n[0]&&e!==(e=t[23]("headerItem.login")+"")&&le(d,e),8388608&n[0]&&M!==(M=t[23]("headerItem.register")+"")&&le(g,M),1048576&n[0]){let e;for(A=t[20],e=0;e<A.length;e+=1){const a=xo(t,A,e);_[e]?_[e].p(a,n):(_[e]=Fo(a),_[e].c(),_[e].m(y,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=A.length}if(1081344&n[0]&&N(y,t[15]),134234112&n[0]){let e;for(S=t[14],e=0;e<S.length;e+=1){const a=Bo(t,S,e);I[e]?I[e].p(a,n):(I[e]=Ro(a),I[e].c(),I[e].m(w,null))}for(;e<I.length;e+=1)I[e].d(1);I.length=S.length}},d(e){e&&ne(r),x.d(),T&&T.d(),F(_,e),F(I,e),n[58](null),E=!1,q(C)}}}function So(n){let r,o,a,i,s,l,c,u,h,d,p,f,g,m,y,b,v,w,E,C,M,H,B,x=n[23]("headerItem.login")+"",T=n[23]("headerItem.register")+"";function A(e){return e[17]?No:Oo}let _=A(n),S=_(n);return{c(){r=re("header"),o=re("div"),a=re("div"),i=t("svg"),s=t("defs"),l=t("style"),c=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),u=t("g"),h=t("rect"),d=t("rect"),p=t("rect"),f=ae(),g=re("div"),S.c(),m=ae(),y=re("div"),b=re("div"),v=re("div"),w=oe(x),E=ae(),C=re("div"),M=oe(T),se(h,"class","a"),se(h,"width","18"),se(h,"height","2"),se(h,"transform","translate(14 13)"),se(d,"class","a"),se(d,"width","22"),se(d,"height","2"),se(d,"transform","translate(14 20)"),se(p,"class","a"),se(p,"width","22"),se(p,"height","2"),se(p,"transform","translate(14 27)"),se(u,"transform","translate(-14 -13)"),se(i,"xmlns","http://www.w3.org/2000/svg"),se(i,"width","22"),se(i,"height","16"),se(i,"viewBox","0 0 22 16"),se(a,"class","HeaderMobileMainNav"),se(a,"part","HeaderMobileMainNav"),se(g,"class","HeaderBranding"),se(g,"part","HeaderBranding"),se(v,"class","Item ItemLogin"),se(v,"part","Item ItemLogin"),se(C,"class","Item ItemRegister"),se(C,"part","Item ItemRegister"),se(b,"class","HeaderItemsMenu"),se(b,"part","HeaderItemsMenu"),se(y,"class","HeaderTopActions"),se(y,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(r,"class","HeaderWrapper HeaderMobileWrapper"),se(r,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(i,s),ee(s,l),ee(l,c),ee(i,u),ee(u,h),ee(u,d),ee(u,p),ee(o,f),ee(o,g),S.m(g,null),ee(o,m),ee(o,y),ee(y,b),ee(b,v),ee(v,w),ee(b,E),ee(b,C),ee(C,M),n[51](r),H||(B=[ie(i,"click",n[47]),ie(g,"click",n[48]),ie(v,"click",n[49]),ie(C,"click",n[50])],H=!0)},p(e,t){_===(_=A(e))&&S?S.p(e,t):(S.d(1),(S=_(e))&&(S.c(),S.m(g,null))),8388608&t[0]&&x!==(x=e[23]("headerItem.login")+"")&&le(w,x),8388608&t[0]&&T!==(T=e[23]("headerItem.register")+"")&&le(M,T)},d(e){e&&ne(r),S.d(),n[51](null),H=!1,q(B)}}}function Io(e){let n;function r(e){return e[18]?Do:ko}let o=r(e),a=o(e);return{c(){a.c(),n=O()},m(e,t){a.m(e,t),te(e,n,t)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n.parentNode,n)))},d(e){a.d(e),e&&ne(n)}}}function $o(e){let n,t;return{c(){m((n=re("img")).src,t=Ho)||se(n,"src",t),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p:E,d(e){e&&ne(n)}}}function Lo(e){let n,r;return{c(){m((n=re("img")).src,r=e[22])||se(n,"src",r),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p(e,t){4194304&t[0]&&!m(n.src,r=e[22])&&se(n,"src",r)},d(e){e&&ne(n)}}}function Po(n){let r,o,a;return{c(){$(r=re("casino-slider"),"class","HeaderItemsMenu"),$(r,"part","HeaderItemsMenu"),$(r,"identity",Ko),$(r,"isprimarymenu","true"),$(r,"actionevent",n[7]),$(r,"activeindex",n[13]),$(r,"location","headerMain"),$(r,"endpoint",n[2]),$(r,"lang",n[3]),$(r,"clientstyling",n[9]),$(r,"clientstylingurl",n[10])},m(e,t){te(e,r,t),o||(a=A(n[26].call(null,r)),o=!0)},p(e,t){128&t[0]&&$(r,"actionevent",e[7]),8192&t[0]&&$(r,"activeindex",e[13]),4&t[0]&&$(r,"endpoint",e[2]),8&t[0]&&$(r,"lang",e[3]),512&t[0]&&$(r,"clientstyling",e[9]),1024&t[0]&&$(r,"clientstylingurl",e[10])},d(e){e&&ne(r),o=!1,a()}}}function Fo(e){let n,r,o,a=e[81]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[81],n.value=n.__value},m(e,t){te(e,n,t),ee(n,r)},p(e,t){1048576&t[0]&&a!==(a=e[81]+"")&&le(r,a),1048576&t[0]&&o!==(o=e[81])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function Ro(n){let r,o,a,i,s,l,c=n[78].label+"";function u(){return n[57](n[78])}return{c(){r=re("li"),o=re("button"),a=oe(c),i=ae(),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,i),s||(l=ie(o,"click",u),s=!0)},p(e,t){n=e,16384&t[0]&&c!==(c=n[78].label+"")&&le(a,c)},d(e){e&&ne(r),s=!1,l()}}}function Oo(e){let n,t;return{c(){m((n=re("img")).src,t=Ho)||se(n,"src",t),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p:E,d(e){e&&ne(n)}}}function No(e){let n,r;return{c(){m((n=re("img")).src,r=e[22])||se(n,"src",r),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p(e,t){4194304&t[0]&&!m(n.src,r=e[22])&&se(n,"src",r)},d(e){e&&ne(n)}}}function ko(n){let r,o,a,i,s,l,c,u,h,d,p,f,g,m,y,b,v,w,E,C,M,e=n[23]("headerItem.deposit")+"";function H(e){return e[17]?Go:Uo}let B=H(n),x=B(n),T=!n[12]&&jo(n),A=n[20],_=[];for(let e=0;e<A.length;e+=1)_[e]=zo(Ao(n,A,e));let S=n[14],I=[];for(let e=0;e<S.length;e+=1)I[e]=Wo(To(n,S,e));return{c(){r=re("header"),o=re("div"),a=re("div"),x.c(),i=ae(),s=re("nav"),T&&T.c(),l=ae(),c=re("div"),u=re("div"),h=re("player-account-balance-modal"),d=ae(),p=re("div"),f=oe(e),g=ae(),(m=re("div")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n </style></defs><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>',y=ae(),b=re("select");for(let e=0;e<_.length;e+=1)_[e].c();v=ae(),w=re("nav"),E=re("ul");for(let e=0;e<I.length;e+=1)I[e].c();se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(s,"class","HeaderMainNav"),se(s,"part","HeaderMainNav"),$(h,"session",n[0]),$(h,"userid",n[1]),$(h,"endpoint",n[2]),$(h,"lang",n[3]),$(h,"clientstyling",n[9]),$(h,"clientstylingurl",n[10]),$(h,"customlocaleidentifier",n[6]),se(p,"class","Item ItemDeposit"),se(p,"part","Item ItemDeposit"),se(m,"class","Item ItemAccount"),se(m,"part","Item ItemAccount"),se(b,"class","Item ItemLanguage"),se(b,"part","Item ItemLanguage"),void 0===n[15]&&R(()=>n[43].call(b)),se(u,"class","HeaderItemsMenu PrimaryMenu"),se(u,"part","HeaderItemsMenu PrimaryMenu"),se(c,"class","HeaderTopActions"),se(c,"part","HeaderItemsMenu"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(E,"class","HeaderItemsMenuSecondary"),se(E,"part","HeaderItemsMenuSecondary"),se(w,"class","HeaderSecondaryNav"),se(w,"part","HeaderSecondaryNav"),se(r,"class","HeaderWrapper"),se(r,"part","HeaderWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),x.m(a,null),ee(o,i),ee(o,s),T&&T.m(s,null),ee(o,l),ee(o,c),ee(c,u),ee(u,h),ee(u,d),ee(u,p),ee(p,f),ee(u,g),ee(u,m),ee(u,y),ee(u,b);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(b,null);N(b,n[15],!0),ee(r,v),ee(r,w),ee(w,E);for(let e=0;e<I.length;e+=1)I[e]&&I[e].m(E,null);n[46](r),C||(M=[ie(a,"click",n[40]),ie(p,"click",n[41]),ie(m,"click",n[42]),ie(b,"change",n[43]),ie(b,"change",n[44])],C=!0)},p(t,n){if(B===(B=H(t))&&x?x.p(t,n):(x.d(1),(x=B(t))&&(x.c(),x.m(a,null))),t[12]?T&&(T.d(1),T=null):T?T.p(t,n):((T=jo(t)).c(),T.m(s,null)),1&n[0]&&$(h,"session",t[0]),2&n[0]&&$(h,"userid",t[1]),4&n[0]&&$(h,"endpoint",t[2]),8&n[0]&&$(h,"lang",t[3]),512&n[0]&&$(h,"clientstyling",t[9]),1024&n[0]&&$(h,"clientstylingurl",t[10]),64&n[0]&&$(h,"customlocaleidentifier",t[6]),8388608&n[0]&&e!==(e=t[23]("headerItem.deposit")+"")&&le(f,e),1048576&n[0]){let e;for(A=t[20],e=0;e<A.length;e+=1){const a=Ao(t,A,e);_[e]?_[e].p(a,n):(_[e]=zo(a),_[e].c(),_[e].m(b,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=A.length}if(1081344&n[0]&&N(b,t[15]),134234112&n[0]){let e;for(S=t[14],e=0;e<S.length;e+=1){const a=To(t,S,e);I[e]?I[e].p(a,n):(I[e]=Wo(a),I[e].c(),I[e].m(E,null))}for(;e<I.length;e+=1)I[e].d(1);I.length=S.length}},d(e){e&&ne(r),x.d(),T&&T.d(),F(_,e),F(I,e),n[46](null),C=!1,q(M)}}}function Do(n){let r,o,a,i,s,l,c,u,h,d,p,f,g,m,y,b,v=n[23]("headerItem.deposit")+"",w=!n[21]&&Vo(n);function E(e){return e[17]?Zo:Xo}let C=E(n),M=C(n);return{c(){r=re("header"),o=re("div"),a=re("div"),w&&w.c(),i=ae(),s=re("div"),M.c(),l=ae(),c=re("div"),u=re("div"),h=re("player-account-balance-modal"),d=ae(),p=re("div"),f=oe(v),g=ae(),(m=re("div")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n </style></defs><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>',se(a,"class","HeaderMobileMainNav"),se(a,"part","HeaderMobileMainNav"),se(s,"class","HeaderBranding"),se(s,"part","HeaderBranding"),$(h,"session",n[0]),$(h,"userid",n[1]),$(h,"endpoint",n[2]),$(h,"lang",n[3]),$(h,"clientstyling",n[9]),$(h,"clientstylingurl",n[10]),$(h,"customlocaleidentifier",n[6]),se(p,"class","Item ItemDeposit"),se(p,"part","Item ItemDeposit"),se(m,"class","Item ItemAccount"),se(m,"part","Item ItemAccount"),se(u,"class","HeaderItemsMenu PrimaryMenu"),se(u,"part","HeaderItemsMenu PrimaryMenu"),se(c,"class","HeaderTopActions"),se(c,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(r,"class","HeaderWrapper HeaderMobileWrapper"),se(r,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),w&&w.m(a,null),ee(o,i),ee(o,s),M.m(s,null),ee(o,l),ee(o,c),ee(c,u),ee(u,h),ee(u,d),ee(u,p),ee(p,f),ee(u,g),ee(u,m),n[39](r),y||(b=[ie(s,"click",n[36]),ie(p,"click",n[37]),ie(m,"click",n[38])],y=!0)},p(e,t){e[21]?w&&(w.d(1),w=null):w?w.p(e,t):((w=Vo(e)).c(),w.m(a,null)),C===(C=E(e))&&M?M.p(e,t):(M.d(1),(M=C(e))&&(M.c(),M.m(s,null))),1&t[0]&&$(h,"session",e[0]),2&t[0]&&$(h,"userid",e[1]),4&t[0]&&$(h,"endpoint",e[2]),8&t[0]&&$(h,"lang",e[3]),512&t[0]&&$(h,"clientstyling",e[9]),1024&t[0]&&$(h,"clientstylingurl",e[10]),64&t[0]&&$(h,"customlocaleidentifier",e[6]),8388608&t[0]&&v!==(v=e[23]("headerItem.deposit")+"")&&le(f,v)},d(e){e&&ne(r),w&&w.d(),M.d(),n[39](null),y=!1,q(b)}}}function Uo(e){let n,t;return{c(){m((n=re("img")).src,t=Ho)||se(n,"src",t),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p:E,d(e){e&&ne(n)}}}function Go(e){let n,r;return{c(){m((n=re("img")).src,r=e[22])||se(n,"src",r),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p(e,t){4194304&t[0]&&!m(n.src,r=e[22])&&se(n,"src",r)},d(e){e&&ne(n)}}}function jo(n){let r,o,a;return{c(){$(r=re("casino-slider"),"class","HeaderItemsMenu"),$(r,"part","HeaderItemsMenu"),$(r,"identity",Ko),$(r,"isprimarymenu","true"),$(r,"actionevent",n[7]),$(r,"activeindex",n[13]),$(r,"endpoint",n[2]),$(r,"lang",n[3]),$(r,"location","headerMain"),$(r,"showsubgroups",n[8]),$(r,"clientstyling",n[9]),$(r,"clientstylingurl",n[10])},m(e,t){te(e,r,t),o||(a=A(n[26].call(null,r)),o=!0)},p(e,t){128&t[0]&&$(r,"actionevent",e[7]),8192&t[0]&&$(r,"activeindex",e[13]),4&t[0]&&$(r,"endpoint",e[2]),8&t[0]&&$(r,"lang",e[3]),256&t[0]&&$(r,"showsubgroups",e[8]),512&t[0]&&$(r,"clientstyling",e[9]),1024&t[0]&&$(r,"clientstylingurl",e[10])},d(e){e&&ne(r),o=!1,a()}}}function zo(e){let n,r,o,a=e[81]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[81],n.value=n.__value,n.selected=!0},m(e,t){te(e,n,t),ee(n,r)},p(e,t){1048576&t[0]&&a!==(a=e[81]+"")&&le(r,a),1048576&t[0]&&o!==(o=e[81])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function Wo(n){let r,o,a,i,s,l,c=n[78].label+"";function u(){return n[45](n[78])}return{c(){r=re("li"),o=re("button"),a=oe(c),i=ae(),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,i),s||(l=ie(o,"click",u),s=!0)},p(e,t){n=e,16384&t[0]&&c!==(c=n[78].label+"")&&le(a,c)},d(e){e&&ne(r),s=!1,l()}}}function Vo(n){let r,o,a,i,s,l,c,u,h,d;return{c(){r=t("svg"),o=t("defs"),a=t("style"),i=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),s=t("g"),l=t("rect"),c=t("rect"),u=t("rect"),se(l,"class","a"),se(l,"width","18"),se(l,"height","2"),se(l,"transform","translate(14 13)"),se(c,"class","a"),se(c,"width","22"),se(c,"height","2"),se(c,"transform","translate(14 20)"),se(u,"class","a"),se(u,"width","22"),se(u,"height","2"),se(u,"transform","translate(14 27)"),se(s,"transform","translate(-14 -13)"),se(r,"xmlns","http://www.w3.org/2000/svg"),se(r,"width","22"),se(r,"height","16"),se(r,"viewBox","0 0 22 16")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(r,s),ee(s,l),ee(s,c),ee(s,u),h||(d=ie(r,"click",n[35]),h=!0)},p:E,d(e){e&&ne(r),h=!1,d()}}}function Xo(e){let n,t;return{c(){m((n=re("img")).src,t=Ho)||se(n,"src",t),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p:E,d(e){e&&ne(n)}}}function Zo(e){let n,r;return{c(){m((n=re("img")).src,r=e[22])||se(n,"src",r),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p(e,t){4194304&t[0]&&!m(n.src,r=e[22])&&se(n,"src",r)},d(e){e&&ne(n)}}}function Yo(e){let n,r;function o(e){return e[19]?Io:e[18]?So:_o}let a=o(e),i=a(e);return{c(){i.c(),n=ae(),r=re("casino-hamburger-menu"),this.c=E,$(r,"menuitemsurl",e[16]),$(r,"activecategory",e[5]),$(r,"lang",e[3]),$(r,"languageslist",e[4]),$(r,"clientstyling",e[9]),$(r,"clientstylingurl",e[10])},m(e,t){i.m(e,t),te(e,n,t),te(e,r,t)},p(e,t){a===(a=o(e))&&i?i.p(e,t):(i.d(1),(i=a(e))&&(i.c(),i.m(n.parentNode,n))),65536&t[0]&&$(r,"menuitemsurl",e[16]),32&t[0]&&$(r,"activecategory",e[5]),8&t[0]&&$(r,"lang",e[3]),16&t[0]&&$(r,"languageslist",e[4]),512&t[0]&&$(r,"clientstyling",e[9]),1024&t[0]&&$(r,"clientstylingurl",e[10])},i:E,o:E,d(e){i.d(e),e&&ne(n),e&&ne(r)}}}let Ko="HeaderMenu";function Jo(n,e,o){let t;Z(n,Rr,e=>o(23,t=e));let a,i,{session:s=""}=e,{userid:r=""}=e,{endpoint:l=""}=e,{cmsendpoint:c=""}=e,{cmsenv:u="stage"}=e,{lang:h="en"}=e,{languageslist:d="en, ro"}=e,{activecategory:p=""}=e,{translationurl:f=""}=e,{customlocaleidentifier:g=""}=e,{operatorid:m=""}=e,{pagetag:y=""}=e,{positiontag:b=""}=e,{actionevent:v=""}=e,{userroles:w=""}=e,{showsubgroups:R="false"}=e,{clientstyling:E=""}=e,{clientstylingurl:C=""}=e;var O,N;({withLocale:O,translations:N}={withLocale:"en",translations:{}}),X.subscribe(e=>{null==e&&(gr.set(N),X.set(O))}),Object.keys(Dr).forEach(e=>{kr(e,Dr[e])});let M,H,k,B=[],D=[],x="",T=!0,A=!1,U=!1,_=window.navigator.userAgent,S=!1,I=[],$=!1,G="";const L=e=>{switch(e){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"HeaderController"});break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"HeaderController"});break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:Or(_)},window.location.href);break;case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"HeaderController"});break;case"language":window.postMessage({type:"LanguageChanged",selectedLanguage:x},window.location.href)}},P=()=>{o(21,$=!0),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},j=e=>{if(e.data)switch(e.data.type){case"UserSessionID":e.data.userid,e.data.session,o(19,S=!0);break;case"CloseHamburgerMenu":window.postMessage({type:"EnableScroll"},window.location.href),e.data.showhamburger&&o(21,$=!1);break;case"LogoutSuccessfull":o(19,S=!1);break;case"LanguageChanged":z(),W(H)}},z=()=>{H=new URL(`${c}/${x.toLowerCase()}/menu`),o(16,M=new URL(`${c}/${x.toLowerCase()}/hamburger-menu`)),k=new URL(`${c}/${x.toLowerCase()}/op-options/style`);var e=Nr(_);H.searchParams.append("env",u),H.searchParams.append("language",x.toLowerCase()),H.searchParams.append("userRoles",w),e&&("PC"===e?(M.searchParams.append("device","dk"),H.searchParams.append("device","dk")):(M.searchParams.append("device","mtWeb"),H.searchParams.append("device","mtWeb"))),M.searchParams.append("env",u),M.searchParams.append("language",x.toLowerCase()),M.searchParams.append("userRoles",w)},W=e=>(o(12,T=!0),new Promise((t,n)=>{fetch(e).then(e=>e.json()).then(e=>{B=e.desktop.primary,o(14,D=e.desktop.secondary),o(12,T=!1),t(e)},e=>{o(12,T=!1),console.error(e),n(e)})})),F=e=>{window.postMessage({type:v,itemId:e.id,item:e,externalLink:e.externalLink,target:(null==(e=e.attrs)?void 0:e.target)||null},window.location.href)};return K(async()=>(window.addEventListener("message",j,!1),Or(_)&&o(18,U=!0),()=>{window.removeEventListener("message",j)})),n.$$set=e=>{"session"in e&&o(0,s=e.session),"userid"in e&&o(1,r=e.userid),"endpoint"in e&&o(2,l=e.endpoint),"cmsendpoint"in e&&o(28,c=e.cmsendpoint),"cmsenv"in e&&o(29,u=e.cmsenv),"lang"in e&&o(3,h=e.lang),"languageslist"in e&&o(4,d=e.languageslist),"activecategory"in e&&o(5,p=e.activecategory),"translationurl"in e&&o(30,f=e.translationurl),"customlocaleidentifier"in e&&o(6,g=e.customlocaleidentifier),"operatorid"in e&&o(31,m=e.operatorid),"pagetag"in e&&o(32,y=e.pagetag),"positiontag"in e&&o(33,b=e.positiontag),"actionevent"in e&&o(7,v=e.actionevent),"userroles"in e&&o(34,w=e.userroles),"showsubgroups"in e&&o(8,R=e.showsubgroups),"clientstyling"in e&&o(9,E=e.clientstyling),"clientstylingurl"in e&&o(10,C=e.clientstylingurl)},n.$$.update=()=>{if(4128&n.$$.dirty[0]&&p&&!T&&o(13,a=null==(t=B.find(e=>-1<p.indexOf("/sport")?-1<e.path.indexOf(p):-1<e.path.indexOf(p.split("/")[1])))?void 0:t.id),1&n.$$.dirty[0]&&s&&o(19,S=!0),8&n.$$.dirty[0]&&h&&(t=h,X.set(t)),268435480&n.$$.dirty[0]|8&n.$$.dirty[1]&&c&&h&&d&&w&&(o(20,I=d.replace(/ /g,"").split(",")),o(20,I=I.map(e=>e.toUpperCase())),o(15,x=h.toUpperCase()),z(),r=k,o(17,A=!1),new Promise((t,n)=>{fetch(r).then(e=>e.json()).then(e=>{0<e.logoUrl.length&&("null"!=e.logoUrl||"false"!=e.logoUrl)?(o(22,G=e.logoUrl),o(17,A=!0)):o(17,A=!1),t(e)},e=>{o(17,A=!1),console.error(e),n(e)})}),setTimeout(()=>{W(H)})),1073741824&n.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{kr(e,t[e])})}).catch(e=>{console.log(e)}),2560&n.$$.dirty[0]&&E&&i&&((e=document.createElement("style")).innerHTML=E,i.appendChild(e)),3072&n.$$.dirty[0]&&C&&i){let e=new URL(C),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e,r,t},[s,r,l,h,d,p,g,v,R,E,C,i,T,a,D,x,M,A,U,S,I,$,G,t,L,P,()=>{window.postMessage({type:"SliderData",identity:Ko,data:B},window.location.href)},F,c,u,f,m,y,b,w,()=>P(),()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(e){V[e?"unshift":"push"](()=>{i=e,o(11,i)})},()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(){x=Y(this),o(15,x),o(20,I)},()=>L("language"),e=>F(e),function(e){V[e?"unshift":"push"](()=>{i=e,o(11,i)})},()=>P(),()=>L("lobby"),()=>L("login"),()=>L("register"),function(e){V[e?"unshift":"push"](()=>{i=e,o(11,i)})},()=>L("lobby"),()=>L("login"),()=>L("register"),function(){x=Y(this),o(15,x),o(20,I)},()=>L("language"),e=>F(e),function(e){V[e?"unshift":"push"](()=>{i=e,o(11,i)})}]}class Qo extends Me{constructor(e){super();var t=document.createElement("style");t.textContent=":host{font-family:system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"}.HeaderWrapper{background:var(--emfe-w-color-header-bg, #050518)}.HeaderContainer{max-width:1300px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderMobileMainNav{display:flex;align-items:center}.HeaderBranding{width:140px;margin-right:15px;cursor:pointer}.HeaderBranding img{width:100%}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emfe-w-color-header-bg, #050518);border-top:1px solid var(--emfe-w-color-gray-300, #58586B)}.HeaderItemsMenu{display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;align-items:center}.HeaderItemsMenu .Item{padding:0 12px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;font-weight:600;border:solid 1px var(--emfe-w-color-white, #FFFFFF);height:44px;text-align:center;line-height:44px;margin-right:10px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:var(--emfe-w-color-primary, #D0046C);font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:var(--emfe-w-color-primary, #D0046C)}.ItemLanguage{height:44px;width:90px;text-align:center;line-height:44px;background:transparent;color:var(--emfe-w-color-white, #FFFFFF);border:none;cursor:pointer;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-header-bg, #050518);background-position:calc(100% - 0.75rem) center}.ItemLanguage option{color:var(--emfe-w-color-white, #FFFFFF)}.ItemAccount{cursor:pointer}.ItemAccount svg{width:20px;height:20px}.HeaderItemsMenuSecondary{display:flex;flex-direction:row;align-content:flex-start;align-items:center;height:60px;list-style:none;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF);font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{padding:0 15px;cursor:pointer;font-weight:600;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary button{color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none;border:none;background:none;font-size:14px;font-weight:600;text-transform:uppercase}.HeaderItemsMenuSecondary .ItemSecondary:hover button{color:var(--emfe-w-color-primary, #D0046C)}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}.HeaderMobileWrapper .HeaderBranding{width:110px;display:flex;align-items:center}.HeaderMobileWrapper .HeaderItemsMenu .Item{padding:0 10px;display:block;width:unset}.HeaderMobileWrapper .HeaderItemsMenu .ItemAccount{padding:0}.HeaderMobileWrapper .ItemRegister,.HeaderMobileWrapper .ItemDeposit,.HeaderMobileWrapper .ItemLogin{height:30px;line-height:30px;font-size:12px}.HeaderMobileWrapper .ItemLogin{margin-right:10px}",this.shadowRoot.appendChild(t),Ce(this,{target:this.shadowRoot,props:k(this.attributes),customElement:!0},Jo,Yo,B,{session:0,userid:1,endpoint:2,cmsendpoint:28,cmsenv:29,lang:3,languageslist:4,activecategory:5,translationurl:30,customlocaleidentifier:6,operatorid:31,pagetag:32,positiontag:33,actionevent:7,userroles:34,showsubgroups:8,clientstyling:9,clientstylingurl:10},null,[-1,-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","endpoint","cmsendpoint","cmsenv","lang","languageslist","activecategory","translationurl","customlocaleidentifier","operatorid","pagetag","positiontag","actionevent","userroles","showsubgroups","clientstyling","clientstylingurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get cmsendpoint(){return this.$$.ctx[28]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),d()}get cmsenv(){return this.$$.ctx[29]}set cmsenv(e){this.$$set({cmsenv:e}),d()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),d()}get languageslist(){return this.$$.ctx[4]}set languageslist(e){this.$$set({languageslist:e}),d()}get activecategory(){return this.$$.ctx[5]}set activecategory(e){this.$$set({activecategory:e}),d()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[6]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}get operatorid(){return this.$$.ctx[31]}set operatorid(e){this.$$set({operatorid:e}),d()}get pagetag(){return this.$$.ctx[32]}set pagetag(e){this.$$set({pagetag:e}),d()}get positiontag(){return this.$$.ctx[33]}set positiontag(e){this.$$set({positiontag:e}),d()}get actionevent(){return this.$$.ctx[7]}set actionevent(e){this.$$set({actionevent:e}),d()}get userroles(){return this.$$.ctx[34]}set userroles(e){this.$$set({userroles:e}),d()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),d()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}}return customElements.get("casino-header-controller")||customElements.define("casino-header-controller",Qo),Qo});
3
+ }`,s=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(h)}_`+s,d=F(e),{stylesheet:p,rules:f}=D.get(d)||(d=d,u={stylesheet:(u=e,f=re("style"),u=F(u),p=f,ee(u.head||u,p),p.sheet,f.sheet),rules:{}},D.set(d,u),u),d=(f[s]||(f[s]=!0,p.insertRule(`@keyframes ${s} `+h,p.cssRules.length)),e.style.animation||"");return e.style.animation=(d?d+", ":"")+s+` ${r}ms linear ${o}ms 1 both`,G+=1,s}function z(e){U=e}function K(e){!function(){if(U)return U;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const W=[],V=[];let J=[];const Q=[],ce=Promise.resolve();let ue=!1;function R(e){J.push(e)}const he=new Set;let de,pe=0;function d(){if(0===pe){const r=U;do{try{for(;pe<W.length;){const r=W[pe];pe++,z(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),q(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(R))}}catch(r){throw W.length=0,pe=0,r}for(z(null),W.length=0,pe=0;V.length;)V.pop()();for(let e=0;e<J.length;e+=1){var n=J[e];he.has(n)||(he.add(n),n())}}while(J.length=0,W.length);for(;Q.length;)Q.pop()();ue=!1,he.clear(),z(r)}}function fe(e,t,n){var r;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:n=!1}={}]=[(t?"intro":"outro")+n],(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,void 0),r))}const me=new Set;let y;function ge(e,t){e&&e.i&&(me.delete(e),e.i(t))}function ye(e,t,n,r){e&&e.o?me.has(e)||(me.add(e),y.c.push(()=>{me.delete(e),r&&(n&&e.d(1),r())}),e.o(t)):r&&r()}const be={duration:0};function ve(l,e,t,n){const r={direction:"both"};let c=e(l,t,r),u=n?0:1,h=null,d=null,p=null;function f(){var e,t,n,r;p&&(e=l,t=p,n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(n=n.length-r.length)||(e.style.animation=r.join(", "),G-=n)||_(()=>{G||(D.forEach(e=>{e=e.stylesheet.ownerNode;e&&ne(e)}),D.clear())}))}function m(e,t){var n=e.b-u;return t*=Math.abs(n),{a:u,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function o(e){const{delay:t=0,duration:n=300,easing:r=M,tick:o=E,css:a}=c||be,i={start:S()+t,b:e};if(e||((i.group=y).r+=1),h||d)d=i;else{a&&(f(),p=j(l,u,e,n,t,r,a)),e&&o(0,1),h=m(i,n),R(()=>fe(l,e,"start"));{var s=e=>{return d&&e>d.start&&(h=m(d,n),d=null,fe(l,h.b,"start"),a)&&(f(),p=j(l,u,h.b,h.duration,0,r,c.css)),h&&(e>=h.end?(o(u=h.b,1-u),fe(l,h.b,"end"),d||(h.b?f():--h.group.r||q(h.group.c)),h=null):e>=h.start&&(e=e-h.start,u=h.a+h.d*r(e/h.duration),o(u,1-u))),!(!h&&!d)};let t;0===I.size&&_(L),new Promise(e=>{I.add(t={c:s,f:e})})}}}return{run(e){H(c)?(de||(de=Promise.resolve()).then(()=>{de=null}),de.then(()=>{c=c(r),o(e)})):o(e)},end(){f(),h=d=null}}}function we(e,t){e.d(1),t.delete(e.key)}function Ee(t,n,r,o,a,i,s,l,e,c,u,h){let d=t.length,p=i.length,f=d;for(var m={};f--;)m[t[f].key]=f;var g=[],y=new Map,b=new Map,v=[];for(f=p;f--;){const t=h(a,i,f),q=r(t);let e=s.get(q);e?o&&v.push(()=>e.p(t,n)):(e=c(q,t)).c(),y.set(q,g[f]=e),q in m&&b.set(q,Math.abs(f-m[q]))}var w=new Set,E=new Set;function C(e){ge(e,1),e.m(l,u),s.set(e.key,e),u=e.first,p--}for(;d&&p;){const n=g[p-1],r=t[d-1],o=n.key,q=r.key;n===r?(u=n.first,d--,p--):y.has(q)?!s.has(o)||w.has(o)?C(n):E.has(q)?d--:b.get(o)>b.get(q)?(E.add(o),C(n)):(w.add(q),d--):(e(r,s),d--)}for(;d--;){const n=t[d];y.has(n.key)||e(n,s)}for(;p;)C(g[p-1]);return q(v),g}function Ce(r,e,t,n,o,a,i,s=[-1]){var l=U;z(r);const c=r.$$={fragment:null,ctx:[],props:a,update:E,not_equal:o,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:f(),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&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u)&&(n=e,-1===(e=r).$$.dirty[0]&&(W.push(e),ue||(ue=!0,ce.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),u=!0,q(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){a=e.target;const E=Array.from(a.childNodes);c.fragment&&c.fragment.l(E),E.forEach(ne)}else c.fragment&&c.fragment.c();e.intro&&ge(r.$$.fragment);var h=r,s=e.target,i=e.anchor,t=e.customElement,{fragment:n,after_update:a}=h.$$;n&&n.m(s,i),t||R(()=>{var e=h.$$.on_mount.map(p).filter(H);h.$$.on_destroy?h.$$.on_destroy.push(...e):q(e),h.$$.on_mount=[]}),a.forEach(R),d()}z(l)}let Me;"function"==typeof HTMLElement&&(Me=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(p).filter(H);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){q(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],o=[];J.forEach(e=>(-1===n.indexOf(e)?r:o).push(e)),o.forEach(e=>e()),J=r}q(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=E}$on(e,t){if(!H(t))return E;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)}});var He,Be,s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==s&&s,xe="URLSearchParams"in s,Te="Symbol"in s&&"iterator"in Symbol,Ae="FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(e){return!1}}(),Se="FormData"in s,_e="ArrayBuffer"in s;function Ie(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function $e(e){return e="string"!=typeof e?String(e):e}function Le(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Te&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Fe(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Pe(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Re(e){var t=new FileReader,n=Pe(t);return t.readAsArrayBuffer(e),n}function Oe(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function ke(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Ae&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Se&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:xe&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_e&&Ae&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Oe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_e&&(ArrayBuffer.prototype.isPrototypeOf(e)||Be(e))?this._bodyArrayBuffer=Oe(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):xe&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ae&&(this.blob=function(){var e=Fe(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Fe(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Re)}),this.text=function(){var e,t,n=Fe(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=new FileReader,t=Pe(e),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Se&&(this.formData=function(){return this.text().then(Ue)}),this.json=function(){return this.text().then(JSON.parse)},this}_e&&(He=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Be=ArrayBuffer.isView||function(e){return e&&-1<He.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=Ie(e),t=$e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[Ie(e)]},l.prototype.get=function(e){return e=Ie(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(Ie(e))},l.prototype.set=function(e,t){this.map[Ie(e)]=$e(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Le(n)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Le(t)},l.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Le(n)},Te&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Ne=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof De){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<Ne.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ue(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}De.prototype.clone=function(){return new De(this,{body:this._bodyInit})},ke.call(De.prototype),ke.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var Ge=[301,302,303,307,308],je=(c.redirect=function(e,t){if(-1===Ge.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},s.DOMException);try{new je}catch(E){(je=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),je.prototype.constructor=je}function ze(r,i){return new Promise(function(o,e){var t=new De(r,i);if(t.signal&&t.signal.aborted)return e(new je("Aborted","AbortError"));var a=new XMLHttpRequest;function n(){a.abort()}a.onload=function(){var e,n,t={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",n=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},r=(t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL"),"response"in a?a.response:a.responseText);setTimeout(function(){o(new c(r,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){e(new je("Aborted","AbortError"))},0)},a.open(t.method,function(t){try{return""===t&&s.location.href?s.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?a.withCredentials=!0:"omit"===t.credentials&&(a.withCredentials=!1),"responseType"in a&&(Ae?a.responseType="blob":_e&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof l?t.headers.forEach(function(e,t){a.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){a.setRequestHeader(e,$e(i.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),a.onreadystatechange=function(){4===a.readyState&&t.signal.removeEventListener("abort",n)}),a.send(void 0===t._bodyInit?null:t._bodyInit)})}ze.polyfill=!0,s.fetch||(s.fetch=ze,s.Headers=l,s.Request=De,s.Response=c);var We="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ve=(self.fetch.bind(self),function(e,t){return(Ve=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 Xe(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}Ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Ze(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ye(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||0<t--)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ke(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Je(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Qe=Je(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function qe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var i=Ze(a),s=i.next();!s.done;s=i.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else a.remove(this);a=this.initialTeardown;if(h(a))try{a()}catch(e){o=e instanceof Qe?e.errors:[e]}a=this._finalizers;if(a){this._finalizers=null;try{for(var l=Ze(a),c=l.next();!c.done;c=l.next()){var u=c.value;try{rt(u)}catch(e){o=null!=o?o:[],e instanceof Qe?o=Ke(Ke([],Ye(o)),Ye(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new Qe(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)rt(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&qe(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&qe(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((e=new n).closed=!0,e);var et=n,tt=et.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function nt(e){return e instanceof et||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function rt(e){h(e)?e():e.unsubscribe()}var ot=void 0,at=!1,it=!1,st={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=st.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Ke([e,t],Ye(n))):setTimeout.apply(void 0,Ke([e,t],Ye(n)))},clearTimeout:function(e){var t=st.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function lt(){}var ct=null;function ut(e){if(at){var t=!ct;if(t&&(ct={errorThrown:!1,error:null}),e(),t){var t=ct,n=t.errorThrown,t=t.error;if(ct=null,n)throw t}}else e()}Xe(r,ht=et),r.create=function(e,t,n){return new yt(e,t,n)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ht.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var ht,dt=r,pt=Function.prototype.bind;function r(e){var t=ht.call(this)||this;return t.isStopped=!1,e?nt(t.destination=e)&&e.add(t):t.destination=Et,t}function ft(e,t){return pt.call(e,t)}vt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){wt(e)}},vt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){wt(e)}else wt(e)},vt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){wt(e)}};var mt,gt=vt,yt=(Xe(bt,mt=dt),bt);function bt(e,t,n){var r=mt.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&it?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&ft(e.next,t),error:e.error&&ft(e.error,t),complete:e.complete&&ft(e.complete,t)}):e;return r.destination=new gt(n),r}function vt(e){this.partialObserver=e}function wt(e){var t=e;st.setTimeout(function(){throw t})}var Et={closed:!0,next:lt,error:function(e){throw e},complete:lt},e="function"==typeof Symbol&&Symbol.observable||"@@observable";o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,o=this,a=(r=e)&&r instanceof dt||r&&h(r.next)&&h(r.error)&&h(r.complete)&&nt(r)?e:new yt(e,t,n);return ut(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var o=this;return new(e=Mt(e))(function(e,t){var n=new yt({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});o.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[e]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=Mt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var Ct=o;function o(e){e&&(this._subscribe=e)}function Mt(e){return null!=(e=null!=e?e:ot)?e:Promise}var Ht,Bt,xt,Tt=Je(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Xe(a,xt=Ct),a.prototype.lift=function(e){var t=new At(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new Tt},a.prototype.next=function(o){var a=this;ut(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var n=Ze(a.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(o)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},a.prototype.error=function(t){var n=this;ut(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},a.prototype.complete=function(){var t=this;ut(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(e){return this._throwIfClosed(),xt.prototype._trySubscribe.call(this,e)},a.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},a.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,o=this.observers;return n||r?tt:(this.currentObservers=null,o.push(e),new et(function(){t.currentObservers=null,qe(o,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},a.prototype.asObservable=function(){var e=new Ct;return e.source=this,e},a.create=function(e,t){return new At(e,t)},a),At=(Xe($t,Bt=e),$t.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},$t.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},$t.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},$t.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:tt},$t),St={now:function(){return(St.delegate||Date).now()},delegate:void 0},_t=(Xe(It,Ht=e),It.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,o=t._infiniteTimeWindow,a=t._timestampProvider,t=t._windowTime;n||(r.push(e),o)||r.push(a.now()+t),this._trimBuffer(),Ht.prototype.next.call(this,e)},It.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},It.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var a=t.now(),i=0,s=1;s<n.length&&n[s]<=a;s+=2)i=s;i&&n.splice(0,i+1)}},It);function It(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=St);var r=Ht.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function $t(e,t){var n=Bt.call(this)||this;return n.destination=e,n.source=t,n}function a(){var e=xt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Lt=[],Ft={};const Pt=[];function Rt(r,o=E){let a;const i=new Set;function s(e){if(B(r,e)&&(r=e,a)){const e=!Pt.length;for(const e of i)e[1](),Pt.push(e,r);if(e){for(let e=0;e<Pt.length;e+=2)Pt[e][0](Pt[e+1]);Pt.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=E){const n=[e,t];return i.add(n),1===i.size&&(a=o(s)||E),e(r),()=>{i.delete(n),0===i.size&&a&&(a(),a=null)}}}}function Ot(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:Rt(t,t=>{let n=!1;const r=[];let o=0,a=E;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),u?t(e):a=H(e)?e:E)},e=c.map((e,t)=>T(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){q(e),a(),n=!1}}).subscribe}}function kt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Nt);var t}var Nt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Dt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Wt(Array.isArray(e)?[]:{},e,t):e}function Ut(e,t,n){return e.concat(t).map(function(e){return Dt(e,n)})}function Gt(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 jt(e,t){try{return t in e}catch(e){return!1}}function zt(r,o,a){var i={};return a.isMergeableObject(r)&&Gt(r).forEach(function(e){i[e]=Dt(r[e],a)}),Gt(o).forEach(function(e){var t,n;(!jt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(jt(r,e)&&a.isMergeableObject(o[e])?i[e]=((t=a).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Wt)(r[e],o[e],a):i[e]=Dt(o[e],a))}),i}function Wt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ut,n.isMergeableObject=n.isMergeableObject||kt,n.cloneUnlessOtherwiseSpecified=Dt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):zt(e,t,n):Dt(t,n)}Wt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Wt(e,t,n)},{});throw new Error("first argument should be an array")};var Vt=Wt,Xt=function(e,t){return(Xt=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 Zt(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}Xt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,b,Yt,v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Kt(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Jt(e){return e.type===b.literal}function Qt(e){return e.type===b.number}function qt(e){return e.type===b.date}function en(e){return e.type===b.time}function tn(e){return e.type===b.select}function nn(e){return e.type===b.plural}function rn(e){return e.type===b.tag}function on(e){return e&&"object"==typeof e&&e.type===Yt.number}function an(e){return e&&"object"==typeof e&&e.type===Yt.dateTime}(e=m=m||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=b=b||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Yt=Yt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,sn=/(?:[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 ln=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,cn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,un=/^(@+)?(\+|#+)?[rs]?$/g,hn=/(\*)(0+)|(#+)(0+)|(0+)/g,dn=/^(0+)$/;function pn(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(un,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 fn(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 mn(e){return fn(e)||{}}function gn(e){for(var i={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=v(v(v({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return v(v({},e),mn(t))},{}));continue;case"engineering":i=v(v(v({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return v(v({},e),mn(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(hn,function(e,t,n,r,o,a){if(t)i.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(dn.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(cn.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(cn,function(e,t,n,r,o,a){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var a=o.options[0];"w"===a?i=v(v({},i),{trailingZeroDisplay:"stripIfInteger"}):a&&(i=v(v({},i),pn(a)))}else un.test(o.stem)?i=v(v({},i),pn(o.stem)):((a=fn(o.stem))&&(i=v(v({},i),a)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!dn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=v(v({},i),r)))}return i}var yn={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 bn=new RegExp("^".concat(e.source,"*")),vn=new RegExp("".concat(e.source,"*$"));function w(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,wn=!!String.fromCodePoint,En=!!Object.fromEntries,Cn=!!String.prototype.codePointAt,Mn=!!String.prototype.trimStart,Hn=!!String.prototype.trimEnd,Bn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xn=!0;try{xn="a"===(null==(Xn=Pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Xn[0])}catch(E){xn=!1}var Tn,An,Sn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},_n=wn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;a<o;){if(1114111<(n=e[a++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},In=En?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],o=o[1];t[a]=o}return t},$n=Cn?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},Ln=Mn?function(e){return e.trimStart()}:function(e){return e.replace(bn,"")},Fn=Hn?function(e){return e.trimEnd()}:function(e){return e.replace(vn,"")};function Pn(e,t){return new RegExp(e,t)}An=xn?(Tn=Pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Tn.lastIndex=t,null!=(t=Tn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=$n(e,t);if(void 0===o||kn(o)||33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(o),t+=65536<=o?2:1}return _n.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 o,a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&On(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o}else if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}else{a=this.clonePosition();this.bump(),r.push({type:b.pound,location:w(a,this.clonePosition())})}}}return{val:r,err:null}},i.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),o=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(o,"/>"),location:w(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()||!On(this.char())?this.error(m.INVALID_TAG,w(e,this.clonePosition())):(n=this.clonePosition(),o!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,w(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:o,children:t,location:w(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,w(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,w(r,this.clonePosition()))):this.error(m.INVALID_TAG,w(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 o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=w(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&&(On(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 _n.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(),_n(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,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=An(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,w(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=Fn(h.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:w(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(p=w(r,this.clonePosition()),l&&Sn(null==l?void 0:l.style,"::",0)?(f=Ln(l.style.slice(2)),"number"===i?(h=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:p,style:h.val},err:null}:0===f.length?this.error(m.EXPECT_DATE_TIME_SKELETON,p):(u=f,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(yn[t||""]||yn[n||""]||yn["".concat(n,"-001")]||yn["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===o?"H":o}return n}(f,this.locale)),d={type:Yt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(sn,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}},{val:{type:"date"===i?b.date:b.time,value:n,location:p,style:d},err:null})):{val:{type:"number"===i?b.number:"date"===i?b.date:b.time,value:n,location:p,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,w(u,v({},u)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),p=0;if("select"!==i&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(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(),d=this.parseIdentifierIfPossible(),p=h.val}var f,l=this.tryParsePluralOrSelectOptions(e,i,t,d);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(f=w(r,this.clonePosition()),"select"===i?{val:{type:b.select,value:n,options:In(l.val),location:f},err:null}:{val:{type:b.plural,value:n,options:In(l.val),offset:p,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null});default:return this.error(m.INVALID_ARGUMENT_TYPE,w(a,s))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(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,w(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(ln).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:Yt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?gn(n):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,a=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=w(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(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;a.push([s,{value:c.val,location:w(u,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===a.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}r=w(r,this.clonePosition());return o?Bn(a*=n)?{val:a,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=$n(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(Sn(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()&&kn(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 Rn=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 On(e){return 97<=e&&e<=122||65<=e&&e<=90}function kn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Nn(e,t){t=v({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Rn(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,tn(e)||nn(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Qt(e)&&on(e.style)||(qt(e)||en(e))&&an(e.style)?delete e.style.location:rn(e)&&n(e.children)})}(e.val),e.val}function Dn(e,t){var n=t&&t.cache?t.cache:Zn,r=t&&t.serializer?t.serializer:zn;return(t&&t.strategy?t.strategy:function(e,t){return jn(e,this,1===e.length?Un:Gn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Un(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function Gn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function jn(e,t,n,r,o){return n.bind(t,e,r,o)}var zn=function(){return JSON.stringify(arguments)};function Wn(){this.cache=Object.create(null)}Wn.prototype.get=function(e){return this.cache[e]},Wn.prototype.set=function(e,t){this.cache[e]=t};var Vn,Xn,Zn={create:function(){return new Wn}},Yn={variadic:function(e,t){return jn(e,this,Gn,t.cache.create(),t.serializer)},monadic:function(e,t){return jn(e,this,Un,t.cache.create(),t.serializer)}};(Xn=Vn=Vn||{}).MISSING_VALUE="MISSING_VALUE",Xn.INVALID_VALUE="INVALID_VALUE",Xn.MISSING_INTL_API="MISSING_INTL_API";Zt(sr,qn=Error),sr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var C,Kn,Jn,Qn,qn,er=sr,tr=(Zt(ir,Qn=er),ir),nr=(Zt(ar,Jn=er),ar),rr=(Zt(or,Kn=er),or);function or(e,t){return Kn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Vn.MISSING_VALUE,t)||this}function ar(e,t,n){return Jn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Vn.INVALID_VALUE,n)||this}function ir(e,t,n,r){return Qn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Vn.INVALID_VALUE,r)||this}function sr(e,t,n){e=qn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function lr(e,t,n,r,o,a,i){if(1===e.length&&Jt(e[0]))return[{type:C.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Jt(u))s.push({type:C.literal,value:u.value});else if(u.type===b.pound)"number"==typeof a&&s.push({type:C.literal,value:n.getNumberFormat(t).format(a)});else{var h=u.value;if(!(o&&h in o))throw new rr(h,i);h=o[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?C.literal:C.object,value:h});else if(qt(u)){var d="string"==typeof u.style?r.date[u.style]:an(u.style)?u.style.parsedOptions:void 0;s.push({type:C.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(en(u))d="string"==typeof u.style?r.time[u.style]:an(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:C.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Qt(u))(d="string"==typeof u.style?r.number[u.style]:on(u.style)?u.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),s.push({type:C.literal,value:n.getNumberFormat(t,d).format(h)});else{if(rn(u)){var p=u.children,f=u.value,m=o[f];if("function"!=typeof m)throw new nr(f,"function",i);f=m(lr(p,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?C.literal:C.object,value:e}}))}if(tn(u)){if(!(g=u.options[h]||u.options.other))throw new tr(u.value,h,Object.keys(u.options),i);s.push.apply(s,lr(g.value,t,n,r,o))}else if(nn(u)){if(!(g=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new er('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Vn.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 tr(u.value,h,Object.keys(u.options),i);s.push.apply(s,lr(g.value,t,n,r,o,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===C.literal&&t.type===C.literal?n.value+=t.value:e.push(t),e},[])}function cr(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=C=C||{})[e.literal=0]="literal",e[e.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=Nn,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 ur=u;function u(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=i.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===C.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 lr(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=u.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?v(v(v({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=v(v({},n[t]),r[t]||{}),e},{})):n),e},v({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:Dn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Kt([void 0],t,!1)))},{cache:cr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Yn.variadic}),getDateTimeFormat:Dn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Kt([void 0],t,!1)))},{cache:cr(t.dateTime),strategy:Yn.variadic}),getPluralRules:Dn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Kt([void 0],t,!1)))},{cache:cr(t.pluralRules),strategy:Yn.variadic})}}const hr={},dr=(e,t,n)=>n&&(t in hr||(hr[t]={}),e in hr[t]||(hr[t][e]=n),n),pr=(t,n)=>{if(null!=n){if(n in hr&&t in hr[n])return hr[n][t];var r=Ar(n);for(let e=0;e<r.length;e++){var o=function(e,t){if(!gr(e))return null;e=function(e){return fr[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(o)return dr(t,n,o)}}};let fr;const mr=Rt({});function gr(e){return e in fr}function yr(t,...n){delete hr[t],mr.update(e=>(e[t]=Vt.all([e[t]||{},...n]),e))}Ot([mr],([e])=>Object.keys(e)),mr.subscribe(e=>fr=e);const br={};function vr(e){return br[e]}function wr(e){return null!=e&&Ar(e).some(e=>{return null==(e=vr(e))?void 0:e.size})}const Er={};function Cr(e){var t;return wr(e)?(t=Ar(e).map(e=>{var t=vr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Er[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,br[t].delete(n),0===br[t].size&&delete br[t],e().then(e=>e.default||e);var t,n})).then(e=>yr(r,...e));var r})).then(()=>{if(wr(e))return Cr(e);delete Er[e]}),Er[e]):e in Er?Er[e]:Promise.resolve()}const Mr={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 Hr=Rt(!1);let Br;const xr=Rt(null);function Tr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Ar(e,t=Mr.fallbackLocale){e=Tr(e);return t?[...new Set([...e,...Tr(t)])]:e}function Sr(){return null!=Br?Br:void 0}xr.subscribe(e=>{Br=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const X={...xr,set:t=>{if(t&&function(e){if(null!=e){var t=Ar(e);for(let e=0;e<t.length;e++){var n=t[e];if(gr(n))return n}}}(t)&&wr(t)){var n=Mr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Sr()&&n?e=window.setTimeout(()=>Hr.set(!0),n):Hr.set(!0),Cr(t).then(()=>{xr.set(t)}).finally(()=>{clearTimeout(e),Hr.set(!1)})}return xr.set(t)}},_r=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Ir=(e,t)=>{var n=Mr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},$r=_r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Ir("number",t)),new Intl.NumberFormat(e,n)}),Lr=_r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Ir("date",t):0===Object.keys(n).length&&(n=Ir("date","short")),new Intl.DateTimeFormat(e,n)}),Fr=_r(({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=Ir("time",t):0===Object.keys(n).length&&(n=Ir("time","short")),new Intl.DateTimeFormat(e,n)}),Pr=_r((e,t=Sr())=>new ur(e,t,Mr.formats,{ignoreTag:Mr.ignoreTag})),Rr=Ot([X,mr],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:a,locale:i=Sr(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=pr(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=Mr).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!a)return l;let c=l;try{c=Pr(l,i).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Or=(Ot([X],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],Fr({locale:t,...n}).format(e);var n}),Ot([X],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],Lr({locale:t,...n}).format(e);var n}),Ot([X],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],$r({locale:t,...n}).format(e);var n}),Ot([X,mr],()=>(e,t=Sr())=>pr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Lt.indexOf(e)&&(t=new _t(t),Ft[e]=t,Lt.push(e)),Ft[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),kr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Nr(e,t){yr(e,t)}const Dr={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"},fallbackSecondaryMenu:{promotions:"Promotions"}},"zh-hk":{headerItem:{login:"登錄",register:"登記",deposit:"訂金"},fallbackSecondaryMenu:{promotions:"促销活动"}},fr:{headerItem:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt"},fallbackSecondaryMenu:{promotions:"Promotions"}},tr:{headerItem:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"},fallbackSecondaryMenu:{promotions:"Promosyonlar"}},ro:{headerItem:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},fallbackSecondaryMenu:{promotions:"Promotii"}},es:{headerItem:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},fallbackSecondaryMenu:{promotions:"Promociones"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promoções"}}};function Ur(e,t){yr(e,t)}const Gr={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"}},"zh-hk":{headerItem:{login:"登錄",register:"登記",deposit:"訂金"}},fr:{headerItem:{login:"Connexion",register:"Registre",deposit:"Dépôt"}},tr:{headerItem:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"}},ro:{headerItem:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"}},es:{headerItem:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"}}};function jr(e,t,n){e=e.slice();return e[47]=t[n],e[49]=n,e}function zr(e,t,n){e=e.slice();return e[50]=t[n],e}function Wr(e,t,n){e=e.slice();return e[53]=t[n],e[55]=n,e}function Vr(t){let r,o=[],n=new Map,a=t[9];const i=e=>e[47].id;for(let e=0;e<a.length;e+=1){var s=jr(t,a,e),l=i(s);n.set(l,o[e]=eo(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=O()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);te(t,r,n)},p(e,t){20429&t[0]&&(a=e[9],o=Ee(o,t,i,1,e,a,n,r.parentNode,we,eo,r,jr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&ne(r)}}}function Xr(e){let n,r,o=e[47].name+"";return{c(){n=re("a"),r=oe(o),se(n,"href","#")},m(e,t){te(e,n,t),ee(n,r)},p(e,t){512&t[0]&&o!==(o=e[47].name+"")&&le(r,o)},d(e){e&&ne(n)}}}function Zr(e){let n,r,o=e[47].label+"";return{c(){n=re("a"),r=oe(o),se(n,"href","#")},m(e,t){te(e,n,t),ee(n,r)},p(e,t){512&t[0]&&o!==(o=e[47].label+"")&&le(r,o)},d(e){e&&ne(n)}}}function Yr(e){let n,r=0<e[10].length&&"true"==e[3]&&Kr(e);return{c(){r&&r.c(),n=O()},m(e,t){r&&r.m(e,t),te(e,n,t)},p(e,t){0<e[10].length&&"true"==e[3]?r?r.p(e,t):((r=Kr(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&ne(n)}}}function Kr(t){let o,a=t[10],i=[];for(let e=0;e<a.length;e+=1)i[e]=qr(zr(t,a,e));return{c(){o=re("ul");for(let e=0;e<i.length;e+=1)i[e].c();se(o,"class","DropDown")},m(e,t){te(e,o,t);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(o,null)},p(t,n){if(18368&n[0]){let e;for(a=t[10],e=0;e<a.length;e+=1){var r=zr(t,a,e);i[e]?i[e].p(r,n):(i[e]=qr(r),i[e].c(),i[e].m(o,null))}for(;e<i.length;e+=1)i[e].d(1);i.length=a.length}},d(e){e&&ne(o),P(i,e)}}}function Jr(n){let r,o,a,i,s,l,c,u=n[53]?.name+"";function h(...e){return n[30](n[47],n[49],n[53],n[55],...e)}return{c(){r=re("li"),o=re("a"),a=oe(u),s=ae(),se(o,"class",i="SubDropDown "+(n[49]!=n[6]||n[7]!=n[55]&&n[8]!=n[55]?"":"active"))},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,s),l||(c=ie(r,"click",h),l=!0)},p(e,t){n=e,1024&t[0]&&u!==(u=n[53]?.name+"")&&le(a,u),1984&t[0]&&i!==(i="SubDropDown "+(n[49]!=n[6]||n[7]!=n[55]&&n[8]!=n[55]?"":"active"))&&se(o,"class",i)},d(e){e&&ne(r),l=!1,c()}}}function Qr(e,n){let r,o,a=n[49]==n[50].index&&Jr(n);return{key:e,first:null,c(){r=O(),a&&a.c(),o=O(),this.first=r},m(e,t){te(e,r,t),a&&a.m(e,t),te(e,o,t)},p(e,t){(n=e)[49]==n[50].index?a?a.p(n,t):((a=Jr(n)).c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(e){e&&ne(r),a&&a.d(e),e&&ne(o)}}}function qr(t){let r,o=[],n=new Map,a=t[50].items;const i=e=>e[53].id;for(let e=0;e<a.length;e+=1){var s=Wr(t,a,e),l=i(s);n.set(l,o[e]=Qr(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=O()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);te(t,r,n)},p(e,t){18368&t[0]&&(a=e[50].items,o=Ee(o,t,i,1,e,a,n,r.parentNode,we,Qr,r,Wr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&ne(r)}}}function eo(e,n){let r,o,a,i,s,l;function c(e){return"headerMain"===e[0]?Zr:Xr}let u=c(n),h=u(n),d=1==n[11][n[49]]&&Yr(n);function p(...e){return n[31](n[47],n[49],...e)}return{key:e,first:null,c(){r=re("li"),h.c(),o=ae(),d&&d.c(),a=ae(),se(r,"class",i="CarouselItem "+(-1<n[2]?.toString().indexOf("$")?n[2]?.split("$").pop()==n[47].id.split("$").pop()?"active":"":n[2]==n[47].id?"active":"")+" "+("headerMain"==n[0]?"":"SecondaryMenu")),se(r,"part","CarouselItem"),this.first=r},m(e,t){te(e,r,t),h.m(r,null),ee(r,o),d&&d.m(r,null),ee(r,a),s||(l=ie(r,"click",p),s=!0)},p(e,t){u===(u=c(n=e))&&h?h.p(n,t):(h.d(1),(h=u(n))&&(h.c(),h.m(r,o))),1==n[11][n[49]]?d?d.p(n,t):((d=Yr(n)).c(),d.m(r,a)):d&&(d.d(1),d=null),517&t[0]&&i!==(i="CarouselItem "+(-1<n[2]?.toString().indexOf("$")?n[2]?.split("$").pop()==n[47].id.split("$").pop()?"active":"":n[2]==n[47].id?"active":"")+" "+("headerMain"==n[0]?"":"SecondaryMenu"))&&se(r,"class",i)},d(e){e&&ne(r),h.d(),d&&d.d(),s=!1,l()}}}function to(n){let r,o,a,i,s,l,c,u,h,d,p,f,m,g,y,b,v,w=0<n[9].length&&Vr(n);return{c(){r=re("div"),o=re("div"),(a=re("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=ae(),s=re("div"),l=re("ul"),(c=re("li")).innerHTML='<a href="#CarouselNav">Close Subs</a>',u=ae(),w&&w.c(),h=ae(),(d=re("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',this.c=E,se(a,"class","CarouselLeftArrow"),se(a,"part","CarouselLeftArrow"),se(c,"class","TouchOnly"),se(l,"id","CarouselNav"),se(l,"class","CarouselItems"),se(l,"part","CarouselItems"),se(s,"class","CarouselNavWrap"),se(d,"class","CarouselRightArrow"),se(d,"part","CarouselRightArrow"),se(o,"class",p="CarouselContainer CarouselContainerMobile} "+("headerMain"===n[0]?"CarouselContainerHeaderMain":"")),se(o,"part",f="CarouselContainer "+(n[13]?"CarouselContainerMobile":"")+" "+("headerMain"===n[0]?"CarouselContainerHeaderMain":"")),se(o,"style",m="headerMain"===n[0]?"max-width: auto":`max-width: ${n[1]}px`),se(r,"class",g="CarouselWrapper "+("headerMain"===n[0]?"CarouselWrapperHeaderMain":"")),se(r,"part",y="CarouselWrapper "+("headerMain"===n[0]?"CarouselWrapperHeaderMain":""))},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,i),ee(o,s),ee(s,l),ee(l,c),ee(l,u),w&&w.m(l,null),n[32](l),n[33](s),ee(o,h),ee(o,d),n[35](r),b||(v=[ie(a,"click",n[29]),ie(d,"click",n[34])],b=!0)},p(e,t){0<e[9].length?w?w.p(e,t):((w=Vr(e)).c(),w.m(l,null)):w&&(w.d(1),w=null),1&t[0]&&p!==(p="CarouselContainer CarouselContainerMobile} "+("headerMain"===e[0]?"CarouselContainerHeaderMain":""))&&se(o,"class",p),1&t[0]&&f!==(f="CarouselContainer "+(e[13]?"CarouselContainerMobile":"")+" "+("headerMain"===e[0]?"CarouselContainerHeaderMain":""))&&se(o,"part",f),3&t[0]&&m!==(m="headerMain"===e[0]?"max-width: auto":`max-width: ${e[1]}px`)&&se(o,"style",m),1&t[0]&&g!==(g="CarouselWrapper "+("headerMain"===e[0]?"CarouselWrapperHeaderMain":""))&&se(r,"class",g),1&t[0]&&y!==(y="CarouselWrapper "+("headerMain"===e[0]?"CarouselWrapperHeaderMain":""))&&se(r,"part",y)},i:E,o:E,d(e){e&&ne(r),w&&w.d(),n[32](null),n[33](null),n[35](null),b=!1,q(v)}}}function no(t,e,a){let{endpoint:i=""}=e,{datasource:s=""}=e,{onclickeventname:n="defaultEvent"}=e,{actionevent:l="defaultEvent"}=e,{favoritesnumber:r="0"}=e,{location:c=""}=e,{clientstyling:o=""}=e,{clientstylingurl:u=""}=e,{identity:h=""}=e,{translationurl:d=""}=e,{containermaxwidth:p=""}=e,{isprimarymenu:f=!1}=e,{issecondarymenu:m=!1}=e,{lang:g=""}=e,{activeindex:y="0"}=e,{showsubgroups:b="false"}=e;var v,w;({withLocale:v,translations:w}={withLocale:"en",translations:{}}),X.subscribe(e=>{null==e&&(mr.set(w),X.set(v))}),Object.keys(Gr).forEach(e=>{Ur(e,Gr[e])});let E,C,M,H,B,x,T=window.navigator.userAgent,R="PC"!==kr(T),A=[],S=[],_=[],I=(e,t,n,r,o)=>{e.subGroups&&null===r||(P(),a(6,C=t),a(6,C),"secondary"!=o?(window.postMessage({type:l,itemId:e.id,index:t,item:e,externalLink:e.externalLink||!1,target:(null==(o=e.attrs)?void 0:o.target)||null},window.location.href),a(7,M=null),a(8,H=null)):(a(7,M=r),a(7,M),a(8,H=M),window.postMessage({type:l,itemId:n.id,subIndex:r,subItem:n},window.location.href)))},$=()=>{x.scrollBy({left:-250,behavior:"smooth"})},L=()=>{x.scrollBy({left:250,behavior:"smooth"})};const F=e=>{"SliderData"==e.data.type&&e.data.identity==h&&(a(9,A=e.data.data),a(11,_=new Array(A.length).fill(!1)),"true"==b)&&A.forEach((e,t)=>{var r,o,n;0<(null==(n=null==e?void 0:e.subGroups)?void 0:n.count)&&(a(11,_[t]=!0,_),r=e,o=t,"secondaryMenu"==c&&i&&s&&g&&r.id&&(n=new URL(`${i}/casino/groups/${s}/${r.id}/subGroups?language=`+g),fetch(n.href).then(e=>e.json()).then(e=>{e.index=o,a(10,S=S.concat(e)),"false"==b&&window.postMessage({type:l,itemId:r.id,index:o,item:r},window.location.href);const n=[];S.map(e=>(e.items.forEach(t=>{n.find(e=>t.id==e)||n.push(t.id)}),n.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:n})}).then(()=>{E.querySelectorAll(".DropDown")&&P()})),"headerMain"==c)&&window.postMessage({type:l,item:r},window.location.href)}),"GoToHomepage"==e.data.type&&A.forEach((e,t)=>{e.path.endsWith("/casino")&&(a(6,C=t),a(6,C))})},P=()=>{var t=E.querySelectorAll(".DropDown");document.activeElement.blur(),x.classList.add("isScrolling");for(let e=0;e<t.length;e++)t[e].style.transform="translateX(-"+x.scrollLeft+"px)";x.classList.remove("isScrolling")};return K(()=>("ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),window.addEventListener("message",F,!1),setTimeout(()=>{x.addEventListener("scroll",P)},500),()=>{window.removeEventListener("message",F),E.removeEventListener("scroll",P)})),t.$$set=e=>{"endpoint"in e&&a(17,i=e.endpoint),"datasource"in e&&a(18,s=e.datasource),"onclickeventname"in e&&a(19,n=e.onclickeventname),"actionevent"in e&&a(20,l=e.actionevent),"favoritesnumber"in e&&a(21,r=e.favoritesnumber),"location"in e&&a(0,c=e.location),"clientstyling"in e&&a(22,o=e.clientstyling),"clientstylingurl"in e&&a(23,u=e.clientstylingurl),"identity"in e&&a(24,h=e.identity),"translationurl"in e&&a(25,d=e.translationurl),"containermaxwidth"in e&&a(1,p=e.containermaxwidth),"isprimarymenu"in e&&a(26,f=e.isprimarymenu),"issecondarymenu"in e&&a(27,m=e.issecondarymenu),"lang"in e&&a(28,g=e.lang),"activeindex"in e&&a(2,y=e.activeindex),"showsubgroups"in e&&a(3,b=e.showsubgroups)},t.$$.update=()=>{if(t.$$.dirty[0],33554432&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ur(e,t[e])})}).catch(e=>{console.log(e)}),4194320&t.$$.dirty[0]&&o&&B&&((e=document.createElement("style")).innerHTML=o,B.appendChild(e)),8388624&t.$$.dirty[0]&&u&&B){let t=document.createElement("style"),e=new URL(u);fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{B.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&g&&(e=g,X.set(e))},[c,p,y,b,B,E,C,M,H,A,S,_,x,R,I,$,L,i,s,n,l,r,o,u,h,d,f,m,g,()=>$(),(e,t,n,r,o)=>{I(e,t,n,r,"secondary"),o.stopPropagation()},(e,t,n)=>{I(e,t,null,null,"main"),n.preventDefault()},function(e){V[e?"unshift":"push"](()=>{E=e,a(5,E)})},function(e){V[e?"unshift":"push"](()=>{x=e,a(12,x)})},()=>L(),function(e){V[e?"unshift":"push"](()=>{B=e,a(4,B)})}]}function ro(e,{delay:t=0,duration:n=400,easing:r=M}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*o}}function oo(e,t){yr(e,t)}customElements.get("casino-slider")||customElements.define("casino-slider",class extends Me{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:var(--emfe-w-color-primary, #D0046C);background:-webkit-linear-gradient(to left, var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C));background:linear-gradient(to left, var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-color-white, #FFFFFF);margin:0 auto}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emfe-w-color-contrast, #07072A);cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:rgba(255, 255, 255, 0.3)}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems a{display:block;padding:7px 10px;color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emfe-w-color-contrast, #07072A)}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emfe-w-color-secondary, #FD2839);background:-webkit-linear-gradient(var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C));background:linear-gradient(var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emfe-w-color-black, #000);background:var(--emfe-w-color-white, #FFF)}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #D0046C)}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emfe-w-color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}',this.shadowRoot.appendChild(t),Ce(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},no,to,B,{endpoint:17,datasource:18,onclickeventname:19,actionevent:20,favoritesnumber:21,location:0,clientstyling:22,clientstylingurl:23,identity:24,translationurl:25,containermaxwidth:1,isprimarymenu:26,issecondarymenu:27,lang:28,activeindex:2,showsubgroups:3},null,[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["endpoint","datasource","onclickeventname","actionevent","favoritesnumber","location","clientstyling","clientstylingurl","identity","translationurl","containermaxwidth","isprimarymenu","issecondarymenu","lang","activeindex","showsubgroups"]}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),d()}get datasource(){return this.$$.ctx[18]}set datasource(e){this.$$set({datasource:e}),d()}get onclickeventname(){return this.$$.ctx[19]}set onclickeventname(e){this.$$set({onclickeventname:e}),d()}get actionevent(){return this.$$.ctx[20]}set actionevent(e){this.$$set({actionevent:e}),d()}get favoritesnumber(){return this.$$.ctx[21]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),d()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),d()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get identity(){return this.$$.ctx[24]}set identity(e){this.$$set({identity:e}),d()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),d()}get containermaxwidth(){return this.$$.ctx[1]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),d()}get isprimarymenu(){return this.$$.ctx[26]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),d()}get issecondarymenu(){return this.$$.ctx[27]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),d()}get lang(){return this.$$.ctx[28]}set lang(e){this.$$set({lang:e}),d()}get activeindex(){return this.$$.ctx[2]}set activeindex(e){this.$$set({activeindex:e}),d()}get showsubgroups(){return this.$$.ctx[3]}set showsubgroups(e){this.$$set({showsubgroups:e}),d()}});const ao={en:{languageSelector:{language:"Select Language"}},"zh-hk":{languageSelector:{language:"選擇語言"}},fr:{languageSelector:{language:"Sélectionner la langue"}},tr:{languageSelector:{language:"Dil Seçin"}},ro:{languageSelector:{language:"Selecteaza limba"}},es:{languageSelector:{language:"Seleccionar idioma"}},pt:{languageSelector:{language:"Selecione o idioma"}}};function io(e,t,n){e=e.slice();return e[0]=t[n],e}function so(e,t,n){e=e.slice();return e[43]=t[n],e}function lo(e,t,n){e=e.slice();return e[46]=t[n],e}function co(n){let r,o,a,i,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,C,M,H,t,B,x,T,A=n[11]("languageSelector.language")+"",S=n[3],_=[];for(let e=0;e<S.length;e+=1)_[e]=uo(lo(n,S,e));let I=n[5],$=[];for(let e=0;e<I.length;e+=1)$[e]=ho(so(n,I,e));let L=n[9],F=[];for(let e=0;e<L.length;e+=1)F[e]=po(io(n,L,e));return{c(){r=re("div"),o=re("span"),(a=re("slot")).innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',l=ae(),c=re("div"),u=re("ul");for(let e=0;e<_.length;e+=1)_[e].c();p=ae(),f=re("ul");for(let e=0;e<$.length;e+=1)$[e].c();y=ae(),b=re("div"),v=re("span"),w=oe(A),E=ae(),C=re("select");for(let e=0;e<F.length;e+=1)F[e].c();se(a,"name","close"),se(o,"class",i=n[6]?"ModalCloseBtn":""),se(o,"part",s=n[6]?"ModalCloseBtn":""),se(o,"role","button"),se(u,"class",h="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")),se(u,"part",d="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")),se(f,"class",m="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")),se(f,"part",g="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")),se(C,"class","Item ItemLanguage"),se(C,"part","Item ItemLanguage"),void 0===n[10]&&R(()=>n[25].call(C)),se(b,"class","LanguageSelectorTitle"),se(b,"part","LanguageSelectorTitle"),se(c,"class",M="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")),se(c,"part",H="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")),se(r,"class","HamburgerModalWindow"),se(r,"part","HamburgerModalWindow")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,l),ee(r,c),ee(c,u);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(u,null);ee(c,p),ee(c,f);for(let e=0;e<$.length;e+=1)$[e]&&$[e].m(f,null);ee(c,y),ee(c,b),ee(b,v),ee(v,w),ee(b,E),ee(b,C);for(let e=0;e<F.length;e+=1)F[e]&&F[e].m(C,null);k(C,n[10],!0),n[27](r),B=!0,x||(T=[ie(o,"click",n[12]),ie(C,"change",n[25]),ie(C,"change",n[26])],x=!0)},p(e,t){if(n=e,(!B||64&t[0]&&i!==(i=n[6]?"ModalCloseBtn":""))&&se(o,"class",i),(!B||64&t[0]&&s!==(s=n[6]?"ModalCloseBtn":""))&&se(o,"part",s),8216&t[0]){let e;for(S=n[3],e=0;e<S.length;e+=1){const o=lo(n,S,e);_[e]?_[e].p(o,t):(_[e]=uo(o),_[e].c(),_[e].m(u,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=S.length}if((!B||128&t[0]&&h!==(h="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"class",h),(!B||128&t[0]&&d!==(d="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"part",d),16416&t[0]){let e;for(I=n[5],e=0;e<I.length;e+=1){const o=so(n,I,e);$[e]?$[e].p(o,t):($[e]=ho(o),$[e].c(),$[e].m(f,null))}for(;e<$.length;e+=1)$[e].d(1);$.length=I.length}if((!B||128&t[0]&&m!==(m="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"class",m),(!B||128&t[0]&&g!==(g="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"part",g),(!B||2048&t[0])&&A!==(A=n[11]("languageSelector.language")+"")&&le(w,A),512&t[0]){let e;for(L=n[9],e=0;e<L.length;e+=1){const o=io(n,L,e);F[e]?F[e].p(o,t):(F[e]=po(o),F[e].c(),F[e].m(C,null))}for(;e<F.length;e+=1)F[e].d(1);F.length=L.length}1536&t[0]&&k(C,n[10]),(!B||64&t[0]&&M!==(M="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")))&&se(c,"class",M),(!B||64&t[0]&&H!==(H="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")))&&se(c,"part",H)},i(e){B||(R(()=>{B&&(t=t||ve(r,ro,{transitionDuration:mo},!0)).run(1)}),B=!0)},o(e){(t=t||ve(r,ro,{transitionDuration:mo},!1)).run(0),B=!1},d(e){e&&ne(r),P(_,e),P($,e),P(F,e),n[27](null),e&&t&&t.end(),x=!1,q(T)}}}function uo(n){let r,o,a,i,s,l,c,u,h,d,p,f=n[46].label+"";function m(){return n[23](n[46])}return{c(){r=re("li"),o=re("div"),a=re("img"),s=ae(),l=oe(f),c=ae(),g(a.src,i=n[46].img)||se(a,"src",i),se(a,"alt","menu icon"),se(o,"class","HamburgerItemContainer"),se(o,"part","HamburgerItemContainer"),se(r,"class",u=n[4]===n[46].id?"ActiveItem":""),se(r,"part",h=n[4]===n[46].id?"ActiveItem":"")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,s),ee(o,l),ee(r,c),d||(p=ie(r,"click",m),d=!0)},p(e,t){n=e,8&t[0]&&!g(a.src,i=n[46].img)&&se(a,"src",i),8&t[0]&&f!==(f=n[46].label+"")&&le(l,f),24&t[0]&&u!==(u=n[4]===n[46].id?"ActiveItem":"")&&se(r,"class",u),24&t[0]&&h!==(h=n[4]===n[46].id?"ActiveItem":"")&&se(r,"part",h)},d(e){e&&ne(r),d=!1,p()}}}function ho(n){let r,o,a,i,s,l,c,u,h=n[43].label+"";function d(...e){return n[24](n[43],...e)}return{c(){r=re("li"),o=re("img"),i=ae(),s=oe(h),l=ae(),g(o.src,a=n[43].img)||se(o,"src",a),se(o,"alt","menu icon")},m(e,t){te(e,r,t),ee(r,o),ee(r,i),ee(r,s),ee(r,l),c||(u=ie(r,"click",d),c=!0)},p(e,t){n=e,32&t[0]&&!g(o.src,a=n[43].img)&&se(o,"src",a),32&t[0]&&h!==(h=n[43].label+"")&&le(s,h)},d(e){e&&ne(r),c=!1,u()}}}function po(e){let n,r,o,a=e[0]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[0],n.value=n.__value,n.selected=!0},m(e,t){te(e,n,t),ee(n,r)},p(e,t){512&t[0]&&a!==(a=e[0]+"")&&le(r,a),512&t[0]&&o!==(o=e[0])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function fo(n){let r,o,a=!0===n[8]&&co(n);return{c(){r=re("div"),a&&a.c(),this.c=E},m(e,t){te(e,r,t),a&&a.m(r,null),n[28](r),o=!0},p(e,t){!0===e[8]?a?(a.p(e,t),256&t[0]&&ge(a,1)):((a=co(e)).c(),ge(a,1),a.m(r,null)):a&&(y={r:0,c:[],p:y},ye(a,1,1,()=>{a=null}),y.r||q(y.c),y=y.p)},i(e){o||(ge(a),o=!0)},o(e){ye(a),o=!1},d(e){e&&ne(r),a&&a.d(),n[28](null)}}}let mo=350;function go(t,e,r){let n;Z(t,Rr,e=>r(11,n=e));let o,a,i,{menuitemsurl:s=""}=e,{lang:l="en"}=e,{activecategory:c=""}=e,{languageslist:u=""}=e,{translationurl:h=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,f=window.navigator.userAgent,m=[],g="",y=[],b=!1,v=!1,w=!1,E=!0,C=[],M=!1,H="";Object.keys(ao).forEach(e=>{oo(e,ao[e])});const B=()=>{r(8,w=!1),r(6,b=!1),r(7,v=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href)},x=e=>{var n;"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),r(8,w=!0),setTimeout(()=>{r(6,b=!0)},500),setTimeout(()=>{r(7,v=!0)},1500),n=s,new Promise((e,t)=>{a&&!M?e(a):S(n)}))},T=(e,t)=>{r(4,g=e),r(5,y=t||[]),"function"==typeof gtag&&gtag("event","ChangeMenu",{context:"HamburgerMenu",menuItem:""+g})},A=()=>{var e=m.filter(e=>{let t=!1;if(e.children.forEach(e=>{e.path.includes(c)&&(t=!0)}),t)return e});0<e.length&&T(e[0].id,e[0].children)},S=e=>{fetch(e).then(e=>e.json()).then(e=>{r(3,m=e),A(),r(22,E=!1),a=e,M=!1},e=>{console.error(e)})};let _=e=>{window.postMessage({type:"HamburgerItemClicked",item:e,externalLink:e.externalLink||!1,target:e.attrs.target||null},window.location.href),B()};const I=()=>{M=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:H},window.location.href)};return K(()=>(window.addEventListener("message",x,!1),Or(f),()=>{window.removeEventListener("message",x)})),t.$$set=e=>{"menuitemsurl"in e&&r(16,s=e.menuitemsurl),"lang"in e&&r(0,l=e.lang),"activecategory"in e&&r(17,c=e.activecategory),"languageslist"in e&&r(18,u=e.languageslist),"translationurl"in e&&r(19,h=e.translationurl),"clientstyling"in e&&r(20,d=e.clientstyling),"clientstylingurl"in e&&r(21,p=e.clientstylingurl)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&l&&u&&(e=l,X.set(e),M&&S(s),r(9,C=u.replace(/ /g,"").split(",")),r(9,C=C.map(e=>e.toUpperCase())),r(10,H=l.toUpperCase())),4325376&t.$$.dirty[0]&&c&&!E&&A(),524288&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{oo(e,t[e])})}).catch(e=>{console.log(e)}),1048578&t.$$.dirty[0]&&d&&i&&((e=document.createElement("style")).innerHTML=d,i.appendChild(e)),2097154&t.$$.dirty[0]&&p&&i){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e},[l,i,void 0,m,g,y,b,v,w,C,H,n,B,T,_,I,s,c,u,h,d,p,E,e=>T(e.id,e.children),(e,t)=>{_(e),t.preventDefault()},function(){H=Y(this),r(10,H),r(9,C)},()=>I(),function(e){V[e?"unshift":"push"](()=>{o=e,r(2,o)})},function(e){V[e?"unshift":"push"](()=>{i=e,r(1,i)})}]}function yo(e,t){yr(e,t)}customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",class extends Me{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LanguageSelectorTitle{width:90vw;padding:5px 0;position:fixed;bottom:0;background:var(--emfe-w-color-black, #000000)}.LanguageSelectorTitle span{display:inline;color:var(--emfe-w-color-gray-150, #828282);margin:0 20px;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:12px}.ItemLanguage{height:34px;width:88%;margin:0 20px;text-align:left;line-height:34px;background:transparent;color:var(--emfe-w-color-white, #FFFFFF);border:none}.ItemLanguage option{color:var(--emfe-w-color-contrast, #07072A)}.HamburgerModalWindow{display:block;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.7)}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emfe-w-color-black, #000000);width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width 0.4s ease-in-out;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{width:90vw}.HamburgerModalWindow .ModalCloseBtn{position:absolute;top:9px;right:9px;width:20px;height:20px;border-radius:100%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.2);opacity:1;cursor:pointer;transition:all 150ms ease-in-out;transition:opacity 500ms ease-in-out}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emfe-w-color-white, #FFFFFF)}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:all 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emfe-w-color-contrast, #07072A);white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid var(--emfe-w-color-primary, #D0046C);width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emfe-w-color-primary, #D0046C)}.HamburgerModalWindow .HamburgerPrimaryMenu.HamburgerPrimaryMenuFixed{position:fixed}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.HamburgerSecondaryMenuFixed{margin-top:106px;margin-bottom:70px}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),Ce(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},go,fo,B,{menuitemsurl:16,lang:0,activecategory:17,languageslist:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["menuitemsurl","lang","activecategory","languageslist","translationurl","clientstyling","clientstylingurl"]}get menuitemsurl(){return this.$$.ctx[16]}set menuitemsurl(e){this.$$set({menuitemsurl:e}),d()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d()}get activecategory(){return this.$$.ctx[17]}set activecategory(e){this.$$set({activecategory:e}),d()}get languageslist(){return this.$$.ctx[18]}set languageslist(e){this.$$set({languageslist:e}),d()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}});const bo={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},"zh-hk":{balanceModal:{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"}},de:{balanceModal:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"}},it:{balanceModal:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"}},fr:{balanceModal:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"}},es:{balanceModal:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}};var vo=function(n){var M=n={path:void 0,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},e=n.exports,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:We:globalThis,I=t.setTimeout,$=t.clearTimeout,L=t.XMLHttpRequest,r=t.XDomainRequest,o=t.ActiveXObject,a=t.EventSource,i=t.document,h=t.Promise,d=t.fetch,s=t.Response,p=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;{var c;"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==L&&null!=o&&(L=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(c=d,d=function(e,t){var n=t.signal;return c(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}})}function u(){this.bitsNeeded=0,this.codePoint=0}u.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,n(o,a)))&&(o=0,a=65533,r+=String.fromCharCode(a)),0===o?(a=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(a,o,n(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?r+=String.fromCharCode(a):r=(r+=String.fromCharCode(55296+(a-65535-1>>10)))+String.fromCharCode(56320+(a-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=a,r},null!=p&&null!=l&&function(){try{return"test"===(new p).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(p=u);function m(){}function F(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=m}function g(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function y(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),a=o.shift(),o=o.join(": ");t[g(a)]=o}this._map=t}function P(){}function b(e){this._headers=e}function R(){}function O(){this._listeners=Object.create(null)}function v(e){I(function(){throw e},0)}function w(e){this.type=e,this.target=void 0}function k(e,t){w.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){w.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){w.call(this,e),this.error=t.error}F.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:m}),l(),1===i||2===i||3===i){if(i=4,0!==r&&($(r),r=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var o=this,a=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==o._sendTimeout&&($(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=m,a.onerror=m,a.onabort=m,a.onprogress=m,a.onreadystatechange=m,a.abort(),0!==r&&($(r),r=0),e)||(o.readyState=4,o.onabort(null),o.onreadystatechange()),i=0},function(){if(1===i){var t=0,n="",r=void 0;if("contentType"in a)t=200,n="OK",r=a.contentType;else try{t=a.status,n=a.statusText,r=a.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){r=I(function(){c()},500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){n("load",e)}),"onerror"in a&&(a.onerror=function(e){n("error",e)}),"onabort"in a&&(a.onabort=function(e){n("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||n(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&s())}),!("contentType"in a)&&"ontimeout"in L.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(r=I(function(){c()},0))},F.prototype.abort=function(){this._abort(!1)},F.prototype.getResponseHeader=function(e){return this._contentType},F.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},F.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},F.prototype.send=function(){if("ontimeout"in L.prototype&&("sendAsBinary"in L.prototype||"mozAnon"in L.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=I(function(){t._sendTimeout=0,t.send()},4)}},y.prototype.get=function(e){return this._map[g(e)]},null!=L&&null==L.HEADERS_RECEIVED&&(L.HEADERS_RECEIVED=2),P.prototype.open=function(o,a,t,n,e,r,i){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===L.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),a(e,t,n,new y(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},b.prototype.get=function(e){return this._headers.get(e)},R.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new f,c=l.signal,u=new p;return d(r,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new b(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}),o(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},O.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){v(e)}}},O.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,a=0;a<r.length;a+=1)r[a]===t&&(o=!0);o||r.push(t)},O.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],a=0;a<r.length;a+=1)r[a]!==t&&o.push(r[a]);0===o.length?delete n[e]:n[e]=o}},k.prototype=Object.create(w.prototype),N.prototype=Object.create(w.prototype),D.prototype=Object.create(w.prototype);function U(e,t){e=null==e?t:parseInt(e,10);return j(e=e!=e?t:e)}function G(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){v(e)}}var H=-1,B=0,x=1,T=2,A=-1,S=0,_=1,z=2,W=3,V=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function E(e,t){var l,a,i,c,u,h,d,p,f,n,s,m,g,y,b,v,w,E,C,M,H,B,x,T,A,S,_;O.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,a=e,e=t,a=String(a),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=j(1e3),u=U(e.heartbeatTimeout,45e3),h="",d=c,p=!1,f=0,n=e.headers||{},e=e.Transport,s=X&&null==e?void 0:new F(new(null!=e?e:null!=L&&"withCredentials"in L.prototype||null==r?L:r)),m=new(null!=e&&"string"!=typeof e?e:null==s?R:P),g=void 0,b=-1,C=E=w=v="",B=H=M=y=0,x=function(e,t,n,r){var o,a;0===b&&(200===e&&null!=n&&V.test(n)?(b=1,p=Date.now(),d=c,l.readyState=1,o=new N("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),G(l,l.onopen,o)):(a="",a=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",S(),o=new N("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),G(l,l.onerror,o),console.error(a)))},T=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?C:"")+e.slice(0,t+1);C=(-1===t?C:"")+e.slice(t+1),""!==e&&(p=Date.now(),f+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===M&&i==="\n".charCodeAt(0))M=0;else if(-1===M&&(M=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==M&&(1===M&&(B=o+1),s=r.slice(H,B-1),a=r.slice(B+(B<o&&r.charCodeAt(B)===" ".charCodeAt(0)?1:0),o),"data"===s?v=v+"\n"+a:"id"===s?w=a:"event"===s?E=a:"retry"===s?(c=U(a,c),d=c):"heartbeatTimeout"===s&&(u=U(a,u),0!==y)&&($(y),y=I(function(){_()},u))),0===M){if(""!==v){h=w;var s=new k(E=""===E?"message":E,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===E?G(l,l.onopen,s):"message"===E?G(l,l.onmessage,s):"error"===E&&G(l,l.onerror,s),2===b)return}E=v=""}M=i==="\r".charCodeAt(0)?-1:0}else 0===M&&(H=o,M=1),1===M?i===":".charCodeAt(0)&&(B=o+1,M=2):2===M&&(M=3)}}},A=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&($(y),y=0),y=I(function(){_()},d),d=j(Math.min(16*c,2*d)),l.readyState=0,t=new D("error",{error:e}),l.dispatchEvent(t),G(l,l.onerror,t),null!=e&&console.error(e))},S=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&($(y),y=0),l.readyState=2},_=function(){if(y=0,-1===b){p=!1,f=0,y=I(function(){_()},u),w=h,C=E=v="",M=B=H=b=0;var e=a,t=("data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==h&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{g=m.open(s,x,T,A,e,t,n)}catch(e){throw S(),e}}else p||null==g?(e=Math.max((p||Date.now())+u-Date.now(),1),p=!1,y=I(function(){_()},e)):(A(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=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=S,_()}var X=null!=d&&null!=s&&"body"in s.prototype;(E.prototype=Object.create(O.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;var C=a;return null==L||null!=a&&"withCredentials"in a.prototype||(C=E),void 0!==(t=function(e){e.EventSourcePolyfill=E,e.NativeEventSource=a,e.EventSource=C}(e)),n.exports}();function wo(n){let r,o,k,a,i,s,l,N,c,u,h,d,D,p,f,m,U,g,y,G,b,v,w,j,E,C,z,M,H,W,B,x,T,V,A,S,X,_,Z,Y,I,$,K,J,Q,L=n[4]("balanceModal.balanceTitle")+"",F=n[4]("balanceModal.totalBalance")+"",P=n[4]("balanceModal.cashBalance")+"",R=n[4]("balanceModal.bonusBalance")+"",O=n[4]("balanceModal.depositButton")+"";return{c(){r=re("div"),o=re("div"),k=ae(),a=re("div"),i=re("div"),s=re("p"),l=oe(L),N=ae(),c=re("div"),u=re("div"),h=re("p"),d=oe(F),D=ae(),p=re("p"),f=re("span"),m=oe(n[2]),U=ae(),g=re("span"),y=oe(n[3]),G=ae(),b=re("div"),v=re("p"),w=oe(P),j=ae(),E=re("p"),(C=re("span")).textContent=""+n[8](n[5].get("Casino").balanceAmount),z=ae(),M=re("span"),H=oe(n[3]),W=ae(),B=re("div"),x=re("p"),T=oe(R),V=ae(),A=re("p"),(S=re("span")).textContent=""+n[8](n[5].get("UBS").balanceAmount),X=ae(),_=re("span"),Z=oe(n[3]),Y=ae(),I=re("div"),$=re("button"),K=oe(O),se(o,"class","BalanceModalClose"),se(s,"class","BalanceModalTitle"),se(s,"part","BalanceModalTitle"),se(i,"class","BalanceModalHeader"),se(i,"part","BalanceModalHeader"),se(h,"class","BalanceModalText"),se(h,"part","BalanceModalText"),se(f,"class","BalanceModalAmount"),se(f,"part","BalanceModalAmount"),se(g,"class","BalanceModalCurrency"),se(g,"part","BalanceModalCurrency"),se(p,"class","BalanceModalValue"),se(p,"part","BalanceModalValue"),se(u,"class","BalanceModalRow"),se(u,"part","BalanceModalRow"),se(v,"class","BalanceModalText"),se(v,"part","BalanceModalText"),se(C,"class","BalanceModalAmount"),se(C,"part","BalanceModalAmount"),se(M,"class","BalanceModalCurrency"),se(M,"part","BalanceModalCurrency"),se(E,"class","BalanceModalValue"),se(E,"part","BalanceModalValue"),se(b,"class","BalanceModalRow"),se(b,"part","BalanceModalRow"),se(x,"class","BalanceModalText"),se(x,"part","BalanceModalText"),se(S,"class","BalanceModalAmount"),se(S,"part","BalanceModalAmount"),se(_,"class","BalanceModalCurrency"),se(_,"part","BalanceModalCurrency"),se(A,"class","BalanceModalValue"),se(A,"part","BalanceModalValue"),se(B,"class","BalanceModalRow"),se(B,"part","BalanceModalRow"),se(c,"class","BalanceModalBody"),se(c,"part","BalanceModalBody"),se($,"class","BalanceModalAction"),se($,"part","BalanceModalAction"),se(I,"class","BalanceModalFooter"),se(I,"part","BalanceModalFooter"),se(a,"class","BalanceModal"),se(a,"part","BalanceModal"),se(r,"class","BalanceModalWrapper"),se(r,"part","BalanceModalWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(r,k),ee(r,a),ee(a,i),ee(i,s),ee(s,l),ee(a,N),ee(a,c),ee(c,u),ee(u,h),ee(h,d),ee(u,D),ee(u,p),ee(p,f),ee(f,m),ee(p,U),ee(p,g),ee(g,y),ee(c,G),ee(c,b),ee(b,v),ee(v,w),ee(b,j),ee(b,E),ee(E,C),ee(E,z),ee(E,M),ee(M,H),ee(c,W),ee(c,B),ee(B,x),ee(x,T),ee(B,V),ee(B,A),ee(A,S),ee(A,X),ee(A,_),ee(_,Z),ee(a,Y),ee(a,I),ee(I,$),ee($,K),J||(Q=[ie(o,"click",n[18]),ie($,"click",n[19])],J=!0)},p(e,t){16&t[0]&&L!==(L=e[4]("balanceModal.balanceTitle")+"")&&le(l,L),16&t[0]&&F!==(F=e[4]("balanceModal.totalBalance")+"")&&le(d,F),4&t[0]&&le(m,e[2]),8&t[0]&&le(y,e[3]),16&t[0]&&P!==(P=e[4]("balanceModal.cashBalance")+"")&&le(w,P),8&t[0]&&le(H,e[3]),16&t[0]&&R!==(R=e[4]("balanceModal.bonusBalance")+"")&&le(T,R),8&t[0]&&le(Z,e[3]),16&t[0]&&O!==(O=e[4]("balanceModal.depositButton")+"")&&le(K,O)},d(e){e&&ne(r),J=!1,q(Q)}}}function Eo(n){let r,o,a;return{c(){se(r=re("div"),"class","ShowBalanceModalOverlay"),se(r,"part","ShowBalanceModalOverlay")},m(e,t){te(e,r,t),o||(a=ie(r,"click",n[20]),o=!0)},p:E,d(e){e&&ne(r),o=!1,a()}}}function Co(n){let r,o,a,i,s,l,c,u,h,d,p,f,m=n[1]&&wo(n),g=n[1]&&Eo(n);return{c(){r=re("div"),o=re("div"),a=re("p"),i=oe(n[2]),s=ae(),l=oe(n[3]),c=ae(),(u=re("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=ae(),m&&m.c(),d=ae(),g&&g.c(),this.c=E,se(a,"class","BalanceValue"),se(a,"part","BalanceValue"),se(o,"class","ShowBalance"),se(o,"part","ShowBalance")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(a,s),ee(a,l),ee(a,c),ee(a,u),ee(o,h),m&&m.m(o,null),ee(r,d),g&&g.m(r,null),n[21](r),p||(f=ie(a,"click",n[17]),p=!0)},p(e,t){4&t[0]&&le(i,e[2]),8&t[0]&&le(l,e[3]),e[1]?m?m.p(e,t):((m=wo(e)).c(),m.m(o,null)):m&&(m.d(1),m=null),e[1]?g?g.p(e,t):((g=Eo(e)).c(),g.m(r,null)):g&&(g.d(1),g=null)},i:E,o:E,d(e){e&&ne(r),m&&m.d(),g&&g.d(),n[21](null),p=!1,f()}}}function Mo(t,e,o){let n;Z(t,Rr,e=>o(4,n=e));let r,a,{userid:i=""}=e,{session:s=""}=e,{endpoint:l=""}=e,{lang:c="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:p=""}=e,f=!1,m="",g="",y=!1,b=new Map;Object.keys(bo).forEach(e=>{yo(e,bo[e])});const v=e=>{switch(e){case"balance":o(1,f=!0);break;case"closebalance":o(1,f=!1)}},w=(e,t)=>{e=new vo.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});a&&a.close(),(a=e).addEventListener("message",e=>{try{var t=JSON.parse(e.data)["balanceChange"],n=b.get("Casino"),r=b.get("UBS");t&&t[n.id]&&b.set("Casino",Object.assign(Object.assign({},n),{balanceAmount:t[n.id].afterAmount})),t&&t[r.id]&&b.set("UBS",Object.assign(Object.assign({},r),{balanceAmount:t[r.id].afterAmount})),n=b.get("Casino"),r=b.get("UBS"),o(2,m=M(Number((parseFloat(n.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))))}catch(e){console.log("Balance stream failed: ",e),w(`${l}/player/${i}/balance/updates`,s)}})},E=()=>{v("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},C=()=>{return p.includes(c)?p:c},M=e=>new Intl.NumberFormat(C()).format(e),H=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&a.close()};return K(()=>(window.addEventListener("message",H,!1),()=>{window.removeEventListener("message",H),a&&a.close()})),t.$$set=e=>{"userid"in e&&o(9,i=e.userid),"session"in e&&o(10,s=e.session),"endpoint"in e&&o(11,l=e.endpoint),"lang"in e&&o(12,c=e.lang),"clientstyling"in e&&o(13,u=e.clientstyling),"clientstylingurl"in e&&o(14,h=e.clientstylingurl),"translationurl"in e&&o(15,d=e.translationurl),"customlocaleidentifier"in e&&o(16,p=e.customlocaleidentifier)},t.$$.update=()=>{if(4096&t.$$.dirty[0]&&c&&C(),7680&t.$$.dirty[0]&&l&&i&&s&&c&&(e=c,X.set(e),(async e=>{try{y=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":s}}),n=await t.json();if(!t.ok)throw y=!1,new Error("Failed to fetch balance data !");{y=!1,n.items.map(e=>b.set(e.displayName,e));const e=b.get("Casino"),r=b.get("UBS");o(3,g=e.currency),o(2,m=M(Number((parseFloat(e.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))))}}catch(e){y=!1,console.log("Balance error: ",e)}finally{y=!1}})(`${l}/player/${i}/account`)),3584&t.$$.dirty[0]&&l&&i&&s&&w(`${l}/player/${i}/balance/updates`,s),8193&t.$$.dirty[0]&&u&&r&&((e=document.createElement("style")).innerHTML=u,r.appendChild(e)),16385&t.$$.dirty[0]&&h&&r){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;32768&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{yo(e,t[e])})}).catch(e=>{console.log(e)})},[r,f,m,g,n,b,v,E,M,i,s,l,c,u,h,d,p,()=>v("balance"),()=>v("closebalance"),()=>E(),()=>v("closebalance"),function(e){V[e?"unshift":"push"](()=>{r=e,o(0,r)})}]}customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",class extends Me{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-50%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-color-primary, #D0046C) 1A;border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-color-primary, #D0046C);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-color-primary-600, #99034F)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}',this.shadowRoot.appendChild(t),Ce(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Mo,Co,B,{userid:9,session:10,endpoint:11,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,customlocaleidentifier:16},null,[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["userid","session","endpoint","lang","clientstyling","clientstylingurl","translationurl","customlocaleidentifier"]}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),d()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),d()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),d()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[16]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}});var Ho="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Bo(e,t,n){e=e.slice();return e[78]=t[n],e}function xo(e,t,n){e=e.slice();return e[81]=t[n],e}function To(e,t,n){e=e.slice();return e[78]=t[n],e}function Ao(e,t,n){e=e.slice();return e[81]=t[n],e}function So(n){let r,o,a,i,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,C,e=n[23]("headerItem.login")+"",M=n[23]("headerItem.register")+"";function H(e){return e[17]?Lo:$o}let B=H(n),x=B(n),T=!n[12]&&Fo(n),A=n[20],S=[];for(let e=0;e<A.length;e+=1)S[e]=Po(xo(n,A,e));let _=n[14],I=[];for(let e=0;e<_.length;e+=1)I[e]=Ro(Bo(n,_,e));return{c(){r=re("header"),o=re("div"),a=re("div"),x.c(),i=ae(),s=re("nav"),T&&T.c(),l=ae(),c=re("div"),u=re("div"),h=re("div"),d=oe(e),p=ae(),f=re("div"),m=oe(M),g=ae(),y=re("select");for(let e=0;e<S.length;e+=1)S[e].c();b=ae(),v=re("nav"),w=re("ul");for(let e=0;e<I.length;e+=1)I[e].c();se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(s,"class","HeaderMainNav"),se(s,"part","HeaderMainNav"),se(h,"class","Item ItemLogin"),se(h,"part","Item ItemLogin"),se(h,"tabindex","0"),se(f,"class","Item ItemRegister"),se(f,"part","Item ItemRegister"),se(f,"tabindex","0"),se(y,"class","Item ItemLanguage"),se(y,"part","Item ItemLanguage"),void 0===n[15]&&R(()=>n[55].call(y)),se(u,"class","HeaderItemsMenu"),se(u,"part","HeaderItemsMenu"),se(c,"class","HeaderTopActions"),se(c,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(w,"class","HeaderItemsMenuSecondary"),se(w,"part","HeaderItemsMenuSecondary"),se(v,"class","HeaderSecondaryNav"),se(v,"part","HeaderSecondaryNav"),se(r,"class","HeaderWrapper"),se(r,"part","HeaderWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),x.m(a,null),ee(o,i),ee(o,s),T&&T.m(s,null),ee(o,l),ee(o,c),ee(c,u),ee(u,h),ee(h,d),ee(u,p),ee(u,f),ee(f,m),ee(u,g),ee(u,y);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(y,null);k(y,n[15],!0),ee(r,b),ee(r,v),ee(v,w);for(let e=0;e<I.length;e+=1)I[e]&&I[e].m(w,null);n[58](r),E||(C=[ie(a,"click",n[52]),ie(h,"click",n[53]),ie(f,"click",n[54]),ie(y,"change",n[55]),ie(y,"change",n[56])],E=!0)},p(t,n){if(B===(B=H(t))&&x?x.p(t,n):(x.d(1),(x=B(t))&&(x.c(),x.m(a,null))),t[12]?T&&(T.d(1),T=null):T?T.p(t,n):((T=Fo(t)).c(),T.m(s,null)),8388608&n[0]&&e!==(e=t[23]("headerItem.login")+"")&&le(d,e),8388608&n[0]&&M!==(M=t[23]("headerItem.register")+"")&&le(m,M),1048576&n[0]){let e;for(A=t[20],e=0;e<A.length;e+=1){const a=xo(t,A,e);S[e]?S[e].p(a,n):(S[e]=Po(a),S[e].c(),S[e].m(y,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=A.length}if(1081344&n[0]&&k(y,t[15]),134234112&n[0]){let e;for(_=t[14],e=0;e<_.length;e+=1){const a=Bo(t,_,e);I[e]?I[e].p(a,n):(I[e]=Ro(a),I[e].c(),I[e].m(w,null))}for(;e<I.length;e+=1)I[e].d(1);I.length=_.length}},d(e){e&&ne(r),x.d(),T&&T.d(),P(S,e),P(I,e),n[58](null),E=!1,q(C)}}}function _o(n){let r,o,a,i,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,C,M,H,B,x=n[23]("headerItem.login")+"",T=n[23]("headerItem.register")+"";function A(e){return e[17]?ko:Oo}let S=A(n),_=S(n);return{c(){r=re("header"),o=re("div"),a=re("div"),i=t("svg"),s=t("defs"),l=t("style"),c=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),u=t("g"),h=t("rect"),d=t("rect"),p=t("rect"),f=ae(),m=re("div"),_.c(),g=ae(),y=re("div"),b=re("div"),v=re("div"),w=oe(x),E=ae(),C=re("div"),M=oe(T),se(h,"class","a"),se(h,"width","18"),se(h,"height","2"),se(h,"transform","translate(14 13)"),se(d,"class","a"),se(d,"width","22"),se(d,"height","2"),se(d,"transform","translate(14 20)"),se(p,"class","a"),se(p,"width","22"),se(p,"height","2"),se(p,"transform","translate(14 27)"),se(u,"transform","translate(-14 -13)"),se(i,"xmlns","http://www.w3.org/2000/svg"),se(i,"width","22"),se(i,"height","16"),se(i,"viewBox","0 0 22 16"),se(a,"class","HeaderMobileMainNav"),se(a,"part","HeaderMobileMainNav"),se(m,"class","HeaderBranding"),se(m,"part","HeaderBranding"),se(v,"class","Item ItemLogin"),se(v,"part","Item ItemLogin"),se(C,"class","Item ItemRegister"),se(C,"part","Item ItemRegister"),se(b,"class","HeaderItemsMenu"),se(b,"part","HeaderItemsMenu"),se(y,"class","HeaderTopActions"),se(y,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(r,"class","HeaderWrapper HeaderMobileWrapper"),se(r,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(i,s),ee(s,l),ee(l,c),ee(i,u),ee(u,h),ee(u,d),ee(u,p),ee(o,f),ee(o,m),_.m(m,null),ee(o,g),ee(o,y),ee(y,b),ee(b,v),ee(v,w),ee(b,E),ee(b,C),ee(C,M),n[51](r),H||(B=[ie(i,"click",n[47]),ie(m,"click",n[48]),ie(v,"click",n[49]),ie(C,"click",n[50])],H=!0)},p(e,t){S===(S=A(e))&&_?_.p(e,t):(_.d(1),(_=S(e))&&(_.c(),_.m(m,null))),8388608&t[0]&&x!==(x=e[23]("headerItem.login")+"")&&le(w,x),8388608&t[0]&&T!==(T=e[23]("headerItem.register")+"")&&le(M,T)},d(e){e&&ne(r),_.d(),n[51](null),H=!1,q(B)}}}function Io(e){let n;function r(e){return e[18]?Do:No}let o=r(e),a=o(e);return{c(){a.c(),n=O()},m(e,t){a.m(e,t),te(e,n,t)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n.parentNode,n)))},d(e){a.d(e),e&&ne(n)}}}function $o(e){let n,t;return{c(){g((n=re("img")).src,t=Ho)||se(n,"src",t),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p:E,d(e){e&&ne(n)}}}function Lo(e){let n,r;return{c(){g((n=re("img")).src,r=e[22])||se(n,"src",r),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p(e,t){4194304&t[0]&&!g(n.src,r=e[22])&&se(n,"src",r)},d(e){e&&ne(n)}}}function Fo(n){let r,o,a;return{c(){$(r=re("casino-slider"),"class","HeaderItemsMenu"),$(r,"part","HeaderItemsMenu"),$(r,"identity",Ko),$(r,"isprimarymenu","true"),$(r,"actionevent",n[7]),$(r,"activeindex",n[13]),$(r,"location","headerMain"),$(r,"endpoint",n[2]),$(r,"lang",n[3]),$(r,"clientstyling",n[9]),$(r,"clientstylingurl",n[10])},m(e,t){te(e,r,t),o||(a=A(n[26].call(null,r)),o=!0)},p(e,t){128&t[0]&&$(r,"actionevent",e[7]),8192&t[0]&&$(r,"activeindex",e[13]),4&t[0]&&$(r,"endpoint",e[2]),8&t[0]&&$(r,"lang",e[3]),512&t[0]&&$(r,"clientstyling",e[9]),1024&t[0]&&$(r,"clientstylingurl",e[10])},d(e){e&&ne(r),o=!1,a()}}}function Po(e){let n,r,o,a=e[81]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[81],n.value=n.__value},m(e,t){te(e,n,t),ee(n,r)},p(e,t){1048576&t[0]&&a!==(a=e[81]+"")&&le(r,a),1048576&t[0]&&o!==(o=e[81])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function Ro(n){let r,o,a,i,s,l,c=n[78].label+"";function u(){return n[57](n[78])}return{c(){r=re("li"),o=re("button"),a=oe(c),i=ae(),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,i),s||(l=ie(o,"click",u),s=!0)},p(e,t){n=e,16384&t[0]&&c!==(c=n[78].label+"")&&le(a,c)},d(e){e&&ne(r),s=!1,l()}}}function Oo(e){let n,t;return{c(){g((n=re("img")).src,t=Ho)||se(n,"src",t),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p:E,d(e){e&&ne(n)}}}function ko(e){let n,r;return{c(){g((n=re("img")).src,r=e[22])||se(n,"src",r),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p(e,t){4194304&t[0]&&!g(n.src,r=e[22])&&se(n,"src",r)},d(e){e&&ne(n)}}}function No(n){let r,o,a,i,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,C,M,e=n[23]("headerItem.deposit")+"";function H(e){return e[17]?Go:Uo}let B=H(n),x=B(n),T=!n[12]&&jo(n),A=n[20],S=[];for(let e=0;e<A.length;e+=1)S[e]=zo(Ao(n,A,e));let _=n[14],I=[];for(let e=0;e<_.length;e+=1)I[e]=Wo(To(n,_,e));return{c(){r=re("header"),o=re("div"),a=re("div"),x.c(),i=ae(),s=re("nav"),T&&T.c(),l=ae(),c=re("div"),u=re("div"),h=re("player-account-balance-modal"),d=ae(),p=re("div"),f=oe(e),m=ae(),(g=re("div")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n </style></defs><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>',y=ae(),b=re("select");for(let e=0;e<S.length;e+=1)S[e].c();v=ae(),w=re("nav"),E=re("ul");for(let e=0;e<I.length;e+=1)I[e].c();se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(s,"class","HeaderMainNav"),se(s,"part","HeaderMainNav"),$(h,"session",n[0]),$(h,"userid",n[1]),$(h,"endpoint",n[2]),$(h,"lang",n[3]),$(h,"clientstyling",n[9]),$(h,"clientstylingurl",n[10]),$(h,"customlocaleidentifier",n[6]),se(p,"class","Item ItemDeposit"),se(p,"part","Item ItemDeposit"),se(g,"class","Item ItemAccount"),se(g,"part","Item ItemAccount"),se(b,"class","Item ItemLanguage"),se(b,"part","Item ItemLanguage"),void 0===n[15]&&R(()=>n[43].call(b)),se(u,"class","HeaderItemsMenu PrimaryMenu"),se(u,"part","HeaderItemsMenu PrimaryMenu"),se(c,"class","HeaderTopActions"),se(c,"part","HeaderItemsMenu"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(E,"class","HeaderItemsMenuSecondary"),se(E,"part","HeaderItemsMenuSecondary"),se(w,"class","HeaderSecondaryNav"),se(w,"part","HeaderSecondaryNav"),se(r,"class","HeaderWrapper"),se(r,"part","HeaderWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),x.m(a,null),ee(o,i),ee(o,s),T&&T.m(s,null),ee(o,l),ee(o,c),ee(c,u),ee(u,h),ee(u,d),ee(u,p),ee(p,f),ee(u,m),ee(u,g),ee(u,y),ee(u,b);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(b,null);k(b,n[15],!0),ee(r,v),ee(r,w),ee(w,E);for(let e=0;e<I.length;e+=1)I[e]&&I[e].m(E,null);n[46](r),C||(M=[ie(a,"click",n[40]),ie(p,"click",n[41]),ie(g,"click",n[42]),ie(b,"change",n[43]),ie(b,"change",n[44])],C=!0)},p(t,n){if(B===(B=H(t))&&x?x.p(t,n):(x.d(1),(x=B(t))&&(x.c(),x.m(a,null))),t[12]?T&&(T.d(1),T=null):T?T.p(t,n):((T=jo(t)).c(),T.m(s,null)),1&n[0]&&$(h,"session",t[0]),2&n[0]&&$(h,"userid",t[1]),4&n[0]&&$(h,"endpoint",t[2]),8&n[0]&&$(h,"lang",t[3]),512&n[0]&&$(h,"clientstyling",t[9]),1024&n[0]&&$(h,"clientstylingurl",t[10]),64&n[0]&&$(h,"customlocaleidentifier",t[6]),8388608&n[0]&&e!==(e=t[23]("headerItem.deposit")+"")&&le(f,e),1048576&n[0]){let e;for(A=t[20],e=0;e<A.length;e+=1){const a=Ao(t,A,e);S[e]?S[e].p(a,n):(S[e]=zo(a),S[e].c(),S[e].m(b,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=A.length}if(1081344&n[0]&&k(b,t[15]),134234112&n[0]){let e;for(_=t[14],e=0;e<_.length;e+=1){const a=To(t,_,e);I[e]?I[e].p(a,n):(I[e]=Wo(a),I[e].c(),I[e].m(E,null))}for(;e<I.length;e+=1)I[e].d(1);I.length=_.length}},d(e){e&&ne(r),x.d(),T&&T.d(),P(S,e),P(I,e),n[46](null),C=!1,q(M)}}}function Do(n){let r,o,a,i,s,l,c,u,h,d,p,f,m,g,y,b,v=n[23]("headerItem.deposit")+"",w=!n[21]&&Vo(n);function E(e){return e[17]?Zo:Xo}let C=E(n),M=C(n);return{c(){r=re("header"),o=re("div"),a=re("div"),w&&w.c(),i=ae(),s=re("div"),M.c(),l=ae(),c=re("div"),u=re("div"),h=re("player-account-balance-modal"),d=ae(),p=re("div"),f=oe(v),m=ae(),(g=re("div")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n </style></defs><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>',se(a,"class","HeaderMobileMainNav"),se(a,"part","HeaderMobileMainNav"),se(s,"class","HeaderBranding"),se(s,"part","HeaderBranding"),$(h,"session",n[0]),$(h,"userid",n[1]),$(h,"endpoint",n[2]),$(h,"lang",n[3]),$(h,"clientstyling",n[9]),$(h,"clientstylingurl",n[10]),$(h,"customlocaleidentifier",n[6]),se(p,"class","Item ItemDeposit"),se(p,"part","Item ItemDeposit"),se(g,"class","Item ItemAccount"),se(g,"part","Item ItemAccount"),se(u,"class","HeaderItemsMenu PrimaryMenu"),se(u,"part","HeaderItemsMenu PrimaryMenu"),se(c,"class","HeaderTopActions"),se(c,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(r,"class","HeaderWrapper HeaderMobileWrapper"),se(r,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),w&&w.m(a,null),ee(o,i),ee(o,s),M.m(s,null),ee(o,l),ee(o,c),ee(c,u),ee(u,h),ee(u,d),ee(u,p),ee(p,f),ee(u,m),ee(u,g),n[39](r),y||(b=[ie(s,"click",n[36]),ie(p,"click",n[37]),ie(g,"click",n[38])],y=!0)},p(e,t){e[21]?w&&(w.d(1),w=null):w?w.p(e,t):((w=Vo(e)).c(),w.m(a,null)),C===(C=E(e))&&M?M.p(e,t):(M.d(1),(M=C(e))&&(M.c(),M.m(s,null))),1&t[0]&&$(h,"session",e[0]),2&t[0]&&$(h,"userid",e[1]),4&t[0]&&$(h,"endpoint",e[2]),8&t[0]&&$(h,"lang",e[3]),512&t[0]&&$(h,"clientstyling",e[9]),1024&t[0]&&$(h,"clientstylingurl",e[10]),64&t[0]&&$(h,"customlocaleidentifier",e[6]),8388608&t[0]&&v!==(v=e[23]("headerItem.deposit")+"")&&le(f,v)},d(e){e&&ne(r),w&&w.d(),M.d(),n[39](null),y=!1,q(b)}}}function Uo(e){let n,t;return{c(){g((n=re("img")).src,t=Ho)||se(n,"src",t),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p:E,d(e){e&&ne(n)}}}function Go(e){let n,r;return{c(){g((n=re("img")).src,r=e[22])||se(n,"src",r),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p(e,t){4194304&t[0]&&!g(n.src,r=e[22])&&se(n,"src",r)},d(e){e&&ne(n)}}}function jo(n){let r,o,a;return{c(){$(r=re("casino-slider"),"class","HeaderItemsMenu"),$(r,"part","HeaderItemsMenu"),$(r,"identity",Ko),$(r,"isprimarymenu","true"),$(r,"actionevent",n[7]),$(r,"activeindex",n[13]),$(r,"endpoint",n[2]),$(r,"lang",n[3]),$(r,"location","headerMain"),$(r,"showsubgroups",n[8]),$(r,"clientstyling",n[9]),$(r,"clientstylingurl",n[10])},m(e,t){te(e,r,t),o||(a=A(n[26].call(null,r)),o=!0)},p(e,t){128&t[0]&&$(r,"actionevent",e[7]),8192&t[0]&&$(r,"activeindex",e[13]),4&t[0]&&$(r,"endpoint",e[2]),8&t[0]&&$(r,"lang",e[3]),256&t[0]&&$(r,"showsubgroups",e[8]),512&t[0]&&$(r,"clientstyling",e[9]),1024&t[0]&&$(r,"clientstylingurl",e[10])},d(e){e&&ne(r),o=!1,a()}}}function zo(e){let n,r,o,a=e[81]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[81],n.value=n.__value,n.selected=!0},m(e,t){te(e,n,t),ee(n,r)},p(e,t){1048576&t[0]&&a!==(a=e[81]+"")&&le(r,a),1048576&t[0]&&o!==(o=e[81])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function Wo(n){let r,o,a,i,s,l,c=n[78].label+"";function u(){return n[45](n[78])}return{c(){r=re("li"),o=re("button"),a=oe(c),i=ae(),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,i),s||(l=ie(o,"click",u),s=!0)},p(e,t){n=e,16384&t[0]&&c!==(c=n[78].label+"")&&le(a,c)},d(e){e&&ne(r),s=!1,l()}}}function Vo(n){let r,o,a,i,s,l,c,u,h,d;return{c(){r=t("svg"),o=t("defs"),a=t("style"),i=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),s=t("g"),l=t("rect"),c=t("rect"),u=t("rect"),se(l,"class","a"),se(l,"width","18"),se(l,"height","2"),se(l,"transform","translate(14 13)"),se(c,"class","a"),se(c,"width","22"),se(c,"height","2"),se(c,"transform","translate(14 20)"),se(u,"class","a"),se(u,"width","22"),se(u,"height","2"),se(u,"transform","translate(14 27)"),se(s,"transform","translate(-14 -13)"),se(r,"xmlns","http://www.w3.org/2000/svg"),se(r,"width","22"),se(r,"height","16"),se(r,"viewBox","0 0 22 16")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(r,s),ee(s,l),ee(s,c),ee(s,u),h||(d=ie(r,"click",n[35]),h=!0)},p:E,d(e){e&&ne(r),h=!1,d()}}}function Xo(e){let n,t;return{c(){g((n=re("img")).src,t=Ho)||se(n,"src",t),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p:E,d(e){e&&ne(n)}}}function Zo(e){let n,r;return{c(){g((n=re("img")).src,r=e[22])||se(n,"src",r),se(n,"alt","Logo")},m(e,t){te(e,n,t)},p(e,t){4194304&t[0]&&!g(n.src,r=e[22])&&se(n,"src",r)},d(e){e&&ne(n)}}}function Yo(e){let n,r;function o(e){return e[19]?Io:e[18]?_o:So}let a=o(e),i=a(e);return{c(){i.c(),n=ae(),r=re("casino-hamburger-menu"),this.c=E,$(r,"menuitemsurl",e[16]),$(r,"activecategory",e[5]),$(r,"lang",e[3]),$(r,"languageslist",e[4]),$(r,"clientstyling",e[9]),$(r,"clientstylingurl",e[10])},m(e,t){i.m(e,t),te(e,n,t),te(e,r,t)},p(e,t){a===(a=o(e))&&i?i.p(e,t):(i.d(1),(i=a(e))&&(i.c(),i.m(n.parentNode,n))),65536&t[0]&&$(r,"menuitemsurl",e[16]),32&t[0]&&$(r,"activecategory",e[5]),8&t[0]&&$(r,"lang",e[3]),16&t[0]&&$(r,"languageslist",e[4]),512&t[0]&&$(r,"clientstyling",e[9]),1024&t[0]&&$(r,"clientstylingurl",e[10])},i:E,o:E,d(e){i.d(e),e&&ne(n),e&&ne(r)}}}let Ko="HeaderMenu";function Jo(n,e,o){let t;Z(n,Rr,e=>o(23,t=e));let a,i,{session:s=""}=e,{userid:r=""}=e,{endpoint:l=""}=e,{cmsendpoint:c=""}=e,{cmsenv:u="stage"}=e,{lang:h="en"}=e,{languageslist:d="en, ro"}=e,{activecategory:p=""}=e,{translationurl:f=""}=e,{customlocaleidentifier:m=""}=e,{operatorid:g=""}=e,{pagetag:y=""}=e,{positiontag:b=""}=e,{actionevent:v=""}=e,{userroles:w=""}=e,{showsubgroups:R="false"}=e,{clientstyling:E=""}=e,{clientstylingurl:C=""}=e;var O,k;({withLocale:O,translations:k}={withLocale:"en",translations:{}}),X.subscribe(e=>{null==e&&(mr.set(k),X.set(O))}),Object.keys(Dr).forEach(e=>{Nr(e,Dr[e])});let M,H,N,B=[],D=[],x="",T=!0,A=!1,U=!1,S=window.navigator.userAgent,_=!1,I=[],$=!1,G="";const L=e=>{switch(e){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"HeaderController"});break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"HeaderController"});break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:Or(S)},window.location.href);break;case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"HeaderController"});break;case"language":window.postMessage({type:"LanguageChanged",selectedLanguage:x},window.location.href)}},F=()=>{o(21,$=!0),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},j=e=>{if(e.data)switch(e.data.type){case"UserSessionID":e.data.userid,e.data.session,o(19,_=!0);break;case"CloseHamburgerMenu":window.postMessage({type:"EnableScroll"},window.location.href),e.data.showhamburger&&o(21,$=!1);break;case"LogoutSuccessfull":o(19,_=!1);break;case"LanguageChanged":z(),W(H)}},z=()=>{H=new URL(`${c}/${x.toLowerCase()}/menu`),o(16,M=new URL(`${c}/${x.toLowerCase()}/hamburger-menu`)),N=new URL(`${c}/${x.toLowerCase()}/op-options/style`);var e=kr(S);H.searchParams.append("env",u),H.searchParams.append("language",x.toLowerCase()),H.searchParams.append("userRoles",w),e&&("PC"===e?(M.searchParams.append("device","dk"),H.searchParams.append("device","dk")):(M.searchParams.append("device","mtWeb"),H.searchParams.append("device","mtWeb"))),M.searchParams.append("env",u),M.searchParams.append("language",x.toLowerCase()),M.searchParams.append("userRoles",w)},W=e=>(o(12,T=!0),new Promise((t,n)=>{fetch(e).then(e=>e.json()).then(e=>{B=e.desktop.primary,o(14,D=e.desktop.secondary),o(12,T=!1),t(e)},e=>{o(12,T=!1),console.error(e),n(e)})})),P=e=>{window.postMessage({type:v,itemId:e.id,item:e,externalLink:e.externalLink||!1,target:(null==(e=e.attrs)?void 0:e.target)||null},window.location.href)};return K(async()=>(window.addEventListener("message",j,!1),Or(S)&&o(18,U=!0),()=>{window.removeEventListener("message",j)})),n.$$set=e=>{"session"in e&&o(0,s=e.session),"userid"in e&&o(1,r=e.userid),"endpoint"in e&&o(2,l=e.endpoint),"cmsendpoint"in e&&o(28,c=e.cmsendpoint),"cmsenv"in e&&o(29,u=e.cmsenv),"lang"in e&&o(3,h=e.lang),"languageslist"in e&&o(4,d=e.languageslist),"activecategory"in e&&o(5,p=e.activecategory),"translationurl"in e&&o(30,f=e.translationurl),"customlocaleidentifier"in e&&o(6,m=e.customlocaleidentifier),"operatorid"in e&&o(31,g=e.operatorid),"pagetag"in e&&o(32,y=e.pagetag),"positiontag"in e&&o(33,b=e.positiontag),"actionevent"in e&&o(7,v=e.actionevent),"userroles"in e&&o(34,w=e.userroles),"showsubgroups"in e&&o(8,R=e.showsubgroups),"clientstyling"in e&&o(9,E=e.clientstyling),"clientstylingurl"in e&&o(10,C=e.clientstylingurl)},n.$$.update=()=>{if(4128&n.$$.dirty[0]&&p&&!T&&o(13,a=null==(t=B.find(e=>-1<p.indexOf("/sport")?-1<e.path.indexOf(p):-1<e.path.indexOf(p.split("/")[1])))?void 0:t.id),1&n.$$.dirty[0]&&s&&o(19,_=!0),8&n.$$.dirty[0]&&h&&(t=h,X.set(t)),268435480&n.$$.dirty[0]|8&n.$$.dirty[1]&&c&&h&&d&&w&&(o(20,I=d.replace(/ /g,"").split(",")),o(20,I=I.map(e=>e.toUpperCase())),o(15,x=h.toUpperCase()),z(),r=N,o(17,A=!1),new Promise((t,n)=>{fetch(r).then(e=>e.json()).then(e=>{0<e.logoUrl.length&&("null"!=e.logoUrl||"false"!=e.logoUrl)?(o(22,G=e.logoUrl),o(17,A=!0)):o(17,A=!1),t(e)},e=>{o(17,A=!1),console.error(e),n(e)})}),setTimeout(()=>{W(H)})),1073741824&n.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Nr(e,t[e])})}).catch(e=>{console.log(e)}),2560&n.$$.dirty[0]&&E&&i&&((e=document.createElement("style")).innerHTML=E,i.appendChild(e)),3072&n.$$.dirty[0]&&C&&i){let e=new URL(C),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e,r,t},[s,r,l,h,d,p,m,v,R,E,C,i,T,a,D,x,M,A,U,_,I,$,G,t,L,F,()=>{window.postMessage({type:"SliderData",identity:Ko,data:B},window.location.href)},P,c,u,f,g,y,b,w,()=>F(),()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(e){V[e?"unshift":"push"](()=>{i=e,o(11,i)})},()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(){x=Y(this),o(15,x),o(20,I)},()=>L("language"),e=>P(e),function(e){V[e?"unshift":"push"](()=>{i=e,o(11,i)})},()=>F(),()=>L("lobby"),()=>L("login"),()=>L("register"),function(e){V[e?"unshift":"push"](()=>{i=e,o(11,i)})},()=>L("lobby"),()=>L("login"),()=>L("register"),function(){x=Y(this),o(15,x),o(20,I)},()=>L("language"),e=>P(e),function(e){V[e?"unshift":"push"](()=>{i=e,o(11,i)})}]}class Qo extends Me{constructor(e){super();var t=document.createElement("style");t.textContent=":host{font-family:system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"}.HeaderWrapper{background:var(--emfe-w-color-header-bg, #050518)}.HeaderContainer{max-width:1300px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderMobileMainNav{display:flex;align-items:center}.HeaderBranding{width:140px;margin-right:15px;cursor:pointer}.HeaderBranding img{width:100%}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emfe-w-color-header-bg, #050518);border-top:1px solid var(--emfe-w-color-gray-300, #58586B)}.HeaderItemsMenu{display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;align-items:center}.HeaderItemsMenu .Item{padding:0 12px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;font-weight:600;border:solid 1px var(--emfe-w-color-white, #FFFFFF);height:44px;text-align:center;line-height:44px;margin-right:10px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:var(--emfe-w-color-primary, #D0046C);font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:var(--emfe-w-color-primary, #D0046C)}.ItemLanguage{height:44px;width:90px;text-align:center;line-height:44px;background:transparent;color:var(--emfe-w-color-white, #FFFFFF);border:none;cursor:pointer;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-header-bg, #050518);background-position:calc(100% - 0.75rem) center}.ItemLanguage option{color:var(--emfe-w-color-white, #FFFFFF)}.ItemAccount{cursor:pointer}.ItemAccount svg{width:20px;height:20px}.HeaderItemsMenuSecondary{display:flex;flex-direction:row;align-content:flex-start;align-items:center;height:60px;list-style:none;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF);font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{padding:0 15px;font-weight:600;transition-duration:0.15s;cursor:pointer}.HeaderItemsMenuSecondary .ItemSecondary button{color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none;border:none;background:none;font-size:14px;font-weight:600;text-transform:uppercase;cursor:pointer}.HeaderItemsMenuSecondary .ItemSecondary button:hover{color:var(--emfe-w-color-primary, #D0046C)}.HeaderItemsMenuSecondary .ItemSecondary button:focus{color:var(--emfe-w-color-primary, #D0046C)}.HeaderItemsMenuSecondary .ItemSecondary button:visited{color:var(--emfe-w-color-white, #FFFFFF)}.HeaderItemsMenuSecondary .ItemSecondary button:focus-visible{color:var(--emfe-w-color-white, #FFFFFF);outline:none}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}.HeaderMobileWrapper .HeaderBranding{width:110px;display:flex;align-items:center}.HeaderMobileWrapper .HeaderItemsMenu .Item{padding:0 10px;display:block;width:unset}.HeaderMobileWrapper .HeaderItemsMenu .ItemAccount{padding:0}.HeaderMobileWrapper .ItemRegister,.HeaderMobileWrapper .ItemDeposit,.HeaderMobileWrapper .ItemLogin{height:30px;line-height:30px;font-size:12px}.HeaderMobileWrapper .ItemLogin{margin-right:10px}",this.shadowRoot.appendChild(t),Ce(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Jo,Yo,B,{session:0,userid:1,endpoint:2,cmsendpoint:28,cmsenv:29,lang:3,languageslist:4,activecategory:5,translationurl:30,customlocaleidentifier:6,operatorid:31,pagetag:32,positiontag:33,actionevent:7,userroles:34,showsubgroups:8,clientstyling:9,clientstylingurl:10},null,[-1,-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","endpoint","cmsendpoint","cmsenv","lang","languageslist","activecategory","translationurl","customlocaleidentifier","operatorid","pagetag","positiontag","actionevent","userroles","showsubgroups","clientstyling","clientstylingurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get cmsendpoint(){return this.$$.ctx[28]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),d()}get cmsenv(){return this.$$.ctx[29]}set cmsenv(e){this.$$set({cmsenv:e}),d()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),d()}get languageslist(){return this.$$.ctx[4]}set languageslist(e){this.$$set({languageslist:e}),d()}get activecategory(){return this.$$.ctx[5]}set activecategory(e){this.$$set({activecategory:e}),d()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[6]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}get operatorid(){return this.$$.ctx[31]}set operatorid(e){this.$$set({operatorid:e}),d()}get pagetag(){return this.$$.ctx[32]}set pagetag(e){this.$$set({pagetag:e}),d()}get positiontag(){return this.$$.ctx[33]}set positiontag(e){this.$$set({positiontag:e}),d()}get actionevent(){return this.$$.ctx[7]}set actionevent(e){this.$$set({actionevent:e}),d()}get userroles(){return this.$$.ctx[34]}set userroles(e){this.$$set({userroles:e}),d()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),d()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}}return customElements.get("casino-header-controller")||customElements.define("casino-header-controller",Qo),Qo});
4
4
  //# sourceMappingURL=casino-header-controller.js.map