@everymatrix/casino-header-controller 0.0.398 → 0.0.400

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
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 h(e){return e()}function d(){return Object.create(null)}function q(e){e.forEach(h)}function g(e){return"function"==typeof e}function t(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let r;function b(e,t){return r=r||document.createElement("a"),r.href=t,e===r.href}function p(e,...t){if(null==e)return E;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function U(e,t,r){e.$$.on_destroy.push(p(t,r))}function s(e){return e&&g(e.destroy)?e.destroy:E}var e="undefined"!=typeof window;let y=e?()=>window.performance.now():()=>Date.now(),v=e?e=>requestAnimationFrame(e):E;const w=new Set;function A(t){w.forEach(e=>{e.c(t)||(w.delete(e),e.f())}),0!==w.size&&v(A)}function ee(e,t){e.appendChild(t)}function M(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function te(e,t,r){e.insertBefore(t,r||null)}function re(e){e.parentNode.removeChild(e)}function N(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function ne(e){return document.createElement(e)}function _(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function oe(e){return document.createTextNode(e)}function ae(){return oe(" ")}function C(){return oe("")}function ie(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function se(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function R(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:se(e,t,r)}function le(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function O(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}t.selectedIndex=-1}function j(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function n(e){const t={};for(const r of e)t[r.name]=r.value;return t}const B=new Map;let f,H=0;function I(e,t,r,n,o,a,i,s=0){var l,c=16.666/n;let u="{\n";for(let e=0;e<=1;e+=c){const n=t+(r-t)*a(e);u+=100*e+`%{${i(n,1-n)}}
2
2
  `}const h=u+`100% {${i(r,1-r)}}
3
- }`,d=`__svelte_${function(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}(h)}_`+s,p=M(e),{stylesheet:f,rules:m}=B.get(p)||(l=p,g={stylesheet:(s=e,g=ne("style"),ee((s=M(s)).head||s,g),g.sheet),rules:{}},B.set(l,g),g);m[d]||(m[d]=!0,f.insertRule(`@keyframes ${d} `+h,f.cssRules.length));var g=e.style.animation||"";return e.style.animation=(g?g+", ":"")+d+` ${n}ms linear ${o}ms 1 both`,H+=1,d}function T(e){f=e}function G(e){!function(){if(!f)throw new Error("Function called outside component initialization");return f}().$$.on_mount.push(e)}const S=[],P=[],o=[],a=[],x=Promise.resolve();let L=!1;function k(e){o.push(e)}const i=new Set;let F,l=0;function D(){const e=f;do{for(;l<S.length;){const e=S[l];l++,T(e),function(e){{var t;null!==e.fragment&&(e.update(),q(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(k))}}(e.$$)}for(T(null),S.length=0,l=0;P.length;)P.pop()();for(let e=0;e<o.length;e+=1){const t=o[e];i.has(t)||(i.add(t),t())}}while(o.length=0,S.length);for(;a.length;)a.pop()();L=!1,i.clear(),T(e)}function $(e,t,r){e.dispatchEvent(function(e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}((t?"intro":"outro")+r))}const c=new Set;let z;function W(e,t){e&&e.i&&(c.delete(e),e.i(t))}function u(e,t,r,n){e&&e.o&&(c.has(e)||(c.add(e),z.c.push(()=>{c.delete(e),n&&(r&&e.d(1),n())}),e.o(t)))}const Z={duration:0};function V(s,e,t,r){let l=e(s,t),c=r?0:1,u=null,h=null,d=null;function p(){d&&function(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=r.length-n.length;o&&(e.style.animation=n.join(", "),H-=o,H||v(()=>{H||(B.forEach(e=>{const t=e["stylesheet"];let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.rules={}}),B.clear())}))}(s,d)}function f(e,t){var r=e.b-c;return t*=Math.abs(r),{a:c,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:r=300,easing:n=m,tick:o=E,css:a}=l||Z,i={start:y()+t,b:e};e||(i.group=z,z.r+=1),u||h?h=i:(a&&(p(),d=I(s,c,e,r,t,n,a)),e&&o(0,1),u=f(i,r),k(()=>$(s,e,"start")),function(t){let r;0===w.size&&v(A),new Promise(e=>{w.add(r={c:t,f:e})})}(e=>{return h&&e>h.start&&(u=f(h,r),h=null,$(s,u.b,"start"),a&&(p(),d=I(s,c,u.b,u.duration,0,n,l.css))),u&&(e>=u.end?(o(c=u.b,1-c),$(s,u.b,"end"),h||(u.b?p():--u.group.r||q(u.group.c)),u=null):e>=u.start&&(e=e-u.start,c=u.a+u.d*n(e/u.duration),o(c,1-c))),!(!u&&!h)}))}return{run(e){g(l)?(F||(F=Promise.resolve(),F.then(()=>{F=null})),F.then(()=>{l=l(),n(e)})):n(e)},end(){p(),u=h=null}}}function Y(e,t){e.d(1),t.delete(e.key)}function J(n,e,t,r,o,a,i,s=[-1]){var l=f;T(n);const c=n.$$={fragment:null,ctx:null,props:a,update:E,not_equal:o,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:d(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(S.push(e),L||(L=!0,x.then(D)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,q(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const E=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(E),E.forEach(re)}else c.fragment&&c.fragment.c();e.intro&&W(n.$$.fragment),function(t,e,r,n){const{fragment:o,on_mount:a,on_destroy:i,after_update:s}=t.$$;o&&o.m(e,r),n||k(()=>{var e=a.map(h).filter(g);i?i.push(...e):q(e),t.$$.on_mount=[]}),s.forEach(k)}(n,e.target,e.anchor,e.customElement),D()}T(l)}let Q;"function"==typeof HTMLElement&&(Q=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(h).filter(g);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){q(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(q(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=E}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var X,K,ce="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==ce&&ce,ue="URLSearchParams"in ce,he="Symbol"in ce&&"iterator"in Symbol,de="FileReader"in ce&&"Blob"in ce&&function(){try{return new Blob,!0}catch(e){return!1}}(),pe="FormData"in ce,fe="ArrayBuffer"in ce;function me(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 ge(e){return e="string"!=typeof e?String(e):e}function be(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return he&&(e[Symbol.iterator]=function(){return e}),e}function ye(t){this.map={},t instanceof ye?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 ve(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function we(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Ee(e){var t=new FileReader,r=we(t);return t.readAsArrayBuffer(e),r}function Ae(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Me(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:de&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fe&&de&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ae(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):fe&&(ArrayBuffer.prototype.isPrototypeOf(e)||K(e))?this._bodyArrayBuffer=Ae(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):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},de&&(this.blob=function(){var e=ve(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?ve(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(Ee)}),this.text=function(){var e,t,r=ve(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=we(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pe&&(this.formData=function(){return this.text().then(He)}),this.json=function(){return this.text().then(JSON.parse)},this}fe&&(X=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(e){return e&&-1<X.indexOf(Object.prototype.toString.call(e))}),ye.prototype.append=function(e,t){e=me(e),t=ge(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},ye.prototype.delete=function(e){delete this.map[me(e)]},ye.prototype.get=function(e){return e=me(e),this.has(e)?this.map[e]:null},ye.prototype.has=function(e){return this.map.hasOwnProperty(me(e))},ye.prototype.set=function(e,t){this.map[me(e)]=ge(t)},ye.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},ye.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),be(r)},ye.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),be(t)},ye.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),be(r)},he&&(ye.prototype[Symbol.iterator]=ye.prototype.entries);var Ce=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Be(e,t){if(!(this instanceof Be))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof Be){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ye(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 ye(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<Ce.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function He(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function Ie(e,t){if(!(this instanceof Ie))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 ye(t.headers),this.url=t.url||"",this._initBody(e)}Be.prototype.clone=function(){return new Be(this,{body:this._bodyInit})},Me.call(Be.prototype),Me.call(Ie.prototype),Ie.prototype.clone=function(){return new Ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ye(this.headers),url:this.url})},Ie.error=function(){var e=new Ie(null,{status:0,statusText:""});return e.type="error",e};var Te=[301,302,303,307,308];Ie.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new Ie(null,{status:t,headers:{location:e}})};var Se=ce.DOMException;try{new Se}catch(E){(Se=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),Se.prototype.constructor=Se}function xe(n,i){return new Promise(function(o,e){var t=new Be(n,i);if(t.signal&&t.signal.aborted)return e(new Se("Aborted","AbortError"));var a=new XMLHttpRequest;function r(){a.abort()}a.onload=function(){var e,r,t={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",r=new ye,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 t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;setTimeout(function(){o(new Ie(n,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 Se("Aborted","AbortError"))},0)},a.open(t.method,function(t){try{return""===t&&ce.location.href?ce.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&&(de?a.responseType="blob":fe&&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 ye?t.headers.forEach(function(e,t){a.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){a.setRequestHeader(e,ge(i.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),a.onreadystatechange=function(){4===a.readyState&&t.signal.removeEventListener("abort",r)}),a.send(void 0===t._bodyInit?null:t._bodyInit)})}xe.polyfill=!0,ce.fetch||(ce.fetch=xe,ce.Headers=ye,ce.Request=Be,ce.Response=Ie);var _e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};self.fetch.bind(self);var Re=function(e,t){return(Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Re(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Fe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ne(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||0<t--)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function Oe(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Pe(e){return"function"==typeof e}function ke(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 De=ke(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 Ue(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var je=($e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var i=Fe(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(Pe(a))try{a()}catch(e){o=e instanceof De?e.errors:[e]}a=this._finalizers;if(a){this._finalizers=null;try{for(var l=Fe(a),c=l.next();!c.done;c=l.next()){var u=c.value;try{We(u)}catch(e){o=null!=o?o:[],e instanceof De?o=Oe(Oe([],Ne(o)),Ne(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new De(o)}},$e.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)We(e);else{if(e instanceof $e){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}},$e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},$e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},$e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ue(t,e)},$e.prototype.remove=function(e){var t=this._finalizers;t&&Ue(t,e),e instanceof $e&&e._removeParent(this)},$e.EMPTY=((yr=new $e).closed=!0,yr),$e),Ge=je.EMPTY;function $e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function ze(e){return e instanceof je||e&&"closed"in e&&Pe(e.remove)&&Pe(e.add)&&Pe(e.unsubscribe)}function We(e){Pe(e)?e():e.unsubscribe()}var Ze=void 0,Ve=!1,Ye=!1,Je={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Je.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Oe([e,t],Ne(r))):setTimeout.apply(void 0,Oe([e,t],Ne(r)))},clearTimeout:function(e){var t=Je.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Qe(){}var Xe=null;function Ke(e){if(Ve){var t=!Xe;if(t&&(Xe={errorThrown:!1,error:null}),e(),t){var r=Xe,t=r.errorThrown,r=r.error;if(Xe=null,t)throw r}}else e()}var qe,et=(Le(rt,qe=je),rt.create=function(e,t,r){return new it(e,t,r)},rt.prototype.next=function(e){this.isStopped||this._next(e)},rt.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},rt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},rt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,qe.prototype.unsubscribe.call(this),this.destination=null)},rt.prototype._next=function(e){this.destination.next(e)},rt.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},rt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},rt),tt=Function.prototype.bind;function rt(e){var t=qe.call(this)||this;return t.isStopped=!1,e?ze(t.destination=e)&&e.add(t):t.destination=ut,t}function nt(e,t){return tt.call(e,t)}var ot,at=(lt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ct(e)}},lt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ct(e)}else ct(e)},lt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ct(e)}},lt),it=(Le(st,ot=et),st);function st(e,t,r){var n=ot.call(this)||this,e=Pe(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&Ye?((r=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&nt(e.next,r),error:e.error&&nt(e.error,r),complete:e.complete&&nt(e.complete,r)}):e;return n.destination=new at(e),n}function lt(e){this.partialObserver=e}function ct(e){var t=e;Je.setTimeout(function(){throw t})}var ut={closed:!0,next:Qe,error:function(e){throw e},complete:Qe},ht="function"==typeof Symbol&&Symbol.observable||"@@observable";function dt(e){return e}var pt=(ft.prototype.lift=function(e){var t=new ft;return t.source=this,t.operator=e,t},ft.prototype.subscribe=function(e,t,r){var n,o=this,a=(n=e)&&n instanceof et||n&&Pe(n.next)&&Pe(n.error)&&Pe(n.complete)&&ze(n)?e:new it(e,t,r);return Ke(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},ft.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},ft.prototype.forEach=function(n,e){var o=this;return new(e=mt(e))(function(e,t){var r=new it({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});o.subscribe(r)})},ft.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},ft.prototype[ht]=function(){return this},ft.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?dt:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},ft.prototype.toPromise=function(e){var n=this;return new(e=mt(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},ft.create=function(e){return new ft(e)},ft);function ft(e){e&&(this._subscribe=e)}function mt(e){return null!==(e=null!=e?e:Ze)&&void 0!==e?e:Promise}var gt,bt,yt,vt=ke(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wt=(Le(Ht,yt=pt),Ht.prototype.lift=function(e){var t=new Et(this,this);return t.operator=e,t},Ht.prototype._throwIfClosed=function(){if(this.closed)throw new vt},Ht.prototype.next=function(o){var a=this;Ke(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var r=Fe(a.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(o)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},Ht.prototype.error=function(t){var r=this;Ke(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},Ht.prototype.complete=function(){var t=this;Ke(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Ht.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(Ht.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Ht.prototype._trySubscribe=function(e){return this._throwIfClosed(),yt.prototype._trySubscribe.call(this,e)},Ht.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Ht.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,o=this.observers;return r||n?Ge:(this.currentObservers=null,o.push(e),new je(function(){t.currentObservers=null,Ue(o,e)}))},Ht.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Ht.prototype.asObservable=function(){var e=new pt;return e.source=this,e},Ht.create=function(e,t){return new Et(e,t)},Ht),Et=(Le(Bt,bt=wt),Bt.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Bt.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Bt.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Bt.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:Ge},Bt),At={now:function(){return(At.delegate||Date).now()},delegate:void 0},Mt=(Le(Ct,gt=wt),Ct.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,a=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(a.now()+t)),this._trimBuffer(),gt.prototype.next.call(this,e)},Ct.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},Ct.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var a=t.now(),i=0,s=1;s<r.length&&r[s]<=a;s+=2)i=s;i&&r.splice(0,i+1)}},Ct);function Ct(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=At);var n=gt.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Bt(e,t){var r=bt.call(this)||this;return r.destination=e,r.source=t,r}function Ht(){var e=yt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let It=[],Tt={};const St=[];function xt(n,o=E){let a;const i=new Set;function s(e){if(t(n,e)&&(n=e,a)){const e=!St.length;for(const e of i)e[1](),St.push(e,n);if(e){for(let e=0;e<St.length;e+=2)St[e][0](St[e+1]);St.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=E){const r=[e,t];return i.add(r),1===i.size&&(a=o(s)||E),e(n),()=>{i.delete(r),0===i.size&&(a(),a=null)}}}}function _t(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:xt(t,t=>{let r=!1;const n=[];let o=0,a=E;const i=()=>{var e;o||(a(),e=s(l?n[0]:n,t),u?t(e):a=g(e)?e:E)},e=c.map((e,t)=>p(e,e=>{n[t]=e,o&=~(1<<t),r&&i()},()=>{o|=1<<t}));return r=!0,i(),function(){q(e),a()}}).subscribe}}function Rt(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===Lt));var t}var Lt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ft(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Dt(Array.isArray(e)?[]:{},e,t):e}function Nt(e,t,r){return e.concat(t).map(function(e){return Ft(e,r)})}function Ot(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Pt(e,t){try{return t in e}catch(e){return!1}}function kt(n,o,a){var i={};return a.isMergeableObject(n)&&Ot(n).forEach(function(e){i[e]=Ft(n[e],a)}),Ot(o).forEach(function(t){var e,r;(!Pt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Pt(n,t)&&a.isMergeableObject(o[t])?i[t]=function(e){if(!e.customMerge)return Dt;e=e.customMerge(t);return"function"==typeof e?e:Dt}(a)(n[t],o[t],a):i[t]=Ft(o[t],a))}),i}function Dt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Nt,r.isMergeableObject=r.isMergeableObject||Rt,r.cloneUnlessOtherwiseSpecified=Ft;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):kt(e,t,r):Ft(t,r)}Dt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return Dt(e,t,r)},{})};var Ut=Dt,jt=function(e,t){return(jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}jt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var $t,zt,Wt,Zt=function(){return(Zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Vt(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Yt(e){return e.type===zt.literal}function Jt(e){return e.type===zt.number}function Qt(e){return e.type===zt.date}function Xt(e){return e.type===zt.time}function Kt(e){return e.type===zt.select}function qt(e){return e.type===zt.plural}function er(e){return e.type===zt.tag}function tr(e){return e&&"object"==typeof e&&e.type===Wt.number}function rr(e){return e&&"object"==typeof e&&e.type===Wt.dateTime}(vr=$t=$t||{})[vr.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",vr[vr.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",vr[vr.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",vr[vr.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",vr[vr.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",vr[vr.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",vr[vr.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",vr[vr.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",vr[vr.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",vr[vr.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",vr[vr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",vr[vr.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",vr[vr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",vr[vr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",vr[vr.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",vr[vr.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",vr[vr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",vr[vr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",vr[vr.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",vr[vr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",vr[vr.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",vr[vr.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",vr[vr.INVALID_TAG=23]="INVALID_TAG",vr[vr.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",vr[vr.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",vr[vr.UNCLOSED_TAG=27]="UNCLOSED_TAG",(wr=zt=zt||{})[wr.literal=0]="literal",wr[wr.argument=1]="argument",wr[wr.number=2]="number",wr[wr.date=3]="date",wr[wr.time=4]="time",wr[wr.select=5]="select",wr[wr.plural=6]="plural",wr[wr.pound=7]="pound",wr[wr.tag=8]="tag",(Er=Wt=Wt||{})[Er.number=0]="number",Er[Er.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,nr=/(?:[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 or=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ar=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ir=/^(@+)?(\+|#+)?[rs]?$/g,sr=/(\*)(0+)|(#+)(0+)|(0+)/g,lr=/^(0+)$/;function cr(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(ir,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function ur(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 hr(e){return ur(e)||{}}function dr(e){for(var i={},t=0,r=e;t<r.length;t++){var n=r[t];switch(n.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=n.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=n.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=Zt(Zt(Zt({},i),{notation:"scientific"}),n.options.reduce(function(e,t){return Zt(Zt({},e),hr(t))},{}));continue;case"engineering":i=Zt(Zt(Zt({},i),{notation:"engineering"}),n.options.reduce(function(e,t){return Zt(Zt({},e),hr(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(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(sr,function(e,t,r,n,o,a){if(t)i.minimumIntegerDigits=r.length;else{if(n&&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(lr.test(n.stem))i.minimumIntegerDigits=n.stem.length;else if(ar.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(ar,function(e,t,r,n,o,a){return"*"===r?i.minimumFractionDigits=t.length:n&&"#"===n[0]?i.maximumFractionDigits=n.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var o=n.options[0];"w"===o?i=Zt(Zt({},i),{trailingZeroDisplay:"stripIfInteger"}):o&&(i=Zt(Zt({},i),cr(o)))}else ir.test(n.stem)?i=Zt(Zt({},i),cr(n.stem)):((o=ur(n.stem))&&(i=Zt(Zt({},i),o)),(o=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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!lr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(i=Zt(Zt({},i),o)))}return i}var pr,fr={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 mr=new RegExp("^".concat(e.source,"*")),gr=new RegExp("".concat(e.source,"*$"));function br(e,t){return{start:e,end:t}}var yr=!!String.prototype.startsWith,ht=!!String.fromCodePoint,wt=!!Object.fromEntries,vr=!!String.prototype.codePointAt,wr=!!String.prototype.trimStart,Er=!!String.prototype.trimEnd,Ar=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},e=!0;try{e="a"===(null===(pr=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===pr?void 0:pr[0])}catch(E){e=!1}var Mr,Cr,Br=yr?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Hr=ht?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,a=0;a<o;){if(1114111<(r=e[a++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ir=wt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],a=o[0],o=o[1];t[a]=o}return t},Tr=vr?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,o=e.charCodeAt(t);return o<55296||56319<o||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},Sr=wr?function(e){return e.trimStart()}:function(e){return e.replace(mr,"")},xr=Er?function(e){return e.trimEnd()}:function(e){return e.replace(gr,"")};function _r(e,t){return new RegExp(e,t)}Cr=e?(Mr=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Mr.lastIndex=t,null!==(e=Mr.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=Tr(e,t);if(void 0===o||Nr(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return Hr.apply(void 0,n)};var Rr=(Lr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Lr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,r)).err)return o;n.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(r)break;return this.error($t.UNMATCHED_CLOSING_TAG,br(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Fr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{a=this.clonePosition();this.bump(),n.push({type:zt.pound,location:br(a,this.clonePosition())})}}}return{val:n,err:null}},Lr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:zt.literal,value:"<".concat(n,"/>"),location:br(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fr(this.char()))return this.error($t.INVALID_TAG,br(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error($t.UNMATCHED_CLOSING_TAG,br(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:zt.tag,value:n,children:e,location:br(r,this.clonePosition())},err:null}:this.error($t.INVALID_TAG,br(t,this.clonePosition())))}return this.error($t.UNCLOSED_TAG,br(r,this.clonePosition()))}return this.error($t.INVALID_TAG,br(r,this.clonePosition()))},Lr.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())},Lr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=br(r,this.clonePosition());return{val:{type:zt.literal,value:n,location:r},err:null}},Lr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Fr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Lr.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 r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Hr.apply(void 0,t)},Lr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Hr(r))},Lr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($t.EXPECT_ARGUMENT_CLOSING_BRACE,br(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error($t.EMPTY_ARGUMENT,br(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error($t.MALFORMED_ARGUMENT,br(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($t.EXPECT_ARGUMENT_CLOSING_BRACE,br(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:zt.argument,value:n,location:br(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($t.EXPECT_ARGUMENT_CLOSING_BRACE,br(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error($t.MALFORMED_ARGUMENT,br(r,this.clonePosition()))}},Lr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Cr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:br(e,this.clonePosition())}},Lr.prototype.parseArgumentOptions=function(e,t,r,n){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error($t.EXPECT_ARGUMENT_TYPE,br(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(d=xr(p.val)).length)return this.error($t.EXPECT_ARGUMENT_STYLE,br(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:br(c,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var u=br(n,this.clonePosition());if(l&&Br(null==l?void 0:l.style,"::",0)){var h=Sr(l.style.slice(2));if("number"===i)return(p=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?p:{val:{type:zt.number,value:r,location:u,style:p.val},err:null};if(0===h.length)return this.error($t.EXPECT_DATE_TIME_SKELETON,u);c=h;this.locale&&(c=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var a=0;n+1<e.length&&e.charAt(n+1)===o;)a++,n++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(fr[t||""]||fr[r||""]||fr["".concat(r,"-001")]||fr["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)r+="a";for(;0<i--;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale));var d={type:Wt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(nr,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===i?zt.date:zt.time,value:r,location:u,style:d},err:null}}return{val:{type:"number"===i?zt.number:"date"===i?zt.date:zt.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($t.EXPECT_SELECT_ARGUMENT_OPTIONS,br(l,Zt({},l)));this.bumpSpace();var p,u=this.parseIdentifierIfPossible(),l=0;if("select"!==i&&"offset"===u.value){if(!this.bumpIf(":"))return this.error($t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,br(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger($t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=p.val}u=this.tryParsePluralOrSelectOptions(e,i,t,u);if(u.err)return u;if((f=this.tryParseArgumentClose(n)).err)return f;var f=br(n,this.clonePosition());return"select"===i?{val:{type:zt.select,value:r,options:Ir(u.val),location:f},err:null}:{val:{type:zt.plural,value:r,options:Ir(u.val),offset:l,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null};default:return this.error($t.INVALID_ARGUMENT_TYPE,br(a,s))}},Lr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error($t.EXPECT_ARGUMENT_CLOSING_BRACE,br(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Lr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error($t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,br(r,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}},Lr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(or).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].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($t.INVALID_NUMBER_SKELETON,t)}return{val:{type:Wt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?dr(r):{}},err:null}},Lr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,a=[],i=new Set,s=n.value,l=n.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger($t.EXPECT_PLURAL_ARGUMENT_SELECTOR,$t.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=br(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?$t.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?$t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,br(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(h);if(c.err)return c;a.push([s,{value:u.val,location:br(h,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===a.length?this.error("select"===t?$t.EXPECT_SELECT_ARGUMENT_SELECTOR:$t.EXPECT_PLURAL_ARGUMENT_SELECTOR,br(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error($t.MISSING_OTHER_CLAUSE,br(this.clonePosition(),this.clonePosition())):{val:a,err:null}},Lr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-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()}n=br(n,this.clonePosition());return o?Ar(a*=r)?{val:a,err:null}:this.error(t,n):this.error(e,n)},Lr.prototype.offset=function(){return this.position.offset},Lr.prototype.isEOF=function(){return this.offset()===this.message.length},Lr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Lr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Tr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},Lr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Lr.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))},Lr.prototype.bumpIf=function(e){if(Br(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Lr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Lr.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}},Lr.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nr(this.char());)this.bump()},Lr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Lr);function Lr(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 Fr(e){return 97<=e&&e<=122||65<=e&&e<=90}function Nr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Or(e,t){t=Zt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Rr(e,t).parse();if(r.err){e=SyntaxError($t[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Kt(e)||qt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Jt(e)&&tr(e.style)||(Qt(e)||Xt(e))&&rr(e.style)?delete e.style.location:er(e)&&r(e.children)})}(r.val),r.val}function Pr(e,t){var r=t&&t.cache?t.cache:zr,n=t&&t.serializer?t.serializer:jr;return(t&&t.strategy?t.strategy:function(e,t){return Ur(e,this,1===e.length?kr:Dr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function kr(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(o);return void 0===r&&(r=e.call(this,n),t.set(o,r)),r}function Dr(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=t.get(o);return void 0===r&&(r=e.apply(this,n),t.set(o,r)),r}function Ur(e,t,r,n,o){return r.bind(t,e,n,o)}var jr=function(){return JSON.stringify(arguments)};function Gr(){this.cache=Object.create(null)}Gr.prototype.get=function(e){return this.cache[e]},Gr.prototype.set=function(e,t){this.cache[e]=t};var $r,zr={create:function(){return new Gr}},Wr={variadic:function(e,t){return Ur(e,this,Dr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ur(e,this,kr,t.cache.create(),t.serializer)}};(e=$r=$r||{}).MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";var Zr,Vr,Yr,Jr,Qr,Xr=(Gt(on,Qr=Error),on.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},on),Kr=(Gt(nn,Jr=Xr),nn),qr=(Gt(rn,Yr=Xr),rn),en=(Gt(tn,Vr=Xr),tn);function tn(e,t){return Vr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),$r.MISSING_VALUE,t)||this}function rn(e,t,r){return Yr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),$r.INVALID_VALUE,r)||this}function nn(e,t,r,n){return Jr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),$r.INVALID_VALUE,n)||this}function on(e,t,r){e=Qr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function an(e,t,r,n,o,a,i){if(1===e.length&&Yt(e[0]))return[{type:Zr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Yt(u))s.push({type:Zr.literal,value:u.value});else if(u.type===zt.pound)"number"==typeof a&&s.push({type:Zr.literal,value:r.getNumberFormat(t).format(a)});else{var h=u.value;if(!(o&&h in o))throw new en(h,i);var d=o[h];if(u.type===zt.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?Zr.literal:Zr.object,value:d});else if(Qt(u)){var p="string"==typeof u.style?n.date[u.style]:rr(u.style)?u.style.parsedOptions:void 0;s.push({type:Zr.literal,value:r.getDateTimeFormat(t,p).format(d)})}else if(Xt(u))p="string"==typeof u.style?n.time[u.style]:rr(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:Zr.literal,value:r.getDateTimeFormat(t,p).format(d)});else if(Jt(u))(p="string"==typeof u.style?n.number[u.style]:tr(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:Zr.literal,value:r.getNumberFormat(t,p).format(d)});else{if(er(u)){var f=u.children,m=u.value,h=o[m];if("function"!=typeof h)throw new qr(m,"function",i);f=h(an(f,t,r,n,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?Zr.literal:Zr.object,value:e}}))}if(Kt(u)){if(!(g=u.options[d]||u.options.other))throw new Kr(u.value,d,Object.keys(u.options),i);s.push.apply(s,an(g.value,t,r,n,o))}else if(qt(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Xr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',$r.MISSING_INTL_API,i);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new Kr(u.value,d,Object.keys(u.options),i);s.push.apply(s,an(g.value,t,r,n,o,d-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Zr.literal&&t.type===Zr.literal?r.value+=t.value:e.push(t),e},[])}function sn(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(e=Zr=Zr||{})[e.literal=0]="literal",e[e.object=1]="object";var ln=(Object.defineProperty(cn,"defaultLocale",{get:function(){return cn.memoizedDefaultLocale||(cn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),cn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),cn.memoizedDefaultLocale=null,cn.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])},cn.__parse=Or,cn.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"}}},cn);function cn(e,t,r,n){var o,a,i=this;if(void 0===t&&(t=cn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Zr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return an(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=cn.resolveLocale(t),"string"==typeof e){if(this.message=e,!cn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=cn.__parse(e,{ignoreTag:null==n?void 0:n.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=cn.formats,(a=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=a[t])?Zt(Zt(Zt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=Zt(Zt({},r[t]),n[t]||{}),e},{})):r),e},Zt({},o)):o),this.formatters=n&&n.formatters||{getNumberFormat:Pr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Vt([void 0],t,!1)))},{cache:sn((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Wr.variadic}),getDateTimeFormat:Pr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Vt([void 0],t,!1)))},{cache:sn(n.dateTime),strategy:Wr.variadic}),getPluralRules:Pr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Vt([void 0],t,!1)))},{cache:sn(n.pluralRules),strategy:Wr.variadic})}}const un={},hn=(e,t,r)=>r&&(t in un||(un[t]={}),e in un[t]||(un[t][e]=r),r),dn=(t,r)=>{if(null!=r){if(r in un&&t in un[r])return un[r][t];var n=Tn(r);for(let e=0;e<n.length;e++){var o=function(e,t){if(!mn(e))return null;e=function(e){return pn[e]||null}(e);return function(e,r){if(null!=r){if(r in e)return e[r];const n=r.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const r=n.slice(e,n.length).join(".");if(r in t){t=t[r];break}}t=t[n[e]]}else t=void 0;return t}}(e,t)}(n[e],t);if(o)return hn(t,r,o)}}};let pn;const fn=xt({});function mn(e){return e in pn}function gn(t,...r){delete un[t],fn.update(e=>(e[t]=Ut.all([e[t]||{},...r]),e))}_t([fn],([e])=>Object.keys(e)),fn.subscribe(e=>pn=e);const bn={};function yn(e){return bn[e]}function vn(e){return null!=e&&Tn(e).some(e=>{return null===(e=yn(e))||void 0===e?void 0:e.size})}const wn={};function En(e){if(!vn(e))return e in wn?wn[e]:Promise.resolve();const t=Tn(e).map(e=>{var t=yn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return wn[e]=Promise.all(t.map(([e,t])=>function(t,e){const r=Promise.all(e.map(e=>(function(e,t){bn[e].delete(t),0===bn[e].size&&delete bn[e]}(t,e),e().then(e=>e.default||e))));return r.then(e=>gn(t,...e))}(e,t))).then(()=>vn(e)?En(e):void delete wn[e]),wn[e]}function An(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const Mn={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 Cn=xt(!1);let Bn;const Hn=xt(null);function In(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Tn(e,t=Mn.fallbackLocale){e=In(e);return t?[...new Set([...e,...In(t)])]:e}function Sn(){return null!=Bn?Bn:void 0}Hn.subscribe(e=>{Bn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const xn=Object.assign(Object.assign({},Hn),{set:t=>{if(t&&function(e){if(null!=e){var t=Tn(e);for(let e=0;e<t.length;e++){var r=t[e];if(mn(r))return r}}}(t)&&vn(t)){var r=Mn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Sn()&&r?e=window.setTimeout(()=>Cn.set(!0),r):Cn.set(!0),En(t).then(()=>{Hn.set(t)}).finally(()=>{clearTimeout(e),Cn.set(!1)})}return Hn.set(t)}}),_n=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Rn=(e,t)=>{var r=Mn["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ln=_n(e=>{var{locale:t,format:r}=e,e=An(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Rn("number",r)),new Intl.NumberFormat(t,e)}),Fn=_n(e=>{var{locale:t,format:r}=e,e=An(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Rn("date",r):0===Object.keys(e).length&&(e=Rn("date","short")),new Intl.DateTimeFormat(t,e)}),Nn=_n(e=>{var{locale:t,format:r}=e,e=An(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Rn("time",r):0===Object.keys(e).length&&(e=Rn("time","short")),new Intl.DateTimeFormat(t,e)}),On=_n((e,t=Sn())=>new ln(e,t,Mn.formats,{ignoreTag:Mn.ignoreTag})),Pn=_t([xn,fn],()=>(e,t={})=>{var r,n;let o=t;"object"==typeof e&&(o=e,e=o.id);var{values:a,locale:i=Sn(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=dn(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!==(s=null!==(n=null===(r=(n=Mn).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:i,id:e,defaultValue:s}))&&void 0!==n?n:s)&&void 0!==s?s:e;if(!a)return l;let c=l;try{c=On(l,i).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});_t([xn],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=An(e,["locale"]);return Nn(Object.assign({locale:t},e))})(t).format(e)),_t([xn],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=An(e,["locale"]);return Fn(Object.assign({locale:t},e))})(t).format(e)),_t([xn],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=An(e,["locale"]);return Ln(Object.assign({locale:t},e))})(t).format(e)),_t([xn,fn],()=>(e,t=Sn())=>dn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==It.indexOf(e)&&(t=new Mt(t),Tt[e]=t,It.push(e)),Tt[e]}};const kn=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)),Dn={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"},fallbackSecondaryMenu:{promotions:"Promotions"}},zh:{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:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promociones"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promoções"}}},Un={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"}},zh:{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:"Registro",deposit:"Depósito"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"}}};function jn(e,t,r){const n=e.slice();return n[43]=t[r],n[45]=r,n}function Gn(e,t,r){const n=e.slice();return n[11]=t[r],n}function $n(t){let n,o=[],r=new Map,a=t[8];const i=e=>e[43].id;for(let e=0;e<a.length;e+=1){var s=jn(t,a,e),l=i(s);r.set(l,o[e]=Xn(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();n=C()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);te(t,n,r)},p(e,t){11115&t[0]&&(a=e[8],o=function(t,r,n,o,a,i,s,l,e,c,u,h){let d=t.length,p=i.length,f=d;const m={};for(;f--;)m[t[f].key]=f;const g=[],b=new Map,y=new Map;for(f=p;f--;){const t=h(a,i,f),l=n(t);let e=s.get(l);e?o&&e.p(t,r):(e=c(l,t),e.c()),b.set(l,g[f]=e),l in m&&y.set(l,Math.abs(f-m[l]))}const v=new Set,w=new Set;function E(e){W(e,1),e.m(l,u),s.set(e.key,e),u=e.first,p--}for(;d&&p;){const r=g[p-1],n=t[d-1],o=r.key,a=n.key;r===n?(u=r.first,d--,p--):b.has(a)?!s.has(o)||v.has(o)?E(r):w.has(a)?d--:y.get(o)>y.get(a)?(w.add(o),E(r)):(v.add(a),d--):(e(n,s),d--)}for(;d--;){const r=t[d];b.has(r.key)||e(r,s)}for(;p;)E(g[p-1]);return g}(o,t,i,1,e,a,r,n.parentNode,Y,Xn,n,jn))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&re(n)}}}function zn(e){let r,n,o,a,i=e[43].name+"",s="FAVORITES"===e[43].id?"("+e[0]+")":"";return{c(){r=ne("a"),n=oe(i),o=ae(),a=oe(s),se(r,"href","#")},m(e,t){te(e,r,t),ee(r,n),ee(r,o),ee(r,a)},p(e,t){256&t[0]&&i!==(i=e[43].name+"")&&le(n,i),257&t[0]&&s!==(s="FAVORITES"===e[43].id?"("+e[0]+")":"")&&le(a,s)},d(e){e&&re(r)}}}function Wn(e){let r,n,o=e[43].label+"";return{c(){r=ne("a"),n=oe(o),se(r,"href","#")},m(e,t){te(e,r,t),ee(r,n)},p(e,t){256&t[0]&&o!==(o=e[43].label+"")&&le(n,o)},d(e){e&&re(r)}}}function Zn(e){let r,n=0<e[11]?.count&&Vn(e);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),te(e,r,t)},p(e,t){0<e[11]?.count?n?n.p(e,t):(n=Vn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&re(r)}}}function Vn(e){let r,n=e[11]&&"true"==e[3]&&Yn(e);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),te(e,r,t)},p(e,t){e[11]&&"true"==e[3]?n?n.p(e,t):(n=Yn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&re(r)}}}function Yn(t){let o,a=t[11]?.items,i=[];for(let e=0;e<a.length;e+=1)i[e]=Qn(Gn(t,a,e));return{c(){o=ne("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].m(o,null)},p(t,r){if(10496&r[0]){let e;for(a=t[11]?.items,e=0;e<a.length;e+=1){var n=Gn(t,a,e);i[e]?i[e].p(n,r):(i[e]=Qn(n),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&&re(o),N(i,e)}}}function Jn(r){let n,o,a,i,s,l,c=r[11]?.name+"";function u(...e){return r[28](r[11],r[45],...e)}return{c(){n=ne("li"),o=ne("a"),a=oe(c),i=ae(),se(o,"class","SubDropDown"),se(o,"href","#")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(n,i),s||(l=ie(n,"click",u),s=!0)},p(e,t){r=e,2048&t[0]&&c!==(c=r[11]?.name+"")&&le(a,c)},d(e){e&&re(n),s=!1,l()}}}function Qn(e){let r,n=e[11].games.count&&Jn(e);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),te(e,r,t)},p(e,t){e[11].games.count?n?n.p(e,t):(n=Jn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&re(r)}}}function Xn(e,r){let n,o,a,i,s,l;function c(e){return"headerMain"===e[1]?Wn:zn}let u=c(r),h=u(r),d=1==r[9][r[45]]&&Zn(r);function p(...e){return r[29](r[43],r[45],...e)}return{key:e,first:null,c(){n=ne("li"),h.c(),o=ae(),d&&d.c(),a=ae(),se(n,"class",i="CarouselItem "+(r[5]==r[45]||r[6]==r[45]?"active":"")+" "+("headerMain"==r[1]?"":"SecondaryMenu")),se(n,"part","CarouselItem"),this.first=n},m(e,t){te(e,n,t),h.m(n,null),ee(n,o),d&&d.m(n,null),ee(n,a),s||(l=ie(n,"click",p),s=!0)},p(e,t){u===(u=c(r=e))&&h?h.p(r,t):(h.d(1),h=u(r),h&&(h.c(),h.m(n,o))),1==r[9][r[45]]?d?d.p(r,t):(d=Zn(r),d.c(),d.m(n,a)):d&&(d.d(1),d=null),354&t[0]&&i!==(i="CarouselItem "+(r[5]==r[45]||r[6]==r[45]?"active":"")+" "+("headerMain"==r[1]?"":"SecondaryMenu"))&&se(n,"class",i)},d(e){e&&re(n),h.d(),d&&d.d(),s=!1,l()}}}function Kn(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w=0<r[8].length&&$n(r);return{c(){n=ne("div"),o=ne("div"),a=ne("div"),a.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=ne("div"),l=ne("ul"),c=ne("li"),c.innerHTML='<a href="#CarouselNav">Close Subs</a>',u=ae(),w&&w.c(),h=ae(),d=ne("div"),d.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"===r[1]?"CarouselContainerHeaderMain":"")),se(o,"part",f="CarouselContainer "+(r[12]?"CarouselContainerMobile":"")+" "+("headerMain"===r[1]?"CarouselContainerHeaderMain":"")),se(o,"style",m="headerMain"===r[1]?"max-width: auto":`max-width: ${r[2]}px`),se(n,"class",g="CarouselWrapper "+("headerMain"===r[1]?"CarouselWrapperHeaderMain":"")),se(n,"part",b="CarouselWrapper "+("headerMain"===r[1]?"CarouselWrapperHeaderMain":""))},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,i),ee(o,s),ee(s,l),ee(l,c),ee(l,u),w&&w.m(l,null),r[30](l),r[31](s),ee(o,h),ee(o,d),r[33](n),y||(v=[ie(a,"click",r[27]),ie(d,"click",r[32])],y=!0)},p(e,t){0<e[8].length?w?w.p(e,t):(w=$n(e),w.c(),w.m(l,null)):w&&(w.d(1),w=null),2&t[0]&&p!==(p="CarouselContainer CarouselContainerMobile} "+("headerMain"===e[1]?"CarouselContainerHeaderMain":""))&&se(o,"class",p),2&t[0]&&f!==(f="CarouselContainer "+(e[12]?"CarouselContainerMobile":"")+" "+("headerMain"===e[1]?"CarouselContainerHeaderMain":""))&&se(o,"part",f),6&t[0]&&m!==(m="headerMain"===e[1]?"max-width: auto":`max-width: ${e[2]}px`)&&se(o,"style",m),2&t[0]&&g!==(g="CarouselWrapper "+("headerMain"===e[1]?"CarouselWrapperHeaderMain":""))&&se(n,"class",g),2&t[0]&&b!==(b="CarouselWrapper "+("headerMain"===e[1]?"CarouselWrapperHeaderMain":""))&&se(n,"part",b)},i:E,o:E,d(e){e&&re(n),w&&w.d(),r[30](null),r[31](null),r[33](null),y=!1,q(v)}}}function qn(t,e,o){let{endpoint:a=""}=e,{datasource:i=""}=e,{onclickeventname:r="defaultEvent"}=e,{actionevent:s="defaultEvent"}=e,{favoritesnumber:n="0"}=e,{location:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{identity:h=""}=e,{containermaxwidth:d=""}=e,{isprimarymenu:p=!1}=e,{issecondarymenu:f=!1}=e,{lang:m=""}=e,{activeindex:g="0"}=e,{showsubgroups:b="false"}=e;var y,v;({withLocale:y,translations:v}={withLocale:"en",translations:{}}),xn.subscribe(e=>{null==e&&(fn.set(v),xn.set(y))}),Object.keys(Un).forEach(e=>{gn(e,Un[e])});let w,E,A,M,C,B,H="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),I=[],T=[],S=(e,t)=>{F(),o(5,E=t),o(5,E),o(6,A=E),L(e,t,"navigation")},x=()=>{B.scrollBy({left:-250,behavior:"smooth"}),"true"==b&&N()},_=()=>{B.scrollBy({left:250,behavior:"smooth"}),"true"==b&&N()};const R=e=>{"SliderData"==e.data.type&&e.data.identity==h&&(o(8,I=e.data.data),o(9,T=new Array(I.length).fill(!1)),"true"==b&&N())},L=(t,r,n)=>{var e;"secondaryMenu"==l&&a&&i&&m&&t.id&&(e=new URL(`${a}/casino/groups/${i}/${t.id}/subGroups?language=`+m),fetch(e.href).then(e=>e.json()).then(e=>{o(11,C=e),("false"==b||"navigation"==n&&C.count<=0)&&window.postMessage({type:s,itemId:t.id,index:r,item:t},window.location.href)}).then(()=>{w.querySelectorAll(".DropDown")&&F()})),"headerMain"==l&&window.postMessage({type:s,item:t},window.location.href)},F=()=>{const t=w.querySelectorAll(".DropDown");document.activeElement.blur(),B.classList.add("isScrolling");for(let e=0;e<t.length;e++)t[e].style.transform="translateX(-"+B.scrollLeft+"px)";B.classList.remove("isScrolling")},N=()=>{I.forEach((e,t)=>{var r;0<(null===(r=null==e?void 0:e.subGroups)||void 0===r?void 0:r.count)&&(o(9,T[t]=!0,T),L(e,t))})};return G(()=>("ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),window.addEventListener("message",R,!1),setTimeout(()=>{B.addEventListener("scroll",F)},500),()=>{window.removeEventListener("message",R),w.removeEventListener("scroll",F)})),t.$$set=e=>{"endpoint"in e&&o(16,a=e.endpoint),"datasource"in e&&o(17,i=e.datasource),"onclickeventname"in e&&o(18,r=e.onclickeventname),"actionevent"in e&&o(19,s=e.actionevent),"favoritesnumber"in e&&o(0,n=e.favoritesnumber),"location"in e&&o(1,l=e.location),"clientstyling"in e&&o(20,c=e.clientstyling),"clientstylingurl"in e&&o(21,u=e.clientstylingurl),"identity"in e&&o(22,h=e.identity),"containermaxwidth"in e&&o(2,d=e.containermaxwidth),"isprimarymenu"in e&&o(23,p=e.isprimarymenu),"issecondarymenu"in e&&o(24,f=e.issecondarymenu),"lang"in e&&o(25,m=e.lang),"activeindex"in e&&o(26,g=e.activeindex),"showsubgroups"in e&&o(3,b=e.showsubgroups)},t.$$.update=()=>{var e;67108864&t.$$.dirty[0]&&g&&(o(5,E=parseInt(g,10)),A||o(6,A=E),"true"==b&&N()),1048576&t.$$.dirty[0]&&c&&(()=>{let e=document.createElement("style");e.innerHTML=c,setTimeout(()=>{M.appendChild(e)})})(),2097152&t.$$.dirty[0]&&u&&(()=>{let t=document.createElement("style"),e=new URL(u);u&&fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{M.appendChild(t)},1)})})(),33554432&t.$$.dirty[0]&&m&&(e=m,xn.set(e))},[n,l,d,b,w,E,A,M,I,T,B,C,H,S,x,_,a,i,r,s,c,u,h,p,f,m,g,()=>x(),(e,t,r)=>{S(e,t),r.stopPropagation()},(e,t,r)=>{S(e,t),r.preventDefault()},function(e){P[e?"unshift":"push"](()=>{w=e,o(4,w)})},function(e){P[e?"unshift":"push"](()=>{B=e,o(10,B)})},()=>_(),function(e){P[e?"unshift":"push"](()=>{M=e,o(7,M)})}]}function eo(e,{delay:t=0,duration:r=400,easing:n=m}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*o}}customElements.get("casino-slider")||customElements.define("casino-slider",class extends Q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::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-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{background:var(--emfe-w-color-contrast, #07072A);background:-webkit-linear-gradient(var(--emfe-w-color-contrast, #07072A), var(--emfe-w-color-primary, #D0046C));background:linear-gradient(var(--emfe-w-color-contrast, #07072A), var(--emfe-w-color-primary, #D0046C))}.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}}</style>",J(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},qn,Kn,t,{endpoint:16,datasource:17,onclickeventname:18,actionevent:19,favoritesnumber:0,location:1,clientstyling:20,clientstylingurl:21,identity:22,containermaxwidth:2,isprimarymenu:23,issecondarymenu:24,lang:25,activeindex:26,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","containermaxwidth","isprimarymenu","issecondarymenu","lang","activeindex","showsubgroups"]}get endpoint(){return this.$$.ctx[16]}set endpoint(e){this.$$set({endpoint:e}),D()}get datasource(){return this.$$.ctx[17]}set datasource(e){this.$$set({datasource:e}),D()}get onclickeventname(){return this.$$.ctx[18]}set onclickeventname(e){this.$$set({onclickeventname:e}),D()}get actionevent(){return this.$$.ctx[19]}set actionevent(e){this.$$set({actionevent:e}),D()}get favoritesnumber(){return this.$$.ctx[0]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),D()}get location(){return this.$$.ctx[1]}set location(e){this.$$set({location: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()}get identity(){return this.$$.ctx[22]}set identity(e){this.$$set({identity:e}),D()}get containermaxwidth(){return this.$$.ctx[2]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),D()}get isprimarymenu(){return this.$$.ctx[23]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),D()}get issecondarymenu(){return this.$$.ctx[24]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),D()}get lang(){return this.$$.ctx[25]}set lang(e){this.$$set({lang:e}),D()}get activeindex(){return this.$$.ctx[26]}set activeindex(e){this.$$set({activeindex:e}),D()}get showsubgroups(){return this.$$.ctx[3]}set showsubgroups(e){this.$$set({showsubgroups:e}),D()}});const to={en:{languageSelector:{language:"Select Language"}},zh:{languageSelector:{language:"選擇語言"}},fr:{languageSelector:{language:"Sélectionner la langue"}},tr:{languageSelector:{language:"Dil Seçin"}},ro:{languageSelector:{language:"Selecteaza limba"}},es:{languageSelector:{language:"Seleccione el idioma"}},pt:{languageSelector:{language:"Selecione o idioma"}}};function ro(e,t,r){const n=e.slice();return n[0]=t[r],n}function no(e,t,r){const n=e.slice();return n[33]=t[r],n}function oo(e,t,r){const n=e.slice();return n[36]=t[r],n}function ao(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,M,C,t,B,H,I,T=r[10]("languageSelector.language")+"",S=r[2],x=[];for(let e=0;e<S.length;e+=1)x[e]=io(oo(r,S,e));let _=r[4],R=[];for(let e=0;e<_.length;e+=1)R[e]=so(no(r,_,e));let L=r[8],F=[];for(let e=0;e<L.length;e+=1)F[e]=lo(ro(r,L,e));return{c(){n=ne("div"),o=ne("span"),a=ne("slot"),a.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=ne("div"),u=ne("ul");for(let e=0;e<x.length;e+=1)x[e].c();p=ae(),f=ne("ul");for(let e=0;e<R.length;e+=1)R[e].c();b=ae(),y=ne("div"),v=ne("span"),w=oe(T),E=ae(),A=ne("select");for(let e=0;e<F.length;e+=1)F[e].c();se(a,"name","close"),se(o,"class",i=r[5]?"ModalCloseBtn":""),se(o,"part",s=r[5]?"ModalCloseBtn":""),se(o,"role","button"),se(u,"class",h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),se(u,"part",d="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),se(f,"class",m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),se(f,"part",g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),se(A,"class","Item ItemLanguage"),se(A,"part","Item ItemLanguage"),void 0===r[9]&&k(()=>r[19].call(A)),se(y,"class","LanguageSelectorTitle"),se(y,"part","LanguageSelectorTitle"),se(c,"class",M="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),se(c,"part",C="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),se(n,"class","HamburgerModalWindow"),se(n,"part","HamburgerModalWindow")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(n,l),ee(n,c),ee(c,u);for(let e=0;e<x.length;e+=1)x[e].m(u,null);ee(c,p),ee(c,f);for(let e=0;e<R.length;e+=1)R[e].m(f,null);ee(c,b),ee(c,y),ee(y,v),ee(v,w),ee(y,E),ee(y,A);for(let e=0;e<F.length;e+=1)F[e].m(A,null);O(A,r[9]),r[21](n),B=!0,H||(I=[ie(o,"click",r[11]),ie(A,"change",r[19]),ie(A,"change",r[20])],H=!0)},p(e,t){if(r=e,(!B||32&t[0]&&i!==(i=r[5]?"ModalCloseBtn":""))&&se(o,"class",i),(!B||32&t[0]&&s!==(s=r[5]?"ModalCloseBtn":""))&&se(o,"part",s),4108&t[0]){let e;for(S=r[2],e=0;e<S.length;e+=1){const o=oo(r,S,e);x[e]?x[e].p(o,t):(x[e]=io(o),x[e].c(),x[e].m(u,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=S.length}if((!B||64&t[0]&&h!==(h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"class",h),(!B||64&t[0]&&d!==(d="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"part",d),16&t[0]){let e;for(_=r[4],e=0;e<_.length;e+=1){const o=no(r,_,e);R[e]?R[e].p(o,t):(R[e]=so(o),R[e].c(),R[e].m(f,null))}for(;e<R.length;e+=1)R[e].d(1);R.length=_.length}if((!B||64&t[0]&&m!==(m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"class",m),(!B||64&t[0]&&g!==(g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"part",g),(!B||1024&t[0])&&T!==(T=r[10]("languageSelector.language")+"")&&le(w,T),256&t[0]){let e;for(L=r[8],e=0;e<L.length;e+=1){const o=ro(r,L,e);F[e]?F[e].p(o,t):(F[e]=lo(o),F[e].c(),F[e].m(A,null))}for(;e<F.length;e+=1)F[e].d(1);F.length=L.length}768&t[0]&&O(A,r[9]),(!B||32&t[0]&&M!==(M="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&se(c,"class",M),(!B||32&t[0]&&C!==(C="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&se(c,"part",C)},i(e){B||(k(()=>{t=t||V(n,eo,{transitionDuration:uo},!0),t.run(1)}),B=!0)},o(e){t=t||V(n,eo,{transitionDuration:uo},!1),t.run(0),B=!1},d(e){e&&re(n),N(x,e),N(R,e),N(F,e),r[21](null),e&&t&&t.end(),H=!1,q(I)}}}function io(r){let n,o,a,i,s,l,c,u,h,d,p,f=r[36].label+"";function m(){return r[18](r[36])}return{c(){n=ne("li"),o=ne("div"),a=ne("img"),s=ae(),l=oe(f),c=ae(),b(a.src,i=r[36].img)||se(a,"src",i),se(a,"alt","menu icon"),se(o,"class","HamburgerItemContainer"),se(o,"part","HamburgerItemContainer"),se(n,"class",u=r[3]===r[36].id?"ActiveItem":""),se(n,"part",h=r[3]===r[36].id?"ActiveItem":"")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,s),ee(o,l),ee(n,c),d||(p=ie(n,"click",m),d=!0)},p(e,t){r=e,4&t[0]&&!b(a.src,i=r[36].img)&&se(a,"src",i),4&t[0]&&f!==(f=r[36].label+"")&&le(l,f),12&t[0]&&u!==(u=r[3]===r[36].id?"ActiveItem":"")&&se(n,"class",u),12&t[0]&&h!==(h=r[3]===r[36].id?"ActiveItem":"")&&se(n,"part",h)},d(e){e&&re(n),d=!1,p()}}}function so(e){let r,n,o,a,i,s,l,c,u=e[33].label+"";return{c(){r=ne("li"),n=ne("a"),o=ne("img"),i=ae(),s=oe(u),c=ae(),b(o.src,a=e[33].img)||se(o,"src",a),se(o,"alt","menu icon"),se(n,"href",l=e[33].path)},m(e,t){te(e,r,t),ee(r,n),ee(n,o),ee(n,i),ee(n,s),ee(r,c)},p(e,t){16&t[0]&&!b(o.src,a=e[33].img)&&se(o,"src",a),16&t[0]&&u!==(u=e[33].label+"")&&le(s,u),16&t[0]&&l!==(l=e[33].path)&&se(n,"href",l)},d(e){e&&re(r)}}}function lo(e){let r,n,o,a=e[0]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[0],r.value=r.__value,r.selected=!0},m(e,t){te(e,r,t),ee(r,n)},p(e,t){256&t[0]&&a!==(a=e[0]+"")&&le(n,a),256&t[0]&&o!==(o=e[0])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function co(e){let r,n,o=!0===e[7]&&ao(e);return{c(){o&&o.c(),r=C(),this.c=E},m(e,t){o&&o.m(e,t),te(e,r,t),n=!0},p(e,t){!0===e[7]?o?(o.p(e,t),128&t[0]&&W(o,1)):(o=ao(e),o.c(),W(o,1),o.m(r.parentNode,r)):o&&(z={r:0,c:[],p:z},u(o,1,1,()=>{o=null}),z.r||q(z.c),z=z.p)},i(e){n||(W(o),n=!0)},o(e){u(o),n=!1},d(e){o&&o.d(e),e&&re(r)}}}let uo=350;function ho(t,e,n){let r;U(t,Pn,e=>n(10,r=e));let o,a,{menuitemsurl:i=""}=e,{lang:s="en"}=e,{activecategory:l=""}=e,{languageslist:c=""}=e,u=window.navigator.userAgent,h=[],d="",p=[],f=!1,m=!1,g=!1,b=!0,y=[],v=!1,w="";Object.keys(to).forEach(e=>{gn(e,to[e])});const E=e=>{var r;"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),n(7,g=!0),setTimeout(()=>{n(5,f=!0)},500),setTimeout(()=>{n(6,m=!0)},1500),r=i,new Promise((e,t)=>{a&&!v?e(a):C(r)}))},A=(e,t)=>{n(3,d=e),n(4,p=t||[])},M=()=>{var e=h.filter(e=>e.path.includes(l));0<e.length&&A(e[0].id,e[0].children)},C=e=>{fetch(e).then(e=>e.json()).then(e=>{n(2,h=e),M(),n(17,b=!1),a=e,v=!1},e=>{console.error(e)})},B=()=>{v=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:w},window.location.href)};return G(()=>(window.addEventListener("message",E,!1),kn(u),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"menuitemsurl"in e&&n(14,i=e.menuitemsurl),"lang"in e&&n(0,s=e.lang),"activecategory"in e&&n(15,l=e.activecategory),"languageslist"in e&&n(16,c=e.languageslist)},t.$$.update=()=>{var e;65537&t.$$.dirty[0]&&s&&c&&(e=s,xn.set(e),v&&C(i),n(8,y=c.replace(/ /g,"").split(",")),n(8,y=y.map(e=>e.toUpperCase())),n(9,w=s.toUpperCase())),163840&t.$$.dirty[0]&&l&&!b&&M()},[s,void 0,h,d,p,f,m,g,y,w,r,()=>{n(7,g=!1),n(5,f=!1),n(6,m=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href)},A,B,i,l,c,b,e=>A(e.id,e.children),function(){w=j(this),n(9,w),n(8,y)},()=>B(),function(e){P[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",class extends Q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::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 .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 a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emfe-w-color-white, #FFFFFF);font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emfe-w-color-primary, #D0046C)}</style>",J(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ho,co,t,{menuitemsurl:14,lang:0,activecategory:15,languageslist:16},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"]}get menuitemsurl(){return this.$$.ctx[14]}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[15]}set activecategory(e){this.$$set({activecategory:e}),D()}get languageslist(){return this.$$.ctx[16]}set languageslist(e){this.$$set({languageslist:e}),D()}});const po={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},zh:{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:"Tu saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo de bonificación",depositButton:"Depositar"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}};var fo,mo,go=(mo=(fo={path:void 0,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&fo.path)}}).exports,function(e){var n,_=e.setTimeout,R=e.clearTimeout,L=e.XMLHttpRequest,o=e.XDomainRequest,t=e.ActiveXObject,r=e.EventSource,a=e.document,h=e.Promise,d=e.fetch,i=e.Response,p=e.TextDecoder,s=e.TextEncoder,f=e.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===a||"readyState"in a||null!=a.body||(a.readyState="loading",window.addEventListener("load",function(e){a.readyState="complete"},!1)),null==L&&null!=t&&(L=function(){return new t("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(n=d,d=function(e,t){var r=t.signal;return n(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return r._reader=t,r._aborted&&r._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}}),l.prototype.decode=function(e){function t(e,t,r){if(1===r)return 128>>t<=e&&e<<t<=2047;if(2===r)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===r)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function r(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 n="",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,r(o,a)))&&(o=0,a=65533,n+=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,r(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?n+=String.fromCharCode(a):(n+=String.fromCharCode(55296+(a-65535-1>>10)),n+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,n},null!=p&&null!=s&&function(){try{return"test"===(new p).decode((new s).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(p=l);function u(){}function F(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function c(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function m(e){for(var t=Object.create(null),r=e.split("\r\n"),n=0;n<r.length;n+=1){var o=r[n].split(": "),a=o.shift(),o=o.join(": ");t[c(a)]=o}this._map=t}function N(){}function g(e){this._headers=e}function O(){}function b(){this._listeners=Object.create(null)}function y(e){_(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function P(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function k(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){v.call(this,e),this.error=t.error}F.prototype.open=function(e,t){this._abort(!0);var o=this,a=this._xhr,i=1,r=0;this._abort=function(e){0!==o._sendTimeout&&(R(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=u,a.onerror=u,a.onabort=u,a.onprogress=u,a.onreadystatechange=u,a.abort(),0!==r&&(R(r),r=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),i=0};function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(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 s=function(){if(1===i){var t=0,r="",n=void 0;if("contentType"in a)t=200,r="OK",n=a.contentType;else try{t=a.status,r=a.statusText,n=a.getResponseHeader("Content-Type")}catch(e){r="",n=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=r,o._contentType=n,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=_(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=_(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 r=this._xhr;"setRequestHeader"in r&&r.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==a||null==a.readyState||"complete"===a.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=_(function(){t._sendTimeout=0,t.send()},4)}},m.prototype.get=function(e){return this._map[c(e)]},null!=L&&null==L.HEADERS_RECEIVED&&(L.HEADERS_RECEIVED=2),N.prototype.open=function(o,a,t,r,e,n,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(),r(new Error("NetworkError"))},o.onload=function(){r(null)},o.onabort=function(){r(null)},o.onreadystatechange=function(){var e,t,r,n;o.readyState===L.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,r=o.getResponseHeader("Content-Type"),n=o.getAllResponseHeaders(),a(e,t,r,new m(n)))},o.withCredentials=n,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},g.prototype.get=function(e){return this._headers.get(e)},O.prototype.open=function(e,t,o,r,n,a,i){var s=null,l=new f,c=l.signal,u=new p;return d(n,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new g(e.headers)),new h(function(t,r){function n(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),o(e),n())}).catch(function(e){r(e)})}n()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){r(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},b.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var r=t.length,n=0;n<r;n+=1){var o=t[n];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){y(e)}}},b.prototype.addEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];null==n&&(r[e]=n=[]);for(var o=!1,a=0;a<n.length;a+=1)n[a]===t&&(o=!0);o||n.push(t)},b.prototype.removeEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];if(null!=n){for(var o=[],a=0;a<n.length;a+=1)n[a]!==t&&o.push(n[a]);0===o.length?delete r[e]:r[e]=o}},P.prototype=Object.create(v.prototype),k.prototype=Object.create(v.prototype),D.prototype=Object.create(v.prototype);function U(e,t){return e=null==e?t:parseInt(e,10),$(e=e!=e?t:e)}function j(e,t,r){try{"function"==typeof t&&t.call(e,r)}catch(e){y(e)}}var G=/^text\/event\-stream(;.*)?$/i,$=function(e){return Math.min(Math.max(e,1e3),18e6)};function w(e,t){b.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(l,a,e){a=String(a);var t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=$(1e3),u=U(e.heartbeatTimeout,45e3),h="",d=c,p=!1,f=0,r=e.headers||{},e=e.Transport,s=z&&null==e?void 0:new F(new(null!=e?e:null!=L&&"withCredentials"in L.prototype||null==o?L:o)),m=new(null!=e&&"string"!=typeof e?e:null==s?O:N),g=void 0,b=0,y=-1,v="",w="",E="",A="",M=0,C=0,B=0,H=function(e,t,r,n){var o,a;0===y&&(200===e&&null!=r&&G.test(r)?(y=1,p=Date.now(),d=c,l.readyState=1,o=new k("open",{status:e,statusText:t,headers:n}),l.dispatchEvent(o),j(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==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",S(),o=new k("error",{status:e,statusText:t,headers:n}),l.dispatchEvent(o),j(l,l.onerror,o),console.error(a)))},I=function(e){if(1===y){for(var t=-1,r=0;r<e.length;r+=1)(i=e.charCodeAt(r))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=r);var n=(-1!==t?A:"")+e.slice(0,t+1);A=(-1===t?A:"")+e.slice(t+1),""!==e&&(p=Date.now(),f+=e.length);for(var o=0;o<n.length;o+=1){var a,i=n.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),a=n.slice(C,B-1),s=n.slice(B+(B<o&&n.charCodeAt(B)===" ".charCodeAt(0)?1:0),o),"data"===a?(v+="\n",v+=s):"id"===a?w=s:"event"===a?E=s:"retry"===a?(c=U(s,c),d=c):"heartbeatTimeout"===a&&(u=U(s,u),0!==b&&(R(b),b=_(function(){x()},u)))),0===M){if(""!==v){h=w;var s=new P(E=""===E?"message":E,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===E?j(l,l.onopen,s):"message"===E?j(l,l.onmessage,s):"error"===E&&j(l,l.onerror,s),2===y)return}E=v=""}M=i==="\r".charCodeAt(0)?-1:0}else 0===M&&(C=o,M=1),1===M?i===":".charCodeAt(0)&&(B=o+1,M=2):2===M&&(M=3)}}},T=function(e){var t;1!==y&&0!==y||(y=-1,0!==b&&(R(b),b=0),b=_(function(){x()},d),d=$(Math.min(16*c,2*d)),l.readyState=0,t=new D("error",{error:e}),l.dispatchEvent(t),j(l,l.onerror,t),null!=e&&console.error(e))},S=function(){y=2,null!=g&&(g.abort(),g=void 0),0!==b&&(R(b),b=0),l.readyState=2},x=function(){if(b=0,-1===y){p=!1,f=0,b=_(function(){x()},u),w=h,A=E=v="",M=B=C=y=0;var e=a;"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));var t=l.withCredentials,r={Accept:"text/event-stream"},n=l.headers;if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o]);try{g=m.open(s,H,I,T,e,t,r)}catch(e){throw S(),e}}else p||null==g?(t=Math.max((p||Date.now())+u-Date.now(),1),p=!1,b=_(function(){x()},t)):(T(new Error("No activity within "+u+" milliseconds. "+(0===y?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))};l.url=a,l.readyState=0,l.withCredentials=t,l.headers=r,l._close=S,x()}(this,e,t)}var z=null!=d&&null!=i&&"body"in i.prototype;(w.prototype=Object.create(b.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0;e=r;null==L||null!=r&&"withCredentials"in r.prototype||(e=w),_(function(){var e;-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)&&(e=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","24 февраля "+(e=function(e){return""+e+""})("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+e("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+e("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+e("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",e("https://www.torproject.org/"),"","И посетите:","",e("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",e("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n"),alert(e),window.open("http://www.change.org/NetVoyne"))},15e3),(i=mo).EventSourcePolyfill=w,i.NativeEventSource=r,i.EventSource=e}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:_e:globalThis),fo.exports);function bo(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,M,C,B,H,I,T,S,x,_,R,L,F,N,O,P,k,D,U,j,G,$,z,W,Z,V,Y=r[3]("balanceModal.balanceTitle")+"",J=r[3]("balanceModal.totalBalance")+"",Q=r[3]("balanceModal.cashBalance")+"",X=r[3]("balanceModal.bonusBalance")+"",K=r[3]("balanceModal.depositButton")+"";return{c(){n=ne("div"),o=ne("div"),a=ae(),i=ne("div"),s=ne("div"),l=ne("p"),c=oe(Y),u=ae(),h=ne("div"),d=ne("div"),p=ne("p"),f=oe(J),m=ae(),g=ne("p"),b=ne("span"),y=oe(r[1]),v=ae(),w=ne("span"),E=oe(r[2]),A=ae(),M=ne("div"),C=ne("p"),B=oe(Q),H=ae(),I=ne("p"),T=ne("span"),T.textContent=""+r[4].get("Casino").balanceAmount,S=ae(),x=ne("span"),_=oe(r[2]),R=ae(),L=ne("div"),F=ne("p"),N=oe(X),O=ae(),P=ne("p"),k=ne("span"),k.textContent=""+r[4].get("UBS").balanceAmount,D=ae(),U=ne("span"),j=oe(r[2]),G=ae(),$=ne("div"),z=ne("button"),W=oe(K),se(o,"class","BalanceModalClose"),se(l,"class","BalanceModalTitle"),se(l,"part","BalanceModalTitle"),se(s,"class","BalanceModalHeader"),se(s,"part","BalanceModalHeader"),se(p,"class","BalanceModalText"),se(p,"part","BalanceModalText"),se(b,"class","BalanceModalAmount"),se(b,"part","BalanceModalAmount"),se(w,"class","BalanceModalCurrency"),se(w,"part","BalanceModalCurrency"),se(g,"class","BalanceModalValue"),se(g,"part","BalanceModalValue"),se(d,"class","BalanceModalRow"),se(d,"part","BalanceModalRow"),se(C,"class","BalanceModalText"),se(C,"part","BalanceModalText"),se(T,"class","BalanceModalAmount"),se(T,"part","BalanceModalAmount"),se(x,"class","BalanceModalCurrency"),se(x,"part","BalanceModalCurrency"),se(I,"class","BalanceModalValue"),se(I,"part","BalanceModalValue"),se(M,"class","BalanceModalRow"),se(M,"part","BalanceModalRow"),se(F,"class","BalanceModalText"),se(F,"part","BalanceModalText"),se(k,"class","BalanceModalAmount"),se(k,"part","BalanceModalAmount"),se(U,"class","BalanceModalCurrency"),se(U,"part","BalanceModalCurrency"),se(P,"class","BalanceModalValue"),se(P,"part","BalanceModalValue"),se(L,"class","BalanceModalRow"),se(L,"part","BalanceModalRow"),se(h,"class","BalanceModalBody"),se(h,"part","BalanceModalBody"),se(z,"class","BalanceModalAction"),se(z,"part","BalanceModalAction"),se($,"class","BalanceModalFooter"),se($,"part","BalanceModalFooter"),se(i,"class","BalanceModal"),se(i,"part","BalanceModal"),se(n,"class","BalanceModalWrapper"),se(n,"part","BalanceModalWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(n,a),ee(n,i),ee(i,s),ee(s,l),ee(l,c),ee(i,u),ee(i,h),ee(h,d),ee(d,p),ee(p,f),ee(d,m),ee(d,g),ee(g,b),ee(b,y),ee(g,v),ee(g,w),ee(w,E),ee(h,A),ee(h,M),ee(M,C),ee(C,B),ee(M,H),ee(M,I),ee(I,T),ee(I,S),ee(I,x),ee(x,_),ee(h,R),ee(h,L),ee(L,F),ee(F,N),ee(L,O),ee(L,P),ee(P,k),ee(P,D),ee(P,U),ee(U,j),ee(i,G),ee(i,$),ee($,z),ee(z,W),Z||(V=[ie(o,"click",r[12]),ie(z,"click",r[13])],Z=!0)},p(e,t){8&t&&Y!==(Y=e[3]("balanceModal.balanceTitle")+"")&&le(c,Y),8&t&&J!==(J=e[3]("balanceModal.totalBalance")+"")&&le(f,J),2&t&&le(y,e[1]),4&t&&le(E,e[2]),8&t&&Q!==(Q=e[3]("balanceModal.cashBalance")+"")&&le(B,Q),4&t&&le(_,e[2]),8&t&&X!==(X=e[3]("balanceModal.bonusBalance")+"")&&le(N,X),4&t&&le(j,e[2]),8&t&&K!==(K=e[3]("balanceModal.depositButton")+"")&&le(W,K)},d(e){e&&re(n),Z=!1,q(V)}}}function yo(r){let n,o,a;return{c(){n=ne("div"),se(n,"class","ShowBalanceModalOverlay"),se(n,"part","ShowBalanceModalOverlay")},m(e,t){te(e,n,t),o||(a=ie(n,"click",r[14]),o=!0)},p:E,d(e){e&&re(n),o=!1,a()}}}function vo(r){let n,o,a,i,s,l,c,u,h,d,p,f,m=r[0]&&bo(r),g=r[0]&&yo(r);return{c(){n=ne("div"),o=ne("p"),a=oe(r[1]),i=ae(),s=oe(r[2]),l=ae(),c=ne("span"),c.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',u=ae(),m&&m.c(),h=ae(),g&&g.c(),d=C(),this.c=E,se(o,"class","BalanceValue"),se(o,"part","BalanceValue"),se(n,"class","ShowBalance"),se(n,"part","ShowBalance")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,i),ee(o,s),ee(o,l),ee(o,c),ee(n,u),m&&m.m(n,null),te(e,h,t),g&&g.m(e,t),te(e,d,t),p||(f=ie(o,"click",r[11]),p=!0)},p(e,[t]){2&t&&le(a,e[1]),4&t&&le(s,e[2]),e[0]?m?m.p(e,t):(m=bo(e),m.c(),m.m(n,null)):m&&(m.d(1),m=null),e[0]?g?g.p(e,t):(g=yo(e),g.c(),g.m(d.parentNode,d)):g&&(g.d(1),g=null)},i:E,o:E,d(e){e&&re(n),m&&m.d(),e&&re(h),g&&g.d(e),e&&re(d),p=!1,f()}}}function wo(e,t,o){let r;U(e,Pn,e=>o(3,r=e));let n,{userid:a=""}=t,{session:i=""}=t,{endpoint:s=""}=t,{lang:l="en"}=t,c=!1,u="",h="",d=!1,p=new Map;Object.keys(po).forEach(e=>{gn(e,po[e])});const f=e=>{switch(e){case"balance":o(0,c=!0);break;case"closebalance":o(0,c=!1)}},m=()=>{f("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href)},g=()=>{var e=l;xn.set(e),(async e=>{try{d=!0;const t=await fetch(e,{method:"GET",headers:{"X-SessionID":i}}),r=await t.json();if(!t.ok)throw d=!1,new Error("Failed to fetch balance data !");{d=!1,r.items.map(e=>p.set(e.displayName,e));const e=p.get("Casino"),n=p.get("UBS");o(2,h=e.currency),o(1,u=(parseFloat(e.balanceAmount)+parseFloat(n.balanceAmount)).toFixed(2))}}catch(e){d=!1,console.log("Balance error: ",e)}finally{d=!1}})(`${s}/player/${a}/account`)},b=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&n.close()};return G(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b),n&&n.close()})),e.$$set=e=>{"userid"in e&&o(7,a=e.userid),"session"in e&&o(8,i=e.session),"endpoint"in e&&o(9,s=e.endpoint),"lang"in e&&o(10,l=e.lang)},e.$$.update=()=>{1920&e.$$.dirty&&s&&a&&i&&l&&g(),896&e.$$.dirty&&s&&a&&i&&((e,t)=>{let r=new go.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});n&&n.close(),n=r,r.addEventListener("message",e=>{try{var t=JSON.parse(e.data)["balanceChange"],r=p.get("Casino"),n=p.get("UBS");t&&t[r.id]&&p.set("Casino",Object.assign(Object.assign({},r),{balanceAmount:t[r.id].afterAmount})),t&&t[n.id]&&p.set("UBS",Object.assign(Object.assign({},r),{balanceAmount:t[n.id].afterAmount})),o(1,u=(parseFloat(r.balanceAmount)+parseFloat(n.balanceAmount)).toFixed(2))}catch(e){console.log("Balance stream failed: ",e)}})})(`${s}/player/${a}/balance/updates`,i)},[c,u,h,r,p,f,m,a,i,s,l,()=>f("balance"),()=>f("closebalance"),()=>m(),()=>f("closebalance")]}customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",class extends Q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;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}</style>",J(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},wo,vo,t,{userid:7,session:8,endpoint:9,lang:10},null),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["userid","session","endpoint","lang"]}get userid(){return this.$$.ctx[7]}set userid(e){this.$$set({userid:e}),D()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),D()}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$$set({endpoint:e}),D()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),D()}});var Eo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Ao(e,t,r){const n=e.slice();return n[63]=t[r],n}function Mo(e,t,r){const n=e.slice();return n[66]=t[r],n}function Co(e,t,r){const n=e.slice();return n[63]=t[r],n}function Bo(e,t,r){const n=e.slice();return n[66]=t[r],n}function Ho(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,e=r[19]("headerItem.login")+"",M=r[19]("headerItem.register")+"";function C(e){return e[13]?xo:So}let B=C(r),H=B(r),I=!r[8]&&_o(r),T=r[16],S=[];for(let e=0;e<T.length;e+=1)S[e]=Ro(Mo(r,T,e));let x=r[10],_=[];for(let e=0;e<x.length;e+=1)_[e]=Lo(Ao(r,x,e));return{c(){n=ne("header"),o=ne("div"),a=ne("div"),H.c(),i=ae(),s=ne("nav"),I&&I.c(),l=ae(),c=ne("div"),u=ne("div"),h=ne("div"),d=oe(e),p=ae(),f=ne("div"),m=oe(M),g=ae(),b=ne("select");for(let e=0;e<S.length;e+=1)S[e].c();y=ae(),v=ne("nav"),w=ne("ul");for(let e=0;e<_.length;e+=1)_[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(b,"class","Item ItemLanguage"),se(b,"part","Item ItemLanguage"),void 0===r[11]&&k(()=>r[45].call(b)),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(n,"class","HeaderWrapper"),se(n,"part","HeaderWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),H.m(a,null),ee(o,i),ee(o,s),I&&I.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,b);for(let e=0;e<S.length;e+=1)S[e].m(b,null);O(b,r[11]),ee(n,y),ee(n,v),ee(v,w);for(let e=0;e<_.length;e+=1)_[e].m(w,null);E||(A=[ie(a,"click",r[42]),ie(h,"click",r[43]),ie(f,"click",r[44]),ie(b,"change",r[45]),ie(b,"change",r[46])],E=!0)},p(t,r){if(B===(B=C(t))&&H?H.p(t,r):(H.d(1),H=B(t),H&&(H.c(),H.m(a,null))),t[8]?I&&(I.d(1),I=null):I?I.p(t,r):(I=_o(t),I.c(),I.m(s,null)),524288&r[0]&&e!==(e=t[19]("headerItem.login")+"")&&le(d,e),524288&r[0]&&M!==(M=t[19]("headerItem.register")+"")&&le(m,M),65536&r[0]){let e;for(T=t[16],e=0;e<T.length;e+=1){const a=Mo(t,T,e);S[e]?S[e].p(a,r):(S[e]=Ro(a),S[e].c(),S[e].m(b,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=T.length}if(67584&r[0]&&O(b,t[11]),1024&r[0]){let e;for(x=t[10],e=0;e<x.length;e+=1){const a=Ao(t,x,e);_[e]?_[e].p(a,r):(_[e]=Lo(a),_[e].c(),_[e].m(w,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=x.length}},d(e){e&&re(n),H.d(),I&&I.d(),N(S,e),N(_,e),E=!1,q(A)}}}function Io(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,M,C,B,H=r[19]("headerItem.login")+"",I=r[19]("headerItem.register")+"";function T(e){return e[13]?No:Fo}let S=T(r),x=S(r);return{c(){n=ne("header"),o=ne("div"),a=ne("div"),i=_("svg"),s=_("defs"),l=_("style"),c=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),u=_("g"),h=_("rect"),d=_("rect"),p=_("rect"),f=ae(),m=ne("div"),x.c(),g=ae(),b=ne("div"),y=ne("div"),v=ne("div"),w=oe(H),E=ae(),A=ne("div"),M=oe(I),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(A,"class","Item ItemRegister"),se(A,"part","Item ItemRegister"),se(y,"class","HeaderItemsMenu"),se(y,"part","HeaderItemsMenu"),se(b,"class","HeaderTopActions"),se(b,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(n,"class","HeaderWrapper HeaderMobileWrapper"),se(n,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,n,t),ee(n,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),x.m(m,null),ee(o,g),ee(o,b),ee(b,y),ee(y,v),ee(v,w),ee(y,E),ee(y,A),ee(A,M),C||(B=[ie(i,"click",r[38]),ie(m,"click",r[39]),ie(v,"click",r[40]),ie(A,"click",r[41])],C=!0)},p(e,t){S===(S=T(e))&&x?x.p(e,t):(x.d(1),x=S(e),x&&(x.c(),x.m(m,null))),524288&t[0]&&H!==(H=e[19]("headerItem.login")+"")&&le(w,H),524288&t[0]&&I!==(I=e[19]("headerItem.register")+"")&&le(M,I)},d(e){e&&re(n),x.d(),C=!1,q(B)}}}function To(e){let r;function n(e){return e[14]?Po:Oo}let o=n(e),a=o(e);return{c(){a.c(),r=C()},m(e,t){a.m(e,t),te(e,r,t)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r.parentNode,r)))},d(e){a.d(e),e&&re(r)}}}function So(e){let r,t;return{c(){r=ne("img"),b(r.src,t=Eo)||se(r,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg=="),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p:E,d(e){e&&re(r)}}}function xo(e){let r,n;return{c(){r=ne("img"),b(r.src,n=e[18])||se(r,"src",n),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p(e,t){262144&t[0]&&!b(r.src,n=e[18])&&se(r,"src",n)},d(e){e&&re(r)}}}function _o(r){let n,o,a,i;return{c(){n=ne("casino-slider"),R(n,"class","HeaderItemsMenu"),R(n,"part","HeaderItemsMenu"),R(n,"identity",Vo),R(n,"isprimarymenu","true"),R(n,"actionevent",r[6]),R(n,"activeindex",r[9]),R(n,"location","headerMain"),R(n,"endpoint",r[2]),R(n,"lang",r[3])},m(e,t){te(e,n,t),a||(i=s(o=r[22].call(null,n)),a=!0)},p(e,t){64&t[0]&&R(n,"actionevent",e[6]),512&t[0]&&R(n,"activeindex",e[9]),4&t[0]&&R(n,"endpoint",e[2]),8&t[0]&&R(n,"lang",e[3])},d(e){e&&re(n),a=!1,i()}}}function Ro(e){let r,n,o,a=e[66]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[66],r.value=r.__value},m(e,t){te(e,r,t),ee(r,n)},p(e,t){65536&t[0]&&a!==(a=e[66]+"")&&le(n,a),65536&t[0]&&o!==(o=e[66])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function Lo(e){let r,n,o,a,i=e[63].label+"";return{c(){r=ne("li"),n=ne("a"),o=oe(i),se(n,"href",a=e[63].path),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,n),ee(n,o)},p(e,t){1024&t[0]&&i!==(i=e[63].label+"")&&le(o,i),1024&t[0]&&a!==(a=e[63].path)&&se(n,"href",a)},d(e){e&&re(r)}}}function Fo(e){let r,t;return{c(){r=ne("img"),b(r.src,t=Eo)||se(r,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg=="),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p:E,d(e){e&&re(r)}}}function No(e){let r,n;return{c(){r=ne("img"),b(r.src,n=e[18])||se(r,"src",n),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p(e,t){262144&t[0]&&!b(r.src,n=e[18])&&se(r,"src",n)},d(e){e&&re(r)}}}function Oo(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,M,e=r[19]("headerItem.deposit")+"";function C(e){return e[13]?Do:ko}let B=C(r),H=B(r),I=!r[8]&&Uo(r),T=r[16],S=[];for(let e=0;e<T.length;e+=1)S[e]=jo(Bo(r,T,e));let x=r[10],_=[];for(let e=0;e<x.length;e+=1)_[e]=Go(Co(r,x,e));return{c(){n=ne("header"),o=ne("div"),a=ne("div"),H.c(),i=ae(),s=ne("nav"),I&&I.c(),l=ae(),c=ne("div"),u=ne("div"),h=ne("player-account-balance-modal"),d=ae(),p=ne("div"),f=oe(e),m=ae(),g=ne("div"),g.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>',b=ae(),y=ne("select");for(let e=0;e<S.length;e+=1)S[e].c();v=ae(),w=ne("nav"),E=ne("ul");for(let e=0;e<_.length;e+=1)_[e].c();se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(s,"class","HeaderMainNav"),se(s,"part","HeaderMainNav"),R(h,"session",r[0]),R(h,"userid",r[1]),R(h,"endpoint",r[2]),R(h,"lang",r[3]),se(p,"class","Item ItemDeposit"),se(p,"part","Item ItemDeposit"),se(g,"class","Item ItemAccount"),se(g,"part","Item ItemAccount"),se(y,"class","Item ItemLanguage"),se(y,"part","Item ItemLanguage"),void 0===r[11]&&k(()=>r[36].call(y)),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(n,"class","HeaderWrapper"),se(n,"part","HeaderWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),H.m(a,null),ee(o,i),ee(o,s),I&&I.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,b),ee(u,y);for(let e=0;e<S.length;e+=1)S[e].m(y,null);O(y,r[11]),ee(n,v),ee(n,w),ee(w,E);for(let e=0;e<_.length;e+=1)_[e].m(E,null);A||(M=[ie(a,"click",r[33]),ie(p,"click",r[34]),ie(g,"click",r[35]),ie(y,"change",r[36]),ie(y,"change",r[37])],A=!0)},p(t,r){if(B===(B=C(t))&&H?H.p(t,r):(H.d(1),H=B(t),H&&(H.c(),H.m(a,null))),t[8]?I&&(I.d(1),I=null):I?I.p(t,r):(I=Uo(t),I.c(),I.m(s,null)),1&r[0]&&R(h,"session",t[0]),2&r[0]&&R(h,"userid",t[1]),4&r[0]&&R(h,"endpoint",t[2]),8&r[0]&&R(h,"lang",t[3]),524288&r[0]&&e!==(e=t[19]("headerItem.deposit")+"")&&le(f,e),65536&r[0]){let e;for(T=t[16],e=0;e<T.length;e+=1){const a=Bo(t,T,e);S[e]?S[e].p(a,r):(S[e]=jo(a),S[e].c(),S[e].m(y,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=T.length}if(67584&r[0]&&O(y,t[11]),1024&r[0]){let e;for(x=t[10],e=0;e<x.length;e+=1){const a=Co(t,x,e);_[e]?_[e].p(a,r):(_[e]=Go(a),_[e].c(),_[e].m(E,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=x.length}},d(e){e&&re(n),H.d(),I&&I.d(),N(S,e),N(_,e),A=!1,q(M)}}}function Po(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v=r[19]("headerItem.deposit")+"",w=!r[17]&&$o(r);function E(e){return e[13]?Wo:zo}let A=E(r),M=A(r);return{c(){n=ne("header"),o=ne("div"),a=ne("div"),w&&w.c(),i=ae(),s=ne("div"),M.c(),l=ae(),c=ne("div"),u=ne("div"),h=ne("player-account-balance-modal"),d=ae(),p=ne("div"),f=oe(v),m=ae(),g=ne("div"),g.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"),R(h,"session",r[0]),R(h,"userid",r[1]),R(h,"endpoint",r[2]),R(h,"lang",r[3]),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(n,"class","HeaderWrapper HeaderMobileWrapper"),se(n,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,n,t),ee(n,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),b||(y=[ie(s,"click",r[30]),ie(p,"click",r[31]),ie(g,"click",r[32])],b=!0)},p(e,t){e[17]?w&&(w.d(1),w=null):w?w.p(e,t):(w=$o(e),w.c(),w.m(a,null)),A===(A=E(e))&&M?M.p(e,t):(M.d(1),M=A(e),M&&(M.c(),M.m(s,null))),1&t[0]&&R(h,"session",e[0]),2&t[0]&&R(h,"userid",e[1]),4&t[0]&&R(h,"endpoint",e[2]),8&t[0]&&R(h,"lang",e[3]),524288&t[0]&&v!==(v=e[19]("headerItem.deposit")+"")&&le(f,v)},d(e){e&&re(n),w&&w.d(),M.d(),b=!1,q(y)}}}function ko(e){let r,t;return{c(){r=ne("img"),b(r.src,t=Eo)||se(r,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg=="),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p:E,d(e){e&&re(r)}}}function Do(e){let r,n;return{c(){r=ne("img"),b(r.src,n=e[18])||se(r,"src",n),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p(e,t){262144&t[0]&&!b(r.src,n=e[18])&&se(r,"src",n)},d(e){e&&re(r)}}}function Uo(r){let n,o,a,i;return{c(){n=ne("casino-slider"),R(n,"class","HeaderItemsMenu"),R(n,"part","HeaderItemsMenu"),R(n,"identity",Vo),R(n,"isprimarymenu","true"),R(n,"actionevent",r[6]),R(n,"activeindex",r[9]),R(n,"endpoint",r[2]),R(n,"lang",r[3]),R(n,"location","headerMain"),R(n,"showsubgroups",r[7])},m(e,t){te(e,n,t),a||(i=s(o=r[22].call(null,n)),a=!0)},p(e,t){64&t[0]&&R(n,"actionevent",e[6]),512&t[0]&&R(n,"activeindex",e[9]),4&t[0]&&R(n,"endpoint",e[2]),8&t[0]&&R(n,"lang",e[3]),128&t[0]&&R(n,"showsubgroups",e[7])},d(e){e&&re(n),a=!1,i()}}}function jo(e){let r,n,o,a=e[66]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[66],r.value=r.__value,r.selected=!0},m(e,t){te(e,r,t),ee(r,n)},p(e,t){65536&t[0]&&a!==(a=e[66]+"")&&le(n,a),65536&t[0]&&o!==(o=e[66])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function Go(e){let r,n,o,a,i=e[63].label+"";return{c(){r=ne("li"),n=ne("a"),o=oe(i),se(n,"href",a=e[63].path),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,n),ee(n,o)},p(e,t){1024&t[0]&&i!==(i=e[63].label+"")&&le(o,i),1024&t[0]&&a!==(a=e[63].path)&&se(n,"href",a)},d(e){e&&re(r)}}}function $o(r){let n,o,a,i,s,l,c,u,h,d;return{c(){n=_("svg"),o=_("defs"),a=_("style"),i=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),s=_("g"),l=_("rect"),c=_("rect"),u=_("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(n,"xmlns","http://www.w3.org/2000/svg"),se(n,"width","22"),se(n,"height","16"),se(n,"viewBox","0 0 22 16")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(a,i),ee(n,s),ee(s,l),ee(s,c),ee(s,u),h||(d=ie(n,"click",r[29]),h=!0)},p:E,d(e){e&&re(n),h=!1,d()}}}function zo(e){let r,t;return{c(){r=ne("img"),b(r.src,t=Eo)||se(r,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg=="),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p:E,d(e){e&&re(r)}}}function Wo(e){let r,n;return{c(){r=ne("img"),b(r.src,n=e[18])||se(r,"src",n),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p(e,t){262144&t[0]&&!b(r.src,n=e[18])&&se(r,"src",n)},d(e){e&&re(r)}}}function Zo(e){let r,n;function o(e){return e[15]?To:e[14]?Io:Ho}let a=o(e),i=a(e);return{c(){i.c(),r=ae(),n=ne("casino-hamburger-menu"),this.c=E,R(n,"menuitemsurl",e[12]),R(n,"activecategory",e[5]),R(n,"lang",e[3]),R(n,"languageslist",e[4])},m(e,t){i.m(e,t),te(e,r,t),te(e,n,t)},p(e,t){a===(a=o(e))&&i?i.p(e,t):(i.d(1),i=a(e),i&&(i.c(),i.m(r.parentNode,r))),4096&t[0]&&R(n,"menuitemsurl",e[12]),32&t[0]&&R(n,"activecategory",e[5]),8&t[0]&&R(n,"lang",e[3]),16&t[0]&&R(n,"languageslist",e[4])},i:E,o:E,d(e){i.d(e),e&&re(r),e&&re(n)}}}let Vo="HeaderMenu";function Yo(r,e,n){let t;U(r,Pn,e=>n(19,t=e));let o,{session:a=""}=e,{userid:i=""}=e,{endpoint:s=""}=e,{cmsendpoint:l=""}=e,{cmsenv:c="stage"}=e,{lang:u="en"}=e,{languageslist:h="en, ro"}=e,{activecategory:d=""}=e,{operatorid:p=""}=e,{pagetag:f=""}=e,{positiontag:m=""}=e,{actionevent:g=""}=e,{userroles:b=""}=e,{showsubgroups:y="false"}=e;var v,w;({withLocale:v,translations:w}={withLocale:"en",translations:{}}),xn.subscribe(e=>{null==e&&(fn.set(w),xn.set(v))}),Object.keys(Dn).forEach(e=>{gn(e,Dn[e])});let E,A,M,C=[],B=[],H="",I=!0,T=!1,S=!1,x=window.navigator.userAgent,_=!1,R=[],L=!1,F="";const N=e=>{switch(e){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href);break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href);break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:kn(x)},window.location.href);break;case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href);break;case"language":window.postMessage({type:"LanguageChanged",selectedLanguage:H},window.location.href)}},O=()=>{n(17,L=!0),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},P=e=>{if(e.data)switch(e.data.type){case"UserSessionID":e.data.userid,e.data.session,n(15,_=!0);break;case"CloseHamburgerMenu":window.postMessage({type:"EnableScroll"},window.location.href),e.data.showhamburger&&n(17,L=!1);break;case"LogoutSuccessfull":n(15,_=!1);break;case"LanguageChanged":k(),D(A)}},k=()=>{A=new URL(`${l}/${H.toLowerCase()}/menu`),n(12,E=new URL(`${l}/${H.toLowerCase()}/hamburger-menu`)),M=new URL(`${l}/${H.toLowerCase()}/op-options/style`),A.searchParams.append("device","dk"),A.searchParams.append("env",c),A.searchParams.append("language",H.toLowerCase()),A.searchParams.append("platform","dk"),A.searchParams.append("userRoles",b),E.searchParams.append("device","dk"),E.searchParams.append("env",c),E.searchParams.append("language",H.toLowerCase()),E.searchParams.append("platform","dk"),E.searchParams.append("userRoles",b)},D=e=>(n(8,I=!0),new Promise((t,r)=>{fetch(e).then(e=>e.json()).then(e=>{C=e.desktop.primary,n(10,B=e.desktop.secondary),n(8,I=!1),t(e)},e=>{n(8,I=!1),console.error(e),r(e)})}));return G(async()=>(window.addEventListener("message",P,!1),kn(x)&&n(14,S=!0),()=>{window.removeEventListener("message",P)})),r.$$set=e=>{"session"in e&&n(0,a=e.session),"userid"in e&&n(1,i=e.userid),"endpoint"in e&&n(2,s=e.endpoint),"cmsendpoint"in e&&n(23,l=e.cmsendpoint),"cmsenv"in e&&n(24,c=e.cmsenv),"lang"in e&&n(3,u=e.lang),"languageslist"in e&&n(4,h=e.languageslist),"activecategory"in e&&n(5,d=e.activecategory),"operatorid"in e&&n(25,p=e.operatorid),"pagetag"in e&&n(26,f=e.pagetag),"positiontag"in e&&n(27,m=e.positiontag),"actionevent"in e&&n(6,g=e.actionevent),"userroles"in e&&n(28,b=e.userroles),"showsubgroups"in e&&n(7,y=e.showsubgroups)},r.$$.update=()=>{var e,t;288&r.$$.dirty[0]&&d&&!I&&n(9,o=C.findIndex(e=>-1<e.path.indexOf(d)).toString()),1&r.$$.dirty[0]&&a&&n(15,_=!0),8&r.$$.dirty[0]&&u&&(t=u,xn.set(t)),276824088&r.$$.dirty[0]&&l&&u&&h&&b&&(n(16,R=h.replace(/ /g,"").split(",")),n(16,R=R.map(e=>e.toUpperCase())),n(11,H=u.toUpperCase()),k(),e=M,n(13,T=!1),new Promise((t,r)=>{fetch(e).then(e=>e.json()).then(e=>{0<e.logoUrl.length&&("null"!=e.logoUrl||"false"!=e.logoUrl)?(n(18,F=e.logoUrl),n(13,T=!0)):n(13,T=!1),t(e)},e=>{n(13,T=!1),console.error(e),r(e)})}),setTimeout(()=>{D(A)}))},[a,i,s,u,h,d,g,y,I,o,B,H,E,T,S,_,R,L,F,t,N,O,e=>{window.postMessage({type:"SliderData",identity:Vo,data:C},window.location.href)},l,c,p,f,m,b,()=>O(),()=>N("lobby"),()=>N("deposit"),()=>N("myaccount"),()=>N("lobby"),()=>N("deposit"),()=>N("myaccount"),function(){H=j(this),n(11,H),n(16,R)},()=>N("language"),()=>O(),()=>N("lobby"),()=>N("login"),()=>N("register"),()=>N("lobby"),()=>N("login"),()=>N("register"),function(){H=j(this),n(11,H),n(16,R)},()=>N("language")]}class Jo extends Q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.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 a{color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none}.HeaderItemsMenuSecondary .ItemSecondary:hover a{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}</style>",J(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Yo,Zo,t,{session:0,userid:1,endpoint:2,cmsendpoint:23,cmsenv:24,lang:3,languageslist:4,activecategory:5,operatorid:25,pagetag:26,positiontag:27,actionevent:6,userroles:28,showsubgroups:7},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","operatorid","pagetag","positiontag","actionevent","userroles","showsubgroups"]}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[23]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),D()}get cmsenv(){return this.$$.ctx[24]}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 operatorid(){return this.$$.ctx[25]}set operatorid(e){this.$$set({operatorid:e}),D()}get pagetag(){return this.$$.ctx[26]}set pagetag(e){this.$$set({pagetag:e}),D()}get positiontag(){return this.$$.ctx[27]}set positiontag(e){this.$$set({positiontag:e}),D()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),D()}get userroles(){return this.$$.ctx[28]}set userroles(e){this.$$set({userroles:e}),D()}get showsubgroups(){return this.$$.ctx[7]}set showsubgroups(e){this.$$set({showsubgroups:e}),D()}}return customElements.get("casino-header-controller")||customElements.define("casino-header-controller",Jo),Jo});
3
+ }`,d=`__svelte_${function(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}(h)}_`+s,p=M(e),{stylesheet:f,rules:m}=B.get(p)||(l=p,g={stylesheet:(s=e,g=ne("style"),ee((s=M(s)).head||s,g),g.sheet),rules:{}},B.set(l,g),g);m[d]||(m[d]=!0,f.insertRule(`@keyframes ${d} `+h,f.cssRules.length));var g=e.style.animation||"";return e.style.animation=(g?g+", ":"")+d+` ${n}ms linear ${o}ms 1 both`,H+=1,d}function T(e){f=e}function G(e){!function(){if(!f)throw new Error("Function called outside component initialization");return f}().$$.on_mount.push(e)}const S=[],P=[],o=[],a=[],x=Promise.resolve();let L=!1;function k(e){o.push(e)}const i=new Set;let F,l=0;function D(){const e=f;do{for(;l<S.length;){const e=S[l];l++,T(e),function(e){{var t;null!==e.fragment&&(e.update(),q(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(k))}}(e.$$)}for(T(null),S.length=0,l=0;P.length;)P.pop()();for(let e=0;e<o.length;e+=1){const t=o[e];i.has(t)||(i.add(t),t())}}while(o.length=0,S.length);for(;a.length;)a.pop()();L=!1,i.clear(),T(e)}function $(e,t,r){e.dispatchEvent(function(e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}((t?"intro":"outro")+r))}const c=new Set;let z;function W(e,t){e&&e.i&&(c.delete(e),e.i(t))}function u(e,t,r,n){e&&e.o&&(c.has(e)||(c.add(e),z.c.push(()=>{c.delete(e),n&&(r&&e.d(1),n())}),e.o(t)))}const Z={duration:0};function V(s,e,t,r){let l=e(s,t),c=r?0:1,u=null,h=null,d=null;function p(){d&&function(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=r.length-n.length;o&&(e.style.animation=n.join(", "),H-=o,H||v(()=>{H||(B.forEach(e=>{const t=e["stylesheet"];let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.rules={}}),B.clear())}))}(s,d)}function f(e,t){var r=e.b-c;return t*=Math.abs(r),{a:c,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:r=300,easing:n=m,tick:o=E,css:a}=l||Z,i={start:y()+t,b:e};e||(i.group=z,z.r+=1),u||h?h=i:(a&&(p(),d=I(s,c,e,r,t,n,a)),e&&o(0,1),u=f(i,r),k(()=>$(s,e,"start")),function(t){let r;0===w.size&&v(A),new Promise(e=>{w.add(r={c:t,f:e})})}(e=>{return h&&e>h.start&&(u=f(h,r),h=null,$(s,u.b,"start"),a&&(p(),d=I(s,c,u.b,u.duration,0,n,l.css))),u&&(e>=u.end?(o(c=u.b,1-c),$(s,u.b,"end"),h||(u.b?p():--u.group.r||q(u.group.c)),u=null):e>=u.start&&(e=e-u.start,c=u.a+u.d*n(e/u.duration),o(c,1-c))),!(!u&&!h)}))}return{run(e){g(l)?(F||(F=Promise.resolve(),F.then(()=>{F=null})),F.then(()=>{l=l(),n(e)})):n(e)},end(){p(),u=h=null}}}function Y(e,t){e.d(1),t.delete(e.key)}function J(n,e,t,r,o,a,i,s=[-1]){var l=f;T(n);const c=n.$$={fragment:null,ctx:null,props:a,update:E,not_equal:o,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:d(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(S.push(e),L||(L=!0,x.then(D)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,q(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const E=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(E),E.forEach(re)}else c.fragment&&c.fragment.c();e.intro&&W(n.$$.fragment),function(t,e,r,n){const{fragment:o,on_mount:a,on_destroy:i,after_update:s}=t.$$;o&&o.m(e,r),n||k(()=>{var e=a.map(h).filter(g);i?i.push(...e):q(e),t.$$.on_mount=[]}),s.forEach(k)}(n,e.target,e.anchor,e.customElement),D()}T(l)}let Q;"function"==typeof HTMLElement&&(Q=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(h).filter(g);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){q(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(q(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=E}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var X,K,ce="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==ce&&ce,ue="URLSearchParams"in ce,he="Symbol"in ce&&"iterator"in Symbol,de="FileReader"in ce&&"Blob"in ce&&function(){try{return new Blob,!0}catch(e){return!1}}(),pe="FormData"in ce,fe="ArrayBuffer"in ce;function me(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 ge(e){return e="string"!=typeof e?String(e):e}function be(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return he&&(e[Symbol.iterator]=function(){return e}),e}function ye(t){this.map={},t instanceof ye?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 ve(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function we(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Ee(e){var t=new FileReader,r=we(t);return t.readAsArrayBuffer(e),r}function Ae(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Me(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:de&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fe&&de&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ae(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):fe&&(ArrayBuffer.prototype.isPrototypeOf(e)||K(e))?this._bodyArrayBuffer=Ae(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):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},de&&(this.blob=function(){var e=ve(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?ve(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(Ee)}),this.text=function(){var e,t,r=ve(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=we(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pe&&(this.formData=function(){return this.text().then(He)}),this.json=function(){return this.text().then(JSON.parse)},this}fe&&(X=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(e){return e&&-1<X.indexOf(Object.prototype.toString.call(e))}),ye.prototype.append=function(e,t){e=me(e),t=ge(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},ye.prototype.delete=function(e){delete this.map[me(e)]},ye.prototype.get=function(e){return e=me(e),this.has(e)?this.map[e]:null},ye.prototype.has=function(e){return this.map.hasOwnProperty(me(e))},ye.prototype.set=function(e,t){this.map[me(e)]=ge(t)},ye.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},ye.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),be(r)},ye.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),be(t)},ye.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),be(r)},he&&(ye.prototype[Symbol.iterator]=ye.prototype.entries);var Ce=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Be(e,t){if(!(this instanceof Be))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof Be){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ye(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 ye(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<Ce.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function He(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function Ie(e,t){if(!(this instanceof Ie))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 ye(t.headers),this.url=t.url||"",this._initBody(e)}Be.prototype.clone=function(){return new Be(this,{body:this._bodyInit})},Me.call(Be.prototype),Me.call(Ie.prototype),Ie.prototype.clone=function(){return new Ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ye(this.headers),url:this.url})},Ie.error=function(){var e=new Ie(null,{status:0,statusText:""});return e.type="error",e};var Te=[301,302,303,307,308];Ie.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new Ie(null,{status:t,headers:{location:e}})};var Se=ce.DOMException;try{new Se}catch(E){(Se=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),Se.prototype.constructor=Se}function xe(n,i){return new Promise(function(o,e){var t=new Be(n,i);if(t.signal&&t.signal.aborted)return e(new Se("Aborted","AbortError"));var a=new XMLHttpRequest;function r(){a.abort()}a.onload=function(){var e,r,t={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",r=new ye,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 t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;setTimeout(function(){o(new Ie(n,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 Se("Aborted","AbortError"))},0)},a.open(t.method,function(t){try{return""===t&&ce.location.href?ce.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&&(de?a.responseType="blob":fe&&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 ye?t.headers.forEach(function(e,t){a.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){a.setRequestHeader(e,ge(i.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),a.onreadystatechange=function(){4===a.readyState&&t.signal.removeEventListener("abort",r)}),a.send(void 0===t._bodyInit?null:t._bodyInit)})}xe.polyfill=!0,ce.fetch||(ce.fetch=xe,ce.Headers=ye,ce.Request=Be,ce.Response=Ie);var _e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};self.fetch.bind(self);var Re=function(e,t){return(Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Re(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Fe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ne(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||0<t--)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function Oe(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Pe(e){return"function"==typeof e}function ke(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 De=ke(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 Ue(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var je=($e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var i=Fe(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(Pe(a))try{a()}catch(e){o=e instanceof De?e.errors:[e]}a=this._finalizers;if(a){this._finalizers=null;try{for(var l=Fe(a),c=l.next();!c.done;c=l.next()){var u=c.value;try{We(u)}catch(e){o=null!=o?o:[],e instanceof De?o=Oe(Oe([],Ne(o)),Ne(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new De(o)}},$e.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)We(e);else{if(e instanceof $e){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}},$e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},$e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},$e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ue(t,e)},$e.prototype.remove=function(e){var t=this._finalizers;t&&Ue(t,e),e instanceof $e&&e._removeParent(this)},$e.EMPTY=((yr=new $e).closed=!0,yr),$e),Ge=je.EMPTY;function $e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function ze(e){return e instanceof je||e&&"closed"in e&&Pe(e.remove)&&Pe(e.add)&&Pe(e.unsubscribe)}function We(e){Pe(e)?e():e.unsubscribe()}var Ze=void 0,Ve=!1,Ye=!1,Je={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Je.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Oe([e,t],Ne(r))):setTimeout.apply(void 0,Oe([e,t],Ne(r)))},clearTimeout:function(e){var t=Je.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Qe(){}var Xe=null;function Ke(e){if(Ve){var t=!Xe;if(t&&(Xe={errorThrown:!1,error:null}),e(),t){var r=Xe,t=r.errorThrown,r=r.error;if(Xe=null,t)throw r}}else e()}var qe,et=(Le(rt,qe=je),rt.create=function(e,t,r){return new it(e,t,r)},rt.prototype.next=function(e){this.isStopped||this._next(e)},rt.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},rt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},rt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,qe.prototype.unsubscribe.call(this),this.destination=null)},rt.prototype._next=function(e){this.destination.next(e)},rt.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},rt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},rt),tt=Function.prototype.bind;function rt(e){var t=qe.call(this)||this;return t.isStopped=!1,e?ze(t.destination=e)&&e.add(t):t.destination=ut,t}function nt(e,t){return tt.call(e,t)}var ot,at=(lt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ct(e)}},lt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ct(e)}else ct(e)},lt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ct(e)}},lt),it=(Le(st,ot=et),st);function st(e,t,r){var n=ot.call(this)||this,e=Pe(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&Ye?((r=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&nt(e.next,r),error:e.error&&nt(e.error,r),complete:e.complete&&nt(e.complete,r)}):e;return n.destination=new at(e),n}function lt(e){this.partialObserver=e}function ct(e){var t=e;Je.setTimeout(function(){throw t})}var ut={closed:!0,next:Qe,error:function(e){throw e},complete:Qe},ht="function"==typeof Symbol&&Symbol.observable||"@@observable";function dt(e){return e}var pt=(ft.prototype.lift=function(e){var t=new ft;return t.source=this,t.operator=e,t},ft.prototype.subscribe=function(e,t,r){var n,o=this,a=(n=e)&&n instanceof et||n&&Pe(n.next)&&Pe(n.error)&&Pe(n.complete)&&ze(n)?e:new it(e,t,r);return Ke(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},ft.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},ft.prototype.forEach=function(n,e){var o=this;return new(e=mt(e))(function(e,t){var r=new it({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});o.subscribe(r)})},ft.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},ft.prototype[ht]=function(){return this},ft.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?dt:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},ft.prototype.toPromise=function(e){var n=this;return new(e=mt(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},ft.create=function(e){return new ft(e)},ft);function ft(e){e&&(this._subscribe=e)}function mt(e){return null!==(e=null!=e?e:Ze)&&void 0!==e?e:Promise}var gt,bt,yt,vt=ke(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wt=(Le(Ht,yt=pt),Ht.prototype.lift=function(e){var t=new Et(this,this);return t.operator=e,t},Ht.prototype._throwIfClosed=function(){if(this.closed)throw new vt},Ht.prototype.next=function(o){var a=this;Ke(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var r=Fe(a.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(o)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},Ht.prototype.error=function(t){var r=this;Ke(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},Ht.prototype.complete=function(){var t=this;Ke(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Ht.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(Ht.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Ht.prototype._trySubscribe=function(e){return this._throwIfClosed(),yt.prototype._trySubscribe.call(this,e)},Ht.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Ht.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,o=this.observers;return r||n?Ge:(this.currentObservers=null,o.push(e),new je(function(){t.currentObservers=null,Ue(o,e)}))},Ht.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Ht.prototype.asObservable=function(){var e=new pt;return e.source=this,e},Ht.create=function(e,t){return new Et(e,t)},Ht),Et=(Le(Bt,bt=wt),Bt.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Bt.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Bt.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Bt.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:Ge},Bt),At={now:function(){return(At.delegate||Date).now()},delegate:void 0},Mt=(Le(Ct,gt=wt),Ct.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,a=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(a.now()+t)),this._trimBuffer(),gt.prototype.next.call(this,e)},Ct.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},Ct.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var a=t.now(),i=0,s=1;s<r.length&&r[s]<=a;s+=2)i=s;i&&r.splice(0,i+1)}},Ct);function Ct(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=At);var n=gt.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Bt(e,t){var r=bt.call(this)||this;return r.destination=e,r.source=t,r}function Ht(){var e=yt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let It=[],Tt={};const St=[];function xt(n,o=E){let a;const i=new Set;function s(e){if(t(n,e)&&(n=e,a)){const e=!St.length;for(const e of i)e[1](),St.push(e,n);if(e){for(let e=0;e<St.length;e+=2)St[e][0](St[e+1]);St.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=E){const r=[e,t];return i.add(r),1===i.size&&(a=o(s)||E),e(n),()=>{i.delete(r),0===i.size&&(a(),a=null)}}}}function _t(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:xt(t,t=>{let r=!1;const n=[];let o=0,a=E;const i=()=>{var e;o||(a(),e=s(l?n[0]:n,t),u?t(e):a=g(e)?e:E)},e=c.map((e,t)=>p(e,e=>{n[t]=e,o&=~(1<<t),r&&i()},()=>{o|=1<<t}));return r=!0,i(),function(){q(e),a()}}).subscribe}}function Rt(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===Lt));var t}var Lt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ft(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Dt(Array.isArray(e)?[]:{},e,t):e}function Nt(e,t,r){return e.concat(t).map(function(e){return Ft(e,r)})}function Ot(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Pt(e,t){try{return t in e}catch(e){return!1}}function kt(n,o,a){var i={};return a.isMergeableObject(n)&&Ot(n).forEach(function(e){i[e]=Ft(n[e],a)}),Ot(o).forEach(function(t){var e,r;(!Pt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Pt(n,t)&&a.isMergeableObject(o[t])?i[t]=function(e){if(!e.customMerge)return Dt;e=e.customMerge(t);return"function"==typeof e?e:Dt}(a)(n[t],o[t],a):i[t]=Ft(o[t],a))}),i}function Dt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Nt,r.isMergeableObject=r.isMergeableObject||Rt,r.cloneUnlessOtherwiseSpecified=Ft;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):kt(e,t,r):Ft(t,r)}Dt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return Dt(e,t,r)},{})};var Ut=Dt,jt=function(e,t){return(jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}jt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var $t,zt,Wt,Zt=function(){return(Zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Vt(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Yt(e){return e.type===zt.literal}function Jt(e){return e.type===zt.number}function Qt(e){return e.type===zt.date}function Xt(e){return e.type===zt.time}function Kt(e){return e.type===zt.select}function qt(e){return e.type===zt.plural}function er(e){return e.type===zt.tag}function tr(e){return e&&"object"==typeof e&&e.type===Wt.number}function rr(e){return e&&"object"==typeof e&&e.type===Wt.dateTime}(vr=$t=$t||{})[vr.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",vr[vr.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",vr[vr.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",vr[vr.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",vr[vr.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",vr[vr.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",vr[vr.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",vr[vr.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",vr[vr.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",vr[vr.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",vr[vr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",vr[vr.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",vr[vr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",vr[vr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",vr[vr.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",vr[vr.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",vr[vr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",vr[vr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",vr[vr.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",vr[vr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",vr[vr.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",vr[vr.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",vr[vr.INVALID_TAG=23]="INVALID_TAG",vr[vr.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",vr[vr.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",vr[vr.UNCLOSED_TAG=27]="UNCLOSED_TAG",(wr=zt=zt||{})[wr.literal=0]="literal",wr[wr.argument=1]="argument",wr[wr.number=2]="number",wr[wr.date=3]="date",wr[wr.time=4]="time",wr[wr.select=5]="select",wr[wr.plural=6]="plural",wr[wr.pound=7]="pound",wr[wr.tag=8]="tag",(Er=Wt=Wt||{})[Er.number=0]="number",Er[Er.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,nr=/(?:[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 or=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ar=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ir=/^(@+)?(\+|#+)?[rs]?$/g,sr=/(\*)(0+)|(#+)(0+)|(0+)/g,lr=/^(0+)$/;function cr(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(ir,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function ur(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 hr(e){return ur(e)||{}}function dr(e){for(var i={},t=0,r=e;t<r.length;t++){var n=r[t];switch(n.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=n.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=n.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=Zt(Zt(Zt({},i),{notation:"scientific"}),n.options.reduce(function(e,t){return Zt(Zt({},e),hr(t))},{}));continue;case"engineering":i=Zt(Zt(Zt({},i),{notation:"engineering"}),n.options.reduce(function(e,t){return Zt(Zt({},e),hr(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(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(sr,function(e,t,r,n,o,a){if(t)i.minimumIntegerDigits=r.length;else{if(n&&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(lr.test(n.stem))i.minimumIntegerDigits=n.stem.length;else if(ar.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(ar,function(e,t,r,n,o,a){return"*"===r?i.minimumFractionDigits=t.length:n&&"#"===n[0]?i.maximumFractionDigits=n.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var o=n.options[0];"w"===o?i=Zt(Zt({},i),{trailingZeroDisplay:"stripIfInteger"}):o&&(i=Zt(Zt({},i),cr(o)))}else ir.test(n.stem)?i=Zt(Zt({},i),cr(n.stem)):((o=ur(n.stem))&&(i=Zt(Zt({},i),o)),(o=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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!lr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(i=Zt(Zt({},i),o)))}return i}var pr,fr={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 mr=new RegExp("^".concat(e.source,"*")),gr=new RegExp("".concat(e.source,"*$"));function br(e,t){return{start:e,end:t}}var yr=!!String.prototype.startsWith,ht=!!String.fromCodePoint,wt=!!Object.fromEntries,vr=!!String.prototype.codePointAt,wr=!!String.prototype.trimStart,Er=!!String.prototype.trimEnd,Ar=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},e=!0;try{e="a"===(null===(pr=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===pr?void 0:pr[0])}catch(E){e=!1}var Mr,Cr,Br=yr?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Hr=ht?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,a=0;a<o;){if(1114111<(r=e[a++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ir=wt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],a=o[0],o=o[1];t[a]=o}return t},Tr=vr?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,o=e.charCodeAt(t);return o<55296||56319<o||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},Sr=wr?function(e){return e.trimStart()}:function(e){return e.replace(mr,"")},xr=Er?function(e){return e.trimEnd()}:function(e){return e.replace(gr,"")};function _r(e,t){return new RegExp(e,t)}Cr=e?(Mr=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Mr.lastIndex=t,null!==(e=Mr.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=Tr(e,t);if(void 0===o||Nr(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return Hr.apply(void 0,n)};var Rr=(Lr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Lr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,r)).err)return o;n.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(r)break;return this.error($t.UNMATCHED_CLOSING_TAG,br(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Fr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{a=this.clonePosition();this.bump(),n.push({type:zt.pound,location:br(a,this.clonePosition())})}}}return{val:n,err:null}},Lr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:zt.literal,value:"<".concat(n,"/>"),location:br(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fr(this.char()))return this.error($t.INVALID_TAG,br(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error($t.UNMATCHED_CLOSING_TAG,br(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:zt.tag,value:n,children:e,location:br(r,this.clonePosition())},err:null}:this.error($t.INVALID_TAG,br(t,this.clonePosition())))}return this.error($t.UNCLOSED_TAG,br(r,this.clonePosition()))}return this.error($t.INVALID_TAG,br(r,this.clonePosition()))},Lr.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())},Lr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=br(r,this.clonePosition());return{val:{type:zt.literal,value:n,location:r},err:null}},Lr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Fr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Lr.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 r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Hr.apply(void 0,t)},Lr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Hr(r))},Lr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($t.EXPECT_ARGUMENT_CLOSING_BRACE,br(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error($t.EMPTY_ARGUMENT,br(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error($t.MALFORMED_ARGUMENT,br(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($t.EXPECT_ARGUMENT_CLOSING_BRACE,br(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:zt.argument,value:n,location:br(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($t.EXPECT_ARGUMENT_CLOSING_BRACE,br(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error($t.MALFORMED_ARGUMENT,br(r,this.clonePosition()))}},Lr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Cr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:br(e,this.clonePosition())}},Lr.prototype.parseArgumentOptions=function(e,t,r,n){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error($t.EXPECT_ARGUMENT_TYPE,br(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(d=xr(p.val)).length)return this.error($t.EXPECT_ARGUMENT_STYLE,br(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:br(c,this.clonePosition())}}if((f=this.tryParseArgumentClose(n)).err)return f;var u=br(n,this.clonePosition());if(l&&Br(null==l?void 0:l.style,"::",0)){var h=Sr(l.style.slice(2));if("number"===i)return(p=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?p:{val:{type:zt.number,value:r,location:u,style:p.val},err:null};if(0===h.length)return this.error($t.EXPECT_DATE_TIME_SKELETON,u);c=h;this.locale&&(c=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var a=0;n+1<e.length&&e.charAt(n+1)===o;)a++,n++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(fr[t||""]||fr[r||""]||fr["".concat(r,"-001")]||fr["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)r+="a";for(;0<i--;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale));var d={type:Wt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(nr,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===i?zt.date:zt.time,value:r,location:u,style:d},err:null}}return{val:{type:"number"===i?zt.number:"date"===i?zt.date:zt.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($t.EXPECT_SELECT_ARGUMENT_OPTIONS,br(l,Zt({},l)));this.bumpSpace();var p,u=this.parseIdentifierIfPossible(),l=0;if("select"!==i&&"offset"===u.value){if(!this.bumpIf(":"))return this.error($t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,br(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger($t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=p.val}u=this.tryParsePluralOrSelectOptions(e,i,t,u);if(u.err)return u;if((f=this.tryParseArgumentClose(n)).err)return f;var f=br(n,this.clonePosition());return"select"===i?{val:{type:zt.select,value:r,options:Ir(u.val),location:f},err:null}:{val:{type:zt.plural,value:r,options:Ir(u.val),offset:l,pluralType:"plural"===i?"cardinal":"ordinal",location:f},err:null};default:return this.error($t.INVALID_ARGUMENT_TYPE,br(a,s))}},Lr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error($t.EXPECT_ARGUMENT_CLOSING_BRACE,br(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Lr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error($t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,br(r,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}},Lr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(or).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].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($t.INVALID_NUMBER_SKELETON,t)}return{val:{type:Wt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?dr(r):{}},err:null}},Lr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,a=[],i=new Set,s=n.value,l=n.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger($t.EXPECT_PLURAL_ARGUMENT_SELECTOR,$t.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=br(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?$t.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?$t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,br(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(h);if(c.err)return c;a.push([s,{value:u.val,location:br(h,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===a.length?this.error("select"===t?$t.EXPECT_SELECT_ARGUMENT_SELECTOR:$t.EXPECT_PLURAL_ARGUMENT_SELECTOR,br(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error($t.MISSING_OTHER_CLAUSE,br(this.clonePosition(),this.clonePosition())):{val:a,err:null}},Lr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-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()}n=br(n,this.clonePosition());return o?Ar(a*=r)?{val:a,err:null}:this.error(t,n):this.error(e,n)},Lr.prototype.offset=function(){return this.position.offset},Lr.prototype.isEOF=function(){return this.offset()===this.message.length},Lr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Lr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Tr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},Lr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Lr.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))},Lr.prototype.bumpIf=function(e){if(Br(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Lr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Lr.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}},Lr.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nr(this.char());)this.bump()},Lr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Lr);function Lr(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 Fr(e){return 97<=e&&e<=122||65<=e&&e<=90}function Nr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Or(e,t){t=Zt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Rr(e,t).parse();if(r.err){e=SyntaxError($t[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Kt(e)||qt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Jt(e)&&tr(e.style)||(Qt(e)||Xt(e))&&rr(e.style)?delete e.style.location:er(e)&&r(e.children)})}(r.val),r.val}function Pr(e,t){var r=t&&t.cache?t.cache:zr,n=t&&t.serializer?t.serializer:jr;return(t&&t.strategy?t.strategy:function(e,t){return Ur(e,this,1===e.length?kr:Dr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function kr(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(o);return void 0===r&&(r=e.call(this,n),t.set(o,r)),r}function Dr(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=t.get(o);return void 0===r&&(r=e.apply(this,n),t.set(o,r)),r}function Ur(e,t,r,n,o){return r.bind(t,e,n,o)}var jr=function(){return JSON.stringify(arguments)};function Gr(){this.cache=Object.create(null)}Gr.prototype.get=function(e){return this.cache[e]},Gr.prototype.set=function(e,t){this.cache[e]=t};var $r,zr={create:function(){return new Gr}},Wr={variadic:function(e,t){return Ur(e,this,Dr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ur(e,this,kr,t.cache.create(),t.serializer)}};(e=$r=$r||{}).MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";var Zr,Vr,Yr,Jr,Qr,Xr=(Gt(on,Qr=Error),on.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},on),Kr=(Gt(nn,Jr=Xr),nn),qr=(Gt(rn,Yr=Xr),rn),en=(Gt(tn,Vr=Xr),tn);function tn(e,t){return Vr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),$r.MISSING_VALUE,t)||this}function rn(e,t,r){return Yr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),$r.INVALID_VALUE,r)||this}function nn(e,t,r,n){return Jr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),$r.INVALID_VALUE,n)||this}function on(e,t,r){e=Qr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function an(e,t,r,n,o,a,i){if(1===e.length&&Yt(e[0]))return[{type:Zr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Yt(u))s.push({type:Zr.literal,value:u.value});else if(u.type===zt.pound)"number"==typeof a&&s.push({type:Zr.literal,value:r.getNumberFormat(t).format(a)});else{var h=u.value;if(!(o&&h in o))throw new en(h,i);var d=o[h];if(u.type===zt.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?Zr.literal:Zr.object,value:d});else if(Qt(u)){var p="string"==typeof u.style?n.date[u.style]:rr(u.style)?u.style.parsedOptions:void 0;s.push({type:Zr.literal,value:r.getDateTimeFormat(t,p).format(d)})}else if(Xt(u))p="string"==typeof u.style?n.time[u.style]:rr(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:Zr.literal,value:r.getDateTimeFormat(t,p).format(d)});else if(Jt(u))(p="string"==typeof u.style?n.number[u.style]:tr(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:Zr.literal,value:r.getNumberFormat(t,p).format(d)});else{if(er(u)){var f=u.children,m=u.value,h=o[m];if("function"!=typeof h)throw new qr(m,"function",i);f=h(an(f,t,r,n,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?Zr.literal:Zr.object,value:e}}))}if(Kt(u)){if(!(g=u.options[d]||u.options.other))throw new Kr(u.value,d,Object.keys(u.options),i);s.push.apply(s,an(g.value,t,r,n,o))}else if(qt(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Xr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',$r.MISSING_INTL_API,i);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new Kr(u.value,d,Object.keys(u.options),i);s.push.apply(s,an(g.value,t,r,n,o,d-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Zr.literal&&t.type===Zr.literal?r.value+=t.value:e.push(t),e},[])}function sn(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(e=Zr=Zr||{})[e.literal=0]="literal",e[e.object=1]="object";var ln=(Object.defineProperty(cn,"defaultLocale",{get:function(){return cn.memoizedDefaultLocale||(cn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),cn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),cn.memoizedDefaultLocale=null,cn.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])},cn.__parse=Or,cn.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"}}},cn);function cn(e,t,r,n){var o,a,i=this;if(void 0===t&&(t=cn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Zr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return an(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=cn.resolveLocale(t),"string"==typeof e){if(this.message=e,!cn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=cn.__parse(e,{ignoreTag:null==n?void 0:n.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=cn.formats,(a=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=a[t])?Zt(Zt(Zt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=Zt(Zt({},r[t]),n[t]||{}),e},{})):r),e},Zt({},o)):o),this.formatters=n&&n.formatters||{getNumberFormat:Pr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Vt([void 0],t,!1)))},{cache:sn((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Wr.variadic}),getDateTimeFormat:Pr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Vt([void 0],t,!1)))},{cache:sn(n.dateTime),strategy:Wr.variadic}),getPluralRules:Pr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Vt([void 0],t,!1)))},{cache:sn(n.pluralRules),strategy:Wr.variadic})}}const un={},hn=(e,t,r)=>r&&(t in un||(un[t]={}),e in un[t]||(un[t][e]=r),r),dn=(t,r)=>{if(null!=r){if(r in un&&t in un[r])return un[r][t];var n=Tn(r);for(let e=0;e<n.length;e++){var o=function(e,t){if(!mn(e))return null;e=function(e){return pn[e]||null}(e);return function(e,r){if(null!=r){if(r in e)return e[r];const n=r.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const r=n.slice(e,n.length).join(".");if(r in t){t=t[r];break}}t=t[n[e]]}else t=void 0;return t}}(e,t)}(n[e],t);if(o)return hn(t,r,o)}}};let pn;const fn=xt({});function mn(e){return e in pn}function gn(t,...r){delete un[t],fn.update(e=>(e[t]=Ut.all([e[t]||{},...r]),e))}_t([fn],([e])=>Object.keys(e)),fn.subscribe(e=>pn=e);const bn={};function yn(e){return bn[e]}function vn(e){return null!=e&&Tn(e).some(e=>{return null===(e=yn(e))||void 0===e?void 0:e.size})}const wn={};function En(e){if(!vn(e))return e in wn?wn[e]:Promise.resolve();const t=Tn(e).map(e=>{var t=yn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return wn[e]=Promise.all(t.map(([e,t])=>function(t,e){const r=Promise.all(e.map(e=>(function(e,t){bn[e].delete(t),0===bn[e].size&&delete bn[e]}(t,e),e().then(e=>e.default||e))));return r.then(e=>gn(t,...e))}(e,t))).then(()=>vn(e)?En(e):void delete wn[e]),wn[e]}function An(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const Mn={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 Cn=xt(!1);let Bn;const Hn=xt(null);function In(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Tn(e,t=Mn.fallbackLocale){e=In(e);return t?[...new Set([...e,...In(t)])]:e}function Sn(){return null!=Bn?Bn:void 0}Hn.subscribe(e=>{Bn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const xn=Object.assign(Object.assign({},Hn),{set:t=>{if(t&&function(e){if(null!=e){var t=Tn(e);for(let e=0;e<t.length;e++){var r=t[e];if(mn(r))return r}}}(t)&&vn(t)){var r=Mn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Sn()&&r?e=window.setTimeout(()=>Cn.set(!0),r):Cn.set(!0),En(t).then(()=>{Hn.set(t)}).finally(()=>{clearTimeout(e),Cn.set(!1)})}return Hn.set(t)}}),_n=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Rn=(e,t)=>{var r=Mn["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ln=_n(e=>{var{locale:t,format:r}=e,e=An(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Rn("number",r)),new Intl.NumberFormat(t,e)}),Fn=_n(e=>{var{locale:t,format:r}=e,e=An(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Rn("date",r):0===Object.keys(e).length&&(e=Rn("date","short")),new Intl.DateTimeFormat(t,e)}),Nn=_n(e=>{var{locale:t,format:r}=e,e=An(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Rn("time",r):0===Object.keys(e).length&&(e=Rn("time","short")),new Intl.DateTimeFormat(t,e)}),On=_n((e,t=Sn())=>new ln(e,t,Mn.formats,{ignoreTag:Mn.ignoreTag})),Pn=_t([xn,fn],()=>(e,t={})=>{var r,n;let o=t;"object"==typeof e&&(o=e,e=o.id);var{values:a,locale:i=Sn(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=dn(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!==(s=null!==(n=null===(r=(n=Mn).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:i,id:e,defaultValue:s}))&&void 0!==n?n:s)&&void 0!==s?s:e;if(!a)return l;let c=l;try{c=On(l,i).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c});_t([xn],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=An(e,["locale"]);return Nn(Object.assign({locale:t},e))})(t).format(e)),_t([xn],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=An(e,["locale"]);return Fn(Object.assign({locale:t},e))})(t).format(e)),_t([xn],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=An(e,["locale"]);return Ln(Object.assign({locale:t},e))})(t).format(e)),_t([xn,fn],()=>(e,t=Sn())=>dn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==It.indexOf(e)&&(t=new Mt(t),Tt[e]=t,It.push(e)),Tt[e]}};const kn=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)),Dn=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",Un={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"},fallbackSecondaryMenu:{promotions:"Promotions"}},zh:{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:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promociones"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promoções"}}},jn={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"}},zh:{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:"Registro",deposit:"Depósito"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"}}};function Gn(e,t,r){const n=e.slice();return n[43]=t[r],n[45]=r,n}function $n(e,t,r){const n=e.slice();return n[11]=t[r],n}function zn(t){let n,o=[],r=new Map,a=t[8];const i=e=>e[43].id;for(let e=0;e<a.length;e+=1){var s=Gn(t,a,e),l=i(s);r.set(l,o[e]=Kn(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();n=C()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);te(t,n,r)},p(e,t){11115&t[0]&&(a=e[8],o=function(t,r,n,o,a,i,s,l,e,c,u,h){let d=t.length,p=i.length,f=d;const m={};for(;f--;)m[t[f].key]=f;const g=[],b=new Map,y=new Map;for(f=p;f--;){const t=h(a,i,f),l=n(t);let e=s.get(l);e?o&&e.p(t,r):(e=c(l,t),e.c()),b.set(l,g[f]=e),l in m&&y.set(l,Math.abs(f-m[l]))}const v=new Set,w=new Set;function E(e){W(e,1),e.m(l,u),s.set(e.key,e),u=e.first,p--}for(;d&&p;){const r=g[p-1],n=t[d-1],o=r.key,a=n.key;r===n?(u=r.first,d--,p--):b.has(a)?!s.has(o)||v.has(o)?E(r):w.has(a)?d--:y.get(o)>y.get(a)?(w.add(o),E(r)):(v.add(a),d--):(e(n,s),d--)}for(;d--;){const r=t[d];b.has(r.key)||e(r,s)}for(;p;)E(g[p-1]);return g}(o,t,i,1,e,a,r,n.parentNode,Y,Kn,n,Gn))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&re(n)}}}function Wn(e){let r,n,o,a,i=e[43].name+"",s="FAVORITES"===e[43].id?"("+e[0]+")":"";return{c(){r=ne("a"),n=oe(i),o=ae(),a=oe(s),se(r,"href","#")},m(e,t){te(e,r,t),ee(r,n),ee(r,o),ee(r,a)},p(e,t){256&t[0]&&i!==(i=e[43].name+"")&&le(n,i),257&t[0]&&s!==(s="FAVORITES"===e[43].id?"("+e[0]+")":"")&&le(a,s)},d(e){e&&re(r)}}}function Zn(e){let r,n,o=e[43].label+"";return{c(){r=ne("a"),n=oe(o),se(r,"href","#")},m(e,t){te(e,r,t),ee(r,n)},p(e,t){256&t[0]&&o!==(o=e[43].label+"")&&le(n,o)},d(e){e&&re(r)}}}function Vn(e){let r,n=0<e[11]?.count&&Yn(e);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),te(e,r,t)},p(e,t){0<e[11]?.count?n?n.p(e,t):(n=Yn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&re(r)}}}function Yn(e){let r,n=e[11]&&"true"==e[3]&&Jn(e);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),te(e,r,t)},p(e,t){e[11]&&"true"==e[3]?n?n.p(e,t):(n=Jn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&re(r)}}}function Jn(t){let o,a=t[11]?.items,i=[];for(let e=0;e<a.length;e+=1)i[e]=Xn($n(t,a,e));return{c(){o=ne("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].m(o,null)},p(t,r){if(10496&r[0]){let e;for(a=t[11]?.items,e=0;e<a.length;e+=1){var n=$n(t,a,e);i[e]?i[e].p(n,r):(i[e]=Xn(n),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&&re(o),N(i,e)}}}function Qn(r){let n,o,a,i,s,l,c=r[11]?.name+"";function u(...e){return r[28](r[11],r[45],...e)}return{c(){n=ne("li"),o=ne("a"),a=oe(c),i=ae(),se(o,"class","SubDropDown"),se(o,"href","#")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(n,i),s||(l=ie(n,"click",u),s=!0)},p(e,t){r=e,2048&t[0]&&c!==(c=r[11]?.name+"")&&le(a,c)},d(e){e&&re(n),s=!1,l()}}}function Xn(e){let r,n=e[11].games.count&&Qn(e);return{c(){n&&n.c(),r=C()},m(e,t){n&&n.m(e,t),te(e,r,t)},p(e,t){e[11].games.count?n?n.p(e,t):(n=Qn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&re(r)}}}function Kn(e,r){let n,o,a,i,s,l;function c(e){return"headerMain"===e[1]?Zn:Wn}let u=c(r),h=u(r),d=1==r[9][r[45]]&&Vn(r);function p(...e){return r[29](r[43],r[45],...e)}return{key:e,first:null,c(){n=ne("li"),h.c(),o=ae(),d&&d.c(),a=ae(),se(n,"class",i="CarouselItem "+(r[5]==r[45]||r[6]==r[45]?"active":"")+" "+("headerMain"==r[1]?"":"SecondaryMenu")),se(n,"part","CarouselItem"),this.first=n},m(e,t){te(e,n,t),h.m(n,null),ee(n,o),d&&d.m(n,null),ee(n,a),s||(l=ie(n,"click",p),s=!0)},p(e,t){u===(u=c(r=e))&&h?h.p(r,t):(h.d(1),h=u(r),h&&(h.c(),h.m(n,o))),1==r[9][r[45]]?d?d.p(r,t):(d=Vn(r),d.c(),d.m(n,a)):d&&(d.d(1),d=null),354&t[0]&&i!==(i="CarouselItem "+(r[5]==r[45]||r[6]==r[45]?"active":"")+" "+("headerMain"==r[1]?"":"SecondaryMenu"))&&se(n,"class",i)},d(e){e&&re(n),h.d(),d&&d.d(),s=!1,l()}}}function qn(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w=0<r[8].length&&zn(r);return{c(){n=ne("div"),o=ne("div"),a=ne("div"),a.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=ne("div"),l=ne("ul"),c=ne("li"),c.innerHTML='<a href="#CarouselNav">Close Subs</a>',u=ae(),w&&w.c(),h=ae(),d=ne("div"),d.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"===r[1]?"CarouselContainerHeaderMain":"")),se(o,"part",f="CarouselContainer "+(r[12]?"CarouselContainerMobile":"")+" "+("headerMain"===r[1]?"CarouselContainerHeaderMain":"")),se(o,"style",m="headerMain"===r[1]?"max-width: auto":`max-width: ${r[2]}px`),se(n,"class",g="CarouselWrapper "+("headerMain"===r[1]?"CarouselWrapperHeaderMain":"")),se(n,"part",b="CarouselWrapper "+("headerMain"===r[1]?"CarouselWrapperHeaderMain":""))},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,i),ee(o,s),ee(s,l),ee(l,c),ee(l,u),w&&w.m(l,null),r[30](l),r[31](s),ee(o,h),ee(o,d),r[33](n),y||(v=[ie(a,"click",r[27]),ie(d,"click",r[32])],y=!0)},p(e,t){0<e[8].length?w?w.p(e,t):(w=zn(e),w.c(),w.m(l,null)):w&&(w.d(1),w=null),2&t[0]&&p!==(p="CarouselContainer CarouselContainerMobile} "+("headerMain"===e[1]?"CarouselContainerHeaderMain":""))&&se(o,"class",p),2&t[0]&&f!==(f="CarouselContainer "+(e[12]?"CarouselContainerMobile":"")+" "+("headerMain"===e[1]?"CarouselContainerHeaderMain":""))&&se(o,"part",f),6&t[0]&&m!==(m="headerMain"===e[1]?"max-width: auto":`max-width: ${e[2]}px`)&&se(o,"style",m),2&t[0]&&g!==(g="CarouselWrapper "+("headerMain"===e[1]?"CarouselWrapperHeaderMain":""))&&se(n,"class",g),2&t[0]&&b!==(b="CarouselWrapper "+("headerMain"===e[1]?"CarouselWrapperHeaderMain":""))&&se(n,"part",b)},i:E,o:E,d(e){e&&re(n),w&&w.d(),r[30](null),r[31](null),r[33](null),y=!1,q(v)}}}function eo(t,e,o){let{endpoint:a=""}=e,{datasource:i=""}=e,{onclickeventname:r="defaultEvent"}=e,{actionevent:s="defaultEvent"}=e,{favoritesnumber:n="0"}=e,{location:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{identity:h=""}=e,{containermaxwidth:d=""}=e,{isprimarymenu:p=!1}=e,{issecondarymenu:f=!1}=e,{lang:m=""}=e,{activeindex:g="0"}=e,{showsubgroups:b="false"}=e;var y,v;({withLocale:y,translations:v}={withLocale:"en",translations:{}}),xn.subscribe(e=>{null==e&&(fn.set(v),xn.set(y))}),Object.keys(jn).forEach(e=>{gn(e,jn[e])});let w,E,A,M,C,B,H=window.navigator.userAgent,I="PC"!==Dn(H),T=[],S=[],x=(e,t)=>{N(),o(5,E=t),o(5,E),o(6,A=E),F(e,t,"navigation")},_=()=>{B.scrollBy({left:-250,behavior:"smooth"}),"true"==b&&O()},R=()=>{B.scrollBy({left:250,behavior:"smooth"}),"true"==b&&O()};const L=e=>{"SliderData"==e.data.type&&e.data.identity==h&&(o(8,T=e.data.data),o(9,S=new Array(T.length).fill(!1)),"true"==b&&O())},F=(t,r,n)=>{var e;"secondaryMenu"==l&&a&&i&&m&&t.id&&(e=new URL(`${a}/casino/groups/${i}/${t.id}/subGroups?language=`+m),fetch(e.href).then(e=>e.json()).then(e=>{o(11,C=e),("false"==b||"navigation"==n&&C.count<=0)&&window.postMessage({type:s,itemId:t.id,index:r,item:t},window.location.href)}).then(()=>{w.querySelectorAll(".DropDown")&&N()})),"headerMain"==l&&window.postMessage({type:s,item:t},window.location.href)},N=()=>{const t=w.querySelectorAll(".DropDown");document.activeElement.blur(),B.classList.add("isScrolling");for(let e=0;e<t.length;e++)t[e].style.transform="translateX(-"+B.scrollLeft+"px)";B.classList.remove("isScrolling")},O=()=>{T.forEach((e,t)=>{var r;0<(null===(r=null==e?void 0:e.subGroups)||void 0===r?void 0:r.count)&&(o(9,S[t]=!0,S),F(e,t))})};return G(()=>("ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),window.addEventListener("message",L,!1),setTimeout(()=>{B.addEventListener("scroll",N)},500),()=>{window.removeEventListener("message",L),w.removeEventListener("scroll",N)})),t.$$set=e=>{"endpoint"in e&&o(16,a=e.endpoint),"datasource"in e&&o(17,i=e.datasource),"onclickeventname"in e&&o(18,r=e.onclickeventname),"actionevent"in e&&o(19,s=e.actionevent),"favoritesnumber"in e&&o(0,n=e.favoritesnumber),"location"in e&&o(1,l=e.location),"clientstyling"in e&&o(20,c=e.clientstyling),"clientstylingurl"in e&&o(21,u=e.clientstylingurl),"identity"in e&&o(22,h=e.identity),"containermaxwidth"in e&&o(2,d=e.containermaxwidth),"isprimarymenu"in e&&o(23,p=e.isprimarymenu),"issecondarymenu"in e&&o(24,f=e.issecondarymenu),"lang"in e&&o(25,m=e.lang),"activeindex"in e&&o(26,g=e.activeindex),"showsubgroups"in e&&o(3,b=e.showsubgroups)},t.$$.update=()=>{var e;67108864&t.$$.dirty[0]&&g&&(o(5,E=parseInt(g,10)),A||o(6,A=E),"true"==b&&O()),1048576&t.$$.dirty[0]&&c&&(()=>{let e=document.createElement("style");e.innerHTML=c,setTimeout(()=>{M.appendChild(e)})})(),2097152&t.$$.dirty[0]&&u&&(()=>{let t=document.createElement("style"),e=new URL(u);u&&fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{M.appendChild(t)},1)})})(),33554432&t.$$.dirty[0]&&m&&(e=m,xn.set(e))},[n,l,d,b,w,E,A,M,T,S,B,C,I,x,_,R,a,i,r,s,c,u,h,p,f,m,g,()=>_(),(e,t,r)=>{x(e,t),r.stopPropagation()},(e,t,r)=>{x(e,t),r.preventDefault()},function(e){P[e?"unshift":"push"](()=>{w=e,o(4,w)})},function(e){P[e?"unshift":"push"](()=>{B=e,o(10,B)})},()=>R(),function(e){P[e?"unshift":"push"](()=>{M=e,o(7,M)})}]}function to(e,{delay:t=0,duration:r=400,easing:n=m}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*o}}customElements.get("casino-slider")||customElements.define("casino-slider",class extends Q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::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-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{background:var(--emfe-w-color-contrast, #07072A);background:-webkit-linear-gradient(var(--emfe-w-color-contrast, #07072A), var(--emfe-w-color-primary, #D0046C));background:linear-gradient(var(--emfe-w-color-contrast, #07072A), var(--emfe-w-color-primary, #D0046C))}.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}}</style>",J(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},eo,qn,t,{endpoint:16,datasource:17,onclickeventname:18,actionevent:19,favoritesnumber:0,location:1,clientstyling:20,clientstylingurl:21,identity:22,containermaxwidth:2,isprimarymenu:23,issecondarymenu:24,lang:25,activeindex:26,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","containermaxwidth","isprimarymenu","issecondarymenu","lang","activeindex","showsubgroups"]}get endpoint(){return this.$$.ctx[16]}set endpoint(e){this.$$set({endpoint:e}),D()}get datasource(){return this.$$.ctx[17]}set datasource(e){this.$$set({datasource:e}),D()}get onclickeventname(){return this.$$.ctx[18]}set onclickeventname(e){this.$$set({onclickeventname:e}),D()}get actionevent(){return this.$$.ctx[19]}set actionevent(e){this.$$set({actionevent:e}),D()}get favoritesnumber(){return this.$$.ctx[0]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),D()}get location(){return this.$$.ctx[1]}set location(e){this.$$set({location: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()}get identity(){return this.$$.ctx[22]}set identity(e){this.$$set({identity:e}),D()}get containermaxwidth(){return this.$$.ctx[2]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),D()}get isprimarymenu(){return this.$$.ctx[23]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),D()}get issecondarymenu(){return this.$$.ctx[24]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),D()}get lang(){return this.$$.ctx[25]}set lang(e){this.$$set({lang:e}),D()}get activeindex(){return this.$$.ctx[26]}set activeindex(e){this.$$set({activeindex:e}),D()}get showsubgroups(){return this.$$.ctx[3]}set showsubgroups(e){this.$$set({showsubgroups:e}),D()}});const ro={en:{languageSelector:{language:"Select Language"}},zh:{languageSelector:{language:"選擇語言"}},fr:{languageSelector:{language:"Sélectionner la langue"}},tr:{languageSelector:{language:"Dil Seçin"}},ro:{languageSelector:{language:"Selecteaza limba"}},es:{languageSelector:{language:"Seleccione el idioma"}},pt:{languageSelector:{language:"Selecione o idioma"}}};function no(e,t,r){const n=e.slice();return n[0]=t[r],n}function oo(e,t,r){const n=e.slice();return n[33]=t[r],n}function ao(e,t,r){const n=e.slice();return n[36]=t[r],n}function io(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,M,C,t,B,H,I,T=r[10]("languageSelector.language")+"",S=r[2],x=[];for(let e=0;e<S.length;e+=1)x[e]=so(ao(r,S,e));let _=r[4],R=[];for(let e=0;e<_.length;e+=1)R[e]=lo(oo(r,_,e));let L=r[8],F=[];for(let e=0;e<L.length;e+=1)F[e]=co(no(r,L,e));return{c(){n=ne("div"),o=ne("span"),a=ne("slot"),a.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=ne("div"),u=ne("ul");for(let e=0;e<x.length;e+=1)x[e].c();p=ae(),f=ne("ul");for(let e=0;e<R.length;e+=1)R[e].c();b=ae(),y=ne("div"),v=ne("span"),w=oe(T),E=ae(),A=ne("select");for(let e=0;e<F.length;e+=1)F[e].c();se(a,"name","close"),se(o,"class",i=r[5]?"ModalCloseBtn":""),se(o,"part",s=r[5]?"ModalCloseBtn":""),se(o,"role","button"),se(u,"class",h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),se(u,"part",d="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),se(f,"class",m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),se(f,"part",g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),se(A,"class","Item ItemLanguage"),se(A,"part","Item ItemLanguage"),void 0===r[9]&&k(()=>r[19].call(A)),se(y,"class","LanguageSelectorTitle"),se(y,"part","LanguageSelectorTitle"),se(c,"class",M="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),se(c,"part",C="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),se(n,"class","HamburgerModalWindow"),se(n,"part","HamburgerModalWindow")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(n,l),ee(n,c),ee(c,u);for(let e=0;e<x.length;e+=1)x[e].m(u,null);ee(c,p),ee(c,f);for(let e=0;e<R.length;e+=1)R[e].m(f,null);ee(c,b),ee(c,y),ee(y,v),ee(v,w),ee(y,E),ee(y,A);for(let e=0;e<F.length;e+=1)F[e].m(A,null);O(A,r[9]),r[21](n),B=!0,H||(I=[ie(o,"click",r[11]),ie(A,"change",r[19]),ie(A,"change",r[20])],H=!0)},p(e,t){if(r=e,(!B||32&t[0]&&i!==(i=r[5]?"ModalCloseBtn":""))&&se(o,"class",i),(!B||32&t[0]&&s!==(s=r[5]?"ModalCloseBtn":""))&&se(o,"part",s),4108&t[0]){let e;for(S=r[2],e=0;e<S.length;e+=1){const o=ao(r,S,e);x[e]?x[e].p(o,t):(x[e]=so(o),x[e].c(),x[e].m(u,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=S.length}if((!B||64&t[0]&&h!==(h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"class",h),(!B||64&t[0]&&d!==(d="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"part",d),16&t[0]){let e;for(_=r[4],e=0;e<_.length;e+=1){const o=oo(r,_,e);R[e]?R[e].p(o,t):(R[e]=lo(o),R[e].c(),R[e].m(f,null))}for(;e<R.length;e+=1)R[e].d(1);R.length=_.length}if((!B||64&t[0]&&m!==(m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"class",m),(!B||64&t[0]&&g!==(g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"part",g),(!B||1024&t[0])&&T!==(T=r[10]("languageSelector.language")+"")&&le(w,T),256&t[0]){let e;for(L=r[8],e=0;e<L.length;e+=1){const o=no(r,L,e);F[e]?F[e].p(o,t):(F[e]=co(o),F[e].c(),F[e].m(A,null))}for(;e<F.length;e+=1)F[e].d(1);F.length=L.length}768&t[0]&&O(A,r[9]),(!B||32&t[0]&&M!==(M="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&se(c,"class",M),(!B||32&t[0]&&C!==(C="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&se(c,"part",C)},i(e){B||(k(()=>{t=t||V(n,to,{transitionDuration:ho},!0),t.run(1)}),B=!0)},o(e){t=t||V(n,to,{transitionDuration:ho},!1),t.run(0),B=!1},d(e){e&&re(n),N(x,e),N(R,e),N(F,e),r[21](null),e&&t&&t.end(),H=!1,q(I)}}}function so(r){let n,o,a,i,s,l,c,u,h,d,p,f=r[36].label+"";function m(){return r[18](r[36])}return{c(){n=ne("li"),o=ne("div"),a=ne("img"),s=ae(),l=oe(f),c=ae(),b(a.src,i=r[36].img)||se(a,"src",i),se(a,"alt","menu icon"),se(o,"class","HamburgerItemContainer"),se(o,"part","HamburgerItemContainer"),se(n,"class",u=r[3]===r[36].id?"ActiveItem":""),se(n,"part",h=r[3]===r[36].id?"ActiveItem":"")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,s),ee(o,l),ee(n,c),d||(p=ie(n,"click",m),d=!0)},p(e,t){r=e,4&t[0]&&!b(a.src,i=r[36].img)&&se(a,"src",i),4&t[0]&&f!==(f=r[36].label+"")&&le(l,f),12&t[0]&&u!==(u=r[3]===r[36].id?"ActiveItem":"")&&se(n,"class",u),12&t[0]&&h!==(h=r[3]===r[36].id?"ActiveItem":"")&&se(n,"part",h)},d(e){e&&re(n),d=!1,p()}}}function lo(e){let r,n,o,a,i,s,l,c,u=e[33].label+"";return{c(){r=ne("li"),n=ne("a"),o=ne("img"),i=ae(),s=oe(u),c=ae(),b(o.src,a=e[33].img)||se(o,"src",a),se(o,"alt","menu icon"),se(n,"href",l=e[33].path)},m(e,t){te(e,r,t),ee(r,n),ee(n,o),ee(n,i),ee(n,s),ee(r,c)},p(e,t){16&t[0]&&!b(o.src,a=e[33].img)&&se(o,"src",a),16&t[0]&&u!==(u=e[33].label+"")&&le(s,u),16&t[0]&&l!==(l=e[33].path)&&se(n,"href",l)},d(e){e&&re(r)}}}function co(e){let r,n,o,a=e[0]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[0],r.value=r.__value,r.selected=!0},m(e,t){te(e,r,t),ee(r,n)},p(e,t){256&t[0]&&a!==(a=e[0]+"")&&le(n,a),256&t[0]&&o!==(o=e[0])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function uo(e){let r,n,o=!0===e[7]&&io(e);return{c(){o&&o.c(),r=C(),this.c=E},m(e,t){o&&o.m(e,t),te(e,r,t),n=!0},p(e,t){!0===e[7]?o?(o.p(e,t),128&t[0]&&W(o,1)):(o=io(e),o.c(),W(o,1),o.m(r.parentNode,r)):o&&(z={r:0,c:[],p:z},u(o,1,1,()=>{o=null}),z.r||q(z.c),z=z.p)},i(e){n||(W(o),n=!0)},o(e){u(o),n=!1},d(e){o&&o.d(e),e&&re(r)}}}let ho=350;function po(t,e,n){let r;U(t,Pn,e=>n(10,r=e));let o,a,{menuitemsurl:i=""}=e,{lang:s="en"}=e,{activecategory:l=""}=e,{languageslist:c=""}=e,u=window.navigator.userAgent,h=[],d="",p=[],f=!1,m=!1,g=!1,b=!0,y=[],v=!1,w="";Object.keys(ro).forEach(e=>{gn(e,ro[e])});const E=e=>{var r;"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),n(7,g=!0),setTimeout(()=>{n(5,f=!0)},500),setTimeout(()=>{n(6,m=!0)},1500),r=i,new Promise((e,t)=>{a&&!v?e(a):C(r)}))},A=(e,t)=>{n(3,d=e),n(4,p=t||[])},M=()=>{var e=h.filter(e=>e.path.includes(l));0<e.length&&A(e[0].id,e[0].children)},C=e=>{fetch(e).then(e=>e.json()).then(e=>{n(2,h=e),M(),n(17,b=!1),a=e,v=!1},e=>{console.error(e)})},B=()=>{v=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:w},window.location.href)};return G(()=>(window.addEventListener("message",E,!1),kn(u),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"menuitemsurl"in e&&n(14,i=e.menuitemsurl),"lang"in e&&n(0,s=e.lang),"activecategory"in e&&n(15,l=e.activecategory),"languageslist"in e&&n(16,c=e.languageslist)},t.$$.update=()=>{var e;65537&t.$$.dirty[0]&&s&&c&&(e=s,xn.set(e),v&&C(i),n(8,y=c.replace(/ /g,"").split(",")),n(8,y=y.map(e=>e.toUpperCase())),n(9,w=s.toUpperCase())),163840&t.$$.dirty[0]&&l&&!b&&M()},[s,void 0,h,d,p,f,m,g,y,w,r,()=>{n(7,g=!1),n(5,f=!1),n(6,m=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href)},A,B,i,l,c,b,e=>A(e.id,e.children),function(){w=j(this),n(9,w),n(8,y)},()=>B(),function(e){P[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",class extends Q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::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 .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 a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emfe-w-color-white, #FFFFFF);font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emfe-w-color-primary, #D0046C)}</style>",J(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},po,uo,t,{menuitemsurl:14,lang:0,activecategory:15,languageslist:16},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"]}get menuitemsurl(){return this.$$.ctx[14]}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[15]}set activecategory(e){this.$$set({activecategory:e}),D()}get languageslist(){return this.$$.ctx[16]}set languageslist(e){this.$$set({languageslist:e}),D()}});const fo={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},zh:{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:"Tu saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo de bonificación",depositButton:"Depositar"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}};var mo,go,bo=(go=(mo={path:void 0,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&mo.path)}}).exports,function(e){var n,_=e.setTimeout,R=e.clearTimeout,L=e.XMLHttpRequest,o=e.XDomainRequest,t=e.ActiveXObject,r=e.EventSource,a=e.document,h=e.Promise,d=e.fetch,i=e.Response,p=e.TextDecoder,s=e.TextEncoder,f=e.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===a||"readyState"in a||null!=a.body||(a.readyState="loading",window.addEventListener("load",function(e){a.readyState="complete"},!1)),null==L&&null!=t&&(L=function(){return new t("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(n=d,d=function(e,t){var r=t.signal;return n(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return r._reader=t,r._aborted&&r._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}}),l.prototype.decode=function(e){function t(e,t,r){if(1===r)return 128>>t<=e&&e<<t<=2047;if(2===r)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===r)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function r(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 n="",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,r(o,a)))&&(o=0,a=65533,n+=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,r(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?n+=String.fromCharCode(a):(n+=String.fromCharCode(55296+(a-65535-1>>10)),n+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,n},null!=p&&null!=s&&function(){try{return"test"===(new p).decode((new s).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(p=l);function u(){}function F(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function c(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function m(e){for(var t=Object.create(null),r=e.split("\r\n"),n=0;n<r.length;n+=1){var o=r[n].split(": "),a=o.shift(),o=o.join(": ");t[c(a)]=o}this._map=t}function N(){}function g(e){this._headers=e}function O(){}function b(){this._listeners=Object.create(null)}function y(e){_(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function P(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function k(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){v.call(this,e),this.error=t.error}F.prototype.open=function(e,t){this._abort(!0);var o=this,a=this._xhr,i=1,r=0;this._abort=function(e){0!==o._sendTimeout&&(R(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=u,a.onerror=u,a.onabort=u,a.onprogress=u,a.onreadystatechange=u,a.abort(),0!==r&&(R(r),r=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),i=0};function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(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 s=function(){if(1===i){var t=0,r="",n=void 0;if("contentType"in a)t=200,r="OK",n=a.contentType;else try{t=a.status,r=a.statusText,n=a.getResponseHeader("Content-Type")}catch(e){r="",n=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=r,o._contentType=n,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=_(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=_(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 r=this._xhr;"setRequestHeader"in r&&r.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==a||null==a.readyState||"complete"===a.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=_(function(){t._sendTimeout=0,t.send()},4)}},m.prototype.get=function(e){return this._map[c(e)]},null!=L&&null==L.HEADERS_RECEIVED&&(L.HEADERS_RECEIVED=2),N.prototype.open=function(o,a,t,r,e,n,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(),r(new Error("NetworkError"))},o.onload=function(){r(null)},o.onabort=function(){r(null)},o.onreadystatechange=function(){var e,t,r,n;o.readyState===L.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,r=o.getResponseHeader("Content-Type"),n=o.getAllResponseHeaders(),a(e,t,r,new m(n)))},o.withCredentials=n,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},g.prototype.get=function(e){return this._headers.get(e)},O.prototype.open=function(e,t,o,r,n,a,i){var s=null,l=new f,c=l.signal,u=new p;return d(n,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new g(e.headers)),new h(function(t,r){function n(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),o(e),n())}).catch(function(e){r(e)})}n()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){r(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},b.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var r=t.length,n=0;n<r;n+=1){var o=t[n];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){y(e)}}},b.prototype.addEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];null==n&&(r[e]=n=[]);for(var o=!1,a=0;a<n.length;a+=1)n[a]===t&&(o=!0);o||n.push(t)},b.prototype.removeEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];if(null!=n){for(var o=[],a=0;a<n.length;a+=1)n[a]!==t&&o.push(n[a]);0===o.length?delete r[e]:r[e]=o}},P.prototype=Object.create(v.prototype),k.prototype=Object.create(v.prototype),D.prototype=Object.create(v.prototype);function U(e,t){return e=null==e?t:parseInt(e,10),$(e=e!=e?t:e)}function j(e,t,r){try{"function"==typeof t&&t.call(e,r)}catch(e){y(e)}}var G=/^text\/event\-stream(;.*)?$/i,$=function(e){return Math.min(Math.max(e,1e3),18e6)};function w(e,t){b.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(l,a,e){a=String(a);var t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=$(1e3),u=U(e.heartbeatTimeout,45e3),h="",d=c,p=!1,f=0,r=e.headers||{},e=e.Transport,s=z&&null==e?void 0:new F(new(null!=e?e:null!=L&&"withCredentials"in L.prototype||null==o?L:o)),m=new(null!=e&&"string"!=typeof e?e:null==s?O:N),g=void 0,b=0,y=-1,v="",w="",E="",A="",M=0,C=0,B=0,H=function(e,t,r,n){var o,a;0===y&&(200===e&&null!=r&&G.test(r)?(y=1,p=Date.now(),d=c,l.readyState=1,o=new k("open",{status:e,statusText:t,headers:n}),l.dispatchEvent(o),j(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==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",S(),o=new k("error",{status:e,statusText:t,headers:n}),l.dispatchEvent(o),j(l,l.onerror,o),console.error(a)))},I=function(e){if(1===y){for(var t=-1,r=0;r<e.length;r+=1)(i=e.charCodeAt(r))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=r);var n=(-1!==t?A:"")+e.slice(0,t+1);A=(-1===t?A:"")+e.slice(t+1),""!==e&&(p=Date.now(),f+=e.length);for(var o=0;o<n.length;o+=1){var a,i=n.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),a=n.slice(C,B-1),s=n.slice(B+(B<o&&n.charCodeAt(B)===" ".charCodeAt(0)?1:0),o),"data"===a?(v+="\n",v+=s):"id"===a?w=s:"event"===a?E=s:"retry"===a?(c=U(s,c),d=c):"heartbeatTimeout"===a&&(u=U(s,u),0!==b&&(R(b),b=_(function(){x()},u)))),0===M){if(""!==v){h=w;var s=new P(E=""===E?"message":E,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===E?j(l,l.onopen,s):"message"===E?j(l,l.onmessage,s):"error"===E&&j(l,l.onerror,s),2===y)return}E=v=""}M=i==="\r".charCodeAt(0)?-1:0}else 0===M&&(C=o,M=1),1===M?i===":".charCodeAt(0)&&(B=o+1,M=2):2===M&&(M=3)}}},T=function(e){var t;1!==y&&0!==y||(y=-1,0!==b&&(R(b),b=0),b=_(function(){x()},d),d=$(Math.min(16*c,2*d)),l.readyState=0,t=new D("error",{error:e}),l.dispatchEvent(t),j(l,l.onerror,t),null!=e&&console.error(e))},S=function(){y=2,null!=g&&(g.abort(),g=void 0),0!==b&&(R(b),b=0),l.readyState=2},x=function(){if(b=0,-1===y){p=!1,f=0,b=_(function(){x()},u),w=h,A=E=v="",M=B=C=y=0;var e=a;"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));var t=l.withCredentials,r={Accept:"text/event-stream"},n=l.headers;if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o]);try{g=m.open(s,H,I,T,e,t,r)}catch(e){throw S(),e}}else p||null==g?(t=Math.max((p||Date.now())+u-Date.now(),1),p=!1,b=_(function(){x()},t)):(T(new Error("No activity within "+u+" milliseconds. "+(0===y?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))};l.url=a,l.readyState=0,l.withCredentials=t,l.headers=r,l._close=S,x()}(this,e,t)}var z=null!=d&&null!=i&&"body"in i.prototype;(w.prototype=Object.create(b.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0;e=r;null==L||null!=r&&"withCredentials"in r.prototype||(e=w),_(function(){var e;-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)&&(e=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","24 февраля "+(e=function(e){return""+e+""})("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+e("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+e("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+e("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",e("https://www.torproject.org/"),"","И посетите:","",e("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",e("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n"),alert(e),window.open("http://www.change.org/NetVoyne"))},15e3),(i=go).EventSourcePolyfill=w,i.NativeEventSource=r,i.EventSource=e}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:_e:globalThis),mo.exports);function yo(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,M,C,B,H,I,T,S,x,_,R,L,F,N,O,P,k,D,U,j,G,$,z,W,Z,V,Y=r[3]("balanceModal.balanceTitle")+"",J=r[3]("balanceModal.totalBalance")+"",Q=r[3]("balanceModal.cashBalance")+"",X=r[3]("balanceModal.bonusBalance")+"",K=r[3]("balanceModal.depositButton")+"";return{c(){n=ne("div"),o=ne("div"),a=ae(),i=ne("div"),s=ne("div"),l=ne("p"),c=oe(Y),u=ae(),h=ne("div"),d=ne("div"),p=ne("p"),f=oe(J),m=ae(),g=ne("p"),b=ne("span"),y=oe(r[1]),v=ae(),w=ne("span"),E=oe(r[2]),A=ae(),M=ne("div"),C=ne("p"),B=oe(Q),H=ae(),I=ne("p"),T=ne("span"),T.textContent=""+r[4].get("Casino").balanceAmount,S=ae(),x=ne("span"),_=oe(r[2]),R=ae(),L=ne("div"),F=ne("p"),N=oe(X),O=ae(),P=ne("p"),k=ne("span"),k.textContent=""+r[4].get("UBS").balanceAmount,D=ae(),U=ne("span"),j=oe(r[2]),G=ae(),$=ne("div"),z=ne("button"),W=oe(K),se(o,"class","BalanceModalClose"),se(l,"class","BalanceModalTitle"),se(l,"part","BalanceModalTitle"),se(s,"class","BalanceModalHeader"),se(s,"part","BalanceModalHeader"),se(p,"class","BalanceModalText"),se(p,"part","BalanceModalText"),se(b,"class","BalanceModalAmount"),se(b,"part","BalanceModalAmount"),se(w,"class","BalanceModalCurrency"),se(w,"part","BalanceModalCurrency"),se(g,"class","BalanceModalValue"),se(g,"part","BalanceModalValue"),se(d,"class","BalanceModalRow"),se(d,"part","BalanceModalRow"),se(C,"class","BalanceModalText"),se(C,"part","BalanceModalText"),se(T,"class","BalanceModalAmount"),se(T,"part","BalanceModalAmount"),se(x,"class","BalanceModalCurrency"),se(x,"part","BalanceModalCurrency"),se(I,"class","BalanceModalValue"),se(I,"part","BalanceModalValue"),se(M,"class","BalanceModalRow"),se(M,"part","BalanceModalRow"),se(F,"class","BalanceModalText"),se(F,"part","BalanceModalText"),se(k,"class","BalanceModalAmount"),se(k,"part","BalanceModalAmount"),se(U,"class","BalanceModalCurrency"),se(U,"part","BalanceModalCurrency"),se(P,"class","BalanceModalValue"),se(P,"part","BalanceModalValue"),se(L,"class","BalanceModalRow"),se(L,"part","BalanceModalRow"),se(h,"class","BalanceModalBody"),se(h,"part","BalanceModalBody"),se(z,"class","BalanceModalAction"),se(z,"part","BalanceModalAction"),se($,"class","BalanceModalFooter"),se($,"part","BalanceModalFooter"),se(i,"class","BalanceModal"),se(i,"part","BalanceModal"),se(n,"class","BalanceModalWrapper"),se(n,"part","BalanceModalWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(n,a),ee(n,i),ee(i,s),ee(s,l),ee(l,c),ee(i,u),ee(i,h),ee(h,d),ee(d,p),ee(p,f),ee(d,m),ee(d,g),ee(g,b),ee(b,y),ee(g,v),ee(g,w),ee(w,E),ee(h,A),ee(h,M),ee(M,C),ee(C,B),ee(M,H),ee(M,I),ee(I,T),ee(I,S),ee(I,x),ee(x,_),ee(h,R),ee(h,L),ee(L,F),ee(F,N),ee(L,O),ee(L,P),ee(P,k),ee(P,D),ee(P,U),ee(U,j),ee(i,G),ee(i,$),ee($,z),ee(z,W),Z||(V=[ie(o,"click",r[12]),ie(z,"click",r[13])],Z=!0)},p(e,t){8&t&&Y!==(Y=e[3]("balanceModal.balanceTitle")+"")&&le(c,Y),8&t&&J!==(J=e[3]("balanceModal.totalBalance")+"")&&le(f,J),2&t&&le(y,e[1]),4&t&&le(E,e[2]),8&t&&Q!==(Q=e[3]("balanceModal.cashBalance")+"")&&le(B,Q),4&t&&le(_,e[2]),8&t&&X!==(X=e[3]("balanceModal.bonusBalance")+"")&&le(N,X),4&t&&le(j,e[2]),8&t&&K!==(K=e[3]("balanceModal.depositButton")+"")&&le(W,K)},d(e){e&&re(n),Z=!1,q(V)}}}function vo(r){let n,o,a;return{c(){n=ne("div"),se(n,"class","ShowBalanceModalOverlay"),se(n,"part","ShowBalanceModalOverlay")},m(e,t){te(e,n,t),o||(a=ie(n,"click",r[14]),o=!0)},p:E,d(e){e&&re(n),o=!1,a()}}}function wo(r){let n,o,a,i,s,l,c,u,h,d,p,f,m=r[0]&&yo(r),g=r[0]&&vo(r);return{c(){n=ne("div"),o=ne("p"),a=oe(r[1]),i=ae(),s=oe(r[2]),l=ae(),c=ne("span"),c.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',u=ae(),m&&m.c(),h=ae(),g&&g.c(),d=C(),this.c=E,se(o,"class","BalanceValue"),se(o,"part","BalanceValue"),se(n,"class","ShowBalance"),se(n,"part","ShowBalance")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,i),ee(o,s),ee(o,l),ee(o,c),ee(n,u),m&&m.m(n,null),te(e,h,t),g&&g.m(e,t),te(e,d,t),p||(f=ie(o,"click",r[11]),p=!0)},p(e,[t]){2&t&&le(a,e[1]),4&t&&le(s,e[2]),e[0]?m?m.p(e,t):(m=yo(e),m.c(),m.m(n,null)):m&&(m.d(1),m=null),e[0]?g?g.p(e,t):(g=vo(e),g.c(),g.m(d.parentNode,d)):g&&(g.d(1),g=null)},i:E,o:E,d(e){e&&re(n),m&&m.d(),e&&re(h),g&&g.d(e),e&&re(d),p=!1,f()}}}function Eo(e,t,o){let r;U(e,Pn,e=>o(3,r=e));let n,{userid:a=""}=t,{session:i=""}=t,{endpoint:s=""}=t,{lang:l="en"}=t,c=!1,u="",h="",d=!1,p=new Map;Object.keys(fo).forEach(e=>{gn(e,fo[e])});const f=e=>{switch(e){case"balance":o(0,c=!0);break;case"closebalance":o(0,c=!1)}},m=()=>{f("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href)},g=()=>{var e=l;xn.set(e),(async e=>{try{d=!0;const t=await fetch(e,{method:"GET",headers:{"X-SessionID":i}}),r=await t.json();if(!t.ok)throw d=!1,new Error("Failed to fetch balance data !");{d=!1,r.items.map(e=>p.set(e.displayName,e));const e=p.get("Casino"),n=p.get("UBS");o(2,h=e.currency),o(1,u=(parseFloat(e.balanceAmount)+parseFloat(n.balanceAmount)).toFixed(2))}}catch(e){d=!1,console.log("Balance error: ",e)}finally{d=!1}})(`${s}/player/${a}/account`)},b=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&n.close()};return G(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b),n&&n.close()})),e.$$set=e=>{"userid"in e&&o(7,a=e.userid),"session"in e&&o(8,i=e.session),"endpoint"in e&&o(9,s=e.endpoint),"lang"in e&&o(10,l=e.lang)},e.$$.update=()=>{1920&e.$$.dirty&&s&&a&&i&&l&&g(),896&e.$$.dirty&&s&&a&&i&&((e,t)=>{let r=new bo.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});n&&n.close(),n=r,r.addEventListener("message",e=>{try{var t=JSON.parse(e.data)["balanceChange"],r=p.get("Casino"),n=p.get("UBS");t&&t[r.id]&&p.set("Casino",Object.assign(Object.assign({},r),{balanceAmount:t[r.id].afterAmount})),t&&t[n.id]&&p.set("UBS",Object.assign(Object.assign({},r),{balanceAmount:t[n.id].afterAmount})),o(1,u=(parseFloat(r.balanceAmount)+parseFloat(n.balanceAmount)).toFixed(2))}catch(e){console.log("Balance stream failed: ",e)}})})(`${s}/player/${a}/balance/updates`,i)},[c,u,h,r,p,f,m,a,i,s,l,()=>f("balance"),()=>f("closebalance"),()=>m(),()=>f("closebalance")]}customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",class extends Q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;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}</style>",J(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Eo,wo,t,{userid:7,session:8,endpoint:9,lang:10},null),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["userid","session","endpoint","lang"]}get userid(){return this.$$.ctx[7]}set userid(e){this.$$set({userid:e}),D()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),D()}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$$set({endpoint:e}),D()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),D()}});var Ao="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Mo(e,t,r){const n=e.slice();return n[63]=t[r],n}function Co(e,t,r){const n=e.slice();return n[66]=t[r],n}function Bo(e,t,r){const n=e.slice();return n[63]=t[r],n}function Ho(e,t,r){const n=e.slice();return n[66]=t[r],n}function Io(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,e=r[19]("headerItem.login")+"",M=r[19]("headerItem.register")+"";function C(e){return e[13]?_o:xo}let B=C(r),H=B(r),I=!r[8]&&Ro(r),T=r[16],S=[];for(let e=0;e<T.length;e+=1)S[e]=Lo(Co(r,T,e));let x=r[10],_=[];for(let e=0;e<x.length;e+=1)_[e]=Fo(Mo(r,x,e));return{c(){n=ne("header"),o=ne("div"),a=ne("div"),H.c(),i=ae(),s=ne("nav"),I&&I.c(),l=ae(),c=ne("div"),u=ne("div"),h=ne("div"),d=oe(e),p=ae(),f=ne("div"),m=oe(M),g=ae(),b=ne("select");for(let e=0;e<S.length;e+=1)S[e].c();y=ae(),v=ne("nav"),w=ne("ul");for(let e=0;e<_.length;e+=1)_[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(b,"class","Item ItemLanguage"),se(b,"part","Item ItemLanguage"),void 0===r[11]&&k(()=>r[45].call(b)),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(n,"class","HeaderWrapper"),se(n,"part","HeaderWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),H.m(a,null),ee(o,i),ee(o,s),I&&I.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,b);for(let e=0;e<S.length;e+=1)S[e].m(b,null);O(b,r[11]),ee(n,y),ee(n,v),ee(v,w);for(let e=0;e<_.length;e+=1)_[e].m(w,null);E||(A=[ie(a,"click",r[42]),ie(h,"click",r[43]),ie(f,"click",r[44]),ie(b,"change",r[45]),ie(b,"change",r[46])],E=!0)},p(t,r){if(B===(B=C(t))&&H?H.p(t,r):(H.d(1),H=B(t),H&&(H.c(),H.m(a,null))),t[8]?I&&(I.d(1),I=null):I?I.p(t,r):(I=Ro(t),I.c(),I.m(s,null)),524288&r[0]&&e!==(e=t[19]("headerItem.login")+"")&&le(d,e),524288&r[0]&&M!==(M=t[19]("headerItem.register")+"")&&le(m,M),65536&r[0]){let e;for(T=t[16],e=0;e<T.length;e+=1){const a=Co(t,T,e);S[e]?S[e].p(a,r):(S[e]=Lo(a),S[e].c(),S[e].m(b,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=T.length}if(67584&r[0]&&O(b,t[11]),1024&r[0]){let e;for(x=t[10],e=0;e<x.length;e+=1){const a=Mo(t,x,e);_[e]?_[e].p(a,r):(_[e]=Fo(a),_[e].c(),_[e].m(w,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=x.length}},d(e){e&&re(n),H.d(),I&&I.d(),N(S,e),N(_,e),E=!1,q(A)}}}function To(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,M,C,B,H=r[19]("headerItem.login")+"",I=r[19]("headerItem.register")+"";function T(e){return e[13]?Oo:No}let S=T(r),x=S(r);return{c(){n=ne("header"),o=ne("div"),a=ne("div"),i=_("svg"),s=_("defs"),l=_("style"),c=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),u=_("g"),h=_("rect"),d=_("rect"),p=_("rect"),f=ae(),m=ne("div"),x.c(),g=ae(),b=ne("div"),y=ne("div"),v=ne("div"),w=oe(H),E=ae(),A=ne("div"),M=oe(I),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(A,"class","Item ItemRegister"),se(A,"part","Item ItemRegister"),se(y,"class","HeaderItemsMenu"),se(y,"part","HeaderItemsMenu"),se(b,"class","HeaderTopActions"),se(b,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(n,"class","HeaderWrapper HeaderMobileWrapper"),se(n,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,n,t),ee(n,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),x.m(m,null),ee(o,g),ee(o,b),ee(b,y),ee(y,v),ee(v,w),ee(y,E),ee(y,A),ee(A,M),C||(B=[ie(i,"click",r[38]),ie(m,"click",r[39]),ie(v,"click",r[40]),ie(A,"click",r[41])],C=!0)},p(e,t){S===(S=T(e))&&x?x.p(e,t):(x.d(1),x=S(e),x&&(x.c(),x.m(m,null))),524288&t[0]&&H!==(H=e[19]("headerItem.login")+"")&&le(w,H),524288&t[0]&&I!==(I=e[19]("headerItem.register")+"")&&le(M,I)},d(e){e&&re(n),x.d(),C=!1,q(B)}}}function So(e){let r;function n(e){return e[14]?ko:Po}let o=n(e),a=o(e);return{c(){a.c(),r=C()},m(e,t){a.m(e,t),te(e,r,t)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r.parentNode,r)))},d(e){a.d(e),e&&re(r)}}}function xo(e){let r,t;return{c(){r=ne("img"),b(r.src,t=Ao)||se(r,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg=="),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p:E,d(e){e&&re(r)}}}function _o(e){let r,n;return{c(){r=ne("img"),b(r.src,n=e[18])||se(r,"src",n),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p(e,t){262144&t[0]&&!b(r.src,n=e[18])&&se(r,"src",n)},d(e){e&&re(r)}}}function Ro(r){let n,o,a,i;return{c(){n=ne("casino-slider"),R(n,"class","HeaderItemsMenu"),R(n,"part","HeaderItemsMenu"),R(n,"identity",Yo),R(n,"isprimarymenu","true"),R(n,"actionevent",r[6]),R(n,"activeindex",r[9]),R(n,"location","headerMain"),R(n,"endpoint",r[2]),R(n,"lang",r[3])},m(e,t){te(e,n,t),a||(i=s(o=r[22].call(null,n)),a=!0)},p(e,t){64&t[0]&&R(n,"actionevent",e[6]),512&t[0]&&R(n,"activeindex",e[9]),4&t[0]&&R(n,"endpoint",e[2]),8&t[0]&&R(n,"lang",e[3])},d(e){e&&re(n),a=!1,i()}}}function Lo(e){let r,n,o,a=e[66]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[66],r.value=r.__value},m(e,t){te(e,r,t),ee(r,n)},p(e,t){65536&t[0]&&a!==(a=e[66]+"")&&le(n,a),65536&t[0]&&o!==(o=e[66])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function Fo(e){let r,n,o,a,i=e[63].label+"";return{c(){r=ne("li"),n=ne("a"),o=oe(i),se(n,"href",a=e[63].path),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,n),ee(n,o)},p(e,t){1024&t[0]&&i!==(i=e[63].label+"")&&le(o,i),1024&t[0]&&a!==(a=e[63].path)&&se(n,"href",a)},d(e){e&&re(r)}}}function No(e){let r,t;return{c(){r=ne("img"),b(r.src,t=Ao)||se(r,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg=="),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p:E,d(e){e&&re(r)}}}function Oo(e){let r,n;return{c(){r=ne("img"),b(r.src,n=e[18])||se(r,"src",n),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p(e,t){262144&t[0]&&!b(r.src,n=e[18])&&se(r,"src",n)},d(e){e&&re(r)}}}function Po(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,A,M,e=r[19]("headerItem.deposit")+"";function C(e){return e[13]?Uo:Do}let B=C(r),H=B(r),I=!r[8]&&jo(r),T=r[16],S=[];for(let e=0;e<T.length;e+=1)S[e]=Go(Ho(r,T,e));let x=r[10],_=[];for(let e=0;e<x.length;e+=1)_[e]=$o(Bo(r,x,e));return{c(){n=ne("header"),o=ne("div"),a=ne("div"),H.c(),i=ae(),s=ne("nav"),I&&I.c(),l=ae(),c=ne("div"),u=ne("div"),h=ne("player-account-balance-modal"),d=ae(),p=ne("div"),f=oe(e),m=ae(),g=ne("div"),g.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>',b=ae(),y=ne("select");for(let e=0;e<S.length;e+=1)S[e].c();v=ae(),w=ne("nav"),E=ne("ul");for(let e=0;e<_.length;e+=1)_[e].c();se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(s,"class","HeaderMainNav"),se(s,"part","HeaderMainNav"),R(h,"session",r[0]),R(h,"userid",r[1]),R(h,"endpoint",r[2]),R(h,"lang",r[3]),se(p,"class","Item ItemDeposit"),se(p,"part","Item ItemDeposit"),se(g,"class","Item ItemAccount"),se(g,"part","Item ItemAccount"),se(y,"class","Item ItemLanguage"),se(y,"part","Item ItemLanguage"),void 0===r[11]&&k(()=>r[36].call(y)),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(n,"class","HeaderWrapper"),se(n,"part","HeaderWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),H.m(a,null),ee(o,i),ee(o,s),I&&I.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,b),ee(u,y);for(let e=0;e<S.length;e+=1)S[e].m(y,null);O(y,r[11]),ee(n,v),ee(n,w),ee(w,E);for(let e=0;e<_.length;e+=1)_[e].m(E,null);A||(M=[ie(a,"click",r[33]),ie(p,"click",r[34]),ie(g,"click",r[35]),ie(y,"change",r[36]),ie(y,"change",r[37])],A=!0)},p(t,r){if(B===(B=C(t))&&H?H.p(t,r):(H.d(1),H=B(t),H&&(H.c(),H.m(a,null))),t[8]?I&&(I.d(1),I=null):I?I.p(t,r):(I=jo(t),I.c(),I.m(s,null)),1&r[0]&&R(h,"session",t[0]),2&r[0]&&R(h,"userid",t[1]),4&r[0]&&R(h,"endpoint",t[2]),8&r[0]&&R(h,"lang",t[3]),524288&r[0]&&e!==(e=t[19]("headerItem.deposit")+"")&&le(f,e),65536&r[0]){let e;for(T=t[16],e=0;e<T.length;e+=1){const a=Ho(t,T,e);S[e]?S[e].p(a,r):(S[e]=Go(a),S[e].c(),S[e].m(y,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=T.length}if(67584&r[0]&&O(y,t[11]),1024&r[0]){let e;for(x=t[10],e=0;e<x.length;e+=1){const a=Bo(t,x,e);_[e]?_[e].p(a,r):(_[e]=$o(a),_[e].c(),_[e].m(E,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=x.length}},d(e){e&&re(n),H.d(),I&&I.d(),N(S,e),N(_,e),A=!1,q(M)}}}function ko(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v=r[19]("headerItem.deposit")+"",w=!r[17]&&zo(r);function E(e){return e[13]?Zo:Wo}let A=E(r),M=A(r);return{c(){n=ne("header"),o=ne("div"),a=ne("div"),w&&w.c(),i=ae(),s=ne("div"),M.c(),l=ae(),c=ne("div"),u=ne("div"),h=ne("player-account-balance-modal"),d=ae(),p=ne("div"),f=oe(v),m=ae(),g=ne("div"),g.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"),R(h,"session",r[0]),R(h,"userid",r[1]),R(h,"endpoint",r[2]),R(h,"lang",r[3]),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(n,"class","HeaderWrapper HeaderMobileWrapper"),se(n,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,n,t),ee(n,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),b||(y=[ie(s,"click",r[30]),ie(p,"click",r[31]),ie(g,"click",r[32])],b=!0)},p(e,t){e[17]?w&&(w.d(1),w=null):w?w.p(e,t):(w=zo(e),w.c(),w.m(a,null)),A===(A=E(e))&&M?M.p(e,t):(M.d(1),M=A(e),M&&(M.c(),M.m(s,null))),1&t[0]&&R(h,"session",e[0]),2&t[0]&&R(h,"userid",e[1]),4&t[0]&&R(h,"endpoint",e[2]),8&t[0]&&R(h,"lang",e[3]),524288&t[0]&&v!==(v=e[19]("headerItem.deposit")+"")&&le(f,v)},d(e){e&&re(n),w&&w.d(),M.d(),b=!1,q(y)}}}function Do(e){let r,t;return{c(){r=ne("img"),b(r.src,t=Ao)||se(r,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg=="),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p:E,d(e){e&&re(r)}}}function Uo(e){let r,n;return{c(){r=ne("img"),b(r.src,n=e[18])||se(r,"src",n),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p(e,t){262144&t[0]&&!b(r.src,n=e[18])&&se(r,"src",n)},d(e){e&&re(r)}}}function jo(r){let n,o,a,i;return{c(){n=ne("casino-slider"),R(n,"class","HeaderItemsMenu"),R(n,"part","HeaderItemsMenu"),R(n,"identity",Yo),R(n,"isprimarymenu","true"),R(n,"actionevent",r[6]),R(n,"activeindex",r[9]),R(n,"endpoint",r[2]),R(n,"lang",r[3]),R(n,"location","headerMain"),R(n,"showsubgroups",r[7])},m(e,t){te(e,n,t),a||(i=s(o=r[22].call(null,n)),a=!0)},p(e,t){64&t[0]&&R(n,"actionevent",e[6]),512&t[0]&&R(n,"activeindex",e[9]),4&t[0]&&R(n,"endpoint",e[2]),8&t[0]&&R(n,"lang",e[3]),128&t[0]&&R(n,"showsubgroups",e[7])},d(e){e&&re(n),a=!1,i()}}}function Go(e){let r,n,o,a=e[66]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[66],r.value=r.__value,r.selected=!0},m(e,t){te(e,r,t),ee(r,n)},p(e,t){65536&t[0]&&a!==(a=e[66]+"")&&le(n,a),65536&t[0]&&o!==(o=e[66])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function $o(e){let r,n,o,a,i=e[63].label+"";return{c(){r=ne("li"),n=ne("a"),o=oe(i),se(n,"href",a=e[63].path),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,n),ee(n,o)},p(e,t){1024&t[0]&&i!==(i=e[63].label+"")&&le(o,i),1024&t[0]&&a!==(a=e[63].path)&&se(n,"href",a)},d(e){e&&re(r)}}}function zo(r){let n,o,a,i,s,l,c,u,h,d;return{c(){n=_("svg"),o=_("defs"),a=_("style"),i=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),s=_("g"),l=_("rect"),c=_("rect"),u=_("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(n,"xmlns","http://www.w3.org/2000/svg"),se(n,"width","22"),se(n,"height","16"),se(n,"viewBox","0 0 22 16")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(a,i),ee(n,s),ee(s,l),ee(s,c),ee(s,u),h||(d=ie(n,"click",r[29]),h=!0)},p:E,d(e){e&&re(n),h=!1,d()}}}function Wo(e){let r,t;return{c(){r=ne("img"),b(r.src,t=Ao)||se(r,"src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg=="),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p:E,d(e){e&&re(r)}}}function Zo(e){let r,n;return{c(){r=ne("img"),b(r.src,n=e[18])||se(r,"src",n),se(r,"alt","Logo")},m(e,t){te(e,r,t)},p(e,t){262144&t[0]&&!b(r.src,n=e[18])&&se(r,"src",n)},d(e){e&&re(r)}}}function Vo(e){let r,n;function o(e){return e[15]?So:e[14]?To:Io}let a=o(e),i=a(e);return{c(){i.c(),r=ae(),n=ne("casino-hamburger-menu"),this.c=E,R(n,"menuitemsurl",e[12]),R(n,"activecategory",e[5]),R(n,"lang",e[3]),R(n,"languageslist",e[4])},m(e,t){i.m(e,t),te(e,r,t),te(e,n,t)},p(e,t){a===(a=o(e))&&i?i.p(e,t):(i.d(1),i=a(e),i&&(i.c(),i.m(r.parentNode,r))),4096&t[0]&&R(n,"menuitemsurl",e[12]),32&t[0]&&R(n,"activecategory",e[5]),8&t[0]&&R(n,"lang",e[3]),16&t[0]&&R(n,"languageslist",e[4])},i:E,o:E,d(e){i.d(e),e&&re(r),e&&re(n)}}}let Yo="HeaderMenu";function Jo(r,e,n){let t;U(r,Pn,e=>n(19,t=e));let o,{session:a=""}=e,{userid:i=""}=e,{endpoint:s=""}=e,{cmsendpoint:l=""}=e,{cmsenv:c="stage"}=e,{lang:u="en"}=e,{languageslist:h="en, ro"}=e,{activecategory:d=""}=e,{operatorid:p=""}=e,{pagetag:f=""}=e,{positiontag:m=""}=e,{actionevent:g=""}=e,{userroles:b=""}=e,{showsubgroups:y="false"}=e;var v,w;({withLocale:v,translations:w}={withLocale:"en",translations:{}}),xn.subscribe(e=>{null==e&&(fn.set(w),xn.set(v))}),Object.keys(Un).forEach(e=>{gn(e,Un[e])});let E,A,M,C=[],B=[],H="",I=!0,T=!1,S=!1,x=window.navigator.userAgent,_=!1,R=[],L=!1,F="";const N=e=>{switch(e){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href);break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href);break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:kn(x)},window.location.href);break;case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href);break;case"language":window.postMessage({type:"LanguageChanged",selectedLanguage:H},window.location.href)}},O=()=>{n(17,L=!0),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},P=e=>{if(e.data)switch(e.data.type){case"UserSessionID":e.data.userid,e.data.session,n(15,_=!0);break;case"CloseHamburgerMenu":window.postMessage({type:"EnableScroll"},window.location.href),e.data.showhamburger&&n(17,L=!1);break;case"LogoutSuccessfull":n(15,_=!1);break;case"LanguageChanged":k(),D(A)}},k=()=>{A=new URL(`${l}/${H.toLowerCase()}/menu`),n(12,E=new URL(`${l}/${H.toLowerCase()}/hamburger-menu`)),M=new URL(`${l}/${H.toLowerCase()}/op-options/style`);var e=Dn(x);A.searchParams.append("env",c),A.searchParams.append("language",H.toLowerCase()),A.searchParams.append("userRoles",b),e&&("PC"===e?(E.searchParams.append("device","dk"),A.searchParams.append("device","dk")):"iPad"===e||"iPhone"===e?(E.searchParams.append("device","ios"),A.searchParams.append("device","ios")):(E.searchParams.append("device","mtWeb"),A.searchParams.append("device","mtWeb"))),E.searchParams.append("env",c),E.searchParams.append("language",H.toLowerCase()),E.searchParams.append("userRoles",b)},D=e=>(n(8,I=!0),new Promise((t,r)=>{fetch(e).then(e=>e.json()).then(e=>{C=e.desktop.primary,n(10,B=e.desktop.secondary),n(8,I=!1),t(e)},e=>{n(8,I=!1),console.error(e),r(e)})}));return G(async()=>(window.addEventListener("message",P,!1),kn(x)&&n(14,S=!0),()=>{window.removeEventListener("message",P)})),r.$$set=e=>{"session"in e&&n(0,a=e.session),"userid"in e&&n(1,i=e.userid),"endpoint"in e&&n(2,s=e.endpoint),"cmsendpoint"in e&&n(23,l=e.cmsendpoint),"cmsenv"in e&&n(24,c=e.cmsenv),"lang"in e&&n(3,u=e.lang),"languageslist"in e&&n(4,h=e.languageslist),"activecategory"in e&&n(5,d=e.activecategory),"operatorid"in e&&n(25,p=e.operatorid),"pagetag"in e&&n(26,f=e.pagetag),"positiontag"in e&&n(27,m=e.positiontag),"actionevent"in e&&n(6,g=e.actionevent),"userroles"in e&&n(28,b=e.userroles),"showsubgroups"in e&&n(7,y=e.showsubgroups)},r.$$.update=()=>{var e,t;288&r.$$.dirty[0]&&d&&!I&&n(9,o=C.findIndex(e=>-1<e.path.indexOf(d)).toString()),1&r.$$.dirty[0]&&a&&n(15,_=!0),8&r.$$.dirty[0]&&u&&(t=u,xn.set(t)),276824088&r.$$.dirty[0]&&l&&u&&h&&b&&(n(16,R=h.replace(/ /g,"").split(",")),n(16,R=R.map(e=>e.toUpperCase())),n(11,H=u.toUpperCase()),k(),e=M,n(13,T=!1),new Promise((t,r)=>{fetch(e).then(e=>e.json()).then(e=>{0<e.logoUrl.length&&("null"!=e.logoUrl||"false"!=e.logoUrl)?(n(18,F=e.logoUrl),n(13,T=!0)):n(13,T=!1),t(e)},e=>{n(13,T=!1),console.error(e),r(e)})}),setTimeout(()=>{D(A)}))},[a,i,s,u,h,d,g,y,I,o,B,H,E,T,S,_,R,L,F,t,N,O,e=>{window.postMessage({type:"SliderData",identity:Yo,data:C},window.location.href)},l,c,p,f,m,b,()=>O(),()=>N("lobby"),()=>N("deposit"),()=>N("myaccount"),()=>N("lobby"),()=>N("deposit"),()=>N("myaccount"),function(){H=j(this),n(11,H),n(16,R)},()=>N("language"),()=>O(),()=>N("lobby"),()=>N("login"),()=>N("register"),()=>N("lobby"),()=>N("login"),()=>N("register"),function(){H=j(this),n(11,H),n(16,R)},()=>N("language")]}class Qo extends Q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.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 a{color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none}.HeaderItemsMenuSecondary .ItemSecondary:hover a{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}</style>",J(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Jo,Vo,t,{session:0,userid:1,endpoint:2,cmsendpoint:23,cmsenv:24,lang:3,languageslist:4,activecategory:5,operatorid:25,pagetag:26,positiontag:27,actionevent:6,userroles:28,showsubgroups:7},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","operatorid","pagetag","positiontag","actionevent","userroles","showsubgroups"]}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[23]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),D()}get cmsenv(){return this.$$.ctx[24]}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 operatorid(){return this.$$.ctx[25]}set operatorid(e){this.$$set({operatorid:e}),D()}get pagetag(){return this.$$.ctx[26]}set pagetag(e){this.$$set({pagetag:e}),D()}get positiontag(){return this.$$.ctx[27]}set positiontag(e){this.$$set({positiontag:e}),D()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),D()}get userroles(){return this.$$.ctx[28]}set userroles(e){this.$$set({userroles:e}),D()}get showsubgroups(){return this.$$.ctx[7]}set showsubgroups(e){this.$$set({showsubgroups:e}),D()}}return customElements.get("casino-header-controller")||customElements.define("casino-header-controller",Qo),Qo});
4
4
  //# sourceMappingURL=casino-header-controller.js.map