(()=>{var e={264:function(e,t,n){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},o=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var o=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof o){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;rt[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n1?o(r[1]):"")}})}(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t)),n&&"string"!=typeof n&&(n=String(n));var r,o=document;if(n&&(void 0===e.location||n!==e.location.href)){n=n.toLowerCase(),(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var i=o.createElement("a");i.href=t,r&&(o.body.appendChild(i),i.href=i.href);var a=o.createElement("input");if(a.type="url",a.value=t,":"===i.protocol||!/:/.test(i.href)||!a.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var s=new e.URLSearchParams(this.search),l=!0,c=!0,u=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),l&&(c=!1,u.search=s.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var h=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==h&&(h=this.search,c&&(l=!1,this.searchParams._fromString(this.search),l=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";var e;n(264);class t{constructor(...e){Object.defineProperty(this,"_params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lowercaseParams",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._params=new URLSearchParams(...e),this._lowercaseParams=r(this._params)}has(e){return this._lowercaseParams.has(e.toLowerCase())}get(e){var t,n;return null!==(n=null!==(t=this._params.get(e))&&void 0!==t?t:this._lowercaseParams.get(e.toLowerCase()))&&void 0!==n?n:void 0}delete(e){this.findAllNames(e).forEach((e=>this._params.delete(e))),this._lowercaseParams.delete(e.toLowerCase())}set(e,t){const n=this.findAllNames(e),r=n.length>0&&-1===n.indexOf(e)?n[0]:e;n.forEach((e=>{e!==r&&this._params.delete(e)})),this._params.set(r,t),this._lowercaseParams.set(e.toLowerCase(),t)}transform(e){const t=new URLSearchParams;this._params.forEach(((n,r)=>{var o,i;const a=e(r,n);t.append(null!==(o=a.newKey)&&void 0!==o?o:r,null!==(i=a.newValue)&&void 0!==i?i:n)})),this._params=t,this._lowercaseParams=r(t)}toString(){return this._params.toString()}findAllNames(e){const t=e.toLowerCase(),n=[];return this._params.forEach(((e,r)=>{r.toLowerCase()===t&&n.push(r)})),n}}function r(e){const t=new URLSearchParams;return e.forEach(((e,n)=>t.append(n.toLowerCase(),e))),t}function o(n,r,{cdtConfig:{launchParamsRenameMap:o,launchAliasRenameMap:i,gameCodesToAliasMap:a,sharedBundleLocation:s},versionsConfig:l},c){const u=new t(n.search),h=function(t,n){var r;if(t.get(e.LaunchAlias)||"dl"===t.get(e.Runtime))return;const o=t.get(e.Game)||t.get(e.GameType)||t.get(e.GameGroup),i=t.get(e.TableId)||t.get(e.GameTableId);return i?`direct_launch_${i}`:o?null!==(r=n[o])&&void 0!==r?r:`lobby_launch_${o}`:void 0}(u,null!=a?a:{});h&&u.set(e.LaunchAlias,h);const f=function(t,n){const r="live_html5_preview",o="1"===function(e){var t;const n=RegExp(`${e}[^;]+`).exec(document.cookie);return window.decodeURIComponent(null!==(t=null==n?void 0:n.toString().replace(/^[^=]+./,""))&&void 0!==t?t:"")}(r)||"1"===function(e){var t,n;try{return null!==(n=null!==(t=sessionStorage.getItem(e))&&void 0!==t?t:localStorage.getItem(e))&&void 0!==n?n:""}catch(e){return""}}(r)||"1"===t.searchParams.get(e.Preview)||"preview"===t.searchParams.get(e.Env);return{preview:o,number:o?n.preview:n.prod}}(n,l);f.preview&&u.set(e.Preview,"1"),u.set(e.RedirectTimestamp,c.toString()),u.set(e.BackUrl,r);const{entryPath:p,resultPath:d}=function(e,t,n){const r=("/"===e[0]?e.slice(1):e).split("/"),o=r.pop();return{resultPath:[...n?[n]:[...r,"bundles"],t,o].join("/"),entryPath:n?0===r.length?".":r.join("/"):void 0}}(n.pathname,f.number,s);p&&u.set(e.Entry,p),u.transform(((t,n)=>({newKey:null==o?void 0:o[t],newValue:t===e.LaunchAlias?null==i?void 0:i[n]:void 0})));const m=new URL(n.origin);return m.pathname=d,m.search=u.toString(),m}!function(e){e.RedirectTimestamp="redirect_time",e.TableId="tableId",e.GameTableId="gameTableId",e.GameType="gameType",e.Game="game",e.GameGroup="gameGroup",e.Env="env",e.Preview="preview",e.BackUrl="backUrl",e.LaunchAlias="launch_alias",e.Runtime="runtime",e.Entry="_entry"}(e||(e={}));var i,a,s,l=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};!function(e){function t(e){if("string"!=typeof e)throw new Error("Response is not a string");const t=JSON.parse(e);if(!(n(i=t)&&o.every((e=>{return void 0===(t=i[e])||n(t)&&Object.keys(t).every((e=>r(t[e])));var t}))&&r(i.sharedBundleLocation)&&(a=i.obsoleteFlowsAllowed,void 0===a||"boolean"==typeof a)))throw new Error("Wrong CDT config format");var i,a;return t}function n(e){return null!=e&&"object"==typeof e}function r(e){return void 0===e||"string"==typeof e}const o=["launchAliasRenameMap","launchParamsRenameMap","gameCodesToAliasMap"];e.load=function(e){return new Promise(((n,r)=>{const o=new XMLHttpRequest;o.onload=()=>{if(o.status>=400&&o.status<600)r(new Error(`Request failed ${o.status}: ${o.statusText}`));else try{n(t(o.response))}catch(e){r(new Error("Failed to parse response: "+e))}},o.onerror=()=>r(new Error(`Error. Config ${e} can't be loaded`)),o.open("GET",e+`?${Date.now()}`),o.send()}))}}(i||(i={})),function(e){e.load=function(e){return l(this,void 0,void 0,(function*(){const t=e.origin+e.pathname.split("/").slice(0,-1).join("/"),n=e=>`${t}/${e}`,[r,o]=yield Promise.all([i.load(n("config.json")),s.load(n("redirectConfig.php"),n("redirectConfig.js"))]);return{cdtConfig:r,versionsConfig:o}}))}}(a||(a={})),function(e){function t(e){return new Promise(((t,n)=>{const r=document.createElement("script");document.body.appendChild(r),r.onload=()=>t(),r.onerror=()=>n(new Error(`Script ${e} loading failed`)),r.async=!0,r.src=e+`?${Date.now()}`}))}e.load=function(e,n){return l(this,void 0,void 0,(function*(){try{yield t(e)}catch(r){console.warn(`Config ${e} can't be loaded. Trying to load fallback config: ${n}`),yield t(n)}if(!redirectUrls.preview||!redirectUrls.prod)throw new Error("Missing preview or prod version in redirect config");return redirectUrls}))}}(s||(s={}));var c=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};window.live_launchManager=(e,n)=>{const r=(...e)=>console.log("[HTML5 Web Launcher]",e.join(" "));r("v","6.2.0"),r("Games location:",window.html5live_url),r("Input URL query:",window.location.search);try{const i=new URL(window.html5live_url,window.location.href);i.search=function(e,n){const r={game:"gametype",gametableid:"tableId",limitmin:"minBet",limitmax:"maxBet",livegame:"gametype",tableid:"tableId",minlimit:"minBet",maxlimit:"maxBet"},o=new t(e);return o.transform((e=>({newKey:r[e]}))),n&&o.set("env","preview"),o.toString()}(window.location.search,e.isPreviewMode()),r("Entry url:",i.href),function(e,t,n=!1){return c(this,void 0,void 0,(function*(){const r=Date.now(),i=yield a.load(e);if(n&&!i.cdtConfig.obsoleteFlowsAllowed)throw new Error("Obsolete redirect flow is not allowed");return o(e,t,i,r)}))}(i,"",!0).then((e=>(r("Client url prepared",e),{ok:!0,launch:()=>{r("Navigating to redirect url:",e),window.open(e,"_self")}})),(e=>(r("Redirect preparation failed",e),{ok:!1,launch:()=>r("Not able to redirect")}))).then((({ok:e,launch:t})=>n({needsLiveHTML5Client:t=>e&&-1!==["swl","trvl","sbl","bjl","ubjl","abjl","chel","brag","rol","rofl","rodzl","qrol","7bal","bal","3brgl","dtl","nc_7bal","nc_bal","hilo","hilol","sprol","studpoker","aog","huhl","abjl","cspljpt","bfbl","qabjl","qbjl","dj_bal","aogrol","aogrofl","sbml","cspl","sbdl","7eml","bjl_magic7bj","msbjl","sgrol","cbjl","gosl","football-rol","football-rofl","aogjbrol","dndbngl","bs_bal","bs_dtl","f_rofl","f_rol","abwl","bfbl_g","btbfbl","fbrol","abl","frofl","frol","mdl","wwtbaml","wwtbam","bs_pokl","bs_bal","qabjlp","mroszl","ubal","dj_ubal","wwtbamrol","ejl","qrodzl","wells","mjpswl","tpl","swle","tgcsl","fbrodzl","fbbjl","cml","jsrrl","fbbl","cbjl","ejpl","bbwl","jmnjl","smplrol"].indexOf(t),launchLiveHTML5Client:()=>(t(),e)})))}catch(e){throw r("Entry url preparation failed",e),e}}})()})();