@everymatrix/casino-page 0.0.228 → 0.0.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-page.js +1 -1
- package/dist/casino-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoPage.svelte +22 -11
package/dist/casino-page.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function U(){}function d(e){return e()}function h(){return Object.create(null)}function D(e){e.forEach(d)}function p(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return U;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Fe(e,t,r){e.$$.on_destroy.push(m(t,r))}function l(e){return e&&p(e.destroy)?e.destroy:U}function B(e,t){e.appendChild(t)}function j(e,t,r){e.insertBefore(t,r||null)}function H(e){e.parentNode.removeChild(e)}function c(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function z(e){return document.createElement(e)}function v(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function t(e){return document.createTextNode(e)}function W(){return t(" ")}function u(){return t("")}function V(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function X(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t,r){t in e?e[t]=r:X(e,t,r)}function Y(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function S(e,t){e.value=null==t?"":t}function C(e,t,r,n){e.style.setProperty(t,r,n?"important":"")}function n(e){const t={};for(const r of e)t[r.name]=r.value;return t}let g;function f(e){g=e}function Ae(e){!function(){if(!g)throw new Error("Function called outside component initialization");return g}().$$.on_mount.push(e)}const b=[],Pe=[],o=[],e=[],w=Promise.resolve();let E=!1;function x(e){o.push(e)}let i=!1;const a=new Set;function T(){if(!i){i=!0;do{for(let e=0;e<b.length;e+=1){var t=b[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),D(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(x))}}(t.$$)}for(f(null),b.length=0;Pe.length;)Pe.pop()();for(let e=0;e<o.length;e+=1){const r=o[e];a.has(r)||(a.add(r),r())}}while(o.length=0,b.length);for(;e.length;)e.pop()();E=!1,i=!1,a.clear()}}const _=new Set;function s(n,e,t,r,o,i,a=[-1]){var s,l=g;f(n);const c=n.$$={fragment:null,ctx:null,props:i,update:U,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:a,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{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]&&(b.push(e),E||(E=!0,w.then(T)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,D(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const U=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(U),U.forEach(H)}else c.fragment&&c.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(_.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:a,after_update:s}=t.$$;o&&o.m(e,r),n||x(()=>{var e=i.map(d).filter(p);a?a.push(...e):D(e),t.$$.on_mount=[]}),s.forEach(x)}(n,e.target,e.anchor,e.customElement),T()}f(l)}let F;"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(d).filter(p);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){D(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(D(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=U}$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 A,P,M="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==M&&M,I="URLSearchParams"in M,k="Symbol"in M&&"iterator"in Symbol,L="FileReader"in M&&"Blob"in M&&function(){try{return new Blob,!0}catch(e){return!1}}(),$="FormData"in M,N="ArrayBuffer"in M;function O(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 R(e){return e="string"!=typeof e?String(e):e}function G(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return k&&(e[Symbol.iterator]=function(){return e}),e}function q(t){this.map={},t instanceof q?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 Z(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function K(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function J(e){var t=new FileReader,r=K(t);return t.readAsArrayBuffer(e),r}function Q(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ee(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:L&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:$&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:I&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():N&&L&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Q(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):N&&(ArrayBuffer.prototype.isPrototypeOf(e)||P(e))?this._bodyArrayBuffer=Q(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):I&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},L&&(this.blob=function(){var e=Z(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?Z(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(J)}),this.text=function(){var e,t,r=Z(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=K(t=new FileReader),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)},$&&(this.formData=function(){return this.text().then(ne)}),this.json=function(){return this.text().then(JSON.parse)},this}N&&(A=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],P=ArrayBuffer.isView||function(e){return e&&-1<A.indexOf(Object.prototype.toString.call(e))}),q.prototype.append=function(e,t){e=O(e),t=R(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},q.prototype.delete=function(e){delete this.map[O(e)]},q.prototype.get=function(e){return e=O(e),this.has(e)?this.map[e]:null},q.prototype.has=function(e){return this.map.hasOwnProperty(O(e))},q.prototype.set=function(e,t){this.map[O(e)]=R(t)},q.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},q.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),G(r)},q.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),G(t)},q.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),G(r)},k&&(q.prototype[Symbol.iterator]=q.prototype.entries);var te=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function re(e,t){if(!(this instanceof re))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 re){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new q(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 q(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<te.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 ne(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 oe(e,t){if(!(this instanceof oe))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 q(t.headers),this.url=t.url||"",this._initBody(e)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})},ee.call(re.prototype),ee.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new q(this.headers),url:this.url})},oe.error=function(){var e=new oe(null,{status:0,statusText:""});return e.type="error",e};var ie=[301,302,303,307,308];oe.redirect=function(e,t){if(-1===ie.indexOf(t))throw new RangeError("Invalid status code");return new oe(null,{status:t,headers:{location:e}})};var ae=M.DOMException;try{new ae}catch(U){(ae=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),ae.prototype.constructor=ae}function se(n,a){return new Promise(function(o,e){var t=new re(n,a);if(t.signal&&t.signal.aborted)return e(new ae("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new q,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 i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new oe(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new ae("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&M.location.href?M.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(L?i.responseType="blob":N&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof q?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){i.setRequestHeader(e,R(a.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}se.polyfill=!0,M.fetch||(M.fetch=se,M.Headers=q,M.Request=re,M.Response=oe),self.fetch.bind(self);var le=function(e,t){return(le=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 ce(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}le(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ue(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 de(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function he(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function pe(e){return"function"==typeof e}function me(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 ge=me(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 fe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var ye=(be.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=ue(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(pe(i))try{i()}catch(e){o=e instanceof ge?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=ue(i),c=l.next();!c.done;c=l.next()){var u=c.value;try{Se(u)}catch(e){o=null!=o?o:[],e instanceof ge?o=he(he([],de(o)),de(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 ge(o)}},be.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Se(e);else{if(e instanceof be){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},be.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},be.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},be.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&fe(t,e)},be.prototype.remove=function(e){var t=this._teardowns;t&&fe(t,e),e instanceof be&&e._removeParent(this)},be.EMPTY=((Vt=new be).closed=!0,Vt),be),ve=ye.EMPTY;function be(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function we(e){return e instanceof ye||e&&"closed"in e&&pe(e.remove)&&pe(e.add)&&pe(e.unsubscribe)}function Se(e){pe(e)?e():e.unsubscribe()}var Ce=void 0,Ee=!1,xe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,he([],de(e)))};function Te(){}function _e(e){e()}var Me,Ie,ke=(ce(Ne,Ie=ye),Ne.create=function(e,t,r){return new Le(e,t,r)},Ne.prototype.next=function(e){this.isStopped||this._next(e)},Ne.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Ne.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ne.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ie.prototype.unsubscribe.call(this),this.destination=null)},Ne.prototype._next=function(e){this.destination.next(e)},Ne.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Ne.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ne),Le=(ce($e,Me=ke),$e);function $e(e,t,r){var n,o,i=Me.call(this)||this;return pe(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&Ee?(n=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:n=e,o=null==o?void 0:o.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Oe(o):Te,error:Oe(null!=t?t:Re),complete:r?Oe(r):Te},i}function Ne(e){var t=Ie.call(this)||this;return t.isStopped=!1,e?we(t.destination=e)&&e.add(t):t.destination=Ge,t}function Oe(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,he([],de(e)))}catch(e){t=e,xe(function(){throw t})}}}function Re(e){throw e}var Ge={closed:!0,next:Te,error:Re,complete:Te},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function De(e){return e}var Be=(je.prototype.lift=function(e){var t=new je;return t.source=this,t.operator=e,t},je.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof ke||n&&pe(n.next)&&pe(n.error)&&pe(n.complete)&&we(n)?e:new Le(e,t,r);return _e(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},je.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},je.prototype.forEach=function(n,e){var o=this;return new(e=He(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},je.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},je.prototype[Ue]=function(){return this},je.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?De:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},je.prototype.toPromise=function(e){var n=this;return new(e=He(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},je.create=function(e){return new je(e)},je);function je(e){e&&(this._subscribe=e)}function He(e){return null!==(e=null!=e?e:Ce)&&void 0!==e?e:Promise}var ze,We,Ve,Xe=me(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ye=(ce(et,Ve=Be),et.prototype.lift=function(e){var t=new qe(this,this);return t.operator=e,t},et.prototype._throwIfClosed=function(){if(this.closed)throw new Xe},et.prototype.next=function(i){var a=this;_e(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=ue(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},et.prototype.error=function(t){var r=this;_e(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)}})},et.prototype.complete=function(){var t=this;_e(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},et.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(et.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),et.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ve.prototype._trySubscribe.call(this,e)},et.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},et.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ve:(n.push(e),new ye(function(){return fe(n,e)}))},et.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},et.prototype.asObservable=function(){var e=new Be;return e.source=this,e},et.create=function(e,t){return new qe(e,t)},et),qe=(ce(Qe,We=Ye),Qe.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)},Qe.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)},Qe.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)},Qe.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:ve},Qe),Ze={now:function(){return(Ze.delegate||Date).now()},delegate:void 0},Ke=(ce(Je,ze=Ye),Je.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),ze.prototype.next.call(this,e)},Je.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},Je.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 i=t.now(),a=0,s=1;s<r.length&&r[s]<=i;s+=2)a=s;a&&r.splice(0,a+1)}},Je);function Je(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Ze);var n=ze.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 Qe(e,t){var r=We.call(this)||this;return r.destination=e,r.source=t,r}function et(){var e=Ve.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let tt=[],rt={};const nt=[];function ot(n,o=U){let i;const a=[];function s(e){if(r(n,e)&&(n=e,i)){const e=!nt.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),nt.push(t,n)}if(e){for(let e=0;e<nt.length;e+=2)nt[e][0](nt[e+1]);nt.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=U){const r=[e,t];return a.push(r),1===a.length&&(i=o(s)||U),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(i(),i=null)}}}}function it(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:ot(t,t=>{let r=!1;const n=[];let o=0,i=U;const a=()=>{var e;o||(i(),e=s(l?n[0]:n,t),u?t(e):i=p(e)?e:U)},e=c.map((e,t)=>m(e,e=>{n[t]=e,o&=~(1<<t),r&&a()},()=>{o|=1<<t}));return r=!0,a(),function(){D(e),i()}}).subscribe}}var at=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===st));var t},st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function lt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?pt(Array.isArray(e)?[]:{},e,t):e}function ct(e,t,r){return e.concat(t).map(function(e){return lt(e,r)})}function ut(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function dt(e,t){try{return t in e}catch(e){return!1}}function ht(n,o,i){var a={};return i.isMergeableObject(n)&&ut(n).forEach(function(e){a[e]=lt(n[e],i)}),ut(o).forEach(function(t){var e,r;(!dt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(dt(n,t)&&i.isMergeableObject(o[t])?a[t]=function(){if(!i.customMerge)return pt;var e=i.customMerge(t);return"function"==typeof e?e:pt}()(n[t],o[t],i):a[t]=lt(o[t],i))}),a}function pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||ct,r.isMergeableObject=r.isMergeableObject||at,r.cloneUnlessOtherwiseSpecified=lt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):ht(e,t,r):lt(t,r)}pt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return pt(e,t,r)},{})};var mt=pt,gt=function(e,t){return(gt=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 ft(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}gt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var yt,vt,bt,wt=function(){return(wt=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 St(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Ct(e){return e.type===vt.literal}function Et(e){return e.type===vt.number}function xt(e){return e.type===vt.date}function Tt(e){return e.type===vt.time}function _t(e){return e.type===vt.select}function Ft(e){return e.type===vt.plural}function At(e){return e.type===vt.tag}function Pt(e){return e&&"object"==typeof e&&e.type===bt.number}function Mt(e){return e&&"object"==typeof e&&e.type===bt.dateTime}(Xt=yt=yt||{})[Xt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Xt[Xt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Xt[Xt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Xt[Xt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Xt[Xt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Xt[Xt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Xt[Xt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Xt[Xt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Xt[Xt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Xt[Xt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Xt[Xt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Xt[Xt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Xt[Xt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Xt[Xt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Xt[Xt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Xt[Xt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Xt[Xt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Xt[Xt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Xt[Xt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Xt[Xt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Xt[Xt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Xt[Xt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Xt[Xt.INVALID_TAG=23]="INVALID_TAG",Xt[Xt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Xt[Xt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Xt[Xt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Yt=vt=vt||{})[Yt.literal=0]="literal",Yt[Yt.argument=1]="argument",Yt[Yt.number=2]="number",Yt[Yt.date=3]="date",Yt[Yt.time=4]="time",Yt[Yt.select=5]="select",Yt[Yt.plural=6]="plural",Yt[Yt.pound=7]="pound",Yt[Yt.tag=8]="tag",(qt=bt=bt||{})[qt.number=0]="number",qt[qt.dateTime=1]="dateTime";var It=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kt=/(?:[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 Lt,$t=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Nt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ot=/^(@+)?(\+|#+)?$/g,Rt=/(\*)(0+)|(#+)(0+)|(0+)/g,Gt=/^(0+)$/;function Ut(e){var n={};return e.replace(Ot,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 Dt(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 Bt(e){return Dt(e)||{}}function jt(e){for(var a={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=o.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=wt(wt(wt({},a),{notation:"scientific"}),o.options.reduce(function(e,t){return wt(wt({},e),Bt(t))},{}));continue;case"engineering":a=wt(wt(wt({},a),{notation:"engineering"}),o.options.reduce(function(e,t){return wt(wt({},e),Bt(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Rt,function(e,t,r,n,o,i){if(t)a.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Gt.test(o.stem))a.minimumIntegerDigits=o.stem.length;else if(Nt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Nt,function(e,t,r,n,o,i){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:o&&i?(a.minimumFractionDigits=o.length,a.maximumFractionDigits=o.length+i.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),o.options.length&&(a=wt(wt({},a),Ut(o.options[0])))}else Ot.test(o.stem)?a=wt(wt({},a),Ut(o.stem)):((n=Dt(o.stem))&&(a=wt(wt({},a),n)),(n=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)),!Gt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(a=wt(wt({},a),n)))}return a}var Ht=new RegExp("^"+It.source+"*"),zt=new RegExp(It.source+"*$");function Wt(e,t){return{start:e,end:t}}var Vt=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Ye=!!Object.fromEntries,Xt=!!String.prototype.codePointAt,Yt=!!String.prototype.trimStart,qt=!!String.prototype.trimEnd,Zt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},It=!0;try{It="a"===(null===(Lt=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Lt?void 0:Lt[0])}catch(U){It=!1}var Kt,Jt,Qt=Vt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},er=Ue?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))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},tr=Ye?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},rr=Xt?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}},nr=Yt?function(e){return e.trimStart()}:function(e){return e.replace(Ht,"")},or=qt?function(e){return e.trimEnd()}:function(e){return e.replace(zt,"")};function ir(e,t){return new RegExp(e,t)}Jt=It?(Kt=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Kt.lastIndex=t,null!==(e=Kt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=rr(e,t);if(void 0===o||cr(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 er.apply(void 0,n)};var ar=(sr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},sr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(yt.UNMATCHED_CLOSING_TAG,Wt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&lr(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{i=this.clonePosition();this.bump(),n.push({type:vt.pound,location:Wt(i,this.clonePosition())})}}}return{val:n,err:null}},sr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:vt.literal,value:"<"+n+"/>",location:Wt(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()||!lr(this.char()))return this.error(yt.INVALID_TAG,Wt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(yt.UNMATCHED_CLOSING_TAG,Wt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:vt.tag,value:n,children:e,location:Wt(r,this.clonePosition())},err:null}:this.error(yt.INVALID_TAG,Wt(t,this.clonePosition())))}return this.error(yt.UNCLOSED_TAG,Wt(r,this.clonePosition()))}return this.error(yt.INVALID_TAG,Wt(r,this.clonePosition()))},sr.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())},sr.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=Wt(r,this.clonePosition());return{val:{type:vt.literal,value:n,location:r},err:null}},sr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(lr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},sr.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 er.apply(void 0,t)},sr.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(),er(r))},sr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(yt.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(yt.EMPTY_ARGUMENT,Wt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(yt.MALFORMED_ARGUMENT,Wt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(yt.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:vt.argument,value:n,location:Wt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(yt.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(yt.MALFORMED_ARGUMENT,Wt(r,this.clonePosition()))}},sr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Jt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Wt(e,this.clonePosition())}},sr.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(yt.EXPECT_ARGUMENT_TYPE,Wt(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=or(h.val)).length)return this.error(yt.EXPECT_ARGUMENT_STYLE,Wt(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Wt(c,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var u=Wt(n,this.clonePosition());if(l&&Qt(null==l?void 0:l.style,"::",0)){c=nr(l.style.slice(2));if("number"===a)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:vt.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(yt.EXPECT_DATE_TIME_SKELETON,u);var d={type:bt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(kt,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"===a?vt.date:vt.time,value:r,location:u,style:d},err:null}}return{val:{type:"number"===a?vt.number:"date"===a?vt.date:vt.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(yt.EXPECT_SELECT_ARGUMENT_OPTIONS,Wt(l,wt({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(yt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Wt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(yt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,yt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(e,a,t,u);if(u.err)return u;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Wt(n,this.clonePosition());return"select"===a?{val:{type:vt.select,value:r,options:tr(u.val),location:p},err:null}:{val:{type:vt.plural,value:r,options:tr(u.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:p},err:null};default:return this.error(yt.INVALID_ARGUMENT_TYPE,Wt(i,s))}},sr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(yt.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},sr.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(yt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Wt(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}},sr.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($t).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 i=o[0],o=o.slice(1),a=0,s=o;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(yt.INVALID_NUMBER_SKELETON,t)}return{val:{type:bt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?jt(r):{}},err:null}},sr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],a=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(yt.EXPECT_PLURAL_ARGUMENT_SELECTOR,yt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Wt(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?yt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:yt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?yt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:yt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Wt(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(d);if(c.err)return c;i.push([s,{value:u.val,location:Wt(d,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===i.length?this.error("select"===t?yt.EXPECT_SELECT_ARGUMENT_SELECTOR:yt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Wt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(yt.MISSING_OTHER_CLAUSE,Wt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},sr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}n=Wt(n,this.clonePosition());return o?Zt(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},sr.prototype.offset=function(){return this.position.offset},sr.prototype.isEOF=function(){return this.offset()===this.message.length},sr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},sr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=rr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},sr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},sr.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))},sr.prototype.bumpIf=function(e){if(Qt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},sr.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)},sr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},sr.prototype.bumpSpace=function(){for(;!this.isEOF()&&cr(this.char());)this.bump()},sr.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},sr);function sr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function lr(e){return 97<=e&&e<=122||65<=e&&e<=90}function cr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function ur(e,t){t=wt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new ar(e,t).parse();if(r.err){e=SyntaxError(yt[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,_t(e)||Ft(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Et(e)&&Pt(e.style)||(xt(e)||Tt(e))&&Mt(e.style)?delete e.style.location:At(e)&&r(e.children)})}(r.val),r.val}function dr(e,t){var r=t&&t.cache?t.cache:vr,n=t&&t.serializer?t.serializer:gr;return(t&&t.strategy?t.strategy:function(e,t){return mr(e,this,1===e.length?hr:pr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function hr(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 pr(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 mr(e,t,r,n,o){return r.bind(t,e,n,o)}var gr=function(){return JSON.stringify(arguments)};function fr(){this.cache=Object.create(null)}fr.prototype.has=function(e){return e in this.cache},fr.prototype.get=function(e){return this.cache[e]},fr.prototype.set=function(e,t){this.cache[e]=t};var yr,vr={create:function(){return new fr}},br={variadic:function(e,t){return mr(e,this,pr,t.cache.create(),t.serializer)},monadic:function(e,t){return mr(e,this,hr,t.cache.create(),t.serializer)}};(It=yr=yr||{}).MISSING_VALUE="MISSING_VALUE",It.INVALID_VALUE="INVALID_VALUE",It.MISSING_INTL_API="MISSING_INTL_API";var wr,Sr,Cr,Er,xr,Tr=(ft(kr,xr=Error),kr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},kr),_r=(ft(Ir,Er=Tr),Ir),Fr=(ft(Mr,Cr=Tr),Mr),Ar=(ft(Pr,Sr=Tr),Pr);function Pr(e,t){return Sr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',yr.MISSING_VALUE,t)||this}function Mr(e,t,r){return Cr.call(this,'Value for "'+e+'" must be of type '+t,yr.INVALID_VALUE,r)||this}function Ir(e,t,r,n){return Er.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',yr.INVALID_VALUE,n)||this}function kr(e,t,r){e=xr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Lr(e,t,r,n,o,i,a){if(1===e.length&&Ct(e[0]))return[{type:wr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Ct(u))s.push({type:wr.literal,value:u.value});else if(u.type===vt.pound)"number"==typeof i&&s.push({type:wr.literal,value:r.getNumberFormat(t).format(i)});else{var d=u.value;if(!(o&&d in o))throw new Ar(d,a);var h=o[d];if(u.type===vt.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?wr.literal:wr.object,value:h});else if(xt(u)){var p="string"==typeof u.style?n.date[u.style]:Mt(u.style)?u.style.parsedOptions:void 0;s.push({type:wr.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Tt(u))p="string"==typeof u.style?n.time[u.style]:Mt(u.style)?u.style.parsedOptions:void 0,s.push({type:wr.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(Et(u))(p="string"==typeof u.style?n.number[u.style]:Pt(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:wr.literal,value:r.getNumberFormat(t,p).format(h)});else{if(At(u)){var m=u.children,g=u.value,d=o[g];if("function"!=typeof d)throw new Fr(g,"function",a);m=d(Lr(m,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(e){return{type:"string"==typeof e?wr.literal:wr.object,value:e}}))}if(_t(u)){if(!(f=u.options[h]||u.options.other))throw new _r(u.value,h,Object.keys(u.options),a);s.push.apply(s,Lr(f.value,t,r,n,o))}else if(Ft(u)){if(!(f=u.options["="+h])){if(!Intl.PluralRules)throw new Tr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',yr.MISSING_INTL_API,a);var m=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),f=u.options[m]||u.options.other}if(!f)throw new _r(u.value,h,Object.keys(u.options),a);s.push.apply(s,Lr(f.value,t,r,n,o,h-(u.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===wr.literal&&t.type===wr.literal?r.value+=t.value:e.push(t),e},[])}function $r(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(It=wr=wr||{})[It.literal=0]="literal",It[It.object=1]="object";var Nr=(Object.defineProperty(Or,"defaultLocale",{get:function(){return Or.memoizedDefaultLocale||(Or.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Or.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Or.memoizedDefaultLocale=null,Or.__parse=ur,Or.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"}}},Or);function Or(e,t,r,n){var o,i,a=this;if(void 0===t&&(t=Or.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===wr.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 Lr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!Or.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Or.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Or.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?wt(wt(wt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=wt(wt({},r[t]),n[t]||{}),e},{})):r),e},wt({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:dr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,St([void 0],t)))},{cache:$r((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:br.variadic}),getDateTimeFormat:dr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,St([void 0],t)))},{cache:$r(n.dateTime),strategy:br.variadic}),getPluralRules:dr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,St([void 0],t)))},{cache:$r(n.pluralRules),strategy:br.variadic})}}const Rr={},Gr=(t,r)=>{if(null!=r){if(r in Rr&&t in Rr[r])return Rr[r][t];var n,o,i=en(r);for(let e=0;e<i.length;e++){var a=(n=i[e],o=t,Br(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Ur[e]||null}(n),o):null);if(a)return n=t,o=r,(a=a)&&(o in Rr||(Rr[o]={}),n in Rr[o]||(Rr[o][n]=a),a)}}};let Ur;const Dr=ot({});function Br(e){return e in Ur}function jr(t,...r){delete Rr[t],Dr.update(e=>(e[t]=mt.all([e[t]||{},...r]),e))}it([Dr],([e])=>Object.keys(e)),Dr.subscribe(e=>Ur=e);const Hr={};function zr(e){return Hr[e]}function Wr(e){return en(e).some(e=>{return null===(e=zr(e))||void 0===e?void 0:e.size})}const Vr={};function Xr(e){if(!Wr(e))return e in Vr?Vr[e]:void 0;const t=en(e).map(e=>{var t=zr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Vr[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Hr[e].delete(t),0===Hr[e].size&&delete Hr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>jr(t,...e))}(e))).then(()=>Wr(e)?Xr(e):void delete Vr[e]),Vr[e]}function Yr(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 qr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Zr=ot(!1);let Kr;const Jr=ot(null);function Qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function en(e,t=qr.fallbackLocale){e=Qr(e);return t?[...new Set([...e,...Qr(t)])]:e}Jr.subscribe(e=>{Kr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const tn=Jr.set;Jr.set=t=>{if(function(e){if(null!=e){var t=en(e);for(let e=0;e<t.length;e++){var r=t[e];if(Br(r))return r}}}(t)&&Wr(t)){var{loadingDelay:r}=qr;let e;return"undefined"!=typeof window&&null!=Kr&&r?e=window.setTimeout(()=>Zr.set(!0),r):Zr.set(!0),Xr(t).then(()=>{tn(t)}).finally(()=>{clearTimeout(e),Zr.set(!1)})}return tn(t)},Jr.update=e=>tn(e(Kr));const rn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},nn=(e,t)=>{var{formats:r}=qr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},on=rn(e=>{var{locale:t,format:r}=e,e=Yr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=nn("number",r)),new Intl.NumberFormat(t,e)}),an=rn(e=>{var{locale:t,format:r}=e,e=Yr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=nn("date",r):0===Object.keys(e).length&&(e=nn("date","short")),new Intl.DateTimeFormat(t,e)}),sn=rn(e=>{var{locale:t,format:r}=e,e=Yr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=nn("time",r):0===Object.keys(e).length&&(e=nn("time","short")),new Intl.DateTimeFormat(t,e)}),ln=rn((e,t=Kr)=>new Nr(e,t,qr.formats,{ignoreTag:qr.ignoreTag})),cn=it([Jr,Dr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Kr,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Gr(e,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else qr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${en(n).join('", "')}".${Wr(Kr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||e;if(!r)return i;let a=i;try{a=ln(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});it([Jr],()=>(e,t)=>((e={})=>{var{locale:t=Kr}=e,e=Yr(e,["locale"]);return sn(Object.assign({locale:t},e))})(t).format(e)),it([Jr],()=>(e,t)=>((e={})=>{var{locale:t=Kr}=e,e=Yr(e,["locale"]);return an(Object.assign({locale:t},e))})(t).format(e)),it([Jr],()=>(e,t)=>((e={})=>{var{locale:t=Kr}=e,e=Yr(e,["locale"]);return on(Object.assign({locale:t},e))})(t).format(e)),it([Jr,Dr],()=>(e,t=Kr)=>Gr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==tt.indexOf(e)&&(t=new Ke(t),rt[e]=t,tt.push(e)),rt[e]}};const un=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",hn={en:{casinoPage:{search:"Search",loading:"Loading",searchMobile:"Search",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},de:{casinoPage:{search:"Suche",loading:"Loading",searchMobile:"Suche",break:"Mach mal einen Tag Pause!",breakButton:"24 Stunden Auszeit"}},it:{casinoPage:{search:"Cerca",loading:"Loading",searchMobile:"Cerca",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},fr:{casinoPage:{search:"Rechercher des jeux ...",loading:"Chargement ...",searchMobile:"Rechercher",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},es:{casinoPage:{search:"Buscar juegos ...",loading:"Cargando ...",searchMobile:"Buscar",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},tr:{casinoPage:{search:"Oyun ara ...",loading:"Yükleniyor ...",searchMobile:"Arama",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},ru:{casinoPage:{search:"Искать игры ...",loading:"Загрузка ...",searchMobile:"Поиск",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},ro:{casinoPage:{search:"Cautare jocuri...",loading:"Se incarca ...",searchMobile:"Cauta",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},hr:{casinoPage:{search:"Pretraži",loading:"Učitavanje",searchMobile:"Pretraži",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},hu:{casinoPage:{search:"Keresés",loading:"betöltés",searchMobile:"Keresés",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},pl:{casinoPage:{search:"Szukaj",loading:"Ładowanie",searchMobile:"Szukaj",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},pt:{casinoPage:{search:"Procurar",loading:"A carregar",searchMobile:"Procurar",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},sl:{casinoPage:{search:"Iskanje",loading:"Loading",searchMobile:"Iskanje",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},sr:{casinoPage:{search:"Pretraži",loading:"Loading",searchMobile:"Pretraži",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}}},pn={en:{gamesCategorySection:{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again."}},de:{gamesCategorySection:{showMore:"Mehr",viewAll:"Alle anzeigen",searchedItems:"Suchergebnis",recentSearchedItems:"Zuletzt gesucht",noRecentSearch:"Noch keine Suche gestartet. Einfach nach einem Spiel suchen.",noResults:"Sorry, kein Treffer. Bitte erneut versuchen."}},it:{gamesCategorySection:{showMore:"Altro",viewAll:"Mostra tutto",searchedItems:"risultato",recentSearchedItems:"Ricerche recenti",noRecentSearch:"Non sono ancora state avviate ricerche. Esegui semplicemente la ricerca per un gioco.",noResults:"Spiacenti, nessun risultato. Si prega di riprovare."}},fr:{gamesCategorySection:{showMore:"Montre plus",viewAll:"Voir tout",searchedItems:"Articles recherchés",recentSearchedItems:"Articles recherchés récemment",noRecentSearch:"Aucune recherche n'a encore commencé. Recherchez simplement un jeu.",noResults:"Désolé, aucun résultat trouvé. Veuillez réessayer"}},es:{gamesCategorySection:{showMore:"Mostrar más",viewAll:"Ver todo",searchedItems:"Artículos buscados",recentSearchedItems:"Elementos buscados recientemente",noRecentSearch:"Aún no se inició ninguna búsqueda. Simplemente busque un juego.",noResults:"Lo sentimos, no se encontraron resultados. Inténtalo de nuevo"}},tr:{gamesCategorySection:{showMore:"Daha fazla göster",viewAll:"Hepsini gör",searchedItems:"Aranan öğeler",recentSearchedItems:"Son Aranan Öğeler",noRecentSearch:"Henüz arama başlamadı. Sadece bir oyun arayın.",noResults:"Üzgünüz, sonuç bulunamadı. Lütfen tekrar deneyin"}},ru:{gamesCategorySection:{showMore:"Показать больше",viewAll:"Посмотреть все",searchedItems:"Искомые товары",recentSearchedItems:"Недавние поисковые запросы",noRecentSearch:"Поиск еще не начался. Просто найдите игру.",noResults:"Извините, результатов не найдено. Пожалуйста, попробуйте еще раз"}},ro:{gamesCategorySection:{showMore:"Arata mai mult",viewAll:"Vezi toate",searchedItems:"Rezultatele cautarii",recentSearchedItems:"Cautari recente",noRecentSearch:"Nici o căutare nu a început încă. Pur și simplu căutați un joc.",noResults:"Ne pare rau, nu s-au gasit rezultate. Va rugam sa incercati din nou"}},hr:{gamesCategorySection:{showMore:"Više",viewAll:"Pokaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnje pretrage",noRecentSearch:"Pretraživanje nije pokrenuto. Jednostavno potražite željenu igru.",noResults:"Žao nam je, nema rezultata. Molimo pokušajte ponovno."}},hu:{gamesCategorySection:{showMore:"Több",viewAll:"Az összes megjelenítése",searchedItems:"Keresés eredménye",recentSearchedItems:"Legutóbb keresett",noRecentSearch:"A keresés még nem kezdődött el. Egyszerűen keressen egy játékot.",noResults:"Sajnos nincs találat. Kérjük próbálja újra."}},pl:{gamesCategorySection:{showMore:"Więcej",viewAll:"Pokaż wszystkie",searchedItems:"Wynik wyszukiwania",recentSearchedItems:"Ostatnio wyszukiwane",noRecentSearch:"Nie rozpoczęto wyszukiwania. W prosty sposób wyszukaj grę.",noResults:"Przepraszamy, brak wyników. Prosimy spróbować ponownie."}},pt:{gamesCategorySection:{showMore:"Mais",viewAll:"Mostrar tudo",searchedItems:"Procurar resultado",recentSearchedItems:"Pesquisado recentemente",noRecentSearch:"Nenhuma pesquisa iniciada. Pesquisar simplesmente um jogo.",noResults:"Desculpe, sem qualquer correspondência. Por favor, tente novamente."}},sl:{gamesCategorySection:{showMore:"Več",viewAll:"Prikaži vse",searchedItems:"Rezultati iskanja",recentSearchedItems:"Nedavno iskanje",noRecentSearch:"Niste še začeli z iskanjem. Enostavno poiščite želeno igro.",noResults:"Oprostite, ni rezultata. Prosimo poizkusite ponovno."}},sr:{gamesCategorySection:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnja pretraga",noRecentSearch:"Još nije pokrenuta pretraga. Jednostavno pretraži igre.",noResults:"Žao nam je, nema pogodaka. Pokušaj ponovo."}}},mn={en:{gameThumbnail:{playNow:"Start now!",new:"NEW",hot:"Hot"}},de:{gameThumbnail:{playNow:"Jetzt starten!",new:"NEU",hot:"Hot"}},it:{gameThumbnail:{playNow:"Inizia ora!",new:"NOVITÀ",hot:"HOT"}},fr:{gameThumbnail:{playNow:"Joue Maintenant",new:"NOUVEAU",hot:"CHAUD"}},es:{gameThumbnail:{playNow:"Juega ahora",new:"NUEVO",hot:"CALIENTE"}},tr:{gameThumbnail:{playNow:"Şimdi oyna",new:"YENİ",hot:"SICAK"}},ru:{gameThumbnail:{playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ"}},ro:{gameThumbnail:{playNow:"Joaca acum",new:"NOU",hot:"POPULAR"}},hr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće"}},hu:{gameThumbnail:{playNow:"Játsszon most!",new:"ÚJ",hot:"Hot"}},pl:{gameThumbnail:{playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot"}},pt:{gameThumbnail:{playNow:"Comece agora!",new:"NOVO",hot:"Hot"}},sl:{gameThumbnail:{playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče"}},sr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće"}}};function gn(e){let r,n=!un(e[15])&&!e[0]&&e[9],o=n&&fn(e);return{c(){o&&o.c(),r=u()},m(e,t){o&&o.m(e,t),j(e,r,t)},p(e,t){513&t[0]&&(n=!un(e[15])&&!e[0]&&e[9]),n?o?o.p(e,t):(o=fn(e),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(e){o&&o.d(e),e&&H(r)}}}function fn(r){let n,o,i;return{c(){n=z("div"),n.innerHTML='<svg version="1.1" class="UnfavoredIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="20px" y="20px" viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><path style="fill: white" d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"></path></svg>',X(n,"class","FavIconContainer")},m(e,t){j(e,n,t),o||(i=V(n,"click",r[32]),o=!0)},p:U,d(e){e&&H(n),o=!1,i()}}}function yn(e){let r;return{c(){r=z("div"),r.innerHTML='<svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',X(r,"class","FavIconContainer")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function vn(r){let n,o,i;return{c(){n=z("div"),n.innerHTML='<svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',X(n,"class","FavIconContainer")},m(e,t){j(e,n,t),o||(i=V(n,"click",r[34]),o=!0)},p:U,d(e){e&&H(n),o=!1,i()}}}function bn(e){let r,n,o=e[14]("gameThumbnail.new")+"";return{c(){r=z("span"),n=t(o),X(r,"class","GameExtraInfoLabel NewGameTag")},m(e,t){j(e,r,t),B(r,n)},p(e,t){16384&t[0]&&o!==(o=e[14]("gameThumbnail.new")+"")&&Y(n,o)},d(e){e&&H(r)}}}function wn(e){let r,n,o=e[14]("gameThumbnail.hot")+"";return{c(){r=z("span"),n=t(o),X(r,"class","GameExtraInfoLabel PopularGameTag")},m(e,t){j(e,r,t),B(r,n)},p(e,t){16384&t[0]&&o!==(o=e[14]("gameThumbnail.hot")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Sn(e){let r,n;return{c(){r=z("p"),n=t(e[3]),X(r,"class","GameNameBelow"),X(r,"title",e[3])},m(e,t){j(e,r,t),B(r,n)},p(e,t){8&t[0]&&Y(n,e[3]),8&t[0]&&X(r,"title",e[3])},d(e){e&&H(r)}}}function Cn(r){let n,o,i,a,s,l,c,u,d,h,p,m,g,f,y,v,b,w,S,C,E,x,T,_,F,A,P=r[14]("gameThumbnail.playNow")+"",M=(r[4]||"-")+"",I=0<parseInt(r[7]),k=r[10]&&gn(r);function L(e,t){return(null==S||515&t[0])&&(S=!(un(e[15])||!e[0]||!e[9]||!e[1])),S?vn:((null==C||515&t[0])&&(C=!!(un(e[15])&&e[0]&&e[9]&&e[1])),C?yn:void 0)}let $=L(r,[-1]),N=$&&$(r),O=r[6]&&bn(r),R=I&&wn(r),G=r[8]&&Sn(r);return{c(){n=z("div"),o=z("div"),i=z("img"),l=W(),c=z("div"),u=z("div"),k&&k.c(),d=W(),h=z("p"),p=t(r[3]),m=W(),g=z("button"),f=t(P),y=W(),v=z("span"),b=t(M),w=W(),N&&N.c(),E=W(),x=z("div"),O&&O.c(),T=W(),R&&R.c(),_=W(),G&&G.c(),this.c=U,i.src!==(a=r[2])&&X(i,"src",a),X(i,"class",s="GameBg "+(r[11]?"Loaded":"")),X(i,"alt",""),X(i,"loading","lazy"),X(h,"class","GameInfoName"),X(h,"title",r[3]),X(g,"class","GameInfoBtn"),X(u,"class","GameInfo"),X(v,"class","GameInfoVendor"),X(c,"class","GameInfoWrapper"),X(x,"class","GameExtraInfo"),X(o,"class","GameInnerContainer"),X(n,"class","GameContainer")},m(e,t){j(e,n,t),B(n,o),B(o,i),r[31](i),B(o,l),B(o,c),B(c,u),k&&k.m(u,null),B(u,d),B(u,h),B(h,p),B(u,m),B(u,g),B(g,f),B(c,y),B(c,v),B(v,b),B(o,w),N&&N.m(o,null),B(o,E),B(o,x),O&&O.m(x,null),B(x,T),R&&R.m(x,null),B(n,_),G&&G.m(n,null),r[35](n),F||(A=[V(g,"click",r[33]),V(o,"mouseenter",r[20]),V(o,"mouseleave",r[21]),V(o,"touchstart",r[18],{passive:!0}),V(o,"touchleave",r[19])],F=!0)},p(e,t){4&t[0]&&i.src!==(a=e[2])&&X(i,"src",a),2048&t[0]&&s!==(s="GameBg "+(e[11]?"Loaded":""))&&X(i,"class",s),e[10]?k?k.p(e,t):(k=gn(e),k.c(),k.m(u,d)):k&&(k.d(1),k=null),8&t[0]&&Y(p,e[3]),8&t[0]&&X(h,"title",e[3]),16384&t[0]&&P!==(P=e[14]("gameThumbnail.playNow")+"")&&Y(f,P),16&t[0]&&M!==(M=(e[4]||"-")+"")&&Y(b,M),$===($=L(e,t))&&N?N.p(e,t):(N&&N.d(1),N=$&&$(e),N&&(N.c(),N.m(o,E))),e[6]?O?O.p(e,t):(O=bn(e),O.c(),O.m(x,T)):O&&(O.d(1),O=null),128&t[0]&&(I=0<parseInt(e[7])),I?R?R.p(e,t):(R=wn(e),R.c(),R.m(x,null)):R&&(R.d(1),R=null),e[8]?G?G.p(e,t):(G=Sn(e),G.c(),G.m(n,null)):G&&(G.d(1),G=null)},i:U,o:U,d(e){e&&H(n),r[31](null),k&&k.d(),N&&N.d(),O&&O.d(),R&&R.d(),G&&G.d(),r[35](null),F=!1,D(A)}}}function En(e,t,r){let n;Fe(e,cn,e=>r(14,n=e));let o,i,{session:a=""}=t,{userid:s=""}=t,{lang:l=""}=t,{clientstyling:c=""}=t,{clientstylingurl:u=""}=t,{favorites:d=""}=t,{gamethumbnail:h=""}=t,{gamename:p=""}=t,{gamevendor:m=""}=t,{gameid:g=""}=t,{gameisnew:f=""}=t,{gamepopularity:y=""}=t,{gamefunmode:v=!1}=t,{searchitem:b=!1}=t,{gamefavorite:w=!1}=t,{showfavoredcategory:S=!1}=t,{showgamename:C=!1}=t,{endpoint:E=""}=t,x=!1,T=!1,_=!1,F=window.navigator.userAgent;Object.keys(mn).forEach(e=>{jr(e,mn[e])});const A=e=>{e.data.type!==`AddFavoriteThumbnail_${g}`||S||r(0,w=!0),e.data.type!==`RemoveFavoriteThumbnail_${g}`||S||r(0,w=!1),"UserSessionID"===e.data.type&&(r(9,x=!0),e.data.session,e.data.userID)},P=e=>{un(F)?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:v},window.location.href):window.postMessage({type:"ShowGameModal",gameId:e},window.location.href),b&&window.postMessage({type:"SearchedItemClicked",gameId:e},window.location.href)},M=e=>{var t="thumbnail";w?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)};return Ae(()=>(window.addEventListener("message",A,!1),()=>{window.removeEventListener("message",A)})),e.$$set=e=>{"session"in e&&r(22,a=e.session),"userid"in e&&r(23,s=e.userid),"lang"in e&&r(24,l=e.lang),"clientstyling"in e&&r(25,c=e.clientstyling),"clientstylingurl"in e&&r(26,u=e.clientstylingurl),"favorites"in e&&r(1,d=e.favorites),"gamethumbnail"in e&&r(2,h=e.gamethumbnail),"gamename"in e&&r(3,p=e.gamename),"gamevendor"in e&&r(4,m=e.gamevendor),"gameid"in e&&r(5,g=e.gameid),"gameisnew"in e&&r(6,f=e.gameisnew),"gamepopularity"in e&&r(7,y=e.gamepopularity),"gamefunmode"in e&&r(27,v=e.gamefunmode),"searchitem"in e&&r(28,b=e.searchitem),"gamefavorite"in e&&r(0,w=e.gamefavorite),"showfavoredcategory"in e&&r(29,S=e.showfavoredcategory),"showgamename"in e&&r(8,C=e.showgamename),"endpoint"in e&&r(30,E=e.endpoint)},e.$$.update=()=>{e.$$.dirty[0],1086324736&e.$$.dirty[0]&&a&&s&&E&&r(9,x=!0),4&e.$$.dirty[0]&&h&&o&&r(12,o.onload=()=>{r(11,_=!0)},o),33554432&e.$$.dirty[0]&&c&&(()=>{let e=document.createElement("style");e.innerHTML=c,setTimeout(()=>{i.appendChild(e)})})(),2&e.$$.dirty[0]&&d&&"true"==d&&r(10,T=!0),67108864&e.$$.dirty[0]&&u&&(()=>{let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)})})})()},[w,d,h,p,m,g,f,y,C,x,T,_,o,i,n,F,P,M,()=>{window.postMessage({type:"GameHovered"},window.location.href)},()=>{window.postMessage({type:"GameBlur"},window.location.href)},()=>{window.postMessage({type:"GameHovered"},window.location.href)},()=>{window.postMessage({type:"GameBlur"},window.location.href)},a,s,l,c,u,v,b,S,E,function(e){Pe[e?"unshift":"push"](()=>{o=e,r(12,o)})},()=>M(g),()=>P(g),()=>M(g),function(e){Pe[e?"unshift":"push"](()=>{i=e,r(13,i)})}]}function xn(e,t,r){const n=e.slice();return n[68]=t[r],n[70]=r,n}function Tn(e,t,r){const n=e.slice();return n[68]=t[r],n[71]=t,n[70]=r,n}function _n(e,t,r){const n=e.slice();return n[68]=t[r],n[70]=r,n}function Fn(e){let r;function n(e){return e[9]?In:e[19]?Mn:void 0}let o=n(e),i=o&&o(e);return{c(){r=z("div"),i&&i.c()},m(e,t){j(e,r,t),i&&i.m(r,null)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i&&i.d(1),i=o&&o(e),i&&(i.c(),i.m(r,null)))},d(e){e&&H(r),i&&i.d()}}}function An(e){let r,n,o;function i(e){return e[13]?qn:e[10].length?Xn:Yn}let a=i(e),s=a(e);function l(e){return e[10]?Kn:Zn}let c=l(e),u=c(e);return{c(){r=z("div"),n=z("div"),s.c(),o=W(),u.c(),X(n,"class","CasinoGamesHeader Searched "+(un(e[23])?"CasinoGamesHeaderMobile":"")),X(r,"class","CasinoGamesContainer")},m(e,t){j(e,r,t),B(r,n),s.m(n,null),B(r,o),u.m(r,null)},p(e,t){a===(a=i(e))&&s?s.p(e,t):(s.d(1),s=a(e),s&&(s.c(),s.m(n,null))),c===(c=l(e))&&u?u.p(e,t):(u.d(1),u=c(e),u&&(u.c(),u.m(r,null)))},d(e){e&&H(r),s.d(),u.d()}}}function Pn(e){let r;function n(e){return e[15]?to:eo}let o=n(e),i=o(e);return{c(){i.c(),r=u()},m(e,t){i.m(e,t),j(e,r,t)},p(e,t){o!==(o=n(e))&&(i.d(1),i=o(e),i&&(i.c(),i.m(r.parentNode,r)))},d(e){i.d(e),e&&H(r)}}}function Mn(r){let n,o,i,a,s,l,c,u=r[21].name+"";function d(e){return e[21]?Ln:kn}let h=d(r),p=h(r);return{c(){n=z("div"),o=z("div"),i=z("h3"),a=t(u),s=W(),l=z("ul"),p.c(),X(i,"class","CategoryName"),X(o,"class","CasinoGamesHeader"),X(l,"class",c=(0!=r[21].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),X(n,"class","CasinoGamesContainer")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(i,a),r[38](i),B(n,s),B(n,l),p.m(l,null),r[39](l)},p(e,t){2097152&t[0]&&u!==(u=e[21].name+"")&&Y(a,u),h===(h=d(e))&&p?p.p(e,t):(p.d(1),p=h(e),p&&(p.c(),p.m(l,null))),2097152&t[0]&&c!==(c=(0!=e[21].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&X(l,"class",c)},d(e){e&&H(n),r[38](null),p.d(),r[39](null)}}}function In(r){let n,o,i,a,s,l,c=r[9].name+"",u=r[11]&&Hn(r);function d(e){return 0!==e[10].length?Wn:zn}let h=d(r),p=h(r);return{c(){n=z("div"),o=z("div"),i=z("h3"),a=t(c),s=W(),u&&u.c(),l=W(),p.c(),X(i,"class","CategoryName"),X(o,"class","CasinoGamesHeader"),X(n,"class","CasinoGamesContainer")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(i,a),r[34](i),B(o,s),u&&u.m(o,null),B(n,l),p.m(n,null)},p(e,t){512&t[0]&&c!==(c=e[9].name+"")&&Y(a,c),e[11]?u?u.p(e,t):(u=Hn(e),u.c(),u.m(o,null)):u&&(u.d(1),u=null),h===(h=d(e))&&p?p.p(e,t):(p.d(1),p=h(e),p&&(p.c(),p.m(n,null)))},d(e){e&&H(n),r[34](null),u&&u.d(),p.d()}}}function kn(e){let r;return{c(){r=z("p"),r.textContent="Waiting"},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function Ln(t){let n,o=t[21].items,i=[];for(let e=0;e<o.length;e+=1)i[e]=jn(xn(t,o,e));let a=null;return o.length||(a=$n(t)),{c(){for(let e=0;e<i.length;e+=1)i[e].c();n=u(),a&&a.c()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);j(t,n,r),a&&a.m(t,r)},p(t,r){if(11010175&r[0]){let e;for(o=t[21].items,e=0;e<o.length;e+=1){const a=xn(t,o,e);i[e]?i[e].p(a,r):(i[e]=jn(a),i[e].c(),i[e].m(n.parentNode,n))}for(;e<i.length;e+=1)i[e].d(1);i.length=o.length,!o.length&&a?a.p(t,r):o.length?a&&(a.d(1),a=null):(a=$n(t),a.c(),a.m(n.parentNode,n))}},d(e){c(i,e),e&&H(n),a&&a.d(e)}}}function $n(e){let r,n,o,i,a,s,l,c=(t=e,(un(t[23])?On:Nn)(e));var t;return{c(){r=z("p"),n=v("svg"),o=v("path"),i=W(),a=z("span"),a.textContent="You do not have any favored games yet.",s=W(),c.c(),l=W(),C(o,"fill","white"),X(o,"d","M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"),X(n,"version","1.1"),X(n,"class","UnfavoredIcon"),X(n,"xmlns","http://www.w3.org/2000/svg"),X(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),X(n,"x","50px"),X(n,"y","50px"),X(n,"viewBox","0 0 512.001 512.001"),C(n,"enable-background","new 0 0 512.001 512.001"),X(n,"xml:space","preserve"),X(a,"class","NoFavoriteText NoFavoriteTextHighlight"),X(r,"class","NoFavoriteGames "+(un(e[23])?"NoFavoriteGamesMobile":""))},m(e,t){j(e,r,t),B(r,n),B(n,o),B(r,i),B(r,a),B(r,s),c.m(r,null),B(r,l)},p:U,d(e){e&&H(r),c.d()}}}function Nn(e){let r;return{c(){r=z("span"),r.textContent="You can now add games to favorites by clicking on the star icon located on the game thumbnail.",X(r,"class","NoFavoriteText")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function On(e){let r;return{c(){r=z("span"),r.textContent="You can now add games to favorites by tapping on the star icon located on the game page.",X(r,"class","NoFavoriteText")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function Rn(e){let r,n=e[68].gameModel.isFavorite&&Gn(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){e[68].gameModel.isFavorite?n?n.p(e,t):(n=Gn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&H(r)}}}function Gn(e){let r,n=function(e){let r,n,o;function i(e,t){return null==r&&(r=!!un(e[23])),r?Dn:((null==n||2097152&t[0])&&(n=!!e[68].gameModel.platform.includes("PC")),n?Un:void 0)}let a=i(e,[-1]),s=a&&a(e);return{c(){s&&s.c(),o=u()},m(e,t){s&&s.m(e,t),j(e,o,t)},p(e,t){a===(a=i(e,t))&&s?s.p(e,t):(s&&s.d(1),s=a&&a(e),s&&(s.c(),s.m(o.parentNode,o)))},d(e){s&&s.d(e),e&&H(o)}}}(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&H(r)}}}function Un(e){let r,n,o,i,a,s,l,c,u,d,h;return{c(){r=z("casino-game-thumbnail"),y(r,"class",n=""+(no+(e[68].cellSize||"1x1"))),y(r,"session",e[2]),y(r,"userid",e[3]),y(r,"lang",e[1]),y(r,"favorites",e[4]),y(r,"gamethumbnail",o=e[68].gameModel.thumbnail),y(r,"gamename",i=e[68].gameModel.name),y(r,"gamevendor",a=e[68].gameModel.vendor.name),y(r,"gameisnew",s=e[68].gameModel.isNew),y(r,"gamepopularity",l=e[68].gameModel.popularity),y(r,"gamecellsize",c=e[68].gameModel.cellSize),y(r,"gameid",u=e[68].gameModel.id),y(r,"gamefunmode",d=e[68].gameModel.hasFunMode),y(r,"gamefavorite",h=e[68].gameModel.isFavorite),y(r,"showfavoredcategory",e[19]),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6]),y(r,"endpoint",e[0])},m(e,t){j(e,r,t)},p(e,t){2097152&t[0]&&n!==(n=""+(no+(e[68].cellSize||"1x1")))&&y(r,"class",n),4&t[0]&&y(r,"session",e[2]),8&t[0]&&y(r,"userid",e[3]),2&t[0]&&y(r,"lang",e[1]),16&t[0]&&y(r,"favorites",e[4]),2097152&t[0]&&o!==(o=e[68].gameModel.thumbnail)&&y(r,"gamethumbnail",o),2097152&t[0]&&i!==(i=e[68].gameModel.name)&&y(r,"gamename",i),2097152&t[0]&&a!==(a=e[68].gameModel.vendor.name)&&y(r,"gamevendor",a),2097152&t[0]&&s!==(s=e[68].gameModel.isNew)&&y(r,"gameisnew",s),2097152&t[0]&&l!==(l=e[68].gameModel.popularity)&&y(r,"gamepopularity",l),2097152&t[0]&&c!==(c=e[68].gameModel.cellSize)&&y(r,"gamecellsize",c),2097152&t[0]&&u!==(u=e[68].gameModel.id)&&y(r,"gameid",u),2097152&t[0]&&d!==(d=e[68].gameModel.hasFunMode)&&y(r,"gamefunmode",d),2097152&t[0]&&h!==(h=e[68].gameModel.isFavorite)&&y(r,"gamefavorite",h),524288&t[0]&&y(r,"showfavoredcategory",e[19]),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6]),1&t[0]&&y(r,"endpoint",e[0])},d(e){e&&H(r)}}}function Dn(e){let r,n=e[68].gameModel.platform.includes("iPad")||e[68].gameModel.platform.includes("iPhone")||e[68].gameModel.platform.includes("Android"),o=n&&Bn(e);return{c(){o&&o.c(),r=u()},m(e,t){o&&o.m(e,t),j(e,r,t)},p(e,t){2097152&t[0]&&(n=e[68].gameModel.platform.includes("iPad")||e[68].gameModel.platform.includes("iPhone")||e[68].gameModel.platform.includes("Android")),n?o?o.p(e,t):(o=Bn(e),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(e){o&&o.d(e),e&&H(r)}}}function Bn(e){let r,n,o,i,a,s,l,c,u,d,h;return{c(){r=z("casino-game-thumbnail"),y(r,"class",n=""+(no+(e[68].cellSize||"1x1"))),y(r,"session",e[2]),y(r,"userid",e[3]),y(r,"lang",e[1]),y(r,"favorites",e[4]),y(r,"gamethumbnail",o=e[68].gameModel.thumbnail),y(r,"gamename",i=e[68].gameModel.name),y(r,"gamevendor",a=e[68].gameModel.vendor.name),y(r,"gameisnew",s=e[68].gameModel.isNew),y(r,"gamepopularity",l=e[68].gameModel.popularity),y(r,"gamecellsize",c=e[68].gameModel.cellSize),y(r,"gameid",u=e[68].gameModel.id),y(r,"gamefunmode",d=e[68].gameModel.hasFunMode),y(r,"gamefavorite",h=e[68].gameModel.isFavorite),y(r,"showfavoredcategory",e[19]),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6]),y(r,"endpoint",e[0])},m(e,t){j(e,r,t)},p(e,t){2097152&t[0]&&n!==(n=""+(no+(e[68].cellSize||"1x1")))&&y(r,"class",n),4&t[0]&&y(r,"session",e[2]),8&t[0]&&y(r,"userid",e[3]),2&t[0]&&y(r,"lang",e[1]),16&t[0]&&y(r,"favorites",e[4]),2097152&t[0]&&o!==(o=e[68].gameModel.thumbnail)&&y(r,"gamethumbnail",o),2097152&t[0]&&i!==(i=e[68].gameModel.name)&&y(r,"gamename",i),2097152&t[0]&&a!==(a=e[68].gameModel.vendor.name)&&y(r,"gamevendor",a),2097152&t[0]&&s!==(s=e[68].gameModel.isNew)&&y(r,"gameisnew",s),2097152&t[0]&&l!==(l=e[68].gameModel.popularity)&&y(r,"gamepopularity",l),2097152&t[0]&&c!==(c=e[68].gameModel.cellSize)&&y(r,"gamecellsize",c),2097152&t[0]&&u!==(u=e[68].gameModel.id)&&y(r,"gameid",u),2097152&t[0]&&d!==(d=e[68].gameModel.hasFunMode)&&y(r,"gamefunmode",d),2097152&t[0]&&h!==(h=e[68].gameModel.isFavorite)&&y(r,"gamefavorite",h),524288&t[0]&&y(r,"showfavoredcategory",e[19]),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6]),1&t[0]&&y(r,"endpoint",e[0])},d(e){e&&H(r)}}}function jn(e){let r,n=e[68].gameModel&&Rn(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){e[68].gameModel?n?n.p(e,t):(n=Rn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&H(r)}}}function Hn(r){let n,o,i,a,s,l,c,u,d=r[22]("gamesCategorySection.viewAll")+"",h=r[9].games.total+"";return{c(){n=z("a"),o=z("span"),i=t(d),a=t(" ("),s=t(h),l=t(")"),X(o,"class","CategoryLoadMore"),X(n,"class","CategoryNameLink")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(o,a),B(o,s),B(o,l),c||(u=V(n,"click",r[35]),c=!0)},p(e,t){4194304&t[0]&&d!==(d=e[22]("gamesCategorySection.viewAll")+"")&&Y(i,d),512&t[0]&&h!==(h=e[9].games.total+"")&&Y(s,h)},d(e){e&&H(n),c=!1,u()}}}function zn(e){let r;return{c(){r=z("p"),r.textContent="You don't have any games in this category.",X(r,"class","NoSearchResults")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function Wn(r){let o,e,i=r[10],a=[];for(let e=0;e<i.length;e+=1)a[e]=Vn(Tn(r,i,e));return{c(){o=z("ul");for(let e=0;e<a.length;e+=1)a[e].c();X(o,"class",e=(0===r[21].items.length&&r[19]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")},m(e,t){j(e,o,t);for(let e=0;e<a.length;e+=1)a[e].m(o,null);r[37](o)},p(t,r){if(1279&r[0]){let e;for(i=t[10],e=0;e<i.length;e+=1){var n=Tn(t,i,e);a[e]?a[e].p(n,r):(a[e]=Vn(n),a[e].c(),a[e].m(o,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=i.length}2621440&r[0]&&e!==(e=(0===t[21].items.length&&t[19]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&X(o,"class",e)},d(e){e&&H(o),c(a,e),r[37](null)}}}function Vn(e){let r,n=function(r){let n,o,i,a,s,l,c,u,d,h,p,m=r[70];const g=()=>r[36](n,m),f=()=>r[36](null,m);return{c(){n=z("casino-game-thumbnail"),y(n,"session",r[2]),y(n,"userid",r[3]),y(n,"lang",r[1]),y(n,"class",o=""+(no+(r[68].cellSize||"1x1"))),y(n,"favorites",r[4]),y(n,"gamethumbnail",i=r[68].thumbnail),y(n,"gamename",a=r[68].name),y(n,"gamevendor",s=r[68].vendor.name),y(n,"gameisnew",l=r[68].isNew),y(n,"gamepopularity",c=r[68].popularity),y(n,"gamecellsize",u=r[68].cellSize),y(n,"gameid",d=r[68].id),y(n,"gamefunmode",h=r[68].hasFunMode),y(n,"gamefavorite",p=r[68].isFavorite),y(n,"clientstyling",r[5]),y(n,"clientstylingurl",r[6]),y(n,"endpoint",r[0])},m(e,t){j(e,n,t),g()},p(e,t){r=e,4&t[0]&&y(n,"session",r[2]),8&t[0]&&y(n,"userid",r[3]),2&t[0]&&y(n,"lang",r[1]),1024&t[0]&&o!==(o=""+(no+(r[68].cellSize||"1x1")))&&y(n,"class",o),16&t[0]&&y(n,"favorites",r[4]),1024&t[0]&&i!==(i=r[68].thumbnail)&&y(n,"gamethumbnail",i),1024&t[0]&&a!==(a=r[68].name)&&y(n,"gamename",a),1024&t[0]&&s!==(s=r[68].vendor.name)&&y(n,"gamevendor",s),1024&t[0]&&l!==(l=r[68].isNew)&&y(n,"gameisnew",l),1024&t[0]&&c!==(c=r[68].popularity)&&y(n,"gamepopularity",c),1024&t[0]&&u!==(u=r[68].cellSize)&&y(n,"gamecellsize",u),1024&t[0]&&d!==(d=r[68].id)&&y(n,"gameid",d),1024&t[0]&&h!==(h=r[68].hasFunMode)&&y(n,"gamefunmode",h),1024&t[0]&&p!==(p=r[68].isFavorite)&&y(n,"gamefavorite",p),32&t[0]&&y(n,"clientstyling",r[5]),64&t[0]&&y(n,"clientstylingurl",r[6]),1&t[0]&&y(n,"endpoint",r[0]),m!==r[70]&&(f(),m=r[70],g())},d(e){e&&H(n),f()}}}(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&H(r)}}}function Xn(e){let r,n,o=e[22]("gamesCategorySection.searchedItems")+"";return{c(){r=z("h3"),n=t(o),X(r,"class","StatusText")},m(e,t){j(e,r,t),B(r,n)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamesCategorySection.searchedItems")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Yn(e){let r,n,o=e[22]("gamesCategorySection.noResults")+"";return{c(){r=z("h3"),n=t(o),X(r,"class","StatusText")},m(e,t){j(e,r,t),B(r,n)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamesCategorySection.noResults")+"")&&Y(n,o)},d(e){e&&H(r)}}}function qn(e){let r,n,o=e[22]("gamesCategorySection.recentSearchedItems")+"";return{c(){r=z("h3"),n=t(o),X(r,"class","StatusText")},m(e,t){j(e,r,t),B(r,n)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamesCategorySection.recentSearchedItems")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Zn(e){let r;return{c(){r=z("p"),r.textContent="Waiting",X(r,"class","SearchWaiting")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function Kn(t){let n,o,i=!t[16]&&Jn(t),a=t[10],s=[];for(let e=0;e<a.length;e+=1)s[e]=Qn(_n(t,a,e));return{c(){i&&i.c(),n=W(),o=z("ul");for(let e=0;e<s.length;e+=1)s[e].c();X(o,"class","CasinoGamesGrid")},m(e,t){i&&i.m(e,t),j(e,n,t),j(e,o,t);for(let e=0;e<s.length;e+=1)s[e].m(o,null)},p(t,r){if(t[16]?i&&(i.d(1),i=null):i?i.p(t,r):(i=Jn(t),i.c(),i.m(n.parentNode,n)),17535&r[0]){let e;for(a=t[10],e=0;e<a.length;e+=1){const i=_n(t,a,e);s[e]?s[e].p(i,r):(s[e]=Qn(i),s[e].c(),s[e].m(o,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}},d(e){i&&i.d(e),e&&H(n),e&&H(o),c(s,e)}}}function Jn(e){let r,n,o=e[22]("gamesCategorySection.noRecentSearch")+"";return{c(){r=z("p"),n=t(o),X(r,"class","NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(un(e[23])?"NoRecentSearchesMobile":""))},m(e,t){j(e,r,t),B(r,n)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamesCategorySection.noRecentSearch")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Qn(e){let r,n,o,i,a,s,l,c,u,d,h;return{c(){r=z("casino-game-thumbnail"),y(r,"class",n=""+(no+(e[68].cellSize||"1x1"))),y(r,"session",e[2]),y(r,"userid",e[3]),y(r,"lang",e[1]),y(r,"searchitem",e[14]),y(r,"favorites",e[4]),y(r,"gamethumbnail",o=e[68].thumbnail),y(r,"gamename",i=e[68].name),y(r,"gamevendor",a=e[68].vendor.name),y(r,"gameisnew",s=e[68].isNew),y(r,"gamepopularity",l=e[68].popularity),y(r,"gamecellsize",c=e[68].cellSize),y(r,"gameid",u=e[68].id),y(r,"gamefunmode",d=e[68].hasFunMode),y(r,"gamefavorite",h=e[68].isFavorite),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6]),y(r,"endpoint",e[0])},m(e,t){j(e,r,t)},p(e,t){1024&t[0]&&n!==(n=""+(no+(e[68].cellSize||"1x1")))&&y(r,"class",n),4&t[0]&&y(r,"session",e[2]),8&t[0]&&y(r,"userid",e[3]),2&t[0]&&y(r,"lang",e[1]),16384&t[0]&&y(r,"searchitem",e[14]),16&t[0]&&y(r,"favorites",e[4]),1024&t[0]&&o!==(o=e[68].thumbnail)&&y(r,"gamethumbnail",o),1024&t[0]&&i!==(i=e[68].name)&&y(r,"gamename",i),1024&t[0]&&a!==(a=e[68].vendor.name)&&y(r,"gamevendor",a),1024&t[0]&&s!==(s=e[68].isNew)&&y(r,"gameisnew",s),1024&t[0]&&l!==(l=e[68].popularity)&&y(r,"gamepopularity",l),1024&t[0]&&c!==(c=e[68].cellSize)&&y(r,"gamecellsize",c),1024&t[0]&&u!==(u=e[68].id)&&y(r,"gameid",u),1024&t[0]&&d!==(d=e[68].hasFunMode)&&y(r,"gamefunmode",d),1024&t[0]&&h!==(h=e[68].isFavorite)&&y(r,"gamefavorite",h),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6]),1&t[0]&&y(r,"endpoint",e[0])},d(e){e&&H(r)}}}function eo(e){let r;return{c(){r=z("p"),r.textContent="500 Error - Internal Server Error.",X(r,"class","SearchLoading")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function to(e){let r;return{c(){r=z("p"),r.textContent="404 Error - No result found.",X(r,"class","SearchLoading")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function ro(r){let n;function o(e){return e[8]?Pn:e[12]?An:Fn}let i=o(r),a=i(r);return{c(){n=z("div"),a.c(),this.c=U,X(n,"class","CasinoGamesCategorySectionContainer")},m(e,t){j(e,n,t),a.m(n,null),r[40](n)},p(e,t){i===(i=o(e))&&a?a.p(e,t):(a.d(1),a=i(e),a&&(a.c(),a.m(n,null)))},i:U,o:U,d(e){e&&H(n),a.d(),r[40](null)}}}customElements.get("casino-game-thumbnail")||customElements.define("casino-game-thumbnail",class extends F{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}.GameContainer{width:100%;height:100%}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65)}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:9.6px;text-align:center;font-size:17.6px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6.4px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:4.8px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:14.4px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;top:8px;left:8px}.GameInnerContainer .GameExtraInfoLabel{font-size:11.2px;padding:3.2px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:4.8px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer}</style>",s(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},En,Cn,r,{session:22,userid:23,lang:24,clientstyling:25,clientstylingurl:26,favorites:1,gamethumbnail:2,gamename:3,gamevendor:4,gameid:5,gameisnew:6,gamepopularity:7,gamefunmode:27,searchitem:28,gamefavorite:0,showfavoredcategory:29,showgamename:8,endpoint:30},[-1,-1]),e&&(e.target&&j(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gamepopularity","gamefunmode","searchitem","gamefavorite","showfavoredcategory","showgamename","endpoint"]}get session(){return this.$$.ctx[22]}set session(e){this.$set({session:e}),T()}get userid(){return this.$$.ctx[23]}set userid(e){this.$set({userid:e}),T()}get lang(){return this.$$.ctx[24]}set lang(e){this.$set({lang:e}),T()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$set({clientstyling:e}),T()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$set({clientstylingurl:e}),T()}get favorites(){return this.$$.ctx[1]}set favorites(e){this.$set({favorites:e}),T()}get gamethumbnail(){return this.$$.ctx[2]}set gamethumbnail(e){this.$set({gamethumbnail:e}),T()}get gamename(){return this.$$.ctx[3]}set gamename(e){this.$set({gamename:e}),T()}get gamevendor(){return this.$$.ctx[4]}set gamevendor(e){this.$set({gamevendor:e}),T()}get gameid(){return this.$$.ctx[5]}set gameid(e){this.$set({gameid:e}),T()}get gameisnew(){return this.$$.ctx[6]}set gameisnew(e){this.$set({gameisnew:e}),T()}get gamepopularity(){return this.$$.ctx[7]}set gamepopularity(e){this.$set({gamepopularity:e}),T()}get gamefunmode(){return this.$$.ctx[27]}set gamefunmode(e){this.$set({gamefunmode:e}),T()}get searchitem(){return this.$$.ctx[28]}set searchitem(e){this.$set({searchitem:e}),T()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$set({gamefavorite:e}),T()}get showfavoredcategory(){return this.$$.ctx[29]}set showfavoredcategory(e){this.$set({showfavoredcategory:e}),T()}get showgamename(){return this.$$.ctx[8]}set showgamename(e){this.$set({showgamename:e}),T()}get endpoint(){return this.$$.ctx[30]}set endpoint(e){this.$set({endpoint:e}),T()}});const no="game-tile-";function oo(e,t,s){let r;Fe(e,cn,e=>s(22,r=e));var n=this&&this.__awaiter||function(e,a,s,l){return new(s=s||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((l=l.apply(e,a||[])).next())})};let o,i,a,l,c,u,d,h,{endpoint:p=""}=t,{datasource:m=""}=t,{lang:g=""}=t,{session:f=""}=t,{userid:y=""}=t,{favorites:v=""}=t,{clientstyling:b=""}=t,{clientstylingurl:w=""}=t,{categoryid:S=""}=t,{categoryindex:C=0}=t,{categorygames:E=0}=t,{once:x=!0}=t,{top:T=0}=t,{bottom:_=0}=t,{left:F=0}=t,{right:A=0}=t,P=!1,M=!0,I=window.navigator.userAgent,k=[],L=!0,$=40,N=!1,O=!1,R=!1,G=!1,U=!0,D=!1,B=!1,j=!1,H=new Array(1e3),z={items:[],count:0,name:""};Object.keys(pn).forEach(e=>{jr(e,pn[e])});let W=new IntersectionObserver((e,t)=>{e.forEach(t=>n(void 0,void 0,void 0,function*(){var e=t.target.elems_index;t.isIntersecting&&1.2*e>$&&Y(S)}))});const V=(e,n,o,t=0)=>{let i=new URL(`${p}/casino/groups/${m}/${S}`),a=JSON.parse(sessionStorage.getItem("vendorFiltersByCategory"));return new Promise((t,r)=>{if(i.searchParams.delete("pagination"),i.searchParams.append("expand","games(vendor)"),i.searchParams.append("fields","id,name,games"),i.searchParams.append("platform",dn(I)),i.searchParams.append("pagination",`games(offset=${n},limit=${o})`),i.searchParams.append("language",g),window.postMessage({type:"CategoryVendors",categoryid:S},window.location.href),a&&a[S])if(a[S].length&&!1===M&&!1===D){let t="";s(15,G=!0),a[S].forEach(e=>{t+=t?`, id=${e}`:`id=${e}`}),i.searchParams.append("filter",`games(vendor(${t}))`)}else s(15,G=!1);fetch(i).then(e=>e.json()).then(e=>{s(8,P=!1),c=e.games.total,t(e)},e=>{s(8,P=!0),console.error(e),r(e)})})},X=t=>{if(t.data)switch(t.data.type){case"MostPlayedData":s(12,N=!1),M=!1,s(11,L=!1),B=!0,s(10,k=t.data.mostPlayedGames),s(9,a={id:"MOSTPLAYED",name:"Most Played Games",games:{count:t.data.mostPlayedGames.length,total:t.data.mostPlayedGames.length,items:t.data.mostPlayedGames}});break;case"CustomOperatorData":t.data.operatordetail;break;case"RecentSearchData":s(12,N=!0),B=!1,s(13,O=!0),0<t.data.searchData.length?(s(10,k=t.data.searchData),s(16,U=!0),k&&k.forEach(e=>{e.isFavorite=q(e.id)})):(s(10,k=[]),s(16,U=!1));break;case"OutOfRecentSearches":s(12,N=!1),s(13,O=!1);break;case"SearchData":s(12,N=!0),B=!1,s(13,O=!1),s(10,k=t.data.searchData.items||[]),s(14,R=!0),t.data.receivedFavoriteResults&&(d=t.data.receivedFavoriteResults.items),k&&k.forEach(e=>{e.isFavorite=q(e.id)});break;case`CategoryData_${S}`:s(12,N=!1),M=!0,s(11,L=!0),s(14,R=!1),B=!1,j=!1,t.data.receivedFavoriteResults&&(d=t.data.receivedFavoriteResults.items),V(t.data.categoryId,0,t.data.visiblegames).then(e=>{s(9,a=e),s(10,k=a.games.items),k&&k.forEach(e=>{e.isFavorite=q(e.id)})});break;case"CategoryChange":$=20;break;case"CategoryUpdate":s(12,N=!1),M=!1,s(14,R=!1),B=!1,s(11,L=!1),j=!0,s(25,S=t.data.itemId),V(0,0,$).then(e=>{s(9,a=e),a.games.items.forEach(e=>{e.isFavorite=q(e.id)}),s(10,k=a.games.items),s(11,L=!1)});break;case"FavoriteUpdate":s(12,N=!1),B=!1,M=!0,s(10,k=a.games.items),k.forEach(e=>{e.isFavorite=q(e.id)}),s(11,L=!0);break;case"UpdateCategoryFavoriteGames":t.data.receivedFavoriteResults&&(d=t.data.receivedFavoriteResults.items,t.data.triggerFactor&&!D?window.postMessage({type:"FavoriteUpdate"},window.location.href):M||B||window.postMessage({type:"CategoryUpdate",itemId:S},window.location.href));break;case"ShowFavoriteSection":let e;t.data&&(e=t.data.receivedFavoriteResults.items,e.length&&e.forEach(e=>{e.gameModel&&(e.gameModel.isFavorite=!!e.gameModel)}),s(21,z.items=(r=e,z.items,n=window.navigator.userAgent,un(n)?r.filter(e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e}):r.filter(e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e})),z),s(21,z.name="Favorites",z),s(19,D=!0));break;case"UserSessionID":o=t.data.session,i=t.data.userID,"true"==v&&i&&i.length&&o&&0<o.length&&(e=>{let n={method:"GET",headers:{"X-SessionID":o}};new Promise((t,r)=>{fetch(e,n).then(e=>e.json()).then(e=>{d=e?e.items:[],k.forEach(e=>{e.isFavorite=q(e.id)});e=k;s(10,k=void 0),s(10,k=e),t(d)}).catch(e=>{console.error(e),r(e)})})})(`${p}/player/${i}/favorites/`)}var r,n},Y=e=>{$+=10,$<=c&&V(0,0,$).then(e=>{s(9,a=e),s(10,k=a.games.items),k.forEach(e=>{e.isFavorite=q(e.id)})})},q=t=>!!d&&-1!==d.findIndex(e=>e.id==t),Z=(e,t)=>{window.postMessage({type:"CategoryChange",itemId:e},window.location.href),window.postMessage({type:"SetSliderIndex",categoryData:t},window.location.href)};return Ae(()=>(window.addEventListener("message",X,!1),window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",X)})),e.$$set=e=>{"endpoint"in e&&s(0,p=e.endpoint),"datasource"in e&&s(26,m=e.datasource),"lang"in e&&s(1,g=e.lang),"session"in e&&s(2,f=e.session),"userid"in e&&s(3,y=e.userid),"favorites"in e&&s(4,v=e.favorites),"clientstyling"in e&&s(5,b=e.clientstyling),"clientstylingurl"in e&&s(6,w=e.clientstylingurl),"categoryid"in e&&s(25,S=e.categoryid),"categoryindex"in e&&s(27,C=e.categoryindex),"categorygames"in e&&s(28,E=e.categorygames),"once"in e&&s(29,x=e.once),"top"in e&&s(30,T=e.top),"bottom"in e&&s(31,_=e.bottom),"left"in e&&s(32,F=e.left),"right"in e&&s(33,A=e.right)},e.$$.update=()=>{128&e.$$.dirty[0]&&H&&j&&H.forEach((e,t)=>{e&&(e.elems_index=t,W.observe(e))}),e.$$.dirty[0],32&e.$$.dirty[0]&&b&&(()=>{let e=document.createElement("style");e.innerHTML=b,setTimeout(()=>{h.appendChild(e)})})(),64&e.$$.dirty[0]&&w&&(()=>{let t=document.createElement("style");fetch(new URL(w)).then(e=>e.text()).then(e=>{t.innerHTML=e,h&&setTimeout(()=>{h.appendChild(t)},1)})})()},[p,g,f,y,v,b,w,H,P,a,k,L,N,O,R,G,U,l,u,D,h,z,r,I,Z,S,m,C,E,x,T,_,F,A,function(e){Pe[e?"unshift":"push"](()=>{u=e,s(18,u)})},e=>Z(a.id,a),function(e,t){Pe[e?"unshift":"push"](()=>{H[t]=e,s(7,H)})},function(e){Pe[e?"unshift":"push"](()=>{l=e,s(17,l)})},function(e){Pe[e?"unshift":"push"](()=>{u=e,s(18,u)})},function(e){Pe[e?"unshift":"push"](()=>{l=e,s(17,l)})},function(e){Pe[e?"unshift":"push"](()=>{h=e,s(20,h)})}]}function io(e,t,r){const n=e.slice();return n[112]=t[r],n[114]=r,n}function ao(r){let n,o,i,a,s="PC"!==dn(r[35])&&"false"===r[8]&&r[31],l=s&&lo();function c(e){return"false"===e[8]?uo:co}let u=c(r),d=u(r);function h(e){return e[13]?Mo:e[20]?Po:e[22]?Ao:e[18]?Fo:e[23]?_o:e[19]?void 0:To}let p=h(r),m=p&&p(r),g=r[15]&&"true"===r[11]&&$o(r);return{c(){n=z("section"),l&&l.c(),o=W(),d.c(),i=W(),m&&m.c(),a=W(),g&&g.c(),X(n,"class","CategoriesLobby"),C(n,"max-width",r[10]+"px")},m(e,t){j(e,n,t),l&&l.m(n,null),B(n,o),d.m(n,null),B(n,i),m&&m.m(n,null),B(n,a),g&&g.m(n,null),r[66](n)},p(e,t){256&t[0]|1&t[1]&&(s="PC"!==dn(e[35])&&"false"===e[8]&&e[31]),s?l||(l=lo(),l.c(),l.m(n,o)):l&&(l.d(1),l=null),u===(u=c(e))&&d?d.p(e,t):(d.d(1),d=u(e),d&&(d.c(),d.m(n,i))),p===(p=h(e))&&m?m.p(e,t):(m&&m.d(1),m=p&&p(e),m&&(m.c(),m.m(n,a))),e[15]&&"true"===e[11]?g?g.p(e,t):(g=$o(e),g.c(),g.m(n,null)):g&&(g.d(1),g=null),1024&t[0]&&C(n,"max-width",e[10]+"px")},d(e){e&&H(n),l&&l.d(),d.d(),m&&m.d(),g&&g.d(),r[66](null)}}}function so(e){let r;return{c(){r=z("p"),r.textContent="500 Error - Internal Server Error",X(r,"class","SearchLoading")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function lo(){let r;return{c(){r=z("div"),X(r,"class","SearchBarPlaceholder")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function co(r){let n,o,i,a,s,l,c,u,d,h,p,m,g,f,y="PC"===dn(r[35])&&r[12].length||"PC"!==dn(r[35]),v=!r[31]&&ho(),b=y&&po(r),w=!r[18]&&!r[22]&&!r[31]&&!r[23]&&!r[19]&&!r[20]&&!r[21]&&mo(r);return{c(){n=z("div"),o=z("div"),i=z("label"),i.textContent="Search casino games",a=W(),s=z("div"),v&&v.c(),l=W(),c=z("input"),d=W(),b&&b.c(),p=W(),w&&w.c(),X(i,"for","search"),X(i,"class","SrOnly"),X(c,"id","SearchField"),X(c,"class","SearchInput"),X(c,"placeholder",u="PC"===dn(r[35])?r[34]("casinoPage.search"):r[34]("casinoPage.searchMobile")),X(c,"type","search"),X(s,"class","SearchWrapper"),X(o,"class",h="SearchContainer "+(r[22]||r[18]||r[23]||r[21]?"":"SearchTruncated")),X(n,"class",m="CategoriesHeaderSection CategoriesHeaderSectionAltDesign "+("PC"!==dn(r[35])?"CategoriesHeaderMobileSection":"")+" "+(r[31]?"SearchMobileActive":"")+" "+(r[31]||r[20]&&"PC"!==dn(r[35])&&!Oo?"CategoriesHeaderSearchActive":"")+(r[25]&&r[31]?"SearchStickTop":"")),C(n,"top",r[25]&&r[31]?Ro+"px":"")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(o,a),B(o,s),v&&v.m(s,null),B(s,l),B(s,c),r[59](c),S(c,r[12]),B(s,d),b&&b.m(s,null),B(n,p),w&&w.m(n,null),r[64](n),g||(f=[V(c,"focus",r[37]),V(c,"blur",r[38]),V(c,"input",r[60]),V(c,"focus",r[39])],g=!0)},p(e,t){e[31]?v&&(v.d(1),v=null):v||(v=ho(),v.c(),v.m(s,l)),8&t[1]&&u!==(u="PC"===dn(e[35])?e[34]("casinoPage.search"):e[34]("casinoPage.searchMobile"))&&X(c,"placeholder",u),4096&t[0]&&S(c,e[12]),4096&t[0]&&(y="PC"===dn(e[35])&&e[12].length||"PC"!==dn(e[35])),y?b?b.p(e,t):(b=po(e),b.c(),b.m(s,null)):b&&(b.d(1),b=null),14942208&t[0]&&h!==(h="SearchContainer "+(e[22]||e[18]||e[23]||e[21]?"":"SearchTruncated"))&&X(o,"class",h),e[18]||e[22]||e[31]||e[23]||e[19]||e[20]||e[21]?w&&(w.d(1),w=null):w?w.p(e,t):(w=mo(e),w.c(),w.m(n,null)),34603008&t[0]|1&t[1]&&m!==(m="CategoriesHeaderSection CategoriesHeaderSectionAltDesign "+("PC"!==dn(e[35])?"CategoriesHeaderMobileSection":"")+" "+(e[31]?"SearchMobileActive":"")+" "+(e[31]||e[20]&&"PC"!==dn(e[35])&&!Oo?"CategoriesHeaderSearchActive":"")+(e[25]&&e[31]?"SearchStickTop":""))&&X(n,"class",m),33554432&t[0]|1&t[1]&&C(n,"top",e[25]&&e[31]?Ro+"px":"")},d(e){e&&H(n),v&&v.d(),r[59](null),b&&b.d(),w&&w.d(),r[64](null),g=!1,D(f)}}}function uo(r){let n,o,i,a,s,l,c,u,d,h,p,m,g,f,y="PC"===dn(r[35])&&r[12].length||"PC"!==dn(r[35]),v=!r[31]&&bo(),b=y&&wo(r),w=!r[18]&&!r[22]&&!r[31]&&!r[23]&&!r[19]&&!r[20]&&!r[21]&&So(r);return{c(){n=z("div"),o=z("div"),i=z("label"),i.textContent="Search casino games",a=W(),s=z("div"),v&&v.c(),l=W(),c=z("input"),d=W(),b&&b.c(),p=W(),w&&w.c(),X(i,"for","search"),X(i,"class","SrOnly"),X(c,"id","SearchField"),X(c,"class","SearchInput"),X(c,"placeholder",u="PC"===dn(r[35])?r[34]("casinoPage.search"):r[34]("casinoPage.searchMobile")),X(c,"type","search"),X(s,"class","SearchWrapper"),X(o,"class",h="SearchContainer "+(r[22]||r[18]||r[23]||r[21]?"":"SearchTruncated")),X(n,"class",m="CategoriesHeaderSection "+("PC"!==dn(r[35])?"CategoriesHeaderMobileSection":"")+" "+(r[31]?"SearchMobileActive":"")+" "+(r[31]||r[20]&&"PC"!==dn(r[35])&&!Oo?"CategoriesHeaderSearchActive":"")+" "+(r[25]&&r[31]?"SearchStickTop":"")),C(n,"top",r[25]&&r[31]?Ro+"px":"")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(o,a),B(o,s),v&&v.m(s,null),B(s,l),B(s,c),r[53](c),S(c,r[12]),B(s,d),b&&b.m(s,null),B(n,p),w&&w.m(n,null),r[58](n),g||(f=[V(c,"focus",r[37]),V(c,"blur",r[38]),V(c,"input",r[54]),V(c,"focus",r[39])],g=!0)},p(e,t){e[31]?v&&(v.d(1),v=null):v||(v=bo(),v.c(),v.m(s,l)),8&t[1]&&u!==(u="PC"===dn(e[35])?e[34]("casinoPage.search"):e[34]("casinoPage.searchMobile"))&&X(c,"placeholder",u),4096&t[0]&&S(c,e[12]),4096&t[0]&&(y="PC"===dn(e[35])&&e[12].length||"PC"!==dn(e[35])),y?b?b.p(e,t):(b=wo(e),b.c(),b.m(s,null)):b&&(b.d(1),b=null),14942208&t[0]&&h!==(h="SearchContainer "+(e[22]||e[18]||e[23]||e[21]?"":"SearchTruncated"))&&X(o,"class",h),e[18]||e[22]||e[31]||e[23]||e[19]||e[20]||e[21]?w&&(w.d(1),w=null):w?w.p(e,t):(w=So(e),w.c(),w.m(n,null)),34603008&t[0]|1&t[1]&&m!==(m="CategoriesHeaderSection "+("PC"!==dn(e[35])?"CategoriesHeaderMobileSection":"")+" "+(e[31]?"SearchMobileActive":"")+" "+(e[31]||e[20]&&"PC"!==dn(e[35])&&!Oo?"CategoriesHeaderSearchActive":"")+" "+(e[25]&&e[31]?"SearchStickTop":""))&&X(n,"class",m),33554432&t[0]|1&t[1]&&C(n,"top",e[25]&&e[31]?Ro+"px":"")},d(e){e&&H(n),v&&v.d(),r[53](null),b&&b.d(),w&&w.d(),r[58](null),g=!1,D(f)}}}function ho(){let r;return{c(){r=z("div"),r.innerHTML='<svg role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path></svg>',X(r,"class","SearchIcon")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function po(r){let n,o,i,a;return{c(){n=z("span"),o=z("div"),o.innerHTML='<div class="CloseIconWrapper"><div class="CloseIcon"></div></div>',X(o,"class","CloseIconContainer"),X(n,"class",("PC"===dn(r[35])?"ClearSearchButton":"ClearSearchButtonMobile")+" ")},m(e,t){j(e,n,t),B(n,o),i||(a=V(n,"click",r[61]),i=!0)},p:U,d(e){e&&H(n),i=!1,a()}}}function mo(e){let r,n,o=e[32]&&go(e),i=(!e[20]||!e[19])&&fo(e);return{c(){r=z("div"),o&&o.c(),n=W(),i&&i.c(),X(r,"class","FiltersButtonsContainer ")},m(e,t){j(e,r,t),o&&o.m(r,null),B(r,n),i&&i.m(r,null)},p(e,t){e[32]?o?o.p(e,t):(o=go(e),o.c(),o.m(r,n)):o&&(o.d(1),o=null),e[20]&&e[19]?i&&(i.d(1),i=null):i?i.p(e,t):(i=fo(e),i.c(),i.m(r,null))},d(e){e&&H(r),o&&o.d(),i&&i.d()}}}function go(r){let n,o,i,a,s;return{c(){n=z("div"),o=z("div"),o.innerHTML='Clear\n <span class="ClearIcon"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 378.303 378.303" style="enable-background:new 0 0 378.303 378.303;" xml:space="preserve"><polygon style="fill:var(--emfe-w-color-secondary, #FD2839);" points="378.303,28.285 350.018,0 189.151,160.867 28.285,0 0,28.285 160.867,189.151 0,350.018\n 28.285,378.302 189.151,217.436 350.018,378.302 378.303,350.018 217.436,189.151 "></polygon></svg></span>',X(o,"class","ClearButton"),X(n,"class",i="ClearFilterButtonWrapper "+(r[32]?"FiltersActive":"")+" ")},m(e,t){j(e,n,t),B(n,o),a||(s=V(n,"click",r[62]),a=!0)},p(e,t){2&t[1]&&i!==(i="ClearFilterButtonWrapper "+(e[32]?"FiltersActive":"")+" ")&&X(n,"class",i)},d(e){e&&H(n),a=!1,s()}}}function fo(e){let r,n=!e[23]&&yo(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){e[23]?n&&(n.d(1),n=null):n?n.p(e,t):(n=yo(e),n.c(),n.m(r.parentNode,r))},d(e){n&&n.d(e),e&&H(r)}}}function yo(r){let n,o,i,a,s,l,c,u,d,h,p,m,g=0<r[32]&&vo(r);return{c(){n=z("div"),o=z("div"),o.textContent="Filters",i=W(),a=z("div"),s=v("svg"),l=v("defs"),c=v("style"),u=t(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),d=v("path"),h=W(),g&&g.c(),X(o,"class","FilterButton"),X(d,"class","a"),X(d,"d","M16.7,32.2a1.654,1.654,0,0,1-.636-.148,1.526,1.526,0,0,1-.867-1.393V20.578L5.433,10.588A1.543,1.543,0,0,1,5,9.491V7.742A1.512,1.512,0,0,1,6.5,6.2h23A1.512,1.512,0,0,1,31,7.742V9.491a1.543,1.543,0,0,1-.433,1.1L20.8,20.578v7.738a1.594,1.594,0,0,1-.52,1.156l-2.6,2.312A1.461,1.461,0,0,1,16.7,32.2ZM6.618,9.431l9.764,10.02a1.543,1.543,0,0,1,.433,1.1v9.813l2.34-2.075V20.519a1.543,1.543,0,0,1,.433-1.1L29.353,9.4V7.831H6.618Z"),X(d,"transform","translate(-5 -6.2)"),X(s,"xmlns","http://www.w3.org/2000/svg"),X(s,"width","20"),X(s,"height","20"),X(s,"viewBox","0 0 26 26"),X(a,"class","FilterIconContainer"),X(n,"class","FilterButtonWrapper")},m(e,t){j(e,n,t),B(n,o),B(n,i),B(n,a),B(a,s),B(s,l),B(l,c),B(c,u),B(s,d),B(a,h),g&&g.m(a,null),p||(m=V(n,"click",r[63]),p=!0)},p(e,t){0<e[32]?g?g.p(e,t):(g=vo(e),g.c(),g.m(a,null)):g&&(g.d(1),g=null)},d(e){e&&H(n),g&&g.d(),p=!1,m()}}}function vo(e){let r,n,o;return{c(){r=z("div"),n=z("span"),o=t(e[32]),X(n,"class","NumberOfFilters"),X(r,"class","NumberOfFiltersContainer")},m(e,t){j(e,r,t),B(r,n),B(n,o)},p(e,t){2&t[1]&&Y(o,e[32])},d(e){e&&H(r)}}}function bo(){let r;return{c(){r=z("div"),r.innerHTML='<svg role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path></svg>',X(r,"class","SearchIcon")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function wo(r){let n,o,i,a;return{c(){n=z("span"),o=z("div"),o.innerHTML='<div class="CloseIconWrapper"><div class="CloseIcon"></div></div>',X(o,"class","CloseIconContainer"),X(n,"class",("PC"===dn(r[35])?"ClearSearchButton":"ClearSearchButtonMobile")+" ")},m(e,t){j(e,n,t),B(n,o),i||(a=V(n,"click",r[55]),i=!0)},p:U,d(e){e&&H(n),i=!1,a()}}}function So(e){let r,n,o=e[32]&&Co(e),i=(!e[20]||!e[19])&&Eo(e);return{c(){r=z("div"),o&&o.c(),n=W(),i&&i.c(),X(r,"class","FiltersButtonsContainer")},m(e,t){j(e,r,t),o&&o.m(r,null),B(r,n),i&&i.m(r,null)},p(e,t){e[32]?o?o.p(e,t):(o=Co(e),o.c(),o.m(r,n)):o&&(o.d(1),o=null),e[20]&&e[19]?i&&(i.d(1),i=null):i?i.p(e,t):(i=Eo(e),i.c(),i.m(r,null))},d(e){e&&H(r),o&&o.d(),i&&i.d()}}}function Co(r){let n,o,i;return{c(){n=z("div"),n.innerHTML='<div class="ClearButton">Clear\n <span class="ClearIcon"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 378.303 378.303" style="enable-background:new 0 0 378.303 378.303;" xml:space="preserve"><polygon style="fill:var(--emfe-w-color-secondary, #FD2839);" points="378.303,28.285 350.018,0 189.151,160.867 28.285,0 0,28.285 160.867,189.151 0,350.018\n 28.285,378.302 189.151,217.436 350.018,378.302 378.303,350.018 217.436,189.151 "></polygon></svg></span></div>',X(n,"class","ClearFilterButtonWrapper")},m(e,t){j(e,n,t),o||(i=V(n,"click",r[56]),o=!0)},p:U,d(e){e&&H(n),o=!1,i()}}}function Eo(e){let r,n=!e[23]&&xo(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){e[23]?n&&(n.d(1),n=null):n?n.p(e,t):(n=xo(e),n.c(),n.m(r.parentNode,r))},d(e){n&&n.d(e),e&&H(r)}}}function xo(r){let n,o,i,a,s,l,c,u,d,h,p,m,g,f,y;return{c(){n=z("div"),o=z("div"),o.textContent="Filters",i=W(),a=z("div"),s=v("svg"),l=v("defs"),c=v("style"),u=t(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),d=v("path"),h=W(),p=z("div"),m=z("span"),g=t(r[32]),X(o,"class","FilterButton"),X(d,"class","a"),X(d,"d","M16.7,32.2a1.654,1.654,0,0,1-.636-.148,1.526,1.526,0,0,1-.867-1.393V20.578L5.433,10.588A1.543,1.543,0,0,1,5,9.491V7.742A1.512,1.512,0,0,1,6.5,6.2h23A1.512,1.512,0,0,1,31,7.742V9.491a1.543,1.543,0,0,1-.433,1.1L20.8,20.578v7.738a1.594,1.594,0,0,1-.52,1.156l-2.6,2.312A1.461,1.461,0,0,1,16.7,32.2ZM6.618,9.431l9.764,10.02a1.543,1.543,0,0,1,.433,1.1v9.813l2.34-2.075V20.519a1.543,1.543,0,0,1,.433-1.1L29.353,9.4V7.831H6.618Z"),X(d,"transform","translate(-5 -6.2)"),X(s,"xmlns","http://www.w3.org/2000/svg"),X(s,"width","20"),X(s,"height","20"),X(s,"viewBox","0 0 26 26"),X(m,"class","NumberOfFilters"),X(p,"class","NumberOfFiltersContainer"),X(a,"class","FilterIconContainer"),X(n,"class","FilterButtonWrapper")},m(e,t){j(e,n,t),B(n,o),B(n,i),B(n,a),B(a,s),B(s,l),B(l,c),B(c,u),B(s,d),B(a,h),B(a,p),B(p,m),B(m,g),f||(y=V(n,"click",r[57]),f=!0)},p(e,t){2&t[1]&&Y(g,e[32])},d(e){e&&H(n),f=!1,y()}}}function To(e){let r;return{c(){r=z("casino-games-category-section"),y(r,"userid",e[4]),y(r,"endpoint",e[0]),y(r,"datasource",e[1]),y(r,"favorites",e[9]),y(r,"lang",e[2]),y(r,"session",e[3]),y(r,"categoryid",e[28]),y(r,"categorygames","9"),y(r,"class","CategoryContainer"),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6])},m(e,t){j(e,r,t)},p(e,t){16&t[0]&&y(r,"userid",e[4]),1&t[0]&&y(r,"endpoint",e[0]),2&t[0]&&y(r,"datasource",e[1]),512&t[0]&&y(r,"favorites",e[9]),4&t[0]&&y(r,"lang",e[2]),8&t[0]&&y(r,"session",e[3]),268435456&t[0]&&y(r,"categoryid",e[28]),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6])},d(e){e&&H(r)}}}function _o(e){let r;function n(e){return e[24]?ko:Io}let o=n(e),i=o(e);return{c(){i.c(),r=u()},m(e,t){i.m(e,t),j(e,r,t)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r.parentNode,r)))},d(e){i.d(e),e&&H(r)}}}function Fo(r){let n,o,i,a;return{c(){n=z("casino-games-category-section"),y(n,"session",r[3]),y(n,"userid",r[4]),y(n,"endpoint",r[0]),y(n,"datasource",r[1]),y(n,"lang",r[2]),y(n,"favorites",r[9]),y(n,"categoryid","FAVORITES"),y(n,"class","CategoryContainer"),y(n,"clientstyling",r[5]),y(n,"clientstylingurl",r[6])},m(e,t){j(e,n,t),i||(a=l(o=r[36].call(null,n,(r[0],r[16],r[17],r[16]))),i=!0)},p(e,t){8&t[0]&&y(n,"session",e[3]),16&t[0]&&y(n,"userid",e[4]),1&t[0]&&y(n,"endpoint",e[0]),2&t[0]&&y(n,"datasource",e[1]),4&t[0]&&y(n,"lang",e[2]),512&t[0]&&y(n,"favorites",e[9]),32&t[0]&&y(n,"clientstyling",e[5]),64&t[0]&&y(n,"clientstylingurl",e[6]),o&&p(o.update)&&196609&t[0]&&o.update.call(null,(e[0],e[16],e[17],e[16]))},d(e){e&&H(n),i=!1,a()}}}function Ao(t){let o,i=t[27],a=[];for(let e=0;e<i.length;e+=1)a[e]=Lo(io(t,i,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();o=u()},m(t,r){for(let e=0;e<a.length;e+=1)a[e].m(t,r);j(t,o,r)},p(t,r){if(134218495&r[0]){let e;for(i=t[27],e=0;e<i.length;e+=1){var n=io(t,i,e);a[e]?a[e].p(n,r):(a[e]=Lo(n),a[e].c(),a[e].m(o.parentNode,o))}for(;e<a.length;e+=1)a[e].d(1);a.length=i.length}},d(e){c(a,e),e&&H(o)}}}function Po(r){let n,o,i,a;return{c(){n=z("casino-games-category-section"),y(n,"endpoint",r[0]),y(n,"datasource",r[1]),y(n,"lang",r[2]),y(n,"session",r[3]),y(n,"userid",r[4]),y(n,"categoryid","Search"),y(n,"favorites",r[9]),y(n,"categoryindex","0"),y(n,"clientstyling",r[5]),y(n,"clientstylingurl",r[6])},m(e,t){j(e,n,t),i||(a=l(o=r[44].call(null,n,r[26])),i=!0)},p(e,t){1&t[0]&&y(n,"endpoint",e[0]),2&t[0]&&y(n,"datasource",e[1]),4&t[0]&&y(n,"lang",e[2]),8&t[0]&&y(n,"session",e[3]),16&t[0]&&y(n,"userid",e[4]),512&t[0]&&y(n,"favorites",e[9]),32&t[0]&&y(n,"clientstyling",e[5]),64&t[0]&&y(n,"clientstylingurl",e[6]),o&&p(o.update)&&67108864&t[0]&&o.update.call(null,e[26])},d(e){e&&H(n),i=!1,a()}}}function Mo(e){let r,n,o=e[34]("casinoPage.loading")+"";return{c(){r=z("p"),n=t(o),X(r,"class","SearchLoading")},m(e,t){j(e,r,t),B(r,n)},p(e,t){8&t[1]&&o!==(o=e[34]("casinoPage.loading")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Io(e){let r;return{c(){r=z("casino-games-category-section"),y(r,"session",e[3]),y(r,"userid",e[4]),y(r,"endpoint",e[0]),y(r,"datasource",e[1]),y(r,"lang",e[2]),y(r,"favorites",e[9]),y(r,"categoryid","MOSTPLAYED"),y(r,"categoryindex","1"),y(r,"categorygames","9"),y(r,"class","CategoryContainer"),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6])},m(e,t){j(e,r,t)},p(e,t){8&t[0]&&y(r,"session",e[3]),16&t[0]&&y(r,"userid",e[4]),1&t[0]&&y(r,"endpoint",e[0]),2&t[0]&&y(r,"datasource",e[1]),4&t[0]&&y(r,"lang",e[2]),512&t[0]&&y(r,"favorites",e[9]),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6])},d(e){e&&H(r)}}}function ko(e){let r;return{c(){r=z("p"),r.textContent="You have no games played!",X(r,"class","SearchLoading")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function Lo(r){let n,o,i,a,s;return{c(){n=z("casino-games-category-section"),y(n,"session",r[3]),y(n,"userid",r[4]),y(n,"endpoint",r[0]),y(n,"datasource",r[1]),y(n,"lang",r[2]),y(n,"categoryid",o=r[112]),y(n,"categoryindex",r[114]),y(n,"categorygames","9"),y(n,"favorites",r[9]),y(n,"class","CategoryContainer"),C(n,"background-color",r[114]%2!=0?r[7]:"transparent"),y(n,"clientstyling",r[5]),y(n,"clientstylingurl",r[6])},m(e,t){j(e,n,t),a||(s=l(i=r[43].call(null,n,r[112])),a=!0)},p(e,t){r=e,8&t[0]&&y(n,"session",r[3]),16&t[0]&&y(n,"userid",r[4]),1&t[0]&&y(n,"endpoint",r[0]),2&t[0]&&y(n,"datasource",r[1]),4&t[0]&&y(n,"lang",r[2]),134217728&t[0]&&o!==(o=r[112])&&y(n,"categoryid",o),512&t[0]&&y(n,"favorites",r[9]),128&t[0]&&C(n,"background-color",r[114]%2!=0?r[7]:"transparent"),32&t[0]&&y(n,"clientstyling",r[5]),64&t[0]&&y(n,"clientstylingurl",r[6]),i&&p(i.update)&&134217728&t[0]&&i.update.call(null,r[112])},d(e){e&&H(n),a=!1,s()}}}function $o(r){let n,o,i,a,s,l,c,u,d,h,p,m,g=r[34]("casinoPage.break")+"",f=r[34]("casinoPage.breakButton")+"";return{c(){n=z("div"),o=z("div"),i=v("svg"),a=v("path"),s=W(),l=z("p"),c=t(g),u=W(),d=z("button"),h=t(f),X(a,"stroke-linecap","round"),X(a,"stroke-linejoin","round"),X(a,"stroke-width","2"),X(a,"d","M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"),X(i,"class","w-1 h-1"),X(i,"fill","none"),X(i,"stroke","white"),X(i,"width","34px"),X(i,"height","34px"),X(i,"viewBox","0 0 24 24"),X(i,"xmlns","http://www.w3.org/2000/svg"),X(o,"class","PanicText"),X(d,"class","PanicButton"),X(n,"class","PanicSection "+("PC"!==dn(r[35])?"PanicSectionMobile":""))},m(e,t){j(e,n,t),B(n,o),B(o,i),B(i,a),B(o,s),B(o,l),B(l,c),B(n,u),B(n,d),B(d,h),p||(m=V(d,"click",r[65]),p=!0)},p(e,t){8&t[1]&&g!==(g=e[34]("casinoPage.break")+"")&&Y(c,g),8&t[1]&&f!==(f=e[34]("casinoPage.breakButton")+"")&&Y(h,f)},d(e){e&&H(n),p=!1,m()}}}function No(e){let r;function n(e){return e[14]?so:ao}let o=n(e),i=o(e);return{c(){i.c(),r=u(),this.c=U},m(e,t){i.m(e,t),j(e,r,t)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r.parentNode,r)))},i:U,o:U,d(e){i.d(e),e&&H(r)}}}customElements.get("casino-games-category-section")||customElements.define("casino-games-category-section",class extends F{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}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:left;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoRecentSearchesCenter.NoRecentSearchesMobile{text-align:left}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .UnfavoredIcon{width:50px;height:50px}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:12.8px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesHeader.CasinoGamesHeaderMobile.Searched{justify-content:flex-start}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(Min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}</style>",s(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},oo,ro,r,{endpoint:0,datasource:26,lang:1,session:2,userid:3,favorites:4,clientstyling:5,clientstylingurl:6,categoryid:25,categoryindex:27,categorygames:28,once:29,top:30,bottom:31,left:32,right:33},[-1,-1,-1]),e&&(e.target&&j(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","categoryid","categoryindex","categorygames","once","top","bottom","left","right"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$set({endpoint:e}),T()}get datasource(){return this.$$.ctx[26]}set datasource(e){this.$set({datasource:e}),T()}get lang(){return this.$$.ctx[1]}set lang(e){this.$set({lang:e}),T()}get session(){return this.$$.ctx[2]}set session(e){this.$set({session:e}),T()}get userid(){return this.$$.ctx[3]}set userid(e){this.$set({userid:e}),T()}get favorites(){return this.$$.ctx[4]}set favorites(e){this.$set({favorites:e}),T()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$set({clientstyling:e}),T()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$set({clientstylingurl:e}),T()}get categoryid(){return this.$$.ctx[25]}set categoryid(e){this.$set({categoryid:e}),T()}get categoryindex(){return this.$$.ctx[27]}set categoryindex(e){this.$set({categoryindex:e}),T()}get categorygames(){return this.$$.ctx[28]}set categorygames(e){this.$set({categorygames:e}),T()}get once(){return this.$$.ctx[29]}set once(e){this.$set({once:e}),T()}get top(){return this.$$.ctx[30]}set top(e){this.$set({top:e}),T()}get bottom(){return this.$$.ctx[31]}set bottom(e){this.$set({bottom:e}),T()}get left(){return this.$$.ctx[32]}set left(e){this.$set({left:e}),T()}get right(){return this.$$.ctx[33]}set right(e){this.$set({right:e}),T()}});let Oo=!1;const Ro=0;function Go(e,t,i){let r;Fe(e,cn,e=>i(34,r=e));let o,a,s,l,c,u,d,h,n,p,m,{endpoint:g=""}=t,{datasource:f=""}=t,{lang:y=""}=t,{session:v=""}=t,{userid:b=""}=t,{clientstyling:w=""}=t,{clientstylingurl:S=""}=t,{categorybackground:C=""}=t,{visiblegames:E="6"}=t,{alternativesearch:x="false"}=t,{favorites:T=""}=t,{mostplayed:_=""}=t,{lobbyid:F="casinodefault"}=t,{containermaxwidth:A=""}=t,{haspanicbutton:P="false"}=t,{mostplayedrounds:M=""}=t,{activecategory:I=""}=t,k=!1,L=!1,$=!1,N="",O=!1,R=!1,G=!0,U=!1,D=!1,B=!1,j=!0,H=!1,z=!1,W=!1,V=!0,X=[],Y="",q=window.navigator.userAgent,Z,K=[],J=!1,Q=[],ee=0,te="";var re,ne;[{withLocale:re,translations:ne}]=[{withLocale:"en",translations:{}}],Jr.subscribe(e=>{null==e&&(Dr.set(ne),Jr.set(re))}),Object.keys(hn).forEach(e=>{jr(e,hn[e])});const oe=e=>{switch(i(20,U=!1),i(12,Y=""),e.data.itemId){case"LOBBY":i(22,j=!0),i(18,O=!1),i(28,l=""),i(23,H=!1);break;case"FAVORITES":i(22,j=!1),i(18,O=!0),i(23,H=!1),i(28,l="");break;case"MOSTPLAYED":"true"==_&&(i(13,k=!0),ae({limit:100,device:dn(q),rounds:10}).then(e=>{if(i(13,k=!1),0<e.count){let r=[];e.items.forEach(e=>{let t=new URL(`${g}/casino/games/${e.gameId}`);t.searchParams.append("datasource",f),r.push(fetch(t.href).then(e=>e.json()))}),Promise.all(r).then(e=>{Z=e.map(e=>e[0]),window.postMessage({type:"MostPlayedData",mostPlayedGames:Z},window.location.href)})}else i(24,z=!0)}),i(28,l=""),i(22,j=!1),i(18,O=!1),i(23,H=!0));break;default:i(22,j=!1),i(18,O=!1),i(23,H=!1),i(28,l=e.data.itemId),setTimeout(()=>{window.postMessage({type:"CategoryUpdate",itemId:l},window.location.href)},100)}},ie=e=>{if(e.data)switch(e.data.type){case"CategoryChange":oe(e);break;case"UserSessionID":i(17,a=e.data.session),i(16,o=e.data.userID),o&&o.length&&a&&0<a.length&&se(g,a,o);break;case"CategoriesLoadedForSlider":window.postMessage({type:"SetSliderIndex",index:0,categoryData:{id:"LOBBY"}},window.location.href);break;case"SetUnfavoredGame":de(`${g}/player/${o}/favorites`,a,o,e.data.id,e.data.triggerFactor);break;case"SetFavoredGame":ue(`${g}/player/${o}/favorites`,a,o,e.data.id,e.data.triggerFactor);break;case"GetFavoredGame":o&&o.length&&a&&0<a.length&&se(g,a,o);break;case"SearchedItemClicked":fe(e.data.gameId);break;case"UpdateFilters":we(e.data.vendorsArray),ye();break;case"ClearFilters":be(e.data.vendorsArray),ye();break;case"ApplyFilters":window.postMessage({type:"CategoryUpdate",itemId:te},window.location.href),ye();break;case"CategoryVendors":te=e.data.categoryid,ye();break;case"GameHovered":D=!0;break;case"GameBlur":D=!1}},ae=e=>{let n=new URL(`${g}/player/${o}/games/most-played`);e.limit&&n.searchParams.append("limit",e.limit),e.order&&n.searchParams.append("order",e.order);var t=e.device;return t?"PC"===t?n.searchParams.append("device","Desktop"):n.searchParams.append("device","Mobile"):n.searchParams.append("device","All"),e.rounds&&n.searchParams.append("rounds",e.rounds),new Promise((t,r)=>{fetch(n.href).then(e=>e.json()).then(e=>{t(e),window.postMessage({type:"AddNewCategory",category:{name:"Most Played",id:"MOSTPLAYED"}},window.location.href),window.postMessage({type:"MostPlayedGames",data:e},window.location.href)}).catch(e=>{console.error(e),r(e)})})};let se=(e,t,r)=>{"true"==T&&v&&r&&(fetch(`${e}/player/${r}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>(n=e,n&&(window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:n},window.location.href),ce(n.items)),n)).catch(e=>{console.error(e)}),O&&he())},le=(e,t,r)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>(n=e,O&&he(),n&&window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:n},window.location.href),n)).catch(e=>{console.error(e)})};const ce=(e=[])=>(K=[],0<e.length&&e.forEach(e=>{K.push(e.id)}),K);let ue=(t,r,e,n,o)=>{K.includes(n)||K.push(n);var i={items:K},i={method:"POST",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t,i).then(e=>e.json()).then(e=>{window.postMessage({type:`AddFavoriteThumbnail_${n}`},window.location.href),le(t,r)}).catch(e=>{console.error("Err",e)})};const de=(t,r,e,n,o)=>{K.includes(n)&&(K=K.filter(e=>e!=n)),fetch(`${t}/${n}`,{method:"DELETE",headers:{"X-SessionID":r}}).then(e=>e.json()).then(e=>{window.postMessage({type:`RemoveFavoriteThumbnail_${n}`},window.location.href),le(t,r)})},he=()=>{window.postMessage({type:"ShowFavoriteSection",receivedFavoriteResults:n},window.location.href)},pe=e=>{e=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));if(e)return e[2]},me=()=>{if(g&&f&&y&&Y.length<2){let e=pe(`searchedGamesWds_${F}`),t=[];e&&(t=e.split(",")),1!=j||G||(i(21,B=j),i(22,j=!1));let r=[],n=0,o=t.length;if(0<o){for(n=0;n<o;n++){let e=new URL(`${g}/casino/games/${t[n]}`);e.searchParams.append("language",y),e.searchParams.append("datasource",f),e.searchParams.append("platform",dn(q)),r.push((e=>new Promise((t,r)=>{i(13,k=!0),fetch(e).then(e=>e.json()).then(e=>{i(13,k=!1),t(e[0])}).catch(e=>{i(14,L=!0),i(13,k=!1),console.error(e),r(e)})}))(e))}Promise.all(r).then(e=>{i(26,s=e),Se({},s)})}else Se({},{})}},ge=()=>{Y.length<2&&!D&&(i(20,U=!1),i(26,s=[]),i(19,R=!1),i(22,j=B),i(21,B=!1),!1===j&&window.postMessage({type:"CategoryUpdate",itemId:l},window.location.href),window.postMessage({type:"OutOfRecentSearches"},window.location.href))},fe=e=>{Q=pe(`searchedGamesWds_${F}`),Q=Q?Q.split(","):[],-1===Q.indexOf(e)&&(Q.push(e),e=Q.join(","),document.cookie=`searchedGamesWds_${F}=`+e)},ye=()=>{var e=JSON.parse(sessionStorage.getItem("vendorFiltersByCategory"));e&&te&&(e[te]?i(32,ee=e[te].length):i(32,ee=0))},ve=()=>{i(52,V=!0),i(12,Y=""),i(26,s=[]),i(19,R=!1),ge()},be=e=>{window.postMessage({type:"AvailableVendors",venArray:e},window.location.href)},we=e=>{window.postMessage({type:"UpdateSelectedVendorFilters",venArray:e},window.location.href)},Se=(e,t)=>{window.postMessage({type:"RecentSearchData",searchData:t},window.location.href)},Ce=()=>{window.postMessage({type:"ShowFilterModal"},window.location.href)},Ee=()=>{window.postMessage({type:"ClearVendorFilters"},window.location.href)},xe=(e,t)=>{t&&window.postMessage({type:"SearchData",searchData:t,receivedFavoriteResults:n},window.location.href)},Te=()=>{window.postMessage({type:"PanicButtonClicked"},window.location.href)},_e=()=>{u&&(d=u.getBoundingClientRect().top+document.body.getBoundingClientRect().top),document.documentElement.scrollTop>d||130<d?i(25,W=!0):i(25,W=!1)};return Ae(()=>(window.addEventListener("scroll",_e,!1),window.addEventListener("message",ie,!1),()=>{window.removeEventListener("scroll",_e),window.removeEventListener("message",ie)})),e.$$set=e=>{"endpoint"in e&&i(0,g=e.endpoint),"datasource"in e&&i(1,f=e.datasource),"lang"in e&&i(2,y=e.lang),"session"in e&&i(3,v=e.session),"userid"in e&&i(4,b=e.userid),"clientstyling"in e&&i(5,w=e.clientstyling),"clientstylingurl"in e&&i(6,S=e.clientstylingurl),"categorybackground"in e&&i(7,C=e.categorybackground),"visiblegames"in e&&i(46,E=e.visiblegames),"alternativesearch"in e&&i(8,x=e.alternativesearch),"favorites"in e&&i(9,T=e.favorites),"mostplayed"in e&&i(47,_=e.mostplayed),"lobbyid"in e&&i(48,F=e.lobbyid),"containermaxwidth"in e&&i(10,A=e.containermaxwidth),"haspanicbutton"in e&&i(11,P=e.haspanicbutton),"mostplayedrounds"in e&&i(49,M=e.mostplayedrounds),"activecategory"in e&&i(50,I=e.activecategory)},e.$$.update=()=>{if(4096&e.$$.dirty[0]&&Y&&(2<=Y.length?i(52,V=!0):i(52,V=!1)),4099&e.$$.dirty[0]|3145728&e.$$.dirty[1])if(2<=Y.length){i(20,U=!0);let e=new URL(`${g}/casino/games`);e.searchParams.append("datasource",f),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=30"),e.searchParams.append("filter",`name=${Y}`),n=e,new Promise((t,r)=>{i(13,k=!0),fetch(n).then(e=>e.json()).then(e=>{i(13,k=!1),t(e)}).catch(e=>{i(14,L=!0),i(13,k=!1),console.error(e),r(e)})}).then(e=>{i(26,s=e),xe(0,e)})}else V||me(),G&&i(51,G=!1);var n;524288&e.$$.dirty[1]&&I&&(i(28,l=I),oe({data:{itemId:l}})),25&e.$$.dirty[0]&&v&&b&&g&&(i(15,$=!0),i(17,a=v),i(16,o=b)),263&e.$$.dirty[0]&&g&&f&&y&&x&&(()=>{if(g||(N="Endpoint is missing! Please provide a valid endpointURL.",i(14,L=!0),i(13,k=!1),console.error(N)),f||(N="Datasource is missing! Please provide a valid datasource.",i(14,L=!0),i(13,k=!1),console.error(N)),y&&2==y.length||(N="Language is missing! Please provide a valid language (alpha2code)",i(14,L=!0),i(13,k=!1),console.error(N)),!L){i(13,k=!0),"true"==T&&se(g,a,o);let e=new URL(`${g}/casino/groups/${f}`);e.searchParams.append("language",y),e.searchParams.append("platform",dn(q)),n=e,new Promise((t,r)=>{i(13,k=!0),fetch(n).then(e=>e.json()).then(e=>{i(13,k=!1),t(e)}).catch(e=>{i(14,L=!0),i(13,k=!1),console.error(e),r(e)})}).then(e=>{e&&(h=e.items.filter(e=>0<e.games.total),i(27,X=h.map(e=>e.id)),i(13,k=!1))}),"PC"!==dn(q)&&(p.addEventListener("focusin",e=>{i(31,J=!0)}),p.addEventListener("focusout",e=>{i(31,J=!1)})),ye(),u=c,u&&(d=u.getBoundingClientRect().top-document.body.getBoundingClientRect().top)}var n})(),32&e.$$.dirty[0]&&w&&(()=>{let e=document.createElement("style");e.innerHTML=w,m.appendChild(e)})(),64&e.$$.dirty[0]&&S&&(()=>{let t=document.createElement("style");fetch(new URL(S)).then(e=>e.text()).then(e=>{t.innerHTML=e,m&&setTimeout(()=>{m.appendChild(t)},1)})})()},[g,f,y,v,b,w,S,C,x,T,A,P,Y,k,L,$,o,a,O,R,U,B,j,H,z,W,s,X,l,c,p,J,ee,m,r,q,he,me,ge,()=>{window.postMessage({type:"scroll"},window.location.href)},ve,Ce,Ee,(e,t)=>{te=t,window.postMessage({type:`CategoryData_${t}`,categoryId:t,visiblegames:E,receivedFavoriteResults:n},window.location.href)},xe,Te,E,_,F,M,I,G,V,function(e){Pe[e?"unshift":"push"](()=>{p=e,i(30,p)})},function(){Y=this.value,i(12,Y)},()=>ve(),()=>Ee(),()=>{Ce()},function(e){Pe[e?"unshift":"push"](()=>{c=e,i(29,c)})},function(e){Pe[e?"unshift":"push"](()=>{p=e,i(30,p)})},function(){Y=this.value,i(12,Y)},()=>ve(),()=>Ee(),()=>{Ce()},function(e){Pe[e?"unshift":"push"](()=>{c=e,i(29,c)})},()=>Te(),function(e){Pe[e?"unshift":"push"](()=>{m=e,i(33,m)})}]}class Uo extends F{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}.CategoriesLobby{margin:0 auto;padding:0 10px}.PanicSectionMobile{flex-direction:column;margin-bottom:40px}.PanicSection{display:flex;justify-content:center;align-items:center;gap:10px}.PanicText{display:flex;justify-content:center;align-items:center;gap:10px}p{font-size:16px;color:var(--emfe-w-color-white, #FFFFFF)}.PanicButton{border-radius:2px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:240px;height:48px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}[type=\"search\"]{appearance:none}.SrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.CategoryContainer{display:block}.SearchLoading{color:var(--emfe-w-color-white, #FFFFFF);font-size:14.4px;margin-top:16px;text-align:center}.SearchContainer{flex:3;width:100%;max-width:640px;margin:0 auto}.SearchContainer.SearchTruncated{margin:auto 0 auto 25%}.SearchContainer.SearchTruncated .SearchInput{tabindex:999;padding:20px 12px 20px 40px}.SearchContainer .SearchWrapper{position:relative;display:flex;color:#c7d2fe}.SearchContainer .SearchWrapper .SearchIcon{position:absolute;display:flex;align-items:center;top:0;bottom:0;left:0;padding-left:8px;pointer-events:none}.SearchContainer .SearchWrapper .SearchIcon svg{width:25.6px;height:25.6px;display:block;vertical-align:middle;fill:#c7d2fe}.SearchContainer .SearchWrapper .SearchInput{width:100%;display:block;padding:12px 12px 12px 40px;border-radius:6.4px;border-color:transparent;font-size:16px;background-color:rgba(156, 163, 175, 0.25);color:#e0e7ff}.SearchContainer .SearchWrapper .SearchInput::-webkit-search-decoration,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-cancel-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchContainer .SearchWrapper .SearchInput::placeholder{color:white}.SearchContainer .SearchWrapper .SearchInput:focus{background-color:white;color:#111827;outline:2px solid transparent;outline-offset:2px}.SearchContainer .SearchWrapper .SearchInput:focus::placeholder{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within .SearchIcon svg{fill:#9ca3af}.FiltersButtonsContainer{display:inline-flex;flex:1;grid-gap:20px;flex-direction:row-reverse}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;padding:10px 22px;border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.ClearFilterButtonWrapper{border:1px solid var(--emfe-w-color-secondary, #FD2839);color:var(--emfe-w-color-secondary, #FD2839)}.FilterIconContainer,.ClearIcon{position:relative;padding-left:5px}.FilterIconContainer{top:2px}.ClearIcon{position:relative;top:1px}.ClearIcon svg{width:14px}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;justify-content:center;align-items:center}.NumberOfFiltersContainer{display:block;line-height:0px;border-radius:50%;border:2px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);font-size:12px;position:absolute;top:-5px;left:22px}.NumberOfFiltersContainer .NumberOfFilters{display:inline-block;padding-top:50%;padding-bottom:50%;margin-left:3px;margin-right:3px}.CategoriesHeaderSection{width:100%;display:inline-flex;flex-direction:row;margin-top:30px}.CategoriesHeaderMobileSection{position:fixed;bottom:0;left:0;flex-direction:row-reverse;z-index:1}.CategoriesHeaderMobileSection .ClearFilterButtonWrapper{display:none}.CategoriesHeaderMobileSection .SearchContainer{flex:1;max-width:unset;margin:unset;background-color:#d0056c;z-index:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{color:var(--emfe-w-color-white, #FFFFFF)}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchIcon{left:25px}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{padding:12px;border-radius:0;background-color:#d0056c;color:var(--emfe-w-color-white, #FFFFFF);text-align:center;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:-ms-input-placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::-ms-input-placeholder{color:white;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper path{fill:var(--emfe-w-color-white, #FFFFFF)}.CategoriesHeaderMobileSection .FiltersButtonsContainer{flex:1}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{position:relative;width:100%;display:flex;flex-direction:row-reverse;border:1px solid var(--emfe-w-color-white, #FFFFFF);border-radius:0;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-primary, #D0046C)}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{position:absolute;left:40px;top:revert;padding-left:0}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer path{fill:var(--emfe-w-color-primary, #D0046C)}.CategoriesHeaderMobileSection .NumberOfFiltersContainer{font-size:8px;left:15px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection{flex-direction:row;position:relative;margin-top:30px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer{background-color:var(--emfe-w-color-contrast, #07072A)}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{justify-content:center}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{width:90%;border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:6.4px;background-color:transparent;color:var(--emfe-w-color-white, #FFFFFF);padding:12px 50px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:active,.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:focus{width:90%}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer{position:absolute;top:75px;right:0;font-size:13px;gap:6px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{display:none}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{border-radius:5px;border:1px solid var(--emfe-w-color-white, #FFFFFF);background:transparent;color:var(--emfe-w-color-white, #FFFFFF);padding:6px 16px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .ClearFilterButtonWrapper{padding:6px 16px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .ClearFilterButtonWrapper .ClearIcon{display:none}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection.CategoriesHeaderSearchActive{top:0}.CategoriesHeaderSectionAltDesign .FiltersActive.ClearFilterButtonWrapper{display:inline-flex}.CategoriesHeaderSectionAltDesign .ClearSearchButton,.CategoriesHeaderSectionAltDesign .ClearSearchButtonMobile{right:30px;top:9px}.ClearFilterMobileButtonWrapper .ClearIcon svg{width:12px}.CategoriesHeaderSearchActive{position:fixed;bottom:unset;top:70px;margin-top:0}.CategoriesHeaderSearchActive .SearchContainer{background-color:white}.CategoriesHeaderSearchActive .SearchContainer .SearchWrapper .SearchInput{background-color:white;color:var(--emfe-w-color-black, #000000)}.SearchStickTop{margin-top:0}@media(max-width: 768px){.SearchContainer{margin:auto 3% auto 0%}}.SearchBarPlaceholder{display:block;width:100%;height:46px}.SearchBarPlaceholder{display:block;width:100%;height:46px}.ClearSearchButton,.ClearSearchButtonMobile{cursor:pointer;position:absolute;right:14px;top:11px}.ClearSearchButton .CloseIconContainer,.ClearSearchButtonMobile .CloseIconContainer{width:25px;height:25px}.ClearSearchButton .CloseIconWrapper,.ClearSearchButtonMobile .CloseIconWrapper{height:25px;width:3px;margin-left:12px;background-color:var(--emfe-w-color-white, #FFFFFF);transform:rotate(45deg);Z-index:1}.ClearSearchButton .CloseIcon,.ClearSearchButtonMobile .CloseIcon{height:25px;width:3px;background-color:var(--emfe-w-color-white, #FFFFFF);transform:rotate(90deg);Z-index:2}.SearchContainer .CloseIconWrapper,.SearchContainer .CloseIcon{background-color:var(--emfe-w-color-secondary, #FD2839)}.ClearSearchButtonMobile{display:none}.CategoriesHeaderSearchActive .ClearSearchButtonMobile{display:block}.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIconWrapper,.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIcon{background-color:var(--emfe-w-color-secondary, #FD2839)}</style>",s(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Go,No,r,{endpoint:0,datasource:1,lang:2,session:3,userid:4,clientstyling:5,clientstylingurl:6,categorybackground:7,visiblegames:46,alternativesearch:8,favorites:9,mostplayed:47,lobbyid:48,containermaxwidth:10,haspanicbutton:11,mostplayedrounds:49,activecategory:50},[-1,-1,-1,-1]),e&&(e.target&&j(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["endpoint","datasource","lang","session","userid","clientstyling","clientstylingurl","categorybackground","visiblegames","alternativesearch","favorites","mostplayed","lobbyid","containermaxwidth","haspanicbutton","mostplayedrounds","activecategory"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$set({endpoint:e}),T()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$set({datasource:e}),T()}get lang(){return this.$$.ctx[2]}set lang(e){this.$set({lang:e}),T()}get session(){return this.$$.ctx[3]}set session(e){this.$set({session:e}),T()}get userid(){return this.$$.ctx[4]}set userid(e){this.$set({userid:e}),T()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$set({clientstyling:e}),T()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$set({clientstylingurl:e}),T()}get categorybackground(){return this.$$.ctx[7]}set categorybackground(e){this.$set({categorybackground:e}),T()}get visiblegames(){return this.$$.ctx[46]}set visiblegames(e){this.$set({visiblegames:e}),T()}get alternativesearch(){return this.$$.ctx[8]}set alternativesearch(e){this.$set({alternativesearch:e}),T()}get favorites(){return this.$$.ctx[9]}set favorites(e){this.$set({favorites:e}),T()}get mostplayed(){return this.$$.ctx[47]}set mostplayed(e){this.$set({mostplayed:e}),T()}get lobbyid(){return this.$$.ctx[48]}set lobbyid(e){this.$set({lobbyid:e}),T()}get containermaxwidth(){return this.$$.ctx[10]}set containermaxwidth(e){this.$set({containermaxwidth:e}),T()}get haspanicbutton(){return this.$$.ctx[11]}set haspanicbutton(e){this.$set({haspanicbutton:e}),T()}get mostplayedrounds(){return this.$$.ctx[49]}set mostplayedrounds(e){this.$set({mostplayedrounds:e}),T()}get activecategory(){return this.$$.ctx[50]}set activecategory(e){this.$set({activecategory:e}),T()}}return customElements.get("casino-page")||customElements.define("casino-page",Uo),Uo});
|
|
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 U(){}function d(e){return e()}function h(){return Object.create(null)}function D(e){e.forEach(d)}function p(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return U;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Ae(e,t,r){e.$$.on_destroy.push(m(t,r))}function l(e){return e&&p(e.destroy)?e.destroy:U}function B(e,t){e.appendChild(t)}function j(e,t,r){e.insertBefore(t,r||null)}function H(e){e.parentNode.removeChild(e)}function c(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function z(e){return document.createElement(e)}function v(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function t(e){return document.createTextNode(e)}function W(){return t(" ")}function u(){return t("")}function V(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function X(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t,r){t in e?e[t]=r:X(e,t,r)}function Y(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function S(e,t){e.value=null==t?"":t}function C(e,t,r,n){e.style.setProperty(t,r,n?"important":"")}function n(e){const t={};for(const r of e)t[r.name]=r.value;return t}let g;function f(e){g=e}function Pe(e){!function(){if(!g)throw new Error("Function called outside component initialization");return g}().$$.on_mount.push(e)}const b=[],Me=[],o=[],e=[],w=Promise.resolve();let E=!1;function x(e){o.push(e)}let i=!1;const a=new Set;function T(){if(!i){i=!0;do{for(let e=0;e<b.length;e+=1){var t=b[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),D(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(x))}}(t.$$)}for(f(null),b.length=0;Me.length;)Me.pop()();for(let e=0;e<o.length;e+=1){const r=o[e];a.has(r)||(a.add(r),r())}}while(o.length=0,b.length);for(;e.length;)e.pop()();E=!1,i=!1,a.clear()}}const _=new Set;function s(n,e,t,r,o,i,a=[-1]){var s,l=g;f(n);const c=n.$$={fragment:null,ctx:null,props:i,update:U,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:a,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{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]&&(b.push(e),E||(E=!0,w.then(T)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,D(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const U=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(U),U.forEach(H)}else c.fragment&&c.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(_.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:a,after_update:s}=t.$$;o&&o.m(e,r),n||x(()=>{var e=i.map(d).filter(p);a?a.push(...e):D(e),t.$$.on_mount=[]}),s.forEach(x)}(n,e.target,e.anchor,e.customElement),T()}f(l)}let F;"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(d).filter(p);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){D(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(D(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=U}$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 A,P,M="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==M&&M,I="URLSearchParams"in M,k="Symbol"in M&&"iterator"in Symbol,L="FileReader"in M&&"Blob"in M&&function(){try{return new Blob,!0}catch(e){return!1}}(),$="FormData"in M,N="ArrayBuffer"in M;function O(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 R(e){return e="string"!=typeof e?String(e):e}function G(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return k&&(e[Symbol.iterator]=function(){return e}),e}function q(t){this.map={},t instanceof q?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 Z(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function K(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function J(e){var t=new FileReader,r=K(t);return t.readAsArrayBuffer(e),r}function Q(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ee(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:L&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:$&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:I&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():N&&L&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Q(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):N&&(ArrayBuffer.prototype.isPrototypeOf(e)||P(e))?this._bodyArrayBuffer=Q(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):I&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},L&&(this.blob=function(){var e=Z(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?Z(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(J)}),this.text=function(){var e,t,r=Z(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=K(t=new FileReader),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)},$&&(this.formData=function(){return this.text().then(ne)}),this.json=function(){return this.text().then(JSON.parse)},this}N&&(A=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],P=ArrayBuffer.isView||function(e){return e&&-1<A.indexOf(Object.prototype.toString.call(e))}),q.prototype.append=function(e,t){e=O(e),t=R(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},q.prototype.delete=function(e){delete this.map[O(e)]},q.prototype.get=function(e){return e=O(e),this.has(e)?this.map[e]:null},q.prototype.has=function(e){return this.map.hasOwnProperty(O(e))},q.prototype.set=function(e,t){this.map[O(e)]=R(t)},q.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},q.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),G(r)},q.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),G(t)},q.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),G(r)},k&&(q.prototype[Symbol.iterator]=q.prototype.entries);var te=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function re(e,t){if(!(this instanceof re))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 re){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new q(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 q(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<te.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 ne(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 oe(e,t){if(!(this instanceof oe))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 q(t.headers),this.url=t.url||"",this._initBody(e)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})},ee.call(re.prototype),ee.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new q(this.headers),url:this.url})},oe.error=function(){var e=new oe(null,{status:0,statusText:""});return e.type="error",e};var ie=[301,302,303,307,308];oe.redirect=function(e,t){if(-1===ie.indexOf(t))throw new RangeError("Invalid status code");return new oe(null,{status:t,headers:{location:e}})};var ae=M.DOMException;try{new ae}catch(U){(ae=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),ae.prototype.constructor=ae}function se(n,a){return new Promise(function(o,e){var t=new re(n,a);if(t.signal&&t.signal.aborted)return e(new ae("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new q,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 i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new oe(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new ae("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&M.location.href?M.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(L?i.responseType="blob":N&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof q?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){i.setRequestHeader(e,R(a.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}se.polyfill=!0,M.fetch||(M.fetch=se,M.Headers=q,M.Request=re,M.Response=oe),self.fetch.bind(self);var le=function(e,t){return(le=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 ce(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}le(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ue(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 de(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function he(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function pe(e){return"function"==typeof e}function me(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 ge=me(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 fe(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var ye=(be.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=ue(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(pe(i))try{i()}catch(e){o=e instanceof ge?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=ue(i),c=l.next();!c.done;c=l.next()){var u=c.value;try{Se(u)}catch(e){o=null!=o?o:[],e instanceof ge?o=he(he([],de(o)),de(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 ge(o)}},be.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Se(e);else{if(e instanceof be){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},be.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},be.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},be.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&fe(t,e)},be.prototype.remove=function(e){var t=this._teardowns;t&&fe(t,e),e instanceof be&&e._removeParent(this)},be.EMPTY=((Vt=new be).closed=!0,Vt),be),ve=ye.EMPTY;function be(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function we(e){return e instanceof ye||e&&"closed"in e&&pe(e.remove)&&pe(e.add)&&pe(e.unsubscribe)}function Se(e){pe(e)?e():e.unsubscribe()}var Ce=void 0,Ee=!1,xe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,he([],de(e)))};function Te(){}function _e(e){e()}var Fe,Ie,ke=(ce(Ne,Ie=ye),Ne.create=function(e,t,r){return new Le(e,t,r)},Ne.prototype.next=function(e){this.isStopped||this._next(e)},Ne.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Ne.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ne.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ie.prototype.unsubscribe.call(this),this.destination=null)},Ne.prototype._next=function(e){this.destination.next(e)},Ne.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Ne.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ne),Le=(ce($e,Fe=ke),$e);function $e(e,t,r){var n,o,i=Fe.call(this)||this;return pe(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&Ee?(n=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:n=e,o=null==o?void 0:o.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Oe(o):Te,error:Oe(null!=t?t:Re),complete:r?Oe(r):Te},i}function Ne(e){var t=Ie.call(this)||this;return t.isStopped=!1,e?we(t.destination=e)&&e.add(t):t.destination=Ge,t}function Oe(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,he([],de(e)))}catch(e){t=e,xe(function(){throw t})}}}function Re(e){throw e}var Ge={closed:!0,next:Te,error:Re,complete:Te},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function De(e){return e}var Be=(je.prototype.lift=function(e){var t=new je;return t.source=this,t.operator=e,t},je.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof ke||n&&pe(n.next)&&pe(n.error)&&pe(n.complete)&&we(n)?e:new Le(e,t,r);return _e(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},je.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},je.prototype.forEach=function(n,e){var o=this;return new(e=He(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},je.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},je.prototype[Ue]=function(){return this},je.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?De:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},je.prototype.toPromise=function(e){var n=this;return new(e=He(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},je.create=function(e){return new je(e)},je);function je(e){e&&(this._subscribe=e)}function He(e){return null!==(e=null!=e?e:Ce)&&void 0!==e?e:Promise}var ze,We,Ve,Xe=me(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ye=(ce(et,Ve=Be),et.prototype.lift=function(e){var t=new qe(this,this);return t.operator=e,t},et.prototype._throwIfClosed=function(){if(this.closed)throw new Xe},et.prototype.next=function(i){var a=this;_e(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=ue(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},et.prototype.error=function(t){var r=this;_e(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)}})},et.prototype.complete=function(){var t=this;_e(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},et.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(et.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),et.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ve.prototype._trySubscribe.call(this,e)},et.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},et.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ve:(n.push(e),new ye(function(){return fe(n,e)}))},et.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},et.prototype.asObservable=function(){var e=new Be;return e.source=this,e},et.create=function(e,t){return new qe(e,t)},et),qe=(ce(Qe,We=Ye),Qe.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)},Qe.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)},Qe.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)},Qe.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:ve},Qe),Ze={now:function(){return(Ze.delegate||Date).now()},delegate:void 0},Ke=(ce(Je,ze=Ye),Je.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),ze.prototype.next.call(this,e)},Je.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},Je.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 i=t.now(),a=0,s=1;s<r.length&&r[s]<=i;s+=2)a=s;a&&r.splice(0,a+1)}},Je);function Je(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Ze);var n=ze.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 Qe(e,t){var r=We.call(this)||this;return r.destination=e,r.source=t,r}function et(){var e=Ve.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let tt=[],rt={};const nt=[];function ot(n,o=U){let i;const a=[];function s(e){if(r(n,e)&&(n=e,i)){const e=!nt.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),nt.push(t,n)}if(e){for(let e=0;e<nt.length;e+=2)nt[e][0](nt[e+1]);nt.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=U){const r=[e,t];return a.push(r),1===a.length&&(i=o(s)||U),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(i(),i=null)}}}}function it(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:ot(t,t=>{let r=!1;const n=[];let o=0,i=U;const a=()=>{var e;o||(i(),e=s(l?n[0]:n,t),u?t(e):i=p(e)?e:U)},e=c.map((e,t)=>m(e,e=>{n[t]=e,o&=~(1<<t),r&&a()},()=>{o|=1<<t}));return r=!0,a(),function(){D(e),i()}}).subscribe}}var at=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===st));var t},st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function lt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?pt(Array.isArray(e)?[]:{},e,t):e}function ct(e,t,r){return e.concat(t).map(function(e){return lt(e,r)})}function ut(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function dt(e,t){try{return t in e}catch(e){return!1}}function ht(n,o,i){var a={};return i.isMergeableObject(n)&&ut(n).forEach(function(e){a[e]=lt(n[e],i)}),ut(o).forEach(function(t){var e,r;(!dt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(dt(n,t)&&i.isMergeableObject(o[t])?a[t]=function(){if(!i.customMerge)return pt;var e=i.customMerge(t);return"function"==typeof e?e:pt}()(n[t],o[t],i):a[t]=lt(o[t],i))}),a}function pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||ct,r.isMergeableObject=r.isMergeableObject||at,r.cloneUnlessOtherwiseSpecified=lt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):ht(e,t,r):lt(t,r)}pt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return pt(e,t,r)},{})};var mt=pt,gt=function(e,t){return(gt=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 ft(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}gt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var yt,vt,bt,wt=function(){return(wt=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 St(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Ct(e){return e.type===vt.literal}function Et(e){return e.type===vt.number}function xt(e){return e.type===vt.date}function Tt(e){return e.type===vt.time}function _t(e){return e.type===vt.select}function Ft(e){return e.type===vt.plural}function At(e){return e.type===vt.tag}function Pt(e){return e&&"object"==typeof e&&e.type===bt.number}function Mt(e){return e&&"object"==typeof e&&e.type===bt.dateTime}(Xt=yt=yt||{})[Xt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Xt[Xt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Xt[Xt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Xt[Xt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Xt[Xt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Xt[Xt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Xt[Xt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Xt[Xt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Xt[Xt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Xt[Xt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Xt[Xt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Xt[Xt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Xt[Xt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Xt[Xt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Xt[Xt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Xt[Xt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Xt[Xt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Xt[Xt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Xt[Xt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Xt[Xt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Xt[Xt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Xt[Xt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Xt[Xt.INVALID_TAG=23]="INVALID_TAG",Xt[Xt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Xt[Xt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Xt[Xt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Yt=vt=vt||{})[Yt.literal=0]="literal",Yt[Yt.argument=1]="argument",Yt[Yt.number=2]="number",Yt[Yt.date=3]="date",Yt[Yt.time=4]="time",Yt[Yt.select=5]="select",Yt[Yt.plural=6]="plural",Yt[Yt.pound=7]="pound",Yt[Yt.tag=8]="tag",(qt=bt=bt||{})[qt.number=0]="number",qt[qt.dateTime=1]="dateTime";var It=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kt=/(?:[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 Lt,$t=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Nt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ot=/^(@+)?(\+|#+)?$/g,Rt=/(\*)(0+)|(#+)(0+)|(0+)/g,Gt=/^(0+)$/;function Ut(e){var n={};return e.replace(Ot,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 Dt(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 Bt(e){return Dt(e)||{}}function jt(e){for(var a={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=o.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=wt(wt(wt({},a),{notation:"scientific"}),o.options.reduce(function(e,t){return wt(wt({},e),Bt(t))},{}));continue;case"engineering":a=wt(wt(wt({},a),{notation:"engineering"}),o.options.reduce(function(e,t){return wt(wt({},e),Bt(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Rt,function(e,t,r,n,o,i){if(t)a.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Gt.test(o.stem))a.minimumIntegerDigits=o.stem.length;else if(Nt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Nt,function(e,t,r,n,o,i){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:o&&i?(a.minimumFractionDigits=o.length,a.maximumFractionDigits=o.length+i.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),o.options.length&&(a=wt(wt({},a),Ut(o.options[0])))}else Ot.test(o.stem)?a=wt(wt({},a),Ut(o.stem)):((n=Dt(o.stem))&&(a=wt(wt({},a),n)),(n=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)),!Gt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(a=wt(wt({},a),n)))}return a}var Ht=new RegExp("^"+It.source+"*"),zt=new RegExp(It.source+"*$");function Wt(e,t){return{start:e,end:t}}var Vt=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Ye=!!Object.fromEntries,Xt=!!String.prototype.codePointAt,Yt=!!String.prototype.trimStart,qt=!!String.prototype.trimEnd,Zt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},It=!0;try{It="a"===(null===(Lt=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Lt?void 0:Lt[0])}catch(U){It=!1}var Kt,Jt,Qt=Vt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},er=Ue?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))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},tr=Ye?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},rr=Xt?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}},nr=Yt?function(e){return e.trimStart()}:function(e){return e.replace(Ht,"")},or=qt?function(e){return e.trimEnd()}:function(e){return e.replace(zt,"")};function ir(e,t){return new RegExp(e,t)}Jt=It?(Kt=ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Kt.lastIndex=t,null!==(e=Kt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=rr(e,t);if(void 0===o||cr(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 er.apply(void 0,n)};var ar=(sr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},sr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(yt.UNMATCHED_CLOSING_TAG,Wt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&lr(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{i=this.clonePosition();this.bump(),n.push({type:vt.pound,location:Wt(i,this.clonePosition())})}}}return{val:n,err:null}},sr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:vt.literal,value:"<"+n+"/>",location:Wt(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()||!lr(this.char()))return this.error(yt.INVALID_TAG,Wt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(yt.UNMATCHED_CLOSING_TAG,Wt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:vt.tag,value:n,children:e,location:Wt(r,this.clonePosition())},err:null}:this.error(yt.INVALID_TAG,Wt(t,this.clonePosition())))}return this.error(yt.UNCLOSED_TAG,Wt(r,this.clonePosition()))}return this.error(yt.INVALID_TAG,Wt(r,this.clonePosition()))},sr.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())},sr.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=Wt(r,this.clonePosition());return{val:{type:vt.literal,value:n,location:r},err:null}},sr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(lr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},sr.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 er.apply(void 0,t)},sr.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(),er(r))},sr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(yt.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(yt.EMPTY_ARGUMENT,Wt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(yt.MALFORMED_ARGUMENT,Wt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(yt.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:vt.argument,value:n,location:Wt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(yt.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(yt.MALFORMED_ARGUMENT,Wt(r,this.clonePosition()))}},sr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Jt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Wt(e,this.clonePosition())}},sr.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(yt.EXPECT_ARGUMENT_TYPE,Wt(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=or(h.val)).length)return this.error(yt.EXPECT_ARGUMENT_STYLE,Wt(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Wt(c,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var u=Wt(n,this.clonePosition());if(l&&Qt(null==l?void 0:l.style,"::",0)){c=nr(l.style.slice(2));if("number"===a)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:vt.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(yt.EXPECT_DATE_TIME_SKELETON,u);var d={type:bt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(kt,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"===a?vt.date:vt.time,value:r,location:u,style:d},err:null}}return{val:{type:"number"===a?vt.number:"date"===a?vt.date:vt.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(yt.EXPECT_SELECT_ARGUMENT_OPTIONS,Wt(l,wt({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(yt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Wt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(yt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,yt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(e,a,t,u);if(u.err)return u;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Wt(n,this.clonePosition());return"select"===a?{val:{type:vt.select,value:r,options:tr(u.val),location:p},err:null}:{val:{type:vt.plural,value:r,options:tr(u.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:p},err:null};default:return this.error(yt.INVALID_ARGUMENT_TYPE,Wt(i,s))}},sr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(yt.EXPECT_ARGUMENT_CLOSING_BRACE,Wt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},sr.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(yt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Wt(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}},sr.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($t).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 i=o[0],o=o.slice(1),a=0,s=o;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(yt.INVALID_NUMBER_SKELETON,t)}return{val:{type:bt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?jt(r):{}},err:null}},sr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],a=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(yt.EXPECT_PLURAL_ARGUMENT_SELECTOR,yt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Wt(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?yt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:yt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?yt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:yt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Wt(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(d);if(c.err)return c;i.push([s,{value:u.val,location:Wt(d,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===i.length?this.error("select"===t?yt.EXPECT_SELECT_ARGUMENT_SELECTOR:yt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Wt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(yt.MISSING_OTHER_CLAUSE,Wt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},sr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}n=Wt(n,this.clonePosition());return o?Zt(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},sr.prototype.offset=function(){return this.position.offset},sr.prototype.isEOF=function(){return this.offset()===this.message.length},sr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},sr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=rr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},sr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},sr.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))},sr.prototype.bumpIf=function(e){if(Qt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},sr.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)},sr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},sr.prototype.bumpSpace=function(){for(;!this.isEOF()&&cr(this.char());)this.bump()},sr.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},sr);function sr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function lr(e){return 97<=e&&e<=122||65<=e&&e<=90}function cr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function ur(e,t){t=wt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new ar(e,t).parse();if(r.err){e=SyntaxError(yt[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,_t(e)||Ft(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Et(e)&&Pt(e.style)||(xt(e)||Tt(e))&&Mt(e.style)?delete e.style.location:At(e)&&r(e.children)})}(r.val),r.val}function dr(e,t){var r=t&&t.cache?t.cache:vr,n=t&&t.serializer?t.serializer:gr;return(t&&t.strategy?t.strategy:function(e,t){return mr(e,this,1===e.length?hr:pr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function hr(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 pr(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 mr(e,t,r,n,o){return r.bind(t,e,n,o)}var gr=function(){return JSON.stringify(arguments)};function fr(){this.cache=Object.create(null)}fr.prototype.has=function(e){return e in this.cache},fr.prototype.get=function(e){return this.cache[e]},fr.prototype.set=function(e,t){this.cache[e]=t};var yr,vr={create:function(){return new fr}},br={variadic:function(e,t){return mr(e,this,pr,t.cache.create(),t.serializer)},monadic:function(e,t){return mr(e,this,hr,t.cache.create(),t.serializer)}};(It=yr=yr||{}).MISSING_VALUE="MISSING_VALUE",It.INVALID_VALUE="INVALID_VALUE",It.MISSING_INTL_API="MISSING_INTL_API";var wr,Sr,Cr,Er,xr,Tr=(ft(kr,xr=Error),kr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},kr),_r=(ft(Ir,Er=Tr),Ir),Fr=(ft(Mr,Cr=Tr),Mr),Ar=(ft(Pr,Sr=Tr),Pr);function Pr(e,t){return Sr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',yr.MISSING_VALUE,t)||this}function Mr(e,t,r){return Cr.call(this,'Value for "'+e+'" must be of type '+t,yr.INVALID_VALUE,r)||this}function Ir(e,t,r,n){return Er.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',yr.INVALID_VALUE,n)||this}function kr(e,t,r){e=xr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Lr(e,t,r,n,o,i,a){if(1===e.length&&Ct(e[0]))return[{type:wr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Ct(u))s.push({type:wr.literal,value:u.value});else if(u.type===vt.pound)"number"==typeof i&&s.push({type:wr.literal,value:r.getNumberFormat(t).format(i)});else{var d=u.value;if(!(o&&d in o))throw new Ar(d,a);var h=o[d];if(u.type===vt.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?wr.literal:wr.object,value:h});else if(xt(u)){var p="string"==typeof u.style?n.date[u.style]:Mt(u.style)?u.style.parsedOptions:void 0;s.push({type:wr.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Tt(u))p="string"==typeof u.style?n.time[u.style]:Mt(u.style)?u.style.parsedOptions:void 0,s.push({type:wr.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(Et(u))(p="string"==typeof u.style?n.number[u.style]:Pt(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:wr.literal,value:r.getNumberFormat(t,p).format(h)});else{if(At(u)){var m=u.children,g=u.value,d=o[g];if("function"!=typeof d)throw new Fr(g,"function",a);m=d(Lr(m,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(e){return{type:"string"==typeof e?wr.literal:wr.object,value:e}}))}if(_t(u)){if(!(f=u.options[h]||u.options.other))throw new _r(u.value,h,Object.keys(u.options),a);s.push.apply(s,Lr(f.value,t,r,n,o))}else if(Ft(u)){if(!(f=u.options["="+h])){if(!Intl.PluralRules)throw new Tr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',yr.MISSING_INTL_API,a);var m=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),f=u.options[m]||u.options.other}if(!f)throw new _r(u.value,h,Object.keys(u.options),a);s.push.apply(s,Lr(f.value,t,r,n,o,h-(u.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===wr.literal&&t.type===wr.literal?r.value+=t.value:e.push(t),e},[])}function $r(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(It=wr=wr||{})[It.literal=0]="literal",It[It.object=1]="object";var Nr=(Object.defineProperty(Or,"defaultLocale",{get:function(){return Or.memoizedDefaultLocale||(Or.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Or.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Or.memoizedDefaultLocale=null,Or.__parse=ur,Or.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"}}},Or);function Or(e,t,r,n){var o,i,a=this;if(void 0===t&&(t=Or.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===wr.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 Lr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!Or.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Or.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Or.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?wt(wt(wt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=wt(wt({},r[t]),n[t]||{}),e},{})):r),e},wt({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:dr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,St([void 0],t)))},{cache:$r((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:br.variadic}),getDateTimeFormat:dr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,St([void 0],t)))},{cache:$r(n.dateTime),strategy:br.variadic}),getPluralRules:dr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,St([void 0],t)))},{cache:$r(n.pluralRules),strategy:br.variadic})}}const Rr={},Gr=(t,r)=>{if(null!=r){if(r in Rr&&t in Rr[r])return Rr[r][t];var n,o,i=en(r);for(let e=0;e<i.length;e++){var a=(n=i[e],o=t,Br(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Ur[e]||null}(n),o):null);if(a)return n=t,o=r,(a=a)&&(o in Rr||(Rr[o]={}),n in Rr[o]||(Rr[o][n]=a),a)}}};let Ur;const Dr=ot({});function Br(e){return e in Ur}function jr(t,...r){delete Rr[t],Dr.update(e=>(e[t]=mt.all([e[t]||{},...r]),e))}it([Dr],([e])=>Object.keys(e)),Dr.subscribe(e=>Ur=e);const Hr={};function zr(e){return Hr[e]}function Wr(e){return en(e).some(e=>{return null===(e=zr(e))||void 0===e?void 0:e.size})}const Vr={};function Xr(e){if(!Wr(e))return e in Vr?Vr[e]:void 0;const t=en(e).map(e=>{var t=zr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Vr[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Hr[e].delete(t),0===Hr[e].size&&delete Hr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>jr(t,...e))}(e))).then(()=>Wr(e)?Xr(e):void delete Vr[e]),Vr[e]}function Yr(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 qr={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Zr=ot(!1);let Kr;const Jr=ot(null);function Qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function en(e,t=qr.fallbackLocale){e=Qr(e);return t?[...new Set([...e,...Qr(t)])]:e}Jr.subscribe(e=>{Kr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const tn=Jr.set;Jr.set=t=>{if(function(e){if(null!=e){var t=en(e);for(let e=0;e<t.length;e++){var r=t[e];if(Br(r))return r}}}(t)&&Wr(t)){var{loadingDelay:r}=qr;let e;return"undefined"!=typeof window&&null!=Kr&&r?e=window.setTimeout(()=>Zr.set(!0),r):Zr.set(!0),Xr(t).then(()=>{tn(t)}).finally(()=>{clearTimeout(e),Zr.set(!1)})}return tn(t)},Jr.update=e=>tn(e(Kr));const rn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},nn=(e,t)=>{var{formats:r}=qr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},on=rn(e=>{var{locale:t,format:r}=e,e=Yr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=nn("number",r)),new Intl.NumberFormat(t,e)}),an=rn(e=>{var{locale:t,format:r}=e,e=Yr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=nn("date",r):0===Object.keys(e).length&&(e=nn("date","short")),new Intl.DateTimeFormat(t,e)}),sn=rn(e=>{var{locale:t,format:r}=e,e=Yr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=nn("time",r):0===Object.keys(e).length&&(e=nn("time","short")),new Intl.DateTimeFormat(t,e)}),ln=rn((e,t=Kr)=>new Nr(e,t,qr.formats,{ignoreTag:qr.ignoreTag})),cn=it([Jr,Dr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Kr,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Gr(e,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else qr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${en(n).join('", "')}".${Wr(Kr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||e;if(!r)return i;let a=i;try{a=ln(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});it([Jr],()=>(e,t)=>((e={})=>{var{locale:t=Kr}=e,e=Yr(e,["locale"]);return sn(Object.assign({locale:t},e))})(t).format(e)),it([Jr],()=>(e,t)=>((e={})=>{var{locale:t=Kr}=e,e=Yr(e,["locale"]);return an(Object.assign({locale:t},e))})(t).format(e)),it([Jr],()=>(e,t)=>((e={})=>{var{locale:t=Kr}=e,e=Yr(e,["locale"]);return on(Object.assign({locale:t},e))})(t).format(e)),it([Jr,Dr],()=>(e,t=Kr)=>Gr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==tt.indexOf(e)&&(t=new Ke(t),rt[e]=t,tt.push(e)),rt[e]}};const un=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",hn={en:{casinoPage:{search:"Search",loading:"Loading",searchMobile:"Search",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},de:{casinoPage:{search:"Suche",loading:"Loading",searchMobile:"Suche",break:"Mach mal einen Tag Pause!",breakButton:"24 Stunden Auszeit"}},it:{casinoPage:{search:"Cerca",loading:"Loading",searchMobile:"Cerca",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},fr:{casinoPage:{search:"Rechercher des jeux ...",loading:"Chargement ...",searchMobile:"Rechercher",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},es:{casinoPage:{search:"Buscar juegos ...",loading:"Cargando ...",searchMobile:"Buscar",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},tr:{casinoPage:{search:"Oyun ara ...",loading:"Yükleniyor ...",searchMobile:"Arama",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},ru:{casinoPage:{search:"Искать игры ...",loading:"Загрузка ...",searchMobile:"Поиск",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},ro:{casinoPage:{search:"Cautare jocuri...",loading:"Se incarca ...",searchMobile:"Cauta",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},hr:{casinoPage:{search:"Pretraži",loading:"Učitavanje",searchMobile:"Pretraži",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},hu:{casinoPage:{search:"Keresés",loading:"betöltés",searchMobile:"Keresés",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},pl:{casinoPage:{search:"Szukaj",loading:"Ładowanie",searchMobile:"Szukaj",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},pt:{casinoPage:{search:"Procurar",loading:"A carregar",searchMobile:"Procurar",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},sl:{casinoPage:{search:"Iskanje",loading:"Loading",searchMobile:"Iskanje",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}},sr:{casinoPage:{search:"Pretraži",loading:"Loading",searchMobile:"Pretraži",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off"}}},pn={en:{gamesCategorySection:{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again."}},de:{gamesCategorySection:{showMore:"Mehr",viewAll:"Alle anzeigen",searchedItems:"Suchergebnis",recentSearchedItems:"Zuletzt gesucht",noRecentSearch:"Noch keine Suche gestartet. Einfach nach einem Spiel suchen.",noResults:"Sorry, kein Treffer. Bitte erneut versuchen."}},it:{gamesCategorySection:{showMore:"Altro",viewAll:"Mostra tutto",searchedItems:"risultato",recentSearchedItems:"Ricerche recenti",noRecentSearch:"Non sono ancora state avviate ricerche. Esegui semplicemente la ricerca per un gioco.",noResults:"Spiacenti, nessun risultato. Si prega di riprovare."}},fr:{gamesCategorySection:{showMore:"Montre plus",viewAll:"Voir tout",searchedItems:"Articles recherchés",recentSearchedItems:"Articles recherchés récemment",noRecentSearch:"Aucune recherche n'a encore commencé. Recherchez simplement un jeu.",noResults:"Désolé, aucun résultat trouvé. Veuillez réessayer"}},es:{gamesCategorySection:{showMore:"Mostrar más",viewAll:"Ver todo",searchedItems:"Artículos buscados",recentSearchedItems:"Elementos buscados recientemente",noRecentSearch:"Aún no se inició ninguna búsqueda. Simplemente busque un juego.",noResults:"Lo sentimos, no se encontraron resultados. Inténtalo de nuevo"}},tr:{gamesCategorySection:{showMore:"Daha fazla göster",viewAll:"Hepsini gör",searchedItems:"Aranan öğeler",recentSearchedItems:"Son Aranan Öğeler",noRecentSearch:"Henüz arama başlamadı. Sadece bir oyun arayın.",noResults:"Üzgünüz, sonuç bulunamadı. Lütfen tekrar deneyin"}},ru:{gamesCategorySection:{showMore:"Показать больше",viewAll:"Посмотреть все",searchedItems:"Искомые товары",recentSearchedItems:"Недавние поисковые запросы",noRecentSearch:"Поиск еще не начался. Просто найдите игру.",noResults:"Извините, результатов не найдено. Пожалуйста, попробуйте еще раз"}},ro:{gamesCategorySection:{showMore:"Arata mai mult",viewAll:"Vezi toate",searchedItems:"Rezultatele cautarii",recentSearchedItems:"Cautari recente",noRecentSearch:"Nici o căutare nu a început încă. Pur și simplu căutați un joc.",noResults:"Ne pare rau, nu s-au gasit rezultate. Va rugam sa incercati din nou"}},hr:{gamesCategorySection:{showMore:"Više",viewAll:"Pokaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnje pretrage",noRecentSearch:"Pretraživanje nije pokrenuto. Jednostavno potražite željenu igru.",noResults:"Žao nam je, nema rezultata. Molimo pokušajte ponovno."}},hu:{gamesCategorySection:{showMore:"Több",viewAll:"Az összes megjelenítése",searchedItems:"Keresés eredménye",recentSearchedItems:"Legutóbb keresett",noRecentSearch:"A keresés még nem kezdődött el. Egyszerűen keressen egy játékot.",noResults:"Sajnos nincs találat. Kérjük próbálja újra."}},pl:{gamesCategorySection:{showMore:"Więcej",viewAll:"Pokaż wszystkie",searchedItems:"Wynik wyszukiwania",recentSearchedItems:"Ostatnio wyszukiwane",noRecentSearch:"Nie rozpoczęto wyszukiwania. W prosty sposób wyszukaj grę.",noResults:"Przepraszamy, brak wyników. Prosimy spróbować ponownie."}},pt:{gamesCategorySection:{showMore:"Mais",viewAll:"Mostrar tudo",searchedItems:"Procurar resultado",recentSearchedItems:"Pesquisado recentemente",noRecentSearch:"Nenhuma pesquisa iniciada. Pesquisar simplesmente um jogo.",noResults:"Desculpe, sem qualquer correspondência. Por favor, tente novamente."}},sl:{gamesCategorySection:{showMore:"Več",viewAll:"Prikaži vse",searchedItems:"Rezultati iskanja",recentSearchedItems:"Nedavno iskanje",noRecentSearch:"Niste še začeli z iskanjem. Enostavno poiščite želeno igro.",noResults:"Oprostite, ni rezultata. Prosimo poizkusite ponovno."}},sr:{gamesCategorySection:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnja pretraga",noRecentSearch:"Još nije pokrenuta pretraga. Jednostavno pretraži igre.",noResults:"Žao nam je, nema pogodaka. Pokušaj ponovo."}}},mn={en:{gameThumbnail:{playNow:"Start now!",new:"NEW",hot:"Hot"}},de:{gameThumbnail:{playNow:"Jetzt starten!",new:"NEU",hot:"Hot"}},it:{gameThumbnail:{playNow:"Inizia ora!",new:"NOVITÀ",hot:"HOT"}},fr:{gameThumbnail:{playNow:"Joue Maintenant",new:"NOUVEAU",hot:"CHAUD"}},es:{gameThumbnail:{playNow:"Juega ahora",new:"NUEVO",hot:"CALIENTE"}},tr:{gameThumbnail:{playNow:"Şimdi oyna",new:"YENİ",hot:"SICAK"}},ru:{gameThumbnail:{playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ"}},ro:{gameThumbnail:{playNow:"Joaca acum",new:"NOU",hot:"POPULAR"}},hr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće"}},hu:{gameThumbnail:{playNow:"Játsszon most!",new:"ÚJ",hot:"Hot"}},pl:{gameThumbnail:{playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot"}},pt:{gameThumbnail:{playNow:"Comece agora!",new:"NOVO",hot:"Hot"}},sl:{gameThumbnail:{playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče"}},sr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće"}}};function gn(e){let r,n=!un(e[15])&&!e[0]&&e[9],o=n&&fn(e);return{c(){o&&o.c(),r=u()},m(e,t){o&&o.m(e,t),j(e,r,t)},p(e,t){513&t[0]&&(n=!un(e[15])&&!e[0]&&e[9]),n?o?o.p(e,t):(o=fn(e),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(e){o&&o.d(e),e&&H(r)}}}function fn(r){let n,o,i;return{c(){n=z("div"),n.innerHTML='<svg version="1.1" class="UnfavoredIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="20px" y="20px" viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><path style="fill: white" d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"></path></svg>',X(n,"class","FavIconContainer")},m(e,t){j(e,n,t),o||(i=V(n,"click",r[32]),o=!0)},p:U,d(e){e&&H(n),o=!1,i()}}}function yn(e){let r;return{c(){r=z("div"),r.innerHTML='<svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',X(r,"class","FavIconContainer")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function vn(r){let n,o,i;return{c(){n=z("div"),n.innerHTML='<svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',X(n,"class","FavIconContainer")},m(e,t){j(e,n,t),o||(i=V(n,"click",r[34]),o=!0)},p:U,d(e){e&&H(n),o=!1,i()}}}function bn(e){let r,n,o=e[14]("gameThumbnail.new")+"";return{c(){r=z("span"),n=t(o),X(r,"class","GameExtraInfoLabel NewGameTag")},m(e,t){j(e,r,t),B(r,n)},p(e,t){16384&t[0]&&o!==(o=e[14]("gameThumbnail.new")+"")&&Y(n,o)},d(e){e&&H(r)}}}function wn(e){let r,n,o=e[14]("gameThumbnail.hot")+"";return{c(){r=z("span"),n=t(o),X(r,"class","GameExtraInfoLabel PopularGameTag")},m(e,t){j(e,r,t),B(r,n)},p(e,t){16384&t[0]&&o!==(o=e[14]("gameThumbnail.hot")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Sn(e){let r,n;return{c(){r=z("p"),n=t(e[3]),X(r,"class","GameNameBelow"),X(r,"title",e[3])},m(e,t){j(e,r,t),B(r,n)},p(e,t){8&t[0]&&Y(n,e[3]),8&t[0]&&X(r,"title",e[3])},d(e){e&&H(r)}}}function Cn(r){let n,o,i,a,s,l,c,u,d,h,p,m,g,f,y,v,b,w,S,C,E,x,T,_,F,A,P=r[14]("gameThumbnail.playNow")+"",M=(r[4]||"-")+"",I=0<parseInt(r[7]),k=r[10]&&gn(r);function L(e,t){return(null==S||515&t[0])&&(S=!(un(e[15])||!e[0]||!e[9]||!e[1])),S?vn:((null==C||515&t[0])&&(C=!!(un(e[15])&&e[0]&&e[9]&&e[1])),C?yn:void 0)}let $=L(r,[-1]),N=$&&$(r),O=r[6]&&bn(r),R=I&&wn(r),G=r[8]&&Sn(r);return{c(){n=z("div"),o=z("div"),i=z("img"),l=W(),c=z("div"),u=z("div"),k&&k.c(),d=W(),h=z("p"),p=t(r[3]),m=W(),g=z("button"),f=t(P),y=W(),v=z("span"),b=t(M),w=W(),N&&N.c(),E=W(),x=z("div"),O&&O.c(),T=W(),R&&R.c(),_=W(),G&&G.c(),this.c=U,i.src!==(a=r[2])&&X(i,"src",a),X(i,"class",s="GameBg "+(r[11]?"Loaded":"")),X(i,"alt",""),X(i,"loading","lazy"),X(h,"class","GameInfoName"),X(h,"title",r[3]),X(g,"class","GameInfoBtn"),X(u,"class","GameInfo"),X(v,"class","GameInfoVendor"),X(c,"class","GameInfoWrapper"),X(x,"class","GameExtraInfo"),X(o,"class","GameInnerContainer"),X(n,"class","GameContainer")},m(e,t){j(e,n,t),B(n,o),B(o,i),r[31](i),B(o,l),B(o,c),B(c,u),k&&k.m(u,null),B(u,d),B(u,h),B(h,p),B(u,m),B(u,g),B(g,f),B(c,y),B(c,v),B(v,b),B(o,w),N&&N.m(o,null),B(o,E),B(o,x),O&&O.m(x,null),B(x,T),R&&R.m(x,null),B(n,_),G&&G.m(n,null),r[35](n),F||(A=[V(g,"click",r[33]),V(o,"mouseenter",r[20]),V(o,"mouseleave",r[21]),V(o,"touchstart",r[18],{passive:!0}),V(o,"touchleave",r[19])],F=!0)},p(e,t){4&t[0]&&i.src!==(a=e[2])&&X(i,"src",a),2048&t[0]&&s!==(s="GameBg "+(e[11]?"Loaded":""))&&X(i,"class",s),e[10]?k?k.p(e,t):(k=gn(e),k.c(),k.m(u,d)):k&&(k.d(1),k=null),8&t[0]&&Y(p,e[3]),8&t[0]&&X(h,"title",e[3]),16384&t[0]&&P!==(P=e[14]("gameThumbnail.playNow")+"")&&Y(f,P),16&t[0]&&M!==(M=(e[4]||"-")+"")&&Y(b,M),$===($=L(e,t))&&N?N.p(e,t):(N&&N.d(1),N=$&&$(e),N&&(N.c(),N.m(o,E))),e[6]?O?O.p(e,t):(O=bn(e),O.c(),O.m(x,T)):O&&(O.d(1),O=null),128&t[0]&&(I=0<parseInt(e[7])),I?R?R.p(e,t):(R=wn(e),R.c(),R.m(x,null)):R&&(R.d(1),R=null),e[8]?G?G.p(e,t):(G=Sn(e),G.c(),G.m(n,null)):G&&(G.d(1),G=null)},i:U,o:U,d(e){e&&H(n),r[31](null),k&&k.d(),N&&N.d(),O&&O.d(),R&&R.d(),G&&G.d(),r[35](null),F=!1,D(A)}}}function En(e,t,r){let n;Ae(e,cn,e=>r(14,n=e));let o,i,{session:a=""}=t,{userid:s=""}=t,{lang:l=""}=t,{clientstyling:c=""}=t,{clientstylingurl:u=""}=t,{favorites:d=""}=t,{gamethumbnail:h=""}=t,{gamename:p=""}=t,{gamevendor:m=""}=t,{gameid:g=""}=t,{gameisnew:f=""}=t,{gamepopularity:y=""}=t,{gamefunmode:v=!1}=t,{searchitem:b=!1}=t,{gamefavorite:w=!1}=t,{showfavoredcategory:S=!1}=t,{showgamename:C=!1}=t,{endpoint:E=""}=t,x=!1,T=!1,_=!1,F=window.navigator.userAgent;Object.keys(mn).forEach(e=>{jr(e,mn[e])});const A=e=>{e.data.type!==`AddFavoriteThumbnail_${g}`||S||r(0,w=!0),e.data.type!==`RemoveFavoriteThumbnail_${g}`||S||r(0,w=!1),"UserSessionID"===e.data.type&&(r(9,x=!0),e.data.session,e.data.userID)},P=e=>{un(F)?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:v},window.location.href):window.postMessage({type:"ShowGameModal",gameId:e},window.location.href),b&&window.postMessage({type:"SearchedItemClicked",gameId:e},window.location.href)},M=e=>{var t="thumbnail";w?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)};return Pe(()=>(window.addEventListener("message",A,!1),()=>{window.removeEventListener("message",A)})),e.$$set=e=>{"session"in e&&r(22,a=e.session),"userid"in e&&r(23,s=e.userid),"lang"in e&&r(24,l=e.lang),"clientstyling"in e&&r(25,c=e.clientstyling),"clientstylingurl"in e&&r(26,u=e.clientstylingurl),"favorites"in e&&r(1,d=e.favorites),"gamethumbnail"in e&&r(2,h=e.gamethumbnail),"gamename"in e&&r(3,p=e.gamename),"gamevendor"in e&&r(4,m=e.gamevendor),"gameid"in e&&r(5,g=e.gameid),"gameisnew"in e&&r(6,f=e.gameisnew),"gamepopularity"in e&&r(7,y=e.gamepopularity),"gamefunmode"in e&&r(27,v=e.gamefunmode),"searchitem"in e&&r(28,b=e.searchitem),"gamefavorite"in e&&r(0,w=e.gamefavorite),"showfavoredcategory"in e&&r(29,S=e.showfavoredcategory),"showgamename"in e&&r(8,C=e.showgamename),"endpoint"in e&&r(30,E=e.endpoint)},e.$$.update=()=>{e.$$.dirty[0],1086324736&e.$$.dirty[0]&&a&&s&&E&&r(9,x=!0),4&e.$$.dirty[0]&&h&&o&&r(12,o.onload=()=>{r(11,_=!0)},o),33554432&e.$$.dirty[0]&&c&&(()=>{let e=document.createElement("style");e.innerHTML=c,setTimeout(()=>{i.appendChild(e)})})(),2&e.$$.dirty[0]&&d&&"true"==d&&r(10,T=!0),67108864&e.$$.dirty[0]&&u&&(()=>{let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)})})})()},[w,d,h,p,m,g,f,y,C,x,T,_,o,i,n,F,P,M,()=>{window.postMessage({type:"GameHovered"},window.location.href)},()=>{window.postMessage({type:"GameBlur"},window.location.href)},()=>{window.postMessage({type:"GameHovered"},window.location.href)},()=>{window.postMessage({type:"GameBlur"},window.location.href)},a,s,l,c,u,v,b,S,E,function(e){Me[e?"unshift":"push"](()=>{o=e,r(12,o)})},()=>M(g),()=>P(g),()=>M(g),function(e){Me[e?"unshift":"push"](()=>{i=e,r(13,i)})}]}function xn(e,t,r){const n=e.slice();return n[68]=t[r],n[70]=r,n}function Tn(e,t,r){const n=e.slice();return n[68]=t[r],n[71]=t,n[70]=r,n}function _n(e,t,r){const n=e.slice();return n[68]=t[r],n[70]=r,n}function Fn(e){let r;function n(e){return e[9]?In:e[19]?Mn:void 0}let o=n(e),i=o&&o(e);return{c(){r=z("div"),i&&i.c()},m(e,t){j(e,r,t),i&&i.m(r,null)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i&&i.d(1),i=o&&o(e),i&&(i.c(),i.m(r,null)))},d(e){e&&H(r),i&&i.d()}}}function An(e){let r,n,o;function i(e){return e[13]?qn:e[10].length?Xn:Yn}let a=i(e),s=a(e);function l(e){return e[10]?Kn:Zn}let c=l(e),u=c(e);return{c(){r=z("div"),n=z("div"),s.c(),o=W(),u.c(),X(n,"class","CasinoGamesHeader Searched "+(un(e[23])?"CasinoGamesHeaderMobile":"")),X(r,"class","CasinoGamesContainer")},m(e,t){j(e,r,t),B(r,n),s.m(n,null),B(r,o),u.m(r,null)},p(e,t){a===(a=i(e))&&s?s.p(e,t):(s.d(1),s=a(e),s&&(s.c(),s.m(n,null))),c===(c=l(e))&&u?u.p(e,t):(u.d(1),u=c(e),u&&(u.c(),u.m(r,null)))},d(e){e&&H(r),s.d(),u.d()}}}function Pn(e){let r;function n(e){return e[15]?to:eo}let o=n(e),i=o(e);return{c(){i.c(),r=u()},m(e,t){i.m(e,t),j(e,r,t)},p(e,t){o!==(o=n(e))&&(i.d(1),i=o(e),i&&(i.c(),i.m(r.parentNode,r)))},d(e){i.d(e),e&&H(r)}}}function Mn(r){let n,o,i,a,s,l,c,u=r[21].name+"";function d(e){return e[21]?Ln:kn}let h=d(r),p=h(r);return{c(){n=z("div"),o=z("div"),i=z("h3"),a=t(u),s=W(),l=z("ul"),p.c(),X(i,"class","CategoryName"),X(o,"class","CasinoGamesHeader"),X(l,"class",c=(0!=r[21].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),X(n,"class","CasinoGamesContainer")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(i,a),r[38](i),B(n,s),B(n,l),p.m(l,null),r[39](l)},p(e,t){2097152&t[0]&&u!==(u=e[21].name+"")&&Y(a,u),h===(h=d(e))&&p?p.p(e,t):(p.d(1),p=h(e),p&&(p.c(),p.m(l,null))),2097152&t[0]&&c!==(c=(0!=e[21].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&X(l,"class",c)},d(e){e&&H(n),r[38](null),p.d(),r[39](null)}}}function In(r){let n,o,i,a,s,l,c=r[9].name+"",u=r[11]&&Hn(r);function d(e){return 0!==e[10].length?Wn:zn}let h=d(r),p=h(r);return{c(){n=z("div"),o=z("div"),i=z("h3"),a=t(c),s=W(),u&&u.c(),l=W(),p.c(),X(i,"class","CategoryName"),X(o,"class","CasinoGamesHeader"),X(n,"class","CasinoGamesContainer")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(i,a),r[34](i),B(o,s),u&&u.m(o,null),B(n,l),p.m(n,null)},p(e,t){512&t[0]&&c!==(c=e[9].name+"")&&Y(a,c),e[11]?u?u.p(e,t):(u=Hn(e),u.c(),u.m(o,null)):u&&(u.d(1),u=null),h===(h=d(e))&&p?p.p(e,t):(p.d(1),p=h(e),p&&(p.c(),p.m(n,null)))},d(e){e&&H(n),r[34](null),u&&u.d(),p.d()}}}function kn(e){let r;return{c(){r=z("p"),r.textContent="Waiting"},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function Ln(t){let n,o=t[21].items,i=[];for(let e=0;e<o.length;e+=1)i[e]=jn(xn(t,o,e));let a=null;return o.length||(a=$n(t)),{c(){for(let e=0;e<i.length;e+=1)i[e].c();n=u(),a&&a.c()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);j(t,n,r),a&&a.m(t,r)},p(t,r){if(11010175&r[0]){let e;for(o=t[21].items,e=0;e<o.length;e+=1){const a=xn(t,o,e);i[e]?i[e].p(a,r):(i[e]=jn(a),i[e].c(),i[e].m(n.parentNode,n))}for(;e<i.length;e+=1)i[e].d(1);i.length=o.length,!o.length&&a?a.p(t,r):o.length?a&&(a.d(1),a=null):(a=$n(t),a.c(),a.m(n.parentNode,n))}},d(e){c(i,e),e&&H(n),a&&a.d(e)}}}function $n(e){let r,n,o,i,a,s,l,c=(t=e,(un(t[23])?On:Nn)(e));var t;return{c(){r=z("p"),n=v("svg"),o=v("path"),i=W(),a=z("span"),a.textContent="You do not have any favored games yet.",s=W(),c.c(),l=W(),C(o,"fill","white"),X(o,"d","M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"),X(n,"version","1.1"),X(n,"class","UnfavoredIcon"),X(n,"xmlns","http://www.w3.org/2000/svg"),X(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),X(n,"x","50px"),X(n,"y","50px"),X(n,"viewBox","0 0 512.001 512.001"),C(n,"enable-background","new 0 0 512.001 512.001"),X(n,"xml:space","preserve"),X(a,"class","NoFavoriteText NoFavoriteTextHighlight"),X(r,"class","NoFavoriteGames "+(un(e[23])?"NoFavoriteGamesMobile":""))},m(e,t){j(e,r,t),B(r,n),B(n,o),B(r,i),B(r,a),B(r,s),c.m(r,null),B(r,l)},p:U,d(e){e&&H(r),c.d()}}}function Nn(e){let r;return{c(){r=z("span"),r.textContent="You can now add games to favorites by clicking on the star icon located on the game thumbnail.",X(r,"class","NoFavoriteText")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function On(e){let r;return{c(){r=z("span"),r.textContent="You can now add games to favorites by tapping on the star icon located on the game page.",X(r,"class","NoFavoriteText")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function Rn(e){let r,n=e[68].gameModel.isFavorite&&Gn(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){e[68].gameModel.isFavorite?n?n.p(e,t):(n=Gn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&H(r)}}}function Gn(e){let r,n=function(e){let r,n,o;function i(e,t){return null==r&&(r=!!un(e[23])),r?Dn:((null==n||2097152&t[0])&&(n=!!e[68].gameModel.platform.includes("PC")),n?Un:void 0)}let a=i(e,[-1]),s=a&&a(e);return{c(){s&&s.c(),o=u()},m(e,t){s&&s.m(e,t),j(e,o,t)},p(e,t){a===(a=i(e,t))&&s?s.p(e,t):(s&&s.d(1),s=a&&a(e),s&&(s.c(),s.m(o.parentNode,o)))},d(e){s&&s.d(e),e&&H(o)}}}(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&H(r)}}}function Un(e){let r,n,o,i,a,s,l,c,u,d,h;return{c(){r=z("casino-game-thumbnail"),y(r,"class",n=""+(no+(e[68].cellSize||"1x1"))),y(r,"session",e[2]),y(r,"userid",e[3]),y(r,"lang",e[1]),y(r,"favorites",e[4]),y(r,"gamethumbnail",o=e[68].gameModel.thumbnail),y(r,"gamename",i=e[68].gameModel.name),y(r,"gamevendor",a=e[68].gameModel.vendor.name),y(r,"gameisnew",s=e[68].gameModel.isNew),y(r,"gamepopularity",l=e[68].gameModel.popularity),y(r,"gamecellsize",c=e[68].gameModel.cellSize),y(r,"gameid",u=e[68].gameModel.id),y(r,"gamefunmode",d=e[68].gameModel.hasFunMode),y(r,"gamefavorite",h=e[68].gameModel.isFavorite),y(r,"showfavoredcategory",e[19]),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6]),y(r,"endpoint",e[0])},m(e,t){j(e,r,t)},p(e,t){2097152&t[0]&&n!==(n=""+(no+(e[68].cellSize||"1x1")))&&y(r,"class",n),4&t[0]&&y(r,"session",e[2]),8&t[0]&&y(r,"userid",e[3]),2&t[0]&&y(r,"lang",e[1]),16&t[0]&&y(r,"favorites",e[4]),2097152&t[0]&&o!==(o=e[68].gameModel.thumbnail)&&y(r,"gamethumbnail",o),2097152&t[0]&&i!==(i=e[68].gameModel.name)&&y(r,"gamename",i),2097152&t[0]&&a!==(a=e[68].gameModel.vendor.name)&&y(r,"gamevendor",a),2097152&t[0]&&s!==(s=e[68].gameModel.isNew)&&y(r,"gameisnew",s),2097152&t[0]&&l!==(l=e[68].gameModel.popularity)&&y(r,"gamepopularity",l),2097152&t[0]&&c!==(c=e[68].gameModel.cellSize)&&y(r,"gamecellsize",c),2097152&t[0]&&u!==(u=e[68].gameModel.id)&&y(r,"gameid",u),2097152&t[0]&&d!==(d=e[68].gameModel.hasFunMode)&&y(r,"gamefunmode",d),2097152&t[0]&&h!==(h=e[68].gameModel.isFavorite)&&y(r,"gamefavorite",h),524288&t[0]&&y(r,"showfavoredcategory",e[19]),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6]),1&t[0]&&y(r,"endpoint",e[0])},d(e){e&&H(r)}}}function Dn(e){let r,n=e[68].gameModel.platform.includes("iPad")||e[68].gameModel.platform.includes("iPhone")||e[68].gameModel.platform.includes("Android"),o=n&&Bn(e);return{c(){o&&o.c(),r=u()},m(e,t){o&&o.m(e,t),j(e,r,t)},p(e,t){2097152&t[0]&&(n=e[68].gameModel.platform.includes("iPad")||e[68].gameModel.platform.includes("iPhone")||e[68].gameModel.platform.includes("Android")),n?o?o.p(e,t):(o=Bn(e),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(e){o&&o.d(e),e&&H(r)}}}function Bn(e){let r,n,o,i,a,s,l,c,u,d,h;return{c(){r=z("casino-game-thumbnail"),y(r,"class",n=""+(no+(e[68].cellSize||"1x1"))),y(r,"session",e[2]),y(r,"userid",e[3]),y(r,"lang",e[1]),y(r,"favorites",e[4]),y(r,"gamethumbnail",o=e[68].gameModel.thumbnail),y(r,"gamename",i=e[68].gameModel.name),y(r,"gamevendor",a=e[68].gameModel.vendor.name),y(r,"gameisnew",s=e[68].gameModel.isNew),y(r,"gamepopularity",l=e[68].gameModel.popularity),y(r,"gamecellsize",c=e[68].gameModel.cellSize),y(r,"gameid",u=e[68].gameModel.id),y(r,"gamefunmode",d=e[68].gameModel.hasFunMode),y(r,"gamefavorite",h=e[68].gameModel.isFavorite),y(r,"showfavoredcategory",e[19]),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6]),y(r,"endpoint",e[0])},m(e,t){j(e,r,t)},p(e,t){2097152&t[0]&&n!==(n=""+(no+(e[68].cellSize||"1x1")))&&y(r,"class",n),4&t[0]&&y(r,"session",e[2]),8&t[0]&&y(r,"userid",e[3]),2&t[0]&&y(r,"lang",e[1]),16&t[0]&&y(r,"favorites",e[4]),2097152&t[0]&&o!==(o=e[68].gameModel.thumbnail)&&y(r,"gamethumbnail",o),2097152&t[0]&&i!==(i=e[68].gameModel.name)&&y(r,"gamename",i),2097152&t[0]&&a!==(a=e[68].gameModel.vendor.name)&&y(r,"gamevendor",a),2097152&t[0]&&s!==(s=e[68].gameModel.isNew)&&y(r,"gameisnew",s),2097152&t[0]&&l!==(l=e[68].gameModel.popularity)&&y(r,"gamepopularity",l),2097152&t[0]&&c!==(c=e[68].gameModel.cellSize)&&y(r,"gamecellsize",c),2097152&t[0]&&u!==(u=e[68].gameModel.id)&&y(r,"gameid",u),2097152&t[0]&&d!==(d=e[68].gameModel.hasFunMode)&&y(r,"gamefunmode",d),2097152&t[0]&&h!==(h=e[68].gameModel.isFavorite)&&y(r,"gamefavorite",h),524288&t[0]&&y(r,"showfavoredcategory",e[19]),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6]),1&t[0]&&y(r,"endpoint",e[0])},d(e){e&&H(r)}}}function jn(e){let r,n=e[68].gameModel&&Rn(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){e[68].gameModel?n?n.p(e,t):(n=Rn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&H(r)}}}function Hn(r){let n,o,i,a,s,l,c,u,d=r[22]("gamesCategorySection.viewAll")+"",h=r[9].games.total+"";return{c(){n=z("a"),o=z("span"),i=t(d),a=t(" ("),s=t(h),l=t(")"),X(o,"class","CategoryLoadMore"),X(n,"class","CategoryNameLink")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(o,a),B(o,s),B(o,l),c||(u=V(n,"click",r[35]),c=!0)},p(e,t){4194304&t[0]&&d!==(d=e[22]("gamesCategorySection.viewAll")+"")&&Y(i,d),512&t[0]&&h!==(h=e[9].games.total+"")&&Y(s,h)},d(e){e&&H(n),c=!1,u()}}}function zn(e){let r;return{c(){r=z("p"),r.textContent="You don't have any games in this category.",X(r,"class","NoSearchResults")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function Wn(r){let o,e,i=r[10],a=[];for(let e=0;e<i.length;e+=1)a[e]=Vn(Tn(r,i,e));return{c(){o=z("ul");for(let e=0;e<a.length;e+=1)a[e].c();X(o,"class",e=(0===r[21].items.length&&r[19]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")},m(e,t){j(e,o,t);for(let e=0;e<a.length;e+=1)a[e].m(o,null);r[37](o)},p(t,r){if(1279&r[0]){let e;for(i=t[10],e=0;e<i.length;e+=1){var n=Tn(t,i,e);a[e]?a[e].p(n,r):(a[e]=Vn(n),a[e].c(),a[e].m(o,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=i.length}2621440&r[0]&&e!==(e=(0===t[21].items.length&&t[19]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&X(o,"class",e)},d(e){e&&H(o),c(a,e),r[37](null)}}}function Vn(e){let r,n=function(r){let n,o,i,a,s,l,c,u,d,h,p,m=r[70];const g=()=>r[36](n,m),f=()=>r[36](null,m);return{c(){n=z("casino-game-thumbnail"),y(n,"session",r[2]),y(n,"userid",r[3]),y(n,"lang",r[1]),y(n,"class",o=""+(no+(r[68].cellSize||"1x1"))),y(n,"favorites",r[4]),y(n,"gamethumbnail",i=r[68].thumbnail),y(n,"gamename",a=r[68].name),y(n,"gamevendor",s=r[68].vendor.name),y(n,"gameisnew",l=r[68].isNew),y(n,"gamepopularity",c=r[68].popularity),y(n,"gamecellsize",u=r[68].cellSize),y(n,"gameid",d=r[68].id),y(n,"gamefunmode",h=r[68].hasFunMode),y(n,"gamefavorite",p=r[68].isFavorite),y(n,"clientstyling",r[5]),y(n,"clientstylingurl",r[6]),y(n,"endpoint",r[0])},m(e,t){j(e,n,t),g()},p(e,t){r=e,4&t[0]&&y(n,"session",r[2]),8&t[0]&&y(n,"userid",r[3]),2&t[0]&&y(n,"lang",r[1]),1024&t[0]&&o!==(o=""+(no+(r[68].cellSize||"1x1")))&&y(n,"class",o),16&t[0]&&y(n,"favorites",r[4]),1024&t[0]&&i!==(i=r[68].thumbnail)&&y(n,"gamethumbnail",i),1024&t[0]&&a!==(a=r[68].name)&&y(n,"gamename",a),1024&t[0]&&s!==(s=r[68].vendor.name)&&y(n,"gamevendor",s),1024&t[0]&&l!==(l=r[68].isNew)&&y(n,"gameisnew",l),1024&t[0]&&c!==(c=r[68].popularity)&&y(n,"gamepopularity",c),1024&t[0]&&u!==(u=r[68].cellSize)&&y(n,"gamecellsize",u),1024&t[0]&&d!==(d=r[68].id)&&y(n,"gameid",d),1024&t[0]&&h!==(h=r[68].hasFunMode)&&y(n,"gamefunmode",h),1024&t[0]&&p!==(p=r[68].isFavorite)&&y(n,"gamefavorite",p),32&t[0]&&y(n,"clientstyling",r[5]),64&t[0]&&y(n,"clientstylingurl",r[6]),1&t[0]&&y(n,"endpoint",r[0]),m!==r[70]&&(f(),m=r[70],g())},d(e){e&&H(n),f()}}}(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&H(r)}}}function Xn(e){let r,n,o=e[22]("gamesCategorySection.searchedItems")+"";return{c(){r=z("h3"),n=t(o),X(r,"class","StatusText")},m(e,t){j(e,r,t),B(r,n)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamesCategorySection.searchedItems")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Yn(e){let r,n,o=e[22]("gamesCategorySection.noResults")+"";return{c(){r=z("h3"),n=t(o),X(r,"class","StatusText")},m(e,t){j(e,r,t),B(r,n)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamesCategorySection.noResults")+"")&&Y(n,o)},d(e){e&&H(r)}}}function qn(e){let r,n,o=e[22]("gamesCategorySection.recentSearchedItems")+"";return{c(){r=z("h3"),n=t(o),X(r,"class","StatusText")},m(e,t){j(e,r,t),B(r,n)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamesCategorySection.recentSearchedItems")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Zn(e){let r;return{c(){r=z("p"),r.textContent="Waiting",X(r,"class","SearchWaiting")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function Kn(t){let n,o,i=!t[16]&&Jn(t),a=t[10],s=[];for(let e=0;e<a.length;e+=1)s[e]=Qn(_n(t,a,e));return{c(){i&&i.c(),n=W(),o=z("ul");for(let e=0;e<s.length;e+=1)s[e].c();X(o,"class","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap")},m(e,t){i&&i.m(e,t),j(e,n,t),j(e,o,t);for(let e=0;e<s.length;e+=1)s[e].m(o,null)},p(t,r){if(t[16]?i&&(i.d(1),i=null):i?i.p(t,r):(i=Jn(t),i.c(),i.m(n.parentNode,n)),17535&r[0]){let e;for(a=t[10],e=0;e<a.length;e+=1){const i=_n(t,a,e);s[e]?s[e].p(i,r):(s[e]=Qn(i),s[e].c(),s[e].m(o,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}},d(e){i&&i.d(e),e&&H(n),e&&H(o),c(s,e)}}}function Jn(e){let r,n,o=e[22]("gamesCategorySection.noRecentSearch")+"";return{c(){r=z("p"),n=t(o),X(r,"class","NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(un(e[23])?"NoRecentSearchesMobile":""))},m(e,t){j(e,r,t),B(r,n)},p(e,t){4194304&t[0]&&o!==(o=e[22]("gamesCategorySection.noRecentSearch")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Qn(e){let r,n,o,i,a,s,l,c,u,d,h;return{c(){r=z("casino-game-thumbnail"),y(r,"class",n=""+(no+(e[68].cellSize||"1x1"))),y(r,"session",e[2]),y(r,"userid",e[3]),y(r,"lang",e[1]),y(r,"searchitem",e[14]),y(r,"favorites",e[4]),y(r,"gamethumbnail",o=e[68].thumbnail),y(r,"gamename",i=e[68].name),y(r,"gamevendor",a=e[68].vendor.name),y(r,"gameisnew",s=e[68].isNew),y(r,"gamepopularity",l=e[68].popularity),y(r,"gamecellsize",c=e[68].cellSize),y(r,"gameid",u=e[68].id),y(r,"gamefunmode",d=e[68].hasFunMode),y(r,"gamefavorite",h=e[68].isFavorite),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6]),y(r,"endpoint",e[0])},m(e,t){j(e,r,t)},p(e,t){1024&t[0]&&n!==(n=""+(no+(e[68].cellSize||"1x1")))&&y(r,"class",n),4&t[0]&&y(r,"session",e[2]),8&t[0]&&y(r,"userid",e[3]),2&t[0]&&y(r,"lang",e[1]),16384&t[0]&&y(r,"searchitem",e[14]),16&t[0]&&y(r,"favorites",e[4]),1024&t[0]&&o!==(o=e[68].thumbnail)&&y(r,"gamethumbnail",o),1024&t[0]&&i!==(i=e[68].name)&&y(r,"gamename",i),1024&t[0]&&a!==(a=e[68].vendor.name)&&y(r,"gamevendor",a),1024&t[0]&&s!==(s=e[68].isNew)&&y(r,"gameisnew",s),1024&t[0]&&l!==(l=e[68].popularity)&&y(r,"gamepopularity",l),1024&t[0]&&c!==(c=e[68].cellSize)&&y(r,"gamecellsize",c),1024&t[0]&&u!==(u=e[68].id)&&y(r,"gameid",u),1024&t[0]&&d!==(d=e[68].hasFunMode)&&y(r,"gamefunmode",d),1024&t[0]&&h!==(h=e[68].isFavorite)&&y(r,"gamefavorite",h),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6]),1&t[0]&&y(r,"endpoint",e[0])},d(e){e&&H(r)}}}function eo(e){let r;return{c(){r=z("p"),r.textContent="500 Error - Internal Server Error.",X(r,"class","SearchLoading")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function to(e){let r;return{c(){r=z("p"),r.textContent="404 Error - No result found.",X(r,"class","SearchLoading")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function ro(r){let n;function o(e){return e[8]?Pn:e[12]?An:Fn}let i=o(r),a=i(r);return{c(){n=z("div"),a.c(),this.c=U,X(n,"class","CasinoGamesCategorySectionContainer")},m(e,t){j(e,n,t),a.m(n,null),r[40](n)},p(e,t){i===(i=o(e))&&a?a.p(e,t):(a.d(1),a=i(e),a&&(a.c(),a.m(n,null)))},i:U,o:U,d(e){e&&H(n),a.d(),r[40](null)}}}customElements.get("casino-game-thumbnail")||customElements.define("casino-game-thumbnail",class extends F{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}.GameContainer{width:100%;height:100%}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65)}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:9.6px;text-align:center;font-size:17.6px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6.4px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:4.8px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:14.4px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;top:8px;left:8px}.GameInnerContainer .GameExtraInfoLabel{font-size:11.2px;padding:3.2px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:4.8px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer}</style>",s(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},En,Cn,r,{session:22,userid:23,lang:24,clientstyling:25,clientstylingurl:26,favorites:1,gamethumbnail:2,gamename:3,gamevendor:4,gameid:5,gameisnew:6,gamepopularity:7,gamefunmode:27,searchitem:28,gamefavorite:0,showfavoredcategory:29,showgamename:8,endpoint:30},[-1,-1]),e&&(e.target&&j(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gamepopularity","gamefunmode","searchitem","gamefavorite","showfavoredcategory","showgamename","endpoint"]}get session(){return this.$$.ctx[22]}set session(e){this.$set({session:e}),T()}get userid(){return this.$$.ctx[23]}set userid(e){this.$set({userid:e}),T()}get lang(){return this.$$.ctx[24]}set lang(e){this.$set({lang:e}),T()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$set({clientstyling:e}),T()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$set({clientstylingurl:e}),T()}get favorites(){return this.$$.ctx[1]}set favorites(e){this.$set({favorites:e}),T()}get gamethumbnail(){return this.$$.ctx[2]}set gamethumbnail(e){this.$set({gamethumbnail:e}),T()}get gamename(){return this.$$.ctx[3]}set gamename(e){this.$set({gamename:e}),T()}get gamevendor(){return this.$$.ctx[4]}set gamevendor(e){this.$set({gamevendor:e}),T()}get gameid(){return this.$$.ctx[5]}set gameid(e){this.$set({gameid:e}),T()}get gameisnew(){return this.$$.ctx[6]}set gameisnew(e){this.$set({gameisnew:e}),T()}get gamepopularity(){return this.$$.ctx[7]}set gamepopularity(e){this.$set({gamepopularity:e}),T()}get gamefunmode(){return this.$$.ctx[27]}set gamefunmode(e){this.$set({gamefunmode:e}),T()}get searchitem(){return this.$$.ctx[28]}set searchitem(e){this.$set({searchitem:e}),T()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$set({gamefavorite:e}),T()}get showfavoredcategory(){return this.$$.ctx[29]}set showfavoredcategory(e){this.$set({showfavoredcategory:e}),T()}get showgamename(){return this.$$.ctx[8]}set showgamename(e){this.$set({showgamename:e}),T()}get endpoint(){return this.$$.ctx[30]}set endpoint(e){this.$set({endpoint:e}),T()}});const no="game-tile-";function oo(e,t,s){let r;Ae(e,cn,e=>s(22,r=e));var n=this&&this.__awaiter||function(e,a,s,l){return new(s=s||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((l=l.apply(e,a||[])).next())})};let o,i,a,l,c,u,d,h,{endpoint:p=""}=t,{datasource:m=""}=t,{lang:g=""}=t,{session:f=""}=t,{userid:y=""}=t,{favorites:v=""}=t,{clientstyling:b=""}=t,{clientstylingurl:w=""}=t,{categoryid:S=""}=t,{categoryindex:C=0}=t,{categorygames:E=0}=t,{once:x=!0}=t,{top:T=0}=t,{bottom:_=0}=t,{left:F=0}=t,{right:A=0}=t,P=!1,M=!0,I=window.navigator.userAgent,k=[],L=!0,$=40,N=!1,O=!1,R=!1,G=!1,U=!0,D=!1,B=!1,j=!1,H=new Array(1e3),z={items:[],count:0,name:""};Object.keys(pn).forEach(e=>{jr(e,pn[e])});let W=new IntersectionObserver((e,t)=>{e.forEach(t=>n(void 0,void 0,void 0,function*(){var e=t.target.elems_index;t.isIntersecting&&1.2*e>$&&Y(S)}))});const V=(e,n,o,t=0)=>{let i=new URL(`${p}/casino/groups/${m}/${S}`),a=JSON.parse(sessionStorage.getItem("vendorFiltersByCategory"));return new Promise((t,r)=>{if(i.searchParams.delete("pagination"),i.searchParams.append("expand","games(vendor)"),i.searchParams.append("fields","id,name,games"),i.searchParams.append("platform",dn(I)),i.searchParams.append("pagination",`games(offset=${n},limit=${o})`),i.searchParams.append("language",g),window.postMessage({type:"CategoryVendors",categoryid:S},window.location.href),a&&a[S])if(a[S].length&&!1===M&&!1===D){let t="";s(15,G=!0),a[S].forEach(e=>{t+=t?`, id=${e}`:`id=${e}`}),i.searchParams.append("filter",`games(vendor(${t}))`)}else s(15,G=!1);fetch(i).then(e=>e.json()).then(e=>{s(8,P=!1),c=e.games.total,t(e)},e=>{s(8,P=!0),console.error(e),r(e)})})},X=t=>{if(t.data)switch(t.data.type){case"MostPlayedData":s(12,N=!1),M=!1,s(11,L=!1),B=!0,s(10,k=t.data.mostPlayedGames),s(9,a={id:"MOSTPLAYED",name:"Most Played Games",games:{count:t.data.mostPlayedGames.length,total:t.data.mostPlayedGames.length,items:t.data.mostPlayedGames}});break;case"CustomOperatorData":t.data.operatordetail;break;case"RecentSearchData":s(12,N=!0),B=!1,s(13,O=!0),0<t.data.searchData.length?(s(10,k=t.data.searchData),s(16,U=!0),k&&k.forEach(e=>{e.isFavorite=q(e.id)})):(s(10,k=[]),s(16,U=!1));break;case"OutOfRecentSearches":s(12,N=!1),s(13,O=!1);break;case"SearchData":s(12,N=!0),B=!1,s(13,O=!1),s(10,k=t.data.searchData.items||[]),s(14,R=!0),t.data.receivedFavoriteResults&&(d=t.data.receivedFavoriteResults.items),k&&k.forEach(e=>{e.isFavorite=q(e.id)});break;case`CategoryData_${S}`:s(12,N=!1),M=!0,s(11,L=!0),s(14,R=!1),B=!1,j=!1,t.data.receivedFavoriteResults&&(d=t.data.receivedFavoriteResults.items),V(t.data.categoryId,0,t.data.visiblegames).then(e=>{s(9,a=e),s(10,k=a.games.items),k&&k.forEach(e=>{e.isFavorite=q(e.id)})});break;case"CategoryChange":$=20;break;case"CategoryUpdate":s(12,N=!1),M=!1,s(14,R=!1),B=!1,s(11,L=!1),j=!0,s(25,S=t.data.itemId),V(0,0,$).then(e=>{s(9,a=e),a.games.items.forEach(e=>{e.isFavorite=q(e.id)}),s(10,k=a.games.items),s(11,L=!1)});break;case"FavoriteUpdate":s(12,N=!1),B=!1,M=!0,s(10,k=a.games.items),k.forEach(e=>{e.isFavorite=q(e.id)}),s(11,L=!0);break;case"UpdateCategoryFavoriteGames":t.data.receivedFavoriteResults&&(d=t.data.receivedFavoriteResults.items,t.data.triggerFactor&&!D?window.postMessage({type:"FavoriteUpdate"},window.location.href):M||B||window.postMessage({type:"CategoryUpdate",itemId:S},window.location.href));break;case"ShowFavoriteSection":let e;t.data&&(e=t.data.receivedFavoriteResults.items,e.length&&e.forEach(e=>{e.gameModel&&(e.gameModel.isFavorite=!!e.gameModel)}),s(21,z.items=(r=e,z.items,n=window.navigator.userAgent,un(n)?r.filter(e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e}):r.filter(e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e})),z),s(21,z.name="Favorites",z),s(19,D=!0));break;case"UserSessionID":o=t.data.session,i=t.data.userID,"true"==v&&i&&i.length&&o&&0<o.length&&(e=>{let n={method:"GET",headers:{"X-SessionID":o}};new Promise((t,r)=>{fetch(e,n).then(e=>e.json()).then(e=>{d=e?e.items:[],k.forEach(e=>{e.isFavorite=q(e.id)});e=k;s(10,k=void 0),s(10,k=e),t(d)}).catch(e=>{console.error(e),r(e)})})})(`${p}/player/${i}/favorites/`)}var r,n},Y=e=>{$+=10,$<=c&&V(0,0,$).then(e=>{s(9,a=e),s(10,k=a.games.items),k.forEach(e=>{e.isFavorite=q(e.id)})})},q=t=>!!d&&-1!==d.findIndex(e=>e.id==t),Z=(e,t)=>{window.postMessage({type:"CategoryChange",itemId:e},window.location.href),window.postMessage({type:"SetSliderIndex",categoryData:t},window.location.href)};return Pe(()=>(window.addEventListener("message",X,!1),window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",X)})),e.$$set=e=>{"endpoint"in e&&s(0,p=e.endpoint),"datasource"in e&&s(26,m=e.datasource),"lang"in e&&s(1,g=e.lang),"session"in e&&s(2,f=e.session),"userid"in e&&s(3,y=e.userid),"favorites"in e&&s(4,v=e.favorites),"clientstyling"in e&&s(5,b=e.clientstyling),"clientstylingurl"in e&&s(6,w=e.clientstylingurl),"categoryid"in e&&s(25,S=e.categoryid),"categoryindex"in e&&s(27,C=e.categoryindex),"categorygames"in e&&s(28,E=e.categorygames),"once"in e&&s(29,x=e.once),"top"in e&&s(30,T=e.top),"bottom"in e&&s(31,_=e.bottom),"left"in e&&s(32,F=e.left),"right"in e&&s(33,A=e.right)},e.$$.update=()=>{128&e.$$.dirty[0]&&H&&j&&H.forEach((e,t)=>{e&&(e.elems_index=t,W.observe(e))}),e.$$.dirty[0],32&e.$$.dirty[0]&&b&&(()=>{let e=document.createElement("style");e.innerHTML=b,setTimeout(()=>{h.appendChild(e)})})(),64&e.$$.dirty[0]&&w&&(()=>{let t=document.createElement("style");fetch(new URL(w)).then(e=>e.text()).then(e=>{t.innerHTML=e,h&&setTimeout(()=>{h.appendChild(t)},1)})})()},[p,g,f,y,v,b,w,H,P,a,k,L,N,O,R,G,U,l,u,D,h,z,r,I,Z,S,m,C,E,x,T,_,F,A,function(e){Me[e?"unshift":"push"](()=>{u=e,s(18,u)})},e=>Z(a.id,a),function(e,t){Me[e?"unshift":"push"](()=>{H[t]=e,s(7,H)})},function(e){Me[e?"unshift":"push"](()=>{l=e,s(17,l)})},function(e){Me[e?"unshift":"push"](()=>{u=e,s(18,u)})},function(e){Me[e?"unshift":"push"](()=>{l=e,s(17,l)})},function(e){Me[e?"unshift":"push"](()=>{h=e,s(20,h)})}]}function io(e,t,r){const n=e.slice();return n[112]=t[r],n[114]=r,n}function ao(r){let n,o,i,a,s="PC"!==dn(r[36])&&"false"===r[8]&&r[32],l=s&&lo();function c(e){return"false"===e[8]?uo:co}let u=c(r),d=u(r);function h(e){return e[13]?Mo:e[20]?Po:e[23]?Ao:e[18]?Fo:e[24]?_o:e[19]?void 0:To}let p=h(r),m=p&&p(r),g=r[15]&&"true"===r[11]&&$o(r);return{c(){n=z("section"),l&&l.c(),o=W(),d.c(),i=W(),m&&m.c(),a=W(),g&&g.c(),X(n,"class","CategoriesLobby"),C(n,"max-width",r[10]+"px")},m(e,t){j(e,n,t),l&&l.m(n,null),B(n,o),d.m(n,null),B(n,i),m&&m.m(n,null),B(n,a),g&&g.m(n,null),r[67](n)},p(e,t){256&t[0]|2&t[1]&&(s="PC"!==dn(e[36])&&"false"===e[8]&&e[32]),s?l||(l=lo(),l.c(),l.m(n,o)):l&&(l.d(1),l=null),u===(u=c(e))&&d?d.p(e,t):(d.d(1),d=u(e),d&&(d.c(),d.m(n,i))),p===(p=h(e))&&m?m.p(e,t):(m&&m.d(1),m=p&&p(e),m&&(m.c(),m.m(n,a))),e[15]&&"true"===e[11]?g?g.p(e,t):(g=$o(e),g.c(),g.m(n,null)):g&&(g.d(1),g=null),1024&t[0]&&C(n,"max-width",e[10]+"px")},d(e){e&&H(n),l&&l.d(),d.d(),m&&m.d(),g&&g.d(),r[67](null)}}}function so(e){let r;return{c(){r=z("p"),r.textContent="500 Error - Internal Server Error",X(r,"class","SearchLoading")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function lo(){let r;return{c(){r=z("div"),X(r,"class","SearchBarPlaceholder")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function co(r){let n,o,i,a,s,l,c,u,d,h,p,m,g,f,y="PC"===dn(r[36])&&r[12].length||"PC"!==dn(r[36]),v=!r[32]&&ho(),b=y&&po(r),w=!r[18]&&!r[23]&&!r[32]&&!r[24]&&!r[19]&&!r[22]&&!r[20]&&!r[21]&&mo(r);return{c(){n=z("div"),o=z("div"),i=z("label"),i.textContent="Search casino games",a=W(),s=z("div"),v&&v.c(),l=W(),c=z("input"),d=W(),b&&b.c(),p=W(),w&&w.c(),X(i,"for","search"),X(i,"class","SrOnly"),X(c,"id","SearchField"),X(c,"class","SearchInput"),X(c,"placeholder",u="PC"===dn(r[36])?r[35]("casinoPage.search"):r[35]("casinoPage.searchMobile")),X(c,"type","search"),X(s,"class","SearchWrapper"),X(o,"class",h="SearchContainer "+(r[23]||r[18]||r[24]||r[21]?"":"SearchTruncated")),X(n,"class",m="CategoriesHeaderSection CategoriesHeaderSectionAltDesign "+("PC"!==dn(r[36])?"CategoriesHeaderMobileSection":"")+" "+(r[32]?"SearchMobileActive":"")+" "+(r[32]||r[20]&&"PC"!==dn(r[36])&&!Oo?"CategoriesHeaderSearchActive":"")+(r[26]&&r[32]?"SearchStickTop":"")),C(n,"top",r[26]&&r[32]?Ro+"px":"")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(o,a),B(o,s),v&&v.m(s,null),B(s,l),B(s,c),r[60](c),S(c,r[12]),B(s,d),b&&b.m(s,null),B(n,p),w&&w.m(n,null),r[65](n),g||(f=[V(c,"focus",r[38]),V(c,"blur",r[39]),V(c,"input",r[61]),V(c,"focus",r[40])],g=!0)},p(e,t){e[32]?v&&(v.d(1),v=null):v||(v=ho(),v.c(),v.m(s,l)),16&t[1]&&u!==(u="PC"===dn(e[36])?e[35]("casinoPage.search"):e[35]("casinoPage.searchMobile"))&&X(c,"placeholder",u),4096&t[0]&&S(c,e[12]),4096&t[0]&&(y="PC"===dn(e[36])&&e[12].length||"PC"!==dn(e[36])),y?b?b.p(e,t):(b=po(e),b.c(),b.m(s,null)):b&&(b.d(1),b=null),27525120&t[0]&&h!==(h="SearchContainer "+(e[23]||e[18]||e[24]||e[21]?"":"SearchTruncated"))&&X(o,"class",h),e[18]||e[23]||e[32]||e[24]||e[19]||e[22]||e[20]||e[21]?w&&(w.d(1),w=null):w?w.p(e,t):(w=mo(e),w.c(),w.m(n,null)),68157440&t[0]|2&t[1]&&m!==(m="CategoriesHeaderSection CategoriesHeaderSectionAltDesign "+("PC"!==dn(e[36])?"CategoriesHeaderMobileSection":"")+" "+(e[32]?"SearchMobileActive":"")+" "+(e[32]||e[20]&&"PC"!==dn(e[36])&&!Oo?"CategoriesHeaderSearchActive":"")+(e[26]&&e[32]?"SearchStickTop":""))&&X(n,"class",m),67108864&t[0]|2&t[1]&&C(n,"top",e[26]&&e[32]?Ro+"px":"")},d(e){e&&H(n),v&&v.d(),r[60](null),b&&b.d(),w&&w.d(),r[65](null),g=!1,D(f)}}}function uo(r){let n,o,i,a,s,l,c,u,d,h,p,m,g,f,y="PC"===dn(r[36])&&r[12].length||"PC"!==dn(r[36]),v=!r[32]&&bo(),b=y&&wo(r),w=!r[18]&&!r[23]&&!r[32]&&!r[24]&&!r[19]&&!r[20]&&!r[22]&&!r[21]&&So(r);return{c(){n=z("div"),o=z("div"),i=z("label"),i.textContent="Search casino games",a=W(),s=z("div"),v&&v.c(),l=W(),c=z("input"),d=W(),b&&b.c(),p=W(),w&&w.c(),X(i,"for","search"),X(i,"class","SrOnly"),X(c,"id","SearchField"),X(c,"class","SearchInput"),X(c,"placeholder",u="PC"===dn(r[36])?r[35]("casinoPage.search"):r[35]("casinoPage.searchMobile")),X(c,"type","search"),X(s,"class","SearchWrapper"),X(o,"class",h="SearchContainer "+(r[23]||r[18]||r[24]||r[21]?"":"SearchTruncated")),X(n,"class",m="CategoriesHeaderSection "+("PC"!==dn(r[36])?"CategoriesHeaderMobileSection":"")+" "+(r[32]?"SearchMobileActive":"")+" "+(r[32]||r[20]&&"PC"!==dn(r[36])&&!Oo?"CategoriesHeaderSearchActive":"")+" "+(r[26]&&r[32]?"SearchStickTop":"")),C(n,"top",r[26]&&r[32]?Ro+"px":"")},m(e,t){j(e,n,t),B(n,o),B(o,i),B(o,a),B(o,s),v&&v.m(s,null),B(s,l),B(s,c),r[54](c),S(c,r[12]),B(s,d),b&&b.m(s,null),B(n,p),w&&w.m(n,null),r[59](n),g||(f=[V(c,"focus",r[38]),V(c,"blur",r[39]),V(c,"input",r[55]),V(c,"focus",r[40])],g=!0)},p(e,t){e[32]?v&&(v.d(1),v=null):v||(v=bo(),v.c(),v.m(s,l)),16&t[1]&&u!==(u="PC"===dn(e[36])?e[35]("casinoPage.search"):e[35]("casinoPage.searchMobile"))&&X(c,"placeholder",u),4096&t[0]&&S(c,e[12]),4096&t[0]&&(y="PC"===dn(e[36])&&e[12].length||"PC"!==dn(e[36])),y?b?b.p(e,t):(b=wo(e),b.c(),b.m(s,null)):b&&(b.d(1),b=null),27525120&t[0]&&h!==(h="SearchContainer "+(e[23]||e[18]||e[24]||e[21]?"":"SearchTruncated"))&&X(o,"class",h),e[18]||e[23]||e[32]||e[24]||e[19]||e[20]||e[22]||e[21]?w&&(w.d(1),w=null):w?w.p(e,t):(w=So(e),w.c(),w.m(n,null)),68157440&t[0]|2&t[1]&&m!==(m="CategoriesHeaderSection "+("PC"!==dn(e[36])?"CategoriesHeaderMobileSection":"")+" "+(e[32]?"SearchMobileActive":"")+" "+(e[32]||e[20]&&"PC"!==dn(e[36])&&!Oo?"CategoriesHeaderSearchActive":"")+" "+(e[26]&&e[32]?"SearchStickTop":""))&&X(n,"class",m),67108864&t[0]|2&t[1]&&C(n,"top",e[26]&&e[32]?Ro+"px":"")},d(e){e&&H(n),v&&v.d(),r[54](null),b&&b.d(),w&&w.d(),r[59](null),g=!1,D(f)}}}function ho(){let r;return{c(){r=z("div"),r.innerHTML='<svg role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path></svg>',X(r,"class","SearchIcon")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function po(r){let n,o,i,a;return{c(){n=z("span"),o=z("div"),o.innerHTML='<div class="CloseIconWrapper"><div class="CloseIcon"></div></div>',X(o,"class","CloseIconContainer"),X(n,"class",("PC"===dn(r[36])?"ClearSearchButton":"ClearSearchButtonMobile")+" ")},m(e,t){j(e,n,t),B(n,o),i||(a=V(n,"click",r[62]),i=!0)},p:U,d(e){e&&H(n),i=!1,a()}}}function mo(e){let r,n,o=e[33]&&go(e),i=(!e[20]||!e[19])&&fo(e);return{c(){r=z("div"),o&&o.c(),n=W(),i&&i.c(),X(r,"class","FiltersButtonsContainer ")},m(e,t){j(e,r,t),o&&o.m(r,null),B(r,n),i&&i.m(r,null)},p(e,t){e[33]?o?o.p(e,t):(o=go(e),o.c(),o.m(r,n)):o&&(o.d(1),o=null),e[20]&&e[19]?i&&(i.d(1),i=null):i?i.p(e,t):(i=fo(e),i.c(),i.m(r,null))},d(e){e&&H(r),o&&o.d(),i&&i.d()}}}function go(r){let n,o,i,a,s;return{c(){n=z("div"),o=z("div"),o.innerHTML='Clear\n <span class="ClearIcon"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 378.303 378.303" style="enable-background:new 0 0 378.303 378.303;" xml:space="preserve"><polygon style="fill:var(--emfe-w-color-secondary, #FD2839);" points="378.303,28.285 350.018,0 189.151,160.867 28.285,0 0,28.285 160.867,189.151 0,350.018\n 28.285,378.302 189.151,217.436 350.018,378.302 378.303,350.018 217.436,189.151 "></polygon></svg></span>',X(o,"class","ClearButton"),X(n,"class",i="ClearFilterButtonWrapper "+(r[33]?"FiltersActive":"")+" ")},m(e,t){j(e,n,t),B(n,o),a||(s=V(n,"click",r[63]),a=!0)},p(e,t){4&t[1]&&i!==(i="ClearFilterButtonWrapper "+(e[33]?"FiltersActive":"")+" ")&&X(n,"class",i)},d(e){e&&H(n),a=!1,s()}}}function fo(e){let r,n=!e[24]&&yo(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){e[24]?n&&(n.d(1),n=null):n?n.p(e,t):(n=yo(e),n.c(),n.m(r.parentNode,r))},d(e){n&&n.d(e),e&&H(r)}}}function yo(r){let n,o,i,a,s,l,c,u,d,h,p,m,g=0<r[33]&&vo(r);return{c(){n=z("div"),o=z("div"),o.textContent="Filters",i=W(),a=z("div"),s=v("svg"),l=v("defs"),c=v("style"),u=t(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),d=v("path"),h=W(),g&&g.c(),X(o,"class","FilterButton"),X(d,"class","a"),X(d,"d","M16.7,32.2a1.654,1.654,0,0,1-.636-.148,1.526,1.526,0,0,1-.867-1.393V20.578L5.433,10.588A1.543,1.543,0,0,1,5,9.491V7.742A1.512,1.512,0,0,1,6.5,6.2h23A1.512,1.512,0,0,1,31,7.742V9.491a1.543,1.543,0,0,1-.433,1.1L20.8,20.578v7.738a1.594,1.594,0,0,1-.52,1.156l-2.6,2.312A1.461,1.461,0,0,1,16.7,32.2ZM6.618,9.431l9.764,10.02a1.543,1.543,0,0,1,.433,1.1v9.813l2.34-2.075V20.519a1.543,1.543,0,0,1,.433-1.1L29.353,9.4V7.831H6.618Z"),X(d,"transform","translate(-5 -6.2)"),X(s,"xmlns","http://www.w3.org/2000/svg"),X(s,"width","20"),X(s,"height","20"),X(s,"viewBox","0 0 26 26"),X(a,"class","FilterIconContainer"),X(n,"class","FilterButtonWrapper")},m(e,t){j(e,n,t),B(n,o),B(n,i),B(n,a),B(a,s),B(s,l),B(l,c),B(c,u),B(s,d),B(a,h),g&&g.m(a,null),p||(m=V(n,"click",r[64]),p=!0)},p(e,t){0<e[33]?g?g.p(e,t):(g=vo(e),g.c(),g.m(a,null)):g&&(g.d(1),g=null)},d(e){e&&H(n),g&&g.d(),p=!1,m()}}}function vo(e){let r,n,o;return{c(){r=z("div"),n=z("span"),o=t(e[33]),X(n,"class","NumberOfFilters"),X(r,"class","NumberOfFiltersContainer")},m(e,t){j(e,r,t),B(r,n),B(n,o)},p(e,t){4&t[1]&&Y(o,e[33])},d(e){e&&H(r)}}}function bo(){let r;return{c(){r=z("div"),r.innerHTML='<svg role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path></svg>',X(r,"class","SearchIcon")},m(e,t){j(e,r,t)},d(e){e&&H(r)}}}function wo(r){let n,o,i,a;return{c(){n=z("span"),o=z("div"),o.innerHTML='<div class="CloseIconWrapper"><div class="CloseIcon"></div></div>',X(o,"class","CloseIconContainer"),X(n,"class",("PC"===dn(r[36])?"ClearSearchButton":"ClearSearchButtonMobile")+" ")},m(e,t){j(e,n,t),B(n,o),i||(a=V(n,"click",r[56]),i=!0)},p:U,d(e){e&&H(n),i=!1,a()}}}function So(e){let r,n,o=e[33]&&Co(e),i=(!e[20]||!e[19])&&Eo(e);return{c(){r=z("div"),o&&o.c(),n=W(),i&&i.c(),X(r,"class","FiltersButtonsContainer")},m(e,t){j(e,r,t),o&&o.m(r,null),B(r,n),i&&i.m(r,null)},p(e,t){e[33]?o?o.p(e,t):(o=Co(e),o.c(),o.m(r,n)):o&&(o.d(1),o=null),e[20]&&e[19]?i&&(i.d(1),i=null):i?i.p(e,t):(i=Eo(e),i.c(),i.m(r,null))},d(e){e&&H(r),o&&o.d(),i&&i.d()}}}function Co(r){let n,o,i;return{c(){n=z("div"),n.innerHTML='<div class="ClearButton">Clear\n <span class="ClearIcon"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 378.303 378.303" style="enable-background:new 0 0 378.303 378.303;" xml:space="preserve"><polygon style="fill:var(--emfe-w-color-secondary, #FD2839);" points="378.303,28.285 350.018,0 189.151,160.867 28.285,0 0,28.285 160.867,189.151 0,350.018\n 28.285,378.302 189.151,217.436 350.018,378.302 378.303,350.018 217.436,189.151 "></polygon></svg></span></div>',X(n,"class","ClearFilterButtonWrapper")},m(e,t){j(e,n,t),o||(i=V(n,"click",r[57]),o=!0)},p:U,d(e){e&&H(n),o=!1,i()}}}function Eo(e){let r,n=!e[24]&&xo(e);return{c(){n&&n.c(),r=u()},m(e,t){n&&n.m(e,t),j(e,r,t)},p(e,t){e[24]?n&&(n.d(1),n=null):n?n.p(e,t):(n=xo(e),n.c(),n.m(r.parentNode,r))},d(e){n&&n.d(e),e&&H(r)}}}function xo(r){let n,o,i,a,s,l,c,u,d,h,p,m,g,f,y;return{c(){n=z("div"),o=z("div"),o.textContent="Filters",i=W(),a=z("div"),s=v("svg"),l=v("defs"),c=v("style"),u=t(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),d=v("path"),h=W(),p=z("div"),m=z("span"),g=t(r[33]),X(o,"class","FilterButton"),X(d,"class","a"),X(d,"d","M16.7,32.2a1.654,1.654,0,0,1-.636-.148,1.526,1.526,0,0,1-.867-1.393V20.578L5.433,10.588A1.543,1.543,0,0,1,5,9.491V7.742A1.512,1.512,0,0,1,6.5,6.2h23A1.512,1.512,0,0,1,31,7.742V9.491a1.543,1.543,0,0,1-.433,1.1L20.8,20.578v7.738a1.594,1.594,0,0,1-.52,1.156l-2.6,2.312A1.461,1.461,0,0,1,16.7,32.2ZM6.618,9.431l9.764,10.02a1.543,1.543,0,0,1,.433,1.1v9.813l2.34-2.075V20.519a1.543,1.543,0,0,1,.433-1.1L29.353,9.4V7.831H6.618Z"),X(d,"transform","translate(-5 -6.2)"),X(s,"xmlns","http://www.w3.org/2000/svg"),X(s,"width","20"),X(s,"height","20"),X(s,"viewBox","0 0 26 26"),X(m,"class","NumberOfFilters"),X(p,"class","NumberOfFiltersContainer"),X(a,"class","FilterIconContainer"),X(n,"class","FilterButtonWrapper")},m(e,t){j(e,n,t),B(n,o),B(n,i),B(n,a),B(a,s),B(s,l),B(l,c),B(c,u),B(s,d),B(a,h),B(a,p),B(p,m),B(m,g),f||(y=V(n,"click",r[58]),f=!0)},p(e,t){4&t[1]&&Y(g,e[33])},d(e){e&&H(n),f=!1,y()}}}function To(e){let r;return{c(){r=z("casino-games-category-section"),y(r,"userid",e[4]),y(r,"endpoint",e[0]),y(r,"datasource",e[1]),y(r,"favorites",e[9]),y(r,"lang",e[2]),y(r,"session",e[3]),y(r,"categoryid",e[29]),y(r,"categorygames","9"),y(r,"class","CategoryContainer"),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6])},m(e,t){j(e,r,t)},p(e,t){16&t[0]&&y(r,"userid",e[4]),1&t[0]&&y(r,"endpoint",e[0]),2&t[0]&&y(r,"datasource",e[1]),512&t[0]&&y(r,"favorites",e[9]),4&t[0]&&y(r,"lang",e[2]),8&t[0]&&y(r,"session",e[3]),536870912&t[0]&&y(r,"categoryid",e[29]),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6])},d(e){e&&H(r)}}}function _o(e){let r;function n(e){return e[25]?ko:Io}let o=n(e),i=o(e);return{c(){i.c(),r=u()},m(e,t){i.m(e,t),j(e,r,t)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r.parentNode,r)))},d(e){i.d(e),e&&H(r)}}}function Fo(r){let n,o,i,a;return{c(){n=z("casino-games-category-section"),y(n,"session",r[3]),y(n,"userid",r[4]),y(n,"endpoint",r[0]),y(n,"datasource",r[1]),y(n,"lang",r[2]),y(n,"favorites",r[9]),y(n,"categoryid","FAVORITES"),y(n,"class","CategoryContainer"),y(n,"clientstyling",r[5]),y(n,"clientstylingurl",r[6])},m(e,t){j(e,n,t),i||(a=l(o=r[37].call(null,n,(r[0],r[16],r[17],r[16]))),i=!0)},p(e,t){8&t[0]&&y(n,"session",e[3]),16&t[0]&&y(n,"userid",e[4]),1&t[0]&&y(n,"endpoint",e[0]),2&t[0]&&y(n,"datasource",e[1]),4&t[0]&&y(n,"lang",e[2]),512&t[0]&&y(n,"favorites",e[9]),32&t[0]&&y(n,"clientstyling",e[5]),64&t[0]&&y(n,"clientstylingurl",e[6]),o&&p(o.update)&&196609&t[0]&&o.update.call(null,(e[0],e[16],e[17],e[16]))},d(e){e&&H(n),i=!1,a()}}}function Ao(t){let o,i=t[28],a=[];for(let e=0;e<i.length;e+=1)a[e]=Lo(io(t,i,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();o=u()},m(t,r){for(let e=0;e<a.length;e+=1)a[e].m(t,r);j(t,o,r)},p(t,r){if(268436223&r[0]){let e;for(i=t[28],e=0;e<i.length;e+=1){var n=io(t,i,e);a[e]?a[e].p(n,r):(a[e]=Lo(n),a[e].c(),a[e].m(o.parentNode,o))}for(;e<a.length;e+=1)a[e].d(1);a.length=i.length}},d(e){c(a,e),e&&H(o)}}}function Po(r){let n,o,i,a;return{c(){n=z("casino-games-category-section"),y(n,"endpoint",r[0]),y(n,"datasource",r[1]),y(n,"lang",r[2]),y(n,"session",r[3]),y(n,"userid",r[4]),y(n,"categoryid","Search"),y(n,"favorites",r[9]),y(n,"categoryindex","0"),y(n,"class","CategoryContainer"),y(n,"clientstyling",r[5]),y(n,"clientstylingurl",r[6])},m(e,t){j(e,n,t),i||(a=l(o=r[45].call(null,n,r[27])),i=!0)},p(e,t){1&t[0]&&y(n,"endpoint",e[0]),2&t[0]&&y(n,"datasource",e[1]),4&t[0]&&y(n,"lang",e[2]),8&t[0]&&y(n,"session",e[3]),16&t[0]&&y(n,"userid",e[4]),512&t[0]&&y(n,"favorites",e[9]),32&t[0]&&y(n,"clientstyling",e[5]),64&t[0]&&y(n,"clientstylingurl",e[6]),o&&p(o.update)&&134217728&t[0]&&o.update.call(null,e[27])},d(e){e&&H(n),i=!1,a()}}}function Mo(e){let r,n,o=e[35]("casinoPage.loading")+"";return{c(){r=z("p"),n=t(o),X(r,"class","SearchLoading")},m(e,t){j(e,r,t),B(r,n)},p(e,t){16&t[1]&&o!==(o=e[35]("casinoPage.loading")+"")&&Y(n,o)},d(e){e&&H(r)}}}function Io(e){let r;return{c(){r=z("casino-games-category-section"),y(r,"session",e[3]),y(r,"userid",e[4]),y(r,"endpoint",e[0]),y(r,"datasource",e[1]),y(r,"lang",e[2]),y(r,"favorites",e[9]),y(r,"categoryid","MOSTPLAYED"),y(r,"categoryindex","1"),y(r,"categorygames","9"),y(r,"class","CategoryContainer"),y(r,"clientstyling",e[5]),y(r,"clientstylingurl",e[6])},m(e,t){j(e,r,t)},p(e,t){8&t[0]&&y(r,"session",e[3]),16&t[0]&&y(r,"userid",e[4]),1&t[0]&&y(r,"endpoint",e[0]),2&t[0]&&y(r,"datasource",e[1]),4&t[0]&&y(r,"lang",e[2]),512&t[0]&&y(r,"favorites",e[9]),32&t[0]&&y(r,"clientstyling",e[5]),64&t[0]&&y(r,"clientstylingurl",e[6])},d(e){e&&H(r)}}}function ko(e){let r;return{c(){r=z("p"),r.textContent="You have no games played!",X(r,"class","SearchLoading")},m(e,t){j(e,r,t)},p:U,d(e){e&&H(r)}}}function Lo(r){let n,o,i,a,s;return{c(){n=z("casino-games-category-section"),y(n,"session",r[3]),y(n,"userid",r[4]),y(n,"endpoint",r[0]),y(n,"datasource",r[1]),y(n,"lang",r[2]),y(n,"categoryid",o=r[112]),y(n,"categoryindex",r[114]),y(n,"categorygames","9"),y(n,"favorites",r[9]),y(n,"class","CategoryContainer"),C(n,"background-color",r[114]%2!=0?r[7]:"transparent"),y(n,"clientstyling",r[5]),y(n,"clientstylingurl",r[6])},m(e,t){j(e,n,t),a||(s=l(i=r[44].call(null,n,r[112])),a=!0)},p(e,t){r=e,8&t[0]&&y(n,"session",r[3]),16&t[0]&&y(n,"userid",r[4]),1&t[0]&&y(n,"endpoint",r[0]),2&t[0]&&y(n,"datasource",r[1]),4&t[0]&&y(n,"lang",r[2]),268435456&t[0]&&o!==(o=r[112])&&y(n,"categoryid",o),512&t[0]&&y(n,"favorites",r[9]),128&t[0]&&C(n,"background-color",r[114]%2!=0?r[7]:"transparent"),32&t[0]&&y(n,"clientstyling",r[5]),64&t[0]&&y(n,"clientstylingurl",r[6]),i&&p(i.update)&&268435456&t[0]&&i.update.call(null,r[112])},d(e){e&&H(n),a=!1,s()}}}function $o(r){let n,o,i,a,s,l,c,u,d,h,p,m,g=r[35]("casinoPage.break")+"",f=r[35]("casinoPage.breakButton")+"";return{c(){n=z("div"),o=z("div"),i=v("svg"),a=v("path"),s=W(),l=z("p"),c=t(g),u=W(),d=z("button"),h=t(f),X(a,"stroke-linecap","round"),X(a,"stroke-linejoin","round"),X(a,"stroke-width","2"),X(a,"d","M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"),X(i,"class","w-1 h-1"),X(i,"fill","none"),X(i,"stroke","white"),X(i,"width","34px"),X(i,"height","34px"),X(i,"viewBox","0 0 24 24"),X(i,"xmlns","http://www.w3.org/2000/svg"),X(o,"class","PanicText"),X(d,"class","PanicButton"),X(n,"class","PanicSection "+("PC"!==dn(r[36])?"PanicSectionMobile":""))},m(e,t){j(e,n,t),B(n,o),B(o,i),B(i,a),B(o,s),B(o,l),B(l,c),B(n,u),B(n,d),B(d,h),p||(m=V(d,"click",r[66]),p=!0)},p(e,t){16&t[1]&&g!==(g=e[35]("casinoPage.break")+"")&&Y(c,g),16&t[1]&&f!==(f=e[35]("casinoPage.breakButton")+"")&&Y(h,f)},d(e){e&&H(n),p=!1,m()}}}function No(e){let r;function n(e){return e[14]?so:ao}let o=n(e),i=o(e);return{c(){i.c(),r=u(),this.c=U},m(e,t){i.m(e,t),j(e,r,t)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r.parentNode,r)))},i:U,o:U,d(e){i.d(e),e&&H(r)}}}customElements.get("casino-games-category-section")||customElements.define("casino-games-category-section",class extends F{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}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .UnfavoredIcon{width:50px;height:50px}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:12.8px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(Min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}</style>",s(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},oo,ro,r,{endpoint:0,datasource:26,lang:1,session:2,userid:3,favorites:4,clientstyling:5,clientstylingurl:6,categoryid:25,categoryindex:27,categorygames:28,once:29,top:30,bottom:31,left:32,right:33},[-1,-1,-1]),e&&(e.target&&j(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","categoryid","categoryindex","categorygames","once","top","bottom","left","right"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$set({endpoint:e}),T()}get datasource(){return this.$$.ctx[26]}set datasource(e){this.$set({datasource:e}),T()}get lang(){return this.$$.ctx[1]}set lang(e){this.$set({lang:e}),T()}get session(){return this.$$.ctx[2]}set session(e){this.$set({session:e}),T()}get userid(){return this.$$.ctx[3]}set userid(e){this.$set({userid:e}),T()}get favorites(){return this.$$.ctx[4]}set favorites(e){this.$set({favorites:e}),T()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$set({clientstyling:e}),T()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$set({clientstylingurl:e}),T()}get categoryid(){return this.$$.ctx[25]}set categoryid(e){this.$set({categoryid:e}),T()}get categoryindex(){return this.$$.ctx[27]}set categoryindex(e){this.$set({categoryindex:e}),T()}get categorygames(){return this.$$.ctx[28]}set categorygames(e){this.$set({categorygames:e}),T()}get once(){return this.$$.ctx[29]}set once(e){this.$set({once:e}),T()}get top(){return this.$$.ctx[30]}set top(e){this.$set({top:e}),T()}get bottom(){return this.$$.ctx[31]}set bottom(e){this.$set({bottom:e}),T()}get left(){return this.$$.ctx[32]}set left(e){this.$set({left:e}),T()}get right(){return this.$$.ctx[33]}set right(e){this.$set({right:e}),T()}});let Oo=!1;const Ro=0;function Go(e,t,i){let r;Ae(e,cn,e=>i(35,r=e));let o,a,s,l,c,u,d,h,n,p,m,{endpoint:g=""}=t,{datasource:f=""}=t,{lang:y=""}=t,{session:v=""}=t,{userid:b=""}=t,{clientstyling:w=""}=t,{clientstylingurl:S=""}=t,{categorybackground:C=""}=t,{visiblegames:E="6"}=t,{alternativesearch:x="false"}=t,{favorites:T=""}=t,{mostplayed:_=""}=t,{lobbyid:F="casinodefault"}=t,{containermaxwidth:A=""}=t,{haspanicbutton:P="false"}=t,{mostplayedrounds:M=""}=t,{activecategory:I=""}=t,k=!1,L=!1,$=!1,N="",O=!1,R=!1,G=!0,U=!1,D=!1,B=!1,j=!1,H=!0,z=!1,W=!1,V=!1,X=!0,Y=[],q="",Z=window.navigator.userAgent,K,J=[],Q=!1,ee=[],te=0,re="";var ne,oe;[{withLocale:ne,translations:oe}]=[{withLocale:"en",translations:{}}],Jr.subscribe(e=>{null==e&&(Dr.set(oe),Jr.set(ne))}),Object.keys(hn).forEach(e=>{jr(e,hn[e])});const ie=e=>{switch(i(20,U=!1),i(12,q=""),e.data.itemId){case"LOBBY":i(23,H=!0),i(18,O=!1),i(29,l=""),i(24,z=!1);break;case"FAVORITES":i(23,H=!1),i(18,O=!0),i(24,z=!1),i(29,l="");break;case"MOSTPLAYED":"true"==_&&(i(13,k=!0),se({limit:100,device:dn(Z),rounds:10}).then(e=>{if(i(13,k=!1),0<e.count){let r=[];e.items.forEach(e=>{let t=new URL(`${g}/casino/games/${e.gameId}`);t.searchParams.append("datasource",f),r.push(fetch(t.href).then(e=>e.json()))}),Promise.all(r).then(e=>{K=e.map(e=>e[0]),window.postMessage({type:"MostPlayedData",mostPlayedGames:K},window.location.href)})}else i(25,W=!0)}),i(29,l=""),i(23,H=!1),i(18,O=!1),i(24,z=!0));break;default:i(23,H=!1),i(18,O=!1),i(24,z=!1),i(29,l=e.data.itemId),setTimeout(()=>{window.postMessage({type:"CategoryUpdate",itemId:l},window.location.href)},100)}},ae=e=>{if(e.data)switch(e.data.type){case"CategoryChange":ie(e);break;case"UserSessionID":i(17,a=e.data.session),i(16,o=e.data.userID),o&&o.length&&a&&0<a.length&&le(g,a,o);break;case"CategoriesLoadedForSlider":window.postMessage({type:"SetSliderIndex",index:0,categoryData:{id:"LOBBY"}},window.location.href);break;case"SetUnfavoredGame":he(`${g}/player/${o}/favorites`,a,o,e.data.id,e.data.triggerFactor);break;case"SetFavoredGame":de(`${g}/player/${o}/favorites`,a,o,e.data.id,e.data.triggerFactor);break;case"GetFavoredGame":o&&o.length&&a&&0<a.length&&le(g,a,o);break;case"SearchedItemClicked":ye(e.data.gameId);break;case"UpdateFilters":Se(e.data.vendorsArray),ve();break;case"ClearFilters":we(e.data.vendorsArray),ve();break;case"ApplyFilters":window.postMessage({type:"CategoryUpdate",itemId:re},window.location.href),ve();break;case"CategoryVendors":re=e.data.categoryid,ve();break;case"GameHovered":D=!0;break;case"GameBlur":D=!1}},se=e=>{let n=new URL(`${g}/player/${o}/games/most-played`);e.limit&&n.searchParams.append("limit",e.limit),e.order&&n.searchParams.append("order",e.order);var t=e.device;return t?"PC"===t?n.searchParams.append("device","Desktop"):n.searchParams.append("device","Mobile"):n.searchParams.append("device","All"),e.rounds&&n.searchParams.append("rounds",e.rounds),new Promise((t,r)=>{fetch(n.href).then(e=>e.json()).then(e=>{t(e),window.postMessage({type:"AddNewCategory",category:{name:"Most Played",id:"MOSTPLAYED"}},window.location.href),window.postMessage({type:"MostPlayedGames",data:e},window.location.href)}).catch(e=>{console.error(e),r(e)})})};let le=(e,t,r)=>{"true"==T&&v&&r&&(fetch(`${e}/player/${r}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>(n=e,n&&(window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:n},window.location.href),ue(n.items)),n)).catch(e=>{console.error(e)}),O&&pe())},ce=(e,t,r)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>(n=e,O&&pe(),n&&window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:n},window.location.href),n)).catch(e=>{console.error(e)})};const ue=(e=[])=>(J=[],0<e.length&&e.forEach(e=>{J.push(e.id)}),J);let de=(t,r,e,n,o)=>{J.includes(n)||J.push(n);var i={items:J},i={method:"POST",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t,i).then(e=>e.json()).then(e=>{window.postMessage({type:`AddFavoriteThumbnail_${n}`},window.location.href),ce(t,r)}).catch(e=>{console.error("Err",e)})};const he=(t,r,e,n,o)=>{J.includes(n)&&(J=J.filter(e=>e!=n)),fetch(`${t}/${n}`,{method:"DELETE",headers:{"X-SessionID":r}}).then(e=>e.json()).then(e=>{window.postMessage({type:`RemoveFavoriteThumbnail_${n}`},window.location.href),ce(t,r)})},pe=()=>{window.postMessage({type:"ShowFavoriteSection",receivedFavoriteResults:n},window.location.href)},me=e=>{e=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));if(e)return e[2]},ge=()=>{if(g&&f&&y&&(i(22,j=!0),q.length<2)){let e=me(`searchedGamesWds_${F}`),t=[];e&&(t=e.split(",")),1!=H||G||(i(21,B=H),i(23,H=!1));let r=[],n=0,o=t.length;if(0<o){for(n=0;n<o;n++){let e=new URL(`${g}/casino/games/${t[n]}`);e.searchParams.append("language",y),e.searchParams.append("datasource",f),e.searchParams.append("platform",dn(Z)),r.push((e=>new Promise((t,r)=>{i(13,k=!0),fetch(e).then(e=>e.json()).then(e=>{i(13,k=!1),t(e[0])}).catch(e=>{i(14,L=!0),i(13,k=!1),console.error(e),r(e)})}))(e))}Promise.all(r).then(e=>{i(27,s=e),Ce({},s)})}else Ce({},{})}},fe=()=>{i(22,j=!1),q.length<2&&!D&&(i(20,U=!1),i(27,s=[]),i(19,R=!1),i(23,H=B),i(21,B=!1),!1===H&&window.postMessage({type:"CategoryUpdate",itemId:l},window.location.href),window.postMessage({type:"OutOfRecentSearches"},window.location.href))},ye=e=>{ee=me(`searchedGamesWds_${F}`),ee=ee?ee.split(","):[],-1===ee.indexOf(e)&&(ee.push(e),e=ee.join(","),document.cookie=`searchedGamesWds_${F}=`+e)},ve=()=>{var e=JSON.parse(sessionStorage.getItem("vendorFiltersByCategory"));e&&re&&(e[re]?i(33,te=e[re].length):i(33,te=0))},be=()=>{i(53,X=!0),i(12,q=""),i(27,s=[]),i(19,R=!1),fe()},we=e=>{window.postMessage({type:"AvailableVendors",venArray:e},window.location.href)},Se=e=>{window.postMessage({type:"UpdateSelectedVendorFilters",venArray:e},window.location.href)},Ce=(e,t)=>{window.postMessage({type:"RecentSearchData",searchData:t},window.location.href)},Ee=()=>{window.postMessage({type:"ShowFilterModal"},window.location.href)},xe=()=>{window.postMessage({type:"ClearVendorFilters"},window.location.href)},Te=(e,t)=>{t&&window.postMessage({type:"SearchData",searchData:t,receivedFavoriteResults:n},window.location.href)},_e=()=>{window.postMessage({type:"PanicButtonClicked"},window.location.href)},Fe=()=>{u&&(d=u.getBoundingClientRect().top+document.body.getBoundingClientRect().top),document.documentElement.scrollTop>d||130<d?i(26,V=!0):i(26,V=!1)};return Pe(()=>(window.addEventListener("scroll",Fe,!1),window.addEventListener("message",ae,!1),()=>{window.removeEventListener("scroll",Fe),window.removeEventListener("message",ae)})),e.$$set=e=>{"endpoint"in e&&i(0,g=e.endpoint),"datasource"in e&&i(1,f=e.datasource),"lang"in e&&i(2,y=e.lang),"session"in e&&i(3,v=e.session),"userid"in e&&i(4,b=e.userid),"clientstyling"in e&&i(5,w=e.clientstyling),"clientstylingurl"in e&&i(6,S=e.clientstylingurl),"categorybackground"in e&&i(7,C=e.categorybackground),"visiblegames"in e&&i(47,E=e.visiblegames),"alternativesearch"in e&&i(8,x=e.alternativesearch),"favorites"in e&&i(9,T=e.favorites),"mostplayed"in e&&i(48,_=e.mostplayed),"lobbyid"in e&&i(49,F=e.lobbyid),"containermaxwidth"in e&&i(10,A=e.containermaxwidth),"haspanicbutton"in e&&i(11,P=e.haspanicbutton),"mostplayedrounds"in e&&i(50,M=e.mostplayedrounds),"activecategory"in e&&i(51,I=e.activecategory)},e.$$.update=()=>{if(4096&e.$$.dirty[0]&&q&&(2<=q.length?i(53,X=!0):i(53,X=!1)),4103&e.$$.dirty[0]|6291456&e.$$.dirty[1])if(2<=q.length){i(20,U=!0);let e=new URL(`${g}/casino/games`);e.searchParams.append("datasource",f),e.searchParams.append("expand","vendor"),e.searchParams.append("platform",dn(Z)),e.searchParams.append("language",y),e.searchParams.append("pagination","offset=0,limit=30"),e.searchParams.append("filter",`name=${q}`),n=e,new Promise((t,r)=>{i(13,k=!0),fetch(n).then(e=>e.json()).then(e=>{i(13,k=!1),t(e)}).catch(e=>{i(14,L=!0),i(13,k=!1),console.error(e),r(e)})}).then(e=>{i(27,s=e),Te(0,e)})}else X||ge(),G&&i(52,G=!1);var n;1048576&e.$$.dirty[1]&&I&&(i(29,l=I),ie({data:{itemId:l}})),25&e.$$.dirty[0]&&v&&b&&g&&(i(15,$=!0),i(17,a=v),i(16,o=b)),263&e.$$.dirty[0]&&g&&f&&y&&x&&(()=>{if(g||(N="Endpoint is missing! Please provide a valid endpointURL.",i(14,L=!0),i(13,k=!1),console.error(N)),f||(N="Datasource is missing! Please provide a valid datasource.",i(14,L=!0),i(13,k=!1),console.error(N)),y&&2==y.length||(N="Language is missing! Please provide a valid language (alpha2code)",i(14,L=!0),i(13,k=!1),console.error(N)),!L){i(13,k=!0),"true"==T&&le(g,a,o);let e=new URL(`${g}/casino/groups/${f}`);e.searchParams.append("language",y),e.searchParams.append("platform",dn(Z)),n=e,new Promise((t,r)=>{i(13,k=!0),fetch(n).then(e=>e.json()).then(e=>{i(13,k=!1),t(e)}).catch(e=>{i(14,L=!0),i(13,k=!1),console.error(e),r(e)})}).then(e=>{e&&(h=e.items.filter(e=>0<e.games.total),i(28,Y=h.map(e=>e.id)),i(13,k=!1))}),"PC"!==dn(Z)&&(p.addEventListener("focusin",e=>{i(32,Q=!0)}),p.addEventListener("focusout",e=>{i(32,Q=!1)})),ve(),u=c,u&&(d=u.getBoundingClientRect().top-document.body.getBoundingClientRect().top)}var n})(),32&e.$$.dirty[0]&&w&&(()=>{let e=document.createElement("style");e.innerHTML=w,m.appendChild(e)})(),64&e.$$.dirty[0]&&S&&(()=>{let t=document.createElement("style");fetch(new URL(S)).then(e=>e.text()).then(e=>{t.innerHTML=e,m&&setTimeout(()=>{m.appendChild(t)},1)})})()},[g,f,y,v,b,w,S,C,x,T,A,P,q,k,L,$,o,a,O,R,U,B,j,H,z,W,V,s,Y,l,c,p,Q,te,m,r,Z,pe,ge,fe,()=>{window.postMessage({type:"scroll"},window.location.href)},be,Ee,xe,(e,t)=>{re=t,window.postMessage({type:`CategoryData_${t}`,categoryId:t,visiblegames:E,receivedFavoriteResults:n},window.location.href)},Te,_e,E,_,F,M,I,G,X,function(e){Me[e?"unshift":"push"](()=>{p=e,i(31,p)})},function(){q=this.value,i(12,q)},()=>be(),()=>xe(),()=>{Ee()},function(e){Me[e?"unshift":"push"](()=>{c=e,i(30,c)})},function(e){Me[e?"unshift":"push"](()=>{p=e,i(31,p)})},function(){q=this.value,i(12,q)},()=>be(),()=>xe(),()=>{Ee()},function(e){Me[e?"unshift":"push"](()=>{c=e,i(30,c)})},()=>_e(),function(e){Me[e?"unshift":"push"](()=>{m=e,i(34,m)})}]}class Uo extends F{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}.CategoriesLobby{margin:0 auto}.PanicSectionMobile{flex-direction:column;margin-bottom:40px}.PanicSection{display:flex;justify-content:center;align-items:center;gap:10px}.PanicText{display:flex;justify-content:center;align-items:center;gap:10px}p{font-size:16px;color:var(--emfe-w-color-white, #FFFFFF)}.PanicButton{border-radius:2px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:240px;height:48px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}[type=\"search\"]{appearance:none}.SrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.CategoryContainer{display:block}@media screen and (max-width: 1300px){.CategoryContainer{padding:0 2.4%}}.SearchLoading{color:var(--emfe-w-color-white, #FFFFFF);font-size:14.4px;margin-top:16px;text-align:center}.SearchContainer{flex:3;width:100%;max-width:640px;margin:0 auto}.SearchContainer.SearchTruncated{margin:auto 0 auto 25%}.SearchContainer.SearchTruncated .SearchInput{tabindex:999;padding:20px 12px 20px 40px}.SearchContainer .SearchWrapper{position:relative;display:flex;color:#c7d2fe}.SearchContainer .SearchWrapper .SearchIcon{position:absolute;display:flex;align-items:center;top:0;bottom:0;left:1.2%;pointer-events:none}.SearchContainer .SearchWrapper .SearchIcon svg{width:25.6px;height:25.6px;display:block;vertical-align:middle;fill:#c7d2fe}.SearchContainer .SearchWrapper .SearchInput{width:100%;display:block;padding:12px 12px 12px 40px;border-radius:6.4px;border-color:transparent;font-size:16px;background-color:rgba(156, 163, 175, 0.25);color:#e0e7ff}.SearchContainer .SearchWrapper .SearchInput::-webkit-search-decoration,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-cancel-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchContainer .SearchWrapper .SearchInput::placeholder{color:white}.SearchContainer .SearchWrapper .SearchInput:focus{background-color:white;color:#111827;outline:2px solid transparent;outline-offset:2px}.SearchContainer .SearchWrapper .SearchInput:focus::placeholder{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within .SearchIcon svg{fill:#9ca3af}.FiltersButtonsContainer{display:inline-flex;flex:1;grid-gap:20px;flex-direction:row-reverse}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;padding:10px 22px;border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.ClearFilterButtonWrapper{border:1px solid var(--emfe-w-color-secondary, #FD2839);color:var(--emfe-w-color-secondary, #FD2839)}.FilterIconContainer,.ClearIcon{position:relative;padding-left:5px}.FilterIconContainer{top:2px}.ClearIcon{position:relative;top:1px}.ClearIcon svg{width:14px}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;justify-content:center;align-items:center}.NumberOfFiltersContainer{display:block;line-height:0px;border-radius:50%;border:2px solid var(--emfe-w-color-primary, #D0046C);background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);font-size:12px;position:absolute;top:-5px;left:22px}.NumberOfFiltersContainer .NumberOfFilters{display:inline-block;padding-top:50%;padding-bottom:50%;margin-left:3px;margin-right:3px}.CategoriesHeaderSection{width:100%;display:inline-flex;flex-direction:row;margin-top:30px}.CategoriesHeaderMobileSection{position:fixed;bottom:0;left:0;flex-direction:row-reverse;z-index:1}.CategoriesHeaderMobileSection .ClearFilterButtonWrapper{display:none}.CategoriesHeaderMobileSection .SearchContainer{flex:1;max-width:unset;margin:unset;background-color:#d0056c;z-index:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{color:var(--emfe-w-color-white, #FFFFFF)}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchIcon{left:2.4%}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{padding:12px;border-radius:0;background-color:#d0056c;color:var(--emfe-w-color-white, #FFFFFF);text-align:center;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:-ms-input-placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::-ms-input-placeholder{color:white;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper path{fill:var(--emfe-w-color-white, #FFFFFF)}.CategoriesHeaderMobileSection .FiltersButtonsContainer{flex:1}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{position:relative;width:100%;display:flex;flex-direction:row-reverse;border:1px solid var(--emfe-w-color-white, #FFFFFF);border-radius:0;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-primary, #D0046C)}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{position:absolute;left:40px;top:revert;padding-left:0}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer path{fill:var(--emfe-w-color-primary, #D0046C)}.CategoriesHeaderMobileSection .NumberOfFiltersContainer{font-size:8px;left:15px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection{flex-direction:row;position:relative;margin-top:30px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer{background-color:var(--emfe-w-color-contrast, #07072A);padding:0 2.4%}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{justify-content:center}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{width:100%;border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:6.4px;background-color:transparent;color:var(--emfe-w-color-white, #FFFFFF);padding:12px 3.6%}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:active,.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:focus{width:100%}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer{position:absolute;top:75px;right:0;font-size:13px;gap:6px}@media screen and (max-width: 1300px){.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer{right:2.4%}}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{display:none}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{border-radius:5px;border:1px solid var(--emfe-w-color-white, #FFFFFF);background:transparent;color:var(--emfe-w-color-white, #FFFFFF);padding:6px 16px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .ClearFilterButtonWrapper{padding:6px 16px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .ClearFilterButtonWrapper .ClearIcon{display:none}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection.CategoriesHeaderSearchActive{top:0}.CategoriesHeaderSectionAltDesign .FiltersActive.ClearFilterButtonWrapper{display:inline-flex}.CategoriesHeaderSectionAltDesign .ClearSearchButton,.CategoriesHeaderSectionAltDesign .ClearSearchButtonMobile{right:2.4%;top:9px}.ClearFilterMobileButtonWrapper .ClearIcon svg{width:12px}.CategoriesHeaderSearchActive{position:fixed;bottom:unset;top:70px;margin-top:0}.CategoriesHeaderSearchActive .SearchContainer{background-color:white}.CategoriesHeaderSearchActive .SearchContainer .SearchWrapper .SearchInput{background-color:white;color:var(--emfe-w-color-black, #000000)}.SearchStickTop{margin-top:0}@media(max-width: 768px){.SearchContainer{margin:auto 3% auto 0%}}.SearchBarPlaceholder{display:block;width:100%;height:46px}.SearchBarPlaceholder{display:block;width:100%;height:46px}.ClearSearchButton,.ClearSearchButtonMobile{cursor:pointer;position:absolute;right:14px;top:11px}.ClearSearchButton .CloseIconContainer,.ClearSearchButtonMobile .CloseIconContainer{width:25px;height:25px}.ClearSearchButton .CloseIconWrapper,.ClearSearchButtonMobile .CloseIconWrapper{height:25px;width:3px;margin-left:12px;background-color:var(--emfe-w-color-white, #FFFFFF);transform:rotate(45deg);Z-index:1}.ClearSearchButton .CloseIcon,.ClearSearchButtonMobile .CloseIcon{height:25px;width:3px;background-color:var(--emfe-w-color-white, #FFFFFF);transform:rotate(90deg);Z-index:2}.SearchContainer .CloseIconWrapper,.SearchContainer .CloseIcon{background-color:var(--emfe-w-color-secondary, #FD2839)}.ClearSearchButtonMobile{display:none}.CategoriesHeaderSearchActive .ClearSearchButtonMobile{display:block}.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIconWrapper,.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIcon{background-color:var(--emfe-w-color-secondary, #FD2839)}</style>",s(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Go,No,r,{endpoint:0,datasource:1,lang:2,session:3,userid:4,clientstyling:5,clientstylingurl:6,categorybackground:7,visiblegames:47,alternativesearch:8,favorites:9,mostplayed:48,lobbyid:49,containermaxwidth:10,haspanicbutton:11,mostplayedrounds:50,activecategory:51},[-1,-1,-1,-1]),e&&(e.target&&j(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["endpoint","datasource","lang","session","userid","clientstyling","clientstylingurl","categorybackground","visiblegames","alternativesearch","favorites","mostplayed","lobbyid","containermaxwidth","haspanicbutton","mostplayedrounds","activecategory"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$set({endpoint:e}),T()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$set({datasource:e}),T()}get lang(){return this.$$.ctx[2]}set lang(e){this.$set({lang:e}),T()}get session(){return this.$$.ctx[3]}set session(e){this.$set({session:e}),T()}get userid(){return this.$$.ctx[4]}set userid(e){this.$set({userid:e}),T()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$set({clientstyling:e}),T()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$set({clientstylingurl:e}),T()}get categorybackground(){return this.$$.ctx[7]}set categorybackground(e){this.$set({categorybackground:e}),T()}get visiblegames(){return this.$$.ctx[47]}set visiblegames(e){this.$set({visiblegames:e}),T()}get alternativesearch(){return this.$$.ctx[8]}set alternativesearch(e){this.$set({alternativesearch:e}),T()}get favorites(){return this.$$.ctx[9]}set favorites(e){this.$set({favorites:e}),T()}get mostplayed(){return this.$$.ctx[48]}set mostplayed(e){this.$set({mostplayed:e}),T()}get lobbyid(){return this.$$.ctx[49]}set lobbyid(e){this.$set({lobbyid:e}),T()}get containermaxwidth(){return this.$$.ctx[10]}set containermaxwidth(e){this.$set({containermaxwidth:e}),T()}get haspanicbutton(){return this.$$.ctx[11]}set haspanicbutton(e){this.$set({haspanicbutton:e}),T()}get mostplayedrounds(){return this.$$.ctx[50]}set mostplayedrounds(e){this.$set({mostplayedrounds:e}),T()}get activecategory(){return this.$$.ctx[51]}set activecategory(e){this.$set({activecategory:e}),T()}}return customElements.get("casino-page")||customElements.define("casino-page",Uo),Uo});
|
|
2
2
|
//# sourceMappingURL=casino-page.js.map
|