/*! For license information please see main.7e77400aa9e3efc237ea.js.LICENSE.txt */
(self.webpackChunkserver_side_rendering=self.webpackChunkserver_side_rendering||[]).push([[179],{98255:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=98255,e.exports=t},54679:(e,t,n)=>{"use strict";n.d(t,{BW:()=>s,HM:()=>x,KX:()=>h,Ne:()=>P,PM:()=>p,Xn:()=>U,Zg:()=>g,cf:()=>M,eV:()=>L,v1:()=>T});var i=n(57826),r=n(4309),o=n(15982);let a=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const s={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};s[s.Get]="Get",s[s.Post]="Post",s[s.Put]="Put",s[s.Delete]="Delete",s[s.Options]="Options",s[s.Head]="Head",s[s.Patch]="Patch";const c={Unsent:0,Open:1,HeadersReceived:2,Loading:3,Done:4,Cancelled:5};c[c.Unsent]="Unsent",c[c.Open]="Open",c[c.HeadersReceived]="HeadersReceived",c[c.Loading]="Loading",c[c.Done]="Done",c[c.Cancelled]="Cancelled";const l={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};l[l.Basic]="Basic",l[l.Cors]="Cors",l[l.Default]="Default",l[l.Error]="Error",l[l.Opaque]="Opaque";const d={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};d[d.NONE]="NONE",d[d.JSON]="JSON",d[d.FORM]="FORM",d[d.FORM_DATA]="FORM_DATA",d[d.TEXT]="TEXT",d[d.BLOB]="BLOB",d[d.ARRAY_BUFFER]="ARRAY_BUFFER";const u={Text:0,Json:1,ArrayBuffer:2,Blob:3};u[u.Text]="Text",u[u.Json]="Json",u[u.ArrayBuffer]="ArrayBuffer",u[u.Blob]="Blob";class p{constructor(e){this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof p?e.forEach(((e,t)=>{e.forEach((e=>this.append(t,e)))})):Object.keys(e).forEach((t=>{const n=Array.isArray(e[t])?e[t]:[e[t]];this.delete(t),n.forEach((e=>this.append(t,e)))})))}static fromResponseHeaderString(e){const t=new p;return e.split("\n").forEach((e=>{const n=e.indexOf(":");if(n>0){const i=e.slice(0,n),r=e.slice(n+1).trim();t.set(i,r)}})),t}append(e,t){const n=this.getAll(e);null===n?this.set(e,t):n.push(t)}delete(e){const t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)}forEach(e){this._headers.forEach(((t,n)=>e(t,this._normalizedNames.get(n),this._headers)))}get(e){const t=this.getAll(e);return null===t?null:t.length>0?t[0]:null}has(e){return this._headers.has(e.toLowerCase())}keys(){return Array.from(this._normalizedNames.values())}set(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)}values(){return Array.from(this._headers.values())}toJSON(){const e={};return this._headers.forEach(((t,n)=>{const i=[];t.forEach((e=>i.push(...e.split(",")))),e[this._normalizedNames.get(n)]=i})),e}getAll(e){return this.has(e)&&this._headers.get(e.toLowerCase())||null}entries(){throw new Error('"entries" method is not implemented on Headers class')}mayBeSetNormalizedName(e){const t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)}}class h{constructor(e={}){const{body:t,status:n,headers:i,statusText:r,type:o,url:a}=e;this.body=null!=t?t:null,this.status=null!=n?n:null,this.headers=null!=i?i:null,this.statusText=null!=r?r:null,this.type=null!=o?o:null,this.url=null!=a?a:null}merge(e){return new h({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})}}let m=(()=>{class e extends h{constructor(){super({status:200,statusText:"Ok",type:l.Default,headers:new p})}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class g{}class f{}function v(e){if("string"!=typeof e)return e;switch(e.toUpperCase()){case"GET":return s.Get;case"POST":return s.Post;case"PUT":return s.Put;case"DELETE":return s.Delete;case"OPTIONS":return s.Options;case"HEAD":return s.Head;case"PATCH":return s.Patch}throw new Error(`Invalid request method. The method "${e}" is not supported.`)}class b{encodeKey(e){return y(e)}encodeValue(e){return y(e)}}function y(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class C{constructor(e="",t=new b){this.rawParams=e,this.queryEncoder=t,this.paramsMap=function(e=""){const t=new Map;return e.length>0&&e.split("&").forEach((e=>{const n=e.indexOf("="),[i,r]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],o=t.get(i)||[];o.push(r),t.set(i,o)})),t}(e)}clone(){const e=new C("",this.queryEncoder);return e.appendAll(this),e}has(e){return this.paramsMap.has(e)}get(e){const t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null}getAll(e){return this.paramsMap.get(e)||[]}set(e,t){if(null==t)return void this.delete(e);const n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)}setAll(e){e.paramsMap.forEach(((e,t)=>{const n=this.paramsMap.get(t)||[];n.length=0,n.push(e[0]),this.paramsMap.set(t,n)}))}append(e,t){if(null==t)return;const n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}appendAll(e){e.paramsMap.forEach(((e,t)=>{const n=this.paramsMap.get(t)||[];for(let t=0;t<e.length;++t)n.push(e[t]);this.paramsMap.set(t,n)}))}replaceAll(e){e.paramsMap.forEach(((e,t)=>{const n=this.paramsMap.get(t)||[];n.length=0;for(let t=0;t<e.length;++t)n.push(e[t]);this.paramsMap.set(t,n)}))}toString(){const e=[];return this.paramsMap.forEach(((t,n)=>{t.forEach((t=>e.push(this.queryEncoder.encodeKey(n)+"="+this.queryEncoder.encodeValue(t))))})),e.join("&")}delete(e){this.paramsMap.delete(e)}}class S{json(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body}text(e="legacy"){if(this._body instanceof C)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(e){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error(`Invalid value for encodingHint: ${e}`)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}arrayBuffer(){return this._body instanceof ArrayBuffer?this._body:function(e){const t=new Uint16Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t.buffer}(this.text())}blob(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")}}class x extends S{constructor(e){super(),this._body=e.body,this.status=e.status,this.ok=this.status>=200&&this.status<=299,this.statusText=e.statusText,this.headers=e.headers,this.type=e.type,this.url=e.url}toString(){return`Response with status: ${this.status} ${this.statusText} for URL: ${this.url}`}}const w=/^\)\]\}',?\n/;class E{constructor(e,t,n){this.request=e,this.response=new r.Observable((i=>{const r=t.build();r.open(s[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(r.withCredentials=e.withCredentials);const o=()=>{let t=1223===r.status?204:r.status,o=null;204!==t&&(o=void 0===r.response?r.responseText:r.response,"string"==typeof o&&(o=o.replace(w,""))),0===t&&(t=o?200:0);const a=p.fromResponseHeaderString(r.getAllResponseHeaders()),s=("responseURL"in(c=r)?c.responseURL:/^X-Request-URL:/m.test(c.getAllResponseHeaders())?c.getResponseHeader("X-Request-URL"):null)||e.url;var c;const l=r.statusText||"OK";let d=new h({body:o,status:t,headers:a,statusText:l,url:s});null!=n&&(d=n.merge(d));const u=new x(d);if(u.ok=(e=>e>=200&&e<300)(t),u.ok)return i.next(u),void i.complete();i.error(u)},a=e=>{let t=new h({body:e,type:l.Error,status:r.status,statusText:r.statusText});null!=n&&(t=n.merge(t)),i.error(new x(t))};if(this.setDetectedContentType(e,r),null==e.headers&&(e.headers=new p),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach(((e,t)=>r.setRequestHeader(t,e.join(",")))),null!=e.responseType&&null!=r.responseType)switch(e.responseType){case u.ArrayBuffer:r.responseType="arraybuffer";break;case u.Json:r.responseType="json";break;case u.Text:r.responseType="text";break;case u.Blob:r.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return r.addEventListener("load",o),r.addEventListener("error",a),r.send(this.request.getBody()),()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),r.abort()}}))}setDetectedContentType(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case d.NONE:break;case d.JSON:t.setRequestHeader("content-type","application/json");break;case d.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case d.TEXT:t.setRequestHeader("content-type","text/plain");break;case d.BLOB:const n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}}}class I{constructor(e="XSRF-TOKEN",t="X-XSRF-TOKEN"){this._cookieName=e,this._headerName=t}configureRequest(e){const t=(0,o["ɵgetDOM"])().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)}}let P=(()=>{class e{constructor(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}createConnection(e){return this._xsrfStrategy.configureRequest(e),new E(e,this._browserXHR,this._baseResponseOptions)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](a),i["ɵɵinject"](h),i["ɵɵinject"](f))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class T{get search(){return this.params}set search(e){this.params=e}constructor(e={}){const{method:t,headers:n,body:i,url:r,search:o,params:a,withCredentials:s,responseType:c}=e;this.method=null!=t?v(t):null,this.headers=null!=n?n:null,this.body=null!=i?i:null,this.url=null!=r?r:null,this.params=this._mergeSearchParams(a||o),this.withCredentials=null!=s?s:null,this.responseType=null!=c?c:null}merge(e){return new T({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new p(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})}_mergeSearchParams(e){return e?e instanceof C?e.clone():"string"==typeof e?new C(e):this._parseParams(e):this.params}_parseParams(e={}){const t=new C;return Object.keys(e).forEach((n=>{const i=e[n];Array.isArray(i)?i.forEach((e=>this._appendParam(n,e,t))):this._appendParam(n,i,t)})),t}_appendParam(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n.append(e,t)}}let _=(()=>{class e extends T{constructor(){super({method:s.Get,headers:new p})}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class M extends S{constructor(e){super();const t=e.url;this.url=e.url;const n=e.params||e.search;if(n){let e;if(e="object"!=typeof n||n instanceof C?n.toString():function(e){const t=new C;return Object.keys(e).forEach((n=>{const i=e[n];i&&Array.isArray(i)?i.forEach((e=>t.append(n,e.toString()))):t.append(n,i.toString())})),t}(n).toString(),e.length>0){let n="?";-1!=this.url.indexOf("?")&&(n="&"==this.url[this.url.length-1]?"":"&"),this.url=t+n+e}}this._body=e.body,this.method=v(e.method),this.headers=new p(e.headers),this.contentType=this.detectContentType(),this.withCredentials=e.withCredentials,this.responseType=e.responseType}detectContentType(){switch(this.headers.get("content-type")){case"application/json":return d.JSON;case"application/x-www-form-urlencoded":return d.FORM;case"multipart/form-data":return d.FORM_DATA;case"text/plain":case"text/html":return d.TEXT;case"application/octet-stream":return this._body instanceof N?d.ARRAY_BUFFER:d.BLOB;default:return this.detectContentTypeFromBody()}}detectContentTypeFromBody(){return null==this._body?d.NONE:this._body instanceof C?d.FORM:this._body instanceof k?d.FORM_DATA:this._body instanceof j?d.BLOB:this._body instanceof N?d.ARRAY_BUFFER:this._body&&"object"==typeof this._body?d.JSON:d.TEXT}getBody(){switch(this.contentType){case d.JSON:case d.FORM:return this.text();case d.FORM_DATA:return this._body;case d.TEXT:return this.text();case d.BLOB:return this.blob();case d.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}const O=function(){},A="object"==typeof window?window:O,k=A.FormData||O,j=A.Blob||O,N=A.ArrayBuffer||O;function R(e,t){return e.createConnection(t).response}function D(e,t,n,i){const r=e;return t?r.merge(new T({method:t.method||n,url:t.url||i,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType})):r.merge(new T({method:n,url:i}))}let L=(()=>{class e{constructor(e,t){this._backend=e,this._defaultOptions=t}request(e,t){let n;if("string"==typeof e)n=R(this._backend,new M(D(this._defaultOptions,t,s.Get,e)));else{if(!(e instanceof M))throw new Error("First argument must be a url string or Request instance.");n=R(this._backend,e)}return n}get(e,t){return this.request(new M(D(this._defaultOptions,t,s.Get,e)))}post(e,t,n){return this.request(new M(D(this._defaultOptions.merge(new T({body:t})),n,s.Post,e)))}put(e,t,n){return this.request(new M(D(this._defaultOptions.merge(new T({body:t})),n,s.Put,e)))}delete(e,t){return this.request(new M(D(this._defaultOptions,t,s.Delete,e)))}patch(e,t,n){return this.request(new M(D(this._defaultOptions.merge(new T({body:t})),n,s.Patch,e)))}head(e,t){return this.request(new M(D(this._defaultOptions,t,s.Head,e)))}options(e,t){return this.request(new M(D(this._defaultOptions,t,s.Options,e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](g),i["ɵɵinject"](T))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();function F(){return new I}function B(e,t){return new L(e,t)}let U=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[{provide:L,useFactory:B,deps:[P,T]},a,{provide:T,useClass:_},{provide:h,useClass:m},P,{provide:f,useFactory:F}]}),e})()},3317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(64762);i.__exportStar(n(54134),t),i.__exportStar(n(87683),t),i.__exportStar(n(58199),t),i.__exportStar(n(63747),t),i.__exportStar(n(62579),t),i.__exportStar(n(42071),t)},87683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CmRequestStruct=void 0;const i=n(44365);t.CmRequestStruct=i.object({url:i.string(),body:i.optional(i.any()),headers:i.optional(i.any()),reportProgress:i.optional(i.boolean()),withCredentials:i.optional(i.boolean()),responseType:i.optional(i.string()),method:i.enums(["GET","POST","PUT","PATCH","DELETE","OPTIONS"]),params:i.optional(i.any()),urlWithParams:i.optional(i.string())})},58199:(e,t)=>{"use strict";function n(e,t){const n={method:e.method,mode:t?"cors":"same-origin",cache:"no-store",credentials:e.withCredentials?"same-origin":"omit",headers:i(e.headers||{}),referrerPolicy:"strict-origin"};return e.body?Object.assign(Object.assign({},n),{body:"string"==typeof e.body?e.body:JSON.stringify(e.body)}):n}function i(e){const t=new Headers;for(const[n,i]of Object.entries(e))t.append(n,i.toString());return t.append("Content-Type","application/json"),t.append("Accept","application/json, text/plain, */*"),t}Object.defineProperty(t,"__esModule",{value:!0}),t.parseBody=t.buildRequestInit=t.parseRequest=void 0,t.parseRequest=function(e,t=!1){return new Request(e.urlWithParams||e.url,n(e,t))},t.buildRequestInit=n,t.parseBody=function(e,t){return t?e.has("content-type")?"text/plain"===e.get("content-type")?t:JSON.parse(t):function(e){try{return JSON.parse(e)}catch(t){return e}}(t):{}}},54134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},42071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CrossMessaging=void 0;const i=n(63747);t.CrossMessaging=class{constructor(e){this.DEFAULT_FILENAME="receiver.html",this.MAX_HANDSHAKE_ATTEMPTS=5,this.HANDSHAKE_INTERVAL=500,this.handshakeFinished=!1,this.container=e||document.body}init(e){return this.parent=new i.ParentClient,this.createChild(e).then((t=>Promise.race([this.parent.init(e,t),this.startHandshake(e,t)]).finally((()=>this.handshakeFinished=!0))))}request(e){return this.parent.sendRequest(e)}executePendingRequests(){return this.parent.executeStoredRequests()}createChild(e){return new Promise((t=>{const n=document.createElement("iframe");n.src=this.getIframeSrc(e),n.style.display="none",n.setAttribute("sandbox","allow-same-origin allow-scripts"),n.onload=()=>t(n.contentWindow),this.container.appendChild(n)}))}startHandshake(e,t){return new Promise(((n,i)=>{let r=0;const o=()=>{this.handshakeFinished||(r===this.MAX_HANDSHAKE_ATTEMPTS?i():(r++,t.postMessage("handshake",e.domain)),setTimeout(o,this.HANDSHAKE_INTERVAL))};o()}))}getIframeSrc(e){const{domain:t,pathSegments:n,filename:i=this.DEFAULT_FILENAME}=e;return`${t}/${n.join("/")}/${i}`}}},62579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChildClient=void 0;const i=n(58199);t.ChildClient=class{init(){const e=this.getDomain(location.hostname),t=i=>{this.getDomain(i.origin)===e&&"handshake"===i.data&&(window.removeEventListener("message",t),window.addEventListener("message",n),parent.postMessage("handshake",i.origin))},n=t=>{this.getDomain(t.origin)===e&&t.data.id&&this.fetchDataForEvent(t,this.sendRequest)};window.addEventListener("message",t)}fetchDataForEvent(e,t){return fetch(i.parseRequest(e.data.request)).then((n=>t(e,n))).catch((t=>{console.log(t),this.sendError(e,t)}))}sendError(e,t){const n={id:e.data.id,response:{ok:!1,status:500,message:"Internal Server Error",headers:{},body:"An error occurred while processing the request.",url:""},error:{message:t.message}};parent.postMessage(n,e.origin)}sendRequest(e,t){t.text().then((n=>{const r=(e=>JSON.parse(JSON.stringify(e)))({id:e.data.id,response:{ok:t.ok||!1,status:t.status,message:t.statusText,headers:Array.from(t.headers.entries()).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{}),body:i.parseBody(t.headers,n),url:t.url}});parent.postMessage(r,e.origin)}))}getDomain(e){const t=e.replace(/^(https?:\/\/)?/,""),[n]=t.split(":");return n[0].split(".").every((e=>{const t=Number(e);return!isNaN(t)&&t>=0&&t<=255}))?n:n.split(".").slice(-2).join(".")}}},63747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParentClient=void 0;const i=n(87683),r=n(58199),o=n(44365);t.ParentClient=class{constructor(){this.target_domain="",this.container=document.body,this.requestsStack={},this.handshakeFinished=!1,this.storedRequests=[]}init(e,t){return new Promise((n=>{this.target_domain=e.domain,this.child=t;const i=e=>{e.origin===this.target_domain&&"handshake"===e.data&&(window.removeEventListener("message",i),window.addEventListener("message",r),this.handshakeFinished=!0,this.executeStoredRequests(),n())},r=e=>{const t=e.data.id;e.origin!==this.target_domain||!t||t&&!this.requestsStack[t]||this.resolveEventRequest(e)};window.addEventListener("message",i)}))}sendRequest(e){try{o.assert(e,i.CmRequestStruct)}catch(e){return Promise.reject("Request not allowed")}return this.sendPostMessage(e)}sendPostMessage(e){const t=this.createRequestForIframe(e);return this.handshakeFinished?this.executeRequest(t.request):this.storedRequests.push(t.request),t.messagePromise}executeStoredRequests(){this.storedRequests.forEach((e=>{this.handshakeFinished?this.executeRequest(e):this.executeRequestByCors(e)}))}executeRequest(e){this.child.postMessage(e,this.target_domain)}executeRequestByCors(e){this.fetchData(e,this.resolveRequest.bind(this))}fetchData(e,t){return fetch(r.parseRequest(e.request,!0)).then((n=>{n.text().then((i=>{const o={ok:n.ok||!1,status:n.status,message:n.statusText,headers:n.headers,body:r.parseBody(n.headers,i),url:n.url};t(e.id,o)}))})).catch((e=>{console.log(e)}))}createRequestForIframe(e){const t=Math.floor(1e5*Math.random()),n={id:t,request:e};let i;const r=new Promise(((e,t)=>{i={resolve:e,error:t}}));return this.requestsStack[t]=i,{request:n,messagePromise:r}}resolveEventRequest(e){const{id:t,response:n}=e.data;this.resolveRequest(t,n)}resolveRequest(e,t){t.ok?this.requestsStack[e].resolve(t):this.requestsStack[e].error(t),delete this.requestsStack[e]}}},1028:(e,t,n)=>{"use strict";n.d(t,{n7:()=>b,Qs:()=>L});var i=n(64762),r=n(57826);const o={},a={};let s=!1;function c(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return a[t]||(s||(yield n.I("default"),s=!0),yield e.init(n.S.default),a[t]=!0),e}))}function l(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return new Promise(((n,i)=>{if(o[t])return void n();const r=document.createElement("script");r.src=e,r.onerror=i,r.onload=()=>{const e=window[t];c(e,t),o[t]=e,n()},document.body.appendChild(r)}))}))}function d(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){let t,n;return e.type||(e.type="script"),"script"===e.type?(t={type:"script",remoteEntry:e.remoteEntry,remoteName:e.remoteName},n=e.remoteName):"module"===e.type&&(t={type:"module",remoteEntry:e.remoteEntry},n=e.remoteEntry),e.remoteEntry&&(yield function(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){if("string"==typeof e){const n=e;return yield l(n,t)}if("script"===e.type){const t=e;return yield l(t.remoteEntry,t.remoteName)}if("module"===e.type){const t=e;yield function(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return o[e]?Promise.resolve():yield import(e).then((t=>{c(t,e),o[e]=t}))}))}(t.remoteEntry)}}))}(t)),yield function(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const n=o[e];return(yield n.get(t))()}))}(n,e.exposedModule)}))}var u=n(31090),p=(n(4309),n(73753));const h=["mfeOutlet"];class m{constructor(e){this.mfeManifestService=e,this.loadingPromises={}}loadMfeModule(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const n=yield this.mfeManifestService.getMfeMetadata(e),i=yield this.mfeManifestService.getModuleMetadata(e,t);return this.loadingPromises[e]&&(yield this.loadingPromises[e]),this.loadingPromises[e]=d({remoteEntry:n.entrypoint,remoteName:n.name,exposedModule:i.name}),this.loadingPromises[e]}))}loadMfeItem(e,t,n){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const i=yield this.mfeManifestService.getItemMetadata(e,t,n);return(yield this.loadMfeModule(e,t))[i.name]}))}}class g{constructor(e){this.mfeManifestClient=e}getMfeManifest(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.mfeManifestClient.getMfeManifest()}))}getMfeMetadata(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=(yield this.getMfeManifest()).microFrontends.find((t=>t.name===e));if(!t)throw new Error(`Microfrontend '${e}' does not exist in manifest`);return t}))}getModuleMetadata(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*(){const n=yield this.getMfeMetadata(e);let i;if(t){if(i=n.modules.find((e=>e.name===t)),!i)throw new Error(`Module '${t}' does not exist in microfrontend '${e}'`)}else{if(1!==n.modules.length)throw new Error(`No default module for microfrontend '${e}'`);i=n.modules[0]}return i}))}getItemMetadata(e,t,n){var r,o;return(0,i.__awaiter)(this,void 0,void 0,(function*(){const i=yield this.getModuleMetadata(e,t);let a;if(n){if(a=null===(o=i.items)||void 0===o?void 0:o.find((e=>e.name===n)),!a)throw new Error(`Item '${n}' does not exist in module '${i.name}' in microfrontend '${e}'`)}else{if(1!==(null===(r=i.items)||void 0===r?void 0:r.length))throw new Error(`No default item for module '${i.name}' in microfrontend '${e}'`);a=i.items[0]}return a}))}}let f=(()=>{class e{constructor(e,t){this.mfeLoaderService=e,this.mfeManifestService=t}ngOnChanges(e){return(0,i.__awaiter)(this,void 0,void 0,(function*(){!this.componentRef&&e.mfeName&&(this.hideHostComponent(!0),this.module=yield this.mfeLoaderService.loadMfeModule(this.mfeName,this.moduleName),this.componentMetadata=yield this.mfeManifestService.getItemMetadata(this.mfeName,this.moduleName,this.componentName),this.moduleRef=yield this.compileModule(),this.componentRef=yield this.createComponent(),this.componentInstance=this.componentRef.instance,this.hideHostComponent(!1)),this.componentInstance&&(e.props&&this.setProps(this.componentInstance,this.props),e.callbacks&&(e.callbacks.firstChange||this.cleanCallbacks(),this.setCallbacks(this.componentInstance,this.callbacks)),this.componentInstance.ngOnChanges&&this.componentInstance.ngOnChanges(e),this.componentRef.injector.get(r.ChangeDetectorRef).markForCheck())}))}ngOnDestroy(){this.cleanCallbacks()}getExportedType(e){const t=this.module[e];if(!t){const t=`Available exports: ${Object.keys(this.module)}`;throw new Error(`[MfeOutletAngularComponent] '${e}' does not exist in the remote object. ${t}`)}return t}hideHostComponent(e){var t;(null===(t=this.componentHost)||void 0===t?void 0:t.nativeElement)&&(e?(0,u.setStyleProperty)(this.componentHost.nativeElement,"display","none"):(0,u.removeStyleProperty)(this.componentHost.nativeElement,"display"))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](m),r["ɵɵdirectiveInject"](g))},e.ɵdir=r["ɵɵdefineDirective"]({type:e,viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](h,7,r.ViewContainerRef),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.viewContainer=e.first)}},inputs:{mfeName:"mfeName",moduleName:"moduleName",componentName:"componentName",props:"props",callbacks:"callbacks",theme:"theme"},features:[r["ɵɵNgOnChangesFeature"]]}),e})();"undefined"==typeof ngDevMode||ngDevMode;const v={};let b=(()=>{class e extends f{constructor(e,t,n,i,r,o){super(e,t),this.mfeLoaderService=e,this.mfeManifestService=t,this.injector=n,this.cfr=i,this.elementRef=r,this.compiler=o,this.callbackSubscriptions=[],this.componentHost=(0,u.ngOwnComponent)(r.nativeElement)}compileModule(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){let e;if(this.componentMetadata.module)if(v[this.componentMetadata.module])e=v[this.componentMetadata.module];else{const t=this.getExportedType(this.componentMetadata.module);e=(yield this.compiler.compileModuleAsync(t)).create(this.injector),v[this.componentMetadata.module]=e}return e}))}createComponent(){var e;return(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.getExportedType(this.componentMetadata.name),n=this.cfr.resolveComponentFactory(t);return yield this.addInlineThemeStyle(t),this.viewContainer.createComponent(n,void 0,(null===(e=this.moduleRef)||void 0===e?void 0:e.injector)||this.injector,void 0,this.moduleRef)}))}setProps(e,t){for(const n in t)e[n]=t[n]}setCallbacks(e,t){for(const n in t)if(e[n]){const i=e[n].subscribe(t[n]);this.callbackSubscriptions.push(i)}else console.warn("[MfeOutletAngularComponent]",`Output '${n}' does not exist in component '${this.componentMetadata.name}' of microfrontend '${this.mfeName}'`)}cleanCallbacks(){this.callbackSubscriptions.forEach((e=>e.unsubscribe())),this.callbackSubscriptions=[]}addInlineThemeStyle(e){var t;return(0,i.__awaiter)(this,void 0,void 0,(function*(){if(this.theme&&this.componentMetadata.themes){const n=this.getExportedType(this.componentMetadata.themes);if(Object.keys(n).includes(this.theme)){const i=n[this.theme],o=null===(t=yield i())||void 0===t?void 0:t.default;if("string"==typeof o){const t=e[r["ɵNG_COMP_DEF"]];t.styles=[o,...t.styles]}}}}))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](m),r["ɵɵdirectiveInject"](g),r["ɵɵdirectiveInject"](r.Injector),r["ɵɵdirectiveInject"](r.ComponentFactoryResolver),r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Compiler))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bbk-mfe-outlet-angular"]],features:[r["ɵɵInheritDefinitionFeature"]],decls:2,vars:0,consts:[["mfeOutlet",""]],template:function(e,t){1&e&&r["ɵɵelementContainer"](0,null,0)},encapsulation:2}),e})();"undefined"==typeof ngDevMode||ngDevMode;let y,C=(()=>{class e{constructor(e){this.mfeLoaderService=e}buildRoutes(e){return e.map((e=>this.mapChildrenRoute(e)))}mapChildrenRoute(e){var t,n;if(null===(t=e.microFrontend)||void 0===t?void 0:t.mfeName){const{mfeName:t,moduleName:n,itemName:i}=e.microFrontend;e.loadChildren=()=>this.mfeLoaderService.loadMfeItem(t,n,i)}return(null===(n=e.children)||void 0===n?void 0:n.length)&&(e.children=e.children.map((e=>this.mapChildrenRoute(e)))),delete e.microFrontend,e}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](m))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode;class S{constructor(e,t){this.manifestUrl=e,this.loadStrategy=t,"preload"===t&&this.getMfeManifest()}getMfeManifest(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){return this.mfeManifestPromise||(this.mfeManifestPromise=fetch(this.manifestUrl).then((e=>e.json()))),this.mfeManifestPromise}))}}const x=e=>{if(!e.fetchUrl)throw new Error("No fetchUrl provided to instantiate MfeManifestFetchClient");return new S(e.fetchUrl,e.fetchStrategy)};function w(e){return e.shared?(y||(y=x(e)),y):x(e)}class E{constructor(e,t){this.globalref=e,this.globalrefKey=t,this.mfeManifest=e[t]}getMfeManifest(){return Promise.resolve(this.mfeManifest)}}let I;const P=(e,t)=>{if(!e||!t)throw new Error("No globalref or globalrefKey provided to instantiate MfeManifestGlobalrefClient");return new E(e,t)};function T(e){return e.shared?(I||(I=P(e.globalref,e.globalrefKey)),I):P(e.globalref,e.globalrefKey)}let _;const M=e=>new g(e);function O(e,t){return e.shared?(_||(_=M(t)),_):M(t)}let A;const k=e=>new m(e);function j(e,t){return e.shared?(A||(A=k(t)),A):k(t)}function N(e,t,n){var i;let r=null==n?void 0:n.config;return(null===(i=e.routes)||void 0===i?void 0:i.length)&&(r=t.buildRoutes(e.routes)),()=>{n&&r&&n.resetConfig(r)}}const R=new r.InjectionToken("MfeManifestClient"),D=new r.InjectionToken("MFE_TOOLS_CONFIG");let L=(()=>{class e{static configure(t){const n=[{provide:D,useValue:t}];return t.fetchUrl?n.push({provide:R,useFactory:w,deps:[D]}):t.globalref&&t.globalrefKey&&n.push({provide:R,useFactory:T,deps:[D]}),n.push({provide:g,useFactory:O,deps:[D,R]},{provide:m,useFactory:j,deps:[D,g]},{provide:r.APP_INITIALIZER,useFactory:N,deps:[D,C,[new r.Optional,p.Router]],multi:!0}),{ngModule:e,providers:n}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({}),e})();"undefined"==typeof ngDevMode||ngDevMode},77247:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(57826);const r=new i.InjectionToken("REQUEST");new i.InjectionToken("RESPONSE")},1459:(e,t,n)=>{"use strict";n(35697),n(44049);var i=n(4309),r=n(42998),o=function(){function e(e){this._message="Invalid key: "+e}return e.prototype.toString=function(){return this._message},e}(),a=function(){function e(e){void 0===e&&(e=null),this._subscriptionMap=new Map,this._subscriptionList=[],this._preSubscriptionList=[],this._preSubscriptionMap=new Map,this._tryRegisterNgOnDestroyHook(e)}return e.prototype.collect=function(){var e=this;return this._trackSubscription({isPreSubscriptionInProgress:function(t){var n=t.preSubscription;return e._preSubscriptionList.includes(n)},onPreSubscription:function(t){var n=t.preSubscription;return e._preSubscriptionList.push(n)},onSubscription:function(t){var n=t.preSubscription,i=t.subscription;e._subscriptionList.push(i),e._preSubscriptionList=e._preSubscriptionList.filter((function(e){return e!==n}))}})},e.prototype.collectByKey=function(e){var t=this;if("string"!=typeof e||""===e)throw new o(e);return this._trackSubscription({isPreSubscriptionInProgress:function(n){var i=n.preSubscription;return t._preSubscriptionMap.get(e)===i},onPreSubscription:function(n){var i=n.preSubscription;return t._preSubscriptionMap.set(e,i)},onSubscription:function(n){n.preSubscription;var i=n.subscription,r=t._subscriptionMap.get(e);null!=r&&r.unsubscribe(),t._subscriptionMap.set(e,i),t._preSubscriptionMap.delete(e)}})},e.prototype.unsubscribe=function(){this._subscriptionList.concat(Array.from(this._subscriptionMap.values())).forEach((function(e){return e.unsubscribe()})),this._preSubscriptionList=[],this._subscriptionList=[],this._subscriptionMap.clear()},e.prototype._tryRegisterNgOnDestroyHook=function(e){var t=e;if(null!=t){var n=t.__proto__;if(t.ɵscavenger=this,!n.ɵscavengerWasHere){var i=function(e){return function(){this.ɵscavenger.unsubscribe(),e&&e.bind(this)()}},r=e.constructor["ɵcmp"];null!=r?r.onDestroy=i(r.onDestroy):n.ngOnDestroy=i(n.ngOnDestroy),n.ɵscavengerWasHere=!0}}},e.prototype._trackSubscription=function(e){var t=e.isPreSubscriptionInProgress,n=e.onPreSubscription,o=e.onSubscription;return function(e){return new i.Observable((function(i){var a=i;n({preSubscription:a});var s=e.pipe(r.takeWhile((function(){return null!=s||t({preSubscription:a})}))).subscribe(i);return o({preSubscription:a,subscription:s}),s}))}},e}();t.u8=a},88856:(e,t,n)=>{"use strict";var i=n(57826),r=n(40475),o=n(15982),a=n(42775),s=n(57826);t.wR={provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return c})),multi:!0};var c=function(){function e(e,t,n){var i;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.textMaskConfig={mask:[],guide:!0,placeholderChar:"_",pipe:void 0,keepCharPositions:!1},this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=o.ɵgetDOM()?o.ɵgetDOM().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return e.prototype.ngOnChanges=function(e){this._setupMask(!0),void 0!==this.textMaskInputElement&&this.textMaskInputElement.update(this.inputElement.value)},e.prototype.writeValue=function(e){this._setupMask();var t=null==e?"":e;this._renderer.setProperty(this.inputElement,"value",t),void 0!==this.textMaskInputElement&&this.textMaskInputElement.update(e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&(this._setupMask(),void 0!==this.textMaskInputElement&&(this.textMaskInputElement.update(e),e=this.inputElement.value,this.onChange(e)))},e.prototype._setupMask=function(e){void 0===e&&(e=!1),this.inputElement||("INPUT"===this._elementRef.nativeElement.tagName.toUpperCase()?this.inputElement=this._elementRef.nativeElement:this.inputElement=this._elementRef.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&e&&(this.textMaskInputElement=a.createTextMaskInputElement(Object.assign({inputElement:this.inputElement},this.textMaskConfig)))},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this._handleInput(e)},e.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[r.COMPOSITION_BUFFER_MODE]}]}]},e.propDecorators={textMaskConfig:[{type:i.Input,args:["textMask"]}]},e.ɵfac=function(t){return new(t||e)(s.ɵɵdirectiveInject(s.Renderer2),s.ɵɵdirectiveInject(s.ElementRef),s.ɵɵdirectiveInject(r.COMPOSITION_BUFFER_MODE,8))},e.ɵdir=s.ɵɵdefineDirective({type:e,selectors:[["","textMask",""]],hostBindings:function(e,t){1&e&&s.ɵɵlistener("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},inputs:{textMaskConfig:["textMask","textMaskConfig"]},exportAs:["textMask"],features:[s.ɵɵProvidersFeature([t.wR]),s.ɵɵNgOnChangesFeature]}),"undefined"==typeof ngDevMode||ngDevMode,e}();t.hd=c;var l=function(){function e(){}return e.ctorParameters=function(){return[]},e.ɵfac=function(t){return new(t||e)},e.ɵmod=s.ɵɵdefineNgModule({type:e}),e.ɵinj=s.ɵɵdefineInjector({}),"undefined"==typeof ngDevMode||ngDevMode,("undefined"==typeof ngJitMode||ngJitMode)&&s.ɵɵsetNgModuleScope(e,{declarations:[c],exports:[c]}),e}();t.QA=l,n(42775).conformToMask},93883:(e,t,n)=>{"use strict";n.d(t,{AS:()=>s,Lq:()=>h,PP:()=>a,Rc:()=>p,db:()=>c,eA:()=>i,ht:()=>l,kU:()=>r,mU:()=>o,sc:()=>d,tx:()=>u});const i="site.config.affiliate.check-referring-site.enabled",r="/become-an-affiliate",o="referring-site-domain",a="referring-site-name",s="affiliates",c="refSiteToken",l="myafftoken",d="extcmpid",u="affid",p="ref",h="lang"},95539:(e,t,n)=>{"use strict";n.d(t,{G:()=>c,U:()=>s});var i=n(86594),r=n(57826),o=n(6856);const a=["*"],s="aff-link";let c=(()=>{class e{constructor(e){this.linkProcessor=e}set originalLinkTarget(e){this.processedLinkTarget$=this.linkProcessor.process(e)}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.J))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["aff-link"]],inputs:{originalLinkTarget:["href","originalLinkTarget"]},ngContentSelectors:a,decls:7,vars:3,template:function(e,t){1&e&&(r["ɵɵprojectionDef"](),r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"a"),r["ɵɵpipe"](2,"async"),r["ɵɵtext"](3,"\n            "),r["ɵɵprojection"](4),r["ɵɵtext"](5,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵattribute"]("href",r["ɵɵpipeBind1"](2,1,t.processedLinkTarget$),r["ɵɵsanitizeUrl"]))},pipes:[o.AsyncPipe],encapsulation:2}),e})()},86594:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var i=n(6856),r=n(57826),o=n(55640),a=n(48108),s=n(45965),c=n(42998),l=n(93883),d=n(92116);let u=(()=>{class e{constructor(e,t,n,i){this.browserStorageService=e,this.siteConfigService=t,this.languageService=n,this.platformId=i}process(t){let n=new URL(t);const r=(this.siteConfigService.getSiteConfigProp(l.AS)||{})[l.db];if(e.addQueryParam(n,l.Rc,r),(0,i.isPlatformBrowser)(this.platformId)){const t=this.browserStorageService.get(d.EI);e.addQueryParam(n,l.ht,t)}return this.languageService.getLanguage().pipe((0,c.map)((t=>(e.addQueryParam(n,l.Lq,t),n.toString()))))}static addQueryParam(e,t,n){n&&e.searchParams.set(t,n)}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](o.z),r["ɵɵinject"](s.r),r["ɵɵinject"](a.T),r["ɵɵinject"](r.PLATFORM_ID))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},99860:(e,t,n)=>{"use strict";n.d(t,{G:()=>m});var i=n(6856),r=n(73753),o=n(61556),a=n(79346),s=n(50536),c=n(13192),l=n(5711),d=n(45335),u=n(86594),p=n(95539),h=n(57826);let m=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=h["ɵɵdefineNgModule"]({type:e,bootstrap:[p.G]}),e.ɵinj=h["ɵɵdefineInjector"]({providers:[c.Cw,l.a,d.X,u.J],imports:[[i.CommonModule,r.RouterModule,o.d,a.C,s.j]]}),e})()},45335:(e,t,n)=>{"use strict";n.d(t,{X:()=>d});var i=n(73753),r=n(82846),o=n(45965),a=n(42998),s=n(93883),c=n(13192),l=n(57826);let d=(()=>{class e{constructor(e,t,n,i){this.affiliateService=e,this.router=t,this.siteConfig=n,this.cookieStorageService=i}canActivate(e,t){if(this.affiliateService.processAffiliateTokenAndRedirection(),this.siteConfig.evalFeature(s.eA)){if(e.queryParams&&e.queryParams.ref)return this.affiliateService.getBrandInfoFromToken().pipe((0,a.map)((e=>0!==Object.keys(e).length||this.navigateToInvalidReferringToken())));if(!this.cookieStorageService.get(s.PP)||!this.cookieStorageService.get(s.mU))return this.navigateToInvalidReferringToken()}return!0}navigateToInvalidReferringToken(){return this.router.navigateByUrl(s.kU),!1}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](c.Cw),l["ɵɵinject"](i.Router),l["ɵɵinject"](o.r),l["ɵɵinject"](r.G))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},5711:(e,t,n)=>{"use strict";n.d(t,{a:()=>a}),n(73753);var i=n(4309),r=n(13192),o=n(57826);let a=(()=>{class e{constructor(e){this.affiliateService=e}resolve(e,t){let n=this.affiliateService.processAffiliateTokenAndRedirection();return(0,i.of)(n)}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.Cw))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},13192:(e,t,n)=>{"use strict";n.d(t,{Cw:()=>C});var i=n(42998),r=n(6856),o=n(23550),a=n(57826),s=n(55640),c=n(82846),l=n(81899),d=n(45965),u=n(4309),p=n(93883),h=n(92116);const m="utm_source",g="utm_medium",f="utm_campaign",v="utm_term",b="utm_content",y="utm_brand";class C{constructor(e,t,n,i,r,o){this.browserStorageService=e,this.windowService=t,this.cookieStorageService=n,this.http=i,this.siteConfigService=r,this.platformId=o}processAffiliateTokenAndRedirection(){let e,t,n=new Map;if((0,r.isPlatformBrowser)(this.platformId)){const i=new URLSearchParams(this.windowService.location().search);if(e=i.get(p.ht)||i.get(h.Rv),t=i.get(p.tx),n.set(m,i.get(m)),n.set(g,i.get(g)),n.set(f,i.get(f)),n.set(v,i.get(v)),n.set(b,i.get(b)),n.set(y,i.get(y)),e){let t=i.get(p.sc);this.storeSharingMethod(t),this.storeAffiliateToken(e)}t&&this.storeAffiliateId(t),this.storeUtmValues(n)}return null!=e}getBrandInfoFromToken(){const e=this.getUrlSearchParams().get(p.Rc);return e?this.handleBackendResponse(this.brandInfoRequest(e)):(0,u.of)({})}removeAffiliateReferringCookies(){this.siteConfigService.evalFeature(p.eA)&&(this.cookieStorageService.remove(p.mU),this.cookieStorageService.remove(p.PP))}getUrlSearchParams(){return(0,r.isPlatformBrowser)(this.platformId)?new URLSearchParams(this.windowService.location().search):new URLSearchParams}brandInfoRequest(e){let t,n=(0,r.isPlatformBrowser)(this.platformId)?this.windowService.document().referrer:"";return n&&(t=new o.HttpHeaders({"X-REFERRER":n})),this.http.get(this.buildGetBrandInfoUrl(e),{withCredentials:!0,headers:t})}handleBackendResponse(e){return e.pipe((0,i.catchError)((e=>(0,u.of)({}))))}buildGetBrandInfoUrl(e){return C.GET_BRAND_INFO_URL+e}storeAffiliateToken(e){this.browserStorageService.set(h.EI,e),this.browserStorageService.set(h.zc,String(Date.now()))}storeSharingMethod(e){e?this.browserStorageService.set(h.jj,e):this.browserStorageService.remove(h.jj)}storeAffiliateId(e){this.browserStorageService.set(h.F$,e),this.browserStorageService.set(h.HM,h.as),this.cookieStorageService.set(p.tx,e,"/",void 0,!1,40)}storeUtmValues(e){e.forEach(((e,t)=>{e&&this.browserStorageService.setWithExpiration(t,e,40)}))}}C.BASE_URL="/services/affiliate/v1",C.GET_BRAND_INFO_URL=`${C.BASE_URL}/token/`,C.ɵfac=function(e){return new(e||C)(a["ɵɵinject"](s.z),a["ɵɵinject"](l.u),a["ɵɵinject"](c.G),a["ɵɵinject"](o.HttpClient),a["ɵɵinject"](d.r),a["ɵɵinject"](a.PLATFORM_ID))},C.ɵprov=a["ɵɵdefineInjectable"]({token:C,factory:C.ɵfac})},92116:(e,t,n)=>{"use strict";n.d(t,{AB:()=>p,EI:()=>o,F$:()=>d,HM:()=>s,Rv:()=>u,as:()=>i,g3:()=>r,jj:()=>c,ln:()=>l,wF:()=>h,zc:()=>a});const i="AFFILIATE",r="PROFILE",o="REFERRAL_AFFILIATE",a="REFERRAL_AFFILIATE_TIMESTAMP",s="REFERRAL_AFFILIATE_TYPE",c="SHARING_METHOD",l="WORD_OF_MOUTH",d="AFFILIATE_ID",u="referral",p="site.config.raf.enabled",h="404"},63800:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var i=n(50536),r=n(17443),o=n(79346),a=n(94224),s=n(57826);let c=(()=>{class e{static forRoot(){return{ngModule:e,providers:[a.G]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=s["ɵɵdefineNgModule"]({type:e}),e.ɵinj=s["ɵɵdefineInjector"]({imports:[[i.j,r.S,o.C]]}),e})()},94224:(e,t,n)=>{"use strict";n.d(t,{G:()=>d});var i=n(23550),r=n(48108),o=n(45965),a=n(92947),s=n(4309),c=n(42998),l=n(57826);let d=(()=>{class e{constructor(e,t,n,i){this.http=e,this.languageService=t,this.profileService=n,this.siteConfigService=i,this.cashierCustomMessages=new s.ReplaySubject(1)}loadCashierCustomMessages(){(0,s.forkJoin)([this.languageService.getLanguage().pipe((0,c.first)()),this.profileService.getProfileDetailsPlayer().pipe((0,c.first)())]).subscribe((([e,t])=>{this.http.get("/services/routing/config/messages",this.options(e,t)).subscribe((e=>{this.cashierCustomMessages.next(e)}),(()=>{this.cashierCustomMessages.next([])}),(()=>{this.cashierCustomMessages.complete()}))}))}getCashierCustomMessages(){return this.cashierCustomMessages}options(e,t){let n=this.getUrlPrefix();return{params:{...n&&{context:n},language:e,region:this.composeRegion(t.address),brand:this.getBrandCode(t.brandCode)},withCredentials:!0}}composeRegion(e){return e.subdivision?e.countryCode+" "+e.subdivision:e.countryCode}getBrandCode(e){return e||this.siteConfigService.getSiteConfigProp("brandCode")}getUrlPrefix(){return this.siteConfigService.getSiteConfigProp("urlPrefix")}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](i.HttpClient),l["ɵɵinject"](r.T),l["ɵɵinject"](a.H),l["ɵɵinject"](o.r))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},4363:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.messageOverlay=!1,this.forceUpdate=!1,this.additionalClasses=[],this.headerLevel2=!0,this.forceShowCloseButton=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},16339:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});const i="password-reset-request"},39597:(e,t,n)=>{"use strict";n.d(t,{e:()=>s,i:()=>c});var i=n(23550),r=n(42998),o=n(4309),a=n(57826);let s=(()=>{class e{constructor(e){this.http=e,this.activationEvent$=new o.Subject}activateAccount(t){if(!t.registrationToken){const e=new i.HttpErrorResponse({error:"Bad Request: Registration token is missing.",status:400,statusText:"Bad Request"});return(0,o.throwError)(e)}return this.http.post(e.signUpActivateUrl,t).pipe((0,r.catchError)((e=>(0,o.throwError)(e))))}getActivateAccountEvent(){return this.activationEvent$}publishActivateAccountEvent(e){this.activationEvent$.next(e)}publishRegistrationToken(e){this.registrationToken=e}getRegistrationToken(){return this.registrationToken}}return e.signUpActivateUrl="/services/signup-service/v1/invitation/signup",e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class c{constructor(e){this.sessionId=e}}},73475:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.messageOverlay=!1,this.joinNowStyleClass="",this.headerLevel2=!0}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},71063:(e,t,n)=>{"use strict";n.d(t,{r6:()=>h});var i=n(82846),r=n(45965),o=n(4309),a=n(42998),s=n(66900),c=n(23550),l=n(57826);let d=(()=>{class e{constructor(e){this.httpClient=e}post(e,t,n,i){return this.httpClient.post(e,t,{headers:n}).pipe((0,a.catchError)((r=>{const a=r.error;if(401===r.status&&("mfa_required:SMS"===a.errorCode||"mfa_required:PIN_CODE"===a.errorCode)){let r=a.errorCode.split(":")[1];return n.get("X-CAPTCHA-TOKEN")&&(n=new c.HttpHeaders),n=n.append("X-CAPTCHA-ENFORCEMENT-OPERATION",i).append("X-CAPTCHA-ENFORCEMENT-METHOD",r),delete t.captchaToken,this.performCaptchaRequest(e,t,n)}return(0,o.throwError)(r)})))}performCaptchaRequest(e,t,n){return this.httpClient.post(e,t,{headers:n})}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](c.HttpClient))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();class u{}class p{}let h=(()=>{class e{constructor(e,t,n,i){this.captchaHttpService=e,this.cookieService=t,this.prepopulateService=n,this.siteConfigService=i,this.requiredActionFullfilled$=new o.Subject,this.loginEvent=new o.Subject,this.joinedEvent=new o.Subject}login(t,n,i,r){if(!this.loginRequest){const s=i?`${e.loginUrl}/${i}`:e.loginUrl,l=n?new c.HttpHeaders({"X-CAPTCHA-TOKEN":n}):void 0;this.loginRequest=this.captchaHttpService.post(s,t,l,"login").pipe((0,a.map)((e=>{if(this.loginRequest=null,i&&this.requiredActionFullfilled$.next(),this.prepopulateService.isActive){const{rememberMe:e}=t;!0===e?this.prepopulateService.setPokerBridgeCredentials({username:t.username,password:t.password}):!1===e&&this.prepopulateService.clearPokerBridgeCredentials()}return this.onLoginSetCookies(e,r)})),(0,a.catchError)((e=>(this.loginRequest=null,(0,o.throwError)(e)))),(0,a.share)())}return this.loginRequest}onLoginSetCookies(e,t){return e.loginFromDifferentCountry&&!t&&this.cookieService.set("Country",e.userCountry),this.cookieService.get("JOINED")||this.cookieService.set("JOINED","true"),this.cookieService.get("url-prefix")||this.cookieService.set("url-prefix","/"+this.siteConfigService.getSiteConfigProp("urlPrefix")),this.createHashCookieAudiences(e.externalAttributes),this.sendJoinedEvent(),this.addSportsCookies(e.externalAttributes),e}createHashCookieAudiences(e){e&&e.audiencesHash&&this.cookieService.set("audiences",e.audiencesHash)}getRequiredActionFulfilled(){return this.requiredActionFullfilled$}addSportsCookies(t){Object.keys(t||{}).forEach((n=>{if(n.startsWith(e.sportsCookiePrefix)){const i=n.replace(e.sportsCookiePrefix+".","");this.cookieService.set(i,t[n])}}))}sendLoginEvent(){this.loginEvent.next(new u)}sendJoinedEvent(){this.joinedEvent.next(new p)}loadLoginFormModel(){return(0,o.of)({id:"login",modelType:"formgroup",elements:{username:{id:"username",modelType:"input",type:"email",focused:!0,validators:{required:null,maxLength:100}},password:{id:"password",modelType:"input",type:"password",validators:{required:null,maxLength:64}}}})}}return e.loginUrl="/services/login-service/v1/login",e.sportsCookiePrefix="sports.cookie",e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](d),l["ɵɵinject"](i.G),l["ɵɵinject"](s.d),l["ɵɵinject"](r.r))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},76460:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var i=n(71063),r=n(66900),o=n(43431),a=n(53609),s=n(57826);let c=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.r6,r.d,o.u,a.D]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=s["ɵɵdefineNgModule"]({type:e}),e.ɵinj=s["ɵɵdefineInjector"]({}),e})()},66900:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var i=n(57826),r=n(6856),o=n(81899);let a=(()=>{class e{constructor(e,t){this.windowService=e,this.platformId=t,this.setPokerBridgeCredentials=e=>{this.isActive&&this.wnd.pokerCredentialsManager.setCredentials(e.username,e.password)},this.getPokerBridgeCredentials=()=>this.isActive?this.wnd.pokerCredentialsManager.getCredentials():void 0,this.clearPokerBridgeCredentials=()=>{this.isActive&&this.wnd.pokerCredentialsManager.clearCredentials()}}get wnd(){return(0,r.isPlatformBrowser)(this.platformId)?this.windowService.window():void 0}get isActive(){return!(!this.wnd||!this.wnd.pokerCredentialsManager)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.u),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},58892:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var i=n(37424),r=n(42974),o=n(57826);let a=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.P]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({imports:[[r.n]]}),e})()},37424:(e,t,n)=>{"use strict";n.d(t,{P:()=>u});var i=n(23550),r=n(64174),o=n(82846),a=n(24144),s=n(4309),c=n(42998),l=n(57826);class d{constructor(){this.sessionExpired=!1}}let u=(()=>{class e{constructor(e,t,n,i){this.http=e,this.sessionService=t,this.cookieService=n,this.reactiveChatService=i,this.logoutUrl="/api/v1/logout",this.logoutEvent=new s.Subject}logout(e){return this.removeAudienceCookie(),this.reactiveChatService.closeChat(),this.sessionService.isAuthenticated()?e?(this.sessionService.clearSession(),this.logoutEvent.next({sessionExpired:!0}),s.EMPTY):this.http.post(this.logoutUrl,{},{withCredentials:!0}).pipe((0,c.map)((e=>{this.sessionService.clearSession(),this.logoutEvent.next(new d)}))):s.EMPTY}removeAudienceCookie(){this.cookieService.get("audiences")&&this.cookieService.remove("audiences")}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](i.HttpClient),l["ɵɵinject"](r.m),l["ɵɵinject"](o.G),l["ɵɵinject"](a.R))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},56159:(e,t,n)=>{"use strict";n.d(t,{Ix:()=>i.I,PO:()=>r.P});var i=n(58892),r=n(37424)},2470:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var i=n(95556),r=n(23550),o=n(4309),a=n(57826);let s=(()=>{class e{constructor(e,t){this.http=e,this.sessionService=t,this.paymentProfileInfoSubject=new o.ReplaySubject(1)}loadPaymentProfileInfo(){const e="/services/payment/profiles/"+this.sessionService.session+"/info";this.http.get(e,{withCredentials:!0}).subscribe((e=>{this.paymentProfileInfoSubject.next(e)}),(e=>{this.paymentProfileInfoSubject.error(e)}),(()=>{this.paymentProfileInfoSubject.complete()}))}getPaymentProfileInfo(){return this.paymentProfileInfoSubject.asObservable()}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](r.HttpClient),a["ɵɵinject"](i.mj))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},46268:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});const i="phone-number-reset-request"},89986:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var i=n(47913),r=n(57826);let o=(()=>{class e extends i.M{}return e.ɵfac=function(){let t;return function(n){return(t||(t=r["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},47913:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.headerLevel2=!0}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},33098:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,d:()=>r});const i="pin-code-reset-request",r="reset-pin/:token"},36211:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var i=n(47913),r=n(57826);let o=(()=>{class e extends i.M{}return e.ɵfac=function(){let t;return function(n){return(t||(t=r["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},14089:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.messageOverlay=!1,this.hideNotificationIfNoError=!1,this.additionalClasses=[]}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},7114:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var i=n(45965),r=n(57826);let o=(()=>{class e{constructor(e){this.siteConfigService=e}canActivate(){return!!this.siteConfigService.getSiteConfigProp("twoFactorAuthenticatorEnabled")}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.r))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},84115:(e,t,n)=>{"use strict";n.d(t,{q:()=>d});var i=n(43431),r=n(55640),o=n(82846),a=n(4309),s=n(42998),c=n(84042),l=n(57826);let d=(()=>{class e{constructor(e,t,n,i){this.cookieStorageService=e,this.audienceService=t,this.cmsFeatureFlagService=n,this.browserStorageService=i,this.POLLING_TIME=36e5,this.EXPIRATION_OFFSET=5e3,this.AUDIENCES_COOKIE="audiences",this.STORED_AUDIENCES_HASH_KEY="audiencesHash"}initPoll(e){const t=this.existingHashAudienceDidNotExpire();t&&(0,a.timer)(t.expiration).pipe((0,s.takeWhile)((()=>this.cmsFeatureFlagService.isFeatureEnabled(i.u.MARKETING_AUDIENCES))),(0,s.flatMap)((()=>this.getHashObservable(e)))).subscribe((e=>this.updateHashCookieAudiences(e))),this.hashPollingSubscription&&!this.hashPollingSubscription.closed||(this.hashPollingSubscription=(0,a.interval)(this.POLLING_TIME).pipe((0,s.startWith)(0),(0,s.takeWhile)((()=>this.cmsFeatureFlagService.isFeatureEnabled(i.u.MARKETING_AUDIENCES))),(0,s.flatMap)((()=>this.getHashObservable(e)))).subscribe((e=>this.updateHashCookieAudiences(e))))}getHashObservable(e){const t=this.getLastHashStored();return!t||this.isHashExpired(t)?this.getNewHash(e):(0,a.of)(t.hash)}existingHashAudienceDidNotExpire(){const e=this.getLastHashStored();return e&&!this.isHashExpired(e)?e:void 0}endPoll(){this.hashPollingSubscription&&this.hashPollingSubscription.unsubscribe(),this.removeCookieValue()}setLastHashStored(e){const t={expiration:Date.now()+this.POLLING_TIME-this.EXPIRATION_OFFSET,hash:e};this.browserStorageService.set(this.STORED_AUDIENCES_HASH_KEY,JSON.stringify(t))}getLastHashStored(){const e=this.browserStorageService.get(this.STORED_AUDIENCES_HASH_KEY);return e?JSON.parse(e):void 0}getNewHash(e){return this.audienceService.getHash(e).pipe((0,s.tap)((e=>this.setLastHashStored(e))))}isHashExpired(e){return e.expiration<Date.now()}updateHashCookieAudiences(e){e?this.cookieStorageService.get(this.AUDIENCES_COOKIE)!=e&&this.setCookieValue(e):this.removeCookieValue()}setCookieValue(e){this.cookieStorageService.set(this.AUDIENCES_COOKIE,e)}removeCookieValue(){this.cookieStorageService.get(this.AUDIENCES_COOKIE)&&this.cookieStorageService.remove(this.AUDIENCES_COOKIE)}}return e.FILTER_PARAM="filter",e.AUDIENCE_IDS_PARAM="audienceIds",e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](o.G),l["ɵɵinject"](c.S),l["ɵɵinject"](i.u),l["ɵɵinject"](r.z))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},84042:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var i=n(23550),r=n(4309),o=n(42998),a=n(57826);let s=(()=>{class e{constructor(e){this.http=e}getHash(t){return this.http.get(`/services/audience-resolver/v1/profiles/${t}/hash`).pipe((0,o.map)((t=>t.audiencesHash?t.audiencesHash:e.EMPTY_VALUE)),(0,o.catchError)((()=>(0,r.of)(e.EMPTY_VALUE))))}}return e.EMPTY_VALUE="",e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},57156:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{constructor(e,t,n){this.templateRef=e,this.viewContainer=t,this.sessionService=n,this.hasView=!1}setVisible(e){e&&!this.hasView?(this.viewContainer.createEmbeddedView(this.templateRef),this.hasView=!0):!e&&this.hasView&&(this.viewContainer.clear(),this.hasView=!1)}onInit(){this.sessionSubscription=this.sessionService.sessionObserver.subscribe((e=>this.onSessionChanged(e)))}onDestroy(){this.sessionSubscription&&this.sessionSubscription.unsubscribe()}}},84958:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var i=n(54679),r=n(64174),o=n(57826);let a=(()=>{class e{constructor(e){this.sessionService=e}shouldProcess(e){return e.url.indexOf("services/")>=0||e.url.indexOf("api/")>=0||e.url.indexOf("zuul/")>=0}process(e){return this.sessionService.isAuthenticated()&&(e.headers=e.headers||new i.PM,e.headers.append("Authorization",`Bearer ${this.sessionService.session}`)),e.withCredentials=!0,e}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.m))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},42974:(e,t,n)=>{"use strict";n.d(t,{n:()=>h});var i=n(6856),r=n(61556),o=n(56614),a=n(64174),s=n(84958),c=n(70298),l=n(84042),d=n(84115),u=n(29967),p=n(57826);let h=(()=>{class e{static forRoot(){return{ngModule:e,providers:[a.m,s.q,c.O,l.S,d.q]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.d,u.j,o.F]]}),e})()},96532:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var i=n(57826),r=n(57156),o=n(64174);let a=(()=>{class e extends r.x{constructor(e,t,n){super(e,t,n)}ngOnInit(){super.onInit()}ngOnDestroy(){super.onDestroy()}onSessionChanged(e){this.setVisible(!e.isAuthenticated)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.TemplateRef),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](o.m))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxHideAuth",""]],features:[i["ɵɵInheritDefinitionFeature"]]}),e})()},64174:(e,t,n)=>{"use strict";n.d(t,{m:()=>m});var i=n(6856),r=n(57826),o=n(55640),a=n(82846),s=n(49379),c=n(36957),l=n(81899),d=n(35294),u=n(4309),p=n(84115);class h{constructor(e){this.isAuthenticated=e}}let m=(()=>{class e{constructor(t,n,r,o,a,s,c,l){this.platformId=t,this.storageService=n,this.routesToolsService=r,this.cookieStorageService=o,this.win=a,this.store=s,this.hostnameService=c,this.audiencePollingService=l,this.obtainParentDomain=()=>{let e=this.hostnameService.hostname;return e=e.substr(e.indexOf(".")+1),e.substr(e.indexOf(".")+1)},this.unauthorizedEvent=new u.Subject,this.sessionObserver=new u.BehaviorSubject(new h(this.isAuthenticated())),this.sessionObserver.subscribe((n=>{if(n.isAuthenticated&&(0,i.isPlatformBrowser)(t)&&this.audiencePollingService.initPoll(this.session),(0,i.isPlatformBrowser)(this.platformId)){this.store.setLoginState(n.isAuthenticated);const t=this.win&&"function"==typeof this.win.location?this.win.location().search:"",i=this.routesToolsService.getUrlQueryParam(t,e.ORIGIN_URL_KEY);n.isAuthenticated&&i&&this.redirectToURL(i)}}))}set session(t){t!=this.session&&(this.storageService.set(e.SESSIONID_KEY,t),this.cookieStorageService.set(e.SESSIONID_COOKIE,t,"/",void 0,!0),this.sessionObserver.next(new h(!0)))}get session(){return this.cookieStorageService.get(e.SESSIONID_COOKIE)||this.storageService.get(e.SESSIONID_KEY)}isAuthenticated(){return!!this.session}clearSession(){this.isAuthenticated()&&(this.storageService.remove(e.SESSIONID_KEY),this.storageService.remove(e.CUSTOMERID_KEY),this.cookieStorageService.remove(e.SESSIONID_COOKIE,"/"),this.cookieStorageService.remove(e.SESSIONID_COOKIE,"/",this.obtainParentDomain()),this.sessionObserver.next(new h(!1)),this.audiencePollingService.endPoll())}redirectToURL(e){this.win.location().href=e}}return e.SESSIONID_KEY="sessionId",e.CUSTOMERID_KEY="customerId",e.SESSIONID_COOKIE="sid",e.ORIGIN_URL_KEY="originURL",e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](o.z),r["ɵɵinject"](c.T),r["ɵɵinject"](a.G),r["ɵɵinject"](l.u),r["ɵɵinject"](d.X),r["ɵɵinject"](s.M),r["ɵɵinject"](p.q))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},86655:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var i=n(57826),r=n(57156),o=n(64174);let a=(()=>{class e extends r.x{constructor(e,t,n){super(e,t,n)}ngOnInit(){super.onInit()}ngOnDestroy(){super.onDestroy()}onSessionChanged(e){this.setVisible(e.isAuthenticated)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.TemplateRef),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](o.m))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxShowAuth",""]],features:[i["ɵɵInheritDefinitionFeature"]]}),e})()},20756:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});class i{constructor(e,t){this.status=e,this.isAuthenticated=t}}},70298:(e,t,n)=>{"use strict";n.d(t,{O:()=>a});var i=n(64174),r=n(20756),o=n(57826);let a=(()=>{class e{constructor(e){this.sessionService=e}process(e,t){401!=t.status&&403!=t.status||this.sessionService.unauthorizedEvent.next(new r.b(t.status,this.sessionService.isAuthenticated()))}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.m))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},58132:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var i=n(6856),r=(n(23550),n(57826)),o=n(4309),a=n(64174);let s=(()=>{class e{constructor(e,t){this.sessionService=e,this.platformId=t}intercept(t,n){if((0,i.isPlatformBrowser)(this.platformId)&&-1!==t.url.indexOf(e.SESSION_ID_PLACEHOLDER)){if(!this.sessionService.isAuthenticated())return(0,o.empty)();let n=t.url.replace(e.SESSION_ID_PLACEHOLDER,this.sessionService.session);t=t.clone({url:n})}return n.handle(t)}}return e.SESSION_ID_PLACEHOLDER="<sessionId>",e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](a.m),r["ɵɵinject"](r.PLATFORM_ID))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},95556:(e,t,n)=>{"use strict";n.d(t,{mj:()=>r.m,ny:()=>i.n}),n(86655),n(96532);var i=n(42974),r=(n(84958),n(70298),n(64174))},45455:(e,t,n)=>{"use strict";n.d(t,{LN:()=>o,Yu:()=>s,h0:()=>a});var i=n(81731),r=n(57826);let o=(()=>{class e{static getLoyaltyFlags(){return[e.FIXED_TIER_POINTS,e.FIXED_REWARD_POINTS,e.BASED_ON_DEPOSIT_TIER_POINTS,e.BASED_ON_DEPOSIT_REWARD_POINTS]}}return e.FIXED_AMOUNT_FUNDS="FIXED_AMOUNT_FUNDS",e.PERCENTAGE_AMOUNT_FUNDS="PERCENTAGE_AMOUNT_FUNDS",e.CASH_FUNDS="CASH_FUNDS",e.FIXED_TIER_POINTS="FIXED_TIER_POINTS",e.FIXED_REWARD_POINTS="FIXED_REWARD_POINTS",e.BASED_ON_DEPOSIT_TIER_POINTS="BASED_ON_DEPOSIT_TIER_POINTS",e.BASED_ON_DEPOSIT_REWARD_POINTS="BASED_ON_DEPOSIT_REWARD_POINTS",e.CRYPTO="CRYPTO",e.TOURNAMENT_TICKET="TOURNAMENT_TICKET",e.FREE_GAMES="FREE_GAMES",e})(),a=(()=>{class e{}return e.REMOVE_LOYALTY_REWARDS={filter:e=>e.filter((e=>!o.getLoyaltyFlags().includes(e)))},e})(),s=(()=>{class e{getBonusRewardsFlags(e,t,n){let i=[];return this.hasFunds(e,t)&&this.isFixedAmount(e,t)&&i.push(o.FIXED_AMOUNT_FUNDS),this.hasFunds(e,t)&&!this.isFixedAmount(e,t)&&i.push(o.PERCENTAGE_AMOUNT_FUNDS),this.hasCashFunds(e,t)&&i.push(o.CASH_FUNDS),this.hasFixedTierPoints(e)&&i.push(o.FIXED_TIER_POINTS),this.hasFixedRewardPoints(e)&&i.push(o.FIXED_REWARD_POINTS),this.hasBasedOnDepositTierPoints(e,t)&&i.push(o.BASED_ON_DEPOSIT_TIER_POINTS),this.hasBasedOnDepositRewardPoints(e,t)&&i.push(o.BASED_ON_DEPOSIT_REWARD_POINTS),this.hasCrypto(e,t)&&i.push(o.CRYPTO),this.hasTournamentTicket(e)&&i.push(o.TOURNAMENT_TICKET),this.hasFreeGames(e)&&i.push(o.FREE_GAMES),n&&n.forEach((e=>{i=e.filter(i)})),i}hasFunds(e,t){return!!(e.outcome&&e.outcome.funds&&e.outcome.funds.amounts&&e.outcome.funds.amounts[t])}isFixedAmount(e,t){return i.YM===this.getAmountType(e,t)}getAmountType(e,t){return e.outcome.funds.amounts[t]&&e.outcome.funds.amounts[t].type}hasFixedTierPoints(e){return!!(e.outcome&&e.outcome.points&&e.outcome.points.fixed&&e.outcome.points.fixed.tier)}hasFixedRewardPoints(e){return!!(e.outcome&&e.outcome.points&&e.outcome.points.fixed&&e.outcome.points.fixed.reward)}hasBasedOnDepositTierPoints(e,t){return!!(e.outcome&&e.outcome.points&&e.outcome.points.basedOnDeposit&&e.outcome.points.basedOnDeposit[t]&&e.outcome.points.basedOnDeposit[t].tier)}hasBasedOnDepositRewardPoints(e,t){return!!(e.outcome&&e.outcome.points&&e.outcome.points.basedOnDeposit&&e.outcome.points.basedOnDeposit[t]&&e.outcome.points.basedOnDeposit[t].reward)}hasCrypto(e,t){return!!e.outcome&&!!e.outcome.crypto&&!!e.outcome.crypto.amounts[t]}hasTournamentTicket(e){return!!e.outcome&&!!e.outcome.tournamentTicket&&!!e.outcome.tournamentTicket.id}hasCashFunds(e,t){return!!(e.outcome&&e.outcome.cashFunds&&e.outcome.cashFunds.amounts&&e.outcome.cashFunds.amounts[t])}hasFreeGames(e){return!!e.outcome&&!!e.outcome.freeGames&&!!e.outcome.freeGames.id}isTangibleReward(e){return e.outcome.tangibleReward&&e.outcome.tangibleReward.enabled}isSingleGoal(e){return e.description&&e.description.bonusType&&"SINGLE_GOAL"===e.description.bonusType}getMainIcon(e,t,n){return this.isSingleGoal(e)?"icon-single-goal":this.hasTournamentTicket(e)&&1===this.getBonusRewardsFlags(e,t,n).length?"icon-ticket":this.hasCashFunds(e,t)&&1===this.getBonusRewardsFlags(e,t,n).length?"icon-help-financial":this.hasFreeGames(e)&&1===this.getBonusRewardsFlags(e,t,n).length?"icon-free-games":this.isTangibleReward(e)?"icon-tangible-reward":"icon-bonus"}hasTournamentTicketAndMultipleRewards(e,t,n){return this.hasTournamentTicket(e)&&this.getBonusRewardsFlags(e,t,n).length>1}hasCashFundsAndMultipleRewards(e,t,n){return this.hasCashFunds(e,t)&&this.getBonusRewardsFlags(e,t,n).length>1}hasFreeGamesAndMultipleRewards(e,t,n){return this.hasFreeGames(e)&&this.getBonusRewardsFlags(e,t,n).length>1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},90895:(e,t,n)=>{"use strict";n.d(t,{l:()=>d});var i=n(58132),r=n(23550),o=n(30173),a=n(4309),s=n(42998),c=n(9359),l=n(57826);let d=(()=>{class e{constructor(e,t,n){this.httpClient=e,this.deviceService=t,this.rewardClaimedNotificationPopupService=n,this.baseUrl=`/services/reward-issuing/v1/profiles/${i.Y.SESSION_ID_PLACEHOLDER}`,this.claimUrl=`${this.baseUrl}/claimed-rewards`,this.claimByCodeUrl=`${this.baseUrl}/claimed-rewards-by-code`,this.forfeitUrl=`${this.baseUrl}/forfeited-reward`,this.claimCryptoUrl=`${this.baseUrl}/claimed-crypto-rewards`,this.handleBackendResponse=(0,s.catchError)((e=>(0,a.throwError)(e.status||"Internal Server Error"))),this.handleError=(0,s.catchError)((e=>{let t;switch(e.status){case 400:t="Not Accepted";break;case 401:t="Unauthorized";break;case 404:t="Unprocessable";break;case 409:t="Redeemed Maximum Times";break;default:t="Internal Server Error"}return(0,a.throwError)(t)}))}init(){this.rewardClaimedNotificationPopupService.claimBonusEvent.pipe((0,s.exhaustMap)((e=>this.claimBonusByCode(e)))).subscribe((()=>this.rewardClaimedNotificationPopupService.onBonusClaimed()),(()=>this.rewardClaimedNotificationPopupService.onBonusFailed()))}claimBonus(e){return this.httpClient.post(this.claimUrl,{rewardId:e},{withCredentials:!0}).pipe(this.handleError)}claimBonusByCode(e){return this.httpClient.post(this.claimByCodeUrl,{bonusCode:e},{withCredentials:!0}).pipe(this.handleBackendResponse)}forfeitPendingBonus(e){return this.httpClient.post(this.forfeitUrl,{rewardId:e},{withCredentials:!0}).pipe(this.handleError)}claimCryptoBonus(e,t,n,i,o){let a={bonusReference:e,amount:t,securityAnswer1:i,walletAddress:n,instrumentTypeCode:o},s=new r.HttpHeaders;return s=s.set("x-ecomm-channel",this.getEcommDeviceType()),this.httpClient.post(this.claimCryptoUrl,a,{withCredentials:!0,headers:s})}getNumDepositsForClaimed(e,t){return this.httpClient.get(this.baseNumberOfDepositsUrl(e),{params:{claimedAt:t},withCredentials:!0})}baseNumberOfDepositsUrl(e){return`${this.baseUrl}/rewards/${e}/number-of-deposits`}getEcommDeviceType(){return this.deviceService.isDesktop()?"W":"M"}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](r.HttpClient),l["ɵɵinject"](o.U),l["ɵɵinject"](c.L))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},3150:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var i=n(58132),r=n(23550),o=n(4309),a=n(42998);class s{constructor(e){this.id=e.bonusId,this.externalId=e.externalId,this.name=e.name,this.description=e.description,this.playthrough=e.playthrough,this.playthroughGoal=e.playthroughGoal,this.balance=e.balance,this.balanceAtCreation=e.balanceAtCreation,this.balanceReleased=e.balanceReleased,this.currency=e.currency,this.expiresAt=e.expiresAt,this.productFactor=e.productFactor,this.ledgerType=e.ledgerType,this.type=e.type}}var c=n(57826);class l{constructor(e){this.http=e,this.onActiveBonusChange=new o.Subject,this.bonusTypeForPlayer={bonusTypes:["RELOAD","FIRST_TIME_DEPOSIT","UPFRONT","AFF_DEPOSIT","CRYPTO","TIER_RELOAD_PURCHASABLE","SINGLE_GOAL"]},this.bonusTypeForDeposit={bonusTypes:["RELOAD","FIRST_TIME_DEPOSIT","AFF_DEPOSIT","TIER_RELOAD_PURCHASABLE","SINGLE_GOAL"]},this.baseAvailablesAccountUrl="/services/reward-availability/v1/profiles/"+i.Y.SESSION_ID_PLACEHOLDER+"/available-rewards",this.offersAccountUrl="/services/reward-availability/v1/profiles/"+i.Y.SESSION_ID_PLACEHOLDER+"/available-offers"}getAvailablesForAccount(e){return this.getAvailablesByType(this.bonusTypeForPlayer,e)}getAvailableById(e){let t=this.http.get(this.baseAvailablesAccountUrl+"/"+e,{withCredentials:!0});return this.handleBackendResponse(t,(e=>e))}getAvailablesWithDepositForAccount(e){return this.getAvailablesByType(this.bonusTypeForDeposit,e)}getActivesForAccount(){return this.http.get(l.BONUSES_URL,{params:{status:"Opening,Open"}}).pipe((0,a.map)((e=>e.map((e=>new s(e))))),(0,a.tap)((e=>this.onActiveBonusChange.next(e))))}getOffersForAccount(e){let t=new r.HttpHeaders;e&&(t=t.set("X-LANGUAGE",e));let n=this.http.get(this.offersAccountUrl,{withCredentials:!0,headers:t});return this.handleBackendResponse(n,(e=>e.items))}getAvailablesByType(e,t){let n=new r.HttpHeaders;t&&(n=n.set("X-LANGUAGE",t));let i=this.http.get(this.baseAvailablesAccountUrl,{withCredentials:!0,headers:n,params:e});return this.handleBackendResponse(i,(e=>e.items))}handleBackendResponse(e,t){return e.pipe((0,a.map)(t),(0,a.catchError)((e=>(0,o.throwError)(e.error||"Internal Server Error"))))}}l.BONUSES_URL="/services/wallet-gateway/v1/profiles/"+i.Y.SESSION_ID_PLACEHOLDER+"/bonuses",l.ɵfac=function(e){return new(e||l)(c["ɵɵinject"](r.HttpClient))},l.ɵprov=c["ɵɵdefineInjectable"]({token:l,factory:l.ɵfac})},75752:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var i=n(23550),r=n(58132),o=n(4309),a=n(42998),s=n(57826);class c{constructor(e){this.http=e}forfeitBonus(e){let t=this.http.delete(c.BONUSES_URL+e,{params:{transactionId:e+"-Forfeit"},withCredentials:!0});return this.handleBackendResponse(t,(()=>!0))}redeemPoints(e){let t=this.http.post(c.REDEEM_URL,{rewardId:e},{withCredentials:!0});return this.handleBackendResponse(t,(()=>!0))}handleBackendResponse(e,t){return e.pipe((0,a.map)(t),(0,a.catchError)((e=>(0,o.throwError)(e.error.error||"Internal Server Error"))))}}c.BONUSES_URL="/services/wallet-gateway/v1/profiles/"+r.Y.SESSION_ID_PLACEHOLDER+"/bonuses/",c.REDEEM_URL="/services/loyalty-points/v1/players/<sessionId>/redeem",c.ɵfac=function(e){return new(e||c)(s["ɵɵinject"](i.HttpClient))},c.ɵprov=s["ɵɵdefineInjectable"]({token:c,factory:c.ɵfac})},56647:(e,t,n)=>{"use strict";n.d(t,{G:()=>c});var i=n(3150),r=n(75752),o=n(90895),a=n(45455),s=n(57826);let c=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.u,r.Q,o.l,a.Yu]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=s["ɵɵdefineNgModule"]({type:e}),e.ɵinj=s["ɵɵdefineInjector"]({}),e})()},3442:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.messageOverlay=!1,this.fullWidth=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},81731:(e,t,n)=>{"use strict";n.d(t,{YM:()=>i,iV:()=>r});const i="FIXED",r="PERCENTAGE"},22322:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,V:()=>i});const i=new(n(57826).InjectionToken)("TERMS_AND_CONDITIONS_URL"),r="BONUS_CODE_KEY"},99176:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.arrowBelongsBonusDescription=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},99191:(e,t,n)=>{"use strict";n.d(t,{_:()=>m});var i=n(57826),r=n(6856),o=n(84704),a=n(29135),s=n(38977),c=n(22322),l=n(40475),d=n(56614),u=n(73753),p=n(43279),h=n(44236);let m=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[s.b,{provide:c.V,useValue:t}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[l.ReactiveFormsModule,o.a,r.CommonModule,a.r,d.F,u.RouterModule,p.R,h.S]]}),e})()},38977:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var i=n(4309),r=n(57826);let o=(()=>{class e{constructor(){this.subjectForShowList=new i.Subject,this.subjectSelectedBonus=new i.Subject}sendNotificationShowList(e){e&&(this.bonusesSearched=e),this.subjectForShowList.next()}getBonusesSearched(){return this.bonusesSearched}getNotificationShowList(){return this.subjectForShowList.asObservable()}getUserChoice(){return this.userChoice}updateErrors(e,t){this.userChoice&&(this.userChoice.differentPaymentMethod=e,this.userChoice.minAmountNotMatched=t)}sendNotificationSelectedBonus(e){this.userChoice=e?{bonusId:e.id,differentPaymentMethod:!1,minAmountNotMatched:!1}:null,this.subjectSelectedBonus.next(e)}getNotificationSelectedBonus(){return this.subjectSelectedBonus.asObservable()}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},98896:(e,t,n)=>{"use strict";n.d(t,{S:()=>c,b:()=>s});var i=n(23550),r=n(4309),o=n(42998),a=n(57826);let s=(()=>{class e{constructor(e){this.http=e,this.brandPropertiesUrl=e=>`/services/brand-admin/v1/brands/${e}/properties`,this.brandEnabledProductsUrl=e=>`${this.brandPropertiesUrl(e)}/products`,this.brandPropertiesCache={}}getProductsEnabledOnBrand(e,t){return this.getConfigurationFromUrl(this.brandEnabledProductsUrl(e),t)}getBrandProperties(e,t){const n=t?e+"_"+JSON.stringify(t):e;return this.brandPropertiesCache[n]?(0,r.of)(this.brandPropertiesCache[n]):this.getConfigurationFromUrl(this.brandPropertiesUrl(e),t).pipe((0,o.tap)((e=>this.brandPropertiesCache[n]=e)))}getBrandPropertiesOnRegion(e,t){return this.getBrandProperties(e,{regions:t})}getBrandPropertiesOnCountry(e,t){return this.getBrandProperties(e,{countries:t})}getBrandPropertiesOnCountryAndTerritory(e,t,n){return this.getBrandProperties(e,{countries:t,territories:n})}isProductSupported(e,t,n){return this.getProductsEnabledOnBrand(e,n).pipe((0,o.map)((e=>e.products&&e.products.some((e=>e===t)))))}getConfigurationFromUrl(e,t){return this.http.get(e,{params:t}).pipe((0,o.catchError)((e=>(0,r.throwError)(e.status))))}evalFeature(e,t){return this.getBrandProperties(e).pipe((0,o.map)((e=>t in e&&e[t].length>0&&"true"==e[t][0])))}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class c{static forTerritoryAndCountry(e,t){return{territories:e,countries:t}}}},57264:(e,t,n)=>{"use strict";n.d(t,{D:()=>l});var i=n(6856),r=n(68698),o=n(98338),a=n(99348),s=n(98896),c=n(57826);let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c["ɵɵdefineNgModule"]({type:e}),e.ɵinj=c["ɵɵdefineInjector"]({providers:[o.I,a.c,s.b],imports:[[i.CommonModule,r.T]]}),e})()},98338:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var i=n(4309),r=n(57826);let o=(()=>{class e{constructor(){this.brandCodeSubject=new i.ReplaySubject(1)}publishBrand(e){this.brandCodeSubject.next(e)}getBrandCode(){return this.brandCodeSubject.asObservable()}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},99348:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var i=n(4309),r=n(42998),o=n(57826),a=n(54679);let s=(()=>{class e{constructor(e){this.http=e,this.brandsUrl="/services/reference-data/v1/brands",this.regionsUrl=e=>`${this.brandsUrl}/${e}/regions`,this.brandUrl=e=>`${this.brandsUrl}/${e}`}getBrands(){return this.http.request(this.brandsUrl,{method:"GET"}).pipe((0,r.catchError)(this.handlError),(0,r.map)(this.extractItems))}getRegions(e){return this.http.request(this.regionsUrl(e),{method:"GET"}).pipe((0,r.catchError)(this.handlError),(0,r.map)(this.extractItems))}handlError(e){return(0,i.throwError)(e.error||"Internal Server Error")}extractItems(e){return e.json().items}getBrand(e){return this.http.request(this.brandUrl(e),{method:"GET"}).pipe((0,r.catchError)(this.handlError),(0,r.map)((e=>e.json())))}updateBrand(e){return this.http.request(this.brandUrl(e.code),{method:"PUT",body:e,withCredentials:!0}).pipe((0,r.catchError)(this.handlError))}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](a.eV))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},56323:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},85327:(e,t,n)=>{"use strict";n.d(t,{W:()=>s}),n(73753);var i=n(90388),r=n(42998),o=n(27222),a=n(57826);let s=(()=>{class e{constructor(e,t){this.articlesService=e,this.contentNotFoundHandler=t}resolve(e){let t=e.params.slug;return this.articlesService.getArticle(t).pipe((0,r.catchError)((e=>this.contentNotFoundHandler.resolveContentNotFoundOrThrow(e))))}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](o.J),a["ɵɵinject"](i.B))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},98465:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var i=n(73753),r=n(17069),o=n(55298),a=n(57826),s=n(63325),c=n(32716),l=n(79952),d=n(55183);let u=(()=>{class e{constructor(e,t){this.clickHandlerService=e,this.router=t,this.imageType=r._.large}ngOnInit(){this.articleCardlink=this.router.url.split("?")[0]+"/"+this.article.slug}trackEvent(e,t,n){e.eventClickTracked||(this.clickHandlerService.handleClick("article_card",!1,t,-1,n),e.eventClickTracked=!0)}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵdirectiveInject"](o.M),a["ɵɵdirectiveInject"](i.Router))},e.ɵcmp=a["ɵɵdefineComponent"]({type:e,selectors:[["bx-article-card-bm"]],hostVars:1,hostBindings:function(e,t){2&e&&a["ɵɵattribute"]("class",t.articleClass)},inputs:{article:"article",defaultImage:"defaultImage",imageType:"imageType",element:"element"},decls:28,vars:11,consts:[[1,"article-card-wrapper"],[1,"article-card"],[3,"bxLink","click"],[1,"card",3,"bxPreviewIndicator"],["bxImage","",1,"img-responsive",3,"src","defaultImage"],[1,"card-text"],[1,"card-text","card-footer"],[1,"card-footer-text"]],template:function(e,t){1&e&&(a["ɵɵtext"](0,"\n        "),a["ɵɵelementStart"](1,"article",0),a["ɵɵtext"](2,"\n            "),a["ɵɵelementStart"](3,"div",1),a["ɵɵtext"](4,"\n                "),a["ɵɵelementStart"](5,"a",2),a["ɵɵlistener"]("click",(function(e){return t.trackEvent(e,t.article.title,t.article.tracking)})),a["ɵɵtext"](6,"\n                    "),a["ɵɵelementStart"](7,"figure",3),a["ɵɵtext"](8,"\n                        "),a["ɵɵelement"](9,"img",4),a["ɵɵtext"](10,"\n                        "),a["ɵɵelementStart"](11,"figcaption",5),a["ɵɵtext"](12),a["ɵɵelementEnd"](),a["ɵɵtext"](13,"\n                        "),a["ɵɵelementStart"](14,"figcaption",6),a["ɵɵtext"](15,"\n                            "),a["ɵɵelementStart"](16,"span",7),a["ɵɵtext"](17),a["ɵɵelementEnd"](),a["ɵɵtext"](18,"\n                            "),a["ɵɵelementStart"](19,"span",7),a["ɵɵtext"](20),a["ɵɵpipe"](21,"bxDate"),a["ɵɵelementEnd"](),a["ɵɵtext"](22,"\n                        "),a["ɵɵelementEnd"](),a["ɵɵtext"](23,"\n                    "),a["ɵɵelementEnd"](),a["ɵɵtext"](24,"\n                "),a["ɵɵelementEnd"](),a["ɵɵtext"](25,"\n            "),a["ɵɵelementEnd"](),a["ɵɵtext"](26,"\n        "),a["ɵɵelementEnd"](),a["ɵɵtext"](27,"\n    ")),2&e&&(a["ɵɵadvance"](5),a["ɵɵproperty"]("bxLink",t.articleCardlink),a["ɵɵadvance"](2),a["ɵɵproperty"]("bxPreviewIndicator",t.article),a["ɵɵadvance"](2),a["ɵɵproperty"]("src",t.article.image,a["ɵɵsanitizeUrl"])("defaultImage",t.defaultImage),a["ɵɵattribute"]("alt",t.article.imageAltText),a["ɵɵadvance"](3),a["ɵɵtextInterpolate1"]("\n                            ",t.article.title,"\n                        "),a["ɵɵadvance"](5),a["ɵɵtextInterpolate1"]("\n                                ",t.article.category,"\n                            "),a["ɵɵadvance"](3),a["ɵɵtextInterpolate1"]("\n                                ",a["ɵɵpipeBind2"](21,8,t.article.publishedDate||t.article.publicationDate,"mediumDate"),"\n                            "))},directives:[s.I,c.Z,l.t],pipes:[d.a],styles:[".article-card-wrapper[_ngcontent-%COMP%] {\n  margin: 0;\n  padding: 0;\n  border: 0;\n  display: inline-flex;\n  width: 33%; }\n  .article-card-wrapper[_ngcontent-%COMP%]   .article-card[_ngcontent-%COMP%] {\n    margin: 8px; }\n  .article-card-wrapper[_ngcontent-%COMP%]   .article-card[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%] {\n      height: 70px; }\n  .article-card-wrapper[_ngcontent-%COMP%]   .article-card[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%]   .card-footer-text[_ngcontent-%COMP%]:first-child {\n        text-align: left; }\n  .article-card-wrapper[_ngcontent-%COMP%]   .article-card[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%]   .card-footer-text[_ngcontent-%COMP%]:nth-child(2) {\n        text-align: right; }\n  @media only screen and (orientation: landscape) and (max-width: 767px) {\n  .article-card-wrapper[_ngcontent-%COMP%] {\n    width: 49%; } }\n  @media only screen and (orientation: portrait) and (max-width: 767px) {\n  .article-card-wrapper[_ngcontent-%COMP%] {\n    width: 100%;\n    display: inline-block; } }"]}),e})()},52036:(e,t,n)=>{"use strict";n.d(t,{C:()=>d});var i=n(63253),r=n(44960),o=n(65568),a=n(7430),s=n(10749),c=n(30173),l=n(57826);let d=(()=>{class e{constructor(e,t,n){this.layoutMapperService=e,this.marketingPageService=t,this.deviceService=n}mapArticles(e){let t=new o.L;t.title=this.getContentFieldValue(e,"title"),t.browserTitle=this.getContentFieldValue(e,"title"),t.articles=[],t.draft="draft"===e.status;let n=this.marketingPageService.processPage(e);if(n.components.length>0)t.marketingPage=n;else{let n=this.getContentFieldValue(e,"items");if(n&&Array.isArray(n)&&n[0]){let e=n[0],i=this.getContentFieldValue(e,"items");Array.isArray(i)&&(t.articles=i.map((e=>this.mapArticleCard(e))))}}return t}mapArticle(e){let t=this.getArticleImage(e);const n=this.getContentFieldValue(e,"metafields"),r=this.getMetaField(n,"title"),o=this.getMetaField(n,"canonical");return{meta:this.mapMetaFields(n),title:this.getContentFieldValue(e,"title"),browserTitle:r&&r.content,category:this.getContentFieldValue(e,"category"),publicationDate:e.publishedAt||e.updatedAt,publishedDate:this.getContentFieldValue(e,"published_date"),articleImage:t&&t.url,articleImageAltText:t&&t.alt,body:this.getContentFieldValue(e,"body"),layoutType:this.layoutMapperService.resolveLayoutType(e),draft:"draft"===e.status,ampEnabled:this.getContentFieldValue(e,"AMPEnabled"),uriSuffix:this.getContentFieldValue(e,"uriSuffix"),canonicalTag:o&&o.content,h1Enabled:!1!==this.getContentFieldValue(e,"h1Enabled"),slugname:e.slugname||e.slug||i(["fields","slug"],e)}}getArticleImage(e){const t=this.getContentFieldValue(e,"mobile_page_image");if("mobile"===this.deviceService.getDeviceType()&&t&&t.url)return t;const n=this.getContentFieldValue(e,"page_default_image");return n&&n.url?n:this.getContentFieldValue(e,"page_image")}mapArticleCard(e){let t=new a.T,n=e.slug||this.getContentFieldValue(e,"slug"),i=this.getContentFieldValue(e,"uriSuffix");t.slug=i||n,t.title=this.getContentFieldValue(e,"title"),t.category=this.getContentFieldValue(e,"category"),t.publicationDate=e.publishedAt||e.updatedAt,t.publishedDate=this.getContentFieldValue(e,"published_date");let r=this.getContentFieldValue(e,"default_card_image");return r&&r.url||(r=this.getContentFieldValue(e,"card_image")),t.image=r&&r.url,t.imageAltText=r&&r.alt,t.draft="draft"===e.status,t}getContentFieldValue(e,t){return e.fields&&e.fields[t]}mapMetaFields(e){return e?Object.keys(e).map((t=>this.getMetaField(e,t))):[]}getMetaField(e,t){if(!e)return;let n=e[t];if(!n)return;let i={content:n.content};return i[n.type]=t,i}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](s.I),l["ɵɵinject"](r.F),l["ɵɵinject"](c.U))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},91787:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var i=n(65568),r=n(7430),o=n(57826);let a=(()=>{class e{constructor(){}mapArticles(e){let t=new i.L;return t.title=this.getFields(e,"title"),t.browserTitle=this.getFields(e,"browserTitle"),t.articles=this.getFields(e,"items").map((e=>this.mapArticleCard(e))),t}mapArticle(e){return{meta:e.meta,title:this.getFields(e,"title"),browserTitle:this.getFields(e,"browserTitle"),category:this.getFields(e,"category"),publicationDate:this.getFields(e,"publicationDate"),articleImage:this.getFields(e,"articleImage"),articleImageAltText:this.getFields(e,"articleImageAltText"),body:this.getFields(e,"body"),ampEnabled:this.getFields(e,"AMPEnabled"),uriSuffix:this.getFields(e,"uriSuffix"),h1Enabled:!1!==this.getFields(e,"h1Enabled")}}mapArticleCard(e){let t=new r.T;return t.slug=e.slug,t.title=this.getFields(e,"title"),t.category=this.getFields(e,"category"),t.publicationDate=this.getFields(e,"publicationDate"),t.image=this.getFields(e,"cardImage"),t.imageAltText=this.getFields(e,"cardImageAltText"),t}getFields(e,t){return e.fields&&e.fields[t]&&e.fields[t].value}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},69921:(e,t,n)=>{"use strict";n.d(t,{J:()=>k,e:()=>j});var i=n(6856),r=n(57826),o=n(73753),a=n(26709),s=n(27222),c=n(32716),l=n(97637),d=n(84853),u=n(38458),p=n(42680),h=n(56323),m=n(98465),g=n(17069);let f=(()=>{class e{constructor(e,t,n){this.componentFactoryResolver=e,this.viewContainerRef=t,this.articleCardConfig=n,this.imageType=g._.large}ngOnInit(){const e=this.articleCardConfig.component||m.T,t=this.componentFactoryResolver.resolveComponentFactory(e),n=this.viewContainerRef.createComponent(t).instance;n.articleClass=this.articleClass,n.article=this.article,n.defaultImage=this.defaultImage,n.imageType=this.imageType,n.element=this.element}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ComponentFactoryResolver),r["ɵɵdirectiveInject"](r.ViewContainerRef),r["ɵɵdirectiveInject"](h.L))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-article-card"]],hostVars:1,hostBindings:function(e,t){2&e&&r["ɵɵattribute"]("class",t.articleClass)},inputs:{article:"article",defaultImage:"defaultImage",imageType:"imageType",element:"element"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();const v=["cardContainer"];function b(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelement"](2,"bx-marketing-page",6),r["ɵɵtext"](3,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("data",e.data.marketingPage)}}function y(e,t){if(1&e&&(r["ɵɵelementStart"](0,"bx-article-card",9),r["ɵɵtext"](1,"\n                            "),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=r["ɵɵnextContext"](2);r["ɵɵproperty"]("element",n.getParentElement())("article",e)("defaultImage",n.imageService.getPlaceholderImage(224,117))}}function C(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                        "),r["ɵɵelementStart"](1,"div",null,7),r["ɵɵtext"](3,"\n                            "),r["ɵɵtemplate"](4,y,2,3,"bx-article-card",8),r["ɵɵtext"](5,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                    ")),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](4),r["ɵɵproperty"]("ngForOf",null==e.data?null:e.data.articles)}}let S=(()=>{class e{constructor(e,t,n,i,r){this.articlesService=e,this.router=t,this.imageService=n,this.element=i,this.platformId=r}ngOnInit(){this.articlesSubcription=this.articlesService.getArticles().subscribe((e=>{this.data=e})),(0,i.isPlatformBrowser)(this.platformId)&&this.initScroll()}ngOnDestroy(){this.articlesSubcription&&this.articlesSubcription.unsubscribe()}initScroll(){let e=document.createEvent("CustomEvent");e.initCustomEvent("scroll",!0,!0,{}),document.dispatchEvent(e)}onClose(e){this.router.navigate([""])}getParentElement(){return this.element.nativeElement.parentElement.parentElement}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](s.J),r["ɵɵdirectiveInject"](o.Router),r["ɵɵdirectiveInject"](a.A),r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.PLATFORM_ID))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-articles"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](v,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.cardContainer=e.first)}},decls:21,vars:5,consts:[[1,"legal-pages",3,"bxPreviewIndicator"],["overlayType","large"],[3,"defaultCloseHandling","close"],["role","heading",1,"h2-heading"],[4,"ngIf","ngIfElse"],["cards",""],[3,"data"],["cardContainer",""],["imageType","small",3,"element","article","defaultImage",4,"ngFor","ngForOf"],["imageType","small",3,"element","article","defaultImage"]],template:function(e,t){if(1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"div",0),r["ɵɵtext"](2,"\n            "),r["ɵɵelementStart"](3,"bx-overlay-container",1),r["ɵɵtext"](4,"\n                "),r["ɵɵelementStart"](5,"bx-overlay-header",2),r["ɵɵlistener"]("close",(function(e){return t.onClose(e)})),r["ɵɵtext"](6,"\n                    "),r["ɵɵelementStart"](7,"h1",3),r["ɵɵtext"](8),r["ɵɵelementEnd"](),r["ɵɵtext"](9,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](10,"\n                "),r["ɵɵelementStart"](11,"bx-overlay-body"),r["ɵɵtext"](12,"\n                    "),r["ɵɵtemplate"](13,b,4,1,"ng-container",4),r["ɵɵtext"](14,"\n                    "),r["ɵɵtemplate"](15,C,7,1,"ng-template",null,5,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](17,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](18,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](19,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](20,"\n    ")),2&e){const e=r["ɵɵreference"](16);r["ɵɵadvance"](1),r["ɵɵproperty"]("bxPreviewIndicator",t.data),r["ɵɵadvance"](4),r["ɵɵproperty"]("defaultCloseHandling",!1),r["ɵɵadvance"](3),r["ɵɵtextInterpolate"](null==t.data?null:t.data.title),r["ɵɵadvance"](5),r["ɵɵproperty"]("ngIf",null==t.data?null:t.data.marketingPage)("ngIfElse",e)}},directives:[c.Z,l.l,d.z,u.l,i.NgIf,p.n,i.NgForOf,f],styles:["h1.h2-heading[_ngcontent-%COMP%] {\n  padding: 20px 0;\n  color: #000000; }\n\n.modal-overlay[_ngcontent-%COMP%]   h1.h2-heading[_ngcontent-%COMP%] {\n  padding: 20px 0; }\n\n.modal-text-content[_ngcontent-%COMP%] {\n  padding: 0 20px 20px; }"]}),e})();var x=n(22291),w=n(15982),E=n(96741),I=n(48108),P=n(79952),T=n(55183);function _(e,t){if(1&e&&(r["ɵɵelementStart"](0,"h1",8),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵtextInterpolate1"]("\n                        ",e.article.title,"\n                    ")}}function M(e,t){if(1&e&&r["ɵɵelement"](0,"img",9),2&e){const e=r["ɵɵnextContext"]();r["ɵɵpropertyInterpolate"]("alt",e.article.articleImageAltText),r["ɵɵproperty"]("src",e.article.articleImage,r["ɵɵsanitizeUrl"])("defaultImage",e.imageService.getPlaceholderImage(862,350,"transparent"))}}let O=(()=>{class e{constructor(e,t,n,i,r,o,a){this.route=e,this.router=t,this.domSanitizer=n,this.imageService=i,this.ampMarkupService=r,this.languageService=o,this.platformId=a}ngOnInit(){this.article=this.article||this.route.snapshot.data.article,this.bodySanitized=this.formatBody(this.article.body),(0,i.isPlatformBrowser)(this.platformId)&&this.article.ampEnabled&&this.languageService.getLanguage().subscribe((e=>{this.ampMarkupService.createAMPLink(this.article.canonicalTag,this.article.uriSuffix,e,this.languageService.defaultLanguage)}))}ngOnDestroy(){(0,i.isPlatformBrowser)(this.platformId)&&this.article.ampEnabled&&this.ampMarkupService.removeAMPLink()}goToArticlesPage(){this.router.navigate(["articles"])}formatBody(e){return this.domSanitizer.bypassSecurityTrustHtml(this.imageService.replaceImages(e))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](o.ActivatedRoute),r["ɵɵdirectiveInject"](o.Router),r["ɵɵdirectiveInject"](w.DomSanitizer),r["ɵɵdirectiveInject"](x.AJ),r["ɵɵdirectiveInject"](E.i),r["ɵɵdirectiveInject"](I.T),r["ɵɵdirectiveInject"](r.PLATFORM_ID))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-article-details"]],decls:26,vars:10,consts:[["data-dynamic-element","dynamicElement",3,"bxPreviewIndicator"],["overlayType","large",1,"article-details"],[3,"backButton","defaultBackHandling","back"],["role","heading","class","h1-heading article-title",4,"ngIf"],["bxImage","","class","img-responsive article-image",3,"alt","src","defaultImage",4,"ngIf"],[1,"article-date"],[1,"h4-heading"],[1,"article-body",3,"innerHTML"],["role","heading",1,"h1-heading","article-title"],["bxImage","",1,"img-responsive","article-image",3,"alt","src","defaultImage"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"article",0),r["ɵɵtext"](2,"\n            "),r["ɵɵelementStart"](3,"bx-overlay-container",1),r["ɵɵtext"](4,"\n                "),r["ɵɵelementStart"](5,"bx-overlay-header",2),r["ɵɵlistener"]("back",(function(){return t.goToArticlesPage()})),r["ɵɵtext"](6,"\n                    "),r["ɵɵtemplate"](7,_,2,1,"h1",3),r["ɵɵtext"](8,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](9,"\n                "),r["ɵɵelementStart"](10,"bx-overlay-body"),r["ɵɵtext"](11,"\n                    "),r["ɵɵtemplate"](12,M,1,3,"img",4),r["ɵɵtext"](13,"\n                    "),r["ɵɵelementStart"](14,"div",5),r["ɵɵtext"](15,"\n                        "),r["ɵɵelementStart"](16,"h4",6),r["ɵɵtext"](17),r["ɵɵpipe"](18,"bxDate"),r["ɵɵelementEnd"](),r["ɵɵtext"](19,"\n                    "),r["ɵɵelementEnd"](),r["ɵɵtext"](20,"\n                    "),r["ɵɵelement"](21,"div",7),r["ɵɵtext"](22,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](23,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](24,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](25,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("bxPreviewIndicator",t.article),r["ɵɵadvance"](4),r["ɵɵproperty"]("backButton",!0)("defaultBackHandling",!1),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!1!==t.article.h1Enabled),r["ɵɵadvance"](5),r["ɵɵproperty"]("ngIf",t.article.articleImage),r["ɵɵadvance"](5),r["ɵɵtextInterpolate1"]("\n                            ",r["ɵɵpipeBind2"](18,7,t.article.publishedDate||t.article.publicationDate,"mediumDate"),""),r["ɵɵadvance"](4),r["ɵɵproperty"]("innerHTML",t.bodySanitized,r["ɵɵsanitizeHtml"]))},directives:[c.Z,l.l,d.z,i.NgIf,u.l,P.t],pipes:[T.a],styles:[".article-title[_ngcontent-%COMP%] {\n  padding: 20px;\n  color: #000000;\n  font-size: 1.67em; }\n\n.article-date[_ngcontent-%COMP%] {\n  padding-top: 20px; }\n\n.article-body[_ngcontent-%COMP%] {\n  padding-top: 20px; }\n\n.article-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {\n    padding-bottom: 10px; }"]}),e})();var A=n(85327);const k="articles",j=[{path:"",component:S,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayComponentStyle:"noHorizontalScroll"}},{path:":slug",resolve:{article:A.W},data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayComponentStyle:"noHorizontalScroll"},component:O}]},27222:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var i=n(16462),r=n(43431),o=n(42998),a=n(52036),s=n(91787),c=n(57826);let l=(()=>{class e{constructor(e,t,n,i){this.contentService=e,this.cmsFeatureFlagService=t,this.articlesMapper=n,this.articlesCmsMapper=i,this.CONTENT_SECTION="articles"}getArticles(){let e;return e=this.contentService.getContentBySlug(this.CONTENT_SECTION,this.CONTENT_SECTION),this.mapResponse(e,"mapArticles")}getArticle(e){let t,n,i;return this.cmsFeatureFlagService.isSectionEnabled(this.CONTENT_SECTION)?(t="content_page",n="article"):e=`${this.CONTENT_SECTION}/${e}`,i=this.contentService.getContentByUriSuffix(e,this.CONTENT_SECTION,t,n),this.mapResponse(i,"mapArticle").pipe((0,o.take)(1))}mapResponse(e,t){return e.pipe((0,o.map)((e=>this.classMapper()[t](e))))}classMapper(){return this.cmsFeatureFlagService.isSectionEnabled(this.CONTENT_SECTION)?this.articlesCmsMapper:this.articlesMapper}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](i._),c["ɵɵinject"](r.u),c["ɵɵinject"](s.z),c["ɵɵinject"](a.C))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},7430:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});class i{}},65568:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});class i{}},10749:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.TAGS_TO_LAYOUT_MAPPING={leftaligned:"layout-left-aligned",centeredaligned:"layout-centered-aligned",overlapped:"layout-overlapped"}}resolveLayoutType(e){let t=e.fields&&e.fields.tags||e.tags;return t&&t.split(",").map((e=>this.TAGS_TO_LAYOUT_MAPPING[e.trim()])).find((e=>!!e))||null}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},17069:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var i=(()=>(function(e){e[e.large=0]="large",e[e.small=1]="small"}(i||(i={})),i))()},13965:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var i=n(17069),r=n(57826),o=n(73753),a=n(32716),s=n(79952);const c=function(e){return[e]};let l=(()=>{class e{constructor(){this.imageType=i._.large}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-promotion-card-bm"]],hostVars:1,hostBindings:function(e,t){2&e&&r["ɵɵattribute"]("class",t.promotionClass)},inputs:{promotion:"promotion",defaultImage:"defaultImage",imageType:"imageType",element:"element"},decls:18,vars:8,consts:[[1,"promotion-card-wrapper"],[1,"promotion-card"],[3,"routerLink"],[1,"card",3,"bxPreviewIndicator"],["bxImage","",1,"img-responsive",3,"src","defaultImage"],[1,"card-text"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"article",0),r["ɵɵtext"](2,"\n            "),r["ɵɵelementStart"](3,"div",1),r["ɵɵtext"](4,"\n                "),r["ɵɵelementStart"](5,"a",2),r["ɵɵtext"](6,"\n                    "),r["ɵɵelementStart"](7,"figure",3),r["ɵɵtext"](8,"\n                        "),r["ɵɵelement"](9,"img",4),r["ɵɵtext"](10,"\n                        "),r["ɵɵelementStart"](11,"figcaption",5),r["ɵɵtext"](12),r["ɵɵelementEnd"](),r["ɵɵtext"](13,"\n                    "),r["ɵɵelementEnd"](),r["ɵɵtext"](14,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](15,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](16,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](17,"\n    ")),2&e&&(r["ɵɵadvance"](5),r["ɵɵproperty"]("routerLink",r["ɵɵpureFunction1"](6,c,t.promotion.slug)),r["ɵɵadvance"](2),r["ɵɵproperty"]("bxPreviewIndicator",t.promotion),r["ɵɵadvance"](2),r["ɵɵproperty"]("src",t.promotion.image,r["ɵɵsanitizeUrl"])("defaultImage",t.defaultImage),r["ɵɵattribute"]("alt",t.promotion.imageAltText),r["ɵɵadvance"](3),r["ɵɵtextInterpolate1"]("\n                            ",t.promotion.title,"\n                        "))},directives:[o.RouterLinkWithHref,a.Z,s.t],styles:[".promotion-card-wrapper[_ngcontent-%COMP%] {\n  margin: 0;\n  padding: 0;\n  border: 0;\n  display: inline-block;\n  width: 33%;\n  vertical-align: middle; }\n  .promotion-card-wrapper[_ngcontent-%COMP%]   .promotion-card[_ngcontent-%COMP%] {\n    margin: 8px; }\n  @media only screen and (orientation: landscape) and (max-width: 767px) {\n  .promotion-card-wrapper[_ngcontent-%COMP%] {\n    width: 49%; } }\n  @media only screen and (orientation: portrait) and (max-width: 767px) {\n  .promotion-card-wrapper[_ngcontent-%COMP%] {\n    width: 100%; } }"]}),e})()},10322:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},675:(e,t,n)=>{"use strict";n.d(t,{G:()=>s}),n(73753);var i=n(90388),r=n(42998),o=n(90187),a=n(57826);let s=(()=>{class e{constructor(e,t){this.promotionsService=e,this.contentNotFoundHandler=t}resolve(e){let t=e.params.slug;return this.promotionsService.getPromotion(t).pipe((0,r.catchError)((e=>this.contentNotFoundHandler.resolveContentNotFoundOrThrow(e))))}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](o.F),a["ɵɵinject"](i.B))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},20734:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var i=n(44960),r=n(15390),o=n(37292),a=n(10749),s=n(30173),c=n(57826);let l=(()=>{class e{constructor(e,t,n){this.layoutMapperService=e,this.marketingPageService=t,this.deviceService=n}mapPromotions(e){let t=new r.j,n=this.getMetaField(this.getContentFieldValue(e,"metafields"),"title");t.title=this.getContentFieldValue(e,"title"),t.browserTitle=n&&n.content||t.title,t.promotions=[],t.draft="draft"===e.status;let i=this.marketingPageService.processPage(e);if(i.components.length>0)t.marketingPage=i;else{let n=this.getContentFieldValue(e,"items");if(n&&Array.isArray(n)&&n[0]){let e=n[0],i=this.getContentFieldValue(e,"items");Array.isArray(i)&&(t.promotions=i.map((e=>this.mapPromotionCard(e))))}}return t}mapPromotion(e){let t=this.getPromotionImage(e);const n=this.getMetaField(this.getContentFieldValue(e,"metafields"),"title");return{meta:this.mapMetaFields(this.getContentFieldValue(e,"metafields")),title:this.getContentFieldValue(e,"title"),browserTitle:n&&n.content,promotionImage:t&&t.url,promotionImageAltText:t&&t.alt,body:this.getContentFieldValue(e,"body"),draft:"draft"===e.status,layoutType:this.layoutMapperService.resolveLayoutType(e),h1Enabled:!1!==this.getContentFieldValue(e,"h1Enabled")}}getPromotionImage(e){const t=this.getContentFieldValue(e,"mobile_page_image");if("mobile"===this.deviceService.getDeviceType()&&t&&t.url)return t;const n=this.getContentFieldValue(e,"page_default_image");return n&&n.url?n:this.getContentFieldValue(e,"page_image")}mapPromotionCard(e){let t=new o.D,n=e.slug||this.getContentFieldValue(e,"slug"),i=this.getContentFieldValue(e,"uriSuffix");t.slug=i||n,t.title=this.getContentFieldValue(e,"title");let r=this.getContentFieldValue(e,"default_card_image");return r&&r.url||(r=this.getContentFieldValue(e,"card_image")),t.image=r&&r.url,t.imageAltText=r&&r.alt,t.draft="draft"===e.status,t}getContentFieldValue(e,t){return e.fields&&e.fields[t]}mapMetaFields(e){return e?Object.keys(e).map((t=>this.getMetaField(e,t))):[]}getMetaField(e,t){if(!e||!e[t])return;let n=e[t],i={content:n.content};return i[n.type]=t,i}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](a.I),c["ɵɵinject"](i.F),c["ɵɵinject"](s.U))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},81901:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var i=n(15390),r=n(37292),o=n(57826);let a=(()=>{class e{constructor(){}mapPromotions(e){let t=new i.j;return t.title=this.getFields(e,"title"),t.browserTitle=this.getFields(e,"browserTitle"),t.promotions=this.getFields(e,"items").map((e=>this.mapPromotionCard(e))),t}mapPromotion(e){return{meta:e.meta,title:this.getFields(e,"title"),browserTitle:this.getFields(e,"browserTitle"),promotionImage:this.getFields(e,"promotionImage"),promotionImageAltText:this.getFields(e,"promotionImageAltText"),body:this.getFields(e,"body"),h1Enabled:!1!==this.getFields(e,"h1Enabled")}}mapPromotionCard(e){let t=new r.D;return t.slug=e.slug,t.title=this.getFields(e,"title"),t.image=this.getFields(e,"cardImage"),t.imageAltText=this.getFields(e,"cardImageAltText"),t}getFields(e,t){return e.fields&&e.fields[t]&&e.fields[t].value}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},73518:(e,t,n)=>{"use strict";n.d(t,{X:()=>M,J:()=>O});var i=n(6856),r=n(57826),o=n(73753),a=n(26709),s=n(90187),c=n(32716),l=n(97637),d=n(84853),u=n(38458),p=n(42680),h=n(10322),m=n(13965),g=n(17069);let f=(()=>{class e{constructor(e,t,n){this.componentFactoryResolver=e,this.viewContainerRef=t,this.promotionCardConfig=n,this.imageType=g._.large}ngOnInit(){const e=this.promotionCardConfig.component||m.O,t=this.componentFactoryResolver.resolveComponentFactory(e),n=this.viewContainerRef.createComponent(t).instance;n.promotionClass=this.promotionClass,n.promotion=this.promotion,n.defaultImage=this.defaultImage,n.imageType=this.imageType,n.element=this.element}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ComponentFactoryResolver),r["ɵɵdirectiveInject"](r.ViewContainerRef),r["ɵɵdirectiveInject"](h.c))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-promotion-card"]],hostVars:1,hostBindings:function(e,t){2&e&&r["ɵɵattribute"]("class",t.promotionClass)},inputs:{promotion:"promotion",defaultImage:"defaultImage",imageType:"imageType",element:"element"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();const v=["cardContainer"];function b(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelement"](2,"bx-marketing-page",6),r["ɵɵtext"](3,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("data",e.data.marketingPage)}}function y(e,t){if(1&e&&(r["ɵɵelementStart"](0,"bx-promotion-card",9),r["ɵɵtext"](1,"\n                            "),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=r["ɵɵnextContext"](2);r["ɵɵproperty"]("element",n.getParentElement())("promotion",e)("defaultImage",n.imageService.getPlaceholderImage(224,117))}}function C(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                        "),r["ɵɵelementStart"](1,"div",null,7),r["ɵɵtext"](3,"\n                            "),r["ɵɵtemplate"](4,y,2,3,"bx-promotion-card",8),r["ɵɵtext"](5,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                    ")),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](4),r["ɵɵproperty"]("ngForOf",null==e.data?null:e.data.promotions)}}let S=(()=>{class e{constructor(e,t,n,i,r){this.promotionsService=e,this.router=t,this.imageService=n,this.element=i,this.platformId=r}ngOnInit(){this.promotionsSubcription=this.promotionsService.getPromotions().subscribe((e=>{this.data=e})),(0,i.isPlatformBrowser)(this.platformId)&&this.initScroll()}ngOnDestroy(){this.promotionsSubcription&&this.promotionsSubcription.unsubscribe()}initScroll(){let e=document.createEvent("CustomEvent");e.initCustomEvent("scroll",!0,!0,{}),document.dispatchEvent(e)}onClose(e){this.router.navigate([""])}getParentElement(){return this.element.nativeElement.parentElement.parentElement}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](s.F),r["ɵɵdirectiveInject"](o.Router),r["ɵɵdirectiveInject"](a.A),r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.PLATFORM_ID))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-promotions"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](v,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.cardContainer=e.first)}},decls:21,vars:5,consts:[[1,"legal-pages",3,"bxPreviewIndicator"],["overlayType","large"],[3,"defaultCloseHandling","close"],["role","heading",1,"h2-heading"],[4,"ngIf","ngIfElse"],["cards",""],[3,"data"],["cardContainer",""],["imageType","small",3,"element","promotion","defaultImage",4,"ngFor","ngForOf"],["imageType","small",3,"element","promotion","defaultImage"]],template:function(e,t){if(1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"div",0),r["ɵɵtext"](2,"\n            "),r["ɵɵelementStart"](3,"bx-overlay-container",1),r["ɵɵtext"](4,"\n                "),r["ɵɵelementStart"](5,"bx-overlay-header",2),r["ɵɵlistener"]("close",(function(e){return t.onClose(e)})),r["ɵɵtext"](6,"\n                    "),r["ɵɵelementStart"](7,"h1",3),r["ɵɵtext"](8),r["ɵɵelementEnd"](),r["ɵɵtext"](9,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](10,"\n                "),r["ɵɵelementStart"](11,"bx-overlay-body"),r["ɵɵtext"](12,"\n                    "),r["ɵɵtemplate"](13,b,4,1,"ng-container",4),r["ɵɵtext"](14,"\n                    "),r["ɵɵtemplate"](15,C,7,1,"ng-template",null,5,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](17,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](18,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](19,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](20,"\n    ")),2&e){const e=r["ɵɵreference"](16);r["ɵɵadvance"](1),r["ɵɵproperty"]("bxPreviewIndicator",t.data),r["ɵɵadvance"](4),r["ɵɵproperty"]("defaultCloseHandling",!1),r["ɵɵadvance"](3),r["ɵɵtextInterpolate"](null==t.data?null:t.data.title),r["ɵɵadvance"](5),r["ɵɵproperty"]("ngIf",null==t.data?null:t.data.marketingPage)("ngIfElse",e)}},directives:[c.Z,l.l,d.z,u.l,i.NgIf,p.n,i.NgForOf,f],styles:["h1.h2-heading[_ngcontent-%COMP%] {\n  padding: 20px 0;\n  color: #000000; }\n\n.modal-overlay[_ngcontent-%COMP%]   h1.h2-heading[_ngcontent-%COMP%] {\n  padding: 20px 0; }\n\n.modal-text-content[_ngcontent-%COMP%] {\n  padding: 0 20px 20px; }"]}),e})();var x=n(22291),w=n(15982),E=n(4473),I=n(79952);function P(e,t){if(1&e&&(r["ɵɵelementStart"](0,"h1",6),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵtextInterpolate1"]("\n                        ",e.promotion.title,"\n                    ")}}let T=(()=>{class e{constructor(e,t,n,i,r){this.route=e,this.router=t,this.domSanitizer=n,this.imageService=i,this.transferStateServiceCache=r,this.fromUniversal=!1}ngOnInit(){this.promotion=this.promotion||this.route.snapshot.data.promotion,this.fromUniversal=this.transferStateServiceCache.isFromUniversal(),this.imageTransparent=x.f3,this.bodySanitized=this.formatBody(this.promotion.body)}goToPromotionsPage(){this.router.navigate(["promotions"])}formatBody(e){return this.domSanitizer.bypassSecurityTrustHtml(this.imageService.replaceImages(e))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](o.ActivatedRoute),r["ɵɵdirectiveInject"](o.Router),r["ɵɵdirectiveInject"](w.DomSanitizer),r["ɵɵdirectiveInject"](x.AJ),r["ɵɵdirectiveInject"](E.m))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-promotion-details"]],decls:19,vars:9,consts:[["data-dynamic-element","dynamicElement",3,"bxPreviewIndicator"],["overlayType","large",1,"promotion-details"],[3,"backButton","defaultBackHandling","back"],["role","heading","class","h1-heading promotion-title",4,"ngIf"],["bxImage","",1,"img-responsive","promotion-image",3,"alt","src","defaultImage"],[1,"promotion-body",3,"innerHTML"],["role","heading",1,"h1-heading","promotion-title"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"article",0),r["ɵɵtext"](2,"\n             "),r["ɵɵelementStart"](3,"bx-overlay-container",1),r["ɵɵtext"](4,"\n                "),r["ɵɵelementStart"](5,"bx-overlay-header",2),r["ɵɵlistener"]("back",(function(){return t.goToPromotionsPage()})),r["ɵɵtext"](6,"\n                    "),r["ɵɵtemplate"](7,P,2,1,"h1",3),r["ɵɵtext"](8,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](9,"\n                "),r["ɵɵelementStart"](10,"bx-overlay-body"),r["ɵɵtext"](11,"\n                    "),r["ɵɵelement"](12,"img",4),r["ɵɵtext"](13,"\n                    "),r["ɵɵelement"](14,"div",5),r["ɵɵtext"](15,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](16,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](17,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](18,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("bxPreviewIndicator",t.promotion),r["ɵɵadvance"](4),r["ɵɵproperty"]("backButton",!0)("defaultBackHandling",!1),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!1!==t.promotion.h1Enabled),r["ɵɵadvance"](5),r["ɵɵpropertyInterpolate"]("alt",t.promotion.promotionImageAltText),r["ɵɵproperty"]("src",t.promotion.promotionImage,r["ɵɵsanitizeUrl"])("defaultImage",t.imageService.getPlaceholderImage(862,350,"transparent")),r["ɵɵattribute"]("src",t.fromUniversal?t.promotion.promotionImage:t.imageTransparent,r["ɵɵsanitizeUrl"]),r["ɵɵadvance"](2),r["ɵɵproperty"]("innerHTML",t.bodySanitized,r["ɵɵsanitizeHtml"]))},directives:[c.Z,l.l,d.z,i.NgIf,u.l,I.t],styles:[".promotion-title[_ngcontent-%COMP%] {\n  padding: 20px;\n  color: #000000;\n  font-size: 1.67em; }\n\n.promotion-body[_ngcontent-%COMP%] {\n  padding-top: 20px; }\n\n.promotion-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {\n    padding-bottom: 10px; }\n\narticle.max-container[_ngcontent-%COMP%] {\n  max-width: 930px;\n  margin-top: 128px;\n  background-color: white;\n  color: #333333;\n  border: 16px solid #e3e3e3; }"]}),e})();var _=n(675);const M="promotions",O=[{path:"",component:S,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayComponentStyle:"noHorizontalScroll"}},{path:":slug",resolve:{promotion:_.G},data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayComponentStyle:"noHorizontalScroll"},component:T}]},90187:(e,t,n)=>{"use strict";n.d(t,{F:()=>d});var i=n(16462),r=n(43431),o=n(4309),a=n(42998),s=n(20734),c=n(81901),l=n(57826);let d=(()=>{class e{constructor(e,t,n,i){this.cmsFeatureFlagService=e,this.contentService=t,this.promotionsMapper=n,this.promotionsCmsMapper=i,this.CONTENT_SECTION="promotions"}getPromotions(){let e;return e=this.contentService.getContentBySlug(this.CONTENT_SECTION,this.CONTENT_SECTION),this.mapResponse(e,"mapPromotions")}getPromotion(e){let t,n,i;return this.cmsFeatureFlagService.isSectionEnabled(this.CONTENT_SECTION)?(t="content_page",n="promotion"):e=`${this.CONTENT_SECTION}/${e}`,i=this.contentService.getContentByUriSuffix(e,this.CONTENT_SECTION,t,n),this.mapResponse(i,"mapPromotion").pipe((0,a.take)(1))}getAdditionalPromoContent(){return this.contentService.getContentBySlug("additionalpromocontent","promotions").pipe((0,a.take)(1),(0,a.catchError)((e=>{if(e&&e.status&&404===e.status)return(0,o.empty)();(0,o.throwError)(e)})))}mapResponse(e,t){return e.pipe((0,a.map)((e=>this.classMapper()[t](e))))}classMapper(){return this.cmsFeatureFlagService.isSectionEnabled(this.CONTENT_SECTION)?this.promotionsCmsMapper:this.promotionsMapper}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](r.u),l["ɵɵinject"](i._),l["ɵɵinject"](c.Q),l["ɵɵinject"](s.Q))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},37292:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});class i{}},15390:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});class i{}},95149:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var i=n(77891),r=n(18542),o=n(57826);let a=(()=>{class e{constructor(e,t){this.sizeMapper=e,this.textLayoutMapper=t}GetMappers(){return[this.sizeMapper,this.textLayoutMapper]}ConsolidateStyleGroups(e){return e.filter((e=>!!e)).join(" ")}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.V),o["ɵɵinject"](r.k))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},77891:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var i=n(57826);const r={oneColunm:"1x1",twoColunms:"1x2",fourColunms:"1x4",sixCoumns:"1x6"};let o=(()=>{class e{constructor(){this.isValidValue=e=>Object.values(r).includes(e)}map(e){return"section-"+(e.find(this.isValidValue)||r.oneColunm)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},18542:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.CSS_CLASSES_DEFAULT_VALUE="",this.TAG_TEXTLAYOUT_OUTER_TEXT="outertext",this.CSS_TEXTLAYOUT_OUTER_CLASS="outertext"}map(e){return e.filter((e=>!!e)).map((e=>e.trim().toLocaleLowerCase())).includes(this.TAG_TEXTLAYOUT_OUTER_TEXT)?this.CSS_TEXTLAYOUT_OUTER_CLASS:this.CSS_CLASSES_DEFAULT_VALUE}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},78041:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var i=n(56914),r=n(79450),o=n(65353),a=n(81768),s=n(33564);class c extends i.x{constructor(){super(...arguments),this.contentSlideCmsMapper=new r.j,this.abtFieldsMapper=new o.u1,this.marketingAudienceMapper=new a.V,this.trackingService=new s.e(this.abtFieldsMapper,this.marketingAudienceMapper)}map(e){let t=[];return t=(e.fields.items?e.fields.items:[]).map((e=>this.contentSlideCmsMapper.map(e).slide)),{data:{draft:"draft"===e.status,banners:t,internalName:e.fields.internal_name,tracking:this.trackingData(e)}}}trackingData(e){return e.parent?this.trackingService.getTrackingData(e,e.parent,e.parent.content_type):this.trackingService.getTrackingData(e)}}},75324:(e,t,n)=>{"use strict";n.d(t,{k:()=>B});var i=n(64762),r=n(57826),o=n(22291),a=(n(11524),n(17990)),s=n(25300),c=n(78041),l=n(40476),d=n(49697),u=n(6856),p=n(4473),h=n(80218),m=n(6235),g=n(55796),f=n(55298),v=n(26626),b=n(43431),y=n(13811),C=n(32716);let S=(()=>{class e{constructor(e){this.elementRef=e}set bxTrackAttrs(e){this.updateTrackingAttributes(e)}updateTrackingAttributes(e){e&&(this.addAttributeIfHasValue("bx-component-type",e.componentType),this.addAttributeIfHasValue("bx-component-name",e.componentInternalName),this.addAttributeIfHasValue("bx-parent-type",e.parentType),this.addAttributeIfHasValue("bx-parent-name",e.parentInternalName),this.addAttributeIfHasValue("bx-audiences",this.joinAudiences(e.audiences)))}addAttributeIfHasValue(e,t){t&&this.elementRef.nativeElement.setAttribute(e,t)}joinAudiences(e){return e&&e.length>0?e.map((e=>e.audienceCode)).join(","):null}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ElementRef))},e.ɵdir=r["ɵɵdefineDirective"]({type:e,selectors:[["","bxTrackAttrs",""]],inputs:{bxTrackAttrs:"bxTrackAttrs"}}),e})();var x=n(63325),w=n(52344),E=n(7006),I=n(29015),P=n(79952),T=n(96940);const _=function(e,t){return{"screen-center":e,"no-animation":t}};function M(e,t){if(1&e&&(r["ɵɵelementStart"](0,"figcaption",6),r["ɵɵpipe"](1,"bxTrustyHtml"),r["ɵɵtext"](2,"\n            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](4,_,3===e.banner.display,e.noUseAnimation))("innerHTML",r["ɵɵpipeBind1"](1,2,e.banner.content),r["ɵɵsanitizeHtml"])}}function O(e,t){if(1&e&&(r["ɵɵelementStart"](0,"figcaption",7),r["ɵɵpipe"](1,"bxTrustyHtml"),r["ɵɵtext"](2,"\n            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](5,_,3===e.banner.display,e.noUseAnimation))("innerHTML",r["ɵɵpipeBind1"](1,3,e.banner.content),r["ɵɵsanitizeHtml"])("isChatBot",e.isChatBot)}}function A(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"img",8),r["ɵɵlistener"]("load",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().slideLoaded()})),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("src",e.retrieveImgSrc(e.banner.display,e.banner.image.url,e.ix,e.src),r["ɵɵsanitizeUrl"]),r["ɵɵattribute"]("alt",e.banner.image.alt)}}function k(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"img",9),r["ɵɵlistener"]("load",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().slideLoaded()})),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("defaultImage",e.noImageSrc)("src",e.ix===e.currentSlide||e.loadedSlide?e.retrieveImgSrc(e.banner.display,e.banner.image.url,e.ix,e.src):e.imageTransparent,r["ɵɵsanitizeUrl"]),r["ɵɵattribute"]("alt",e.banner.image.alt)}}let j=(()=>{class e{constructor(e,t,n,i,o){this.imageService=e,this.bannerCarouselConfig=t,this.slideDisplayStyleMapper=n,this.contentService=i,this.platformId=o,this.loaded=new r.EventEmitter,this.liveChat=!1,this.isChatBot=!1,this.noImageSrc=e.getPlaceholderImage(600,200,"transparent"),this.imageTransparent=m.f}ngOnInit(){this.liveChat=this.contentService.isLiveChatContent(this.banner),this.isChatBot=this.contentService.isChatBotContent(this.banner)}slideLoaded(){this.loaded.emit(!0)}getFigureStyleClass(e){return this.slideDisplayStyleMapper.getFigureStyleClass(e)}isServerSide(){return(0,u.isPlatformServer)(this.platformId)}retrieveImgSrc(e,t,n,i){return this.bannerCarouselConfig.carouselAnimation?t:3===e?this.noImageSrc:this.currentSlide==n||i?t:""}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](o.AJ),r["ɵɵdirectiveInject"](d.Y),r["ɵɵdirectiveInject"](g.r),r["ɵɵdirectiveInject"](w._s),r["ɵɵdirectiveInject"](r.PLATFORM_ID))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-banner-carousel-slide"]],inputs:{ix:"ix",currentSlide:"currentSlide",banner:"banner",loadedSlide:"loadedSlide",noUseAnimation:"noUseAnimation"},outputs:{loaded:"loaded"},decls:15,vars:13,consts:[[3,"bxTrackAttrs"],["class","carousel-text","anchorLinksHandler","",3,"ngClass","innerHTML",4,"ngIf"],["class","carousel-text","anchorLinksHandler","","bxLiveChatHandler","",3,"ngClass","innerHTML","isChatBot",4,"ngIf"],[1,"img-container"],["class","img-responsive",3,"src","load",4,"ngIf"],["bxImage","","class","img-responsive",3,"defaultImage","src","load",4,"ngIf"],["anchorLinksHandler","",1,"carousel-text",3,"ngClass","innerHTML"],["anchorLinksHandler","","bxLiveChatHandler","",1,"carousel-text",3,"ngClass","innerHTML","isChatBot"],[1,"img-responsive",3,"src","load"],["bxImage","",1,"img-responsive",3,"defaultImage","src","load"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"figure",0),r["ɵɵtext"](2,"\n            "),r["ɵɵtemplate"](3,M,3,7,"figcaption",1),r["ɵɵtext"](4,"\n            "),r["ɵɵtemplate"](5,O,3,8,"figcaption",2),r["ɵɵtext"](6,"\n            "),r["ɵɵelementStart"](7,"div",3),r["ɵɵtext"](8,"\n                "),r["ɵɵtemplate"](9,A,1,2,"img",4),r["ɵɵtext"](10,"\n                "),r["ɵɵtemplate"](11,k,1,3,"img",5),r["ɵɵtext"](12,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](13,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](14,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵclassMap"](t.getFigureStyleClass(t.banner)),r["ɵɵstyleProp"]("background-image",t.banner.backgroundImage),r["ɵɵclassProp"]("bg-image",t.banner.backgroundImage)("max-container",!t.banner.backgroundImage),r["ɵɵproperty"]("bxTrackAttrs",t.banner.tracking),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!t.liveChat),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.liveChat),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngIf",0===t.ix),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.ix>0&&!t.isServerSide()))},directives:[S,u.NgIf,E.$,u.NgClass,I.T,P.t],pipes:[T.d],styles:[".no-animation[_ngcontent-%COMP%] {\n  animation: fade-in-up .0s; }"]}),e})();function N(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                "),r["ɵɵelementStart"](2,"a",6),r["ɵɵlistener"]("click",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"](),i=n.$implicit,o=n.index;return r["ɵɵnextContext"](2).handleClickOnSlide(t,i.name,o,i.tracking)})),r["ɵɵtext"](3,"\n                    "),r["ɵɵelementStart"](4,"bx-banner-carousel-slide",7),r["ɵɵlistener"]("loaded",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"](3).loaded=!0})),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n            "),r["ɵɵelementContainerEnd"]()}if(2&e){const e=r["ɵɵnextContext"](),t=e.$implicit,n=e.index,i=r["ɵɵnextContext"](2);r["ɵɵadvance"](2),r["ɵɵclassProp"]("max-container",i.isBannerMaxContainerEnabled(t)),r["ɵɵproperty"]("bxLink",t.link)("bxLinkTarget",t.linkTarget),r["ɵɵadvance"](2),r["ɵɵproperty"]("ix",n)("banner",t)("currentSlide",i.currentSlide)("loadedSlide",i.loadedSlides[n])("noUseAnimation",i.noUseAnimation)}}function R(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵtext"](0,"\n                "),r["ɵɵelementStart"](1,"div",8),r["ɵɵtext"](2,"\n                    "),r["ɵɵelementStart"](3,"bx-banner-carousel-slide",7),r["ɵɵlistener"]("loaded",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"](3).loaded=!0})),r["ɵɵelementEnd"](),r["ɵɵtext"](4,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n            ")}if(2&e){const e=r["ɵɵnextContext"](),t=e.$implicit,n=e.index,i=r["ɵɵnextContext"](2);r["ɵɵadvance"](1),r["ɵɵclassProp"]("max-container",i.isBannerMaxContainerEnabled(t)),r["ɵɵadvance"](2),r["ɵɵproperty"]("ix",n)("banner",t)("currentSlide",i.currentSlide)("loadedSlide",i.loadedSlides[n])("noUseAnimation",i.noUseAnimation)}}function D(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"slide",3),r["ɵɵlistener"]("swiperight",(function(){const t=r["ɵɵrestoreView"](e).index;return r["ɵɵnextContext"](2).movePrev(t)}))("swipeleft",(function(){const t=r["ɵɵrestoreView"](e).index;return r["ɵɵnextContext"](2).moveNext(t)})),r["ɵɵtext"](1,"\n\n            "),r["ɵɵtemplate"](2,N,7,9,"ng-container",4),r["ɵɵtext"](3,"\n            "),r["ɵɵtemplate"](4,R,6,7,"ng-template",null,5,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](6,"\n        "),r["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=r["ɵɵreference"](5);r["ɵɵstyleProp"]("background-color",e.background),r["ɵɵproperty"]("bxPreviewIndicator",e),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.link)("ngIfElse",n)}}const L=function(e,t){return{"ng-loaded":e,"fullsize-carousel":t}};function F(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"carousel",1),r["ɵɵlistener"]("activeSlideChange",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().setCurrentSlide(t)})),r["ɵɵtext"](1,"\n        "),r["ɵɵtemplate"](2,D,7,5,"slide",2),r["ɵɵtext"](3,"\n    "),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵclassProp"]("max-container",e.bannerCarouselConfig.maxContainer)("carousel-animation",e.bannerCarouselConfig.carouselAnimation),r["ɵɵproperty"]("bxPreviewIndicator",e.model)("ngClass",r["ɵɵpureFunction2"](10,L,e.loaded,e.fullSizeCarouselStyle))("interval",e.interval)("activeSlide",e.currentSlide)("bxTrackAttrs",e.model.tracking),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.model.banners)}}let B=class{constructor(e,t,n,i,r,o,a,s){this.imageService=e,this.bannerCarouselConfig=t,this.platformId=n,this.clickHandlerService=i,this.transferStateServiceCache=r,this.cdnService=o,this.slideDisplayStyleMapper=a,this.linkTrackService=s,this.model={banners:[]},this.interval=7e3,this.fromUniversal=!1,this.loadedSlides={0:!0},this.currentSlide=0,this.loaded=!1,this.fullSizeCarouselStyle=!0,this.fromUniversal=this.transferStateServiceCache.isFromUniversal(),this.imageTransparent=m.f}set data(e){e&&(e.banners.forEach(((t,n)=>{t.contentText=this.getText(t.content),0===n&&this.setSrcForEagerlyLoadedImage(t),t.tracking&&t.tracking.audiences&&(t.tracking.parentType="slideshow",t.tracking.parentInternalName=e.internalName)})),this.model=e)}set style(e){"fluid"===e&&(this.fullSizeCarouselStyle=!1)}setSrcForEagerlyLoadedImage(e){e.image.url=this.cdnService.getCdnUrlImage(e.image.url)}setCurrentSlide(e){this.currentSlide=e,this.noUseAnimation=this.fromUniversal&&0===e&&!this.animationRendered,this.animationRendered=!0,this.loadedSlides[e]=!0}moveNext(e){this.setCurrentSlide(e+1>=this.model.banners.length?0:e+1)}movePrev(e){this.setCurrentSlide(e-1<0?this.model.banners.length-1:e-1)}getText(e){if((0,u.isPlatformBrowser)(this.platformId)){let t=document.createElement("div");return t.innerHTML=e,t.innerText.replace(/[\s\n\t\r]+/g," ").trim()}return""}handleClickOnSlide(e,t,n,i){"BUTTON"===e.target.tagName?this.clickHandlerService.handleClick("carousel_promo_cta",!1,t,n,i):this.clickHandlerService.handleClick("carousel_promo",!1,t,n,i),this.linkTrackService.setLinkClicked(!0)}isBannerMaxContainerEnabled(e){return this.slideDisplayStyleMapper.isBannerMaxContainerEnabled(e)}};B.ɵfac=function(e){return new(e||B)(r["ɵɵdirectiveInject"](o.AJ),r["ɵɵdirectiveInject"](d.Y),r["ɵɵdirectiveInject"](r.PLATFORM_ID),r["ɵɵdirectiveInject"](f.M),r["ɵɵdirectiveInject"](p.m),r["ɵɵdirectiveInject"](h.U),r["ɵɵdirectiveInject"](g.r),r["ɵɵdirectiveInject"](v.j))},B.ɵcmp=r["ɵɵdefineComponent"]({type:B,selectors:[["bx-banner-carousel"]],inputs:{interval:"interval",data:"data",style:"style"},decls:3,vars:1,consts:[["class","banner-carousel carousel","data-dynamic-element","dynamicElement",3,"bxPreviewIndicator","ngClass","interval","activeSlide","max-container","carousel-animation","bxTrackAttrs","activeSlideChange",4,"ngIf"],["data-dynamic-element","dynamicElement",1,"banner-carousel","carousel",3,"bxPreviewIndicator","ngClass","interval","activeSlide","bxTrackAttrs","activeSlideChange"],["class","high-contrast light-text",3,"bxPreviewIndicator","background-color","swiperight","swipeleft",4,"ngFor","ngForOf"],[1,"high-contrast","light-text",3,"bxPreviewIndicator","swiperight","swipeleft"],[4,"ngIf","ngIfElse"],["slideWithoutLink",""],["role","link",1,"banner-container",3,"bxLink","bxLinkTarget","click"],[3,"ix","banner","currentSlide","loadedSlide","noUseAnimation","loaded"],[1,"banner-container"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n    "),r["ɵɵtemplate"](1,F,4,13,"carousel",0),r["ɵɵtext"](2,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!!t.model.banners&&t.model.banners.length>0))},directives:[u.NgIf,y.Fy,C.Z,u.NgClass,S,u.NgForOf,y.o6,x.I,j],encapsulation:2,changeDetection:0}),B=(0,i.__decorate)([(0,a.DE)({name:"BannerCarousel",mapper:c.f,matcher:e=>{let t=e.fields.tags?e.fields.tags.split(","):[];return e.contentType===s.z.SLIDESHOW&&t.indexOf(l.d.SMALL_BANNERS)<0},contentMapper:{featureFlag:b.u.CMS_SLIDE_MOBILE_IMAGES,mapper:(e,t)=>("mobile"===t.deviceType&&e.fields.items.forEach(((t,n)=>{e.fields.items[n].fields.image_mobile&&e.fields.items[n].fields.image_mobile.url&&(e.fields.items[n].fields.image=e.fields.items[n].fields.image_mobile),e.fields.items[n].fields.background_image_mobile&&e.fields.items[n].fields.background_image_mobile.url&&(e.fields.items[n].fields.background_image=e.fields.items[n].fields.background_image_mobile)})),e)}}),(0,i.__metadata)("design:paramtypes",[o.AJ,d.Y,Object,f.M,p.m,h.U,g.r,v.j])],B)},49697:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},89138:(e,t,n)=>{"use strict";n.d(t,{R:()=>E});var i=n(6856),r=n(73753),o=n(13811),a=n(75324),s=n(15982),c=n(53001),l=n(49697),d=(n(11524),n(22291)),u=n(75468),p=n(11198),h=n(73502),m=n(80417),g=n(67197),f=n(40821),v=n(55796),b=n(39013),y=n(52344),C=n(78041),S=n(36575),x=n(57826);let w=(()=>{class e extends s.HammerGestureConfig{buildHammer(e){return new Hammer(e,{touchAction:"pan-y"})}}return e.ɵfac=function(){let t;return function(n){return(t||(t=x["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=x["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),E=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=x["ɵɵdefineNgModule"]({type:e}),e.ɵinj=x["ɵɵdefineInjector"]({providers:[{provide:s.HAMMER_GESTURE_CONFIG,useClass:w},l.Y,v.r,C.f],imports:[[s.HammerModule,i.CommonModule,o.bB.forRoot(),d.$Q,r.RouterModule,u.$,c.J.withComponents([a.k]),g.k.withComponents([a.k]),f.o,h.D,p.$,m.LO,b.W,y.Qh,S.I]]}),e})()},51794:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var i=n(56914);class r extends i.x{map(e){return{data:{title:e.fields.title||"",body:e.fields.body||"",componentType:"contentBlock",sizeClass:"",fields:e.fields,draft:"draft"===e.status}}}}},2986:(e,t,n)=>{"use strict";n.d(t,{T:()=>x});var i=n(64762),r=n(57826),o=n(51794),a=n(15982),s=n(17990),c=n(25300),l=n(22291),d=n(52344),u=n(24249),p=n(6856),h=n(32716),m=n(29015),g=n(7006);const f=["cmsContent"];function v(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",4),r["ɵɵtext"](1,"\n                "),r["ɵɵelementStart"](2,"header",5),r["ɵɵtext"](3,"\n                    "),r["ɵɵelementStart"](4,"h2",6),r["ɵɵtext"](5),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](7,"\n            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵadvance"](5),r["ɵɵtextInterpolate"](e.title)}}function b(e,t){if(1&e&&r["ɵɵelement"](0,"div",9),2&e){const e=r["ɵɵnextContext"](3);r["ɵɵproperty"]("isChatBot",e.isChatBot)("innerHTML",e.body,r["ɵɵsanitizeHtml"])}}function y(e,t){if(1&e&&r["ɵɵelement"](0,"div",10),2&e){const e=r["ɵɵnextContext"](3);r["ɵɵproperty"]("innerHTML",e.body,r["ɵɵsanitizeHtml"])}}function C(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",4),r["ɵɵtext"](1,"\n                "),r["ɵɵtemplate"](2,b,1,2,"div",7),r["ɵɵtext"](3,"\n                "),r["ɵɵtemplate"](4,y,1,1,"div",8),r["ɵɵtext"](5,"\n            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.liveChat),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!e.liveChat)}}function S(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",1,2),r["ɵɵtext"](2,"\n            "),r["ɵɵtemplate"](3,v,8,1,"div",3),r["ɵɵtext"](4,"\n            "),r["ɵɵtemplate"](5,C,6,2,"div",3),r["ɵɵtext"](6,"\n        "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxPreviewIndicator",e.data),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",e.title),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.body)}}let x=class{constructor(e,t,n,i){this.sanitizer=e,this.imageService=t,this.contentService=n,this.imageLazyloadService=i,this.id=Math.floor(899999*Math.random())+1e5,this.contentBlockName=`ContentBlock${this.id}`}set data(e){e&&(this._data=e,this.title=e.title,this.body=e.body?this.formatBody(e.body):"",this.liveChat=this.contentService.isLiveChatContent(e),this.isChatBot=this.contentService.isChatBotContent(e))}get data(){return this._data}ngOnInit(){this.imageLazyloadService.isImageLazyloadEnabled()&&this.imageLazyloadService.initialiseIntersectionObserver(this.contentBlockName)}ngAfterViewInit(){this.imageLazyloadService.isImageLazyloadEnabled()&&this.imageLazyloadService.intersectionObserve(this.contentBlockName,[].slice.call(this.cmsContent.nativeElement.querySelectorAll("img.lazyload")))}ngOnDestroy(){this.imageLazyloadService.isImageLazyloadEnabled()&&this.imageLazyloadService.intersectionObserverDisconnect(this.contentBlockName)}formatBody(e){return this.sanitizer.bypassSecurityTrustHtml(this.imageService.replaceImages(e,this.imageLazyloadService.isImageLazyloadEnabled()))}};x.ɵfac=function(e){return new(e||x)(r["ɵɵdirectiveInject"](a.DomSanitizer),r["ɵɵdirectiveInject"](l.AJ),r["ɵɵdirectiveInject"](d._s),r["ɵɵdirectiveInject"](u.h))},x.ɵcmp=r["ɵɵdefineComponent"]({type:x,selectors:[["bx-content-block"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](f,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.cmsContent=e.first)}},inputs:{data:"data"},decls:3,vars:1,consts:[["class","content-block","data-dynamic-element","dynamicElement",3,"bxPreviewIndicator",4,"ngIf"],["data-dynamic-element","dynamicElement",1,"content-block",3,"bxPreviewIndicator"],["cmsContent",""],["class","max-container",4,"ngIf"],[1,"max-container"],[1,"component-header"],[1,"content-title","h5-heading"],["class","content-wrapper","bxLiveChatHandler","","anchorLinksHandler","",3,"isChatBot","innerHTML",4,"ngIf"],["class","content-wrapper","anchorLinksHandler","",3,"innerHTML",4,"ngIf"],["bxLiveChatHandler","","anchorLinksHandler","",1,"content-wrapper",3,"isChatBot","innerHTML"],["anchorLinksHandler","",1,"content-wrapper",3,"innerHTML"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵtemplate"](1,S,7,3,"div",0),r["ɵɵtext"](2,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.title||t.body))},directives:[p.NgIf,h.Z,m.T,g.$],styles:[".component-header[_ngcontent-%COMP%] {\n  padding: 0 0 16px; }"],changeDetection:0}),x=(0,i.__decorate)([(0,s.DE)({name:"Content Block",mapper:o.y,matcher:e=>e.contentType===c.z.CONTENT_BLOCK}),(0,i.__metadata)("design:paramtypes",[a.DomSanitizer,l.AJ,d._s,u.h])],x)},61982:(e,t,n)=>{"use strict";n.d(t,{s:()=>h});var i=n(2986),r=n(51794),o=n(6856),a=n(53001),s=n(75468),c=n(39013),l=n(57138),d=n(40821),u=n(52344),p=n(57826);n(67197);let h=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({providers:[r.y],imports:[[o.CommonModule,d.o,s.$,c.W,u.Qh,a.J.withComponents([i.T]),l.k.withComponents([i.T])]]}),e})()},76463:(e,t,n)=>{"use strict";n.d(t,{s:()=>i.s}),n(2986);var i=n(61982)},31553:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var i=n(95149),r=n(57826);let o=(()=>{class e{constructor(e){this.cssMappers=e,this.TAGS_TEXT_SEPARATOR=",",this.CSS_CLASSES_JOINER=" ",this.getCuratedTagsArray=e=>e.split(this.TAGS_TEXT_SEPARATOR).map((e=>e.trim().toLocaleLowerCase())),this.getCSSClasses=(e="")=>{const t=this.getCuratedTagsArray(e);return this.cssMappers.GetMappers().map((e=>e.map(t))).filter((e=>!!e)).join(this.CSS_CLASSES_JOINER)}}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.h))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},76479:(e,t,n)=>{"use strict";n.d(t,{l:()=>_});var i=n(64762),r=n(78482),o=n(17990),a=n(25300),s=n(17125),c=n(40476),l=n(67953),d=n(71844),u=n(63253),p=n(31553),h=n(56914);class m extends h.x{map(e){return{data:{title:e.fields.title||"",items:e.fields.items||[],slug:e.fields.slugname||"",draft:"draft"===e.status}}}}var g,f=n(57826),v=n(32716),b=n(6856),y=n(90566),C=n(6688),S=n(60227);function x(e,t){if(1&e&&(f["ɵɵelementStart"](0,"header",4),f["ɵɵtext"](1,"\n                "),f["ɵɵelementStart"](2,"h2",5),f["ɵɵtext"](3),f["ɵɵelementEnd"](),f["ɵɵtext"](4,"\n            "),f["ɵɵelementEnd"]()),2&e){const e=f["ɵɵnextContext"]();f["ɵɵadvance"](3),f["ɵɵtextInterpolate"](e.title)}}function w(e,t){if(1&e&&(f["ɵɵtext"](0,"\n                        "),f["ɵɵelementStart"](1,"bx-dynamic-loader-component",9),f["ɵɵtext"](2,"\n                        "),f["ɵɵelementEnd"](),f["ɵɵtext"](3,"\n                    ")),2&e){const e=f["ɵɵnextContext"]().$implicit;f["ɵɵadvance"](1),f["ɵɵproperty"]("component",e.component)("context",e.context)("contextName",e.contextName)}}function E(e,t){if(1&e&&(f["ɵɵelementStart"](0,"bx-small-banner",13),f["ɵɵtext"](1,"\n                            "),f["ɵɵelementEnd"]()),2&e){const e=f["ɵɵnextContext"](2).$implicit;f["ɵɵproperty"]("imageSrc",e.context.imageSrc)("alt",e.context.alt)("linkTo",e.context.linkTo)("isExternal",e.context.isExternal)("bannerText",e.context.bannerText)("bannerSubText",e.context.bannerSubText)("bannerTextColor",e.context.bannerTextColor)("target",e.context.target)("gameId",e.context.liveDealerId)("data",e.context)}}function I(e,t){if(1&e&&(f["ɵɵelementStart"](0,"bx-slide-card",14),f["ɵɵtext"](1,"\n                            "),f["ɵɵelementEnd"]()),2&e){const e=f["ɵɵnextContext"](2).$implicit;f["ɵɵproperty"]("title",e.context.title)("cardText",e.context.cardText)("cardTextColor",e.context.cardTextColor)("imageSrc",e.context.imageSrc)("alt",e.context.alt)("linkTo",e.context.linkTo)("target",e.context.target)("data",e.context)}}function P(e,t){if(1&e&&(f["ɵɵelementContainerStart"](0,10),f["ɵɵtext"](1,"\n                            "),f["ɵɵtemplate"](2,E,2,10,"bx-small-banner",11),f["ɵɵtext"](3,"\n                            "),f["ɵɵtemplate"](4,I,2,8,"bx-slide-card",12),f["ɵɵtext"](5,"\n                        "),f["ɵɵelementContainerEnd"]()),2&e){const e=f["ɵɵnextContext"]().$implicit;f["ɵɵproperty"]("ngSwitch",e.context.cardText),f["ɵɵadvance"](2),f["ɵɵproperty"]("ngSwitchCase",void 0)}}function T(e,t){if(1&e&&(f["ɵɵelementContainerStart"](0),f["ɵɵtext"](1,"\n                    "),f["ɵɵtemplate"](2,w,4,3,"ng-template",null,6,f["ɵɵtemplateRefExtractor"]),f["ɵɵtext"](4,"\n\n                    "),f["ɵɵelementStart"](5,"div",7),f["ɵɵtext"](6,"\n                        "),f["ɵɵtemplate"](7,P,6,2,"ng-container",8),f["ɵɵtext"](8,"\n                    "),f["ɵɵelementEnd"](),f["ɵɵtext"](9,"\n                "),f["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit,n=f["ɵɵreference"](3),i=f["ɵɵnextContext"]();f["ɵɵadvance"](5),f["ɵɵproperty"]("ngClass",i.cssClassMappers.getCSSClasses(e.tags)),f["ɵɵadvance"](2),f["ɵɵproperty"]("ngIf",!e.component)("ngIfElse",n)}}let _=g=class{constructor(e,t,n){this.cssClassMappers=e,this.cmsComponentMapperService=t,this.slideCardCmsMapper=n,this.components=[]}set data(e){if(this._data=e,e.items&&e.items.length>0){this.title=e.title;let t=[];e.items.map((t=>{t.parent={internal_name:e.title,content_type:"section"}})),e.items.forEach((e=>{let n=this.cmsComponentMapperService.map(e),i={contextName:c.d.SMALL_BANNERS,context:{},tags:e.fields.tags};if(i.context=this.componentFactory(e,n),!i.context){let e=Object.keys(n.data)[0];i.component=n.component,i.contextName=e,i.context=n.data[e]}t.push(i)})),this.components=t}}get data(){return this._data}static getTarget(e){return{pop_up:"popup",same_tab:"_self",new_tab:"_blank"}[e]||""}createSmallBanner(e){let t=new l.n;return t.bannerText=e.fields.title||"",t.bannerSubText=e.fields.content,t.bannerTextColor=e.fields.text_color,t.linkTo=r.K.mapLinkUrl(e.fields.link_url),t.imageSrc=e.fields.image?e.fields.image.url:"",t.alt=e.fields.image&&e.fields.image.alt?e.fields.image.alt:"",t.target=g.getTarget(e.fields.link_target),t.draft=g.isStatusDraft(e.status),g.isLiveDealer(e.fields)&&(t.liveDealerId=u(["link_url","fields","game_id",0,"id"],e.fields)),t.isExternal=e.fields.link_url&&"linkUrl"in e.fields.link_url,t}componentFactory(e,t){if((e.contentType||e.fields.contentType)===a.z.SLIDE){const t=(e.fields.tags&&e.fields.tags.split(",")||[]).map((e=>e.trim()));if(t.indexOf(c.d.SLIDE_CARD)>-1)return this.slideCardCmsMapper.createSlideCard(e);if(t.indexOf(c.d.SMALL_BANNERS)>=0)return this.createSmallBanner(e)}if(!t)return this.createSmallBanner(e)}static isLiveDealer(e){return e.link_url&&e.link_url.contentType===a.z.CASINO_GAME_PAGE&&"live-dealer"===u(["link_url","fields","category","slug"],e)}static isStatusDraft(e){return"draft"===e}};_.ɵfac=function(e){return new(e||_)(f["ɵɵdirectiveInject"](p.K),f["ɵɵdirectiveInject"](s.d),f["ɵɵdirectiveInject"](d.G))},_.ɵcmp=f["ɵɵdefineComponent"]({type:_,selectors:[["bx-content-section"]],inputs:{data:"data"},decls:11,vars:3,consts:[[1,"max-container","bx-content-section-container",3,"bxPreviewIndicator"],["class","component-header",4,"ngIf"],[1,"bx-content-section","section-container"],[4,"ngFor","ngForOf"],[1,"component-header"],[1,"content-title","h5-heading"],["dynamicTemplate",""],[1,"section-item",3,"ngClass"],[3,"ngSwitch",4,"ngIf","ngIfElse"],[3,"component","context","contextName"],[3,"ngSwitch"],[3,"imageSrc","alt","linkTo","isExternal","bannerText","bannerSubText","bannerTextColor","target","gameId","data",4,"ngSwitchCase"],[3,"title","cardText","cardTextColor","imageSrc","alt","linkTo","target","data",4,"ngSwitchDefault"],[3,"imageSrc","alt","linkTo","isExternal","bannerText","bannerSubText","bannerTextColor","target","gameId","data"],[3,"title","cardText","cardTextColor","imageSrc","alt","linkTo","target","data"]],template:function(e,t){1&e&&(f["ɵɵtext"](0,"\n        "),f["ɵɵelementStart"](1,"div",0),f["ɵɵtext"](2,"\n            "),f["ɵɵtemplate"](3,x,5,1,"header",1),f["ɵɵtext"](4,"\n            "),f["ɵɵelementStart"](5,"div",2),f["ɵɵtext"](6,"\n                "),f["ɵɵtemplate"](7,T,10,3,"ng-container",3),f["ɵɵtext"](8,"\n            "),f["ɵɵelementEnd"](),f["ɵɵtext"](9,"\n        "),f["ɵɵelementEnd"](),f["ɵɵtext"](10,"\n    ")),2&e&&(f["ɵɵadvance"](1),f["ɵɵproperty"]("bxPreviewIndicator",t.data),f["ɵɵadvance"](2),f["ɵɵproperty"]("ngIf",t.title),f["ɵɵadvance"](4),f["ɵɵproperty"]("ngForOf",t.components))},directives:[v.Z,b.NgIf,b.NgForOf,b.NgClass,y.W,b.NgSwitch,b.NgSwitchCase,b.NgSwitchDefault,C.x,S._],styles:[".section-1x1[_ngcontent-%COMP%] {\n  flex-basis: 16.666667%; }\n\n.section-1x2[_ngcontent-%COMP%] {\n  flex-basis: 33.333333%; }\n\n.section-1x4[_ngcontent-%COMP%] {\n  flex-basis: 66.666668%; }\n\n.section-1x6[_ngcontent-%COMP%] {\n  flex-basis: 100%; }\n\n.section-item[_ngcontent-%COMP%] {\n  padding-right: 1px; }\n\n.section-item[_ngcontent-%COMP%]:last-child {\n  padding-right: 0; }\n\n.section-container[_ngcontent-%COMP%] {\n  display: flex;\n  flex-flow: wrap; }\n\n@media screen and (max-width: 769px) {\n  .section-container[_ngcontent-%COMP%] {\n    flex-wrap: wrap; }\n  .section-1x1[_ngcontent-%COMP%] {\n    flex-basis: 50%;\n    order: 1; }\n  .section-1x2[_ngcontent-%COMP%], .section-1x4[_ngcontent-%COMP%], .section-1x6[_ngcontent-%COMP%] {\n    flex-basis: 100%;\n    order: 2; } }"]}),_=g=(0,i.__decorate)([(0,o.DE)({name:"ContentSection",mapper:m,matcher:e=>{const t=e.fields.tags?e.fields.tags.split(","):[];return e.contentType===a.z.SECTION&&-1===t.indexOf(c.d.SMALL_BANNERS_AND_CONTENT_BLOCKS)&&-1===t.indexOf(c.d.SCROLLABLE)}}),(0,i.__metadata)("design:paramtypes",[p.K,s.d,d.G])],_)},67197:(e,t,n)=>{"use strict";n.d(t,{k:()=>w});var i=n(57826),r=n(6856),o=n(8566),a=n(80218),s=n(49994),c=n(13493),l=n(58859),d=n(79346),u=n(17125),p=n(58997),h=n(53001),m=n(40821),g=n(68335),f=n(31553),v=n(76479),b=n(93125),y=n(82939),C=n(95149),S=n(77891),x=n(18542);let w=(()=>{class e{static withComponents(t){return{ngModule:e,providers:[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[v.l]}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[g.l,f.K,p.G,u.d,a.U,s.i,c.B,C.h,S.V,x.k],imports:[[r.CommonModule,o.B,l.Q,d.C,m.o,b.s,y.A,h.J.withComponents([v.l])]]}),e})()},68335:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var i=n(16462),r=n(25300),o=n(57826);let a=(()=>{class e{constructor(e){this.contentService=e}getSectionBySlug(e){return this.contentService.getContentBySlug(e,r.z.SECTION)}}return e.section="section",e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i._))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},57138:(e,t,n)=>{"use strict";n.d(t,{k:()=>i.k}),n(76479);var i=n(67197)},79450:(e,t,n)=>{"use strict";n.d(t,{j:()=>u});var i=n(78482),r=n(56914),o=n(12744),a=n(17846);const s={url:"",alt:""};var c=n(65353),l=n(81768),d=n(33564);class u extends r.x{constructor(){super(...arguments),this.abtFieldsMapper=new c.u1,this.marketingAudienceMapper=new l.V,this.trackingService=new d.e(this.abtFieldsMapper,this.marketingAudienceMapper)}map(e){return{slide:{content:e.fields.content||"",image:e.fields.image||s,backgroundImage:e.fields.background_image&&e.fields.background_image.url||"",display:u.getDisplayMode(e.fields.text_align),link:i.K.mapLinkUrl(e.fields.link_url),linkTarget:e.fields.link_target||o.e.NONE,background:e.fields.background_color,color:e.fields.text_color||"",name:e.fields.internal_name,draft:"draft"===e.status,tracking:this.trackingData(e),liveChat:u.isLiveChatContent(e),chatBot:u.isChatBotContent(e)}}}static isLiveChatContent(e){return!!(e.fields&&e.fields.tags&&e.fields.tags.split(",").some((e=>"livechat"===e.toLowerCase())))}static isChatBotContent(e){return!!(e.fields&&e.fields.tags&&e.fields.tags.split(",").some((e=>"chatbot"===e.toLowerCase())))}static getDisplayMode(e){return{right:a.D.reverseOrder,left:a.D.normal,center:a.D.center}[e]||a.D.normal}trackingData(e){return e.parent?this.trackingService.getTrackingData(e,e.parent,e.parent.content_type):this.trackingService.getTrackingData(e)}}},17846:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var i=(()=>(function(e){e[e.normal=1]="normal",e[e.reverseOrder=2]="reverseOrder",e[e.noImage=3]="noImage",e[e.center=4]="center"}(i||(i={})),i))()},55796:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var i=n(17846),r=n(57826);let o=(()=>{class e{constructor(){this.bannerSlideStyle=Array(),this.bannerSlideStyle[e.DEFAULT_STYLE_INDEX]="banner-slide",this.bannerSlideStyle[i.D.normal]=this.bannerSlideStyle[e.DEFAULT_STYLE_INDEX],this.bannerSlideStyle[i.D.reverseOrder]="banner-slide reverse-order",this.bannerSlideStyle[i.D.noImage]="banner-slide no-image",this.bannerSlideStyle[i.D.center]="banner-slide bg-image no-image"}getFigureStyleClass(t){return this.bannerSlideStyle[t.display]||this.bannerSlideStyle[e.DEFAULT_STYLE_INDEX]}isBannerMaxContainerEnabled(e){return!!e&&e.display!==i.D.center}}return e.DEFAULT_STYLE_INDEX=0,e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},16393:(e,t,n)=>{"use strict";n.d(t,{a:()=>G});var i=n(64762),r=n(57826),o=n(22291),a=n(80218),s=n(17990),c=n(25300),l=n(79450),d=n(6856);let u=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var p=n(55796),h=n(55298),m=n(52344),g=n(43431),f=n(32716),v=n(79952),b=n(7006),y=n(29015),C=n(63325),S=n(15982);let x=(()=>{class e{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustStyle(e)}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](S.DomSanitizer,16))},e.ɵpipe=r["ɵɵdefinePipe"]({name:"bxTrustyStyle",type:e,pure:!0}),e})();var w=n(96940);function E(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"figcaption",10),r["ɵɵlistener"]("click",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"](3);return n.handleClickOnSlide(t,n.model.name,n.model.tracking)})),r["ɵɵpipe"](1,"bxTrustyHtml"),r["ɵɵtext"](2,"\n                        "),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"](3);r["ɵɵclassProp"]("screen-center",3===e.model.display),r["ɵɵproperty"]("innerHTML",r["ɵɵpipeBind1"](1,3,e.model.content),r["ɵɵsanitizeHtml"])}}function I(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"figcaption",11),r["ɵɵlistener"]("click",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"](3);return n.handleClickOnSlide(t,n.model.name,n.model.tracking)})),r["ɵɵpipe"](1,"bxTrustyHtml"),r["ɵɵtext"](2,"\n                        "),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"](3);r["ɵɵclassProp"]("screen-center",3===e.model.display),r["ɵɵproperty"]("innerHTML",r["ɵɵpipeBind1"](1,4,e.model.content),r["ɵɵsanitizeHtml"])("isChatBot",e.isChatBot)}}function P(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵtext"](0,"\n                    "),r["ɵɵelementStart"](1,"figure"),r["ɵɵpipe"](2,"bxTrustyStyle"),r["ɵɵtext"](3,"\n                        "),r["ɵɵtemplate"](4,E,3,5,"figcaption",6),r["ɵɵtext"](5,"\n                        "),r["ɵɵtemplate"](6,I,3,6,"figcaption",7),r["ɵɵtext"](7,"\n                        "),r["ɵɵelementStart"](8,"div",8),r["ɵɵtext"](9,"\n                            "),r["ɵɵelementStart"](10,"img",9),r["ɵɵlistener"]("load",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"](2).loaded=!0})),r["ɵɵelementEnd"](),r["ɵɵtext"](11,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](12,"\n                    "),r["ɵɵelementEnd"](),r["ɵɵtext"](13,"\n                ")}if(2&e){const e=r["ɵɵnextContext"](2);r["ɵɵadvance"](1),r["ɵɵclassMap"](e.getFigureStyleClass(e.model)),r["ɵɵstyleProp"]("color",e.model.color)("background-image",r["ɵɵpipeBind1"](2,12,e.model.backgroundImage)),r["ɵɵclassProp"]("bg-image",e.model.backgroundImage),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",!e.isLiveChat),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.isLiveChat),r["ɵɵadvance"](4),r["ɵɵproperty"]("src",e.model.image.url,r["ɵɵsanitizeUrl"]),r["ɵɵattribute"]("alt",e.model.image.alt)}}function T(e,t){1&e&&r["ɵɵelementContainer"](0)}function _(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                    "),r["ɵɵelementStart"](1,"div",12),r["ɵɵtext"](2,"\n                        "),r["ɵɵtemplate"](3,T,1,0,"ng-container",13),r["ɵɵtext"](4,"\n                    "),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n                ")),2&e){r["ɵɵnextContext"]();const e=r["ɵɵreference"](5),t=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵclassProp"]("max-container",t.isBannerMaxContainerEnabled(t.model)),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngTemplateOutlet",e)}}function M(e,t){1&e&&r["ɵɵelementContainer"](0)}function O(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                    "),r["ɵɵelementStart"](2,"a",14),r["ɵɵlistener"]("click",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"](2);return n.handleClickOnSlide(t,n.model.name,n.model.tracking)})),r["ɵɵtext"](3,"\n                        "),r["ɵɵtemplate"](4,M,1,0,"ng-container",13),r["ɵɵtext"](5,"\n                    "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                "),r["ɵɵelementContainerEnd"]()}if(2&e){r["ɵɵnextContext"]();const e=r["ɵɵreference"](5),t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassProp"]("max-container",t.isBannerMaxContainerEnabled(t.model)),r["ɵɵproperty"]("bxLink",t.model.link)("bxLinkTarget",t.model.linkTarget),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngTemplateOutlet",e)}}const A=function(e,t,n){return{"ng-loaded":e,"max-container":t,"fullsize-carousel":n}};function k(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",1),r["ɵɵtext"](1,"\n            "),r["ɵɵelementStart"](2,"div",2),r["ɵɵtext"](3,"\n                "),r["ɵɵtemplate"](4,P,14,14,"ng-template",null,3,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](6,"\n                "),r["ɵɵtemplate"](7,_,6,3,"ng-template",null,4,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](9,"\n                "),r["ɵɵtemplate"](10,O,7,5,"ng-container",5),r["ɵɵtext"](11,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](12,"\n        "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵreference"](8),t=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxPreviewIndicator",t.model)("ngClass",r["ɵɵpureFunction3"](6,A,t.loaded,t.contentSlideConfig.maxContainer,t.fullSizeCarouselStyle)),r["ɵɵadvance"](2),r["ɵɵstyleProp"]("background-color",t.model.background),r["ɵɵadvance"](8),r["ɵɵproperty"]("ngIf",t.model.link)("ngIfElse",e)}}let j=class{constructor(e,t,n,i,r,o,a){this.contentSlideConfig=e,this.imageService=t,this.cdnService=n,this.platformId=i,this.slideDisplayStyleMapper=r,this.clickHandlerService=o,this.contentService=a,this.loaded=!1,this.isLiveChat=!1,this.isChatBot=!1,this.fullSizeCarouselStyle=!0,this.noImageSrc=t.getPlaceholderImage(798,720,"transparent")}set slide(e){e&&(this.isLiveChat=this.contentService.isLiveChatContent(e),this.isChatBot=this.contentService.isChatBotContent(e),e.contentText=this.getText(e.content),e.backgroundImage&&(e.backgroundImage=`url("${this.cdnService.getCdnUrlImage(e.backgroundImage)}")`),this.model=e)}set style(e){"fluid"===e&&(this.fullSizeCarouselStyle=!1)}handleClickOnSlide(e,t,n){e.eventClickTracked||("BUTTON"===e.target.tagName?this.clickHandlerService.handleClick("slide_cta",!1,t,-1,n):this.clickHandlerService.handleClick("slide",!1,t,-1,n),e.eventClickTracked=!0)}getText(e){if((0,d.isPlatformBrowser)(this.platformId)){let t=document.createElement("div");return t.innerHTML=e,t.innerText.replace(/[\s\n\t\r]+/g," ").trim()}return""}getFigureStyleClass(e){return this.slideDisplayStyleMapper.getFigureStyleClass(e)}isBannerMaxContainerEnabled(e){return this.slideDisplayStyleMapper.isBannerMaxContainerEnabled(e)}};j.ɵfac=function(e){return new(e||j)(r["ɵɵdirectiveInject"](u),r["ɵɵdirectiveInject"](o.AJ),r["ɵɵdirectiveInject"](a.U),r["ɵɵdirectiveInject"](r.PLATFORM_ID),r["ɵɵdirectiveInject"](p.r),r["ɵɵdirectiveInject"](h.M),r["ɵɵdirectiveInject"](m._s))},j.ɵcmp=r["ɵɵdefineComponent"]({type:j,selectors:[["bx-content-slide"]],inputs:{slide:"slide",style:"style"},decls:3,vars:1,consts:[["class","banner-carousel carousel",3,"bxPreviewIndicator","ngClass",4,"ngIf"],[1,"banner-carousel","carousel",3,"bxPreviewIndicator","ngClass"],[1,"high-contrast","light-text"],["slide",""],["slideWithoutLink",""],[4,"ngIf","ngIfElse"],["class","carousel-text","anchorLinksHandler","",3,"screen-center","innerHTML","click",4,"ngIf"],["class","carousel-text","anchorLinksHandler","","bxLiveChatHandler","",3,"screen-center","innerHTML","isChatBot","click",4,"ngIf"],[1,"img-container"],["bxImage","",1,"img-responsive",3,"src","load"],["anchorLinksHandler","",1,"carousel-text",3,"innerHTML","click"],["anchorLinksHandler","","bxLiveChatHandler","",1,"carousel-text",3,"innerHTML","isChatBot","click"],[1,"banner-container"],[4,"ngTemplateOutlet"],["role","link",1,"banner-container",3,"bxLink","bxLinkTarget","click"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵtemplate"](1,k,13,10,"div",0),r["ɵɵtext"](2,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.model))},directives:[d.NgIf,f.Z,d.NgClass,v.t,b.$,y.T,d.NgTemplateOutlet,C.I],pipes:[x,w.d],styles:[".content-slide[_ngcontent-%COMP%] {\n  display: block; }\n  .content-slide[_ngcontent-%COMP%]     h1[class*=-heading], .content-slide[_ngcontent-%COMP%]     h2[class*=-heading], .content-slide[_ngcontent-%COMP%]     h3[class*=-heading], .content-slide[_ngcontent-%COMP%]     h4[class*=-heading], .content-slide[_ngcontent-%COMP%]     h5[class*=-heading], .content-slide[_ngcontent-%COMP%]     h6[class*=-heading] {\n    color: inherit; }\n  .content-slide[_ngcontent-%COMP%]   .carousel-inner[_ngcontent-%COMP%] {\n    padding-bottom: 0; }\n    .carousel:not(.ng-loaded) > .carousel .carousel-inner,   .carousel:not(.ng-loaded) > .carousel .carousel-inner > .slide,   .carousel:not(.ng-loaded) > .carousel .carousel-inner > .slide > .item,   .carousel:not(.ng-loaded) > .carousel .carousel-inner > .slide > .item .banner-slide {\n  min-height: 275px;\n  background: transparent; }\n  figure.banner-slide.bg-image[_ngcontent-%COMP%] {\n  background-position: center;\n  background-size: cover; }"],changeDetection:0}),j=(0,i.__decorate)([(0,s.DE)({name:"ContentSlide",mapper:l.j,matcher:e=>e.contentType===c.z.SLIDE,useAsDefault:!0,contentMapper:{featureFlag:g.u.CMS_SLIDE_MOBILE_IMAGES,mapper:(e,t)=>("mobile"===t.deviceType&&(e.fields.image_mobile&&e.fields.image_mobile.url&&(e.fields.image=e.fields.image_mobile),e.fields.background_image_mobile&&e.fields.background_image_mobile.url&&(e.fields.background_image=e.fields.background_image_mobile)),e)}}),(0,i.__metadata)("design:paramtypes",[u,o.AJ,a.U,Object,p.r,h.M,m._s])],j);var N=n(73753),R=n(53001),D=n(80417),L=n(73502),F=n(40821),B=n(75468),U=n(57138),V=n(39013);n(67197);let G=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[o.AJ,u,p.r],imports:[[d.CommonModule,N.RouterModule,o.$Q,L.D,D.LO,F.o,B.$,R.J.withComponents([j]),U.k.withComponents([j]),V.W]]}),e})()},54634:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(57826),r=n(86014);let o=(()=>{class e{constructor(){this.choice=new i.EventEmitter,this.ternaryChoice=new i.EventEmitter}ok(){this.choice.emit(!0),this._componentRef.destroy()}cancel(e){e&&!this.emitOnClose||this.choice.emit(!1),this._componentRef.destroy()}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-dialog-selector"]],outputs:{choice:"choice",ternaryChoice:"ternaryChoice"},decls:32,vars:4,consts:[[1,"dark-overlay","modal-overlay"],[1,"modal-content","modal-small","screen-center"],[1,"modal-header"],[1,"h4-heading",3,"bxTranslate"],[1,"close-btn",3,"click"],[1,"icon","icon-close"],[1,"modal-body"],[1,"modal-msg",3,"bxTranslate","innerHTML"],[1,"inline-ctas"],[1,"custom-cta","tertiary",3,"bxTranslate","click"],[1,"custom-cta","primary",3,"bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"header",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"h3",3),i["ɵɵtext"](8),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementStart"](10,"button",4),i["ɵɵlistener"]("click",(function(){return t.cancel(!0)})),i["ɵɵtext"](11,"\n                        "),i["ɵɵelement"](12,"i",5),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                "),i["ɵɵelementStart"](16,"section",6),i["ɵɵtext"](17,"\n                    "),i["ɵɵelement"](18,"p",7),i["ɵɵtext"](19,"\n                    "),i["ɵɵelementStart"](20,"div",8),i["ɵɵtext"](21,"\n                        "),i["ɵɵelementStart"](22,"button",9),i["ɵɵlistener"]("click",(function(){return t.cancel(!1)})),i["ɵɵtext"](23),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n                        "),i["ɵɵelementStart"](25,"button",10),i["ɵɵlistener"]("click",(function(){return t.ok()})),i["ɵɵtext"](26),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](28,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](29,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n    ")),2&e&&(i["ɵɵadvance"](8),i["ɵɵtextInterpolate"](t.headerText),i["ɵɵadvance"](10),i["ɵɵproperty"]("innerHTML",t.messageText,i["ɵɵsanitizeHtml"]),i["ɵɵadvance"](5),i["ɵɵtextInterpolate"](t.cancelText),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](t.okText))},directives:[r.P],encapsulation:2}),e})()},21368:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var i=n(57826),r=n(54634);let o=(()=>{class e{constructor(e){this.componentFactoryResolver=e}confirm(e,t){return this.createComponent(e,t)}createComponent(e,t){const n=this.componentFactoryResolver.resolveComponentFactory(r.A),i=e.createComponent(n);return i.instance.headerText=t.headerText,i.instance.messageText=t.messageText,i.instance.okText=t.okText,i.instance.cancelText=t.cancelText,i.instance._componentRef=i,i.instance.emitOnClose=t.emitOnClose,i.changeDetectorRef.detectChanges(),i.instance.choice.asObservable()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.ComponentFactoryResolver))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},29015:(e,t,n)=>{"use strict";n.d(t,{T:()=>c});var i=n(57826),r=n(6856),o=n(43640),a=n(24144),s=n(616);let c=(()=>{class e{constructor(e,t,n){this.reactiveChatService=e,this.profileStore=t,this.platformId=n,this.isChatBot=!1,this.LIVE_CHAT_DATA_ATTRIBUTE="openlivechat"}ngOnInit(){(0,r.isPlatformBrowser)(this.platformId)&&this.reactiveChatService.getChatConfig().subscribe((e=>{this.chatEnabled=(0,o.JQ)(e.type),this.chatEnabled&&this.reactiveChatService.ensureLibrariesAreLoaded()}))}handleLiveChatClicks(e){if(this.chatEnabled){let t=this.findClosestAnchor(e.target);if(this.isLiveChatLink(t))return e.stopPropagation(),this.startChatSession(),!1}return!0}isLiveChatLink(e){return e&&e.dataset.hasOwnProperty(this.LIVE_CHAT_DATA_ATTRIBUTE)}findClosestAnchor(e){for(;e;){if("A"===e.tagName)return e;if(e.getAttribute("anchorLinksHandler"))return null;e=e.parentElement}return null}startChatSession(){if(this.reactiveChatService.hasActiveSession())this.reactiveChatService.openExistingSession();else{const e={moxie:{userName:this.profileStore.profile.username,email:this.profileStore.profile.email},novomind:{},alvaria:{}};this.isChatBot&&(e.novomind.urlTag="chatBot"),this.reactiveChatService.openChat(e)}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](a.R),i["ɵɵdirectiveInject"](s.s),i["ɵɵdirectiveInject"](i.PLATFORM_ID,8))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxLiveChatHandler",""]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.handleLiveChatClicks(e)}))},inputs:{isChatBot:"isChatBot"}}),e})()},39013:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(6856),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({imports:[[i.CommonModule]]}),e})()},88274:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var i=n(56914),r=n(57826);let o=(()=>{class e extends i.x{map(e){return{data:{fields:e.fields,draft:"draft"===e.status}}}}return e.ɵfac=function(){let t;return function(n){return(t||(t=r["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},2046:(e,t,n)=>{"use strict";n.d(t,{e:()=>_});var i=n(64762),r=n(57826),o=n(67953),a=n(54056),s=n(17990),c=n(25300),l=n(12797);class d extends l.${constructor(){super("contentBlock")}}var u,p=n(78482),h=n(40476),m=n(95149),g=n(18542),f=n(88274),v=n(65353),b=n(32716),y=n(6856),C=n(6688),S=n(2986),x=n(60227);function w(e,t){if(1&e&&(r["ɵɵelementStart"](0,"header",4),r["ɵɵtext"](1,"\n                "),r["ɵɵelementStart"](2,"h2",5),r["ɵɵtext"](3),r["ɵɵelementEnd"](),r["ɵɵtext"](4,"\n            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](3),r["ɵɵtextInterpolate"](e.title)}}function E(e,t){if(1&e&&(r["ɵɵelementStart"](0,"bx-small-banner",10),r["ɵɵtext"](1,"\n                    "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit;r["ɵɵproperty"]("imageSrc",e.imageSrc)("alt",e.alt)("linkTo",e.linkTo)("isExternal",e.isExternal)("bannerText",e.bannerText)("bannerSubText",e.bannerSubText)("bannerTextColor",e.bannerTextColor)("target",e.target)("gameId",e.liveDealerId)("data",e)}}function I(e,t){if(1&e&&(r["ɵɵelementStart"](0,"bx-content-block",11),r["ɵɵtext"](1,"\n                    "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit;r["ɵɵproperty"]("ngClass",e.sizeClass)("data",e)}}function P(e,t){if(1&e&&(r["ɵɵelementStart"](0,"bx-slide-card",12),r["ɵɵtext"](1,"\n                    "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit;r["ɵɵproperty"]("title",e.title)("cardText",e.cardText)("cardTextColor",e.cardTextColor)("imageSrc",e.imageSrc)("linkTo",e.linkTo)("target",e.target)("data",e)}}function T(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",6),r["ɵɵtext"](1,"\n                    "),r["ɵɵtemplate"](2,E,2,10,"bx-small-banner",7),r["ɵɵtext"](3,"\n                    "),r["ɵɵtemplate"](4,I,2,2,"bx-content-block",8),r["ɵɵtext"](5,"\n                    "),r["ɵɵtemplate"](6,P,2,7,"bx-slide-card",9),r["ɵɵtext"](7,"\n                "),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",n.getCSSClasses(e))("ngSwitch",e.componentType),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","smallBanner"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","contentBlock"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","slideCard")}}let _=u=class{constructor(e,t,n){this.cssMappers=e,this.textLayoutMapper=t,this.abtFieldsMapper=n,this.data={},this.banners=[]}ngOnInit(){this.data&&this.mapToDataModel(this.data.fields)}ngOnChanges(e){this.data&&this.mapToDataModel(this.data.fields)}mapToDataModel(e){if(e&&e.items){this.title=e.title,this.banners=[];const t=e.items,n={size:"1x1",smallBannerType:"smallBanner",textLayoutClass:""};t.forEach((e=>{const t={...n};t.smallBannerType=u.getContentType(e),t.fields=e.fields,t.draft="draft"===e.status;const i=this.extractFields(e.fields,t);this.banners.push(this.createBanner(i))}))}}static hasTag(e,t){return(e&&e.split(",")||[]).map((e=>e.trim())).indexOf(t)>-1}static getContentType({contentType:e,fields:t}){return"content_block"===e?"contentBlock":u.hasTag(t.tags,h.d.SLIDE_CARD)?"slideCard":"smallBanner"}static getLink(e){return e.linkUrl?e.linkUrl:p.K.mapLinkUrl(e)}extractFields(e,t){let n=this.extractTags(e.tags,t);return n.imageSrc=e.image?e.image.url:"",n.alt=e.image&&e.image.alt?e.image.alt:"",n.linkTo=e.link_url?u.getLink(e.link_url):"",n.linkText=e.link_url?e.link_url.name:"",n.isExternal=e.link_url&&"linkUrl"in e.link_url,n.contentText=u.getContentText(t.smallBannerType,e),n.title=e.title||"",n.bgColor=e.background_color||"",n.color=e.text_color||"",n.draft=t.draft,n.name=e.internal_name,n.isABTestingEnabled=e.isABTestingEnabled,n.testTitle=e.testTitle,n.version=e.version,u.isLiveDealer(e)&&(n.liveDealerId=e.link_url.fields.game_id[0].id),n.target=u.getTarget(e.link_target),n}static isLiveDealer(e){return e.link_url&&"casino_game_page"===e.link_url.contentType&&"live-dealer"===e.link_url.fields.category.slug}static getContentText(e,t){return"contentBlock"===e?t.body:t.content}static getTarget(e){return{pop_up:"popup",same_tab:"_self",new_tab:"_blank"}[e]||""}extractTags(e,t){let n={...t};if(e){let t=e.split(",");t.filter((e=>"1x2"===e||"1x4"===e||"1x6"===e)).forEach((e=>{n.size=e})),n.textLayoutClass=this.textLayoutMapper.map(t)}return n}createBanner(e){return"smallBanner"===e.smallBannerType?this.createSmallBanner(e):"slideCard"===e.smallBannerType?this.createCard(e):u.createContentBlock(e)}createSmallBanner(e){let t=new o.n;return t.sizeClass="section-"+e.size,t.imageSrc=e.imageSrc,t.alt=e.fields&&e.fields.image&&e.fields.image.alt?e.fields.image.alt:"",t.linkTo=e.linkTo,t.bannerText=e.title,t.bannerSubText=e.contentText,t.bannerTextColor=e.color,t.isExternal=e.isExternal,t.target=e.target,t.textLayoutClass=e.textLayoutClass,t.draft=e.draft,t.name=e.name,t.tracking={abtStudy:this.abtFieldsMapper.map({fields:e})},e.liveDealerId&&(t.liveDealerId=e.liveDealerId),t}createCard(e){let t=new a.q;return t.sizeClass="section-"+e.size,t.title=e.title,t.cardText=e.contentText,t.cardTextColor=e.color,t.imageSrc=e.imageSrc,t.alt=e.fields&&e.fields.image&&e.fields.image.alt?e.fields.image.alt:"",t.linkTo=e.linkTo,t.target=e.target,t.textLayoutClass=e.textLayoutClass,t.draft=e.draft,t.name=e.name,t.tracking={abtStudy:this.abtFieldsMapper.map({fields:e})},t}static tagIsPresent(e,t){return e.split(",").some((e=>e.trim()===t))}static createContentBlock(e){let t=new d;return t.sizeClass="section-"+e.size,t.body=e.contentText,t.draft=e.draft,t.title=e.title||"",e.fields.tags&&(t.liveChat=u.tagIsPresent(e.fields.tags,u.LIVE_CHAT_TAG),t.chatBot=u.tagIsPresent(e.fields.tags,u.CHAT_BOT_TAG)),t}getCSSClasses(e){return this.cssMappers.ConsolidateStyleGroups([e.sizeClass,e.textLayoutClass])}};_.LIVE_CHAT_TAG="livechat",_.CHAT_BOT_TAG="chatbot",_.ɵfac=function(e){return new(e||_)(r["ɵɵdirectiveInject"](m.h),r["ɵɵdirectiveInject"](g.k),r["ɵɵdirectiveInject"](v.u1))},_.ɵcmp=r["ɵɵdefineComponent"]({type:_,selectors:[["bx-section"]],inputs:{data:"data"},features:[r["ɵɵNgOnChangesFeature"]],decls:11,vars:3,consts:[[1,"max-container","bx-section-container",3,"bxPreviewIndicator"],["class","component-header",4,"ngIf"],[1,"section-container"],["class","section-item",3,"ngClass","ngSwitch",4,"ngFor","ngForOf"],[1,"component-header"],[1,"content-title","h5-heading"],[1,"section-item",3,"ngClass","ngSwitch"],[3,"imageSrc","alt","linkTo","isExternal","bannerText","bannerSubText","bannerTextColor","target","gameId","data",4,"ngSwitchCase"],[3,"ngClass","data",4,"ngSwitchCase"],[3,"title","cardText","cardTextColor","imageSrc","linkTo","target","data",4,"ngSwitchCase"],[3,"imageSrc","alt","linkTo","isExternal","bannerText","bannerSubText","bannerTextColor","target","gameId","data"],[3,"ngClass","data"],[3,"title","cardText","cardTextColor","imageSrc","linkTo","target","data"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"div",0),r["ɵɵtext"](2,"\n            "),r["ɵɵtemplate"](3,w,5,1,"header",1),r["ɵɵtext"](4,"\n            "),r["ɵɵelementStart"](5,"div",2),r["ɵɵtext"](6,"\n                "),r["ɵɵtemplate"](7,T,8,5,"div",3),r["ɵɵtext"](8,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](9,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](10,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("bxPreviewIndicator",t.data),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.title),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngForOf",t.banners))},directives:[b.Z,y.NgIf,y.NgForOf,y.NgClass,y.NgSwitch,y.NgSwitchCase,C.x,S.T,x._],encapsulation:2}),_=u=(0,i.__decorate)([(0,s.DE)({name:"Section",mapper:f._,matcher:e=>{let t=e.fields.tags?e.fields.tags.split(","):[];return e.contentType===c.z.SECTION&&t.indexOf(h.d.SMALL_BANNERS_AND_CONTENT_BLOCKS)>=0}}),(0,i.__metadata)("design:paramtypes",[m.h,g.k,v.u1])],_)},23475:(e,t,n)=>{"use strict";n.d(t,{H:()=>v});var i=n(2046),r=n(6856),o=n(73753),a=n(40821),s=n(93125),c=n(82939),l=n(53001),d=n(57826);function u(e,t){if(1&e&&(d["ɵɵelementStart"](0,"div",2),d["ɵɵtext"](1,"\n                "),d["ɵɵelementStart"](2,"div",3),d["ɵɵtext"](3,"\n                    "),d["ɵɵelementStart"](4,"div",4),d["ɵɵtext"](5),d["ɵɵelementEnd"](),d["ɵɵtext"](6,"\n                    "),d["ɵɵelementStart"](7,"div",5),d["ɵɵtext"](8,"\n                        "),d["ɵɵelement"](9,"i",6),d["ɵɵtext"](10,"\n                    "),d["ɵɵelementEnd"](),d["ɵɵtext"](11,"\n                "),d["ɵɵelementEnd"](),d["ɵɵtext"](12,"\n                "),d["ɵɵelementStart"](13,"div",7),d["ɵɵtext"](14,"\n                "),d["ɵɵelementEnd"](),d["ɵɵtext"](15,"\n                "),d["ɵɵelementStart"](16,"div",8),d["ɵɵtext"](17,"\n                    "),d["ɵɵelementStart"](18,"a",9),d["ɵɵtext"](19),d["ɵɵelementEnd"](),d["ɵɵtext"](20,"\n                "),d["ɵɵelementEnd"](),d["ɵɵtext"](21,"\n            "),d["ɵɵelementEnd"]()),2&e){const e=d["ɵɵnextContext"]();d["ɵɵstyleProp"]("background-color",e.bgColor),d["ɵɵadvance"](5),d["ɵɵtextInterpolate1"]("\n                        ",e.title,"\n                    "),d["ɵɵadvance"](4),d["ɵɵproperty"]("ngClass",e.iconName),d["ɵɵadvance"](4),d["ɵɵproperty"]("innerHTML",e.contentText,d["ɵɵsanitizeHtml"]),d["ɵɵadvance"](5),d["ɵɵproperty"]("routerLink",e.linkTo),d["ɵɵadvance"](1),d["ɵɵtextInterpolate"](e.linkText)}}function p(e,t){if(1&e&&(d["ɵɵelementStart"](0,"div",10),d["ɵɵtext"](1,"\n                "),d["ɵɵelementStart"](2,"div",11),d["ɵɵtext"](3,"\n                    "),d["ɵɵelement"](4,"i",6),d["ɵɵtext"](5,"\n                "),d["ɵɵelementEnd"](),d["ɵɵtext"](6,"\n                "),d["ɵɵelementStart"](7,"div",12),d["ɵɵtext"](8,"\n                    "),d["ɵɵelementStart"](9,"div",13),d["ɵɵtext"](10),d["ɵɵelementEnd"](),d["ɵɵtext"](11,"\n                    "),d["ɵɵelementStart"](12,"div",14),d["ɵɵtext"](13,"\n                    "),d["ɵɵelementEnd"](),d["ɵɵtext"](14,"\n                    "),d["ɵɵelementStart"](15,"div",15),d["ɵɵtext"](16,"\n                        "),d["ɵɵelementStart"](17,"a",9),d["ɵɵtext"](18),d["ɵɵelementEnd"](),d["ɵɵtext"](19,"\n                    "),d["ɵɵelementEnd"](),d["ɵɵtext"](20,"\n                "),d["ɵɵelementEnd"](),d["ɵɵtext"](21,"\n            "),d["ɵɵelementEnd"]()),2&e){const e=d["ɵɵnextContext"]();d["ɵɵstyleProp"]("background-color",e.bgColor),d["ɵɵadvance"](4),d["ɵɵproperty"]("ngClass",e.iconName),d["ɵɵadvance"](6),d["ɵɵtextInterpolate1"]("\n                        ",e.title,"\n                    "),d["ɵɵadvance"](2),d["ɵɵproperty"]("innerHTML",e.contentText,d["ɵɵsanitizeHtml"]),d["ɵɵadvance"](5),d["ɵɵproperty"]("routerLink",e.linkTo),d["ɵɵadvance"](1),d["ɵɵtextInterpolate"](e.linkText)}}let h=(()=>{class e{constructor(){this.title="",this.contentText="",this.linkText="",this.linkTo="",this.size="1x1",this.iconName=""}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d["ɵɵdefineComponent"]({type:e,selectors:[["bx-content-banner"]],inputs:{title:"title",contentText:"contentText",linkText:"linkText",linkTo:"linkTo",size:"size",iconName:"iconName",bgColor:"bgColor"},decls:5,vars:2,consts:[["class","content-banner-1x1 content-banner-box",3,"background-color",4,"ngIf"],["class","content-banner-1x2 content-banner-box",3,"background-color",4,"ngIf"],[1,"content-banner-1x1","content-banner-box"],[1,"content-banner-title"],[1,"col-3-5","content-banner-title-text","content-banner-text"],[1,"col-2-5"],[1,"icon","icon-color",3,"ngClass"],[1,"col-size","content-banner-content","content-banner-text",3,"innerHTML"],[1,"col-size","content-banner-link","content-banner-text"],[3,"routerLink"],[1,"content-banner-1x2","content-banner-box"],[1,"col-1-5"],[1,"col-4-5"],[1,"content-banner-title-text","content-banner-text"],[1,"content-banner-content","content-banner-text",3,"innerHTML"],[1,"content-banner-link","content-banner-text"]],template:function(e,t){1&e&&(d["ɵɵtext"](0,"\n            "),d["ɵɵtemplate"](1,u,22,7,"div",0),d["ɵɵtext"](2,"\n            "),d["ɵɵtemplate"](3,p,22,7,"div",1),d["ɵɵtext"](4,"\n    ")),2&e&&(d["ɵɵadvance"](1),d["ɵɵproperty"]("ngIf","1x1"===t.size),d["ɵɵadvance"](2),d["ɵɵproperty"]("ngIf","1x2"===t.size))},directives:[r.NgIf,r.NgClass,o.RouterLinkWithHref],styles:[".content-banner-box[_ngcontent-%COMP%] {\n  box-shadow: inset 8px 0 0 0 rgba(0, 0, 0, 0.2);\n  overflow-x: hidden;\n  overflow-y: hidden; }\n\n.content-banner-1x2[_ngcontent-%COMP%] {\n  background-color: #aa1207;\n  padding-left: 20px;\n  height: 160px; }\n\n.content-banner-1x1[_ngcontent-%COMP%] {\n  background-color: #8e752c;\n  height: 160px; }\n\n.content-banner-text[_ngcontent-%COMP%] {\n  color: #ffffff;\n  text-overflow: ellipsis;\n  overflow: hidden; }\n\n.content-banner-title-text[_ngcontent-%COMP%] {\n  font-weight: 900;\n  font-size: 1.3em;\n  padding: 20px 0px 20px 20px; }\n\n.content-banner-title[_ngcontent-%COMP%] {\n  height: 35%; }\n\n.content-banner-content[_ngcontent-%COMP%] {\n  padding: 0px 20px 0px 20px; }\n\n.content-banner-link[_ngcontent-%COMP%] {\n  padding: 10px 0px 0px 20px;\n  text-decoration: none; }\n\n.content-banner-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] {\n  text-decoration: none;\n  color: #ffffff; }\n\n.icon[_ngcontent-%COMP%]::before {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  display: block;\n  transform: translate(-50%, -50%); }\n\n.col-1-5[_ngcontent-%COMP%] {\n  width: 20%; }\n\n.col-2-5[_ngcontent-%COMP%] {\n  width: 40%; }\n\n.col-3-5[_ngcontent-%COMP%] {\n  width: 60%; }\n\n.col-4-5[_ngcontent-%COMP%] {\n  width: 80%; }\n\n.icon[_ngcontent-%COMP%] {\n  position: relative;\n  display: block;\n  font-size: 3em;\n  border-radius: 50%;\n  margin: 10px 0px 0px 0px;\n  height: 65px;\n  width: 65px; }\n\n.icon-color[_ngcontent-%COMP%] {\n  color: #404040;\n  background-color: #fff; }\n\n@media screen and (min-width: 769px) {\n  .col-size[_ngcontent-%COMP%] {\n    width: 65%; } }\n\n@media screen and (max-width: 769px) {\n  .icon-color[_ngcontent-%COMP%] {\n    background-color: inherit;\n    color: #fff; }\n  .col-size[_ngcontent-%COMP%] {\n    width: 100%; } }"]}),e})(),m=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d["ɵɵdefineNgModule"]({type:e}),e.ɵinj=d["ɵɵdefineInjector"]({imports:[[r.CommonModule,o.RouterModule,l.J.withComponents([h])]]}),e})();var g=n(76463),f=n(88274);let v=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d["ɵɵdefineNgModule"]({type:e}),e.ɵinj=d["ɵɵdefineInjector"]({providers:[f._],imports:[[r.CommonModule,o.RouterModule,a.o,s.s,m,l.J.withComponents([i.e]),g.s,c.A]]}),e})()},12797:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});class i{constructor(e){this.sizeClass="",this.fields={},this.componentType=e}}},71844:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var i=n(65353),r=n(54056),o=n(78482),a=n(57826);let s=(()=>{class e{constructor(e){this.abtFieldsMapper=e,this.createSlideCard=e=>{let t=new r.q;return t.cardText=e.fields.content,t.cardTextColor=e.fields.text_color,t.linkTo=o.K.mapLinkUrl(e.fields.link_url),t.imageSrc=e.fields.image?e.fields.image.url:"",t.alt=e.fields.image&&e.fields.image.alt?e.fields.image.alt:"",t.target=this.getTarget(e.fields.link_target),t.draft=this.isStatusDraft(e.status),t.name=e.fields.internal_name,t.tracking={abtStudy:this.abtFieldsMapper.map(e)},t}}getTarget(e){return{pop_up:"popup",same_tab:"_self",new_tab:"_blank"}[e]||""}isStatusDraft(e){return"draft"===e}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.u1))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},60227:(e,t,n)=>{"use strict";n.d(t,{_:()=>P});var i=n(57826),r=n(6856),o=n(81899),a=n(55298),s=n(70025),c=n(80112),l=n(52344),d=n(32716),u=n(79952),p=n(29015),h=n(73753),m=n(96940);function g(e,t){if(1&e&&(i["ɵɵelementStart"](0,"header",4),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"h2",5),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.title)}}function f(e,t){if(1&e&&i["ɵɵelement"](0,"img",10),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("src",e.imageSrc,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.alt)}}function v(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figcaption",11),i["ɵɵpipe"](1,"bxTrustyHtml"),i["ɵɵtext"](2,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵstyleProp"]("color",e.cardTextColor),i["ɵɵproperty"]("innerHTML",i["ɵɵpipeBind1"](1,3,e.cardText),i["ɵɵsanitizeHtml"])}}function b(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figcaption",12),i["ɵɵpipe"](1,"bxTrustyHtml"),i["ɵɵtext"](2,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵstyleProp"]("color",e.cardTextColor),i["ɵɵproperty"]("innerHTML",i["ɵɵpipeBind1"](1,4,e.cardText),i["ɵɵsanitizeHtml"])("isChatBot",e.isChatBot)}}function y(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                "),i["ɵɵelementStart"](1,"figure",6),i["ɵɵtext"](2,"\n                    "),i["ɵɵtemplate"](3,f,1,2,"img",7),i["ɵɵtext"](4,"\n                    "),i["ɵɵtemplate"](5,v,3,5,"figcaption",8),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,b,3,6,"figcaption",9),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            ")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",!!e.imageSrc),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e.isLiveChat),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.isLiveChat)}}function C(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementContainerEnd"]())}function S(e,t){1&e&&i["ɵɵelementContainer"](0)}function x(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵtext"](0,"\n                    "),i["ɵɵelementStart"](1,"a",16),i["ɵɵlistener"]("click",(function(t){i["ɵɵrestoreView"](e);const n=i["ɵɵnextContext"](2);return n.handleClickOnSlide(t,n.data.name,n.data.tracking)})),i["ɵɵtext"](2,"\n                    "),i["ɵɵtemplate"](3,S,1,0,"ng-container",17),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n                ")}if(2&e){const e=i["ɵɵnextContext"](2),t=i["ɵɵreference"](6);i["ɵɵadvance"](1),i["ɵɵproperty"]("routerLink",e.cmsLink.uri)("queryParams",e.cmsLink.queryParams),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngTemplateOutlet",t)}}function w(e,t){1&e&&i["ɵɵelementContainer"](0)}function E(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵtext"](0,"\n                    "),i["ɵɵelementStart"](1,"a",18),i["ɵɵlistener"]("click",(function(t){i["ɵɵrestoreView"](e);const n=i["ɵɵnextContext"](2);return n.handleClickOnSlide(t,n.data.name,n.data.tracking)})),i["ɵɵtext"](2,"\n                        "),i["ɵɵtemplate"](3,w,1,0,"ng-container",17),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n                ")}if(2&e){const e=i["ɵɵnextContext"](2),t=i["ɵɵreference"](6);i["ɵɵadvance"](1),i["ɵɵproperty"]("target","popup"!==e.target?e.target:null),i["ɵɵattribute"]("href",e.link,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngTemplateOutlet",t)}}function I(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,C,2,0,"ng-container",13),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,x,6,3,"ng-template",null,14,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,E,6,3,"ng-template",null,15,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](9,"\n            "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵreference"](5),t=i["ɵɵreference"](8),n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",n.isInternal())("ngIfThen",e)("ngIfElse",t)}}let P=(()=>{class e{constructor(e,t,n,i,r,o){this.platformId=e,this.clickHandlerService=t,this.cmsExternalLinkService=n,this.urlPrefixService=i,this.contentService=r,this.windowService=o,this.isLiveChat=!1,this.isChatBot=!1}set linkTo(e){e=this.urlPrefixService.addUrlPrefix(e),this.cmsLink=this.cmsExternalLinkService.toCmsExternalLink(e),this.link=e}ngOnInit(){this.isLiveChat=this.contentService.isLiveChatContent(this.data),this.isChatBot=this.contentService.isChatBotContent(this.data)}isInternal(){return!this.link.startsWith("http")&&"_self"===this.target}handleClickOnSlide(e,t,n){this.clickHandlerService.handleClick("slide_card",!1,t,-1,n),this.openLink(e)}openLink(e){(0,r.isPlatformBrowser)(this.platformId)&&this.windowService&&"popup"===this.target&&(e.preventDefault(),e.stopPropagation(),this.windowService.window().open(this.link,null,"width=1000,height=690"))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](a.M),i["ɵɵdirectiveInject"](s.xG),i["ɵɵdirectiveInject"](c.z),i["ɵɵdirectiveInject"](l._s),i["ɵɵdirectiveInject"](o.u,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-slide-card"]],inputs:{title:"title",cardText:"cardText",cardTextColor:"cardTextColor",imageSrc:"imageSrc",alt:"alt",linkTo:"linkTo",target:"target",data:"data"},decls:11,vars:4,consts:[[1,"slidecard-container",3,"bxPreviewIndicator"],["class","component-header",4,"ngIf"],["card",""],[4,"ngIf","ngIfElse"],[1,"component-header"],[1,"content-title","h5-heading"],[1,"card"],["bxImage","","class","img-responsive",3,"src",4,"ngIf"],["class","card-text",3,"color","innerHTML",4,"ngIf"],["class","card-text","bxLiveChatHandler","",3,"color","innerHTML","isChatBot",4,"ngIf"],["bxImage","",1,"img-responsive",3,"src"],[1,"card-text",3,"innerHTML"],["bxLiveChatHandler","",1,"card-text",3,"innerHTML","isChatBot"],[4,"ngIf","ngIfThen","ngIfElse"],["internalLink",""],["externalLink",""],["role","link",3,"routerLink","queryParams","click"],[4,"ngTemplateOutlet"],["role","link","rel","noopener",3,"target","click"]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,g,5,1,"header",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,y,10,3,"ng-template",null,2,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](7,"\n\n            "),i["ɵɵtemplate"](8,I,10,3,"ng-container",3),i["ɵɵtext"](9,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n    ")),2&e){const e=i["ɵɵreference"](6);i["ɵɵadvance"](1),i["ɵɵproperty"]("bxPreviewIndicator",t.data),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.title),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.link)("ngIfElse",e)}},directives:[d.Z,r.NgIf,u.t,p.T,h.RouterLinkWithHref,r.NgTemplateOutlet],pipes:[m.d],styles:[".component-header[_ngcontent-%COMP%] {\n  padding: 0 0 16px; }\n\n.card[_ngcontent-%COMP%] {\n  padding-bottom: 12px; }\n\n.card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%] {\n    height: 68px;\n    line-height: 16px;\n    overflow: hidden;\n    padding-bottom: 0; }\n\n.card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%]     [class*=-heading] {\n      color: inherit; }\n\n@media screen and (max-width: 769px) {\n  .card[_ngcontent-%COMP%]::before, .card[_ngcontent-%COMP%]   .img-responsive[_ngcontent-%COMP%] {\n    height: 108px; }\n  .card[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%] {\n    font-size: 12px;\n    line-height: 14px;\n    padding: 12px 12px 0; } }"]}),e})()},82939:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var i=n(6856),r=n(73753),o=n(73502),a=n(40821),s=n(65353),c=n(22291),l=n(61818),d=n(39013),u=n(52344),p=n(36575),h=n(71844),m=n(57826);n(39168);let g=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=m["ɵɵdefineNgModule"]({type:e}),e.ɵinj=m["ɵɵdefineInjector"]({providers:[l.x,h.G],imports:[[i.CommonModule,r.RouterModule,o.D,a.o,c.$Q,s.gM.forRoot(),d.W,u.Qh,p.I]]}),e})()},54056:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var i=n(12797);class r extends i.${constructor(){super("slideCard")}}},6688:(e,t,n)=>{"use strict";n.d(t,{x:()=>E});var i=n(57826),r=n(5195),o=n(6856),a=n(80218),s=n(70025),c=n(80112),l=n(55298),d=n(32716),u=n(79952),p=n(73753),h=n(96940);function m(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",10),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.bannerText)}}function g(e,t){if(1&e&&(i["ɵɵelement"](0,"div",11),i["ɵɵpipe"](1,"bxTrustyHtml")),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("innerHTML",i["ɵɵpipeBind1"](1,1,e.bannerSubText),i["ɵɵsanitizeHtml"])}}function f(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figcaption",7),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,m,2,1,"div",8),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,g,2,3,"div",9),i["ɵɵtext"](5,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵstyleProp"]("color",e.bannerTextColor),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.bannerText),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.bannerSubText)}}function v(e,t){if(1&e&&(i["ɵɵtext"](0,"\n            "),i["ɵɵelementStart"](1,"figure",3),i["ɵɵtext"](2,"\n                "),i["ɵɵelement"](3,"img",4),i["ɵɵtext"](4,"\n                "),i["ɵɵelement"](5,"img",5),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,f,6,4,"figcaption",6),i["ɵɵtext"](8,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n        ")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵproperty"]("src",e.thumbnailImage,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.thumbnailAlt),i["ɵɵadvance"](2),i["ɵɵproperty"]("src",e.imageSrc,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.alt),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.bannerText||e.bannerSubText)}}function b(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementContainerEnd"]())}function y(e,t){1&e&&i["ɵɵelementContainer"](0)}function C(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵtext"](0,"\n                        "),i["ɵɵelementStart"](1,"a",15),i["ɵɵlistener"]("click",(function(t){i["ɵɵrestoreView"](e);const n=i["ɵɵnextContext"](2);return n.handleClickOnSlide(t,n.data.name,n.data.tracking)})),i["ɵɵtext"](2,"\n                            "),i["ɵɵtemplate"](3,y,1,0,"ng-container",16),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n                    ")}if(2&e){const e=i["ɵɵnextContext"](2),t=i["ɵɵreference"](2);i["ɵɵadvance"](1),i["ɵɵproperty"]("target","popup"!==e.target?e.target:null),i["ɵɵattribute"]("href",e.link,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngTemplateOutlet",t)}}function S(e,t){1&e&&i["ɵɵelementContainer"](0)}function x(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵtext"](0,"\n                        "),i["ɵɵelementStart"](1,"a",17),i["ɵɵlistener"]("click",(function(t){i["ɵɵrestoreView"](e);const n=i["ɵɵnextContext"](2);return n.handleClickOnSlide(t,n.data.name,n.data.tracking)})),i["ɵɵtext"](2,"\n                            "),i["ɵɵtemplate"](3,S,1,0,"ng-container",16),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n                    ")}if(2&e){const e=i["ɵɵnextContext"](2),t=i["ɵɵreference"](2);i["ɵɵadvance"](1),i["ɵɵproperty"]("routerLink",e.cmsLink.uri)("queryParams",e.cmsLink.queryParams),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngTemplateOutlet",t)}}function w(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,b,2,0,"ng-container",12),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,C,6,3,"ng-template",null,13,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,x,6,3,"ng-template",null,14,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](9,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵreference"](5),t=i["ɵɵreference"](8),n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",n.isExternal||n.target&&"_self"!=n.target)("ngIfThen",e)("ngIfElse",t)}}let E=(()=>{class e{constructor(e,t,n,i,r,a){this.smallBannerPopupService=e,this.platformId=t,this.cdnService=n,this.clickHandlerService=i,this.cmsExternalLinkService=r,this.addUrlPrefixService=a,this.thumbnailImage="/assets/images/thumbnail.png",this.thumbnailAlt="Placeholder image",this.isServerRender=(0,o.isPlatformServer)(this.platformId),this.thumbnailImage=this.cdnService.getCdnUrlImage(this.thumbnailImage)}set linkTo(e){this.cmsLink=this.cmsExternalLinkService.toCmsExternalLink(e),this.link=this.addUrlPrefixService.addUrlPrefix(e)}handleClickOnSlide(e,t,n){this.clickHandlerService.handleClick("small_banner",!1,t,-1,n),this.openLink(e)}openLink(e){if("popup"===this.target)return this.smallBannerPopupService.openPopupLink(this.linkTo,this.gameId),e.preventDefault(),e.stopPropagation(),!1}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.i),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](a.U),i["ɵɵdirectiveInject"](l.M),i["ɵɵdirectiveInject"](s.xG),i["ɵɵdirectiveInject"](c.z))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-small-banner"]],inputs:{bannerText:"bannerText",bannerSubText:"bannerSubText",bannerTextColor:"bannerTextColor",linkTo:"linkTo",imageSrc:"imageSrc",alt:"alt",target:"target",gameId:"gameId",isExternal:"isExternal",data:"data"},decls:12,vars:3,consts:[["banner",""],[1,"game-thumbnail","img-large","small-banner",3,"bxPreviewIndicator"],[4,"ngIf","ngIfElse"],[1,"thumb-container"],[1,"img-placeholder","img-responsive","small-banner-image",3,"src"],["bxImage","",1,"img-responsive","img-game","small-banner-image",3,"src"],["class","thumbnail-text",3,"color",4,"ngIf"],[1,"thumbnail-text"],["class","small-banner-text",4,"ngIf"],["class","small-banner-subtext",3,"innerHTML",4,"ngIf"],[1,"small-banner-text"],[1,"small-banner-subtext",3,"innerHTML"],[4,"ngIf","ngIfThen","ngIfElse"],["externalLink",""],["internalLink",""],["role","link","rel","noopener",3,"target","click"],[4,"ngTemplateOutlet"],["role","link",3,"routerLink","queryParams","click"]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,v,10,5,"ng-template",null,0,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](3,"\n\n        "),i["ɵɵelementStart"](4,"div"),i["ɵɵtext"](5,"\n            "),i["ɵɵelementStart"](6,"article",1),i["ɵɵtext"](7,"\n                "),i["ɵɵtemplate"](8,w,10,3,"ng-container",2),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n    ")),2&e){const e=i["ɵɵreference"](2);i["ɵɵadvance"](6),i["ɵɵproperty"]("bxPreviewIndicator",t.data),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.link)("ngIfElse",e)}},directives:[d.Z,o.NgIf,u.t,o.NgTemplateOutlet,p.RouterLinkWithHref],pipes:[h.d],styles:["article.small-banner[_ngcontent-%COMP%] {\n  min-width: 0;\n  max-width: none;\n  box-sizing: border-box; }\n  article.small-banner[_ngcontent-%COMP%]   .thumbnail-text[_ngcontent-%COMP%] {\n    font-size: 1.3em;\n    font-weight: 900; }\n  article.small-banner[_ngcontent-%COMP%]   .thumbnail-text[_ngcontent-%COMP%]     [class*=-heading] {\n      color: inherit; }\n  .small-banner-text[_ngcontent-%COMP%] {\n  width: 60%;\n  white-space: normal; }\n  .small-banner-subtext[_ngcontent-%COMP%] {\n  width: 70%;\n  font-weight: 100;\n  font-size: .8em; }\n  .small-banner-image[_ngcontent-%COMP%] {\n  width: 100%;\n  height: 160px;\n  object-fit: cover; }"]}),e})()},93125:(e,t,n)=>{"use strict";n.d(t,{s:()=>h});var i=n(6856),r=n(73753),o=n(5195),a=n(22291),s=n(73502),c=n(40821),l=n(70025),d=n(65353),u=n(55298),p=n(57826);n(39168);let h=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({providers:[o.i,l.xG,u.M],imports:[[i.CommonModule,r.RouterModule,a.$Q,s.D,c.o,d.gM.forRoot()]]}),e})()},5195:(e,t,n)=>{"use strict";n.d(t,{i:()=>c});var i=n(95556),r=n(73753),o=n(616),a=n(80112),s=n(57826);let c=(()=>{class e{constructor(e,t,n,i){this.sessionService=e,this.profileStore=t,this.router=n,this.urlPrefixService=i,this.OPEN_GAME_QUERY_PARAM="liveDealerGame"}openPopupLink(e,t=""){if(t)if(this.sessionService.isAuthenticated())this.openPopup(`/live-dealer/game/${t}/${this.profileStore.language}/${this.profileStore.currency}`);else{const e={queryParams:{destination:`${this.router.url}?${this.OPEN_GAME_QUERY_PARAM}=${t}`}};this.router.navigate(["login"],e)}else this.popup=this.openPopup(e)}openPopup(e=""){return window.open(this.urlPrefixService.addUrlPrefix(e),"","width=1000,height=690")}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.mj),s["ɵɵinject"](o.s),s["ɵɵinject"](r.Router),s["ɵɵinject"](a.z))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},67953:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var i=n(12797);class r extends i.${constructor(){super("smallBanner")}}},55516:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},40556:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});let i=(()=>{class e{constructor(t){this.paths=t.paths&&t.paths.length?t.paths:[`${e.DEFAULT_CATEGORY}/${t.uriSuffix}`]}}return e.DEFAULT_CATEGORY="common-faq",e})()},98645:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var i=n(30173),r=n(6856),o=n(57826),a=n(73753);function s(e,t){if(1&e&&(o["ɵɵelementStart"](0,"div",1),o["ɵɵtext"](1,"\n            "),o["ɵɵelementStart"](2,"a",2),o["ɵɵtext"](3,"\n                "),o["ɵɵelement"](4,"i",3),o["ɵɵtext"](5,"\n            "),o["ɵɵelementEnd"](),o["ɵɵtext"](6,"\n            "),o["ɵɵelementStart"](7,"a",4),o["ɵɵtext"](8),o["ɵɵelement"](9,"i",5),o["ɵɵelementEnd"](),o["ɵɵtext"](10,"\n        "),o["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=t.index,i=o["ɵɵnextContext"]();o["ɵɵadvance"](2),o["ɵɵproperty"]("routerLink",i.mobileReturnUrl)("queryParams",i.mobileReturnQueryParams),o["ɵɵadvance"](5),o["ɵɵproperty"]("routerLink",i.buildBreadcrumbTextUrl(n))("queryParams",i.buildBreadcrumbTextQueryParams()),o["ɵɵadvance"](1),o["ɵɵtextInterpolate"](e.text)}}let c=(()=>{class e{constructor(e,t){this.deviceService=e,this.location=t,this.breadcrumb=[],this.mobileReturnUrl="..",this.mobileReturnQueryParams={},this.queryParams=""}isMobileAndHelpContent(){const e=this.location.path();return this.deviceService.isMobile()&&("/help"===e||e.startsWith("/help/"))}buildBreadcrumbTextUrl(e){const t=this.breadcrumb[e].url;return this.isMobileAndHelpContent()?this.mobileReturnUrl:t}buildBreadcrumbTextQueryParams(){return this.isMobileAndHelpContent()?this.mobileReturnQueryParams:this.queryParams}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵdirectiveInject"](i.U),o["ɵɵdirectiveInject"](r.Location))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["bx-breadcrumb"]],inputs:{breadcrumb:"breadcrumb",mobileReturnUrl:"mobileReturnUrl",mobileReturnQueryParams:"mobileReturnQueryParams",queryParams:"queryParams"},decls:3,vars:1,consts:[["class","breadcrumb",4,"ngFor","ngForOf"],[1,"breadcrumb"],[1,"breadcrumb-link",3,"routerLink","queryParams"],[1,"icon","icon-arrow-back"],[3,"routerLink","queryParams"],[1,"icon","icon-arrow-next"]],template:function(e,t){1&e&&(o["ɵɵtext"](0,"\n        "),o["ɵɵtemplate"](1,s,11,5,"div",0),o["ɵɵtext"](2,"\n    ")),2&e&&(o["ɵɵadvance"](1),o["ɵɵproperty"]("ngForOf",t.breadcrumb))},directives:[r.NgForOf,a.RouterLinkWithHref],encapsulation:2}),e})()},7294:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var i=n(73753),r=n(6856),o=n(10687),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({providers:[o.p],imports:[[r.CommonModule,i.RouterModule.forChild([])]]}),e})()},10687:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var i=n(71923),r=n(4309),o=n(42998),a=n(25300),s=n(54411),c=n(44960),l=n(84285),d=n(57826);let u=(()=>{class e{constructor(e){this.marketingPageService=e}buildBreadcrumb(e,t,n){if(this.isBreadcrumbPage(e)){const a=t.split("/");if(this.isSingleSegment(a))return(0,r.of)([new l.g(e.fields.title,t)]);if(!this.isSingleSegment(a))return this.marketingPageService.getMarketingPageByUriSuffix(a[a.length-2]).pipe((0,o.map)((r=>[new l.g(r.title,i(a.length-1,1,a).join("/"))].concat(n?[new l.g(e.fields.title,t)]:[]))))}return(0,r.of)([])}isBreadcrumbPage(e){return this.isValidContentPage(e)||this.isMarketingPage(e)&&!this.isCasinoSubcategory(e)}isValidContentPage(e){return e.contentType===a.z.CONTENT_PAGE&&(e.fields.page_type===s.G.ARTICLE||e.fields.page_type===s.G.PROMOTION)}isMarketingPage(e){return e.contentType===a.z.MARKETING_PAGE}isCasinoSubcategory(e){return this.getItems(e).some((e=>this.getTags(e).includes("casinosubcategoriesmenu")))}getItems(e){return e&&e.fields&&e.fields.items?e.fields.items:[]}getTags(e){return e&&e.fields&&e.fields.tags?e.fields.tags:""}isSingleSegment(e){return 1==e.filter((e=>""!==e)).length}}return e.ɵfac=function(t){return new(t||e)(d["ɵɵinject"](c.F))},e.ɵprov=d["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},84285:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});class i{constructor(e,t){this.text=e,this.url=t}}},17990:(e,t,n)=>{"use strict";n.d(t,{Ae:()=>o,DE:()=>l,X_:()=>i,gp:()=>c,no:()=>s,o3:()=>r,wC:()=>a});const i={},r=[],o=[],a={},s={},c={};function l(e){return t=>{i[e.name]=t,(e.useAsDefault?o:r).push((t=>{if(e.matcher(t))return e.name})),e.mapper&&(a[e.name]=new e.mapper),e.contentMapper&&(c[e.name]=e.contentMapper),e.injectedMapper&&(s[e.name]=e.injectedMapper)}}},56914:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{}},17125:(e,t,n)=>{"use strict";n.d(t,{d:()=>c});var i=n(57826),r=n(17990),o=n(58997),a=n(43431),s=n(30173);let c=(()=>{class e{constructor(e,t,n,i){this.componentResolverService=e,this.injector=t,this.cmsFeatureFlagService=n,this.deviceService=i,this.contentMapperConfiguration={},Object.keys(r.gp).length&&this.setDeviceType()}map(e){let t=this.componentResolverService.resolveComponent(e);if(t)return{component:r.X_[t],data:this.getComponentData(t,e)}}getComponentData(e,t){return r.gp[e]&&this.cmsFeatureFlagService.isFeatureEnabled(r.gp[e].featureFlag)&&(t=r.gp[e].mapper(t,this.contentMapperConfiguration)),r.no[e]?this.injector.get(r.no[e]).map(t):r.wC[e]?r.wC[e].map(t):{data:t.fields}}setDeviceType(){this.contentMapperConfiguration.deviceType=this.deviceService.getDeviceType()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.G),i["ɵɵinject"](i.Injector),i["ɵɵinject"](a.u),i["ɵɵinject"](s.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},58997:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var i=n(17990),r=n(57826);let o=(()=>{class e{resolveComponent(e){let t,n=[...i.o3,...i.Ae];for(let i of n)if(t=i(e),t)return t}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},55998:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});class i{constructor(e,t){this.urlPrefixService=e,this.gameUrlService=t}}},57754:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,r:()=>i});const i=[];function r(){return e=>{i.push(e)}}},78482:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var i=n(57754),r=n(80112),o=n(27218),a=n(57826);let s=(()=>{class e{constructor(t,n){this.urlPrefixService=t,this.gameUrlService=n,e.urlPrefixService=this.urlPrefixService,e.gameUrlService=this.gameUrlService}init(){}static mapLinkUrl(t){if(t){if("string"==typeof t)return t;let n;for(let r=0;r<i.r.length;r++){let o=new i.r[r](e.urlPrefixService,e.gameUrlService);if(o.matcher(t)){n=o;break}}if(n)return n.createLink(t)}return e.defaultLink}}return e.defaultLink="",e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](r.z),a["ɵɵinject"](o.X))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},61818:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var i=n(57826);let r=(()=>{class e{toCmsExternalLink(e){const t=e.split("?");return{uri:t[0],queryParams:t[1]?this.splitParams(t[1]):{}}}splitParams(e){const t=e.split("&"),n={};return t.forEach((e=>{const t=e.split("=");n[t[0]]=t[1]})),n}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},70025:(e,t,n)=>{"use strict";n.d(t,{Kt:()=>o.K,ST:()=>a.S,Xe:()=>i.X,xG:()=>r.x});var i=n(55998),r=n(61818),o=n(78482),a=n(57754)},98912:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});class i{constructor(){this.notFoundPageUrl="404"}}i.DEFAULT=new i},40123:(e,t,n)=>{"use strict";n.d(t,{y:()=>E});var i=n(57826),r=n(32711),o=n(85089),a=(()=>(function(e){e[e.JOINED=1]="JOINED",e[e.UNJOINED=0]="UNJOINED"}(a||(a={})),a))(),s=(()=>(function(e){e[e.LOGGED=1]="LOGGED",e[e.UNLOGGED=0]="UNLOGGED"}(s||(s={})),s))(),c=(()=>(function(e){e.MOBILE="m",e.DESKTOP="d"}(c||(c={})),c))(),l=(()=>(function(e){e.iOS="iOS",e.MAC_OS="mac",e.WINDOWS="w",e.ANDROID="a",e.LINUX="li",e.NOT_SUPPORTED="ns"}(l||(l={})),l))(),d=(()=>(function(e){e[e.PROXY_BROWSER=1]="PROXY_BROWSER",e[e.NO_PROXY_BROWSER=0]="NO_PROXY_BROWSER"}(d||(d={})),d))(),u=n(30173),p=n(36797),h=n(38056),m=n(82846),g=n(55640),f=n(45965),v=n(64174),b=n(89309),y=n(61493),C=n(81899),S=n(66168),x=n(6856);const w=/(^(.*)\/promotions(\/?|\/[a-zA-Z0-9-._]+)?$|^(.*)\/help(\/?|\/[a-zA-Z0-9-._]+){0,2}$)/;let E=(()=>{class e{constructor(e,t,n,i,o,a,s,c,l,d,u){this.siteConfigService=e,this.cookieStorageService=t,this.contentVariant=n,this.browserStorageService=i,this.deviceService=o,this.sessionService=a,this.windowService=s,this.multilingualRoutesService=c,this.platformId=l,this.profileStore=d,this.loyaltyStore=u,this.profileStore&&(0,r.U5)((()=>this.profileStore.profile),(()=>{this.userCurrency=this.profileStore.currency,this.userCountry=this.profileStore.countryCode}))}setJoinedStatus(){this.contentVariant.cookieVariant.jn=this.isJoined()?a.JOINED:a.UNJOINED}setDeviceType(){this.contentVariant.cookieVariant.dt=this.deviceService.isDesktop()?c.DESKTOP:c.MOBILE}setOperatingSystem(){switch(this.deviceService.getOperatingSystem()){case p.U.WINDOWS:case p.U.WINDOWS_PHONE:this.contentVariant.cookieVariant.os=l.WINDOWS;break;case p.U.MAC:this.contentVariant.cookieVariant.os=this.deviceService.isDesktop()?l.MAC_OS:l.iOS;break;case p.U.IOS:this.contentVariant.cookieVariant.os=l.iOS;break;case p.U.ANDROID:this.contentVariant.cookieVariant.os=l.ANDROID;break;case p.U.LINUX:this.contentVariant.cookieVariant.os=l.LINUX;break;default:this.contentVariant.cookieVariant.os=l.NOT_SUPPORTED}}setCountry(){this.userCountry&&this.userCountry!==this.contentVariant.cookieVariant.cntry?this.contentVariant.cookieVariant.cntry=this.userCountry:this.cookieStorageService.get("Country")&&this.cookieStorageService.get("Country")!==this.contentVariant.cookieVariant.cntry?this.contentVariant.cookieVariant.cntry=this.cookieStorageService.get("Country"):this.sessionDataExists()||(this.contentVariant.cookieVariant.cntry=this.siteConfigService.getSiteConfigProp("countryCode"))}setCurrency(){this.userCurrency&&this.userCurrency!==this.contentVariant.cookieVariant.cur?this.contentVariant.cookieVariant.cur=this.userCurrency:this.sessionDataExists()||(this.contentVariant.cookieVariant.cur=this.siteConfigService.getSiteConfigProp("defaultCurrency"))}setLoggedStatus(){this.contentVariant.cookieVariant.lgn=this.sessionService.isAuthenticated()?s.LOGGED:s.UNLOGGED}setLoyaltyTier(e){this.contentVariant.cookieVariant.t=e}setProxyBrowserValue(){this.contentVariant.cookieVariant.pb=this.cookieStorageService.get("PROXY_BROWSER")?d.PROXY_BROWSER:d.NO_PROXY_BROWSER}isJoined(){return!!this.cookieStorageService.get("JOINED")}sessionDataExists(){return!(!this.cookieStorageService.get("sid")&&!this.browserStorageService.get("sessionId"))}getLoyaltyTier(){return new Promise((e=>{this.isTierNeeded()?(0,r.EH)((()=>{this.loyaltyStore.currentTierId&&e(this.loyaltyStore.currentTierId)})):e("")}))}setVariantCookie(){return this.setJoinedStatus(),this.setDeviceType(),this.setOperatingSystem(),this.setCountry(),this.setCurrency(),this.setLoggedStatus(),this.setProxyBrowserValue(),this.setVariantCookieValues(),new Promise((e=>{setTimeout((()=>e()),2e3),this.getLoyaltyTier().then((t=>{this.setLoyaltyTier(t),this.setVariantCookieValues(),e()}))}))}isTierNeeded(){return(0,x.isPlatformBrowser)(this.platformId)&&this.loyaltyStore&&this.sessionService.isAuthenticated()&&this.siteConfigService.evalFeature(y.A.loyaltyEnabled)&&this.isHelpOrPromotionPage()}isHelpOrPromotionPage(){const e=this.windowService&&this.windowService.location().href||"";return this.multilingualRoutesService.translatePath(this.multilingualRoutesService.selectedLanguage,new S.MS(e),!0).url.match(w)}setVariantCookieValues(){const e=this.contentVariant.toString();this.cookieStorageService.set(o.u.COOKIE_VARIANT,e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](f.r),i["ɵɵinject"](m.G),i["ɵɵinject"](o.u),i["ɵɵinject"](g.z),i["ɵɵinject"](u.U),i["ɵɵinject"](v.m),i["ɵɵinject"](C.u),i["ɵɵinject"](S.JH),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](h.A,8),i["ɵɵinject"](b.r,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},10406:(e,t,n)=>{"use strict";n.d(t,{Gb:()=>a,Hk:()=>d,KI:()=>o,dq:()=>l,gd:()=>u,ge:()=>p,lI:()=>r,vg:()=>c,wg:()=>i});const i="homepage",r="header-casino",o="section",a="casino",s=/\/casino(\/((?!leaderboards)[a-z A-Z0-9-]+))\/[a-z A-Z0-9-]+/;function c(e,t){let n;return n=e?"firsttimevisitor":t?"logged":"unlogged","homepage-"+n}function l(e){return e.indexOf(a)>-1}function d(e){return e.indexOf("leaderboards")>-1}function u(e){return s.test(e)}function p(e,t){return!!e.fields.tags&&e.fields.tags.split(",").indexOf(t)>=0}},58859:(e,t,n)=>{"use strict";n.d(t,{Q:()=>N});var i=n(57826),r=n(6856),o=n(73753),a=n(50536),s=n(29967),c=n(16462),l=n(70025),d=n(64762),u=n(55998),p=n(57754),h=n(80112),m=n(27218);let g=class extends u.X{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t}matcher(e){return e.hasOwnProperty("linkUrl")}createLink(e){return e.linkUrl}};g.ɵfac=function(e){return new(e||g)(i["ɵɵinject"](h.z),i["ɵɵinject"](m.X))},g.ɵprov=i["ɵɵdefineInjectable"]({token:g,factory:g.ɵfac}),g=(0,d.__decorate)([(0,p.S)(),(0,d.__metadata)("design:paramtypes",[h.z,m.X])],g);var f=n(90388),v=n(40123),b=n(85089),y=n(15152),C=n(65353),S=n(61556),x=n(64417),w=n(66168),E=n(59789),I=n(86958),P=n(81768),T=n(56730),_=n(5700),M=n(86333),O=n(4309),A=n(23550),k=n(42998);let j=(()=>{class e{constructor(e){this.http=e}baseUrl(e,t){return`/services/content/v4/brands/${e}/buckets/${t}`}contentUrl(e,t){return`${this.baseUrl(e,t)}/contents`}publishedContentUrl(e,t){return`${this.contentUrl(e,t)}/published`}getContentsPublished(e,t,n,i,r="10",o="ASC"){const a={params:{contentType:n,name:i,size:r,sortOrder:o},withCredentials:!0};return this.http.get(this.publishedContentUrl(e,t),a).pipe((0,k.map)((e=>e)),(0,k.catchError)((()=>(0,O.of)({items:[],scroll:{}}))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](A.HttpClient))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();n(39168);let N=(()=>{class e{static forRoot(){return{ngModule:e,providers:[c._,j,l.Kt,g,f.B,v.y,b.u,y._,w.JH,w.dT,I.P,P.V,T.Z,E.s,_.C]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,o.RouterModule,a.j,s.j,S.d,x.L,M.M,C.gM.forRoot()]]}),e})()},90388:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var i=n(57826),r=n(73753),o=n(4309),a=n(98912);let s=(()=>{class e{constructor(e,t){this.injector=e,this.router=t}handleContentNotFoundOrThrow(e){if(!this.handleContentNotFound(e))throw e}resolveContentNotFoundOrThrow(e,t=!1){return!t&&this.handleContentNotFound(e)?o.EMPTY:t?(0,o.of)([]):(0,o.throwError)(e)}handleContentNotFound(e){let t=!1;return e&&e.status&&404===e.status&&(console.warn(`content not found: ${e.url}`),this.navigateToNotFoundPage(),t=!0),t}navigateToNotFoundPage(){this.checkOrInitConfiguration(),this.router.navigate([this.config.notFoundPageUrl])}checkOrInitConfiguration(){this.config||(this.config=this.injector.get(a.S,a.S.DEFAULT))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.Injector),i["ɵɵinject"](r.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},16462:(e,t,n)=>{"use strict";n.d(t,{_:()=>C});var i=n(6856),r=n(23550),o=n(57826),a=n(73753),s=n(86958),c=n(43431),l=n(82846),d=n(80112),u=n(48108),p=n(4309),h=n(42998),m=n(40123),g=n(10406),f=n(59789),v=n(15152),b=n(81899),y=n(5700);class C{constructor(e,t,n,i,r,o,a,s,c,l,d,u,h){this.http=e,this.languageService=t,this.cmsFeatureFlagService=n,this.contentFilterService=i,this.injector=r,this.requestOptionsBuilder=o,this.impressionHelper=a,this.urlPrefixService=s,this.cookieStorageService=c,this.platformId=l,this.marketingAudiencesExclusionsService=d,this.windowService=u,this.javascriptContentInjectorService=h,this.eventsSubject=new p.Subject,this.preloadedContent=new Map,this.cache={},this.EMPTY_PROFILE_ID="0-0-0-0-0"}get router(){return this.injector.get(a.Router)}setBucket(e){this.bucket=e}getBucket(){return this.bucket}injectContent(e){for(const t in e)this.preloadedContent.has(t)||this.preloadedContent.set(t,(0,p.of)(e[t]))}getContentUrl(e,t){return`${this.urlPrefixService.addUrlPrefix(C.contentUrl)}/${this.bucket}/${t}/${e}.json`}fetchContentFromRemote(e,t,n){const i=this.urlPrefixService.addUrlPrefix(C.cmsUrlv5);if(e.indexOf(i.slice(1))>-1)return this.getRequest(e,t);{const i=e+JSON.stringify(C.sortedParams(t));return this.cache[i]&&!n||(this.cache[i]=this.getRequest(e,t).pipe((0,h.publishReplay)(1,C.CACHE_TTL),(0,h.refCount)())),this.cache[i]}}fetchContent(e,t={},n=!1){const i=this.getPersonalizedHeaderIfNeeded(e,t),r=this.getPreviewUserIdHeader();return Object.assign(t,i,r),this.fetchContentFromRemote(e,t,n).pipe((0,h.tap)((e=>this.eventsSubject.next(e))))}getPersonalizedHeaderIfNeeded(e,t){const n={};return this.audiencesValue=this.cookieStorageService.get(C.AUDIENCES_PARAM),this.audienceHashValue=this.cookieStorageService.get(C.AUDIENCE_IDS_PARAM),this.isPersonalizedContentNeeded()&&!this.marketingAudiencesExclusionsService.isUrlExcluded(e,t)&&(this.audienceHashValue?n[C.AUDIENCE_IDS_PARAM]=this.audienceHashValue:n[C.AUDIENCES_PARAM]=this.audiencesValue),n}isPersonalizedContentNeeded(){return(0,i.isPlatformBrowser)(this.platformId)&&(this.audiencesValue||this.audienceHashValue)}getContent(e,t,n){return this.preloadedContent.has(e)?this.preloadedContent.get(e).pipe((0,h.tap)((e=>this.eventsSubject.next(e)))):this.languageService.getLanguage().pipe((0,h.take)(1),(0,h.mergeMap)((i=>this.getRemoteContent(e,i,t,n))),(0,h.tap)((e=>this.eventsSubject.next(e))))}getRemoteContent(e,t,n,i){let r=this.getContentUrl(e,t);return this.fetchContentFromRemote(r,n,i)}getAncestorsBySlug(e,t){const n=this.urlPrefixService.addUrlPrefix(C.cmsUrlv5);return this.languageService.getLanguage().pipe((0,h.take)(1),(0,h.mergeMap)((i=>{const r=`${n}/ancestors/buckets/${this.bucket}/languages/${i}/slugs/${e}`;return this.getRequest(r,t)})))}getContentBySlug(e,t,n,i){let r;return r=this.preloadedContent.has(e)?this.preloadedContent.get(e).pipe((0,h.tap)((e=>this.eventsSubject.next(e)))):this.cmsFeatureFlagService.isSectionEnabled(t,3)?this.languageService.getLanguage().pipe((0,h.take)(1),(0,h.mergeMap)((t=>{const r=`${this.urlPrefixService.addUrlPrefix(C.cmsUrlv5)}/buckets/${this.bucket}/languages/${t}/slugs/${e}`;return this.fetchContent(r,n,i)}))):this.getContent(e,n,i),this.populateAbtStudiesIfRequired(r,e)}getPersonalizedContentBySlug(e){const t=this.getPreviewUserIdHeader();return t[C.ORIGIN_PARAM]=this.windowService.origin(),this.languageService.getLanguage().pipe((0,h.take)(1),(0,h.mergeMap)((n=>{let i=(C.PERSONALIZED_CONTENT+e).replace(C.BUCKET_PLACEHOLDER,this.bucket).replace(C.LANG_PLACEHOLDER,n);return this.previewUserIdValue&&(i=i.replace("<sessionId>",this.EMPTY_PROFILE_ID)),this.getRequest(i,t)})))}getPreviewUserIdHeader(){this.previewUserIdValue=this.cookieStorageService.get(C.PREVIEW_USER_ID_PARAM);let e={};return this.isPreviewUserIdContentNeeded()&&(e[C.PREVIEW_USER_ID_PARAM]=this.previewUserIdValue),e}isPreviewUserIdContentNeeded(){return(0,i.isPlatformBrowser)(this.platformId)&&this.previewUserIdValue}getContentByUriSuffix(e,t,n,i,r){return this.preloadedContent.has(e)?this.preloadedContent.get(e).pipe((0,h.tap)((e=>this.eventsSubject.next(e)))):this.cmsFeatureFlagService.isSectionEnabled(t,3)?this.languageService.getLanguage().pipe((0,h.take)(1),(0,h.mergeMap)((t=>{const o=`${this.urlPrefixService.addUrlPrefix(C.cmsUrlv5)}/buckets/${this.bucket}/languages/${t}/content-types/${n}`+(i?`/page-types/${i}`:"")+`/uri-suffixes/${e}`;return this.fetchContent(o,r)}))):this.getContent(e,r)}getContentByType(e,t,n,i){return this.cmsFeatureFlagService.isSectionEnabled(t,3)?this.languageService.getLanguage().pipe((0,h.take)(1),(0,h.mergeMap)((t=>{const i=`${this.urlPrefixService.addUrlPrefix(C.cmsUrlv5)}/buckets/${this.bucket}/languages/${t}/content-types/${e}`;return this.fetchContent(i,n)}))):this.getContent(i,n)}getContentByUri(e,t){return this.languageService.getLanguage().pipe((0,h.take)(1),(0,h.mergeMap)(this.getContentByUriFunction(e,t)))}getContentByUriFunction(e,t){return this.cmsFeatureFlagService.isSectionEnabled("marketing_page",3)?n=>this.getContentByUriLang(e,n,t):((0,g.dq)(e)&&(e=e.replace("/"+g.Gb+"/","")),n=>this.getRemoteContent(e,n,t).pipe((0,h.tap)((e=>this.eventsSubject.next(e)))))}getContentByUriLang(e,t,n){const i=this.cleanUri(e),r=`${this.urlPrefixService.addUrlPrefix(C.cmsUrlv5)}/buckets/${this.bucket}/languages/${t}`,o={path:i};return this.fetchContent(r,o,n)}cleanUri(e){e=decodeURIComponent(e);const t=this.router.parseUrl(e);return t.fragment=null,t.queryParams={},delete t.root.children.overlay,this.router.serializeUrl(t)}searchHelpContent(e){return this.helpRequest("search",e)}getHelpSuggestions(e){return this.helpRequest("suggestions",e)}helpRequest(e,t){return this.languageService.getLanguage().pipe((0,h.take)(1),(0,h.mergeMap)((n=>{const i=`${this.urlPrefixService.addUrlPrefix(C.cmsUrlv5)}/buckets/${this.bucket}/languages/${n}/help-pages/${e}`;return this.http.get(i,{responseType:"json",params:{searchTerm:t}})})))}get events(){return this.eventsSubject.asObservable()}getRequest(e,t){return(0,p.from)(this.contentFilterService.setVariantCookie()).pipe((0,h.mergeMap)((()=>this.http.get(e,this.requestOptionsBuilder.buildRequestOptions(e,t)))),(0,h.tap)((e=>{if(this.shouldLoadJsFiles()){const t=this.extractEmbeddedJs(e);t.length&&this.javascriptContentInjectorService.loadJsFiles(t)}})))}static sortedParams(e){const t={};return e&&Object.keys(e).sort().forEach((n=>{t[n]=e[n]})),t}populateAbtStudiesIfRequired(e,t){return C.isSportsContent(t)?e.pipe((0,h.tap)((e=>this.impressionHelper.pageView(e,!1)))):e}static isSportsContent(e){return["sports-homepage-carousel","sports-quick-links","horses-quick-links"].indexOf(e)>-1}removeNotTaggedComponents(e,t){return e.fields.items=e.fields.items.filter((e=>C.isTaggedAs(e,t))),e}removeTaggedComponents(e,t){return e.fields.items=e.fields.items.filter((e=>!C.isTaggedAs(e,t))),e}static isTaggedAs(e,t){return e.fields&&e.fields.tags&&e.fields.tags.indexOf(t)>-1}isLiveChatContent(e){return!!(e.liveChat||e.fields&&e.fields.tags&&e.fields.tags.split(",").some((e=>"livechat"===e.toLowerCase())))}isChatBotContent(e){return!!(e.chatBot||e.fields&&e.fields.tags&&e.fields.tags.split(",").some((e=>"chatbot"===e.toLowerCase())))}extractEmbeddedJs(e){const t=e.fields||{};return(t.items||[]).reduce(((e,t)=>[...e,...this.extractEmbeddedJs(t)]),t.add_js_files&&t.add_js_files.files?t.add_js_files.files:[])}shouldLoadJsFiles(){const e=this.cmsFeatureFlagService.isFeatureEnabled(c.u.ALLOW_JS_FILES_IN_CONTENT),t=this.cmsFeatureFlagService.isFeatureEnabled(c.u.DISABLE_JS_FILES_IN_CONTENT);return e&&!t}}C.BUCKET_PLACEHOLDER="{bucket}",C.LANG_PLACEHOLDER="{lang}",C.PERSONALIZED_CONTENT="/services/personalized-content/profile/<sessionId>/bucket/"+C.BUCKET_PLACEHOLDER+"/language/"+C.LANG_PLACEHOLDER+"/slug/",C.FILTER_PARAM="filter",C.AUDIENCES_PARAM="audiences",C.AUDIENCE_IDS_PARAM="audienceIds",C.PREVIEW_USER_ID_PARAM="previewUserId",C.ORIGIN_PARAM="origin",C.contentUrl="/content",C.cmsUrlv5="/content/v5",C.CACHE_TTL=Number.POSITIVE_INFINITY,C.ɵfac=function(e){return new(e||C)(o["ɵɵinject"](r.HttpClient),o["ɵɵinject"](u.T),o["ɵɵinject"](c.u),o["ɵɵinject"](m.y),o["ɵɵinject"](o.Injector),o["ɵɵinject"](v._),o["ɵɵinject"](s.P),o["ɵɵinject"](d.z),o["ɵɵinject"](l.G),o["ɵɵinject"](o.PLATFORM_ID),o["ɵɵinject"](f.s),o["ɵɵinject"](b.u),o["ɵɵinject"](y.C))},C.ɵprov=o["ɵɵdefineInjectable"]({token:C,factory:C.ɵfac})},5700:(e,t,n)=>{"use strict";n.d(t,{C:()=>c});var i=n(81899),r=n(72556),o=n(4309),a=n(42998),s=n(57826);let c=(()=>{class e{constructor(e,t){this.windowService=e,this.loadedScripts=[],this.$pageLoaded=(0,o.combineLatest)([t.getEvents(1),t.getEvents(0)]).pipe((0,a.take)(1),(0,a.delay)(0))}loadJsFiles(e){this.windowService.getIsPlatformBrowser()&&Array.from(new Set(e)).filter((e=>!this.loadedScripts.includes(e))).forEach((e=>{this.loadedScripts.push(e),this.$pageLoaded.subscribe((()=>this.attachScript(e)))}))}attachScript(e){const t=this.windowService.document().createElement("script");t.setAttribute("defer",""),t.setAttribute("src",e),t.onerror=()=>{console.error("Unable to load script: ",e),this.loadedScripts=this.loadedScripts.filter((t=>t!==e))},this.windowService.document().getElementsByTagName("head")[0].appendChild(t)}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.u),s["ɵɵinject"](r.z))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},59789:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var i=n(57826),r=n(6856),o=n(50371);let a=(()=>{class e{constructor(e,t){this.platformId=e,this.global=t,this.exclusions={},(0,r.isPlatformBrowser)(this.platformId)&&(this.exclusions=void 0!==this.global.nativeGlobal.marketingAudiencesExclusions?this.global.nativeGlobal.marketingAudiencesExclusions:{})}isUrlExcluded(e,t){if(t.path)return this.exclusions.path&&this.exclusions.path.some((e=>e===t.path));const n=(e.startsWith("/")?e.substring(1):e).substring(0).split("/");if(n.length>1){const e=n[n.length-2],t=n[n.length-1];return this.exclusions[e]&&this.exclusions[e].some((e=>e===t))}return!1}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](o.w,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},15152:(e,t,n)=>{"use strict";n.d(t,{_:()=>c});var i=n(57826),r=n(23550),o=n(6856),a=n(77247),s=n(16462);let c=(()=>{class e{constructor(e,t){this.platformId=e,this.request=t,this.X_AUDIENCES="X-Audiences",this.X_AUDIENCE_IDS="X-Audience-Ids",this.X_PRESET_FILTER="X-Preset-Filter",this.X_CONTENT_TARGETING_VARIANT="x-content-targeting-variant",this.X_ABTESTINGOPTION="x-abtestingoption",this.X_PREVIEWUSERID="X-Preview-User-Id",this.X_ORIGIN="X-Origin",this.queryParamsAsHeader=[s._.FILTER_PARAM,s._.AUDIENCES_PARAM,s._.AUDIENCE_IDS_PARAM,s._.PREVIEW_USER_ID_PARAM,s._.ORIGIN_PARAM]}buildRequestOptions(e,t){const n=t&&Object.keys(t).some((e=>this.queryParamsAsHeader.includes(e)));return this.generateOptions(e,t,n)}generateOptions(e,t,n){const i={params:new r.HttpParams({fromObject:n?this.removeQueryParams(t):t}),headers:n?this.extractHeadersFromParams(t):new r.HttpHeaders,responseType:"json",withCredentials:this.isRequestForManagedContent(e)};return(0,o.isPlatformServer)(this.platformId)&&(i.headers=this.copyHeadersIfPresent(this.request,i.headers)),i}copyHeadersIfPresent(e,t){let n=t;for(const t of[this.X_CONTENT_TARGETING_VARIANT,this.X_ABTESTINGOPTION])e&&e.headers&&e.headers[t]&&(n=n.set(t,e.headers[t]));return n}isRequestForManagedContent(e){return/\/?content\/v[0-9]+/.test(e)}removeQueryParams(e){const t={};for(const n in e)e.hasOwnProperty(n)&&!this.queryParamsAsHeader.includes(n)&&(t[n]=e[n]);return t}extractHeadersFromParams(e){let t=new r.HttpHeaders;return e[s._.FILTER_PARAM]&&(t=t.append(this.X_PRESET_FILTER,e[s._.FILTER_PARAM])),e[s._.AUDIENCE_IDS_PARAM]?t=t.append(this.X_AUDIENCE_IDS,e[s._.AUDIENCE_IDS_PARAM]):e[s._.AUDIENCES_PARAM]&&(t=t.append(this.X_AUDIENCES,e[s._.AUDIENCES_PARAM])),e[s._.PREVIEW_USER_ID_PARAM]&&(t=t.append(this.X_PREVIEWUSERID,e[s._.PREVIEW_USER_ID_PARAM])),e[s._.ORIGIN_PARAM]&&(t=t.append(this.X_ORIGIN,e[s._.ORIGIN_PARAM])),t}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](a.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},52344:(e,t,n)=>{"use strict";n.d(t,{Bo:()=>o.B,Hk:()=>s.Hk,KI:()=>s.KI,Qh:()=>i.Q,_s:()=>r._,dq:()=>s.dq,gd:()=>s.gd,ge:()=>s.ge,lI:()=>s.lI,vg:()=>s.vg,wg:()=>s.wg,yG:()=>a.y});var i=n(58859),r=n(16462),o=(n(98912),n(90388)),a=n(40123),s=n(10406)},25300:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var i=(()=>(function(e){e.MARKETING_PAGE="marketing_page",e.SLIDESHOW="slideshow",e.SLIDE="slide",e.MENU="custom_menu",e.CONTENT_PAGE="content_page",e.CASINO_GAME_PAGE="casino_game_page",e.CONTENT_BLOCK="content_block",e.SECTION="section",e.FUNCTIONAL="functional"}(i||(i={})),i))()},40476:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var i=(()=>(function(e){e.GRID_LAYOUT="gridlayout",e.TOP_CASINO_CATEGORIES="topCasinoCategories",e.CASINO_CATEGORIES="casinoCategories",e.GAMECARD_SLIDER="gamecardSlider",e.BANNER_WELCOME="bannerWelcome",e.SMALL_BANNERS="smallBanner",e.SMALL_BANNERS_AND_CONTENT_BLOCKS="smallBannersAndContentBlocks",e.GAMES_CAROUSEL="featuredCasinoGames",e.PROMOTIONS_MENU="promotion-home-menu",e.LIGHT_MENU="lightmenu",e.MAIN_FEATURES="mainFeatures",e.FOOTER_MENU="footerMenu",e.SLIDE_CARD="outertext",e.CASINO_GAMES_PER_CATEGORIES="casinogamespercategories",e.SCROLLABLE="scrollable",e.VIRTUALSPORTS="casinoVirtualSports",e.CASINO_SUBCATEGORIES_MENU="casinosubcategoriesmenu",e.LIVE_DEALER_PAGE_TAG="livedealerpage"}(i||(i={})),i))()},54411:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var i=(()=>(function(e){e.ARTICLE="article",e.PROMOTION="promotion",e.HELP="help",e.GENERIC="generic"}(i||(i={})),i))()},42680:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var i=n(57826),r=n(32716),o=n(6856),a=n(90566);function s(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"bx-dynamic-loader-component",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n            "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("component",e.component)("context",e.context)("contextName",e.contextName)}}let c=(()=>{class e{constructor(){this.components=[]}set data(e){this.marketingPageData=e,e&&e.components&&e.components.length?this.components=e.components.map(this.processComponent):this.components=[]}processComponent(e){let t=Object.keys(e.data)[0];return{component:e.component,contextName:t,context:e.data[t]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-marketing-page"]],inputs:{data:"data"},decls:6,vars:2,consts:[[3,"bxPreviewIndicator"],[4,"ngFor","ngForOf"],[3,"component","context","contextName"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,s,5,3,"ng-container",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("bxPreviewIndicator",t.marketingPageData),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",t.components))},directives:[r.Z,o.NgForOf,a.W],encapsulation:2}),e})()},53001:(e,t,n)=>{"use strict";n.d(t,{J:()=>C});var i=n(57826),r=n(6856),o=n(44960),a=n(64762),s=n(70025),c=n(25300),l=n(80112),d=n(27218);let u=class extends s.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t}matcher(e){return e.contentType===c.z.MARKETING_PAGE}createLink(e){return`/${e.slug}`}};u.ɵfac=function(e){return new(e||u)(i["ɵɵinject"](l.z),i["ɵɵinject"](d.X))},u.ɵprov=i["ɵɵdefineInjectable"]({token:u,factory:u.ɵfac}),u=(0,a.__decorate)([(0,s.ST)(),(0,a.__metadata)("design:paramtypes",[l.z,d.X])],u);var p=n(52344),h=n(8566),m=n(17125),g=n(58997);let f=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[m.d,g.G]}),e})();var v=n(56614),b=n(40821),y=n(65353);n(39168);let C=(()=>{class e{static withComponents(t){return{ngModule:e,providers:[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[o.F,u],imports:[[r.CommonModule,p.Qh,h.B,b.o,f,v.F,y.gM.forRoot()]]}),e})()},44960:(e,t,n)=>{"use strict";n.d(t,{F:()=>l});var i=n(63253),r=n(42998),o=n(17125),a=n(52344),s=n(25300),c=n(57826);let l=(()=>{class e{constructor(e,t){this.contentService=e,this.cmsComponentMapperService=t,this.CONTENT_SECTION="marketing_page",this.EMPTY_SPACES_REGEX=/\s/g}processPage(e){const t={title:i(["fields","title"],e),body:i(["fields","body"],e),img:i(["fields","add_image"],e),metadata:null,components:[],draft:"draft"===e.status,h1Enabled:!0};return e.fields&&(t.h1Enabled=!1!==e.fields.h1Enabled,e.fields.tags&&(t.tags=e.fields.tags.replace(this.EMPTY_SPACES_REGEX,"").split(",")),e.fields.metafields&&(t.metadata=e.fields.metafields),e.fields.items&&(e.fields.items.map((t=>t.parent={internal_name:e.fields.internal_name,content_type:e.contentType})),e.fields.items.forEach((e=>{let n=this.cmsComponentMapperService.map(e);n&&t.components.push(n)})))),t}getMarketingPageBySlug(e,t,n){return t=t||this.CONTENT_SECTION,n=n||{},this.contentService.getContentBySlug(e,t,n).pipe((0,r.map)((e=>this.processPage(e))))}getMarketingPageByUriSuffix(e,t,n){return t=t||this.CONTENT_SECTION,this.contentService.getContentByUriSuffix(e,t,s.z.MARKETING_PAGE,null,n).pipe((0,r.map)((e=>this.processPage(e))))}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](a._s),c["ɵɵinject"](o.d))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},41057:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(56914);class r extends i.x{map(e){let t={menuItems:[]};for(let n of e.fields.items){let e={title:n.linkText,url:n.linkUrl};t.menuItems.push(e)}return t}}},27726:(e,t,n)=>{"use strict";n.d(t,{v:()=>u});var i=n(57826),r=n(81899),o=n(6856),a=n(73753),s=n(42680),c=n(42802);function l(e,t){1&e&&(i["ɵɵelementStart"](0,"div",10),i["ɵɵtext"](1,"\n                        "),i["ɵɵelement"](2,"bx-marketing-page-menu-navigation"),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"]())}const d=function(){return{showHeaderMenu:!0}};let u=(()=>{class e{constructor(e,t){this.ngZone=e,this.windowService=t,this.showNavMenu=!0,this.windowService.window().onresize=e=>{this.ngZone.run((()=>{this.sizeDetection()}))}}ngOnInit(){this.sizeDetection()}sizeDetection(){this.windowService.window().innerWidth<=768?this.showNavMenu=!1:this.showNavMenu=!0}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.NgZone),i["ɵɵdirectiveInject"](r.u))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-marketing-page-menu"]],inputs:{data:"data"},decls:35,vars:5,consts:[[1,"max-container","bx-marketing-page-menu-container"],[1,"modal-content","modal-medium"],[1,"bx-marketing-page-wrapper"],["class","bx-marketing-page-menu-nav",4,"ngIf"],[1,"bx-marketing-page-menu-subcontent"],[1,"max-container"],[1,"menu-title"],["routerLink","/",1,"back-btn",3,"queryParams"],[1,"modal-body"],[3,"data"],[1,"bx-marketing-page-menu-nav"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,l,4,0,"div",3),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementStart"](9,"div",4),i["ɵɵtext"](10,"\n                        "),i["ɵɵelementStart"](11,"div",5),i["ɵɵtext"](12,"\n                            "),i["ɵɵelementStart"](13,"h2",6),i["ɵɵtext"](14,"\n                                "),i["ɵɵelementStart"](15,"a",7),i["ɵɵtext"](16,"<"),i["ɵɵelementEnd"](),i["ɵɵtext"](17),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n                        "),i["ɵɵelementStart"](20,"main"),i["ɵɵtext"](21,"\n                            "),i["ɵɵelementStart"](22,"div",5),i["ɵɵtext"](23,"\n                                "),i["ɵɵelementStart"](24,"section",8),i["ɵɵtext"](25,"\n                                    "),i["ɵɵelement"](26,"bx-marketing-page",9),i["ɵɵtext"](27,"\n                                "),i["ɵɵelementEnd"](),i["ɵɵtext"](28,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](29,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](32,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](33,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](34,"\n    ")),2&e&&(i["ɵɵadvance"](7),i["ɵɵproperty"]("ngIf",t.showNavMenu),i["ɵɵadvance"](8),i["ɵɵproperty"]("queryParams",i["ɵɵpureFunction0"](4,d)),i["ɵɵadvance"](2),i["ɵɵtextInterpolate1"]("\n                                ",t.data.title,"\n                            "),i["ɵɵadvance"](9),i["ɵɵproperty"]("data",t.data))},directives:[o.NgIf,a.RouterLinkWithHref,s.n,c.X],styles:[".bx-marketing-page-menu-container[_ngcontent-%COMP%] {\n  margin-top: 48px;\n  padding-bottom: 10px; }\n\n.bx-marketing-page-menu-subcontent[_ngcontent-%COMP%] {\n  display: inline-block;\n  vertical-align: top;\n  margin: 31px auto auto;\n  min-width: 300px;\n  width: 100%; }\n\n.bx-marketing-page-menu-subcontent[_ngcontent-%COMP%]   .menu-title[_ngcontent-%COMP%] {\n    font-size: 20px;\n    color: #fff;\n    margin-bottom: 16px; }\n\n.bx-marketing-page-menu-subcontent[_ngcontent-%COMP%]   .menu-title[_ngcontent-%COMP%]   .back-btn[_ngcontent-%COMP%] {\n      color: gray;\n      padding: 0 16px 0; }\n\n.bx-marketing-page-menu-subcontent[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%] {\n    padding: 20px 0;\n    background: #fff;\n    display: block; }\n\n.bx-marketing-page-menu-nav[_ngcontent-%COMP%] {\n  display: inline-block;\n  vertical-align: top;\n  width: 100%;\n  min-width: 300px;\n  margin-top: 54px; }\n\n@media only screen and (min-width: 769px) {\n  .bx-marketing-page-wrapper[_ngcontent-%COMP%] {\n    display: flex; }\n  .bx-marketing-page-menu-nav[_ngcontent-%COMP%] {\n    width: 33%;\n    flex: 1; }\n  .bx-marketing-page-menu-subcontent[_ngcontent-%COMP%] {\n    flex: 2;\n    width: 66%;\n    margin-left: 1.5em;\n    display: inline-block; }\n    .bx-marketing-page-menu-subcontent[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%] {\n      border: 16px solid #cccccc; }\n    .bx-marketing-page-menu-subcontent[_ngcontent-%COMP%]   .back-btn[_ngcontent-%COMP%] {\n      display: none; } }\n\n@media only screen and (max-width: 769px) {\n  .bx-marketing-page-menu-subcontent[_ngcontent-%COMP%] {\n    margin-top: 12px; }\n    .bx-marketing-page-menu-subcontent[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%] {\n      border-bottom: 16px solid #cccccc; }\n    .bx-marketing-page-menu-subcontent[_ngcontent-%COMP%]   .menu-title[_ngcontent-%COMP%] {\n      font-size: 16px;\n      margin-bottom: 16px; }\n  .bx-marketing-page-menu-container[_ngcontent-%COMP%] {\n    border-top: 2px solid #C50D00; } }"]}),e})()},51029:(e,t,n)=>{"use strict";n.d(t,{F:()=>h});var i=n(6856),r=n(73753),o=n(61556),a=n(84704),s=n(50536),c=n(40821),l=n(3334),d=n(53001),u=n(41057),p=n(57826);let h=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({providers:[l.O,u.L],imports:[[i.CommonModule,d.J,a.a,r.RouterModule.forChild([]),o.d,s.j,c.o]]}),e})()},42802:(e,t,n)=>{"use strict";n.d(t,{X:()=>d});var i=n(3334),r=n(57826),o=n(86014),a=n(6856),s=n(73753);const c=function(){return["active"]};function l(e,t){if(1&e&&(r["ɵɵelementStart"](0,"li",5),r["ɵɵtext"](1),r["ɵɵelement"](2,"i",6),r["ɵɵtext"](3,"\n                      "),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵpropertyInterpolate"]("routerLink",e.url),r["ɵɵproperty"]("routerLinkActive",r["ɵɵpureFunction0"](3,c)),r["ɵɵadvance"](1),r["ɵɵtextInterpolate1"]("\n                        ",e.title,"\n                        ")}}let d=(()=>{class e{constructor(e){this.marketingPageMenuService=e}ngOnInit(){this.marketingPageMenuService.getMenuContent().subscribe((e=>{this.content=e}))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.O))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-marketing-page-menu-navigation"]],decls:21,vars:1,consts:[[1,"marketing-page-menu-container"],[1,"page-title"],[3,"bxTranslate"],[1,"custom-menu","primary"],["role","button",3,"routerLink","routerLinkActive",4,"ngFor","ngForOf"],["role","button",3,"routerLink","routerLinkActive"],[1,"icon","icon-arrow-next"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"div"),r["ɵɵtext"](2,"\n            "),r["ɵɵelementStart"](3,"section"),r["ɵɵtext"](4,"\n                "),r["ɵɵelementStart"](5,"div",0),r["ɵɵtext"](6,"\n                    "),r["ɵɵelementStart"](7,"div",1),r["ɵɵtext"](8,"\n                        "),r["ɵɵelementStart"](9,"span",2),r["ɵɵtext"](10,"tertiaryMenu.pages"),r["ɵɵelementEnd"](),r["ɵɵtext"](11,"\n                    "),r["ɵɵelementEnd"](),r["ɵɵtext"](12,"\n                    "),r["ɵɵelementStart"](13,"ul",3),r["ɵɵtext"](14,"\n                      "),r["ɵɵtemplate"](15,l,4,4,"li",4),r["ɵɵtext"](16,"\n                    "),r["ɵɵelementEnd"](),r["ɵɵtext"](17,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](18,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](19,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](20,"\n    ")),2&e&&(r["ɵɵadvance"](15),r["ɵɵproperty"]("ngForOf",null==t.content?null:t.content.menuItems))},directives:[o.P,a.NgForOf,s.RouterLink,s.RouterLinkActive],styles:[".page-title[_ngcontent-%COMP%] {\n  color: #808080;\n  font-size: 12px;\n  font-weight: 600;\n  margin-bottom: 4px; }"]}),e})()},3334:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(42998),r=n(16462),o=n(57826),a=n(41057);let s=(()=>{class e{constructor(e,t){this.contentService=e,this.marketingPageMenuCmsMapper=t,this.CONTENT_SECTION="marketing_page",this.SLUG="left-nav-menu"}getMenuContent(){return this.contentService.getContentBySlug(this.SLUG,this.CONTENT_SECTION).pipe((0,i.map)((e=>this.marketingPageMenuCmsMapper.map(e))))}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r._),o["ɵɵinject"](a.L))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},23298:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var i=n(3336),r=n(57826);let o=(()=>{class e{constructor(e){this.analyticsService=e}handleClick(t,n,i){return this.updateAbtStudy(n),e.createCustomData("click",t,i,n)}updateAbtStudy(t){const n=e.withFallbackForNonAbtEvent(t);this.analyticsService.updateAbtStudy(n)}contextNotSet(){return this.analyticsService.abtContextNotSet()}static createCustomData(t,n,i,r){const o={behavior:t,name:n,position:i};return e.addAbtStudyParametersToCustomData(o,r),o}static addAbtStudyParametersToCustomData(t,n){const r=e.withFallbackForNonAbtEvent(n);t[i.y.CONTEXT_AB_TEST_NAME]=r.study,t[i.y.CONTEXT_AB_TEST_VARIATION]=r.sample}static withFallbackForNonAbtEvent(e){return e||{study:"-1",sample:"-1"}}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.y))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},43535:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});class i{map(e){if(e){if(e.abtStudy)return e.abtStudy;if(e.tracking&&e.tracking.abtStudy)return e.tracking.abtStudy;if(e.fields&&e.fields.isABTestingEnabled)return{study:e.fields.testTitle,sample:e.fields.version}}}}},30783:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});var i=n(23298),r=n(57826),o=n(43535);let a=(()=>{class e{constructor(e,t){this.abtEventHandler=e,this.abtFieldsMapper=t}updateAbtStudy(e,t=!0){const n=this.abtFieldsMapper.map(e);(t||this.abtEventHandler.contextNotSet())&&this.abtEventHandler.updateAbtStudy(n)}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.m),r["ɵɵinject"](o.u))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},39168:(e,t,n)=>{"use strict";n.d(t,{g:()=>d});var i=n(57826),r=n(23298),o=n(43535),a=n(30783),s=n(31793);class c{findStudySubject(e){if(e){if(e.abtStudy)return e;if(e.tracking&&e.tracking.abtStudy)return e;if(Array.isArray(e))return this.findInArray(e);if("object"==typeof e)if(e.fields){if(e.fields.isABTestingEnabled)return e;if(Array.isArray(e.fields.items))return this.findInArray(e.fields.items);if(Array.isArray(e.fields.new_slide))return this.findInArray(e.fields.new_slide)}else if(Array.isArray(e.components))return this.findInComponents(e.components)}}findInArray(e){for(const t of e){const e=this.findStudySubject(t);if(e)return e}}findInComponents(e){for(const t of e){let e;if(t.data.slide||t.data.bannerWelcomeModel)e=this.findStudySubject(t.data.slide||t.data.bannerWelcomeModel);else if(t.data.data){const n=c.extractPropertyValues(t.data.data);e=this.findStudySubject(n)}if(e)return e}}static extractPropertyValues(e){if(e)return Object.keys(e).map((t=>e[t]))}}var l=n(29967);let d=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.m,o.u,a.G,s.qc,c]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[l.j]]}),e})()},31793:(e,t,n)=>{"use strict";n.d(t,{HE:()=>s,be:()=>a,qc:()=>l});var i=n(82846),r=n(55640),o=n(57826);const a="abt",s="abtb",c={a:"AFFILIATE",raf:"PROFILE"};let l=(()=>{class e{constructor(e,t){this.browserStorageService=e,this.cookieStorageService=t}getSignupFormQueryParams(e=""){let t={};const n=this.getAcquisitionSouceFromCookie(),i=this.browserStorageService.get(a)||"";return e&&(t.countryCode=e),i&&(t.abt=[],JSON.parse(i).forEach((e=>{t.abt.push(e.study+":"+e.sample)}))),n&&(t.acquisitionSource=n),t.countryCode||t.abt||t.acquisitionSource?t:null}parseStudies(e){let t=[];return e&&e.forEach((e=>{let n=e.split(":");t.push({study:n[0],sample:n[1]})})),t}getAcquisitionSouceFromCookie(){const e=/.*rt:(a|raf|o).*/g,t=this.cookieStorageService.get("variant");return t&&t.match(e)?c[e.exec(t)[1]]:""}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.z),o["ɵɵinject"](i.G))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},65353:(e,t,n)=>{"use strict";n.d(t,{GG:()=>a.G,gM:()=>o.g,mz:()=>i.m,u1:()=>r.u});var i=n(23298),r=n(43535),o=n(39168),a=(n(31793),n(30783))},96741:(e,t,n)=>{"use strict";n.d(t,{i:()=>c});var i=n(57826),r=n(6856),o=n(77247),a=n(81899),s=n(45965);let c=(()=>{class e{constructor(e,t,n,i,r){this.windowService=e,this.siteConfigService=t,this.doc=n,this.request=i,this.platformId=r,this.CANONICAL_DOMAIN_PROP="canonicalDomain"}createAMPLink(e,t,n,i){let r=this.doc.createElement("link");r.setAttribute("rel","amphtml"),e?r.setAttribute("href",this.getUrlForCanonicalTag(e)+"/amp"):r.setAttribute("href",this.getUrlForSuffix(t,n,i)+"/amp"),this.doc.head.appendChild(r)}removeAMPLink(){this.doc.head.removeChild(this.doc.head.querySelector('link[rel="amphtml"]'))}getUrlForCanonicalTag(e){if(e.match("https?:.+"))return e;let t=this.getCanonicalDomain();return e.startsWith("/")?`https://${t}${e}`:`https://${t}/${e}`}getUrlForSuffix(e,t,n){let i=this.getCanonicalDomain();return t!==n?`https://${i}/${t}/articles/${e}`:`https://${i}/articles/${e}`}getCanonicalDomain(){return this.siteConfigService.getSiteConfigProp(this.CANONICAL_DOMAIN_PROP)||this.getDomain()}getDomain(){return this.getIsPlatformBrowser()?this.windowService.getHostname():this.request.headers["x-requested-domain"]}getIsPlatformBrowser(){return(0,r.isPlatformBrowser)(this.platformId)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](a.u),i["ɵɵinject"](s.r),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](o.Z,8),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},75330:(e,t,n)=>{"use strict";function i(e,t,n){return(i,r,o)=>{let a=o.value;return o.value=function(){let i=n.apply(this,arguments);return this.analyticsService.sendEvent("click",e,t,i),a.apply(this,arguments)},o}}function r(e,t=!1,n){return(i,r,o)=>{let a=o.value;return o.value=function(){return e=this.wtEventName?this.wtEventName:e,this.analyticsService.trackComponentLoad(e,t,n),a.apply(this,arguments)},o}}n.d(t,{ob:()=>i,uh:()=>r})},36575:(e,t,n)=>{"use strict";n.d(t,{I:()=>S});var i=n(3336),r=n(50543),o=n(57597),a=n(11198),s=n(86333),c=n(91691),l=n(94410),d=n(19765),u=n(57826);let p=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({providers:[d.m]}),e})();var h=n(77624);let m=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({providers:[h.F]}),e})();var g=n(55298),f=n(56405),v=n(33564),b=n(81768),y=n(86958),C=n(56730);let S=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.y,r.O,o.W,g.M,f.m,v.e,b.V,y.P,C.Z]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({imports:[[a.$,s.M,c.C,l.n,p,m]]}),e})()},3336:(e,t,n)=>{"use strict";n.d(t,{y:()=>C});var i=n(57826),r=n(73753),o=n(4309),a=n(42998),s=n(31793),c=n(81516),l=n(55640),d=n(82846),u=n(81899),p=n(33087),h=n(19765),m=n(84860),g=n(45965),f=n(35294),v=n(50543),b=n(42497);class y{constructor(e,t,n,i,r){this.eventName=e,this.prependSiteName=t,this.customData=n,this.creationTimestamp=i,this.contextSnapshot=r}}class C{constructor(e,t,n,i,r,a,s,c,l,d,u){this.browserStorageService=e,this.siteConfigService=t,this.languageService=n,this.windowService=i,this.injector=r,this.pixelTrackingService=a,this.firstTimeVisitorService=s,this.appStateStore=c,this.cookieStorageService=l,this.pageNavigationService=d,this.errorInterceptor=u,this.context={},this.scriptLoaded$=new o.AsyncSubject,this.fetchingAccountNumber$=new o.Subject,this.customDataKeys=[],this.monitoringEvents=new Map,this.startingTimes=new Map,this.comesFromOverlay=new Map,this.delayedTracks=new Map,this.delayedEventsTracks=new Map,this.delayedCustomData$=new o.BehaviorSubject({}),this.urlsToBeSkipped=["overlay="]}static defaultCustomParameters(){const e={};return e[C.PAGE_TYPE_KEY]="virtual",e[C.FULL_PAGE_LOAD_TIME_KEY]="-1",e[C.DNS_RESOLUTION_TIME_KEY]="-1",e}get wtRef(){return this.windowService.window().wts}init(e){this.router=this.injector.get(r.Router),this.route=this.injector.get(r.ActivatedRoute);let t=this.siteConfigService.getSiteConfigProp("brandCode");this.monitoringUrls=e||new Map,this.windowInstance=this.windowService.window(),this.context={site_name:t,territory:this.siteConfigService.getSiteConfigProp("territory"),page_language:"",site_id:t,customerId:"false",country:this.siteConfigService.getSiteConfigProp("countryCode")||"false",contentId:"",pageLoginStatus:""},this.monitorHttpResponseErrors(),this.updateAbtStudy(),this.extractEventsToDelay(e),this.languageService.getLanguage().subscribe((e=>{this.context.page_language=e})),this.router.events.pipe((0,a.filter)((e=>e instanceof r.NavigationEnd))).subscribe((e=>{if(this.pixelTrackingService.sendAllPagesPixelEvent(),C.filterOverlayNavigationEvent(e.url)||this.checkUrlToBeSkipped(e.url))return;let t=this.retrieveTrackingUrl();if(this.windowInstance["process-fpl"])this.trackingInfoFPL=this.getEventNameFromUrl(e.url,t),delete this.windowInstance["process-fpl"];else{if(this.monitoringUrls.has(e.url)&&!this.comesFromOverlay.has(e.url)){let n;n=this.monitoringUrls.get(e.url).includes("form_view")?this.monitoringUrls.get(e.url):this.getEventNameFromUrl(e.url,t),this.delayedTracks.set(e.url,new y(n,!0,C.RESET_CUSTOM_PARAMETERS,Date.now(),{...this.context}))}else if(!this.comesFromFakeLiveDealerOverlay(e.url)){const t=this.getEventName(e.url);this.lastNavigationEventName=t,this.sendPageUpdateEvent(t,!0,C.RESET_CUSTOM_PARAMETERS)}this.comesFromOverlay.delete(e.url)}})),this.router.events.pipe((0,a.filter)((e=>e instanceof r.NavigationStart))).subscribe((e=>{if(this.monitoringUrls.has(e.url)){const t=this.monitoringUrls.get(e.url);this.setStartNavigationVariables(e.url,t)}}))}getEventNameFromUrl(e,t){return"/"===e||e.startsWith("/?")?e.replace("/","home"):(t||e).replace(/\//g,":")}getEventName(e){let t=this.getEventNameFromUrl(e,this.retrieveTrackingUrl()),n=C.URL_EXCLUSIONS.filter((t=>e.match(t.urlRegExp)));return 0!=n.length?n[0].eventName:t}setStartNavigationVariables(e,t){this.isPreviousOverlay()&&this.comesFromOverlay.set(e,this.isPreviousOverlay()),this.startingTimes.has(t)||this.isPreviousOverlay()||(this.startingTimes.set(t,Date.now()),this.pageNavigationService.trackStart(t))}setNavigationData(){let e={};null!=this.windowInstance["dns-resolution"]&&(e.page_type=this.windowInstance["page-type"],e.full_page_load_time=String(this.windowInstance.full_page_load),e.dns_resolution_time=this.windowInstance["dns-resolution"],delete this.windowInstance["dns-resolution"],delete this.windowInstance.page_type,delete this.windowInstance.full_page_load),this.sendPageUpdateEvent(this.trackingInfoFPL,!0,e),this.trackingInfoFPL=void 0}setNavigationDataV2(e,t,n){let i={};void 0!==e&&(i[C.PAGE_TYPE_KEY]=t,i[C.FULL_PAGE_LOAD_TIME_KEY]=n,i[C.DNS_RESOLUTION_TIME_KEY]=e),this.sendPageUpdateEvent(this.trackingInfoFPL,!0,i),this.trackingInfoFPL=void 0}getInitialTime(e){let t=this.startingTimes.get(e);return this.startingTimes.delete(e),t}trackCardClick(e,t,n){this.siteConfigService.isFeaturePresent(m.L.cardTrackEnabled)&&this.sendEvent("click",e,t,n)}trackNotificationEvent(e,t){this.siteConfigService.getSiteConfigProp("notificationAnalyticsEnabled")&&this.sendClickEvent(`notification:${e}`,!0,{33:JSON.stringify({notification_id:t,action:e,origin:this.context.contentId})})}sendEvent(e,t,n,i,r){"click"===e?this.sendClickEvent(t,n,i,r):"pageUpdate"===e&&(this.monitoringEvents.has(t)?this.delayedEventsTracks.set(t,new y(t,n,i,Date.now())):this.sendPageUpdateEvent(t,n,{...C.RESET_CUSTOM_PARAMETERS,...i}))}processAndSendEvent(e,t,n){if(this.trackingInfoFPL&&this.trackingInfoFPL===e)this.startingTimes.delete(e),this.delayedTracks.forEach(((t,n)=>{t.eventName===e&&this.delayedTracks.delete(n)}));else{let i,r="";this.delayedTracks.forEach(((t,n)=>{t.eventName===e&&(i=t,r=n)})),this.delayedEventsTracks.has(e)&&(i=this.delayedEventsTracks.get(e),r=e),i?(this.sendPageUpdateEvent(i.eventName,i.prependSiteName,{...i.customData,...n}),this.delayedTracks.delete(r),this.delayedEventsTracks.delete(r)):(this.pageNavigationService.sendEvent(e),this.shouldSendNotification(e)&&this.sendPageUpdateEvent(e,t,n))}}updateProfileInfo(e,t){this.context.customerId=e||"false",this.context.country=t||this.siteConfigService.getSiteConfigProp("countryCode")||"false","false"!==this.context.customerId&&"false"!==this.context.country&&this.fetchingAccountNumber$.next(void 0)}appendTrackingScript(){this.windowService.document().getElementById("wtInjection")&&(this.scriptLoaded$.next({}),this.scriptLoaded$.complete())}trackComponentLoad(e,t=!1,n){if(!this.checkUrlToBeSkipped(e)){if(this.lastNavigationEventName!==e){let i={page_type:"virtual",full_page_load_time:(Math.floor(Date.now())-this.getInitialTime(e)).toString()};this.processAndSendEvent(e,t,{...i,...n})}this.lastNavigationEventName=void 0}}getPageLoginStatus(){return this.browserStorageService.get("sessionId")?"logged":this.cookieStorageService.get("JOINED")?"loggedout":"notlogged"}retrieveTrackingUrl(){let e=this.route.snapshot,t=null;e.data.trackingUrl&&(t=e.data.trackingUrl);let n=this.route.firstChild;if(null!=n)for(;null!=n;)e=n.snapshot,n=n.firstChild,e.data.trackingUrl&&(t=e.data.trackingUrl);return t}processContextAudiences(e,t){let n={behaviour:"view",audiences:JSON.parse(this.context[C.CONTEXT_AUDIENCE_NAME]).map((e=>({audienceName:e.substring(e.indexOf("-")+1),audienceCode:e.substring(0,e.indexOf("-"))})))};this.sendAudiences(e,t,n),this.resetAudienceInContext()}sendAudiences(e,t,n){n&&null!==n.audiences&&void 0!==n.audiences&&n.audiences.length>0&&n.audiences.forEach((i=>{let r={33:JSON.stringify({behaviour:n.behaviour,parentInternalName:n.parentInternalName,parentType:n.parentType,audiences:[i]})};this.wtRef.push(["send","click",{linkId:(t?this.context.site_name+":":"")+e,customClickParameter:r}])}))}static isCriticalParameter(e){return C.CRITICAL_PARAMS.includes(e)}sendEventContext(){Object.keys(this.context).filter((e=>C.isCriticalParameter(e))).forEach((e=>{this.wtRef.push([e,this.context[e]])})),this.overrideWebtrekkTrackDomain()}isPreviousOverlay(){return this.windowInstance.location.href.includes("overlay=")}static isFullPageLoadEvent(e){return"page"===e.page_type}sendPageUpdateEvent(e,t,n){setTimeout((()=>this.scriptLoaded$.pipe((0,a.take)(1)).subscribe((()=>{this.cleanPreviousCustomData();const i=n?JSON.parse(JSON.stringify(n)):n;this.context.contentId=this.generateContentId(e,t),this.browserStorageService.get("sessionId")&&"false"===this.context.customerId?this.fetchingAccountNumber$.pipe((0,a.take)(1)).subscribe((()=>{this.pixelTrackingService.sendPixelTrackingEvents(e,n,this.context.customerId),this.performWtPageUpdate(e,t,i)})):(this.unsetCustomerIdIfNoLoggedInUser(),this.setPageLoginStatus(),this.pixelTrackingService.sendPixelTrackingEvents(e,n,this.context.customerId),this.performWtPageUpdate(e,t,i),this.cleanDelayedCustomData()),this.resetAudienceInContext(),this.resetAbtStudyInContext()}))),0)}isAudienceAvailableInContext(){return this.isPropertyAvailableInContext("audience")}isABTestingProcessingAvailable(){return this.isPropertyAvailableInContext(C.CONTEXT_AB_TEST_NAME)||this.isPropertyAvailableInContext(C.CONTEXT_AB_TEST_VARIATION)}performWtPageUpdate(e,t,n){this.isAudienceAvailableInContext()&&this.processContextAudiences(e,t),this.isABTestingProcessingAvailable()&&this.processABTest(e,t),this.processPerformanceMetrics(e,t,n),C.isFullPageLoadEvent(n)||(this.sendEventContext(),this.wtRef.push(["send","pageupdate"]))}processABTest(e,t){const n={33:JSON.stringify({behaviour:"view",[C.CONTEXT_AB_TEST_NAME]:this.isPropertyAvailableInContext(C.CONTEXT_AB_TEST_NAME)?this.context[C.CONTEXT_AB_TEST_NAME]:"",[C.CONTEXT_AB_TEST_VARIATION]:this.isPropertyAvailableInContext(C.CONTEXT_AB_TEST_VARIATION)?this.context[C.CONTEXT_AB_TEST_VARIATION]:""})};this.sendABTest(e,t,n),this.resetAbtStudyInContext()}isPropertyAvailableInContext(e){return null!==this.context[e]&&void 0!==this.context[e]&&""!==this.context[e]&&"-1"!==this.context[e]}sendABTest(e,t,n){this.wtRef.push(["send","click",{linkId:(t?this.context.site_name+":":"")+e,customClickParameter:n}])}sendClickEvent(e,t,n,i){this.scriptLoaded$.subscribe((()=>{this.cleanPreviousCustomData(),i&&i.contentId&&(this.context.contentId=this.generateContentId(e,t,i.contentId)),this.browserStorageService.get("sessionId")&&"false"===this.context.customerId?this.fetchingAccountNumber$.pipe((0,a.take)(1)).subscribe((()=>{this.sendWebtrekkEvent(e,t,n),this.pixelTrackingService.sendPixelTrackingEvents(e,n,this.context.customerId)})):(this.unsetCustomerIdIfNoLoggedInUser(),this.sendWebtrekkEvent(e,t,n),this.pixelTrackingService.sendPixelTrackingEvents(e,n,this.context.customerId))}))}sendWebtrekkEvent(e,t,n){if(C.isDisplayEvent(e)){let i=JSON.parse(n[33]);this.sendAudiences(e,t,i),delete i.audiences,n={33:JSON.stringify(i)}}else this.isAudienceAvailableInContext()&&this.processContextAudiences(e,t);this.isABTestingProcessingAvailable()&&this.processABTest(e,t),this.sendEventContext(),this.wtRef.push(["send","click",{linkId:(t?this.context.site_name+":":"")+e,customClickParameter:n}])}monitorHttpResponseErrors(){this.scriptLoaded$.pipe((0,a.take)(1)).subscribe((()=>{this.errorInterceptor.httpErrors().subscribe((e=>{if(e.response.status&&(this.cleanPreviousCustomData(),this.sendEventContext(),this.siteConfigService.getSiteConfigProp("responseErrorEventAnalyticsEnabled"))){const t=this.buildWebtrekkHttpError(e);this.wtRef.push(t)}}))}))}buildWebtrekkHttpError(e){return["send","sendinfo",{linkId:"response_error",customClickParameter:{33:JSON.stringify({errortype:this.ensureCorrectWebtrekkFormatField(e.response.status.toString()),errorsubtype:this.ensureCorrectWebtrekkFormatField(b.o.getErrorInfo(e)),lasturlserved:this.ensureCorrectWebtrekkFormatField(e.response.url)})}}]}ensureCorrectWebtrekkFormatField(e){return e?e.substr(0,255).replace(/;/g,""):""}generateContentId(e,t,n){return(t?this.context.site_name+(e&&":"===e[0]?"":":"):"")+(n||this.filter(e))}filter(e){let t=this.transformParenthesis(e).replace("overlay:","overlay="),n=this.extractLastOverlay(t);return t.includes("deposit-details:")?t=this.removeDepositId(e):-1!==t.indexOf("?")&&(t=this.removerQueryParams(t)),":"!==t&&""!==t||(t+="home"),t.match(/:?home$/)&&(t+=":"+this.getUserStatus()),n?t+"?"+n:t}getUserStatus(){return this.firstTimeVisitorService.isFirstTime?"ftv":this.appStateStore.loginState?"logged":"unlogged"}transformParenthesis(e){for(;e&&-1!==e.indexOf("(");)e=e.substring(0,e.indexOf("("))+"?"+e.substring(e.indexOf("(")+1,e.indexOf(")"))+e.substring(e.indexOf(")")+1);return e||""}removeDepositId(e){return e.substring(0,e.indexOf("deposit-details:")+15)}removerQueryParams(e){return this.removeExtraParams(e,["?"])}extractLastOverlay(e){if(-1!==e.lastIndexOf("overlay=")){let t=e.substring(e.lastIndexOf("overlay="));return t=this.removeExtraParams(t,["&","/",":","%","#"]),t}return""}removeExtraParams(e,t){return t.forEach((t=>{e=-1!==e.indexOf(t)?e.substr(0,e.indexOf(t)):e})),e}cleanPreviousCustomData(){this.customDataKeys.forEach((e=>{this.wtRef.push([e,"false"])})),this.customDataKeys=[]}cleanDelayedCustomData(){this.delayedCustomData$.next({})}unsetCustomerIdIfNoLoggedInUser(){this.browserStorageService.get("sessionId")||"false"===this.context.customerId||(this.context.customerId="false")}setPageLoginStatus(){this.context.pageLoginStatus=this.getPageLoginStatus()}extractEventsToDelay(e){e&&e.forEach(((e,t)=>{this.monitoringEvents.has(e)?this.monitoringEvents.get(e).push(t):this.monitoringEvents.set(e,[t])}))}static filterOverlayNavigationEvent(e){return 2===(e.match(/overlay/g)||[]).length}registerUrlPatternToBeSkipped(e){this.urlsToBeSkipped.push(e)}unRegisterUrlPatternToBeSkipped(e){const t=this.urlsToBeSkipped.indexOf(e);-1!==t&&this.urlsToBeSkipped.splice(t,1)}checkUrlToBeSkipped(e){return this.urlsToBeSkipped.find((function(t){return e.search(t)>=0}))}updateAbtStudy(e){const t=e||this.fallbackToLocalStorage();t&&(this.context[C.CONTEXT_AB_TEST_NAME]=t.study,this.context[C.CONTEXT_AB_TEST_VARIATION]=t.sample)}updateAudience(e){this.context[C.CONTEXT_AUDIENCE_NAME]=JSON.stringify(e)}resetAbtStudyInContext(){delete this.context[C.CONTEXT_AB_TEST_NAME],delete this.context[C.CONTEXT_AB_TEST_VARIATION]}resetAudienceInContext(){delete this.context[C.CONTEXT_AUDIENCE_NAME]}fallbackToLocalStorage(){const e=this.browserStorageService.get(s.be);return e&&JSON.parse(e)[0]}abtContextNotSet(){const e=this.context[C.CONTEXT_AB_TEST_NAME],t=this.context[C.CONTEXT_AB_TEST_VARIATION];return!("-1"!==e&&"string"==typeof e||"-1"!==t&&"string"==typeof t)}overrideWebtrekkTrackDomain(){this.siteConfigService.getSiteConfigProp("trackDomain")&&!this.windowInstance.wt_dynDomain&&(this.windowInstance.wt_dynDomain=()=>{this.wtRef.push(["trackDomain",this.siteConfigService.getSiteConfigProp("trackDomain")])},this.wtRef.push(["wt_dynDomain"]))}shouldSendNotification(e){if(this.eventNameRefersToASinglePage(e)){const t=e.substring(1);if(this.windowService.locationUrl){const e=this.windowService.locationUrl.split("/");return 2===e.length&&e[1]===t}return!1}return!0}eventNameRefersToASinglePage(e){return e.startsWith(":")&&2===e.split(":").length}comesFromFakeLiveDealerOverlay(e){return"/live-dealer"===e&&this.comesFromOverlay.has(e)}static isVirtualPageLoadEvent(e){return"virtual"===e.page_type}processPerformanceMetrics(e,t,n){const i=C.extractPerformanceMetrics(n);if(C.arePerformanceMetricsAvailable(i)&&C.isPerformanceTrackedForEvent(e,n)){const r=this.context.site_name;let o=C.generatePerformanceMetricName(e,t,r);this.wtRef.push(["send","click",{linkId:o,customClickParameter:{33:JSON.stringify(i)}}]),C.clearPerformanceMetrics(n)}}static extractPerformanceMetrics(e){const t={behaviour:"view"},n=e[C.FULL_PAGE_LOAD_TIME_KEY],i=e[C.DNS_RESOLUTION_TIME_KEY];return n&&(t[C.FULL_PAGE_LOAD_TIME_KEY]=n),i&&(t[C.DNS_RESOLUTION_TIME_KEY]=i),t}static clearPerformanceMetrics(e){delete e[C.FULL_PAGE_LOAD_TIME_KEY],delete e[C.DNS_RESOLUTION_TIME_KEY]}static arePerformanceMetricsAvailable(e){const t=[C.FULL_PAGE_LOAD_TIME_KEY,C.DNS_RESOLUTION_TIME_KEY];return Object.keys(e).filter((e=>t.includes(e))).map((t=>e[t])).filter((e=>e&&"-1"!==e)).length>0}static generatePerformanceMetricName(e,t,n=""){let i;switch(e){case C.CASHIER_DEPOSIT_EVENT_NAME:i="cashier_load_time";break;case C.SPORTS_LANDING_PAGE_EVENT_NAME:i="sports_load_time";break;default:i="generic_load_time"}return t&&n?`${n}:${i}`:i}static isDisplayEvent(e){return e&&e.includes(":display")}static isPerformanceTrackedForEvent(e,t){return e===this.SPORTS_LANDING_PAGE_EVENT_NAME&&C.isFullPageLoadEvent(t)||e===this.CASHIER_DEPOSIT_EVENT_NAME&&C.isVirtualPageLoadEvent(t)}}C.PAGE_TYPE_KEY="page_type",C.FULL_PAGE_LOAD_TIME_KEY="full_page_load_time",C.DNS_RESOLUTION_TIME_KEY="dns_resolution_time",C.RESET_CUSTOM_PARAMETERS=C.defaultCustomParameters(),C.CASINO_LOGIN_OVERLAY=/.*casino\?.*overlay=login$/,C.URL_EXCLUSIONS=[{urlRegExp:C.CASINO_LOGIN_OVERLAY,eventName:"casino(overlay=login)"}],C.CONTEXT_AUDIENCE_NAME="audience",C.CONTEXT_AB_TEST_NAME="ab_test_name",C.CONTEXT_AB_TEST_VARIATION="ab_test_variation",C.SPORTS_LANDING_PAGE_EVENT_NAME=":sports",C.CASHIER_DEPOSIT_EVENT_NAME="cashier:deposit",C.CRITICAL_PARAMS=["contentId","customerId","pageLoginStatus","territory","site_name","page_language"],C.ɵfac=function(e){return new(e||C)(i["ɵɵinject"](l.z),i["ɵɵinject"](g.r),i["ɵɵinject"](p.TS),i["ɵɵinject"](u.u),i["ɵɵinject"](i.Injector),i["ɵɵinject"](v.O),i["ɵɵinject"](c.HV),i["ɵɵinject"](f.X),i["ɵɵinject"](d.G),i["ɵɵinject"](h.m),i["ɵɵinject"](b.a))},C.ɵprov=i["ɵɵdefineInjectable"]({token:C,factory:C.ɵfac})},55298:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var i=n(3336),r=n(65353),o=n(56405),a=n(57826);let s=(()=>{class e{constructor(e,t,n){this.analyticsService=e,this.abtEventHandler=t,this.marketingAudienceHandler=n}handleClick(e,t,n,i,r={}){let o={};r.abtStudy&&Object.assign(o,this.abtEventHandler.handleClick(n,r.abtStudy,i)),r.audiences&&Object.assign(o,this.marketingAudienceHandler.handleClick(n,r.audiences,i)),o&&this.analyticsService.sendEvent("click",e,t,this.getCustomData(o,r))}getCustomData(e,t){return t.componentInternalName&&Object.assign(e,{componentInternalName:t.componentInternalName}),t.componentType&&Object.assign(e,{componentType:t.componentType}),t.parentInternalName&&Object.assign(e,{parentInternalName:t.parentInternalName}),t.parentType&&Object.assign(e,{parentType:t.parentType}),{33:JSON.stringify(e)}}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.y),a["ɵɵinject"](r.mz),a["ɵɵinject"](o.m))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},86958:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var i=n(65353),r=n(56730),o=n(57826),a=n(81768);let s=(()=>{class e{constructor(e,t,n){this.abtImpressionHelper=e,this.marketingImpressionHelper=t,this.marketingAudiencesMapper=n}pageView(e,t=!0){const n=this.findSubject(e);Object.keys(n.abt).length&&this.abtImpressionHelper.updateAbtStudy(n.abt,t),n.audiences.length&&this.marketingImpressionHelper.marketingAudienceImpression(n.audiences)}findSubject(e){let t={abt:{},audiences:[]};return e&&((e.abtStudy||e.tracking&&e.tracking.abtStudy)&&(t.abt=e),e.marketingAudiences&&e.marketingAudiences.length?t.audiences=[...t.audiences,...this.marketingAudiencesMapper.mapMarketingAudiences(e.marketingAudiences)]:e.tracking&&e.tracking.audiences&&e.tracking.audiences.length&&(t.audiences=[...t.audiences,...e.tracking.audiences]),Array.isArray(e)&&(t=this.findSubjectRecursively(t,e,"array")),"object"==typeof e&&(e.fields?(e.fields.isABTestingEnabled&&(t.abt=e),e.fields.marketingAudiences&&e.fields.marketingAudiences.length&&(t.audiences=[...t.audiences,...this.marketingAudiencesMapper.mapMarketingAudiences(e.fields.marketingAudiences)]),Array.isArray(e.fields.items)?t=this.findSubjectRecursively(t,e.fields.items,"array"):Array.isArray(e.fields.new_slide)&&(t=this.findSubjectRecursively(t,e.fields.new_slide,"array"))):e.audienceId&&e.code&&e.name?t.audiences=[...t.audiences,...this.marketingAudiencesMapper.mapMarketingAudiences(Array.of(e))]:Array.isArray(e.components)&&(t=this.findSubjectRecursively(t,e.components,"components")))),t}findInArray(e){let t={abt:{},audiences:[]};for(const n of e){const e=this.findSubject(n);Object.keys(e.abt).length&&!Object.keys(t.abt).length&&(t.abt=e.abt),e.audiences.length&&(t.audiences=[...t.audiences,...e.audiences])}return t}findInComponents(t){let n,i={abt:{},audiences:[]};for(const r of t){if(r.data.slide||r.data.bannerWelcomeModel||r.data.gamecardSlider)n=this.findSubject(r.data.slide||r.data.bannerWelcomeModel||r.data.gamecardSlider);else if(r.data.data){const t=e.extractPropertyValues(r.data.data);n=this.findSubject(t)}n&&(!Object.keys(i.abt).length&&Object.keys(n.abt).length&&(i.abt=n.abt),n.audiences&&n.audiences.length&&(i.audiences=[...i.audiences,...n.audiences]))}return i}findSubjectRecursively(e,t,n){let i="array"===n?this.findInArray(t):this.findInComponents(t);return!Object.keys(e.abt).length&&Object.keys(i.abt).length&&(e.abt=i.abt),i.audiences&&i.audiences.length&&(e.audiences=i.audiences),e}static extractPropertyValues(e){if(e)return Object.keys(e).map((t=>e[t]))}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.GG),o["ɵɵinject"](r.Z),o["ɵɵinject"](a.V))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},56405:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var i=n(57826);let r=(()=>{class e{handleClick(e,t,n){return this.createCustomData("click",e,t,n)}createCustomData(e,t,n,i){return{behavior:e,name:t,position:i,audiences:n}}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},56730:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3336),r=n(57826),o=n(81768);let a=(()=>{class e{constructor(e,t){this.analyticsService=e,this.marketingAudienceMapper=t}marketingAudienceImpression(e){this.analyticsService.updateAudience(this.marketingAudienceMapper.mapAnalytic(e))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.y),r["ɵɵinject"](o.V))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},81768:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});class i{map(e){if(e&&e.fields&&e.fields.marketingAudiences)return this.mapMarketingAudiences(e.fields.marketingAudiences)}mapAnalytic(e){let t=[];return e.forEach((e=>{const n=e.audienceCode+"-"+e.audienceName;t.push(n)})),Array.from(new Set(t))}mapMarketingAudiences(e){let t=[];return e.map((e=>{let n={audienceName:e.name,audienceCode:e.code};t.push(n)})),t}}},50543:(e,t,n)=>{"use strict";n.d(t,{O:()=>u});var i=n(45965),r=n(82846),o=n(55640),a=n(79308),s=n(81899);class c{}c.WT_SUCCESS_DEPOSIT="payments:deposit:success_pageview",c.WT_FORM_JOIN="registration:form_view",c.WT_FTD_DEPOSIT_SUCCESS="payments:deposit:success_pageview:ftd",c.WT_JOIN_SUCCESS="registration:success_pageview",c.WT_DEPOSIT_START="payments:deposit:form_view",c.WT_NO_FTD_DEPOSIT_SUCCESS="payments:deposit:success_pageview:no_ftd",c.PX_JOIN_START="joinStart",c.PX_JOIN_SUCCESS="joinSuccess",c.PX_FTD_DEPOSIT_START="ftdStart",c.PX_FTD_DEPOSIT_SUCCESS="ftdSuccess",c.PX_REPEAT_DEPOSIT="repeatedDeposit",c.PX_ALL_PAGES="allPages",c.webTrekk2pixelTrackingEvents=new Map([[c.WT_FORM_JOIN,c.PX_JOIN_START],[c.WT_JOIN_SUCCESS,c.PX_JOIN_SUCCESS],[c.WT_DEPOSIT_START,c.PX_FTD_DEPOSIT_START],[c.WT_FTD_DEPOSIT_SUCCESS,c.PX_FTD_DEPOSIT_SUCCESS],[c.WT_NO_FTD_DEPOSIT_SUCCESS,c.PX_REPEAT_DEPOSIT]]);var l=function(){function e(){}return e.AddUnsigned=function(e,t){var n,i,r,o,a;return r=2147483648&e,o=2147483648&t,a=(1073741823&e)+(1073741823&t),(n=1073741824&e)&(i=1073741824&t)?2147483648^a^r^o:n|i?1073741824&a?3221225472^a^r^o:1073741824^a^r^o:a^r^o},e.FF=function(e,t,n,i,r,o,a){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.F(t,n,i),r),a)),this.AddUnsigned(this.RotateLeft(e,o),t)},e.GG=function(e,t,n,i,r,o,a){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.G(t,n,i),r),a)),this.AddUnsigned(this.RotateLeft(e,o),t)},e.HH=function(e,t,n,i,r,o,a){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.H(t,n,i),r),a)),this.AddUnsigned(this.RotateLeft(e,o),t)},e.II=function(e,t,n,i,r,o,a){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.I(t,n,i),r),a)),this.AddUnsigned(this.RotateLeft(e,o),t)},e.ConvertToWordArray=function(e){for(var t,n=e.length,i=n+8,r=16*((i-i%64)/64+1),o=Array(r-1),a=0,s=0;s<n;)a=s%4*8,o[t=(s-s%4)/4]=o[t]|e.charCodeAt(s)<<a,s++;return a=s%4*8,o[t=(s-s%4)/4]=o[t]|128<<a,o[r-2]=n<<3,o[r-1]=n>>>29,o},e.WordToHex=function(e){var t,n="",i="";for(t=0;t<=3;t++)n+=(i="0"+(e>>>8*t&255).toString(16)).substr(i.length-2,2);return n},e.Utf8Encode=function(e){var t,n="";e=e.replace(/\r\n/g,"\n");for(var i=0;i<e.length;i++)(t=e.charCodeAt(i))<128?n+=String.fromCharCode(t):t>127&&t<2048?(n+=String.fromCharCode(t>>6|192),n+=String.fromCharCode(63&t|128)):(n+=String.fromCharCode(t>>12|224),n+=String.fromCharCode(t>>6&63|128),n+=String.fromCharCode(63&t|128));return n},e.init=function(e){for("string"!=typeof e&&(e=JSON.stringify(e)),this._string=this.Utf8Encode(e),this.x=this.ConvertToWordArray(this._string),this.a=1732584193,this.b=4023233417,this.c=2562383102,this.d=271733878,this.k=0;this.k<this.x.length;this.k+=16)this.AA=this.a,this.BB=this.b,this.CC=this.c,this.DD=this.d,this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k],this.S11,3614090360),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+1],this.S12,3905402710),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+2],this.S13,606105819),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+3],this.S14,3250441966),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+4],this.S11,4118548399),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+5],this.S12,1200080426),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+6],this.S13,2821735955),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+7],this.S14,4249261313),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+8],this.S11,1770035416),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+9],this.S12,2336552879),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+10],this.S13,4294925233),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+11],this.S14,2304563134),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+12],this.S11,1804603682),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+13],this.S12,4254626195),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+14],this.S13,2792965006),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+15],this.S14,1236535329),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+1],this.S21,4129170786),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+6],this.S22,3225465664),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+11],this.S23,643717713),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k],this.S24,3921069994),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+5],this.S21,3593408605),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+10],this.S22,38016083),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+15],this.S23,3634488961),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+4],this.S24,3889429448),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+9],this.S21,568446438),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+14],this.S22,3275163606),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+3],this.S23,4107603335),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+8],this.S24,1163531501),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+13],this.S21,2850285829),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+2],this.S22,4243563512),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+7],this.S23,1735328473),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+12],this.S24,2368359562),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+5],this.S31,4294588738),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+8],this.S32,2272392833),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+11],this.S33,1839030562),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+14],this.S34,4259657740),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+1],this.S31,2763975236),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+4],this.S32,1272893353),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+7],this.S33,4139469664),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+10],this.S34,3200236656),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+13],this.S31,681279174),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k],this.S32,3936430074),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+3],this.S33,3572445317),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+6],this.S34,76029189),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+9],this.S31,3654602809),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+12],this.S32,3873151461),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+15],this.S33,530742520),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+2],this.S34,3299628645),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k],this.S41,4096336452),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+7],this.S42,1126891415),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+14],this.S43,2878612391),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+5],this.S44,4237533241),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+12],this.S41,1700485571),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+3],this.S42,2399980690),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+10],this.S43,4293915773),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+1],this.S44,2240044497),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+8],this.S41,1873313359),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+15],this.S42,4264355552),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+6],this.S43,2734768916),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+13],this.S44,1309151649),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+4],this.S41,4149444226),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+11],this.S42,3174756917),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+2],this.S43,718787259),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+9],this.S44,3951481745),this.a=this.AddUnsigned(this.a,this.AA),this.b=this.AddUnsigned(this.b,this.BB),this.c=this.AddUnsigned(this.c,this.CC),this.d=this.AddUnsigned(this.d,this.DD);return(this.WordToHex(this.a)+this.WordToHex(this.b)+this.WordToHex(this.c)+this.WordToHex(this.d)).toLowerCase()},e.x=Array(),e.S11=7,e.S12=12,e.S13=17,e.S14=22,e.S21=5,e.S22=9,e.S23=14,e.S24=20,e.S31=4,e.S32=11,e.S33=16,e.S34=23,e.S41=6,e.S42=10,e.S43=15,e.S44=21,e.RotateLeft=function(e,t){return e<<t|e>>>32-t},e.F=function(e,t,n){return e&t|~e&n},e.G=function(e,t,n){return e&n|t&~n},e.H=function(e,t,n){return e^t^n},e.I=function(e,t,n){return t^(e|~n)},e}(),d=n(57826);let u=(()=>{class e{constructor(e,t,n,i,r){this.sessionStorageService=e,this.cookieStorageService=t,this.siteConfigService=n,this.windowService=i,this.browserStorageService=r,this.WTRACK_KEY="wtrack.",this.AFF_ID="affid",this.PARAM_NOT_AVAILABLE="NA",this.UTM_SOURCE_QUERY_KEY="utm_source",this.UTM_MEDIUM_QUERY_KEY="utm_medium",this.UTM_CAMPAIGN_QUERY_KEY="utm_campaign",this.UTM_TERM_QUERY_KEY="utm_term",this.UTM_CONTENT_QUERY_KEY="utm_content",this.UTM_BRAND_QUERY_KEY="utm_brand"}sendPixelTrackingEvents(t,n,i){this.isEnabledPixelTracking()&&(t===c.WT_SUCCESS_DEPOSIT&&(t=e.isFirstTimeDepositor(n)?t+":ftd":t+":no_ftd"),this.canTrackEvent(t)&&this.getWtrackLoadedPromise().then((()=>{let e=c.webTrekk2pixelTrackingEvents.get(t);this.trackPixelEvent(e,n,i)})))}sendAllPagesPixelEvent(){this.isEnabledPixelTracking()&&this.getWtrackLoadedPromise().then((()=>{this.trackPixelEvent(c.PX_ALL_PAGES)}))}trackPixelEvent(t,n,i){let r=this.cookieStorageService.get(this.AFF_ID),o=this.getEventsFromWindow()[r];if(!o)return;let a=o[t];Array.isArray(a)||(a=[a]);for(let r of a){if(!r||!r.type||!r.url)return;if(!e.isValidEventForTracking(t,n))return;this.createScrForTracking(r.type,r.url,n,i),this.setEventAlreadyTracked(t)}}static isValidEventForTracking(t,n){return!(t===c.PX_FTD_DEPOSIT_START&&!e.isFirstTimeDepositor(n)||t===c.PX_REPEAT_DEPOSIT&&e.isFirstTimeDepositor(n))}canTrackEvent(e){let t=c.webTrekk2pixelTrackingEvents.get(e);return!(!t||"true"===this.sessionStorageService.get(this.WTRACK_KEY+t))}isEnabledPixelTracking(){let e=this.siteConfigService.getSiteConfigProp("pixelTrackingEnabled"),t=null!=this.cookieStorageService.get(this.AFF_ID);return e&&t}isEnabledPixelTrackingParameterFilter(){return this.siteConfigService.getSiteConfigProp("pixelTrackingParameterFilterEnabled")}createScrForTracking(e,t,n,i){let r=this.windowService.document().createElement(e);r.setAttribute("src",this.replacePlaceholders(t,n,i)),this.windowService.document().getElementsByTagName("head")[0].appendChild(r)}replacePlaceholders(t,n,i){return this.isEnabledPixelTrackingParameterFilter()?t.replace(/%customer_(id|amount)%/g,this.PARAM_NOT_AVAILABLE):[this.UTM_BRAND_QUERY_KEY,this.UTM_CAMPAIGN_QUERY_KEY,this.UTM_CONTENT_QUERY_KEY,this.UTM_CONTENT_QUERY_KEY,this.UTM_MEDIUM_QUERY_KEY,this.UTM_SOURCE_QUERY_KEY,this.UTM_TERM_QUERY_KEY].reduce(((e,t)=>e.replace(new RegExp(`%${t}%`,"g"),this.getStoredValue(t))),t.replace(/%customer_id%/g,e.getProfileId(i)).replace(/%customer_amount%/g,e.getAmount(n)))}getStoredValue(e){return this.browserStorageService.get(e)||this.PARAM_NOT_AVAILABLE}setEventAlreadyTracked(e){e!==c.PX_REPEAT_DEPOSIT&&e!==c.PX_ALL_PAGES&&this.sessionStorageService.set(this.WTRACK_KEY+e,"true")}getEventsFromWindow(){return this.windowService.window().wtrack.EVENTS?this.windowService.window().wtrack.EVENTS:{}}getWtrackLoadedPromise(){return this.windowService.window().wtrackLoaded$?this.windowService.window().wtrackLoaded$:new Promise(((e,t)=>t()))}static isFirstTimeDepositor(e){return e&&e.customEcommerceParameter&&"ftd"===e.customEcommerceParameter[5]}static getAmount(e){return e?e.amount:""}static getProfileId(e){return"false"===e||void 0===e?"":l.init(e)}}return e.ɵfac=function(t){return new(t||e)(d["ɵɵinject"](a.u),d["ɵɵinject"](r.G),d["ɵɵinject"](i.r),d["ɵɵinject"](s.u),d["ɵɵinject"](o.z))},e.ɵprov=d["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},57597:(e,t,n)=>{"use strict";n.d(t,{W:()=>l});var i=n(81899),r=n(73753),o=n(3336),a=n(72556),s=n(45097),c=n(57826);let l=(()=>{class e{constructor(e,t,n,i){this.windowService=e,this.router=t,this.analyticsService=n,this.pageEventsService=i,this.loadingImages={},this.lastIterationImages=[],this.navigationStarted=!1,this.siteLoaded=!1,this.subscribeToRouterEvents=()=>{this.navigationSubscriber=this.router.events.subscribe((e=>{e instanceof r.NavigationStart&&(this.navigationSubscriber.unsubscribe(),this.navigationStarted=!0,this.siteLoadedCallback())}))},this.siteLoadedCallback=()=>{this.siteLoaded?console.debug("Site is already loaded. Navigation data settings are not needed."):(this.setNavigationData(),this.siteLoaded=!0)},this.wasNavigationStarted=()=>this.navigationStarted,this.getElementOffset=e=>{let t=e.getBoundingClientRect(),n=this.windowService.window().pageXOffset||this.windowService.window().document.documentElement.scrollLeft,i=this.windowService.window().pageYOffset||this.windowService.window().document.documentElement.scrollTop;return{top:t.top+i,left:t.left+n}},this.isAboveTheFold=e=>{let t=this.getElementOffset(e);return t.top<this.viewportSize.height&&t.left<this.viewportSize.width&&t.top+t.left>0},this.waitUntilCondition=(e,t,n,i)=>{if(e()||this.wasNavigationStarted())t();else{let r,o=setInterval((()=>{e()&&(clearInterval(o),clearTimeout(r),t())}),n);r=setTimeout((()=>{clearInterval(o)}),i)}},this.getCarouselNotVisibleImages=()=>{let e=Array.from(this.windowService.window().document.querySelectorAll("carousel img"));return e.shift(),e},this.getFooterImages=()=>Array.from(this.windowService.window().document.querySelectorAll("bx-footer img")),this.getCurrentImagesAboveTheFold=()=>Array.from(this.windowService.window().document.querySelectorAll("img")).filter((e=>this.getCarouselNotVisibleImages().indexOf(e)<0)).filter((e=>this.getFooterImages().indexOf(e)<0)).filter(this.isAboveTheFold),this.waitForImagesAboveTheFold=(e,t,n)=>{this.waitUntilCondition((()=>this.getCurrentImagesAboveTheFold().length>0),e,t,n)},this.getCurrentLazyLoadImagesAboveTheFold=()=>Array.from(this.windowService.window().document.querySelectorAll("img.lazyload, img.lazyloading")).filter((e=>this.getCarouselNotVisibleImages().indexOf(e)<0)).filter(this.isAboveTheFold),this.waitForLazyLoadImages=(e,t,n)=>{this.waitUntilCondition((()=>!this.arePendingLazyLoadImages()),e,t,n)},this.imageLoading=e=>{this.loadingImages[e.src]=1},this.imageLoaded=e=>{Object.keys(this.loadingImages).length>0&&(delete this.loadingImages[e.src],0==Object.keys(this.loadingImages).length&&this.waitUntilPageIsStable(this.lastIterationImages))},this.isOverlayShown=()=>this.windowService.window().document.querySelectorAll("bx-homepage-overlay").length>0,this.areIncompletesMarketingPages=()=>{let e=this.isOverlayShown()?"bx-homepage-overlay bx-marketing-page":"bx-marketing-page";return Array.from(this.windowService.window().document.querySelectorAll(e)).filter(this.isAboveTheFold).filter((e=>!e.innerText)).length>0},this.waitForMarketingPages=(e,t,n)=>{this.waitUntilCondition((()=>!this.areIncompletesMarketingPages()),e,t,n)},this.waitUntilPageIsStable=e=>{setTimeout((()=>{if(!this.wasNavigationStarted()){let t=this.getCurrentImagesAboveTheFold();if(this.lastIterationImages=t,t=t.filter((t=>e.indexOf(t)<0)),t.length>0||this.arePendingLazyLoadImages()){let e=t.filter((e=>!e.complete));e.length>0?e.forEach((e=>{this.imageLoading(e),e.addEventListener("load",(e=>this.imageLoaded(e.target)))})):this.waitForLazyLoadImages((()=>{this.waitForMarketingPages((()=>{this.waitUntilPageIsStable(this.lastIterationImages)}),300,6e4)}),300,6e4)}else this.wasNavigationStarted()||(this.navigationSubscriber.unsubscribe(),this.siteLoadedCallback())}}),0)},this.setNavigationData=()=>{let e,t=this.windowService.window(),n=this.windowService.document(),i=Math.round(t.performance.timing.domainLookupEnd-t.performance.timing.domainLookupStart).toString();try{let i=this.getTimeToRenderAboveTheFold(t,n);e=Math.round(i)}catch(e){console.debug("Error getting time to render:",e)}finally{setTimeout((()=>this.analyticsService.appendTrackingScript()),0),this.pageEventsService.emit(new s._e(this.router.url,e))}e?(console.debug("Page load completed. Render time: ",e,", DNS resolution: ",i),t.renderTime=e,this.analyticsService.setNavigationDataV2(i,"page",Math.round(e).toString())):console.debug("Error: no render time has been calculated")},this.getTimeToRenderAboveTheFold=(e,t)=>{let n=e=>e.replace(/^(http)?s?:?\/\/[^\/]*/i,""),i=e.performance.getEntriesByType("resource").filter((e=>"img"===e.initiatorType)),r=(e,t)=>e>t?1:-1;return Array.from(t.querySelectorAll("img")).filter(this.isAboveTheFold).filter((e=>this.getCarouselNotVisibleImages().indexOf(e)<0)).filter((e=>this.getFooterImages().indexOf(e)<0)).map((e=>n(e.src))).map((e=>i.filter((t=>n(t.name)===e)).map((e=>e.responseEnd)).sort(r).pop())).filter((e=>!!e)).sort(r).pop()}}init(){if(this.windowService.getIsPlatformBrowser()){let e=this.windowService.window();e["process-fpl"]="fpl",this.initViewportSize(),this.waitForImagesAboveTheFold((()=>{this.subscribeToRouterEvents(),this.waitUntilPageIsStable([])}),300,6e4),setTimeout((()=>{this.siteLoadedCallback()}),2e4),"complete"===e.document.readyState?this.pageEventsService.emit(new s.jq):e.onload=e=>{this.pageEventsService.emit(new s.jq)}}}initViewportSize(){this.viewportSize={width:this.windowService.window().innerWidth||this.windowService.window().document.documentElement.clientWidth||this.windowService.window().document.getElementsByTagName("body")[0].clientWidth,height:this.windowService.window().innerHeight||this.windowService.window().document.documentElement.clientHeight||this.windowService.window().document.getElementsByTagName("body")[0].clientHeight}}arePendingLazyLoadImages(){return this.getCurrentLazyLoadImagesAboveTheFold().length>0}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](i.u),c["ɵɵinject"](r.Router),c["ɵɵinject"](o.y),c["ɵɵinject"](a.z))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},59386:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var i=n(3336),r=n(57826);let o=(()=>{class e{constructor(e){this.analyticsService=e}set bxTrackClick(e){this.eventName=e}onClick(){this.analyticsService.sendEvent("click",this.eventName,!0,null)}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.y))},e.ɵdir=r["ɵɵdefineDirective"]({type:e,selectors:[["","bxTrackClick",""]],hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("click",(function(){return t.onClick()}))},inputs:{bxTrackClick:"bxTrackClick"}}),e})()},33564:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var i=n(65353),r=n(57826),o=n(81768);let a=(()=>{class e{constructor(e,t){this.abtFieldsMapper=e,this.marketingAudienceMapper=t}getTrackingData(e,t,n){return{...this.getTrackingDataAbtStudy(e),...this.getTrackingDataAudiences(e),...this.getTrackingDataComponentInternalName(e),...this.getTrackingDataComponentType(e),...t?this.getTrackingDataParentInternalName(t):{},...n?this.getTrackingDataParentType(n):{},automatedTracking:this.getAutomatedTracking(e)}}getAutomatedTracking(e){if(e.fields&&e.fields.sourceId)return{sourceId:e.fields.sourceId,sourceLabel:e.fields.sourceLabel,sortOrder:e.fields.sortOrder,amount:e.fields.amount}}getTrackingDataAbtStudy(e){const t=this.abtFieldsMapper.map(e);return t?{abtStudy:t}:{}}getTrackingDataAudiences(e){const t=this.marketingAudienceMapper.map(e);return t?{audiences:t}:{}}getTrackingDataComponentInternalName(e){return e.fields&&e.fields.internal_name?{componentInternalName:e.fields.internal_name}:{}}getTrackingDataComponentType(e){return e.contentType?{componentType:"content_page"!=e.contentType?e.contentType:e.fields.page_type}:{}}getTrackingDataParentInternalName(e){return e.internal_name?{parentInternalName:e.internal_name}:{}}getTrackingDataParentType(e){return{parentType:e}}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.u1),r["ɵɵinject"](o.V))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},7006:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var i=n(57826),r=n(73753),o=n(80112),a=n(26626);let s=(()=>{class e{constructor(e,t,n,i){this.router=e,this.elementRef=t,this.urlPrefixService=n,this.linkTrackService=i}ngAfterViewInit(){let e=this.elementRef.nativeElement.querySelectorAll("a");for(let t=0;t<e.length;t++)this.addNoopenerAttr(e[t]),this.urlPrefixService.getUrlPrefix()&&this.checkForUrlPrefix(e[t])}handleAnchorClicks(e){let t=this.findClosestAnchor(e.target);if(t){let n=t.getAttribute("href"),i=t.getAttribute("target");if(n&&"_blank"!==i){if(!this.isAbsoluteURL(n))return n=this.urlPrefixService.removeUrlPrefix(n),this.navigate(n),this.linkTrackService.setLinkClicked(!0),e.preventDefault(),e.stopPropagation(),!1;e.stopPropagation()}}return!0}navigate(e){if(this.hasQueryString(e)){let t=e.split("?"),n=this.queryStringToParams(t[1]);this.router.navigate([t[0]],{queryParams:n})}else this.router.navigate([e])}queryStringToParams(e){let t=new URLSearchParams(e),n={};return t.forEach(((e,t)=>n[t]=e)),n}hasQueryString(e){return decodeURIComponent(e).indexOf("?")>=0}findClosestAnchor(e){for(;;){if("A"===e.tagName)return e;if(null!=e.getAttribute("anchorLinksHandler"))return null;e=e.parentElement}}checkForUrlPrefix(e){let t=e.getAttribute("href");t&&!this.startsWithProtocolScheme(t)&&e.setAttribute("href",this.urlPrefixService.addUrlPrefix(t))}addNoopenerAttr(e){let t=e.getAttribute("href");t&&this.isAbsoluteURL(t)&&e.setAttribute("rel","noopener")}isAbsoluteURL(e){return this.checkRegex(/(http(s?))\:\/\//gi,e)}startsWithProtocolScheme(e){return this.checkRegex(/^[a-z]+\:.*/gi,e)}checkRegex(e,t){return e.test(t)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.Router),i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](o.z),i["ɵɵdirectiveInject"](a.j))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","anchorLinksHandler",""]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.handleAnchorClicks(e)}))}}),e})()},75468:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var i=n(6856),r=n(26626),o=n(57826);let a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({providers:[r.j],imports:[[i.CommonModule]]}),e})()},94966:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});const i={include:/\/(services|api)\//,exclude:/\/services\/(sports\/(event\/coupon\/|config\/site)|casino\/casino-lobby-services\/v1\/(jackpots|vig\/(lobbystatus|seatstatus))|routing\/config)/}},24585:(e,t,n)=>{"use strict";n.d(t,{$I:()=>x});var i=n(57826),r=n(54679),o=n(91855),a=n(20295),s=n(81899),c=n(4473),l=n(6856),d=n(77523),u=n(72556),p=n(77624),h=n(80469),m=n(73753),g=n(23550),f=n(82846),v=n(42998);let b=(()=>{class e{constructor(e,t,n,i){this.httpInterceptors=e,this.httpInterceptorService=t,this.cookieStorageService=n,this.router=i,this.cookieName="bx_log_http",this.isEnabled()&&this.router.events.pipe((0,v.filter)((e=>e instanceof m.NavigationEnd))).subscribe((()=>{this.debugHttpServiceInterceptors(),this.debugHttpClientInterceptors()}))}debugHttpServiceInterceptors(){const e=[...this.httpInterceptorService.getHttpRequestInterceptors(),...this.httpInterceptorService.getHttpResponseInterceptors()];this.debugInterceptorsInjectionOrder("HttpService",e),this.debugInterceptorsHttpCalls("HttpService",e)}debugHttpClientInterceptors(){const e=this.httpInterceptors.filter((e=>!e.constructor.name.includes("HttpXsrfInterceptor")));this.debugInterceptorsInjectionOrder("HttpClient",e),this.debugInterceptorsHttpCalls("HttpClient",e)}isEnabled(){return this.cookieStorageService&&"true"===this.cookieStorageService.get(this.cookieName)}debugInterceptorsInjectionOrder(e,t){console.groupCollapsed(`${e}:`,`Interceptors (${t.length})`),console.log(t.map(((e,t)=>`${t+1}) ${e.constructor.name}`)).join("\n")),console.groupCollapsed("Instances"),console.log(t),console.groupEnd(),console.groupEnd()}debugInterceptorsHttpCalls(e,t){const n=e.includes("Client")?"intercept":"process";t.forEach((t=>{if(!t.hooked){const i=t[n];t[n]=(...n)=>(console.groupCollapsed(`${e}:`,t.constructor.name,n[0].url),console.log("interceptor:",t),console.log("args:",n),console.groupEnd(),i.apply(t,n)),t.hooked=!0}}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](g.HTTP_INTERCEPTORS,8),i["ɵɵinject"](a.p,8),i["ɵɵinject"](f.G,8),i["ɵɵinject"](m.Router,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var y=n(4309);const C=[a.p,{provide:o.O,useFactory:function(e,t,n,i,a,s,c){return new o.O((0,l.isPlatformServer)(c)?t.get(r.eV)._backend:e,n,i,a,s,c)},deps:[r.Ne,i.Injector,r.v1,p.F,a.p,[new i.Optional,c.m],i.PLATFORM_ID]},p.F,s.u,u.z,h.j],S=[{provide:i.APP_INITIALIZER,useFactory:()=>y.noop,deps:[b],multi:!0}];let x=(()=>{class e{static noOverrideHttp(){return{ngModule:w}}static forRoot(){return{ngModule:e,providers:[{provide:r.eV,useExisting:o.O},...C,...S]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.Xn,d.s]]}),e})(),w=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[...C],imports:[[r.Xn,d.s]]}),e})()},20295:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var i=n(4309),r=n(42998),o=n(57826);let a=(()=>{class e{constructor(){this.requestHttpInterceptors=[],this.responseHttpInterceptors=[]}processRequestInterceptors(e){let t=e,n=(0,i.of)(e);for(let o of this.requestHttpInterceptors)if(o.shouldProcess(e)){if(t=o.process(e),t instanceof Error||t instanceof i.Observable)return t;n.pipe((0,r.mapTo)((0,i.of)(t)))}return n}processResponseInterceptors(e,t){for(let n of this.responseHttpInterceptors)n.process(e,t)}addHttpRequestInterceptor(e){this.requestHttpInterceptors.push(e)}getHttpRequestInterceptors(){return this.requestHttpInterceptors.slice(0)}removeRequestInterceptor(e){const t=this.requestHttpInterceptors.indexOf(e,0);t>-1&&this.requestHttpInterceptors.splice(t,1)}addHttpResponseInterceptor(e){this.responseHttpInterceptors.push(e)}getHttpResponseInterceptors(){return this.responseHttpInterceptors.slice(0)}removeResponseInterceptor(e){const t=this.responseHttpInterceptors.indexOf(e,0);t>-1&&this.responseHttpInterceptors.splice(t,1)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},91855:(e,t,n)=>{"use strict";n.d(t,{O:()=>u});var i=n(6856),r=n(57826),o=n(54679),a=n(4309),s=n(42998),c=n(77624),l=n(4473),d=n(20295);let u=(()=>{class e extends o.eV{constructor(e,t,n,i,r,o){super(e,t),this.responseErrorNotifierService=n,this.httpInterceptorService=i,this.transferStateServiceCache=r,this.platformId=o,this.httpRetries=1}setHttpTimeoutInMilliseconds(e){e&&(this.httpTimeoutInMilliseconds=e)}getHttpTimeoutInMilliseconds(){return this.httpTimeoutInMilliseconds}setHttpRetries(e){isNaN(e)||(this.httpRetries=e)}getHttpRetries(){return this.httpRetries}setMfaConfig(e){}hasAudiencesHeader(t){return t.headers&&(null!=t.headers.get(e.X_AUDIENCES)||null!=t.headers.get(e.X_AUDIENCE_IDS))}requestWithInterceptors(e,t){let n,r=this._defaultOptions.merge(e);if(this.platformId&&(0,i.isPlatformBrowser)(this.platformId)&&!this.hasAudiencesHeader(e)&&(this.transferStateServiceCache&&(n=this.transferStateServiceCache.getData(r.url)),n))return(0,a.of)(new o.HM(new o.KX({body:n,status:200})));let s=this.httpInterceptorService.processRequestInterceptors(r);return s instanceof Error?(0,a.throwError)(s):this.generateResponse(e,s,t)}generateResponse(e,t,n){return t.pipe((0,s.switchMap)((t=>this.doRequest(t,n).pipe((0,s.map)((n=>(this.httpInterceptorService.processResponseInterceptors(t,n),this.transferStateServiceCache&&this.platformId&&(0,i.isPlatformServer)(this.platformId)&&this.transferStateServiceCache.saveData(e.url,n.json()),n))),(0,s.catchError)((n=>(n instanceof o.HM&&this.httpInterceptorService.processResponseInterceptors(t,n),n&&this.responseErrorNotifierService.notifyError(n,e),(0,a.throwError)(n))))))))}doRequest(e,t){const n=isNaN(t)?this.httpTimeoutInMilliseconds:t;return n?super.request(new o.cf(e)).pipe((0,s.timeoutWith)(n,(0,a.throwError)(new Error(`The request timed out: ${n}ms expired`)))):super.request(new o.cf(e))}request(e,t){let n;return"string"==typeof e?(n=new o.v1(t),n.url=e):n=this.requestToRequestOptions(e),this.requestWithInterceptors(n)}get(e,t,n){let i=new o.v1(t);return i.url=e,i.method=o.BW.Get,this.requestWithInterceptors(i,n)}getWithRetries(e,t,n,i){let r=isNaN(t)?this.getHttpRetries():t;return this.get(e,n,i).pipe((0,s.retry)(r))}post(e,t,n){let i=new o.v1(n);return i.url=e,i.method=o.BW.Post,i.body=t,this.requestWithInterceptors(i)}put(e,t,n){let i=new o.v1(n);return i.url=e,i.method=o.BW.Put,i.body=t,this.requestWithInterceptors(i)}delete(e,t){let n=new o.v1(t);return n.url=e,n.method=o.BW.Delete,this.requestWithInterceptors(n)}patch(e,t,n){let i=new o.v1(n);return i.url=e,i.method=o.BW.Patch,i.body=t,this.requestWithInterceptors(i)}head(e,t){let n=new o.v1(t);return n.url=e,n.method=o.BW.Head,this.requestWithInterceptors(n)}options(e,t){let n=new o.v1(t);return n.url=e,n.method=o.BW.Options,this.requestWithInterceptors(n)}requestToRequestOptions(e){return new o.v1({body:e.getBody(),url:e.url,search:null,method:e.method,headers:e.headers,withCredentials:e.withCredentials,responseType:e.responseType})}}return e.X_AUDIENCES="X-Audiences",e.X_AUDIENCE_IDS="X-Audience-Ids",e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](o.Zg),r["ɵɵinject"](o.v1),r["ɵɵinject"](c.F),r["ɵɵinject"](d.p),r["ɵɵinject"](l.m,8),r["ɵɵinject"](r.PLATFORM_ID,8))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},8995:(e,t,n)=>{"use strict";n.d(t,{X:()=>a,_:()=>s}),n(23550);var i=n(4309),r=n(42998),o=n(57826);const a="x-timeout";let s=(()=>{class e{constructor(){this.httpTimeout=2e4}init(e){this.httpTimeout=e||2e4}intercept(e,t){let n=this.httpTimeout;return e.headers.has(a)&&(n=parseInt(e.headers.get(a))||this.httpTimeout,e=e.clone({headers:e.headers.delete(a)})),t.handle(e).pipe((0,r.timeoutWith)(n,(0,i.throwError)(new Error(`The request timed out: ${n}ms expired`))))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},80469:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var i=n(57826),r=n(6856),o=n(81899);let a=(()=>{class e{constructor(e,t){this.platformId=e,this.windowService=t}getBrowserLocationHref(){return(0,r.isPlatformBrowser)(this.platformId)?this.getBrowserHref():""}getBrowserHref(){return this.windowService.window().location.href}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](o.u,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},42497:(e,t,n)=>{"use strict";n.d(t,{a:()=>c,o:()=>s});var i=n(23550),r=n(4309),o=n(42998),a=n(57826);let s=(()=>{class e{}return e.getErrorInfo=t=>JSON.stringify(t.response,e.getCircularReplacer()),e.getCircularReplacer=()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}},e})(),c=(()=>{class e{constructor(){this.httpError$=new r.Subject}httpErrors(){return this.httpError$.asObservable()}intercept(e,t){return t.handle(e).pipe((0,o.tap)((t=>{t instanceof i.HttpResponse&&!t.ok&&this.httpError$.next({request:e,response:t})}),(t=>{this.httpError$.next({request:e,response:t})})))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},6289:(e,t,n)=>{"use strict";n.d(t,{G:()=>a}),n(23550);var i=n(94966),r=n(80469),o=n(57826);let a=(()=>{class e{constructor(e){this.urlService=e,this.matchesUrl=!1}init(e){return e?(this.serviceDomain=e,Promise.resolve()):Promise.reject("Service domain not valid for iframe http interceptor.")}intercept(e,t){this.matchesUrl=!!e.url.match(i.J.include)&&!e.url.match(i.J.exclude);let n=e;return this.isIFrameInterceptorActive()&&this.isSameDomain(e)&&(n=this.setXRefererHeader(e)),t.handle(n)}setXRefererHeader(e){return e.clone({setHeaders:{"X-REFERER":this.urlService.getBrowserLocationHref()}})}isSameDomain(e){return!e.url.includes("http")||e.url.includes(this.serviceDomain)}isIFrameInterceptorActive(){return this.serviceDomain&&this.matchesUrl}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.j))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},63752:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var i=n(57826),r=n(81899),o=n(6289);let a=(()=>{class e{constructor(e,t,n){this.ngZone=e,this.windowService=t,this.iFrameInterceptor=n,this.iFrameUrl=e=>`${this.windowService.getProtocolOrDefault()}${e}/receiver.html`}init(e){return e?new Promise(((t,n)=>{this.injectIframe(e,t,n)})):Promise.reject("Service domain not valid.")}getIFrameXMLHttpRequest(){return this.iFrameXMLHttpRequest}injectIframe(e,t,n){this.httpIFrame=this.windowService.document().createElement("iframe"),this.httpIFrame.onerror=this.httpIFrame.onabort=n,this.httpIFrame.onload=()=>{if(this.httpIFrame.contentWindow&&this.httpIFrame.contentWindow.hasOwnProperty("XMLHttpRequest")){this.iFrameXMLHttpRequest=this.httpIFrame.contentWindow.XMLHttpRequest,this.iFrameInterceptor.init(e);const t=this.ngZone,n=this.iFrameXMLHttpRequest.prototype,i=n.addEventListener;n.addEventListener=function(e,n,r){i.call(this,e,(()=>t.run((()=>n()))),r)}}t()},this.httpIFrame.setAttribute("src",this.iFrameUrl(e)),this.httpIFrame.style.display="none",this.windowService.document().body.appendChild(this.httpIFrame)}isIFrameInterceptorActive(){return this.iFrameInterceptor.isIFrameInterceptorActive()&&!!this.getIFrameXMLHttpRequest()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.NgZone),i["ɵɵinject"](r.u),i["ɵɵinject"](o.G))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},51013:(e,t,n)=>{"use strict";n.d(t,{$I:()=>i.$I,iR:()=>g,ke:()=>p,Gc:()=>h.G,P1:()=>u.P,cS:()=>b,Wp:()=>d,F8:()=>c,_2:()=>y._});var i=n(24585),r=(n(20295),n(91855),n(81899)),o=n(91605),a=n(57826);let s=(()=>{class e{constructor(e){this.windowService=e,this.serviceDomain=""}setServiceDomain(e){this.serviceDomain=e}getServiceDomain(){return this.serviceDomain}getServiceUrl(e){return-1===e.indexOf("://")?this.windowService.getProtocolOrDefault()+this.serviceDomain+e:e}generateTraceId(){return(0,o.v4)()}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](r.u))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),c=(()=>{class e{constructor(e){this.servicesRequestService=e}init(e){return!!e&&(this.servicesRequestService.setServiceDomain(e),!0)}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](s))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();n(23550);var l=n(94966);let d=(()=>{class e{constructor(e){this.servicesRequestService=e}intercept(e,t){if(e.url.match(l.J.exclude))return t.handle(e);if(e.url.includes("services/")||e.url.includes("api/")){const n=e.clone({url:this.servicesRequestService.getServiceUrl(e.url),headers:e.headers.set("traceId",this.servicesRequestService.generateTraceId())});return t.handle(n)}return t.handle(e)}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](s))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var u=n(63752);let p=(()=>{class e{constructor(e){this.iFrameXHRService=e}build(){let e;return e=this.iFrameXHRService.isIFrameInterceptorActive()?this.iFrameXHRService.getIFrameXMLHttpRequest():XMLHttpRequest,new e}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](u.P))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var h=n(6289),m=n(30173);let g=(()=>{class e{constructor(e){this.deviceService=e}init(e){this.fixedChannel=e}intercept(e,t){if(e.url.indexOf("services/")>=0||e.url.indexOf("api/")>=0){let n=this.fixedChannel?this.fixedChannel:this.deviceService.getDeviceType();const i=e.clone({setHeaders:{"X-CHANNEL":n}});return t.handle(i)}return t.handle(e)}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](m.U))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var f=n(42998);const v="x-retries";let b=(()=>{class e{constructor(){this.DEFAULT_RETRIES=1}intercept(e,t){if(e.headers.has(v)){const n=parseInt(e.headers.get(v))||this.DEFAULT_RETRIES,i=e.clone({headers:e.headers.delete(v)});return t.handle(i).pipe((0,f.retry)(n))}return t.handle(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var y=n(8995)},85443:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var i=n(4309),r=n(57826);let o=(()=>{class e{constructor(){this.code=new i.Subject,this.codeRequest=new i.Subject,this.errorEvent=new i.Subject,this.closePopup=new i.Subject,this.accountBlockedEvent=new i.Subject}requestCode(e,t){const n={operation:e,communicationMethod:t};this.codeRequest.next(n)}requestFinished(e){this.closePopup.next(e)}error(e){this.errorEvent.next(e)}accountBlocked(e){this.accountBlockedEvent.next(e)}emitCode(e){this.code.next(e)}requestForCode(e,t){return this.requestCode(e,t),this.code}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},91549:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var i=n(57826);const r="CONFIRMATION_CODE",o="PIN_CODE";let a=(()=>{class e{constructor(){this.operationsConfig={}}setMfaConfig(e){e&&e.forEach((e=>{const t=e.split(":");this.hasConfirmationCode(t)?this.operationsConfig[t[0]]={type:t[1],communicationMethod:t[2]}:this.hasPinCode(t)&&(this.operationsConfig[t[0]]={type:t[1],communicationMethod:o})}))}hasConfirmationCode(e){return 3===e.length&&e[1]===r}hasPinCode(e){return e.length>1&&e[1]===o}hasOperationEnabled(e){return this.operationsConfig[e]&&(this.operationsConfig[e].type===r||this.operationsConfig[e].type===o)}getCommunicationMethod(e){return this.hasOperationEnabled(e)?this.operationsConfig[e].communicationMethod:null}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},37268:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var i=n(53609),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.D]}),e})()},53609:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(4309),r=n(42998),o=n(23550),a=n(57826);let s=(()=>{class e{constructor(e){this.http=e,this.brandPropertiesUrl=e=>`/services/brand-admin/v1/brands/${e}/properties`,this.brandEnabledProductsUrl=e=>`${this.brandPropertiesUrl(e)}/products`,this.brandPropertiesCache={}}getBrandProperties(e,t){const n=t?e+"_"+JSON.stringify(t):e;return this.brandPropertiesCache[n]?(0,i.of)(this.brandPropertiesCache[n]):this.getConfigurationFromUrl(this.brandPropertiesUrl(e),t).pipe((0,r.tap)((e=>this.brandPropertiesCache[n]=e)))}getProductsEnabledOnBrandNotDisabled(e,t){return this.getConfigurationFromUrl(this.brandPropertiesUrl(e),t).pipe((0,r.map)((e=>{let t=e.products,n=e["site.config.multiproduct.disabled_elements"];return t.filter((e=>!n.includes(e)))})))}getProductsEnabledOnBrand(e,t){return this.getConfigurationFromUrl(this.brandEnabledProductsUrl(e),t)}isProductSupported(e,t,n){return this.getProductsEnabledOnBrand(e,n).pipe((0,r.map)((e=>e.products&&e.products.some((e=>e===t)))))}getConfigurationFromUrl(e,t){return this.http.get(e,{params:t}).pipe((0,r.catchError)((e=>(0,i.throwError)(e.status))))}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](o.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},54075:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var i=n(57826),r=n(84860),o=n(45965),a=n(6856);let s=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.platformId=t}isV3Enabled(){return!(0,a.isPlatformServer)(this.platformId)&&!!this.v3PublicKey&&!!this.pluginUri&&this.siteConfigService.isFeaturePresent(r.L.reCaptchaV3)}get v3PublicKey(){return this.getPlayerCaptchaV3Config()?this.getCapchaConfig().playerCaptchaV3Config.publicKey:null}get pluginUri(){const e=this.getCapchaConfig();return e&&e.pluginUri?e.pluginUri:null}get v3EnforcementActions(){const e=this.getPlayerCaptchaV3Config();return e&&e.enforcementActions?e.enforcementActions:[]}getCapchaConfig(){return this.siteConfigService&&this.siteConfigService.getSiteConfig()?this.siteConfigService.getSiteConfig().playerSecurityCaptchaConfig:null}getPlayerCaptchaV3Config(){const e=this.getCapchaConfig();return e&&e.playerCaptchaV3Config?e.playerCaptchaV3Config:null}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.r),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},64375:(e,t,n)=>{"use strict";n.d(t,{F:()=>m});var i=n(57826),r=n(4309),o=n(33087),a=n(81899),s=n(81465),c=n(93744),l=n(6856),d=n(54075),u=n(10560),p=n(45965),h=n(84860);let m=(()=>{class e{constructor(e,t,n,i,o,a,s){this.reCaptchaConfig=e,this.languageService=t,this.reCaptchaInterceptor=n,this.customEventsService=i,this.siteConfigService=o,this.platformId=a,this.windowService=s,this.recaptchaStyleInitialized=!1,this.scriptLoadingStarted=!1,this.reCaptchaScriptReady$=new r.ReplaySubject(1)}reCaptchaScriptLoadedCallback(){this.emitScriptReady(!0)}emitScriptReady(e){this.reCaptchaScriptReady$.next({loaded:e}),this.reCaptchaScriptReady$.complete()}init(){const e=Date.now();this.initRecaptchaStyles(),this.reCaptchaConfig.isV3Enabled()?this.injectScript():this.emitScriptReady(!1),this.reportMetrics("init",e)}getReCaptchaScriptReady(){return this.reCaptchaScriptReady$}loadScript(){const e=Date.now();return this.injectScript(),this.reportMetrics("load",e),this.reCaptchaScriptReady$}injectScript(){this.scriptLoadingStarted||(this.initRecaptchaStyles(),this.reCaptchaConfig.pluginUri&&(this.appendCallbackFunction(),this.registerInterceptor(),this.languageService.getLanguage().subscribe((e=>{this.language=e,this.appendScript(),this.scriptLoadingStarted=!0}))))}appendCallbackFunction(){this.windowService&&this.windowService.appendFunction("reCaptchaScriptLoadedCallback",this.reCaptchaScriptLoadedCallback.bind(this))}appendScript(){const e=this.reCaptchaConfig.pluginUri+"?onload=reCaptchaScriptLoadedCallback"+this.composeLanguageParam()+this.composeRenderType();this.windowService&&(this.siteConfigService.isFeaturePresent(h.L.reCaptchaV3Defer)&&this.windowService.getIsPlatformBrowser()&&"complete"!==this.windowService.getDocumentReadyState()?this.windowService.addEventListener("load",(()=>{this.windowService.injectScript(e,["defer","async"],!0)}),{once:!0}):this.windowService.injectScript(e,["defer"]))}composeLanguageParam(){const t=this.language&&this.language.trim()?e.mapLanguage(this.language.trim()):null;return t?"&hl="+t:""}static mapLanguage(e){return 0===e.toLocaleLowerCase().localeCompare("zh-hans")?"zh-CN":e}composeRenderType(){return"&render="+(this.reCaptchaConfig.isV3Enabled()?this.reCaptchaConfig.v3PublicKey:"explicit")}registerInterceptor(){this.reCaptchaConfig.isV3Enabled()&&this.reCaptchaInterceptor.subscribeToScriptLoading(this.reCaptchaScriptReady$)}initRecaptchaStyles(){this.recaptchaStyleInitialized||(this.addStyleToReCaptchaBadge(),this.recaptchaStyleInitialized=!0)}addStyleToReCaptchaBadge(){if(this.windowService){let e=this.windowService.document().createElement("style");if(e.innerHTML="\n                #bx-invisible-recaptcha .grecaptcha-badge {\n                    display: block;\n                }\n                .grecaptcha-badge {\n                    display: none;\n                }",this.windowService.document().head.appendChild(e),!this.reCaptchaConfig.isV3Enabled()){let e=this.windowService.document().createElement("style");e.innerHTML="\n                    .bx-recaptcha-legal {\n                        display: none;\n                    }",this.windowService.document().head.appendChild(e)}}}reportMetrics(e,t){if((0,l.isPlatformBrowser)(this.platformId))try{const n={action:"inject-recaptcha-script"};this.customEventsService.emit(new s.g(e,t,t,Date.now(),n))}catch(e){console.debug("Error reporting execution time:",e)}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](d.l),i["ɵɵinject"](o.TS),i["ɵɵinject"](u.h),i["ɵɵinject"](c.V),i["ɵɵinject"](p.r),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](a.u,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},10560:(e,t,n)=>{"use strict";n.d(t,{h:()=>c}),n(23550);var i=n(45965),r=n(42998),o=n(22311),a=n(81899),s=n(57826);let c=(()=>{class e{constructor(e,t,n){this.siteConfigService=e,this.windowService=t,this.reCaptchaV3Service=n,this.X_CAPTCHA_TOKEN="X-CAPTCHA-TOKEN",this.LOGIN_ACTION="login",this.HEADLESS_LOGIN="headless_login"}subscribeToScriptLoading(e){const{reCaptchaV3Properties:t,playerSecurityCaptchaConfig:n}=this.siteConfigService.getSiteConfig();this.reCaptchaV3Properties=t,this.playerCaptchaV3Config=n.playerCaptchaV3Config,this.enabledActions=this.getEnabledActions(),e.subscribe((()=>{this.scriptLoaded=!0}))}intercept(e,t){return this.shouldProcess(e)?this.reCaptchaV3Service.generateToken(this.actionToGenerateToken).pipe((0,r.map)((t=>t?e.clone({setHeaders:{[this.X_CAPTCHA_TOKEN]:t}}):e)),(0,r.mergeMap)((e=>t.handle(e)))):t.handle(e)}getEnabledActions(){const{infoActions:e,monitoringActions:t,enforcementActions:n}=this.playerCaptchaV3Config;return Array.from(new Set(e.concat(t).concat(n)))}captchaTokenAlreadyPresent(e){return e.headers&&e.headers.has(this.X_CAPTCHA_TOKEN)}requestMatchesAction(e,t){const n=this.playerCaptchaV3Config.enforcementActions;return e.method===t.verb.toUpperCase()&&(!t.isTokenSent||n.includes(t.name))&&(this.matchUrl(t.url,e.url)||this.matchAlias(t.aliases,e.url))}matchAlias(e,t){return!!e&&e.some((e=>this.matchUrl(e,t)))}matchUrl(e,t){return new RegExp(e).test(t)}shouldProcess(e){if(this.captchaTokenAlreadyPresent(e)||!this.scriptLoaded||!this.reCaptchaV3Service)return!1;const t=this.reCaptchaV3Properties.find(((t,n)=>!!this.requestMatchesAction(e,t)&&("logout"===t.name?this.reCaptchaV3Properties.forEach((e=>e.isTokenSent=!1)):this.reCaptchaV3Properties[n].isTokenSent=!0,!0)));return t?this.enabledActions.some((e=>(this.actionToGenerateToken=this.getAction(e),e===t.name))):void 0}getAction(e){return this.LOGIN_ACTION===e?this.windowService.window().navigator.userAgent.includes("Electron")?this.HEADLESS_LOGIN:this.LOGIN_ACTION:e}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.r),s["ɵɵinject"](a.u),s["ɵɵinject"](o.Y,8))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},22311:(e,t,n)=>{"use strict";n.d(t,{Y:()=>u});var i=n(4309),r=n(42998),o=n(81465),a=n(93744),s=n(81899),c=n(54075),l=n(57826);class d extends Error{}let u=(()=>{class e{constructor(e,t,n){this.windowService=e,this.customEventsService=t,this.reCaptchaConfig=n,this.TOKEN_GENERATION_TIMEOUT=3e3,this.TOKEN_EXTENDED_GENERATION_TIMEOUT=3e4,this.RECAPTCHA_ERROR="token_runtime_error"}get reCaptchaRef(){return this.windowService.window().grecaptcha}validateCaptchaInitialized(){const e=[()=>[!this.reCaptchaConfig.isV3Enabled(),"token_disabled"],()=>[!this.reCaptchaConfig.v3PublicKey,"public_key_not_defined"],()=>[!this.reCaptchaRef,"ref_not_loaded"],()=>[!this.reCaptchaRef.execute,"ref_not_initialized"]];for(let t of e){let e=t();if(e[0])throw new d(e[1])}}generateToken(e){const t=Date.now(),n=window.performance.now();try{return this.validateCaptchaInitialized(),(0,i.from)(this.reCaptchaRef.execute(this.reCaptchaConfig.v3PublicKey,{action:e})).pipe((0,r.timeout)(this.getTokenGenerationTimeout(e)),(0,r.map)((i=>(i||this.reportMetrics(e,"empty_token",t,n),this.reportMetrics(e,"recaptcha_token",t,n),i))),(0,r.catchError)((i=>{const r=i||new d("token_error");return this.handleRecapthaError(r,e,t,n)})))}catch(i){return this.handleRecapthaError(i,e,t,n)}}handleRecapthaError(e,t,n,r){let o=this.RECAPTCHA_ERROR;return e&&e.message&&(o=e.message.toLowerCase().split(" ").join("_")),this.reportMetrics(t,`recaptcha_${o}`,n,r),(0,i.of)("")}getTokenGenerationTimeout(e){return"login"===e||this.reCaptchaConfig.v3EnforcementActions.includes(e)?this.TOKEN_EXTENDED_GENERATION_TIMEOUT:this.TOKEN_GENERATION_TIMEOUT}reportMetrics(e,t,n,i){try{const r={action:e};this.customEventsService.emit(new o.g(t,n,i,window.performance.now(),r))}catch(e){console.debug("Error reporting execution time:",e)}}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](s.u),l["ɵɵinject"](a.V),l["ɵɵinject"](c.l))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},11198:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})()},80218:(e,t,n)=>{"use strict";n.d(t,{U:()=>c});var i=n(57826),r=n(81899),o=n(6856),a=n(82846),s=n(80112);let c=(()=>{class e{constructor(e,t,n,i){this.windowService=e,this.platformId=t,this.cookieStorageService=n,this.urlPrefixService=i,this.cdnConfig={shardingEnabled:!1,casinoShardingEnabled:!1,cdnDomains:[]},this.cdnIterator=0,this.mapRequest=new Map,this.previewCookieKey="PREVIEW"}prepareCdnConfig(e){let t={shardingEnabled:!1,casinoShardingEnabled:e.casinoShardingEnabled,cdnDomains:[]};!0!==e.shardingEnabled||this.isPreviewMode()||e.cdnDomains.length>0&&(t.cdnDomains=e.cdnDomains,t.shardingEnabled=!0),this.cdnConfig=t}isCdnAvailable(){return this.cdnConfig.shardingEnabled}getCdnConfig(){return this.cdnConfig}getCdnConfigProp(e){return this.cdnConfig[e]}getCdnUrlAjaxRequest(e){let t=this.loadImagesInBrowser(e);return t||(this.cdnConfig.shardingEnabled?this.mapResources(e)+(0===e.indexOf("/")?"":"/")+e:e)}getCdnUrlImage(e){return e=this.urlPrefixService.addUrlPrefix(e),this.getCdnUrlAjaxRequest(this.getRelativeUrl(e))}getRelativeUrl(e){return e.indexOf("://")>-1?this.removeHost(e):e}nextCdnDomain(){return this.cdnIterator>=this.cdnConfig.cdnDomains.length&&(this.cdnIterator=0),this.cdnConfig.cdnDomains[this.cdnIterator++]}removeHost(e){return e.replace(/^(?:\/\/|[^\/]+)*/,"")}loadImagesInBrowser(e){let t="";return(0,o.isPlatformBrowser)(this.platformId)&&(t=(this.windowService.window().imagesLazySizes||[]).filter(((t,n)=>-1!=t.indexOf(e))).shift()),t}mapResources(e){let t="";return this.mapRequest.has(e)?t=this.mapRequest.get(e):(t=this.nextCdnDomain(),this.mapRequest.set(e,t)),t}isPreviewMode(){return"true"===this.cookieStorageService.get(this.previewCookieKey)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](r.u),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](a.G),i["ɵɵinject"](s.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},51576:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var i=n(93996),r=n(61556),o=n(22274),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({providers:[o.x],imports:[[i.M,r.d]]}),e})()},22274:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var i=n(6856),r=n(57826),o=n(77247),a=n(82846),s=n(30173);let c=(()=>{class e{constructor(t,n,r,o){this.deviceService=t,this.cookieStorageService=n,this.platformId=r,this.request=o,this.channelType=(0,i.isPlatformServer)(this.platformId)?this.retrieveChannelTypeForPlatformServer():this.cookieStorageService.get(e.CHANNEL_TYPE_COOKIE_NAME),this.channelType||(this.channelType=this.deviceService.getDeviceType())}retrieveChannelTypeForPlatformServer(){const t=this.request.query[e.CHANNEL_TYPE_QUERY_PARAM];if(t)return t;return this.request.headers[e.CHANNEL_TYPE_HEADER_NAME]||!1}getChannelType(){return this.channelType}}return e.CHANNEL_TYPE_COOKIE_NAME="Channel-Type",e.CHANNEL_TYPE_HEADER_NAME="X-Channel-Type",e.CHANNEL_TYPE_QUERY_PARAM="channelType",e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](s.U),r["ɵɵinject"](a.G),r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](o.Z,8))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},29967:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var i=n(43431),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.u]}),e})()},43431:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var i=n(42998),r=n(53609),o=n(82846),a=n(45965),s=n(57826);let c=(()=>{class e{constructor(e,t,n){this.cookieStore=e,this.siteConfigService=t,this.brandConfigService=n,this.CMS_FEATURES_KEY="site.config.cms.enabled_features"}getCmsConfig(){return this.siteConfigService.getSiteConfigProp("cms")}isSectionEnabled(e,t){return this.isEnabled("enabledSections","bxCmsEnabledSections",e,t)}isFeatureEnabled(e){return this.isEnabled("enabledFeatures","bxCmsEnabledFeatures",e)}isFeatureEnabledInBrandAdminOrCookie(e,t){return this.isFeatureEnabledInBrand(e,t).pipe((0,i.map)((e=>(e||(e=this.isFeatureEnabled(t)),e))))}isFeatureEnabledInBrand(e,t){return this.brandConfigService.getBrandProperties(e.brand.brandCode,{bucket:e.id,territories:e.id.toUpperCase()}).pipe((0,i.map)((e=>this.isEnabledInBrand(e,t))))}isFeatureEnabledWithCookieOrBrand(e,t){return!!this.cookieStore.get(t)||this.isFeatureEnabled(e)}isEnabledInBrand(e,t){return e[this.CMS_FEATURES_KEY]&&e[this.CMS_FEATURES_KEY].indexOf(t)>-1}isEnabled(e,t,n,i){let r=this.getCmsConfig();return this.cookieStore.get(t)&&(r[e]=this.cookieStore.get(t).split("|").map((e=>e.trim()))),i>=0&&(n=`${n}V${i}`),r[e]&&r[e].indexOf(n)>-1}}return e.CASINO_UNIQUE_PAGES_FF="casino-unique-pages",e.SMART_CONTACTS="smart-contacts",e.SMART_CONTACTS_RELEASE2="smart-contacts-release2",e.SHOW_SMART_CONTACTS_METHODS_BLOCK_DIRECTLY="show-smart-contacts-methods-block-directly",e.SMART_CONTACTS_BM="smart-contacts-blackmamba",e.REGISTRATION_FORM_CONTENT_FF="regForm-content",e.MARKETING_AUDIENCES="marketing-audiences",e.CMS_APPROVAL="cms-approval",e.CMS_ACTIONS_LAYOUT="cms-actions-layout",e.AUTOMATED_CONTENT="automated-content",e.CMS_TARGETED_AUDIENCES_OUT="cms-targeted-audiences-out",e.CMS_SLIDE_MOBILE_IMAGES="cms-slide-mobile-images",e.ALLOW_JS_FILES_IN_CONTENT="allow-js-files-in-content",e.DISABLE_JS_FILES_IN_CONTENT="disable-js-files-in-content",e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](o.G),s["ɵɵinject"](a.r),s["ɵɵinject"](r.D))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},28338:(e,t,n)=>{"use strict";n.d(t,{G:()=>c});var i=n(38056),r=n(49994),o=n(46821),a=n(28486),s=n(57826);let c=(()=>{class e{constructor(e,t){this.profileStore=e,this.currencyService=t}getProfileCurrency(){return this.profileStore&&this.profileStore.currencySymbol?this.profileStore.currencySymbol:this.currencyService.getDefaultCurrencySymbol()}getProfileCurrencyCode(){return this.profileStore&&this.profileStore.currency?this.profileStore.currency:this.currencyService.getDefaultCurrencyCode()}getFormattedAmount(e,t){return null==t&&(t=a.E.getMaxDecimals(this.getProfileCurrencyCode())),null==e?"":new o(e).round(t,0).toFixed(t)}getCurrencyAmount(e,t){return this.getProfileCurrency()+" "+this.getFormattedAmount(e,t)}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.A,8),s["ɵɵinject"](r.i))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},35218:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});let i=(()=>{class e{static getCurrencyCodeToShow(e,t){return"XBT"===e&&t?e:this.currencyConfig[e]&&this.currencyConfig[e].currencyCodeMapper||e}}return e.currencyConfig={XBT:{currencyCodeMapper:"mBTC",maxDecimals:{normalPrecision:2,fullPrecision:5},digits:{normalPrecision:"1.2-2",fullPrecision:"1.5-5"}},mBTC:{maxDecimals:{normalPrecision:2,fullPrecision:5},digits:{normalPrecision:"1.2-2",fullPrecision:"1.5-5"}}},e})()},4060:(e,t,n)=>{"use strict";n.d(t,{P:()=>m});var i=n(49994),r=n(28338),o=n(6856),a=n(58548),s=n(15287),c=n(93758),l=n(23550),d=n(4309),u=n(42998),p=n(57826);let h=(()=>{class e{constructor(e){this.http=e,this.rateRequestCache$={}}getRate(e,t){const n=this.generateCacheKey(e,t);return this.rateRequestCache$[n]||(this.rateRequestCache$[n]=this.requestRateForCurrency(e,t),(0,d.timer)(3e4).pipe((0,u.take)(1)).subscribe((()=>delete this.rateRequestCache$[n]))),this.rateRequestCache$[n]}requestRateForCurrency(e,t){const n=new l.HttpParams({fromObject:{baseCurrencies:e,targetCurrencies:t}});return this.http.get("/services/exchange-rate/v1/rates",{params:n}).pipe((0,u.map)((n=>{const i=n.find((n=>n.sourceCurrencyCode===e&&n.targetCurrencyCode===t));return i&&i.rate||0})),(0,u.shareReplay)(1))}generateCacheKey(e,t){return`${e}-${t}`}}return e.ɵfac=function(t){return new(t||e)(p["ɵɵinject"](l.HttpClient))},e.ɵprov=p["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),m=(()=>{class e{static forRoot(){return{ngModule:e,providers:[c.S,a.s,{provide:s.OJ,useExisting:a.s}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({providers:[i.i,r.G,h,o.DecimalPipe],imports:[[]]}),e})()},28486:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var i=n(35218);class r{static getMaxDecimals(e,t=!1){switch(e){case"BTC":case"XBT":case"BSV":case"BCH":case"LTC":case"ETH":case"USDT":return 8;case"XSC":return 5;case"JPY":case"INR":case"VND":case"IDR":return 0;case"mBTC":return t?i.o.currencyConfig[e].maxDecimals.fullPrecision:i.o.currencyConfig[e].maxDecimals.normalPrecision;default:return 2}}static getDigits(e,t=!1){switch(e){case"BTC":case"BSV":case"XBT":case"LTC":case"BCH":case"ETH":case"USDT":return"1.0-8";case"XSC":return"1.2-5";case"JPY":case"INR":case"VND":case"IDR":return"1.0-0";case"mBTC":return t?i.o.currencyConfig[e].digits.fullPrecision:i.o.currencyConfig[e].digits.normalPrecision;default:return"1.2-2"}}}},49994:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var i=n(45965),r=n(35944),o=n(57826);const a=[{code:"mBTC",name:"milliBitcoin",symbol:"m฿"}];let s=(()=>{class e{constructor(e){this.siteConfigService=e,this.currencyToSymbolMap={},this.symbolToCurrencyMap={},this.availableCurrenciesConfigProp="availableCurrencies",this.defaultCurrencyProp="defaultCurrency"}getCurrencySymbol(e){return this.getCurrenciesMap(),this.currencyToSymbolMap[e]||e}getDefaultCurrencySymbol(){return this.getCurrencySymbol(this.siteConfigService.getSiteConfigProp(this.defaultCurrencyProp))}getCurrencyCode(e){return this.getCurrenciesMap(),this.symbolToCurrencyMap[e]||e}getDefaultCurrencyCode(){return this.siteConfigService.getSiteConfigProp(this.defaultCurrencyProp)}getCurrenciesMap(){if(0!==Object.keys(this.currencyToSymbolMap).length)return;let e=this.siteConfigService.getSiteConfigProp(this.availableCurrenciesConfigProp);r((e=>{this.currencyToSymbolMap[e.code]=e.symbol,this.symbolToCurrencyMap[e.symbol]=e.code}),e),r((e=>{this.currencyToSymbolMap[e.code]=e.symbol,this.symbolToCurrencyMap[e.symbol]=e.code}),a)}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.r))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},63038:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var i=n(28486);class r{static convertCurrencyFromCents(e,t,n=!1){return e/this.getConversionFactor(t,n)}static convertCurrencyToCents(e,t){return e*this.getConversionFactor(t)}static getConversionFactor(e,t=!1){return Math.pow(10,i.E.getMaxDecimals(e,t))}static clearAmountCurrency(e){return void 0!==e&&(e=+e.toString().replace(/,/g,"")),e}static clearPresetAmountDecimals(e){return null!=e&&null!=e&&(e=e.toString().replace(/\.[0-9]+/g,"")),e}static convertToMonetaryAmount(e,t,n){return{amount:e,currency:t||void 0,profileCurrencyCode:n||void 0}}static isXSC(e){return void 0!==e&&"XSC"===e}}},15287:(e,t,n)=>{"use strict";n.d(t,{I1:()=>r,NH:()=>o,OJ:()=>a});var i=n(57826);const r={XBT:{targetCurrency:"mBTC",rate:1e3},mBTC:{targetCurrency:"XBT",rate:.001}};function o(e){return r[e]&&r[e].targetCurrency||e}const a=new i.InjectionToken("CurrencyConversionServiceToken")},40606:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var i=n(93758),r=n(15287),o=n(57826);let a=(()=>{class e{constructor(e,t){this.monetaryAmountService=e,this.currencyConversionService=t}transform(e,t=!0,n=!1,i,r){return this.monetaryAmountService.format(this.currencyConversionService.convert(e),t,n,i,r)}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵdirectiveInject"](i.S,16),o["ɵɵdirectiveInject"](r.OJ,16))},e.ɵpipe=o["ɵɵdefinePipe"]({name:"bxMonetaryAmount",type:e,pure:!0}),e})()},93758:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var i=n(49994),r=n(28338),o=n(28486),a=n(6856),s=n(46821),c=n(35218),l=n(57826);let d=(()=>{class e{constructor(e,t,n){this.currencyService=e,this.currencyAmountService=t,this.decimalPipe=n}init(e){this.locale=e}static asMonetaryAmount(e,t){return{amount:e,currency:t}}format(e,t=!0,n=!1,i,r=!1){if(!this.hasAmount(e))return"";let a,s,l=this.extractAmount(e,r),d=n&&l>0?"+":"";e.currency?(a=e.currency,s=this.currencyService.getCurrencySymbol(a)):(s=this.currencyAmountService.getProfileCurrency(),a=this.currencyService.getCurrencyCode(s)),"XBT"===e.currency&&(a=e.currency===e.profileCurrencyCode?"mBTC":"XBT",s=this.currencyService.getCurrencySymbol(a));const u=o.E.getDigits(a,r),p=this.formatAmount(l,u,i);return(t?c.o.getCurrencyCodeToShow(s,e.profileCurrencyCode)+" ":"")+d+p}hasAmount(e){return null!=e.amount&&null!=e.amount}extractAmount(e,t){if(this.shouldTruncate(e)){const n=o.E.getMaxDecimals(e.currency,t);return this.truncateNumber(e.amount,n)}return e.amount}shouldTruncate(e){return"mBTC"===e.currency}truncateNumber(e,t){return Number(e<0?Math.ceil(+(e+"e"+t))+"e-"+t:Math.floor(+(e+"e"+t))+"e-"+t)}formatAmount(e,t,n){let i;return n?i=this.decimalPipe.transform(e,t,n):this.locale&&"default"!==this.locale?i=this.decimalPipe.transform(e,t,this.locale):(i=this.decimalPipe.transform(e,t),i=i.toString().replace(/,/g,"")),i}formatNativeCurrency(t){return this.requiresBitcoinConversion()?e.getSCToBTC(t):this.format({amount:t})}static getSCToBTC(t){return new s(t).div(new s(e.SC_TO_BTC_CONVERSION)).toFixed(o.E.getMaxDecimals("BTC")).replace(/0+$/,"").replace(/\.$/,"")+" BTC"}requiresBitcoinConversion(){return"XSC"===this.currencyAmountService.getProfileCurrencyCode()}}return e.SC_TO_BTC_CONVERSION=1e3,e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](i.i),l["ɵɵinject"](r.G),l["ɵɵinject"](a.DecimalPipe))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},58548:(e,t,n)=>{"use strict";n.d(t,{s:()=>c});var i=n(63038),r=n(28338),o=n(15287),a=n(46821),s=n(57826);let c=(()=>{class e{constructor(e){this.currencyAmountService=e}convertCurrencyFromCents(e,t){return i.u.convertCurrencyFromCents(e,t)}convertCurrencyToCents(e,t){return i.u.convertCurrencyToCents(e,t)}convertFromBitcoinToSlotChips(e){return 1e3*e}convertFromSlotChipsToBitcoin(e){return e/1e3}convert(e){return null==e.amount?e:(e.currency||(e.currency=this.currencyAmountService.getProfileCurrencyCode()),!this.requiresConversion(e.currency)||e.profileCurrencyCode&&e.currency!==e.profileCurrencyCode?e:this.performConversion(e))}requiresConversion(e){return!!o.I1[e]}performConversion(e){const t=o.I1[e.currency].rate;return{amount:+new a(e.amount).times(t),currency:o.I1[e.currency].targetCurrency}}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](r.G))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},81465:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});class i{constructor(e,t,n,i,r){this.eventName=e,this.timestamp=t,this.startTimestamp=n,this.endTimestamp=i,this.labels=r}}},93744:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var i=n(4309),r=n(57826);let o=(()=>{class e{constructor(){this.customEvents=new i.ReplaySubject}emit(e){this.customEvents.next(e)}getEvents(){return this.customEvents}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},41759:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var i=n(95238),r=n.n(i),o=n(92778),a=n.n(o),s=n(94600),c=n.n(s),l=n(52179),d=n.n(l),u=n(69033);const p={version:"2018g",zones:["Africa/Abidjan|GMT|0|0||48e5","Africa/Nairobi|EAT|-30|0||47e5","Africa/Algiers|CET|-10|0||26e5","Africa/Lagos|WAT|-10|0||17e6","Africa/Maputo|CAT|-20|0||26e5","Africa/Cairo|EET|-20|0||15e6","Africa/Casablanca|+00 +01|0 -10|0101010101010101|1O9e0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00|32e5","Europe/Paris|CET CEST|-10 -20|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|11e6","Africa/Johannesburg|SAST|-20|0||84e5","Africa/Khartoum|EAT CAT|-30 -20|01|1Usl0|51e5","Africa/Sao_Tome|GMT WAT|0 -10|01|1UQN0|","Africa/Windhoek|CAT WAT|-20 -10|0101010|1Oc00 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|HST HDT|a0 90|010101010101010101010|1O100 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AKST AKDT|90 80|010101010101010101010|1O0X0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Santo_Domingo|AST|40|0||29e5","America/Fortaleza|-03|30|0||34e5","America/Asuncion|-03 -04|30 40|010101010101010101010|1O6r0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0|28e5","America/Panama|EST|50|0||15e5","America/Mexico_City|CST CDT|60 50|010101010101010101010|1Oc80 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0|20e6","America/Managua|CST|60|0||22e5","America/La_Paz|-04|40|0||19e5","America/Lima|-05|50|0||11e6","America/Denver|MST MDT|70 60|010101010101010101010|1O0V0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Campo_Grande|-03 -04|30 40|010101010101010101010|1NTf0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0 1HB0 FX0 1HB0 IL0 1HB0 FX0 1HB0 IL0 1EN0 FX0 1HB0|77e4","America/Cancun|CST EST|60 50|01|1NKU0|63e4","America/Caracas|-0430 -04|4u 40|01|1QMT0|29e5","America/Chicago|CST CDT|60 50|010101010101010101010|1O0U0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|MST MDT|70 60|010101010101010101010|1Oc90 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0|81e4","America/Phoenix|MST|70|0||42e5","America/Los_Angeles|PST PDT|80 70|010101010101010101010|1O0W0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/New_York|EST EDT|50 40|010101010101010101010|1O0T0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Fort_Nelson|PST MST|80 70|01|1O0W0|39e2","America/Halifax|AST ADT|40 30|010101010101010101010|1O0S0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Godthab|-03 -02|30 20|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|17e3","America/Grand_Turk|EST EDT AST|50 40 40|01210101010101010|1O0T0 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Havana|CST CDT|50 40|010101010101010101010|1O0R0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Metlakatla|PST AKST AKDT|80 90 80|01212121212121212121|1PAa0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Miquelon|-03 -02|30 20|010101010101010101010|1O0R0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Montevideo|-02 -03|20 30|01|1O0Q0|17e5","America/Noronha|-02|20|0||30e2","America/Port-au-Prince|EST EDT|50 40|0101010101010101010|1O0T0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","Antarctica/Palmer|-03 -04|30 40|010|1QSr0 Ap0|40","America/Santiago|-03 -04|30 40|0101010101010101010|1QSr0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0|62e5","America/Sao_Paulo|-02 -03|20 30|010101010101010101010|1NTe0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0 1HB0 FX0 1HB0 IL0 1HB0 FX0 1HB0 IL0 1EN0 FX0 1HB0|20e6","Atlantic/Azores|-01 +00|10 0|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|25e4","America/St_Johns|NST NDT|3u 2u|010101010101010101010|1O0Ru 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","Antarctica/Casey|+08 +11|-80 -b0|010|1RWg0 3m10|10","Asia/Bangkok|+07|-70|0||15e6","Asia/Vladivostok|+10|-a0|0||60e4","Pacific/Bougainville|+11|-b0|0||18e4","Asia/Tashkent|+05|-50|0||23e5","Pacific/Auckland|NZDT NZST|-d0 -c0|010101010101010101010|1ObO0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00|14e5","Asia/Baghdad|+03|-30|0||66e5","Antarctica/Troll|+00 +02|0 -20|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|40","Asia/Dhaka|+06|-60|0||16e6","Asia/Amman|EET EEST|-20 -30|010101010101010101010|1O8m0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|25e5","Asia/Kamchatka|+12|-c0|0||18e4","Asia/Baku|+04 +05|-40 -50|010|1O9c0 1o00|27e5","Asia/Barnaul|+06 +07|-60 -70|01|1QyI0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010|1O9a0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0|22e5","Asia/Kuala_Lumpur|+08|-80|0||71e5","Asia/Kolkata|IST|-5u|0||15e6","Asia/Chita|+08 +09|-80 -90|01|1QyG0|33e4","Asia/Ulaanbaatar|+08 +09|-80 -90|01010|1O8G0 1cJ0 1cP0 1cJ0|12e5","Asia/Shanghai|CST|-80|0||23e6","Asia/Colombo|+0530|-5u|0||22e5","Asia/Damascus|EET EEST|-20 -30|010101010101010101010|1O8m0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|26e5","Asia/Yakutsk|+09|-90|0||28e4","Asia/Dubai|+04|-40|0||39e5","Asia/Famagusta|EET EEST +03|-20 -30 -30|01012010101010101010|1O9d0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|","Asia/Gaza|EET EEST|-20 -30|010101010101010101010|1O8K0 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0|18e5","Asia/Hong_Kong|HKT|-80|0||73e5","Asia/Hovd|+07 +08|-70 -80|01010|1O8H0 1cJ0 1cP0 1cJ0|81e3","Europe/Istanbul|EET EEST +03|-20 -30 -30|01012|1O9d0 1tA0 U00 15w0|13e6","Asia/Jakarta|WIB|-70|0||31e6","Asia/Jayapura|WIT|-90|0||26e4","Asia/Jerusalem|IST IDT|-20 -30|010101010101010101010|1O8o0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0|81e4","Asia/Kabul|+0430|-4u|0||46e5","Asia/Karachi|PKT|-50|0||24e6","Asia/Kathmandu|+0545|-5J|0||12e5","Asia/Magadan|+10 +11|-a0 -b0|01|1QJQ0|95e3","Asia/Makassar|WITA|-80|0||15e5","Asia/Manila|PST|-80|0||24e6","Europe/Athens|EET EEST|-20 -30|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|35e5","Asia/Novosibirsk|+06 +07|-60 -70|01|1Rmk0|15e5","Asia/Pyongyang|KST KST|-90 -8u|010|1P4D0 6BA0|29e5","Asia/Rangoon|+0630|-6u|0||48e5","Asia/Sakhalin|+10 +11|-a0 -b0|01|1QyE0|58e4","Asia/Seoul|KST|-90|0||23e6","Asia/Tehran|+0330 +0430|-3u -4u|010101010101010101010|1O6ku 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Tokyo|JST|-90|0||38e6","Asia/Tomsk|+06 +07|-60 -70|01|1QXU0|10e5","Europe/Lisbon|WET WEST|0 -10|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|27e5","Atlantic/Cape_Verde|-01|10|0||50e4","Australia/Sydney|AEDT AEST|-b0 -a0|010101010101010101010|1ObQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0|40e5","Australia/Adelaide|ACDT ACST|-au -9u|010101010101010101010|1ObQu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0|11e5","Australia/Brisbane|AEST|-a0|0||20e5","Australia/Darwin|ACST|-9u|0||12e4","Australia/Eucla|+0845|-8J|0||368","Australia/Lord_Howe|+11 +1030|-b0 -au|010101010101010101010|1ObP0 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu|347","Australia/Perth|AWST|-80|0||18e5","Pacific/Easter|-05 -06|50 60|0101010101010101010|1QSr0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0|30e2","Europe/Dublin|GMT IST|0 -10|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|12e5","Etc/GMT-1|+01|-10|0||","Pacific/Fakaofo|+13|-d0|0||483","Pacific/Kiritimati|+14|-e0|0||51e2","Etc/GMT-2|+02|-20|0||","Pacific/Tahiti|-10|a0|0||18e4","Pacific/Niue|-11|b0|0||12e2","Etc/GMT+12|-12|c0|0||","Pacific/Galapagos|-06|60|0||25e3","Etc/GMT+7|-07|70|0||","Pacific/Pitcairn|-08|80|0||56","Pacific/Gambier|-09|90|0||125","Etc/UCT|UCT|0|0||","Etc/UTC|UTC|0|0||","Europe/Ulyanovsk|+03 +04|-30 -40|01|1QyL0|13e5","Europe/London|GMT BST|0 -10|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|10e6","Europe/Chisinau|EET EEST|-20 -30|010101010101010101010|1O9c0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|67e4","Europe/Moscow|MSK|-30|0||16e6","Europe/Saratov|+03 +04|-30 -40|01|1Sfz0|","Europe/Volgograd|+03 +04|-30 -40|01|1WQL0|10e5","Pacific/Honolulu|HST|a0|0||37e4","MET|MET MEST|-10 -20|010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00|","Pacific/Chatham|+1345 +1245|-dJ -cJ|010101010101010101010|1ObO0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00|600","Pacific/Apia|+14 +13|-e0 -d0|010101010101010101010|1ObO0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00|37e3","Pacific/Fiji|+13 +12|-d0 -c0|010101010101010101010|1NF20 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0|88e4","Pacific/Guam|ChST|-a0|0||17e4","Pacific/Marquesas|-0930|9u|0||86e2","Pacific/Pago_Pago|SST|b0|0||37e2","Pacific/Norfolk|+1130 +11|-bu -b0|01|1PoCu|25e4","Pacific/Tongatapu|+13 +14|-d0 -e0|010|1S4d0 s00|75e3"],links:["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Bissau","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Monrovia","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|America/Danmarkshavn","Africa/Abidjan|Atlantic/Reykjavik","Africa/Abidjan|Atlantic/St_Helena","Africa/Abidjan|Etc/GMT","Africa/Abidjan|Etc/GMT+0","Africa/Abidjan|Etc/GMT-0","Africa/Abidjan|Etc/GMT0","Africa/Abidjan|Etc/Greenwich","Africa/Abidjan|GMT","Africa/Abidjan|GMT+0","Africa/Abidjan|GMT-0","Africa/Abidjan|GMT0","Africa/Abidjan|Greenwich","Africa/Abidjan|Iceland","Africa/Algiers|Africa/Tunis","Africa/Cairo|Africa/Tripoli","Africa/Cairo|Egypt","Africa/Cairo|Europe/Kaliningrad","Africa/Cairo|Libya","Africa/Casablanca|Africa/El_Aaiun","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Ndjamena","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Juba","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|America/Juneau","America/Anchorage|America/Nome","America/Anchorage|America/Sitka","America/Anchorage|America/Yakutat","America/Anchorage|US/Alaska","America/Campo_Grande|America/Cuiaba","America/Chicago|America/Indiana/Knox","America/Chicago|America/Indiana/Tell_City","America/Chicago|America/Knox_IN","America/Chicago|America/Matamoros","America/Chicago|America/Menominee","America/Chicago|America/North_Dakota/Beulah","America/Chicago|America/North_Dakota/Center","America/Chicago|America/North_Dakota/New_Salem","America/Chicago|America/Rainy_River","America/Chicago|America/Rankin_Inlet","America/Chicago|America/Resolute","America/Chicago|America/Winnipeg","America/Chicago|CST6CDT","America/Chicago|Canada/Central","America/Chicago|US/Central","America/Chicago|US/Indiana-Starke","America/Chihuahua|America/Mazatlan","America/Chihuahua|Mexico/BajaSur","America/Denver|America/Boise","America/Denver|America/Cambridge_Bay","America/Denver|America/Edmonton","America/Denver|America/Inuvik","America/Denver|America/Ojinaga","America/Denver|America/Shiprock","America/Denver|America/Yellowknife","America/Denver|Canada/Mountain","America/Denver|MST7MDT","America/Denver|Navajo","America/Denver|US/Mountain","America/Fortaleza|America/Araguaina","America/Fortaleza|America/Argentina/Buenos_Aires","America/Fortaleza|America/Argentina/Catamarca","America/Fortaleza|America/Argentina/ComodRivadavia","America/Fortaleza|America/Argentina/Cordoba","America/Fortaleza|America/Argentina/Jujuy","America/Fortaleza|America/Argentina/La_Rioja","America/Fortaleza|America/Argentina/Mendoza","America/Fortaleza|America/Argentina/Rio_Gallegos","America/Fortaleza|America/Argentina/Salta","America/Fortaleza|America/Argentina/San_Juan","America/Fortaleza|America/Argentina/San_Luis","America/Fortaleza|America/Argentina/Tucuman","America/Fortaleza|America/Argentina/Ushuaia","America/Fortaleza|America/Bahia","America/Fortaleza|America/Belem","America/Fortaleza|America/Buenos_Aires","America/Fortaleza|America/Catamarca","America/Fortaleza|America/Cayenne","America/Fortaleza|America/Cordoba","America/Fortaleza|America/Jujuy","America/Fortaleza|America/Maceio","America/Fortaleza|America/Mendoza","America/Fortaleza|America/Paramaribo","America/Fortaleza|America/Recife","America/Fortaleza|America/Rosario","America/Fortaleza|America/Santarem","America/Fortaleza|Antarctica/Rothera","America/Fortaleza|Atlantic/Stanley","America/Fortaleza|Etc/GMT+3","America/Halifax|America/Glace_Bay","America/Halifax|America/Goose_Bay","America/Halifax|America/Moncton","America/Halifax|America/Thule","America/Halifax|Atlantic/Bermuda","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/La_Paz|America/Boa_Vista","America/La_Paz|America/Guyana","America/La_Paz|America/Manaus","America/La_Paz|America/Porto_Velho","America/La_Paz|Brazil/West","America/La_Paz|Etc/GMT+4","America/Lima|America/Bogota","America/Lima|America/Eirunepe","America/Lima|America/Guayaquil","America/Lima|America/Porto_Acre","America/Lima|America/Rio_Branco","America/Lima|Brazil/Acre","America/Lima|Etc/GMT+5","America/Los_Angeles|America/Dawson","America/Los_Angeles|America/Ensenada","America/Los_Angeles|America/Santa_Isabel","America/Los_Angeles|America/Tijuana","America/Los_Angeles|America/Vancouver","America/Los_Angeles|America/Whitehorse","America/Los_Angeles|Canada/Pacific","America/Los_Angeles|Canada/Yukon","America/Los_Angeles|Mexico/BajaNorte","America/Los_Angeles|PST8PDT","America/Los_Angeles|US/Pacific","America/Los_Angeles|US/Pacific-New","America/Managua|America/Belize","America/Managua|America/Costa_Rica","America/Managua|America/El_Salvador","America/Managua|America/Guatemala","America/Managua|America/Regina","America/Managua|America/Swift_Current","America/Managua|America/Tegucigalpa","America/Managua|Canada/Saskatchewan","America/Mexico_City|America/Bahia_Banderas","America/Mexico_City|America/Merida","America/Mexico_City|America/Monterrey","America/Mexico_City|Mexico/General","America/New_York|America/Detroit","America/New_York|America/Fort_Wayne","America/New_York|America/Indiana/Indianapolis","America/New_York|America/Indiana/Marengo","America/New_York|America/Indiana/Petersburg","America/New_York|America/Indiana/Vevay","America/New_York|America/Indiana/Vincennes","America/New_York|America/Indiana/Winamac","America/New_York|America/Indianapolis","America/New_York|America/Iqaluit","America/New_York|America/Kentucky/Louisville","America/New_York|America/Kentucky/Monticello","America/New_York|America/Louisville","America/New_York|America/Montreal","America/New_York|America/Nassau","America/New_York|America/Nipigon","America/New_York|America/Pangnirtung","America/New_York|America/Thunder_Bay","America/New_York|America/Toronto","America/New_York|Canada/Eastern","America/New_York|EST5EDT","America/New_York|US/East-Indiana","America/New_York|US/Eastern","America/New_York|US/Michigan","America/Noronha|Atlantic/South_Georgia","America/Noronha|Brazil/DeNoronha","America/Noronha|Etc/GMT+2","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Panama|America/Jamaica","America/Panama|EST","America/Panama|Jamaica","America/Phoenix|America/Creston","America/Phoenix|America/Dawson_Creek","America/Phoenix|America/Hermosillo","America/Phoenix|MST","America/Phoenix|US/Arizona","America/Santiago|Chile/Continental","America/Santo_Domingo|America/Anguilla","America/Santo_Domingo|America/Antigua","America/Santo_Domingo|America/Aruba","America/Santo_Domingo|America/Barbados","America/Santo_Domingo|America/Blanc-Sablon","America/Santo_Domingo|America/Curacao","America/Santo_Domingo|America/Dominica","America/Santo_Domingo|America/Grenada","America/Santo_Domingo|America/Guadeloupe","America/Santo_Domingo|America/Kralendijk","America/Santo_Domingo|America/Lower_Princes","America/Santo_Domingo|America/Marigot","America/Santo_Domingo|America/Martinique","America/Santo_Domingo|America/Montserrat","America/Santo_Domingo|America/Port_of_Spain","America/Santo_Domingo|America/Puerto_Rico","America/Santo_Domingo|America/St_Barthelemy","America/Santo_Domingo|America/St_Kitts","America/Santo_Domingo|America/St_Lucia","America/Santo_Domingo|America/St_Thomas","America/Santo_Domingo|America/St_Vincent","America/Santo_Domingo|America/Tortola","America/Santo_Domingo|America/Virgin","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","Antarctica/Palmer|America/Punta_Arenas","Asia/Baghdad|Antarctica/Syowa","Asia/Baghdad|Asia/Aden","Asia/Baghdad|Asia/Bahrain","Asia/Baghdad|Asia/Kuwait","Asia/Baghdad|Asia/Qatar","Asia/Baghdad|Asia/Riyadh","Asia/Baghdad|Etc/GMT-3","Asia/Baghdad|Europe/Kirov","Asia/Baghdad|Europe/Minsk","Asia/Bangkok|Antarctica/Davis","Asia/Bangkok|Asia/Ho_Chi_Minh","Asia/Bangkok|Asia/Krasnoyarsk","Asia/Bangkok|Asia/Novokuznetsk","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Saigon","Asia/Bangkok|Asia/Vientiane","Asia/Bangkok|Etc/GMT-7","Asia/Bangkok|Indian/Christmas","Asia/Dhaka|Antarctica/Vostok","Asia/Dhaka|Asia/Almaty","Asia/Dhaka|Asia/Bishkek","Asia/Dhaka|Asia/Dacca","Asia/Dhaka|Asia/Kashgar","Asia/Dhaka|Asia/Omsk","Asia/Dhaka|Asia/Qyzylorda","Asia/Dhaka|Asia/Thimbu","Asia/Dhaka|Asia/Thimphu","Asia/Dhaka|Asia/Urumqi","Asia/Dhaka|Etc/GMT-6","Asia/Dhaka|Indian/Chagos","Asia/Dubai|Asia/Muscat","Asia/Dubai|Asia/Tbilisi","Asia/Dubai|Asia/Yerevan","Asia/Dubai|Etc/GMT-4","Asia/Dubai|Europe/Samara","Asia/Dubai|Indian/Mahe","Asia/Dubai|Indian/Mauritius","Asia/Dubai|Indian/Reunion","Asia/Gaza|Asia/Hebron","Asia/Hong_Kong|Hongkong","Asia/Jakarta|Asia/Pontianak","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kamchatka|Asia/Anadyr","Asia/Kamchatka|Etc/GMT-12","Asia/Kamchatka|Kwajalein","Asia/Kamchatka|Pacific/Funafuti","Asia/Kamchatka|Pacific/Kwajalein","Asia/Kamchatka|Pacific/Majuro","Asia/Kamchatka|Pacific/Nauru","Asia/Kamchatka|Pacific/Tarawa","Asia/Kamchatka|Pacific/Wake","Asia/Kamchatka|Pacific/Wallis","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Brunei","Asia/Kuala_Lumpur|Asia/Irkutsk","Asia/Kuala_Lumpur|Asia/Kuching","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Etc/GMT-8","Asia/Kuala_Lumpur|Singapore","Asia/Makassar|Asia/Ujung_Pandang","Asia/Rangoon|Asia/Yangon","Asia/Rangoon|Indian/Cocos","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|Asia/Macao","Asia/Shanghai|Asia/Macau","Asia/Shanghai|Asia/Taipei","Asia/Shanghai|PRC","Asia/Shanghai|ROC","Asia/Tashkent|Antarctica/Mawson","Asia/Tashkent|Asia/Aqtau","Asia/Tashkent|Asia/Aqtobe","Asia/Tashkent|Asia/Ashgabat","Asia/Tashkent|Asia/Ashkhabad","Asia/Tashkent|Asia/Atyrau","Asia/Tashkent|Asia/Dushanbe","Asia/Tashkent|Asia/Oral","Asia/Tashkent|Asia/Samarkand","Asia/Tashkent|Asia/Yekaterinburg","Asia/Tashkent|Etc/GMT-5","Asia/Tashkent|Indian/Kerguelen","Asia/Tashkent|Indian/Maldives","Asia/Tehran|Iran","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Choibalsan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Vladivostok|Antarctica/DumontDUrville","Asia/Vladivostok|Asia/Ust-Nera","Asia/Vladivostok|Etc/GMT-10","Asia/Vladivostok|Pacific/Chuuk","Asia/Vladivostok|Pacific/Port_Moresby","Asia/Vladivostok|Pacific/Truk","Asia/Vladivostok|Pacific/Yap","Asia/Yakutsk|Asia/Dili","Asia/Yakutsk|Asia/Khandyga","Asia/Yakutsk|Etc/GMT-9","Asia/Yakutsk|Pacific/Palau","Atlantic/Azores|America/Scoresbysund","Atlantic/Cape_Verde|Etc/GMT+1","Australia/Adelaide|Australia/Broken_Hill","Australia/Adelaide|Australia/South","Australia/Adelaide|Australia/Yancowinna","Australia/Brisbane|Australia/Lindeman","Australia/Brisbane|Australia/Queensland","Australia/Darwin|Australia/North","Australia/Lord_Howe|Australia/LHI","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/Currie","Australia/Sydney|Australia/Hobart","Australia/Sydney|Australia/Melbourne","Australia/Sydney|Australia/NSW","Australia/Sydney|Australia/Tasmania","Australia/Sydney|Australia/Victoria","Etc/UCT|UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Athens|Asia/Nicosia","Europe/Athens|EET","Europe/Athens|Europe/Bucharest","Europe/Athens|Europe/Helsinki","Europe/Athens|Europe/Kiev","Europe/Athens|Europe/Mariehamn","Europe/Athens|Europe/Nicosia","Europe/Athens|Europe/Riga","Europe/Athens|Europe/Sofia","Europe/Athens|Europe/Tallinn","Europe/Athens|Europe/Uzhgorod","Europe/Athens|Europe/Vilnius","Europe/Athens|Europe/Zaporozhye","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Atlantic/Canary","Europe/Lisbon|Atlantic/Faeroe","Europe/Lisbon|Atlantic/Faroe","Europe/Lisbon|Atlantic/Madeira","Europe/Lisbon|Portugal","Europe/Lisbon|WET","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|Europe/Simferopol","Europe/Moscow|W-SU","Europe/Paris|Africa/Ceuta","Europe/Paris|Arctic/Longyearbyen","Europe/Paris|Atlantic/Jan_Mayen","Europe/Paris|CET","Europe/Paris|Europe/Amsterdam","Europe/Paris|Europe/Andorra","Europe/Paris|Europe/Belgrade","Europe/Paris|Europe/Berlin","Europe/Paris|Europe/Bratislava","Europe/Paris|Europe/Brussels","Europe/Paris|Europe/Budapest","Europe/Paris|Europe/Busingen","Europe/Paris|Europe/Copenhagen","Europe/Paris|Europe/Gibraltar","Europe/Paris|Europe/Ljubljana","Europe/Paris|Europe/Luxembourg","Europe/Paris|Europe/Madrid","Europe/Paris|Europe/Malta","Europe/Paris|Europe/Monaco","Europe/Paris|Europe/Oslo","Europe/Paris|Europe/Podgorica","Europe/Paris|Europe/Prague","Europe/Paris|Europe/Rome","Europe/Paris|Europe/San_Marino","Europe/Paris|Europe/Sarajevo","Europe/Paris|Europe/Skopje","Europe/Paris|Europe/Stockholm","Europe/Paris|Europe/Tirane","Europe/Paris|Europe/Vaduz","Europe/Paris|Europe/Vatican","Europe/Paris|Europe/Vienna","Europe/Paris|Europe/Warsaw","Europe/Paris|Europe/Zagreb","Europe/Paris|Europe/Zurich","Europe/Paris|Poland","Europe/Ulyanovsk|Europe/Astrakhan","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Bougainville|Antarctica/Macquarie","Pacific/Bougainville|Asia/Srednekolymsk","Pacific/Bougainville|Etc/GMT-11","Pacific/Bougainville|Pacific/Efate","Pacific/Bougainville|Pacific/Guadalcanal","Pacific/Bougainville|Pacific/Kosrae","Pacific/Bougainville|Pacific/Noumea","Pacific/Bougainville|Pacific/Pohnpei","Pacific/Bougainville|Pacific/Ponape","Pacific/Chatham|NZ-CHAT","Pacific/Easter|Chile/EasterIsland","Pacific/Fakaofo|Etc/GMT-13","Pacific/Fakaofo|Pacific/Enderbury","Pacific/Galapagos|Etc/GMT+6","Pacific/Gambier|Etc/GMT+9","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|HST","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kiritimati|Etc/GMT-14","Pacific/Niue|Etc/GMT+11","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Pitcairn|Etc/GMT+8","Pacific/Tahiti|Etc/GMT+10","Pacific/Tahiti|Pacific/Rarotonga"],countries:[]},h=r()||i,m=a()||o,g=c()||s,f=d()||l,v="GMT";p.zones.push("US/ALWAYS_EDT|EDT|40|0||23e5"),u.populateTimeZones(p),h.extend(m),h.extend(g),h.extend(f);class b{constructor(...e){0===arguments.length&&y.mockedDate?this.inst=h(y.mockedDate):arguments[0]instanceof b||arguments[0]&&arguments[0].inst&&y.isDateUtils(arguments[0].inst)?this.inst=arguments[0].inst.clone():arguments[0]&&arguments[1]&&C(arguments[1])&&arguments[1].length<"YYYY-MM-DD".length?this.inst=h(arguments[0],{format:arguments[1]}):this.inst=h(arguments[0])}format(e){if(e&&(e=e.replace("zz","z")),this.timeZone){const i=(t=this.inst,n=this.timeZone,"01"===t.format("MM")&&"12"===t.format("MM",{timeZone:n})&&"01"===t.format("DD")&&"31"===t.format("DD",{timeZone:n})?"minusYear":"12"===t.format("MM")&&"01"===t.format("MM",{timeZone:n})&&"31"===t.format("DD")&&"01"===t.format("DD",{timeZone:n})?"plusYear":null);return i?function(e,t,n){let i=e.inst.format(t,{timeZone:e.timeZone});return i="minusYear"===n?i.replace(e.inst.year(),e.inst.year()-1):i.replace(e.inst.year(),e.inst.year()+1),i}(this,e,i):this.inst.format(e,{timeZone:this.timeZone})}var t,n;return this.inst.format(e)}toISOString(e){return this.inst.isValid()?this.inst.toISOString(e):null}tz(e){return this.inst=h(this.inst.toDate()),this.timeZone=e,this}diff(e,t,n){return this.inst.diff(e.inst,t,n)}subtract(e,t){return this.inst=this.inst.subtract(e,t),this}isBefore(e){return this.inst.isBefore(e&&e.inst?e.inst:e)}toDate(){return this.inst.toDate()}startOf(e){return this.inst=this.inst.startOf(e),this}toString(){return this.inst.toString()}year(){return this.timeZone?parseInt(this.format("YYYY")):this.inst.year()}month(){return this.timeZone?parseInt(this.format("MM"))-1:this.inst.month()}date(){return this.timeZone?parseInt(this.format("DD")):this.inst.date()}hours(e){return this.hour(e)}hour(e){return"number"==typeof e?(this.inst=this.inst.set("hour",e),this):this.timeZone?parseInt(this.format("HH")):this.inst.hour()}minutes(e){return this.minute(e)}minute(e){return"number"==typeof e?(this.inst=this.inst.set("minute",e),this):this.timeZone?parseInt(this.format("mm")):this.inst.minute()}seconds(e){return this.second(e)}second(e){return"number"==typeof e?(this.inst=this.inst.set("second",e),this):this.timeZone?parseInt(this.inst.format("ss")):this.inst.second()}milliseconds(e){return this.millisecond(e)}millisecond(e){return"number"==typeof e?(this.inst=this.inst.set("millisecond",e),this):this.inst.millisecond()}get(e){switch(e){case"date":return this.date();case"year":return this.year();case"month":return this.month();case"hour":return this.hour();case"minute":return this.minute();case"second":return this.second();case"millisecond":return this.millisecond()}}set(e,t){let n;return"object"==typeof e?Object.keys(e).forEach((t=>{n=this.getValueTimeZone(t,e[t]),this.inst=this.inst.set(t,n)})):(n=this.getValueTimeZone(e,t),this.inst=this.inst.set(e,n)),this}isValid(){return this.inst.isValid()}utc(){return this.inst=this.inst.utc(),this}add(e,t){return this.inst=this.inst.add(e,t),this}clone(){const e=y(this.inst.clone());return e.timeZone=this.timeZone,e}isAfter(e){return this.inst.isAfter(e&&e.inst?e.inst:e)}daysInMonth(){return this.inst.daysInMonth()}isSame(e,t){return t?"year"===t||"years"===t?this.sameYear(e):"month"===t||"months"===t?this.sameYear(e)&&this.sameMonth(e):"day"===t||"days"===t?this.sameYear(e)&&this.sameMonth(e)&&this.sameDate(e):"hour"===t||"hours"===t?this.sameYear(e)&&this.sameMonth(e)&&this.sameDate(e)&&this.sameHour(e):("minute"===t||"minutes"===t)&&this.sameYear(e)&&this.sameMonth(e)&&this.sameDate(e)&&this.sameHour(e)&&this.sameMinute(e):this.inst.isSame(e&&e.inst?e.inst:e)}toJSON(){return this.inst.toJSON()}valueOf(){return this.inst.valueOf()}endOf(e){return this.inst=this.inst.endOf(e),this}fromNow(e){return this.inst.fromNow(e)}getValueTimeZone(e,t){if(!this.timeZone||"hour"!==e)return t;let n=h(this.inst.toDate(),{timeZone:this.timeZone}).set("hour",t);return t+(parseInt(n.format("HH"))-parseInt(n.format("HH",{timeZone:this.timeZone})))}sameYear(e){return this.year()===e.year()}sameMonth(e){return this.month()===e.month()}sameDate(e){return this.date()===e.date()}sameHour(e){return this.hour()===e.hour()}sameMinute(e){return this.minute()===e.minute()}}function y(...e){return new b(...e)}function C(e){return e!==y.ISO_8601&&"YYYY-MM-DD[T]HH:mm:ss[Z]"!==e}y.utc=(e,t,n)=>{let i;if(""===e)i=y(h("invalid"));else if(e)if(t){let n;C(t)?(n=h(e,{format:t}),n=h(n,{timeZone:v})):n=h(e,{timeZone:v}),i=y(h(n))}else i=y(h(e).utc());else i=y(h().utc());return i.timeZone=v,i},y.tz=(e,t,n,i)=>{let r;if(i){let n;n=C(t)?h(e):h(e,{format:t}),r=y(h(n,{timeZone:i})),r.timeZone=i}else r=y(h(e)),r.timeZone=t||v;return r},y.tzGuess=()=>Intl.DateTimeFormat().resolvedOptions().timeZone,y.now=()=>y(h()),y.lib=h,y.weekdays=e=>{const t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];return"number"==typeof e?t[e%t.length]:t},y.isMoment=e=>h.isDayjs(e&&e.inst?e.inst:e),y.isDateUtils=e=>h.isDayjs(e&&e.inst?e.inst:e),y.ISO_8601="YYYY-MM-DDTHH:mm:ssZ",y.mockedDate=null;const S=y},93996:(e,t,n)=>{"use strict";n.d(t,{M:()=>a});var i=n(30173),r=n(61556),o=n(57826);let a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({providers:[i.U],imports:[[r.d]]}),e})()},30173:(e,t,n)=>{"use strict";n.d(t,{U:()=>p});var i=n(57826),r=n(85089),o=n(36797),a=n(82846),s=n(81899),c=n(77247),l=n(6856);const d=[{regex:"SE (\\d+[\\.\\d]+)",name:"Sogou-Explorer"},{regex:"M?QQBrowser/Mini([\\.\\d]+)?",name:"QQ-Browser-Mini"},{regex:"M?QQBrowser(?:/([\\.\\d]+))?",name:"QQ-Browser"},{regex:"(?:Maxthon|MxBrowser)[ /](\\d+[\\.\\d]+)",name:"Maxthon"},{regex:"(?:Maxthon|MyIE2)",name:"Maxthon"}];var u=n(1135);let p=(()=>{class e{constructor(t,n,i,r,o,a){this.device=t,this.contentVariant=n,this.cookieStorageService=i,this.windowService=r,this.platformId=o,this.request=a,this.deviceOS="";const s=(0,l.isPlatformServer)(this.platformId)?this.request.headers[e.DEVICE_HEADER_NAME]:this.cookieStorageService.get(e.DEVICE_COOKIE_NAME);if(s&&"Normal"!=s.split("|")[0]){const e=s.split("|")[0];this.isDesktopDevice="Desktop"==e,this.isMobileDevice="Mobile"==e,this.isTabletDevice="Mobile"==e}else this.isDesktopDevice=this.device.isDesktop(),this.isMobileDevice=this.device.isMobile(),this.isTabletDevice=this.device.isTablet();this.setDeviceOS(),this.windowService.getIsPlatformBrowser()&&(this.window=this.windowService.window())}isDesktop(){return this.isDesktopDevice}isMobile(){return this.isMobileDevice}isTablet(){return this.isTabletDevice}isPWA(){return!!this.windowService.window().navigator.standalone}getDeviceType(){return this.isMobile()?"mobile":this.isTablet()?"tablet":"desktop"}getDeviceOS(){return this.deviceOS}setDeviceOS(){this.deviceOS=this.getOperatingSystem()}getOperatingSystem(){switch(this.contentVariant.cookieVariant.os){case"w":return o.U.WINDOWS;case"mac":return o.U.MAC;case"a":return o.U.ANDROID;case"li":return o.U.LINUX;case"ios":return o.U.IOS;default:return o.U.UNKNOWN}}getBrowser(){return this.device.browser}getBrowserNameExtended(){const e=this.device.userAgent,t=d.find((t=>this.userAgentRegexChecker(t.regex,e)));return t?t.name.toLowerCase():this.getBrowser().toLocaleLowerCase()}getBrowserVersion(){return this.device.browser_version}getOSVersion(){return this.device.os_version}getScreenWidth(){return void 0===this.window?"":this.window.screen.width.toString()}getScreenHeight(){return void 0===this.window?"":this.window.screen.height.toString()}userAgentRegexChecker(e,t){const n=`(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:${e})`;try{return RegExp(n,"i").test(t)}catch{return!1}}}return e.DEVICE_COOKIE_NAME="Device-Type",e.DEVICE_HEADER_NAME="x-device-type",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](u.x0),i["ɵɵinject"](r.u),i["ɵɵinject"](a.G),i["ɵɵinject"](s.u),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](c.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},36797:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});var i=(()=>(function(e){e.WINDOWS="windows",e.WINDOWS_PHONE="windows-phone",e.MAC="macos",e.IOS="ios",e.ANDROID="android",e.LINUX="linux",e.UNKNOWN="unknown"}(i||(i={})),i))()},25:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var i=n(99604),r=n(61556),o=n(79346),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({providers:[i.p],imports:[[r.d,o.C]]}),e})()},99604:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var i=n(45965),r=n(57826);let o=(()=>{class e{constructor(e){this.siteConfigService=e}getDiscourseForumUrl(e,t,n){if(this.shouldNavigateToForum(t))return this.buildForumUrl(e,t,n)}shouldNavigateToForum(e){return e.returnUrl&&e.sig&&e.sso}buildForumUrl(e,t,n){const i=this.buildServicestUrl(e),{returnUrl:r,sso:o,sig:a}=t;let s=`${i}${r}${this.getFirstParametersDelimeter(r)}sso=${o}&sig=${a}`;return n?s+`&username=${n}`:s}buildServicestUrl(t){return t.protocol+"//"+this.siteConfigService.getSiteConfigProp(e.SERVICE_DOMAIN)}getFirstParametersDelimeter(e){return-1===e.indexOf("?")?"?":"&"}}return e.SERVICE_DOMAIN="serviceDomain",e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.r))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},61893:(e,t,n)=>{"use strict";n.d(t,{S:()=>c});var i=n(73753),r=n(42998),o=n(45965),a=n(81516),s=n(57826);let c=(()=>{class e{constructor(e,t,n){this.firstTimeVisitorService=e,this.siteConfigService=t,this.router=n}canActivate(e,t){return this.siteConfigService.getSiteConfigProp("firstTimeVisitorEnabled")?this.firstTimeVisitorService.isFirstTime&&this.router.events.pipe((0,r.filter)((e=>e instanceof i.ResolveEnd)),(0,r.take)(1)).subscribe((e=>{this.onRootPage(t)?this.router.events.pipe((0,r.filter)((e=>e instanceof i.NavigationStart)),(0,r.take)(1)).subscribe((e=>{this.firstTimeVisitorService.setVisited()})):this.firstTimeVisitorService.setVisited()})):this.firstTimeVisitorService.setVisited(),!0}onRootPage(e){let t=e.url,n=!1;return/(\?)(.*)/.test(e.url)&&(n=this.isAnOverlay(e.url),t=e.url.replace(/(\?)(.*)/,"")),"/"===t&&!n}isAnOverlay(e){return/overlay=/.test(e)}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](a.HV),s["ɵɵinject"](o.r),s["ɵɵinject"](i.Router))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},94410:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var i=n(81516),r=n(61893),o=n(57826);let a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({providers:[i.HV,r.S],imports:[[]]}),e})()},81516:(e,t,n)=>{"use strict";n.d(t,{HV:()=>u});var i=n(6856),r=n(57826),o=n(4309),a=n(55640),s=n(82846),c=n(4473);const l="ftv",d="VISITED";let u=(()=>{class e{constructor(e,t,n,r){if(this.cookieStorageService=e,this.browserStorageService=t,this.platformId=n,this.transferStateServiceCache=r,(0,i.isPlatformServer)(this.platformId))this.cookieStorageService.get(d)?this.firstTimeVisitor=new o.BehaviorSubject(!1):(r.saveData(l,!0),this.firstTimeVisitor=new o.BehaviorSubject(!0));else if((0,i.isPlatformBrowser)(this.platformId))if(this.transferStateServiceCache.isFromUniversal())if(this.transferStateServiceCache.getData(l)){this.firstTimeVisitor=new o.BehaviorSubject(!0),this.cookieStorageService.set(d,"true");const e=(new Date).getTime().toString();this.browserStorageService.set(l,e)}else this.firstTimeVisitor=new o.BehaviorSubject(!1);else{if(this.browserStorageService.get(l))this.firstTimeVisitor=new o.BehaviorSubject(!1);else{this.firstTimeVisitor=new o.BehaviorSubject(!0);const e=(new Date).getTime().toString();this.browserStorageService.set(l,e)}this.cookieStorageService.get(d)||this.cookieStorageService.set(d,"true")}}get isVisited(){return!this.firstTimeVisitor.getValue()}get isFirstTime(){return this.firstTimeVisitor.getValue()}setVisited(){this.firstTimeVisitor.getValue()&&this.firstTimeVisitor.next(!1)}getFirstTimeVisited(){return this.firstTimeVisitor.asObservable()}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](s.G),r["ɵɵinject"](a.z),r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](c.m))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},56614:(e,t,n)=>{"use strict";n.d(t,{F:()=>l});var i=n(55640),r=n(82846),o=n(88323),a=n(79308),s=n(49379),c=n(57826);let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c["ɵɵdefineNgModule"]({type:e}),e.ɵinj=c["ɵɵdefineInjector"]({providers:[i.z,r.G,o.n,a.u,s.M]}),e})()},55640:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var i=n(82846),r=n(88323),o=n(57826);let a=(()=>{class e{constructor(e,t){this.cookieStorageService=e,this.localStorageService=t,t.isSupported()?this.storagePersistent=this.localStorageService:this.storagePersistent=this.cookieStorageService}get(e){return this.storagePersistent.get(e)}set(e,t){this.storagePersistent.set(e,t)}setWithExpiration(e,t,n){this.storagePersistent.setWithExpiration(e,t,n)}remove(e){return this.storagePersistent.remove(e)}getAndRemove(e){let t=this.get(e);return t&&this.remove(e),t}isSupported(){return this.storagePersistent.isSupported()}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.G),o["ɵɵinject"](r.n))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},82846:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var i=n(57826),r=n(6856),o=n(49379),a=n(77247);let s=(()=>{class e{constructor(e,t,n,i){this.platformId=e,this.hostnameService=t,this.document=i,this.obtainDomain=(e=this.hostnameService.hostname)=>e?e.substr(e.indexOf(".")+1):"",n&&(this.cookies=n.cookies)}get(e){if((0,r.isPlatformServer)(this.platformId)){if(this.cookies&&void 0!==this.cookies[e])return this.cookies[e]}else if(this.document&&this.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))return this.document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"))[2];return null}set(e,t,n="/",i=this.obtainDomain(),o,a,s,c){if((0,r.isPlatformBrowser)(this.platformId)&&this.document){const r=new Date;a?r.setDate(r.getDate()+a):s?r.setMinutes(r.getMinutes()+s):r.setFullYear(r.getFullYear()+10);const l=e+"="+t+"; path="+n+"; domain="+i+";",d=c?`SameSite=${c};`:"SameSite=Lax;";"SameSite=None;"!==d&&"SameSite=Lax;"!==d||(o="http:"!==this.location().protocol);const u=o&&"JOINED"!==e?"":" expires="+r.toUTCString()+";",p=o?" Secure;":"";this.document.cookie=l+u+p+d}}setWithExpiration(e,t,n){this.set(e,t,void 0,void 0,void 0,n)}remove(e,t="/",n=this.obtainDomain(),i=!0){if((0,r.isPlatformBrowser)(this.platformId)&&this.document){let r=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path="+t+";";this.document.cookie=i?r+" domain="+n+";":r}}isSupported(){let e;try{this.document.cookie="key=testing",e=this.document.cookie.length>0,this.document.cookie="key=testing; expires=Thu, 01 Jan 1970 00:00:01 GMT"}catch(e){return!1}return e}location(){return this.document.location}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID,8),i["ɵɵinject"](o.M,8),i["ɵɵinject"](a.Z,8),i["ɵɵinject"](r.DOCUMENT,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},85089:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var i=n(82846),r=n(57826);let o=(()=>{class e{constructor(t){this.cookieVariant={};const n=t.get(e.COOKIE_VARIANT);n&&n.split("|").forEach((e=>{const[t,n]=e.split(":");this.cookieVariant[t]=n}))}toString(){let e=[];return Object.keys(this.cookieVariant).filter((e=>null!=this.cookieVariant[e]&&this.cookieVariant[e].toString())).forEach((t=>e.push(`${t}:${this.cookieVariant[t]}`))),e.join("|")}}return e.COOKIE_VARIANT="variant",e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.G))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},61556:(e,t,n)=>{"use strict";n.d(t,{d:()=>z});var i=n(81899),r=n(99199),o=n(55640),a=n(57826);let s=(()=>{class e{navigator(){return navigator}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var c=n(82846),l=n(85089),d=n(88323),u=n(36957),p=n(15982);let h=(()=>{class e{constructor(e){this.titleService=e}setTitle(e){this.titleService.setTitle(e)}getTitle(){return this.titleService.getTitle()}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](p.Title))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const m={charset:"string",content:"string",httpEquiv:"string",id:"string",itemprop:"string",name:"string",property:"string",scheme:"string",url:"string"};let g=(()=>{class e{constructor(e,t){this.metaService=e,this.windowService=t}putTags(e){e&&e.forEach((e=>{this.metaService.updateTag(e)}))}getTags(){let e=this.windowService.document().head.getElementsByTagName("meta"),t=[];for(let n=0;n<e.length;n++)t.push(this.toDefinition(e.item(n)));return t}restoreTags(e){this.removeAllTags(),e&&this.metaService.addTags(e)}removeAllTags(){let e=this.windowService.document().head.getElementsByTagName("meta");for(let t=e.length-1;t>=0;t--)this.metaService.removeTagElement(e.item(t))}toDefinition(e){let t={};return Object.keys(m).forEach((n=>{e.hasAttribute(n)&&(t[n]=e[n])})),t}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](p.Meta),a["ɵɵinject"](i.u))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var f=n(49379),v=n(73753);const b=/\(.*?\)/;let y=(()=>{class e{constructor(e){this.router=e}isSameOverlay(e){const t=this.router.parseUrl(e),n=t.queryParams.overlay,i=t.root.children.overlay;return n===(!!i&&i.segments[0].path)}urlHasOutlet(e){return b.test(e)}getPrimaryCleanPath(e){const t=this.router.parseUrl(e);return t.root.children.primary&&t.root.children.primary.toString()}getNotOverlayQueryParams(e){const t=this.router.parseUrl(e);return delete t.queryParams.overlay,t.queryParams}transformOutletToPath(e){const t=this.router.parseUrl(e);return t.root.children.overlay?t.root.children.overlay.toString():""}transformOverlayInQueryParam(e){const t=e.root.children.overlay.toString();return delete e.root.children.overlay,e.queryParams.overlay=t,e}urlWithoutOverlayOutlet(e){const t=this.router.parseUrl(e),n=this.transformOverlayInQueryParam(t);return this.router.serializeUrl(n)}urlHasOverlayParam(e){return!!this.router.parseUrl(e).queryParams.overlay}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](v.Router))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var C=n(96299),S=n(80112),x=n(6856),w=n(25595),E=n(26682),I=n.n(E),P=n(61235),T=n.n(P),_=n(42482),M=n.n(_),O=n(88330),A=n.n(O),k=n(34711),j=n.n(k),N=n(30598),R=n.n(N),D=n(57429),L=n.n(D),F=n(34032),B=n.n(F),U=n(91335),V=n.n(U),G=n(20014),H=n.n(G);(0,x.registerLocaleData)(I()),(0,x.registerLocaleData)(T()),(0,x.registerLocaleData)(M()),(0,x.registerLocaleData)(A()),(0,x.registerLocaleData)(j(),R()),(0,x.registerLocaleData)(L(),B()),(0,x.registerLocaleData)(V()),(0,x.registerLocaleData)(H());let z=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({providers:[i.u,r.$,o.z,s,c.G,l.u,d.n,u.T,h,g,f.M,y,C.q,S.z,w.O]}),e})()},49379:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var i=n(57826),r=n(6856),o=n(81899),a=n(77247);let s=(()=>{class e{constructor(e,t,n){this.platformId=e,this.windowService=t,this.request=n}get hostname(){return(0,r.isPlatformServer)(this.platformId)&&this.request?this.request.hostname:this.windowService.location().hostname}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](o.u,8),i["ɵɵinject"](a.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},88323:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var i=n(57826),r=n(6856);const o="Universal skipped request: LocalStorageService";let a=(()=>{class e{constructor(e){this.platformId=e,this.isLocalStorageSupported=this.isSupported()}get(e){if((0,r.isPlatformBrowser)(this.platformId)&&this.isLocalStorageSupported)return this.processValue(e,localStorage.getItem(e));console.warn(o+".get("+e+")")}set(e,t){return(0,r.isPlatformBrowser)(this.platformId)&&this.isLocalStorageSupported?(localStorage.setItem(e,this.convertToJson(t)),!0):(console.warn(o+".set("+e+","+t+")"),!1)}setWithExpiration(e,t,n){return(0,r.isPlatformBrowser)(this.platformId)&&this.isLocalStorageSupported?(localStorage.setItem(e,this.convertToJson(t,Date.now()+864e5*n)),!0):(console.warn(o+".set("+e+","+t+")"),!1)}remove(e){(0,r.isPlatformBrowser)(this.platformId)&&this.isLocalStorageSupported?localStorage.removeItem(e):console.warn(o+".remove("+e+")")}isSupported(){let e="test";try{localStorage.setItem(e,e),localStorage.removeItem(e)}catch(e){return!1}return!0}convertToJson(e,t){return JSON.stringify({exp:t,value:e})}processValue(e,t){if(!t)return t;try{let n=JSON.parse(t);return n.exp&&Date.now()>=n.exp?(this.remove(e),null):n.value?n.value:t}catch(e){return t}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},25595:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var i=n(45965),r=n(57826);let o=(()=>{class e{constructor(e){this.siteConfigService=e}getLocaleTime(e){return this.siteConfigService&&this.siteConfigService.getSiteConfigProp("localeTime")||e}getSiteConfigService(){return this.siteConfigService}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.r,8))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},96299:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var i=n(81899),r=n(82846),o=n(57826);let a=(()=>{class e{constructor(e,t){this.windowService=e,this.cookieStorageService=t}setPreviewCookieName(e){this.previewCookieName=e}isPreviewMode(){return!!this.cookieStorageService.get(this.previewCookieName)||-1!==this.getURIDomain().indexOf("preview")}getURIDomain(){return this.windowService.getIsPlatformBrowser()&&this.windowService.getHostname()?this.windowService.getHostname():"localhost"}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.u),o["ɵɵinject"](r.G))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},36957:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var i=n(57826);let r=(()=>{class e{removeQueryParams(e){return e.split(/[?#]/)[0]+(e.split("#")[1]?"#"+e.split("#")[1]:"")}getPath(e){return e.split(/[?#]/)[0]}getFragment(e){return e.split(/[#]/)[1]}getUrlQueryParam(e,t){const n=(e=e.substring(1)).split("&");for(let e=0;e<n.length;e++){const i=n[e].split("=");if(decodeURIComponent(i[0])===t)return decodeURIComponent(i[1])}return null}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},79308:(e,t,n)=>{"use strict";n.d(t,{O:()=>a,u:()=>s});var i=n(57826),r=n(6856);const o="Universal unsupported request: SessionStorageService",a="casinoCategoryUrl";let s=(()=>{class e{constructor(e){this.platformId=e}get(e){if((0,r.isPlatformBrowser)(this.platformId))return sessionStorage.getItem(e)}set(e,t){(0,r.isPlatformBrowser)(this.platformId)?sessionStorage.setItem(e,t):console.info(o+".set("+e+","+t+")")}remove(e){(0,r.isPlatformBrowser)(this.platformId)?sessionStorage.removeItem(e):console.info(o+".remove("+e+")")}setWithExpiration(e,t,n){throw"Not implemented method"}isSupported(){let e="test";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}}return e.BRAND_KEY="brand",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},80112:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var i=n(45965),r=n(57826);let o=(()=>{class e{constructor(e){this.siteConfigService=e}addUrlPrefix(e){const t=this.getUrlPrefix();return!e||this.startsWithPrefix(e,t)?e:t+e}removeUrlPrefix(e){const t=this.getUrlPrefix();return this.startsWithPrefix(e,t)?e.substr(t.length):e}getUrlPrefix(){const e=this.siteConfigService.getSiteConfigProp("urlPrefix");return e?"/"+e:""}startsWithPrefix(e,t){const n=new RegExp(`^${t}(\\/|\\?|$)`);return e&&n.test(e)}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.r))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},99199:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,X:()=>a});var i=n(57826),r=n(81899),o=n(6856);let a=(()=>{class e{constructor(e){this.action=e}}return e.SHOW_LOBBY="showLobby",e.SHOW_DEPOSIT="showDeposit",e.SHOW_LOGIN="showLogin",e.SHOW_JOIN="showJoin",e})(),s=(()=>{class e{constructor(e,t,n){this.window=e,this.ngZone=t,this.platformId=n,this.events=new i.EventEmitter,this.userInfoObjectName="UserInfo",(0,o.isPlatformBrowser)(this.platformId)&&(this.window.window()[this.userInfoObjectName]=this.window.window()[this.userInfoObjectName]||{},this.userInfoObject=this.window.window()[this.userInfoObjectName],this.exposeGameLinksToPublic())}emitGameLinksEvent(e){this.ngZone.run((()=>this.events.emit(new a(e))))}exposeGameLinksToPublic(){["showLobby","showDeposit","showLogin","showJoin"].forEach((e=>this.userInfoObject[e]=this.emitGameLinksEvent.bind(this,e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](r.u),i["ɵɵinject"](i.NgZone),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},81899:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var i=n(57826),r=n(6856);let o=(()=>{class e{constructor(t){return this.platformId=t,e.instance||(e.instance=this),e.instance.platformId=t,e.instance}window(){return this.assertIsPlatformBrowser(),window}location(){return this.window().location}document(){return this.window().document}getDocumentReadyState(){return this.window().document.readyState}origin(){return this.location().origin}setLocationUrl(e){this.locationUrl=e}getLocationUrl(){return this.locationUrl}timing(){return this.window().performance&&this.window().performance.timing}addEventListener(e,t,n){this.getIsPlatformBrowser()&&this.window().addEventListener(e,t,n)}assertIsPlatformBrowser(){if(!(0,r.isPlatformBrowser)(this.platformId))throw new Error("Window is NOT available for Universal")}appendFunction(e,t){return!!(0,r.isPlatformBrowser)(this.platformId)&&(this.window()[e]=t,!0)}getHostname(){return this.location().hostname}getHostnameWithoutWWW(){return this.getHostname().replace(/^www\./,"")}getIsPlatformBrowser(){return(0,r.isPlatformBrowser)(this.platformId)}scrollTo(e,t){return!!this.getIsPlatformBrowser()&&("number"==typeof e&&"number"==typeof t?(this.window().scrollTo(e,t),[e,t]):(this.window().scrollTo(e),e))}injectScript(e,t,n=!0){const i=this.generateScript();return this.getIsPlatformBrowser()?(t&&t.forEach((e=>{i.setAttribute(e,"")})),n?i.setAttribute("src",e):i.text=e,this.document().getElementsByTagName("head")[0].appendChild(i),i):i}injectScriptCode(e){const t=this.generateScript();return this.getIsPlatformBrowser()?(t.innerText=e,this.document().getElementsByTagName("body")[0].appendChild(t),t):t}getUrlSearchParams(){return(0,r.isPlatformBrowser)(this.platformId)?new URLSearchParams(this.location().search):new URLSearchParams}getProtocolOrDefault(){return this.getIsPlatformBrowser()?this.location().protocol+"//":"https://"}injectIframe(e,t){const n=document.createElement("iframe");return n.setAttribute("src",e),t&&(n.style.height=t.height,n.style.width=t.width,n.style.display=t.display,n.style.visibility=t.visibility),this.document().getElementsByTagName("body")[0].appendChild(n),n}generateScript(){if(!this.getIsPlatformBrowser())return null;const e=this.document().createElement("script");return e.setAttribute("async",""),e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},50371:(e,t,n)=>{"use strict";n.d(t,{D:()=>a,w:()=>o});var i=n(6856),r=n(57826);class o{}let a=(()=>{class e extends o{constructor(e){super(),this.platformId=e}get nativeGlobal(){return(0,i.isPlatformBrowser)(this.platformId)?window:(0,i.isPlatformServer)(this.platformId)?{}:void 0}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](r.PLATFORM_ID))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},57685:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var i=n(57826),r=n(50371);let o=(()=>{class e{static forBrowser(){return{ngModule:e,providers:[{provide:r.w,useClass:r.D}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})()},77624:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(4309),r=n(54679);class o{constructor(e,t){this.status=e instanceof r.HM&&e.status?e.status.toString():"No info",this.url=e instanceof r.HM&&e.url?e.url:t&&t.url?t.url:"No info",this.info=this.stringify(e)}stringify(e){const t=e instanceof Error&&e.message?{errorMessage:e.message}:e;return JSON.stringify(t,(()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}})())}getStatus(){return this.status}getUrl(){return this.url}getInfo(){return this.info}}var a=n(57826);let s=(()=>{class e{constructor(){this.error$=new i.ReplaySubject}getError(){return this.error$}notifyError(e,t){this.shouldNotify(e)&&this.error$.next(function(e,t){return new o(e,t)}(e,t))}shouldNotify(e){return!(e.status&&404===e.status)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},79952:(e,t,n)=>{"use strict";n.d(t,{t:()=>c});var i=n(57826),r=n(6856),o=n(80218),a=n(26709),s=n(24249);let c=(()=>{class e{constructor(e,t,n,i){this.elementRef=e,this.cdnService=t,this.imageLazyloadService=n,this.platformID=i,this.id=Math.floor(899999*Math.random())+1e5,this.imageDirectiveName=`imageDirective${this.id}`,this.imageLazyloadService.isImageLazyloadEnabled()||this.elementRef.nativeElement.setAttribute("loading","lazy")}set setSrc(e){e&&(this.src=this.checkSlashes(this.recalculateImageSrc(encodeURI(e))))}applyDefaultImage(){this.defaultImage&&this.elementRef.nativeElement.setAttribute("src",this.defaultImage)}ngOnChanges(e){this.src&&(this.imageLazyloadService.isImageLazyloadEnabled()?(this.imageLazyloadService.setInitAttributes(this.elementRef.nativeElement,this.src),this.applyDefaultImage()):this.elementRef.nativeElement.setAttribute("src",this.src))}ngOnInit(){if(this.imageLazyloadService.isImageLazyloadEnabled()&&!(0,r.isPlatformServer)(this.platformID)){const e=this.elementRef.nativeElement.getBoundingClientRect();this.imageLazyloadService.initialiseIntersectionObserver(this.imageDirectiveName,!0,e),this.imageLazyloadService.intersectingPositions(this.elementRef.nativeElement,e),this.imageLazyloadService.intersectionObserve(`imageDirective${this.id}`,[this.elementRef.nativeElement])}}recalculateImageSrc(e){return this.isPlaceHolderSrc(e)?e:this.cdnService.getCdnUrlImage(e)}isPlaceHolderSrc(e){return e.startsWith(a.r)}checkSlashes(e){return this.isDataURI(e)?e:this.removeMultipleSlashes(e)}removeMultipleSlashes(e){let t="";if(this.isAbsoluteUrl(e)){const n=e.split("://");t=n[0]+"://",e=n[1]}return t+e.replace(/(\/){2,}/gi,"/")}isDataURI(e){return 0==e.lastIndexOf("data:image",0)}isAbsoluteUrl(e){return e.split("://").length>1}ngOnDestroy(){this.imageLazyloadService.isImageLazyloadEnabled()&&this.imageLazyloadService.intersectionObserverDisconnect(this.imageDirectiveName)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](o.U),i["ɵɵdirectiveInject"](s.h),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxImage",""]],inputs:{defaultImage:"defaultImage",setSrc:["src","setSrc"]},features:[i["ɵɵNgOnChangesFeature"]]}),e})()},24249:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var i=n(57826),r=n(6856),o=n(42998),a=n(4309),s=n(45965),c=n(84860),l=n(81899);let d=(()=>{class e{constructor(e,t,n){this.siteConfigService=e,this.windowService=t,this.platformID=n,this.imageIntersectionObservers=[],this.intersectionStopper$=new a.Subject,this.intersectingPositions$=new a.Subject}initialiseIntersectionObserver(e,t=!0,n=null){if(!(0,r.isPlatformServer)(this.platformID)&&!this.imageIntersectionObservers[e]){const i={root:null,rootMargin:`0px 0px ${this.getVerticalPixelDistance()}px 0px`};this.imageIntersectionObservers[e]=new IntersectionObserver(((e,i)=>{e.forEach((e=>{if(e.isIntersecting){n&&this.intersectingPositions$.next({x:n.x,y:n.y});const r=e.target;this.setLoadedAttributes(r),t&&i.unobserve(r)}}))}),i)}}isImageLazyloadEnabled(){return this.siteConfigService.isFeaturePresent(c.L.imageLazyload)}intersectionObserve(e,t){(0,r.isPlatformServer)(this.platformID)||t.forEach((t=>{this.imageIntersectionObservers[e].observe(t)}))}intersectionObserverDisconnect(e){(0,r.isPlatformServer)(this.platformID)||(this.imageIntersectionObservers[e].disconnect(),this.intersectionStopper$.next())}setInitAttributes(e,t){e.classList.add("lazyload"),e.removeAttribute("src"),e.setAttribute("data-src",t)}setLoadedAttributes(e){e.classList.remove("lazyload"),e.classList.add("lazyloaded");const t=e.getAttribute("data-src"),n=e.getAttribute("src");t&&n!==t&&e.setAttribute("src",t)}intersectingPositions(e,t){(0,r.isPlatformServer)(this.platformID)||this.intersectingPositions$.pipe((0,o.distinctUntilChanged)(),(0,o.takeUntil)(this.intersectionStopper$)).subscribe((n=>{t.x>n.x&&t.x<n.x+this.getHorizontalPixelDistance()&&t.y===n.y&&this.setLoadedAttributes(e)}))}getHorizontalPixelDistance(){return this.windowService.window().navigator.userAgent.includes("Mobile")?500:300}getVerticalPixelDistance(){return this.windowService.window().navigator.userAgent.includes("Mobile")?300:200}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](s.r),i["ɵɵinject"](l.u),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},6235:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,f:()=>c});var i=n(11198),r=n(56614),o=n(24249),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({providers:[o.h],imports:[[i.$,r.F]]}),e})();const c="/content/images/transparent.png"},26709:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,r:()=>s});var i=n(57826),r=n(6856),o=n(80218),a=n(24249);const s="data:image/svg+xml;base64,";let c=(()=>{class e{constructor(e,t,n){this.platformID=e,this.cdnService=t,this.imageLazyloadService=n}getPlaceholderImage(e=302,t=230,n="#F0F0F0"){let i=`<svg\n                version="1.0"\n                xmlns="http://www.w3.org/2000/svg"\n                width="${e}px"\n                height="${t}px"\n                viewBox="0 0 ${e} ${t}"\n                preserveAspectRatio="xMidYMid meet">\n                    <rect fill="${n}" stroke-width="0" height="${t}" width="${e}" y="0" x="0"></rect>\n            </svg>`;return(0,r.isPlatformServer)(this.platformID)?s+Buffer.from(i).toString("base64"):s+btoa(i)}replaceImages(e,t=!1){e=e.replace(/<img(.*?) (?:\w+-)?src=(?:"([^"]*?)"|'([^']*?)')/g,((e,n,i,r)=>{const o=i?'"':"'",a=r||i;return`<img ${t?"data-src":"src"}=${o}${this.cdnService.getCdnUrlImage(a)}${o} ${n}`}));const n=this.imageLazyloadService.isImageLazyloadEnabled()?"class":"loading",i=new RegExp(`<img((?:(?!${n}|>).)*)(?:w+-)?(?:${n}=(?:"([^"]*?)"|'([^']*?)'))?`,"g");return e.replace(i,((e,n,i,r)=>{let o=i?'"':"'",a=r||i;return this.imageLazyloadService.isImageLazyloadEnabled()?(a?a=a.replace("lazyload","")+(t?" lazyload":" lazyloaded"):(o='"',a=t?"lazyload":"lazyloaded"),`<img class=${o}${a}${o} ${n}`):`<img loading="lazy" ${n}`}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](o.U),i["ɵɵinject"](a.h))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},22291:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>i.$,AJ:()=>r.A,f3:()=>i.f});var i=n(6235),r=(n(79952),n(26709));n(24249)},49485:(e,t,n)=>{"use strict";n.d(t,{s:()=>d});var i=n(6856),r=n(76771),o=n(50536),a=n(86789),s=n(84704),c=n(57685),l=n(57826);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l["ɵɵdefineNgModule"]({type:e}),e.ɵinj=l["ɵɵdefineInjector"]({providers:[r.F],imports:[[i.CommonModule,o.j,a.T2,s.a,c.z.forBrowser()]]}),e})()},76771:(e,t,n)=>{"use strict";n.d(t,{F:()=>d});var i=n(23550),r=n(4309),o=n(42998),a=n(96299),s=n(45965),c=n(47975),l=n(57826);class d{constructor(e,t,n){this.http=e,this.siteConfigService=t,this.previewModeService=n,this.languagesConfigProp="languages",this.languagesPublishedConfigProp="languagesPublished",n&&n.setPreviewCookieName(d.PREVIEW_COOKIE_KEY)}getAvailableLanguages(){return this.getAvailableLanguagesCache||(this.getAvailableLanguagesCache=(0,r.defer)((()=>{let e=this.siteConfigService.getSiteConfigProp(this.getLanguageProperty());return e&&Array.isArray(e)&&e.length>0?(0,r.of)(e.map((e=>new c.j(e)))):this.http.get(d.availableLanguagesUrl).pipe((0,o.map)((e=>e.map((e=>new c.j(e))))))})).pipe((0,o.publishReplay)(1,d.AVAILABLES_LANGUAGE_CACHE_TTL),(0,o.refCount)(),(0,o.take)(1),(0,o.map)((e=>{if(e instanceof Error)throw e;return e})))),this.getAvailableLanguagesCache}getLanguageProperty(){return this.previewModeService.isPreviewMode()?this.languagesConfigProp:this.languagesPublishedConfigProp}}d.availableLanguagesUrl="/api/v1/languages",d.PREVIEW_COOKIE_KEY="bxPreviewLanguages",d.AVAILABLES_LANGUAGE_CACHE_TTL=Number.POSITIVE_INFINITY,d.ɵfac=function(e){return new(e||d)(l["ɵɵinject"](i.HttpClient),l["ɵɵinject"](s.r),l["ɵɵinject"](a.q))},d.ɵprov=l["ɵɵdefineInjectable"]({token:d,factory:d.ɵfac})},47975:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,j:()=>r});const i="language";class r{constructor(e,t,n,i){this.code=e,this.label=t,this.codeLabel=n,this.icon=i}}},5875:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var i=n(57826),r=n(82846),o=n(77247),a=n(6856);let s=(()=>{class e{constructor(e,t,n){this.cookieStorageService=e,this.platformId=t,this.request=n,this.priority=1}get language(){const t=this.cookieStorageService.get(e.COOKIE_NAME);return(0,a.isPlatformServer)(this.platformId)&&!t?this.request.headers["x-lang"]:t}set language(t){this.cookieStorageService.remove(e.COOKIE_NAME,"/",""),this.cookieStorageService.set(e.COOKIE_NAME,t)}removeLanguageCookie(){this.cookieStorageService.remove(e.COOKIE_NAME,"/","")}}return e.COOKIE_NAME="LANG",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](r.G),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](o.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},50536:(e,t,n)=>{"use strict";n.d(t,{j:()=>l});var i=n(48108),r=n(5875),o=n(40966),a=n(61556),s=n(56614),c=n(57826);let l=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.T,r.g,o.r]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c["ɵɵdefineNgModule"]({type:e}),e.ɵinj=c["ɵɵdefineInjector"]({imports:[[a.d,s.F]]}),e})()},40966:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var i=n(57826),r=n(77247),o=n(6856),a=n(81899);let s=(()=>{class e{constructor(e,t,n){this.windowService=e,this.platformId=t,this.request=n,this.priority=0}get language(){return(0,o.isPlatformServer)(this.platformId)&&this.request&&this.request.params?this.request.params[e.PARAM_NAME]||null:(0,o.isPlatformBrowser)(this.platformId)&&this.windowService.location&&this.windowService.location()&&this.windowService.location().search&&new URLSearchParams(this.windowService.location().search).get(e.PARAM_NAME)||null}}return e.PARAM_NAME="lang",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](a.u),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](r.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},88401:(e,t,n)=>{"use strict";n.d(t,{S:()=>g});var i=n(73753),r=n(4309),o=n(42998),a=n(12596),s=n(76771),c=n(47975),l=n(40891),d=n(48108),u=n(57826),p=n(6856),h=n(20843);function m(e,t){if(1&e){const e=u["ɵɵgetCurrentView"]();u["ɵɵelementStart"](0,"bx-dropdown",1),u["ɵɵlistener"]("change",(function(t){return u["ɵɵrestoreView"](e),u["ɵɵnextContext"]().notifyLanguageChanged(t)})),u["ɵɵtext"](1,"\n        "),u["ɵɵelementEnd"]()}if(2&e){const e=u["ɵɵnextContext"]();u["ɵɵproperty"]("options",e.languages)("hrefValues",e.hrefOptions)("displayLabelProperty",e.codeLabel)("selectedValue",e.currentLangCode)("iconClassProperty",e.languageSelectorConfig.iconClassProperty)("showSelectedIcon",e.languageSelectorConfig.showSelectedIcon)}}let g=(()=>{class e{constructor(e,t,n,i,r){this.brandLanguageService=e,this.languageService=t,this.translateService=n,this.languageSelectorConfig=i,this.router=r,this.languages=[],this.showSelector=!0,this.hrefOptions={}}ngOnInit(){this.translateLanguages(this.brandLanguageService.getAvailableLanguages()).subscribe((e=>{this.languages=e,this.showSelector=this.languages.length>1,this.languageService.getLanguage().subscribe((e=>{this.currentLangCode=e})),this.codeLabel=this.retrieveCodeLabel(),this.checkHrefAttributes(e)})),this.routerSubscription=this.router.events.pipe((0,o.filter)((e=>e instanceof i.NavigationEnd))).subscribe((()=>{this.languages.forEach((e=>{this.hrefOptions[e.code]=null}))}))}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe()}notifyLanguageChanged(e){this.languageService.setLanguage(e.code)}translateLanguages(e){return(0,r.forkJoin)(e,this.getTranslations(),((e,t)=>(e.map((e=>{e.label=t[c.S+"."+e.code]||e.code,e.codeLabel=t[c.S+"."+e.code+".code"]||e.code,e.icon="color-icon-"+e.code})),e)))}retrieveCodeLabel(){if(this.languageSelectorConfig&&this.languageSelectorConfig.isCodeLabel)return"codeLabel"}getTranslations(){return this.translateService.loadTranslations(c.S).pipe((0,o.first)((e=>e&&Object.keys(e).length>0)))}checkHrefAttributes(e){this.showSelector&&e.forEach((e=>{if(e.code===this.currentLangCode)this.hrefOptions[e.code]=null;else{const t=this.languageService.getReloadUrl(e.code),n=t.split("//").length>1?t.split("//")[1]:t,i=n.indexOf("/")>=0?n.substring(n.indexOf("/"),n.length):"/";this.hrefOptions[e.code]=i}}))}}return e.ɵfac=function(t){return new(t||e)(u["ɵɵdirectiveInject"](s.F),u["ɵɵdirectiveInject"](d.T),u["ɵɵdirectiveInject"](a.s),u["ɵɵdirectiveInject"](l.y),u["ɵɵdirectiveInject"](i.Router))},e.ɵcmp=u["ɵɵdefineComponent"]({type:e,selectors:[["bx-lang-select"]],decls:3,vars:1,consts:[["type","button","prefixIconClass","icon icon-global","valueProperty","code","displayProperty","label",3,"options","hrefValues","displayLabelProperty","selectedValue","iconClassProperty","showSelectedIcon","change",4,"ngIf"],["type","button","prefixIconClass","icon icon-global","valueProperty","code","displayProperty","label",3,"options","hrefValues","displayLabelProperty","selectedValue","iconClassProperty","showSelectedIcon","change"]],template:function(e,t){1&e&&(u["ɵɵtext"](0,"\n        "),u["ɵɵtemplate"](1,m,2,6,"bx-dropdown",0),u["ɵɵtext"](2,"\n    ")),2&e&&(u["ɵɵadvance"](1),u["ɵɵproperty"]("ngIf",t.showSelector))},directives:[p.NgIf,h.J],encapsulation:2}),e})()},40891:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.isCodeLabel=!1,this.showSelectedIcon=!0}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},48108:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var i=n(6856),r=n(57826),o=n(77247),a=n(4309),s=n(42998),c=n(81899),l=n(76771),d=n(47975),u=n(5875),p=n(40966);let h=(()=>{class e{constructor(e,t,n,i,r,o,s){this.languageCookieSupplier=e,this.languageQueryParamSupplier=t,this.windowService=n,this.platformId=i,this.doc=r,this.brandLanguageService=o,this.request=s,this._defaultLanguage="en";const c=this.languageQueryParamSupplier.language;c&&(this.languageCookieSupplier.language=c),this.currentValue=e.language||this._defaultLanguage,this.language$=new a.BehaviorSubject(this.currentValue)}get defaultLanguage(){return this._defaultLanguage}init(e){if(e&&(this._defaultLanguage=e),this.brandLanguageService&&this.languageCookieSupplier.language){let t=new d.j(this.languageCookieSupplier.language);this.brandLanguageService.getAvailableLanguages().subscribe((n=>{n&&n.filter((e=>e.code==t.code)).length<=0&&(this.languageCookieSupplier.removeLanguageCookie(),this.reload(e))}))}}getLanguage(){return this.language$.asObservable().pipe((0,s.filter)((e=>null!==e)))}setLanguage(e,t=!0){this.language$.next(e),this.currentValue!==e&&(this.currentValue=e,!0===t&&this.reload(e))}getTranslationUrlPrefix(){if((0,i.isPlatformBrowser)(this.platformId)&&this.windowService.window()){const e=this.windowService.window().config;if(e&&e["site.config.url_prefix"])return e["site.config.url_prefix"][0]}return""}getReloadUrl(e,t=this._defaultLanguage){const n=this.retrieveLanguageUrl(this.languageCookieSupplier.language);let r;r=(0,i.isPlatformBrowser)(this.platformId)?this.windowService.window().location:{pathname:this.request.path,protocol:this.request.protocol+":",host:this.request.hostname};const o=e==t?"x-default":this.getHrefLangPrefix(e),a=e==t?"":"/"+e;let s;return s=this.isRedirectedToHomepageChannel(r,n)?this.homepageChannelUrl(r,n,a):this.hasHrefLangTag(o)?this.doc.head.querySelector("[hreflang^="+o+"]").getAttribute("href"):this.isRedirectedToResetPin(r)?`${r.protocol}//${r.host}${a}${new URLSearchParams(r.search).get("destination")}`:`${r.protocol}//${r.host}${a}`,s}reload(e,t=this._defaultLanguage){if((0,i.isPlatformBrowser)(this.platformId)){const n=this.getReloadUrl(e,t);this.languageCookieSupplier.language=e;const i=this.windowService.window().location,r=this.windowService.window(),o=r.navigator&&r.navigator.userAgent;(!o||!o.includes(" Electron/")&&!o.startsWith("Electron/"))&&i.replace(n)}}isRedirectedToResetPin(e){if(!(0,i.isPlatformBrowser)(this.platformId))return!1;const t=new URLSearchParams(e.search).get("destination");return t&&t.startsWith("/reset-pin/")}hasHrefLangTag(e){return this.doc.head.querySelector("[hreflang^="+e+"]")}getHrefLangPrefix(e){return"ZH-HANS"===e.toUpperCase()?e.substring(0,2):e}isRedirectedToHomepageChannel(e,t){return e.pathname.startsWith(t+"/sports")||e.pathname.startsWith(t+"/horses")||e.pathname.startsWith(t+"/live-dealer")}homepageChannelUrl(e,t,n){const i=e.pathname.indexOf("/",t.length),r=-1==e.pathname.indexOf("/",i+1)?e.pathname.length:e.pathname.indexOf("/",i+1),o=e.pathname.substring(i,r);return`${e.protocol}//${e.host}${n}${o}`}retrieveLanguageUrl(e){return e==this._defaultLanguage?"":"/"+e}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](u.g),r["ɵɵinject"](p.r),r["ɵɵinject"](c.u),r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](i.DOCUMENT),r["ɵɵinject"](l.F,8),r["ɵɵinject"](o.Z,8))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},33087:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>i.F,TS:()=>a.T,gz:()=>r.g,jH:()=>o.j,yl:()=>s.y});var i=n(76771),r=n(5875),o=n(50536),a=n(48108),s=(n(88401),n(40891))},63325:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var i=n(57826),r=n(73753),o=n(81899),a=n(12744),s=n(80112),c=n(48108),l=n(45965);let d=(()=>{class e{constructor(e,t,n,i,r,o,a){this.router=e,this.windowService=t,this.urlPrefixService=n,this.renderer=i,this.elementRef=r,this.languageService=o,this.siteConfigService=a,this.isExternalLink=()=>this.bxLink.startsWith("http")}ngOnInit(){this.languageService.getLanguage().subscribe((e=>{let t=this.siteConfigService.getSiteConfigProp("defaultLanguage");t||(t="en");let n=this.bxLink.split("/").find((t=>t===e));const i=e===t||n?"":e;this.bxLink=this.bxLink.startsWith("/")||this.isExternalLink()?this.bxLink:`/${this.bxLink}`,this.renderer.setAttribute(this.elementRef.nativeElement,"href",i+this.bxLink)}))}onClick(e){let t=this.bxLinkTarget;e.preventDefault();let n=e.target.getAttribute("href");if(!0===e.ctrlKey||!0===e.metaKey)this.windowOpener();else if(null!=n&&n.includes("mailto:"))this.windowOpener();else switch(t){case a.e.NEW_TAB:this.windowOpener();break;case a.e.SAME_TAB_EXTERNAL_URL:this.windowOpener("","_self");break;case a.e.POP_UP:let e=this.bxLinkOptions||"width=1000px,height=690px,scrollbars=0";this.windowOpener(e);break;case a.e.SAME_TAB:default:this.openInSameTab()}}middleButtonClick(e){2===e.which&&this.windowOpener()}middleButtonClickPreventDefault(e){2===e.which&&e.preventDefault()}windowOpener(e="",t="_blank"){let n=this.urlPrefixService.addUrlPrefix(this.bxLink);this.windowService.window().open(n,t,e)}openInSameTab(){this.router.navigateByUrl(this.bxLink)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.Router),i["ɵɵdirectiveInject"](o.u),i["ɵɵdirectiveInject"](s.z),i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](c.T),i["ɵɵdirectiveInject"](l.r))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxLink",""]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.onClick(e)}))("mouseup",(function(e){return t.middleButtonClick(e)}))("mousedown",(function(e){return t.middleButtonClickPreventDefault(e)}))},inputs:{bxLink:"bxLink",bxLinkTarget:"bxLinkTarget",bxLinkOptions:"bxLinkOptions"}}),e})()},73917:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var i=n(73753),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({imports:[[i.RouterModule]]}),e})()},12744:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var i=(()=>(function(e){e.NONE="",e.SAME_TAB="same_tab",e.NEW_TAB="new_tab",e.POP_UP="pop_up",e.SAME_TAB_EXTERNAL_URL="same_tab_external_url"}(i||(i={})),i))()},80417:(e,t,n)=>{"use strict";n.d(t,{LO:()=>i.L});var i=n(73917);n(63325)},90566:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(57826),r=n(6856);let o=(()=>{class e{constructor(e,t,n,i){this.componentFactoryResolver=e,this.el=t,this.target=n,this.platformId=i,this.contextName="context",this.isViewInitialized=!1}updateComponent(){if(!this.isViewInitialized)return;this.componentRef&&this.componentRef.destroy();let e=this.componentFactoryResolver.resolveComponentFactory(this.component);this.componentRef=this.target.createComponent(e),this.context&&(this.componentRef.instance[this.contextName]=this.context,this.componentRef.changeDetectorRef.detectChanges()),this.outputName&&(this.componentRef.instance[this.outputName]=this.output),this.fixViewEncapsulation()}fixViewEncapsulation(){if((0,r.isPlatformBrowser)(this.platformId)){let e=Array.prototype.slice.call(this.el.nativeElement.attributes).map((e=>e.name)).find((e=>e.startsWith("_ngcontent-"))),t=this.componentRef.location.nativeElement;e&&!t.getAttribute(e)&&t.setAttribute(e,"")}}ngAfterViewInit(){this.isViewInitialized=!0,this.updateComponent()}ngOnChanges(e){this.updateComponent()}ngOnDestroy(){this.componentRef&&this.componentRef.destroy()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ComponentFactoryResolver),i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](i.PLATFORM_ID,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-dynamic-loader-component"]],inputs:{component:"component",contextName:"contextName",context:"context",outputName:"outputName",output:"output"},features:[i["ɵɵNgOnChangesFeature"]],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})()},8566:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var i=n(42767),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.Y],imports:[[]]}),e})()},42767:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var i=n(57826);let r=(()=>{class e{constructor(e,t,n){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n}getRootViewContainer(){if(this._container)return this._container;const e=this.applicationRef.components;if(e.length)return e[0];throw new Error("[InjectorService] View Container not found!")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return e instanceof i.ElementRef?e.nativeElement:e.hostView?e.hostView.rootNodes[0]:e.element?e.element.nativeElement:e}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,t){if(t){const n=Object.getOwnPropertyNames(t);for(const i of n)e.instance[i]=t[i]}return e}appendComponent(e,t={},n){const i=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector),r=this.applicationRef,o=this.getComponentRootNode(i);return this.projectComponentBindings(i,t),r.attachView(i.hostView),i.onDestroy((()=>{r.detachView(i.hostView)})),n||(n=this.getRootViewContainer()),this.getComponentRootNode(n).appendChild(o),i}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.ApplicationRef),i["ɵɵinject"](i.ComponentFactoryResolver),i["ɵɵinject"](i.Injector))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},81736:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,l:()=>o});var i=n(57826),r=(()=>(function(e){e[e.plain=0]="plain",e[e.html=1]="html",e[e.angular=2]="angular"}(r||(r={})),r))();let o=(()=>{class e{parseMarkupContent(t){let n,i=r.plain;return n=t.replace(e.LINK_REGEX,(e=>{let t=e.substring(1,e.lastIndexOf("]")),n=e.substring(t.length+3,e.lastIndexOf(")")).trim(),o=-1!==e.indexOf("{:")?" "+e.substring(e.indexOf("{:")+2,e.lastIndexOf("}")).trim():"";return i=this.highPriorityType(i,r.html),`<a href="${n}"${o}>${t.trim()}</a>`})),{content:n,type:i}}highPriorityType(e,t){return!e||t>e?t:e}}return e.LINK_REGEX=/\[.*?\]\(.*?\)({:.*?=".*?".*?})*/g,e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},37355:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var i=n(16917),r=n(75105),o=n(57826);let a=(()=>{class e{constructor(e){this.multilingualRoutesService=e}translateUrl(e){let t=new r.M(e);return this.multilingualRoutesService.processInternalUrl(t).url}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵdirectiveInject"](i.J))},e.ɵdir=o["ɵɵdefineDirective"]({type:e,selectors:[["","bxTranslatePath",""]]}),e})()},72688:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})()},37202:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var i=n(47975),r=n(57826);let o=(()=>{class e{constructor(){this.routeTranslations=new Map,this.inverseRouteTranslations=new Map}loadData(e,t){e.forEach(((e,n)=>{let r=this.loadRouteMapping(e);this.loadTranslations(new i.j(t[n].code),r)}))}lookUp(e,t){return this.routeTranslations.get(e.code).get(t)}lookUpByValue(e,t){return this.inverseRouteTranslations.get(e.code).get(t)}loadTranslations(e,t){this.routeTranslations.set(e.code,t),this.loadInverseTranslations(e,t)}loadInverseTranslations(e,t){let n=new Map;t.forEach(((e,t)=>{n.set(e,t)})),this.inverseRouteTranslations.set(e.code,n)}loadRouteMapping(e){let t=new Map;return Object.keys(e).map((n=>{t.set(n,e[n])})),t}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},16917:(e,t,n)=>{"use strict";n.d(t,{J:()=>g});var i=n(4309),r=n(42998),o=n(23550),a=n(80112),s=n(50371),c=n(76771),l=n(47975),d=n(48108);const u=new l.j("en");var p=n(37202),h=n(75105),m=n(57826);let g=(()=>{class e{constructor(e,t,n,i,r,o){this.http=e,this.brandLanguageService=t,this.multilingualRoutesCache=n,this.global=r,this.urlPrefixService=o,this.languages=[],i.getLanguage().subscribe((e=>{this.selectedLanguage=new l.j(e)}))}init(e){this.brandDefaultLanguage=e?new l.j(e):u}load(){return this.brandLanguageService.getAvailableLanguages().pipe((0,r.mergeMap)((e=>(this.languages=e,(0,i.defer)((()=>{let e=this.global.nativeGlobal.routes;if(e)return(0,i.of)(e);const t=this.urlPrefixService.addUrlPrefix("/i18n/routes.json");return this.http.get(t)})).pipe((0,r.map)((t=>{const n=[];e.map((e=>{n.push(t[e.code])})),this.multilingualRoutesCache.loadData(n,e)}))))))).toPromise()}processPath(e){const t=this.calculateLanguage(e);return e=this.removeUrlPrefix(e),e=this.removeLanguagePrefix(e),this.translatePathFrom(t,e)}processExternalUrl(e){return e=this.translatePathTo(this.selectedLanguage,e),e=this.addLanguagePrefix(this.selectedLanguage,e),this.addUrlPrefix(e)}processInternalUrl(e){return e.url.match("^[a-z]+:")?e:this.translatePathFrom(this.selectedLanguage,e)}translatePathBetweenLanguages(e,t,n){if(e.code===t.code)return n;const i=this.translatePathFrom(e,n);return this.translatePathTo(t,i)}translatePathFrom(e,t){return this.isBaseLanguage(e)?t:this.translatePath(e,t,!0)}translatePathTo(e,t){return this.isBaseLanguage(e)?t:this.translatePath(e,t,!1)}removeLanguagePrefix(e){let t=e.extractLanguageFromPrefix(this.languages);return t?new h.M(e.url.substr(t.code.length+1)):e}removeUrlPrefix(e){const t=this.urlPrefixService.removeUrlPrefix(e.url);return new h.M(t)}calculateLanguage(e){return e.extractLanguageFromPrefix(this.languages)||this.brandDefaultLanguage}addLanguagePrefix(e,t){let n=t.url;return this.isDefaultLanguage(e)||(n="/"+e.code+(1==n.length?"":n)),new h.M(n)}addUrlPrefix(e){const t=this.urlPrefixService.addUrlPrefix(e.url);return new h.M(t)}translatePath(e,t,n){let i=t.extractQueryParams(),r=t.removeQueryParams().url.split("/").map((t=>(n?this.multilingualRoutesCache.lookUpByValue(e,t):this.multilingualRoutesCache.lookUp(e,t))||t)).join("/");return new h.M(r+i)}isDefaultLanguage(e){return e.code==this.brandDefaultLanguage.code}isBaseLanguage(e){return e.code==u.code}}return e.ɵfac=function(t){return new(t||e)(m["ɵɵinject"](o.HttpClient),m["ɵɵinject"](c.F),m["ɵɵinject"](p.d),m["ɵɵinject"](d.T),m["ɵɵinject"](s.w),m["ɵɵinject"](a.z))},e.ɵprov=m["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},75105:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});class i{constructor(e){this.url=e}isLanguagePrefixSet(e){return null!=this.extractLanguageFromPrefix(e)}extractLanguageFromPrefix(e){let t=this.url.split("/")[1];return t&&(t=t.split("?")[0]),e.find((e=>e.code==t))}extractQueryParams(){let e=this.url.indexOf(";");return-1==e&&(e=this.url.indexOf("?")),-1==e?"":this.url.substr(e)}removeQueryParams(){let e=this.url.indexOf(";");return-1==e&&(e=this.url.indexOf("?")),-1==e?this:new i(this.url.substr(0,e))}}},66168:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>s,dT:()=>c.d,JH:()=>r.J,MS:()=>o.M});var i=n(6856),r=n(16917),o=n(75105),a=n(57826);let s=(()=>{class e extends i.PathLocationStrategy{constructor(e,t,n){super(t,n),this.multilingualRoutesService=e}path(e){let t=new o.M(super.path(e));return this.multilingualRoutesService.processPath(t).url}prepareExternalUrl(e){let t=this.multilingualRoutesService.processExternalUrl(new o.M(e));return super.prepareExternalUrl(t.url)}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](r.J),a["ɵɵinject"](i.PlatformLocation),a["ɵɵinject"](i.APP_BASE_HREF,8))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var c=n(37202);n(72688)},83521:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});var i=n(37268),r=n(69703),o=n(56614),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({providers:[r.j],imports:[[i.z,o.F]]}),e})()},69703:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var i=n(82846),r=n(45965),o=n(57826);let a=(()=>{class e{constructor(e,t){this.cookieStorageService=e,this.siteConfigService=t}isNotificationEnabled(){return this.isNotificationEnabledCookieSet()||this.isNotificationFeatureFlagEnabled()}isNotificationEnabledCookieSet(){return!!this.cookieStorageService.get("notification.enabled")}isNotificationFeatureFlagEnabled(){return!!this.siteConfigService.getSiteConfig().isNotificationEnabled}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.G),o["ɵɵinject"](r.r))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},65340:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var i=n(4309),r=n(57826);let o=(()=>{class e{constructor(){this.overlayClosedSubject=new i.Subject,this.overlayOpenSubject=new i.Subject}notifyOverlayClosed(){this.overlayClosedSubject.next()}getOverlayClosedNotifications(){return this.overlayClosedSubject}notifyOverlayOpen(){this.overlayOpenSubject.next()}getOverlayOpenNotifications(){return this.overlayOpenSubject}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},45097:(e,t,n)=>{"use strict";n.d(t,{_e:()=>a,jq:()=>r,z4:()=>o});class i{constructor(e){this.eventType=e}}class r extends i{constructor(){super(0)}}class o extends i{constructor(e,t,n,i){super(2),this.eventName=e,this.timestamp=t,this.startTimestamp=n,this.endTimestamp=i}}class a extends i{constructor(e,t){super(1),this.renderedURL=e,this.duration=t}}},86333:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var i=n(72556),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.z]}),e})()},72556:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var i=n(4309),r=n(42998),o=n(57826);let a=(()=>{class e{constructor(){this.pageEvents=new i.ReplaySubject}emit(e){this.pageEvents.next(e)}getEvents(e){return this.pageEvents.pipe((0,r.filter)((t=>t.eventType===e)))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},19765:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var i=n(45097),r=n(72556),o=n(57826);let a=(()=>{class e{constructor(e){this.pageEventsService=e,this.startedNavigationMap={}}trackStart(e){this.startedNavigationMap[e]={timestamp:Date.now(),startTimestamp:window.performance.now()}}sendEvent(e){if(this.startedNavigationMap[e]){const{timestamp:t,startTimestamp:n}=this.startedNavigationMap[e];this.pageEventsService.emit(new i.z4(e,t,n,window.performance.now())),delete this.startedNavigationMap[e]}}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.z))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},33704:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var i=n(4309),r=n(57826);let o=(()=>{class e{constructor(){this._phoneItemSource=new i.Subject,this.phoneItem$=this._phoneItemSource.asObservable()}changePhone(e){this._phoneItemSource.next(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},41931:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var i=n(4309),r=n(81516),o=n(81899),a=n(43640),s=n(45965),c=n(57826);let l=(()=>{class e{constructor(e,t,n){this.siteConfigService=e,this.windowService=t,this.firstTimeVisitorService=n,this.chatEnabled=!1,this.resetPlayerStatus(),this.playerStatus$=new i.BehaviorSubject(this.playerStatus)}init(e){this.loadConfig(),this.windowService.getIsPlatformBrowser()&&this.isVergicOrNovomindOrAlvariaChat()&&(this.chatEnabled=!0,this.initCustomSteps(),e.subscribe((e=>this.onSessionChange(e))),this.firstTimeVisitorService.getFirstTimeVisited().subscribe((e=>this.firstTimeVisitorHandler(e))))}initCustomSteps(){if(this.reactiveChatType===a.iH.Vergic){const e=this.vergicChatConfig.serverURL,t=this.vergicChatConfig.customerKey;this.appendVergicJS(e,t),this.windowService.window().playerStatus={...this.playerStatus}}}isVergicOrNovomindOrAlvariaChat(){return(0,a.ll)(this.reactiveChatType)}onPlayerLoyaltyPointsUpdate(e,t){this.chatEnabled&&(this.playerStatus.profileTags=e?["VIP"]:[],this.playerStatus.playerSegment=t,this.sendPlayerStatusEvent())}onPlayerProfileUpdated(e){this.chatEnabled&&(this.playerStatus.email=e.email,this.playerStatus.region=e.address&&e.address.countryCode,this.playerStatus.accountNumber=e.accountNumber,this.playerStatus.firstName=e.firstName,this.playerStatus.dob=e.birthdate,this.sendPlayerStatusEvent())}loadConfig(){let e=this.siteConfigService.getSiteConfigProp("contactMethods").reactiveChat;this.vergicChatConfig=e.vergicConfig,this.reactiveChatType=e.type}appendVergicJS(e,t){const n=this.windowService.document().createElement("script");n.setAttribute("async",""),n.setAttribute("src",`${e}${t}/engage.js`),this.windowService.document().getElementsByTagName("head")[0].appendChild(n)}getPlayerStatus(){return this.playerStatus}getPlayerStatusSubject(){return this.playerStatus$}firstTimeVisitorHandler(e){this.playerStatus.firstTimeDepositor=e&&!this.playerStatus.loggedIn,this.playerStatus.firstTimeVisitor=e,this.sendPlayerStatusEvent()}onSessionChange(e){e||this.resetPlayerStatus(),this.playerStatus.loggedIn=e,this.sendPlayerStatusEvent()}resetPlayerStatus(){this.playerStatus={loggedIn:!1,firstTimeVisitor:!1,firstTimeDepositor:!1,depositFailure:!1,profileTags:[],email:"",region:"",accountNumber:"",firstName:"",playerSegment:"",dob:""}}onFirstTimeDepositorChange(e){this.chatEnabled&&(this.playerStatus.firstTimeDepositor=e,this.sendPlayerStatusEvent())}onDepositFailureChange(e){this.chatEnabled&&(this.playerStatus.depositFailure=e,this.sendPlayerStatusEvent())}wasPlayerStatusChanged(e,t){return JSON.stringify(t)!==JSON.stringify(e)}sendPlayerStatusEvent(){if(a.iH.Vergic===this.reactiveChatType&&this.wasPlayerStatusChanged(this.windowService.window().playerStatus,this.playerStatus)){this.windowService.window().playerStatus={...this.playerStatus};const e=new CustomEvent("playerStatusUpdated",{detail:this.playerStatus});this.windowService.document().dispatchEvent(e)}this.playerStatus$.next(this.playerStatus)}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](s.r),c["ɵɵinject"](o.u),c["ɵɵinject"](r.HV))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},50811:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});class i{static formatAmount(e,t,n){if(e&&!isNaN(Number(e))){let i=(e="string"!=typeof e?Number(e).toString():e).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,n),i.join(t)}return e}static formatAmountUsingEnglishStandard(e){return this.formatAmount(e,".",",")}static formatAmountUsingSpanishStandard(e){return this.formatAmount(e,",",".")}static removeEnglishThousandsSeparator(e){return e?e.toString().replace(/,/g,""):e}static removeSpanishThousandsSeparator(e){return e?e.toString().replace(/\./g,"").replace(/,/g,"."):e}}},53272:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var i=n(50811),r=n(19065),o=n(57826);let a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({providers:[r.x,i.w]}),e})()},19065:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{interpolate(e,t){let n;return e.replace(new RegExp(Object.keys(t).reduce(((e,t)=>e?`${e}|\\{\\{(\\s*)${t}(\\s*)\\}\\}`:`\\{\\{(\\s*)${t}(\\s*)\\}\\}`),""),"gi"),(function(e){return n=e.replace(/{|}|(\s+)/g,""),null!==t[n]&&void 0!==t[n]?t[n]:e}))}stringCapitalizer(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}}},43640:(e,t,n)=>{"use strict";n.d(t,{iH:()=>i,jc:()=>s,JQ:()=>r,t_:()=>a,ll:()=>o});var i=(()=>(function(e){e.None="NONE",e.Moxie="MOXIE",e.Vergic="VERGIC",e.Novomind="NOVOMIND",e.Alvaria="ALVARIA"}(i||(i={})),i))();function r(e){return[i.Moxie,i.Novomind,i.Alvaria].includes(e)}function o(e){return[i.Vergic,i.Novomind,i.Alvaria].includes(e)}function a(e){return[i.Novomind,i.Alvaria].includes(e)}function s(e=i.None){return{type:e,moxieConfig:{portalSettingsFileUrl:"",portalDetectionFileUrl:""},vergicConfig:{serverURL:"",customerKey:""},novomindConfig:{libraryFileURL:"",displayOptions:{},chat:{iframeURL:"",vipIframeURL:"",iframeParams:"",vipIframeParams:""},proactive:{enabled:!1,frontendPath:"",frontendID:"",pathToRules:""},bot:{enabled:!1,botIframeParams:"",botIframeURL:""}},alvariaConfig:{libraryFileURL:"",displayOptions:{},chat:{iframeURL:"",iframeParams:""}}}}},77472:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var i=n(57826),r=n(24144),o=n(51576);let a=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.R]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[o.d]]}),e})()},24144:(e,t,n)=>{"use strict";n.d(t,{R:()=>v});var i=n(4309),r=n(42998),o=n(22274),a=n(79308),s=n(80112),c=n(81899),l=n(33087),d=n(41931),u=n(45965),p=n(89309),h=n(43640),m=n(82846),g=n(84860),f=n(57826);let v=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c){this.siteConfigService=e,this.languageService=t,this.windowService=n,this.sessionStorageService=i,this.urlPrefixService=r,this.playerChatMetadataService=o,this.channelTypeService=a,this.cookieStorage=s,this.loyaltyStore=c,this.sessionActive=!1,this.libraryLoaded=!1,this.sessionActive=this.hasActiveSession()}init(){this.isProactiveRequired()&&this.ensureLibrariesAreLoaded()}ensureLibrariesAreLoaded(e,t,n=this){this.libraryLoaded?t&&this.getChatConfig().getValue().type!==h.iH.None&&t.apply(n):(this.libraryLoaded=!0,this.getChatConfig().pipe((0,r.take)(1),(0,r.switchMap)((e=>new i.Observable((t=>{const n=this.siteConfigService.isFeaturePresent(g.L.reactiveChatDefer);"complete"!==this.windowService.getDocumentReadyState()&&n?this.windowService.addEventListener("load",(()=>t.next(e)),{once:!0}):t.next(e)}))))).subscribe((t=>{switch(t.type){case h.iH.Moxie:this.loadExternalFile(t.moxieConfig.portalSettingsFileUrl).then((()=>{this.loadExternalFile(t.moxieConfig.portalDetectionFileUrl).then((()=>{this.libraryLoaded=!0,e&&e.apply(n)})).catch((()=>this.libraryLoaded=!1))})).catch((()=>this.libraryLoaded=!1));break;case h.iH.Novomind:const i=`${t.novomindConfig.libraryFileURL}${this.getHashes()}`;this.loadExternalFile(i).then((()=>{this.libraryLoaded=!0,this.subscribeToPlayerStatus(t.novomindConfig.displayOptions),t.novomindConfig.proactive.enabled&&this.addCodeSnippet(this.generateNovomindSnippet(),"nvm"),e&&e.apply(n)})).catch((()=>this.libraryLoaded=!1));break;case h.iH.Alvaria:const r=`${t.alvariaConfig.libraryFileURL}${this.getHashes()}`;this.loadExternalFile(r).then((()=>{this.libraryLoaded=!0,this.playerChatMetadataService.getPlayerStatusSubject().subscribe((e=>{const n=this.toAlvariaParams(e);this.windowService.window().nvChat.parseConfig({...this.getAlvariaIframeUrls(n),...t.alvariaConfig.displayOptions})})),e&&e.apply(n)})).catch((()=>this.libraryLoaded=!1));break;default:this.libraryLoaded=!1}})))}openChat(e){const t=e&&e.moxie||{},n=e&&e.novomind||{},i=e&&e.alvaria||{};this.ensureLibrariesAreLoaded((()=>{this.windowService.window().MoxieFlyout?(this.setVariables(t.userName,t.email),this.openChatWindow(),this.overrideChatTabLink()):this.windowService.window().nvChat&&this.openChatWindow(i.urlTag?i.urlTag:n.urlTag)}),(()=>{this.windowService.window().MoxieFlyout?(this.setVariables(t.userName,t.email),this.openChatWindow()):this.windowService.window().nvChat&&this.openChatWindow(i.urlTag?i.urlTag:n.urlTag)}))}getChatConfig(){return this.chatConfig$||this.loadConfig()}loadConfig(){this.chatConfig$=new i.BehaviorSubject((0,h.jc)());const e=this.siteConfigService.getSiteConfigProp("contactMethods").reactiveChat;return this.languageService.getLanguage().subscribe((t=>{switch(e.type){case h.iH.Moxie:const t={chatId:this.siteConfigService.getSiteConfigProp("chatId"),vipChatId:this.siteConfigService.getSiteConfigProp("vipChatId")};t.chatId&&e.moxieConfig.portalSettingsFileUrl&&e.moxieConfig.portalDetectionFileUrl?(e.moxieConfig.chatId=t.chatId,t.vipChatId&&(e.moxieConfig.vipChatId=t.vipChatId)):e.type=h.iH.None;break;case h.iH.Novomind:e.novomindConfig.libraryFileURL&&e.novomindConfig.chat.iframeURL&&e.novomindConfig.chat.iframeParams||(e.type=h.iH.None);break;case h.iH.Alvaria:e.alvariaConfig.libraryFileURL&&e.alvariaConfig.chat.iframeURL&&e.alvariaConfig.chat.iframeParams||(e.type=h.iH.None)}this.language=t})),this.chatConfig$.next(e),this.chatConfig$}openExistingSession(){this.sessionStorageService.isSupported()&&this.sessionActive&&this.ensureLibrariesAreLoaded((()=>{this.overrideChatTabLink()}))}closeChat(){this.sessionActive&&this.windowService.window().MoxieFlyout&&this.windowService.window().disposeOfMoxieFlyoutWindow?(this.windowService.window().MoxieFlyout.sendFlyoutMessage("endChat",0),this.windowService.window().disposeOfMoxieFlyoutWindow()):this.windowService.window().nvChat&&this.windowService.window().nvChat.close(),this.libraryLoaded=!1,this.sessionActive=!1}hasActiveSession(){return this.windowService.getIsPlatformBrowser()&&Number(this.sessionStorageService.get("MoxieFlyout.chatInProgress"))>0}isProactiveRequired(){const e=this.getChatConfig().getValue();return e.type===h.iH.Novomind&&e.novomindConfig.proactive.enabled&&"poker_dlc"!==this.channelTypeService.getChannelType()&&!this.shouldProactiveLoadBeSkipped()}shouldProactiveLoadBeSkipped(){return"true"===this.cookieStorage.get("bxProactiveLoadNotRequired")}openChatWindow(e){this.libraryLoaded=!0,this.getChatConfig().subscribe((t=>{switch(t.type){case h.iH.Moxie:let t=this.getChatConfig().getValue().moxieConfig.chatId;this.loyaltyStore&&this.loyaltyStore.isVip&&this.getChatConfig().getValue().moxieConfig.vipChatId&&(t=this.getChatConfig().getValue().moxieConfig.vipChatId),this.windowService.window().DetectDevice(t,"chatClient","Live chat by","Moxie"),this.windowService.window().MoxieFlyout.open(),this.checkForUrlPrefix(),this.sessionActive=!0;break;case h.iH.Novomind:case h.iH.Alvaria:this.windowService.window().nvChat.open(e)}}))}loadExternalFile(e){return new Promise(((t,n)=>{const i=this.windowService.document().createElement("script");i.setAttribute("async",""),i.setAttribute("src",e),i.onload=t,i.onerror=n,this.windowService.document().getElementsByTagName("head")[0].appendChild(i)}))}generateParams(e,t,n="?",i=""){const r={};e&&"string"==typeof e&&(e.startsWith(n)?e.substring(n.length):e).split("&").forEach((e=>{const[t,n]=e.split("=");r[t]=n}));const o=Object.assign(t,r),a=Object.keys(o).filter((e=>void 0!==o[e]&&o[e].toString())).map((e=>e+"="+o[e])).join("&");return a?n+a:i}getHashes(){const e=this.windowService.window().hashes,t=e&&e.nvm||"";return t?`?cb=${t}`:""}setVariables(e="",t=""){this.windowService.window().talCustProp="MXUser="+e+"#:Prop!MXEmail="+t+"#:Prop!MXLanguage="+this.language}checkForUrlPrefix(){if(this.urlPrefixService.getUrlPrefix()){let e=this.windowService.document().querySelector("#MoxieFlyoutHolder a");if(!e)return;let t=e.getAttribute("href");t&&-1===t.indexOf(this.urlPrefixService.getUrlPrefix())&&e.setAttribute("href",this.urlPrefixService.addUrlPrefix("/"+t))}}overrideChatTabLink(){this.getChatConfig().subscribe((e=>{e.type===h.iH.Moxie&&setTimeout((()=>{this.windowService.document().querySelector("#MoxieFlyoutHolder").addEventListener("click",(e=>{"MoxieFlyoutTabText"===e.target.parentElement.id&&e.preventDefault()}),!0)}),1e3)}))}getAlvariaIframeUrls(e){const{iframeURL:t,iframeParams:n}=this.getChatConfig().getValue().alvariaConfig.chat;return{targetUrl:t+this.generateParams(n,e,"#!/","#!/dummy=true"),additionalUrls:{chatBot:"",softBlockedChat:""}}}toAlvariaParams(e){return{accountnumber:e.accountNumber,email:e.email,name:e.firstName,lang:this.language}}getNovomindIframeUrls(e){const{iframeURL:t,vipIframeURL:n,iframeParams:i,vipIframeParams:r}=this.getChatConfig().getValue().novomindConfig.chat,{enabled:o,botIframeURL:a,botIframeParams:s}=this.getChatConfig().getValue().novomindConfig.bot,c=this.loyaltyStore&&this.loyaltyStore.isVip&&n||t,l=this.loyaltyStore&&this.loyaltyStore.isVip&&r||i;return{targetUrl:c+this.generateParams(l,e),additionalUrls:{chatBot:o&&a?a+this.generateParams(s,e):"",softBlockedChat:this.retrieveUrlForSoftBlocked()}}}retrieveUrlForSoftBlocked(){const e={SLLV:"https://nchat2.slots.lv/iframe/iframe.html?lang=en&no_prescreen=true&chat_full_category=SLLV_UFM_Chat_OOM",BVD:"https://nchat2.bovada.lv/iframe/iframe.html?lang=en&no_prescreen=true&chat_full_category=BVLV_UFM_Chat_OOM",CFC:"https://nchat2.cafecasino.lv/iframe/iframe.html?lang=en&no_prescreen=true&chat_full_category=CCLV_UFM_Chat_OOM",IGN:"https://nchat2.ignitioncasino.eu/iframe/iframe.html?lang=en&no_prescreen=true&chat_full_category=IGEU_UFM_Chat_OOM"};return e[this.siteConfigService.getSiteConfigProp("brandCode")]?e[this.siteConfigService.getSiteConfigProp("brandCode")]:""}static toNovoMindParams(e){return{lin:e.loggedIn,ftv:e.firstTimeVisitor,ftd:e.firstTimeDepositor,df:e.depositFailure,pt:e.profileTags,em:e.email,re:e.region,an:e.accountNumber,nm:e.firstName,seg:e.playerSegment}}subscribeToPlayerStatus(t){this.playerChatMetadataService.getPlayerStatusSubject().subscribe((n=>{const i=e.toNovoMindParams(n),r=this.getNovomindIframeUrls(i);this.windowService.window().nvChat.parseConfig({...r,...t}),this.getChatConfig().getValue().novomindConfig.proactive.enabled&&(this.windowService.window().nvVars=i)}))}addCodeSnippet(e,t="reactiveChatSnippet"){const n=this.windowService.document();if(n.getElementById(t))return;const i=n.createElement("script");i.setAttribute("type","text/javascript"),i.text=e,i.id=t,n.getElementsByTagName("head")[0].appendChild(i)}generateNovomindSnippet(){const e=this.getChatConfig().getValue();return`(function(o,p){\n            var d=document,w=window,s='script',e=d.createElement(s),l;(w.NM=w.NM||{}).o=o;\n            e.type='text/java'+s;e.async=!0;e.src=(p||'//ecdn.novomind.com/rules/la/')+'nm.rules.js';\n            l=d.getElementsByTagName(s)[0];l.parentNode.insertBefore(e,l);\n        })({jspURL:'${e.novomindConfig.proactive.frontendPath}',frontendID:'${e.novomindConfig.proactive.frontendID}'},'${e.novomindConfig.proactive.pathToRules}');`.replace(/\s+/g," ")}}return e.ɵfac=function(t){return new(t||e)(f["ɵɵinject"](u.r),f["ɵɵinject"](l.TS),f["ɵɵinject"](c.u),f["ɵɵinject"](a.u),f["ɵɵinject"](s.z),f["ɵɵinject"](d.w),f["ɵɵinject"](o.x),f["ɵɵinject"](m.G),f["ɵɵinject"](p.r,8))},e.ɵprov=f["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},88391:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var i=n(6856),r=n(57826),o=n(4309);let a=(()=>{class e{constructor(e){this.platformId=e,this.move=400,this.tailOff=16,this.position=0,this.scrollInProgress=!1,this.subject=new o.Subject}initScroll(e){(0,i.isPlatformBrowser)(this.platformId)&&(this.element=e,this.checkScroll())}scrollRight(){(0,i.isPlatformBrowser)(this.platformId)&&(this.configureScroll(this.move),this.moveScrollRight())}scrollLeft(){(0,i.isPlatformBrowser)(this.platformId)&&(this.configureScroll(-this.move),this.moveScrollLeft())}getSubject(){return this.subject}configureScroll(e){this.scrollInProgress=!0,this.target=this.element.nativeElement.scrollLeft+e,this.position=this.element.nativeElement.scrollLeft,this.amount=this.move}moveScrollRight(){this.setScroll(!0),this.evaluate(this.moveScrollRight.bind(this))}moveScrollLeft(){this.setScroll(!1),this.evaluate(this.moveScrollLeft.bind(this))}checkScroll(){this.element.nativeElement.scrollWidth===this.element.nativeElement.offsetWidth?(this.subject.next({button:"left",display:!1}),this.subject.next({button:"right",display:!1})):this.position<=0?(this.subject.next({button:"left",display:!1}),this.subject.next({button:"right",display:!0})):this.position>=this.element.nativeElement.scrollWidth-this.element.nativeElement.offsetWidth?(this.subject.next({button:"left",display:!0}),this.subject.next({button:"right",display:!1})):(this.subject.next({button:"left",display:!0}),this.subject.next({button:"right",display:!0}))}resetScroll(e){(0,i.isPlatformBrowser)(this.platformId)&&(this.element=e,this.recalibrateScroll(),this.checkScroll())}recalibrateScroll(){this.configureScroll(0),this.moveScrollLeft(),this.amount=this.move}setScroll(e){let t=Math.ceil(this.amount/this.tailOff);this.position=this.position+(e?t:-t),this.amount=this.amount-t,this.element.nativeElement.scrollLeft=this.position}evaluate(e){this.amount>0?requestAnimationFrame(e):(this.scrollInProgress=!1,this.checkScroll())}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](r.PLATFORM_ID))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},82957:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var i=n(57826),r=n(88391);let o=(()=>{class e{constructor(e){this.platformId=e}create(){return new r.c(this.platformId)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},89493:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var i=n(88391),r=n(82957),o=n(42934),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({providers:[r.b,i.c,o.a]}),e})()},42934:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var i=n(57826),r=n(6856);let o=(()=>{class e{constructor(e){this.platformId=e,this.defaultOptions={behavior:"smooth"}}scrollIntoView(e,t,n){n||(n=this.defaultOptions),(0,r.isPlatformBrowser)(this.platformId)&&e.nativeElement.querySelector(t).scrollIntoView(n)}scrollViewToTop(e){(0,r.isPlatformBrowser)(this.platformId)&&e.nativeElement&&e.nativeElement.scrollIntoView()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},38473:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.scrollEnds=new i.EventEmitter}onScroll(e){if(e){let t=e.target;if(t){let n=t.scrollHeight-t.clientHeight;e.target.scrollTop+100>=n&&this.scrollEnds.emit(!0)}}}}return e.ɵfac=function(t){return new(t||e)},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxScrollTracker",""]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("scroll",(function(e){return t.onScroll(e)}))},outputs:{scrollEnds:"scrollEnds"}}),e})()},84860:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var i=(()=>(function(e){e.cardTrackEnabled="analytics.cardtrack.enabled",e.casinoGameNewTab="casino.games.new.tab",e.apmRum="monitoring.apmrum",e.pwa="site.pwa",e.reCaptchaV3="reCaptchaV3",e.contentViewTracking="analytics.content-view-tracking.enabled",e.documentVerification="document-verification.enabled",e.multipleAttemptsFailure="multiple-failed-login-messaging.enabled",e.casinoSearchBarOpenGame="casino.search_bar.open_game",e.messageDeletionConfirmation="messages_deletion_confirmation",e.hotjarDefer="hotjar-defer",e.imageLazyload="image-lazyload",e.disableChatPreload="disable-chat-preload",e.reCaptchaV3Defer="reCaptchaV3-defer",e.reactiveChatDefer="reactive-chat-defer"}(i||(i={})),i))()},79346:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var i=n(45965),r=n(57826);let o=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.r]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({}),e})()},61493:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var i=(()=>(function(e){e.sharding="site.config.cdn.sharding_enabled",e.vergicUri="site.config.contact_methods.reactive.chat.vergic.js.server.uri",e.vergicCustomerKey="site.config.contact_methods.reactive.chat.vergic.js.customer.key",e.reactiveChatType="site.config.contact_methods.reactive.chat.type",e.reactiveChatSettingsUri="site.config.contact_methods.reactive.chat.js.settings.uri",e.reactiveChatDetectionUri="site.config.contact_methods.reactive.chat.js.detection.uri",e.casinoSharding="site.config.cdn.casino_sharding_enabled",e.cdnDomains="site.config.cdn.domains",e.contactMethodsPhoneEnabled="site.config.contact_methods.phone.enabled",e.contactMethodsPhoneNumber="site.config.contact_methods.phone.number",e.deviceProtectEnabled="site.config.deviceprotect.enabled",e.deviceProtectDomain="site.config.deviceprotect.domain",e.srvDomain="site.config.services.domain",e.srvSubDomain="site.config.services.subdomain",e.srvWebSocketDomain="site.config.websockets.domain",e.casinoSubDomain="site.config.casino.game_subdomain",e.cmsEnabledSections="site.config.cms.enabled_sections",e.cmsEnabledFeatures="site.config.cms.enabled_features",e.bonusSelectionCf="site.config.bonus-selection-cf.enabled",e.forfeitButtonEnabled="site.config.bonus_forfeit_enabled",e.onlyDepositBonusDisplayed="site.config.only_ftd_bonus_displayed",e.pixelTrackingEnabled="site.config.pixel.tracking.enabled",e.pixelTrackingParameterFilterEnabled="site.config.pixel.tracking.parameter_filter.enabled",e.availableCurrencies="availableCurrencies",e.defaultCurrency="currencies.default",e.languages="languages",e.languagesPublished="languages_published",e.defaultLanguage="languages.default",e.locale="site.config.locale",e.products="products",e.disabledMultiproducts="site.config.multiproduct.disabled_elements",e.profileIdentifiers="profile.identifiers",e.bucket="bucket",e.mainLogo="site.config.main_logo",e.mainHeaderLogo="site.config.main_header_logo",e.showGameDescription="site.config.show_game_description",e.leaderbaords="site.config.leaderboards.enabled",e.dynamicCards="site.config.dynamic.cards.enabled",e.brandLabel="brand_label",e.dateFormat="site.config.date.format",e.dateMask="site.config.date.mask",e.sitewideAuthExemptions="site.config.sitewide_auth_exemptions",e.featuresList="site.config.features_list",e.myAffiliateTokenExpiration="site.config.my-affiliates.token.expiration",e.depositRedirect="site.config.cashier.deposit.redirect",e.depositEnabled="site.config.cashier.deposit.enabled",e.withdrawalRedirect="site.config.cashier.withdrawal.redirect",e.webtrekkUri="site.config.webtrekk.uri",e.theme="theme",e.httpTimeoutInMilliseconds="site.config.http.timeout.in.milliseconds",e.canonicalDomain="site.config.canonical_domain",e.updatePlayerVerificationMethod="player.verification.method.profile_update",e.urlPrefix="site.config.url_prefix",e.maintenanceEnabled="site.config.maintenance.enabled",e.hotjarEnabled="site.config.hotjar.enabled",e.hotjarId="site.config.hotjar_id",e.googleAnalyticsEnabled="site.config.google_analytics.enabled",e.googleAnalyticsId="site.config.google_analytics.id",e.googleTagManagerContainerId="site.config.google_tag_manager_container_id",e.trackDomain="site.config.webtrekk.track_domain",e.localeTime="site.config.locale_time",e.affiliatesMarkets="site.config.affiliates.markets",e.rulesCheckerEnabled="site.config.conversion_funnel.rules_checker.enabled",e.phoneJoinMaxPhoneAttempts="site.config.form.join.limit_max_phone_attempts",e.phoneJoinExpirationTimeAttempts="site.config.form.join.expiration_time_phone_attempts",e.phoneValidationEnabled="site.config.sms.validation.enabled",e.phoneValidationInJoinEnabled="site.config.sms.validation.cf.enabled",e.phoneSkipValidationEnabled="site.config.sms.skip.validation.enabled",e.phoneValidationSections="site.config.sms.validation.sections",e.phoneValidationInJoinShowWarningEnabled="site.config.sms.validation.cf.show.skipping.warning.enabled",e.phoneTypeValidationSections="site.config.phone.type.validation.sections",e.phoneTypeValidV2ValidationEnabled="site.config.phone_valid_v2.validation.enabled",e.phoneTypeValidationTimeout="site.config.phone.type.validation.timeout",e.phoneTypeValidationEnabled="site.config.phone.type.validation.enabled",e.phoneTypeValidPollingRetries="site.config.phone_valid.polling_retries",e.inputIconStatusEnabled="site.config.input.icon.status",e.conversionFunnelDeferredMsgEnabled="site.config.conversion_funnel.deferred_msg.enabled",e.affiliatesProducts="site.config.affiliates.products",e.affiliatesInstantMessagesMethods="site.config.affiliates.im.methods",e.affiliatesRefSiteToken="site.config.affiliates.refSiteToken",e.registrationBonusV2="site.config.registration.bonus_overlay_v2.enabled",e.sportsStyle="site.config.sports.style",e.chatId="site.config.chat_id",e.vipChatId="site.config.vip_chat_id",e.httpRetries="site.config.http.retries",e.contactUsToAddress="site.config.contactus.toaddress",e.loyaltyEnabled="site.config.loyalty.enabled",e.apmUri="site.config.monitoring.apm.uri",e.apmSamplingRate="site.config.monitoring.apm.sampling_rate",e.apmMonitoringServices="site.config.monitoring.apm.services",e.apmDisableInstrumentations="site.config.monitoring.apm.disable_instrumentations",e.reactiveChatNvLibraryUri="site.config.contact_methods.reactive.chat.nv.js.library.uri",e.reactiveChatNvIframeUri="site.config.contact_methods.reactive.chat.nv.js.iframe.uri",e.reactiveChatNvVipIframeUri="site.config.contact_methods.reactive.chat.nv.js.iframe.vip_uri",e.reactiveChatNvIframeParams="site.config.contact_methods.reactive.chat.nv.js.iframe.params",e.reactiveChatNvVipIframeParams="site.config.contact_methods.reactive.chat.nv.js.iframe.vip_params",e.reactiveChatNvDisplayOptions="site.config.contact_methods.reactive.chat.nv.js.display.options",e.reactiveChatNvProactiveEnabled="site.config.contact_methods.reactive.chat.nv.js.proactive",e.reactiveChatNvProactiveFrontendPath="site.config.contact_methods.reactive.chat.nv.js.proactive.frontendpath",e.reactiveChatNvProactiveFrontendID="site.config.contact_methods.reactive.chat.nv.js.proactive.frontendid",e.reactiveChatNvProactivePathToRules="site.config.contact_methods.reactive.chat.nv.js.proactive.pathtorules",e.reactiveChatNvBotEnabled="site.config.contact_methods.reactive.chat.nv.js.bot",e.reactiveChatNvBotIframeUri="site.config.contact_methods.reactive.chat.nv.js.bot.iframe.uri",e.reactiveChatNvBotIframeParams="site.config.contact_methods.reactive.chat.nv.js.bot.iframe.params",e.reactiveChatAlvLibraryUri="site.config.contact_methods.reactive.chat.alv.js.library.uri",e.reactiveChatAlvIframeUri="site.config.contact_methods.reactive.chat.alv.js.iframe.uri",e.reactiveChatAlvIframeParams="site.config.contact_methods.reactive.chat.alv.js.iframe.params",e.reactiveChatAlvDisplayOptions="site.config.contact_methods.reactive.chat.alv.js.display.options",e.emailProviderSuggestions="site.config.email.provider_suggestions",e.emailProviderSuggestionsEnabled="site.config.email.provider_suggestions.enabled",e.regionalDeclarations="site.config.metadata.regional-declarations",e.markupSchemas="site.config.markup.schemas",e.rafDomain="site.config.raf.domain",e.playerSecurityCaptchaPluginUri="player.security.captcha.pluginUri",e.playerSecurityCaptchaV3PublicKey="player.security.captcha.v3.publicKey",e.playerSecurityCaptchaV3InfoActions="player.security.captcha.v3.infoActions",e.playerSecurityCaptchaV3MonitoringActions="player.security.captcha.v3.monitoringActions",e.playerSecurityCaptchaV3EnforcementActions="player.security.captcha.v3.enforcementActions",e.browsersNotSupported="site.config.browsers_not_supported",e.notificationEnabled="notification.enabled",e.matchpayJoinNowUri="site.config.matchpay.join.uri",e.matchpayCreateOfferUri="site.config.matchpay.offer.uri",e.matchpayEnabled="site.config.matchpay.enabled",e.cmMatchpayEnabled="site.config.cm.matchpay.enabled",e.mfaOperations="site.config.mfa.operations",e.reCaptchaV3Properties="reCaptchaV3Properties",e.proofOfConceptEnabledFeatures="site.config.poc.enabled.features",e.forgotPasswordImprovementsEnabled="site.config.forgot-password-improvements.enabled",e.notificationAnalyticsEnabled="site.config.analytics.notifications.enabled",e.responseErrorEventAnalyticsEnabled="site.config.analytics.response.error.event.enabled",e.customBlockedMessage="site.config.customBlockedMessage.enabled",e.customBlockedMessageBanner="site.config.customBlockedMessage.banner.enabled",e.customerSupportChat="site.config.customer_support_chat.enabled",e.mfeForgotPasswordEnabled="site.config.mfe-forgot-password.enabled",e.networkJackpotBannerHostname="site.config.casino.network_jackpot.banner_hostname",e.networkJackpotBannerLogoUrl="site.config.casino.network_jackpot.banner_logo_url",e.networkJackpotBannerRedirectionUrl="site.config.casino.network_jackpot.banner_redirection_url",e.casinoB2bBrandCode="site.config.casino.b2b_brand_code",e.crossMessagingIframeEnabled="site.config.cross_messaging_iframe.enabled",e.twoFactorAuthenticationEnabled="site.config.two_factor_authenticator.enabled",e.firstTimeVisitorEnabled="site.config.first_time_visitor.enabled",e.casinoPracticePlayDisabled="site.config.casino_practice_play.disabled",e.joinEnabled="site.config.join.enabled",e.casinoVigLivedealerTablesBlacklist="site.config.casino.vig_livedealer_tables_blacklist",e.vipInvitationEnabled="site.config.vip_invitation.enabled",e.firstTimeDepositCfDisabled="site.config.first_time_deposit.cf.disabled",e.multiProductMaintenance="site.config.multiproduct.maintenance",e.acceptsGiftsLinkTooltip="site.config.acceptsGifts.linkTooltip"}(i||(i={})),i))()},45965:(e,t,n)=>{"use strict";n.d(t,{r:()=>f});var i=n(6856),r=n(57826),o=n(4309),a=n(42998),s=n(23550),c=n(81899),l=n(50371),d=n(43640),u=n(23444);const p="services";var h=n(61493);class m{static readArray(e,t){return e.hasOwnProperty(t)&&Array.isArray(e[t])?e[t]:[]}static readBoolean(e,t){const n=this.readString(e,t,!1);return this.toBoolean(n)}static toBoolean(e){return"true"===e||!0===e}static numberFrom(e,t,n){const i=this.readString(e,t);return isNaN(i)?void 0!==n?n:void 0:parseInt(i)}static readString(e,t,n){return this.isPresent(e,t)?e[t][0]:n}static readStringOrEmpty(e,t){return this.readString(e,t,"")}static isPresent(e,t){const n=e[t];return n&&Array.isArray(n)&&n.length>0&&n[0]}static isArray(e,t){return Array.isArray(e[t])}}const g="/404";let f=(()=>{class e{constructor(t,n,i,r,o){this.windowService=t,this.platformId=n,this.universalConfig=i,this.http=r,this.global=o,this.siteConfig=e.buildDefaultConfiguration(),this.features=new Map,this.siteConfig.serviceDomain=this.replaceFirstSubDomainFromUrlSite(p)}initSiteConfig$(){return this.getSiteConfig$().pipe((0,a.map)((e=>(this.setSiteConfig(e),e))))}static buildDefaultConfiguration(){return{cdn:{shardingEnabled:!1,casinoShardingEnabled:!1,cdnDomains:[]},serviceDomain:"",serviceSubDomain:"",webSocketDomain:"",serviceIFrameEnabled:!1,casino:{vigLivedealerTablesBlacklist:[]},contactMethods:{reactiveChat:(0,d.jc)(),phoneNumber:{enabled:void 0,number:""}},bonusSelectionCfEnabled:!1,forfeitButtonEnabled:!0,onlyDepositBonusDisplayed:!0,pixelTrackingEnabled:!1,pixelTrackingParameterFilterEnabled:!1,cms:{enabledSections:[],enabledFeatures:[]},availableCurrencies:[],defaultCurrency:"",brandCode:"",brandLabel:"",territory:"",countryCode:"",languages:[],languagesPublished:[],defaultLanguage:"",regionalDeclarations:[],locale:"",products:[],disabledMultiproducts:[],deviceProtect:{enabled:!1,domain:""},profileIdentifiers:[],bucket:"",mainLogo:"",mainHeaderLogo:"",showGameDescription:!1,sports:{style:""},vipChatId:"",chatId:"",leaderboards:{enabled:!1},dynamicCards:{enabled:!1},sitewideAuthExemptions:[],featuresList:[],dateFormat:"",dateMask:"",depositRedirect:"",depositEnabled:!0,withdrawalRedirect:"",myAffiliateTokenExpiration:"",theme:"",httpTimeoutInMilliseconds:0,canonicalDomain:"",webtrekkUri:"",updatePlayerVerificationMethod:"",httpRetries:1,urlPrefix:"",maintenanceEnabled:!1,hotjar:{id:"",enabled:!1},googleAnalytics:{id:"",enabled:!1},googleTagManagerContainerId:"",trackDomain:"",localeTime:"",rulesCheckerEnabled:!1,phoneValidationEnabled:!1,phoneValidationInJoinEnabled:!1,phoneSkipValidationEnabled:!0,phoneValidationSections:[],phoneValidationInJoinShowWarningEnabled:!0,phoneTypeValidationSections:[],phoneTypeValidV2ValidationEnabled:!1,phoneTypeValidationTimeout:0,phoneTypeValidationEnabled:!1,phoneTypeValidPollingRetries:5,inputIconStatusEnabled:!1,conversionFunnelDeferredMsgEnabled:!1,affiliates:{markets:[],products:[],instantMessageMethods:[]},contactusToAddress:"",countryAccessPolicy:"",emailProviderSuggestions:{enabled:!1,emailProviders:[]},markupSchemas:[],rafDomain:"",playerSecurityCaptchaConfig:{pluginUri:void 0,playerCaptchaV3Config:{publicKey:"",monitoringActions:[],infoActions:[],enforcementActions:[]}},browsersNotSupported:[],isNotificationEnabled:!1,matchpayJoinNowUri:"",matchpayCreateOfferUri:"",matchpayEnabled:!1,cmMatchpayEnabled:!1,mfaOperations:[],reCaptchaV3Properties:[],proofOfConceptEnabledFeatures:[],phoneJoinMaxPhoneAttempts:4,phoneJoinExpirationTimeAttempts:60,notificationAnalyticsEnabled:!1,responseErrorEventAnalyticsEnabled:!1,customBlockedMessage:!1,customBlockedMessageBanner:!1,customerSupportChat:!1,mfeForgotPasswordEnabled:!1,networkJackpotBannerHostname:"",networkJackpotBannerLogoUrl:"",networkJackpotBannerRedirectionUrl:"",casinoB2bBrandCode:"",crossMessagingIframeEnabled:!1,twoFactorAuthenticatorEnabled:!1,firstTimeVisitorEnabled:!0,casinoPracticePlayDisabled:!1,joinEnabled:!0,vipInvitationEnabled:!1,firstTimeDepositCfDisabled:!1,multiProductMaintenance:[],acceptsGiftsLinkTooltip:""}}replaceFirstSubDomainFromUrlSite(e){let t="";if((0,i.isPlatformBrowser)(this.platformId)){if(t=this.windowService.location().hostname,"localhost"===t)return this.windowService.location().host;if(t.startsWith("www.local"))return this.windowService.location().host.replace("www","services")}else(0,i.isPlatformServer)(this.platformId)&&this.universalConfig&&this.universalConfig.backendHost&&(t=this.universalConfig.backendHost);let n=t?t.split("."):[""];return n[0]=e,n.join(".")}setSiteConfig(e){if(!e)return;this.siteConfig.contactMethods.reactiveChat.vergicConfig.serverURL=m.readStringOrEmpty(e,h.A.vergicUri),this.siteConfig.contactMethods.reactiveChat.vergicConfig.customerKey=m.readStringOrEmpty(e,h.A.vergicCustomerKey),this.siteConfig.contactMethods.reactiveChat.type=m.readString(e,h.A.reactiveChatType,d.iH.None),this.siteConfig.contactMethods.reactiveChat.moxieConfig.portalSettingsFileUrl=m.readStringOrEmpty(e,h.A.reactiveChatSettingsUri),this.siteConfig.contactMethods.reactiveChat.moxieConfig.portalDetectionFileUrl=m.readStringOrEmpty(e,h.A.reactiveChatDetectionUri),this.siteConfig.contactMethods.reactiveChat.novomindConfig.libraryFileURL=m.readStringOrEmpty(e,h.A.reactiveChatNvLibraryUri),this.siteConfig.contactMethods.reactiveChat.novomindConfig.chat.iframeURL=m.readStringOrEmpty(e,h.A.reactiveChatNvIframeUri),this.siteConfig.contactMethods.reactiveChat.novomindConfig.chat.vipIframeURL=m.readStringOrEmpty(e,h.A.reactiveChatNvVipIframeUri),this.siteConfig.contactMethods.reactiveChat.novomindConfig.chat.iframeParams=m.readStringOrEmpty(e,h.A.reactiveChatNvIframeParams),this.siteConfig.contactMethods.reactiveChat.novomindConfig.chat.vipIframeParams=m.readStringOrEmpty(e,h.A.reactiveChatNvVipIframeParams),this.siteConfig.contactMethods.reactiveChat.novomindConfig.displayOptions=JSON.parse(m.readStringOrEmpty(e,h.A.reactiveChatNvDisplayOptions)||"{}"),this.siteConfig.contactMethods.reactiveChat.novomindConfig.proactive.enabled=m.readBoolean(e,h.A.reactiveChatNvProactiveEnabled),this.siteConfig.contactMethods.reactiveChat.novomindConfig.proactive.frontendPath=m.readStringOrEmpty(e,h.A.reactiveChatNvProactiveFrontendPath),this.siteConfig.contactMethods.reactiveChat.novomindConfig.proactive.frontendID=m.readStringOrEmpty(e,h.A.reactiveChatNvProactiveFrontendID),this.siteConfig.contactMethods.reactiveChat.novomindConfig.proactive.pathToRules=m.readStringOrEmpty(e,h.A.reactiveChatNvProactivePathToRules),this.siteConfig.contactMethods.reactiveChat.novomindConfig.bot.enabled=m.readBoolean(e,h.A.reactiveChatNvBotEnabled),this.siteConfig.contactMethods.reactiveChat.novomindConfig.bot.botIframeParams=m.readStringOrEmpty(e,h.A.reactiveChatNvBotIframeParams),this.siteConfig.contactMethods.reactiveChat.novomindConfig.bot.botIframeURL=m.readStringOrEmpty(e,h.A.reactiveChatNvBotIframeUri),this.siteConfig.contactMethods.reactiveChat.alvariaConfig.libraryFileURL=m.readStringOrEmpty(e,h.A.reactiveChatAlvLibraryUri),this.siteConfig.contactMethods.reactiveChat.alvariaConfig.chat.iframeURL=m.readStringOrEmpty(e,h.A.reactiveChatAlvIframeUri),this.siteConfig.contactMethods.reactiveChat.alvariaConfig.chat.iframeParams=m.readStringOrEmpty(e,h.A.reactiveChatAlvIframeParams),this.siteConfig.contactMethods.reactiveChat.alvariaConfig.displayOptions=JSON.parse(m.readStringOrEmpty(e,h.A.reactiveChatAlvDisplayOptions)||"{}"),m.isPresent(e,h.A.contactMethodsPhoneEnabled)&&(this.siteConfig.contactMethods.phoneNumber.enabled=m.readBoolean(e,h.A.contactMethodsPhoneEnabled)),m.isPresent(e,h.A.contactMethodsPhoneNumber)&&(this.siteConfig.contactMethods.phoneNumber.number=m.readString(e,h.A.contactMethodsPhoneNumber)),this.siteConfig.cdn.shardingEnabled=m.readBoolean(e,h.A.sharding),this.siteConfig.webSocketDomain=m.readString(e,h.A.srvWebSocketDomain,""),m.isArray(e,h.A.cdnDomains)&&(this.siteConfig.cdn.cdnDomains=e[h.A.cdnDomains]),this.siteConfig.cdn.casinoShardingEnabled=m.readBoolean(e,h.A.casinoSharding);const t=m.readString(e,h.A.srvSubDomain,p);t&&(this.siteConfig.serviceSubDomain=t),this.siteConfig.serviceDomain=this.replaceFirstSubDomainFromUrlSite(t);const n=m.readString(e,h.A.casinoSubDomain);n&&(this.siteConfig.casino.gameSubdomain=n),this.siteConfig.markupSchemas=m.readArray(e,h.A.markupSchemas),this.siteConfig.cms.enabledSections=m.readArray(e,h.A.cmsEnabledSections),this.siteConfig.cms.enabledFeatures=m.readArray(e,h.A.cmsEnabledFeatures),this.siteConfig.availableCurrencies=m.readArray(e,h.A.availableCurrencies),this.siteConfig.defaultCurrency=m.readStringOrEmpty(e,h.A.defaultCurrency),this.siteConfig.defaultLanguage=m.readStringOrEmpty(e,h.A.defaultLanguage),this.siteConfig.myAffiliateTokenExpiration=m.readStringOrEmpty(e,h.A.myAffiliateTokenExpiration),this.siteConfig.languages=m.readArray(e,h.A.languages),this.siteConfig.languagesPublished=m.readArray(e,h.A.languagesPublished),this.siteConfig.regionalDeclarations=m.readArray(e,h.A.regionalDeclarations),this.siteConfig.locale=m.readStringOrEmpty(e,h.A.locale),this.siteConfig.products=m.readArray(e,h.A.products),this.siteConfig.disabledMultiproducts=m.readArray(e,h.A.disabledMultiproducts),this.siteConfig.profileIdentifiers=m.readArray(e,h.A.profileIdentifiers),this.siteConfig.bucket=m.readStringOrEmpty(e,h.A.bucket),this.siteConfig.mainLogo=m.readStringOrEmpty(e,h.A.mainLogo),this.siteConfig.mainHeaderLogo=m.readStringOrEmpty(e,h.A.mainHeaderLogo),this.siteConfig.theme=m.readStringOrEmpty(e,h.A.theme),this.siteConfig.showGameDescription=m.readBoolean(e,h.A.showGameDescription),this.siteConfig.sitewideAuthExemptions=m.readArray(e,h.A.sitewideAuthExemptions),this.siteConfig.featuresList=m.readArray(e,h.A.featuresList),this.siteConfig.depositRedirect=m.readString(e,h.A.depositRedirect,g),m.isPresent(e,h.A.depositEnabled)&&(this.siteConfig.depositEnabled=m.readBoolean(e,h.A.depositEnabled)),this.siteConfig.withdrawalRedirect=m.readString(e,h.A.withdrawalRedirect,g),this.siteConfig.httpTimeoutInMilliseconds=m.numberFrom(e,h.A.httpTimeoutInMilliseconds),this.siteConfig.canonicalDomain=m.readStringOrEmpty(e,h.A.canonicalDomain),this.siteConfig.webtrekkUri=m.readStringOrEmpty(e,h.A.webtrekkUri),this.siteConfig.maintenanceEnabled=m.readBoolean(e,h.A.maintenanceEnabled),this.siteConfig.updatePlayerVerificationMethod=m.readString(e,h.A.updatePlayerVerificationMethod,"PASSWORD"),e.brandCode&&(this.siteConfig.brandCode=e.brandCode),this.siteConfig.brandLabel=m.readStringOrEmpty(e,h.A.brandLabel),this.siteConfig.networkJackpotBannerHostname=m.readStringOrEmpty(e,h.A.networkJackpotBannerHostname),this.siteConfig.networkJackpotBannerLogoUrl=m.readStringOrEmpty(e,h.A.networkJackpotBannerLogoUrl),this.siteConfig.networkJackpotBannerRedirectionUrl=m.readStringOrEmpty(e,h.A.networkJackpotBannerRedirectionUrl),this.siteConfig.casinoB2bBrandCode=m.readStringOrEmpty(e,h.A.casinoB2bBrandCode),e.territory&&(this.siteConfig.territory=e.territory),e.countryCode&&(this.siteConfig.countryCode=e.countryCode),e.countryAccessPolicy&&(this.siteConfig.countryAccessPolicy=e.countryAccessPolicy),this.siteConfig.deviceProtect.enabled=m.readBoolean(e,h.A.deviceProtectEnabled),this.siteConfig.deviceProtect.domain=m.readStringOrEmpty(e,h.A.deviceProtectDomain),this.siteConfig.bonusSelectionCfEnabled=m.readBoolean(e,h.A.bonusSelectionCf),m.isPresent(e,h.A.forfeitButtonEnabled)&&(this.siteConfig.forfeitButtonEnabled=m.readBoolean(e,h.A.forfeitButtonEnabled)),m.isPresent(e,h.A.onlyDepositBonusDisplayed)&&(this.siteConfig.onlyDepositBonusDisplayed=m.readBoolean(e,h.A.onlyDepositBonusDisplayed)),this.siteConfig.pixelTrackingEnabled=m.readBoolean(e,h.A.pixelTrackingEnabled),this.siteConfig.pixelTrackingParameterFilterEnabled=m.readBoolean(e,h.A.pixelTrackingParameterFilterEnabled),this.siteConfig.sports.style=m.readStringOrEmpty(e,h.A.sportsStyle),this.siteConfig.chatId=m.readStringOrEmpty(e,h.A.chatId),this.siteConfig.vipChatId=m.readStringOrEmpty(e,h.A.vipChatId),this.siteConfig.leaderboards.enabled=m.readBoolean(e,h.A.leaderbaords),this.siteConfig.dynamicCards.enabled=m.readBoolean(e,h.A.dynamicCards),this.siteConfig.dateFormat=m.readString(e,h.A.dateFormat,"MM-DD-YYYY"),this.siteConfig.dateMask=m.readString(e,h.A.dateMask,"[0-1], \\d, -, [0-3], \\d, -, [1-2], \\d, \\d, \\d"),this.siteConfig.urlPrefix=m.readStringOrEmpty(e,h.A.urlPrefix),this.siteConfig.httpRetries=m.numberFrom(e,h.A.httpRetries,1),this.siteConfig.rulesCheckerEnabled=m.readBoolean(e,h.A.rulesCheckerEnabled),this.siteConfig.phoneValidationEnabled=m.readBoolean(e,h.A.phoneValidationEnabled),this.siteConfig.phoneValidationInJoinEnabled=m.readBoolean(e,h.A.phoneValidationInJoinEnabled),this.siteConfig.phoneSkipValidationEnabled=m.readBoolean(e,h.A.phoneSkipValidationEnabled),this.siteConfig.phoneValidationSections=m.readArray(e,h.A.phoneValidationSections),this.siteConfig.phoneTypeValidationSections=m.readArray(e,h.A.phoneTypeValidationSections),this.siteConfig.phoneTypeValidV2ValidationEnabled=m.readBoolean(e,h.A.phoneTypeValidV2ValidationEnabled),this.siteConfig.phoneTypeValidationTimeout=m.numberFrom(e,h.A.phoneTypeValidationTimeout,0),this.siteConfig.phoneTypeValidationEnabled=m.readBoolean(e,h.A.phoneTypeValidationEnabled),this.siteConfig.phoneTypeValidPollingRetries=m.numberFrom(e,h.A.phoneTypeValidPollingRetries,5),this.siteConfig.phoneValidationInJoinShowWarningEnabled=m.readBoolean(e,h.A.phoneValidationInJoinShowWarningEnabled),this.siteConfig.inputIconStatusEnabled=m.readBoolean(e,h.A.inputIconStatusEnabled),this.siteConfig.hotjar.enabled=m.readBoolean(e,h.A.hotjarEnabled),this.siteConfig.hotjar.id=m.readString(e,h.A.hotjarId),this.siteConfig.googleAnalytics.enabled=m.readBoolean(e,h.A.googleAnalyticsEnabled),this.siteConfig.googleAnalytics.id=m.readString(e,h.A.googleAnalyticsId),this.siteConfig.googleTagManagerContainerId=m.readString(e,h.A.googleTagManagerContainerId),this.siteConfig.trackDomain=m.readStringOrEmpty(e,h.A.trackDomain),this.siteConfig.localeTime=m.readStringOrEmpty(e,h.A.localeTime),this.siteConfig.affiliates.markets=m.readArray(e,h.A.affiliatesMarkets),this.siteConfig.affiliates.products=m.readArray(e,h.A.affiliatesProducts),this.siteConfig.affiliates.instantMessageMethods=m.readArray(e,h.A.affiliatesInstantMessagesMethods),m.isPresent(e,h.A.affiliatesRefSiteToken)&&(this.siteConfig.affiliates.refSiteToken=m.readString(e,h.A.affiliatesRefSiteToken)),this.siteConfig.contactusToAddress=m.readStringOrEmpty(e,h.A.contactUsToAddress),this.siteConfig.conversionFunnelDeferredMsgEnabled=m.readBoolean(e,h.A.conversionFunnelDeferredMsgEnabled),m.isPresent(e,h.A.registrationBonusV2)&&(this.siteConfig.registrationBonusV2=m.readBoolean(e,h.A.registrationBonusV2)),m.isPresent(e,h.A.apmUri)&&(this.siteConfig.apmUri=m.readString(e,h.A.apmUri)),this.siteConfig.apmSamplingRate=m.numberFrom(e,h.A.apmSamplingRate,0),this.siteConfig.apmMonitoringServices=m.readBoolean(e,h.A.apmMonitoringServices),this.siteConfig.apmDisableInstrumentations=m.readArray(e,h.A.apmDisableInstrumentations),this.siteConfig.emailProviderSuggestions={enabled:m.readBoolean(e,h.A.emailProviderSuggestionsEnabled),emailProviders:m.readArray(e,h.A.emailProviderSuggestions)},this.siteConfig.rafDomain=m.readStringOrEmpty(e,h.A.rafDomain),e.playerSecurityCaptchaPluginUri&&(this.siteConfig.playerSecurityCaptchaConfig.pluginUri=e.playerSecurityCaptchaPluginUri),this.siteConfig.playerSecurityCaptchaConfig.playerCaptchaV3Config.publicKey=m.readString(e,h.A.playerSecurityCaptchaV3PublicKey),this.siteConfig.playerSecurityCaptchaConfig.playerCaptchaV3Config.infoActions=m.readArray(e,h.A.playerSecurityCaptchaV3InfoActions),this.siteConfig.playerSecurityCaptchaConfig.playerCaptchaV3Config.monitoringActions=m.readArray(e,h.A.playerSecurityCaptchaV3MonitoringActions),this.siteConfig.playerSecurityCaptchaConfig.playerCaptchaV3Config.enforcementActions=m.readArray(e,h.A.playerSecurityCaptchaV3EnforcementActions),this.siteConfig.browsersNotSupported=m.readArray(e,h.A.browsersNotSupported),this.siteConfig.isNotificationEnabled=m.readBoolean(e,h.A.notificationEnabled),this.siteConfig.matchpayJoinNowUri=m.readString(e,h.A.matchpayJoinNowUri,""),this.siteConfig.matchpayCreateOfferUri=m.readString(e,h.A.matchpayCreateOfferUri,""),this.siteConfig.matchpayEnabled=m.readBoolean(e,h.A.matchpayEnabled),this.siteConfig.cmMatchpayEnabled=m.readBoolean(e,h.A.cmMatchpayEnabled),this.siteConfig.mfaOperations=m.readArray(e,h.A.mfaOperations),this.siteConfig.reCaptchaV3Properties=e.reCaptchaV3Properties?Object.values(e.reCaptchaV3Properties.actions):m.readArray(e,h.A.reCaptchaV3Properties),this.siteConfig.proofOfConceptEnabledFeatures=m.readArray(e,h.A.proofOfConceptEnabledFeatures),this.readFeatureFlags(e),this.siteConfig.phoneJoinMaxPhoneAttempts=m.numberFrom(e,h.A.phoneJoinMaxPhoneAttempts,4),this.siteConfig.phoneJoinExpirationTimeAttempts=m.numberFrom(e,h.A.phoneJoinExpirationTimeAttempts,60),this.siteConfig.notificationAnalyticsEnabled=m.readBoolean(e,h.A.notificationAnalyticsEnabled),this.siteConfig.responseErrorEventAnalyticsEnabled=m.readBoolean(e,h.A.responseErrorEventAnalyticsEnabled),this.siteConfig.customBlockedMessage=m.readBoolean(e,h.A.customBlockedMessage),this.siteConfig.customBlockedMessageBanner=m.readBoolean(e,h.A.customBlockedMessageBanner),this.siteConfig.customerSupportChat=m.readBoolean(e,h.A.customerSupportChat),this.siteConfig.mfeForgotPasswordEnabled=m.readBoolean(e,h.A.mfeForgotPasswordEnabled),this.siteConfig.crossMessagingIframeEnabled=m.readBoolean(e,h.A.crossMessagingIframeEnabled),this.siteConfig.twoFactorAuthenticatorEnabled=m.readBoolean(e,h.A.twoFactorAuthenticationEnabled),this.siteConfig.firstTimeVisitorEnabled=m.readBoolean(e,h.A.firstTimeVisitorEnabled),this.siteConfig.casinoPracticePlayDisabled=m.readBoolean(e,h.A.casinoPracticePlayDisabled),this.siteConfig.joinEnabled=m.readBoolean(e,h.A.joinEnabled),this.siteConfig.casino.vigLivedealerTablesBlacklist=m.readArray(e,h.A.casinoVigLivedealerTablesBlacklist),this.siteConfig.vipInvitationEnabled=m.readBoolean(e,h.A.vipInvitationEnabled),this.siteConfig.firstTimeDepositCfDisabled=m.readBoolean(e,h.A.firstTimeDepositCfDisabled),this.siteConfig.multiProductMaintenance=m.readArray(e,h.A.multiProductMaintenance),this.siteConfig.acceptsGiftsLinkTooltip=m.readString(e,h.A.acceptsGiftsLinkTooltip)}getSiteConfig(){return this.siteConfig}getSiteConfigProp(e){return this.siteConfig[e]}isFeaturePresent(e){return this.siteConfig.featuresList&&this.siteConfig.featuresList.includes(e)}evalFeature(e){return this.features.get(e)||!1}hasFeature(e){let t=!1;return this.siteConfig.featuresList.forEach((n=>{e.match(new RegExp(`^${n}.?`))&&(t=!0)})),t}setBonusSelectionCfEnabled(e){this.siteConfig.bonusSelectionCfEnabled=e,this.features.set(h.A.bonusSelectionCf,e)}getSiteConfig$(){return(0,i.isPlatformBrowser)(this.platformId)?(0,o.of)(this.global.nativeGlobal.config):this.http.get("/services/site-config/v1/config")}readFeatureFlags(e){this.features.clear(),e&&Object.keys(e).forEach((t=>{this.features.set(t,m.readBoolean(e,t))}))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](c.u),r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](u.c,8),r["ɵɵinject"](s.HttpClient,8),r["ɵɵinject"](l.w,8))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},35294:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var i=n(64762),r=n(91184),o=n(57826);class a{constructor(){this.loginState=!1}setLoginState(e){this.loginState=e}}a.ɵfac=function(e){return new(e||a)},a.ɵprov=o["ɵɵdefineInjectable"]({token:a,factory:a.ɵfac}),(0,i.__decorate)([r.LO,(0,i.__metadata)("design:type",Boolean)],a.prototype,"loginState",void 0),(0,i.__decorate)([r.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Boolean]),(0,i.__metadata)("design:returntype",void 0)],a.prototype,"setLoginState",null)},91691:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var i=n(35294),r=n(84581),o=n(57826);let a=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.X,r.e]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({}),e})()},89309:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});const i=new(n(57826).InjectionToken)("LoyaltyStoreToken")},1776:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});const i=new(n(57826).InjectionToken)("NotificationsStoreToken")},38056:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=new(n(57826).InjectionToken)("ProfileStoreToken")},84781:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var i=n(64762),r=n(91184),o=n(9005);class a{constructor(){this.trigger=!1}refresh(){this.trigger=!this.trigger,this.state=o.J.PENDING}error(){this.state=o.J.ERROR}done(){this.state=o.J.DONE}get mustRefresh(){return this.trigger}get isError(){return this.state===o.J.ERROR}get isDone(){return this.state===o.J.DONE}}(0,i.__decorate)([r.LO,(0,i.__metadata)("design:type",Number)],a.prototype,"state",void 0),(0,i.__decorate)([r.LO,(0,i.__metadata)("design:type",Object)],a.prototype,"trigger",void 0),(0,i.__decorate)([r.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],a.prototype,"refresh",null),(0,i.__decorate)([r.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],a.prototype,"error",null),(0,i.__decorate)([r.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],a.prototype,"done",null),(0,i.__decorate)([r.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],a.prototype,"mustRefresh",null),(0,i.__decorate)([r.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],a.prototype,"isError",null),(0,i.__decorate)([r.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],a.prototype,"isDone",null)},9005:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var i=(()=>(function(e){e[e.PENDING=0]="PENDING",e[e.DONE=1]="DONE",e[e.ERROR=2]="ERROR"}(i||(i={})),i))()},84581:(e,t,n)=>{"use strict";n.d(t,{e:()=>c});var i=n(64762),r=n(32711),o=n(35294),a=n(91184),s=n(57826);class c{constructor(e){this.appStateStore=e,(0,r.U5)((()=>this.appStateStore.loginState),(e=>this.setLoggedIn(e)))}setLoggedIn(e){this.loggedIn=e}}c.ɵfac=function(e){return new(e||c)(s["ɵɵinject"](o.X))},c.ɵprov=s["ɵɵdefineInjectable"]({token:c,factory:c.ɵfac}),(0,i.__decorate)([r.LO,(0,i.__metadata)("design:type",Boolean)],c.prototype,"loggedIn",void 0),(0,i.__decorate)([a.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Boolean]),(0,i.__metadata)("design:returntype",void 0)],c.prototype,"setLoggedIn",null)},86213:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const i={default:{notificationComponent:{showClose:!1,timeout:3e3},header:{cta:{deposit:{class:"tertiary",showAlways:!0},join:{class:"tertiary"},login:{class:"tertiary inverse"}},langselect:{position:{left:!1,right:!0}},navmenu:{show:!0},logo:{small:!1},badge:{class:"dark-bubble"}},registration:{hideLogo:!1,headerLevel2:!0},login:{messageOverlay:!1,headerLevel2:!0,joinNowStyleClass:"tertiary inverse",softBlockedIconClass:"icon-launch"},pinCodeUpdate:{headerLevel2:!0},contactUs:{messageOverlay:!1,responsiveTwoColumns:!1},resetPassword:{messageOverlay:!1,hideNotificationIfNoError:!0},forgotPassword:{messageOverlay:!1,hideNotificationIfNoError:!0,headerLevel2:!0},validationCodeBonus:{skipButtonStyleClass:"tertiary"},communicationPlayer:{messageOverlay:!1,customTabTypeClass:"tertiary"},bonusSelection:{messageOverlay:!1,fullWidth:!1},bonusWidget:{arrowBelongsBonusDescription:!1},gridCards:{maxContainer:!0,defaultImageDimension:{width:224,height:117},footer:["article"]},bannerWelcome:{cta:{login:{class:"tertiary inverse"}},brandLogo:"/content/images/logo_welcome.svg"},cashierWrapper:{fullWidth:!1},casinoGameSearchConfig:{scrollToTopAllowed:!0},card:{playOverlay:!0,imgGame:!1,newGame:!1,gamePrice:!1,quickPlayEnabled:!1,removeRealPracticeOverlay:!0,thumbnailColor:"",defaultImageColor:""},bonusAccountComponent:{actionButtonClass:"custom-cta primary",moreInfoTextClass:"",bonusIconClass:"icon-radius",bonusActiveClass:"bonus-active",availableTabClass:"tertiary"},bonusAccountClaimByCodeComponent:{containerClass:"accordion tertiary",contentClass:"info",formClass:"bonus-main",buttonDivClass:"action",buttonClass:"custom-cta primary",buttonText:"bonusAccountClaimByCode.claimCode"},bonusConfirmationComponent:{secondaryButtonClass:"custom-cta tertiary"},bannerCarousel:{maxContainer:!1,carouselAnimation:!1},pinCodeForceUpdate:{alwaysKeepCloseButtonHidden:!0,alwaysShowPinCodeFormLabel:!0,hidePinCodeEye:!0,alwaysShowPinCode:!0,showPinCodeLegend:!0,autoHideSubmitButton:!0,headerLevel2:!0,operationType:"FORCE_UPDATE"},pinCodeReset:{alwaysKeepCloseButtonHidden:!0,alwaysShowPinCodeFormLabel:!0,hidePinCodeEye:!0,alwaysShowPinCode:!0,showPinCodeLegend:!0,autoHideSubmitButton:!0,headerLevel2:!0,operationType:"RESET"},pinCodeUpdateProfile:{alwaysKeepCloseButtonHidden:!0,alwaysShowPinCodeFormLabel:!0,hidePinCodeEye:!1,alwaysShowPinCode:!1,showPinCodeLegend:!0,autoHideSubmitButton:!0,headerLevel2:!1,operationType:"UPDATE_PROFILE"},loyalty:{userIcon:{tierColorProperty:"background"}},profileUpdate:{confirmation:{icon:""}},gameCategories:{imageType:"small",showDropdown:!0,showArrowMenu:!1,applyMaxContainer:!0,hideAndWrappComponent:!1,customCarousel:!1,scrollToTab:!1},helpUI:{helpPageIdentifier:"help",helpSearchNoResultsIcon:"icon-help-no-results",helpSearchInputIconClose:"icon-delete-text",classUiPrimaryHelpLeftNavigation:"secondary",classUiInverseHelpLeftNavigation:"inverse",classUiPrimaryHelpSearchResults:"secondary",classUiInverseHelpSearchResults:"inverse",showArrowIcon:!1,iconMainQuestionThanksOption:"icon-checked",smartContactOutside:!0,smartContactsHorizontal:!0},networkJackpotBanner:{enableRouteReuseStrategy:!0}},joefortune:{header:{cta:{deposit:{class:"secondary",showAlways:!0},join:{class:"primary"},login:{class:"tertiary"}}},login:{joinNowStyleClass:"tertiary"},bannerWelcome:{cta:{login:{class:"tertiary"},join:{class:"primary"}}},loyalty:{userIcon:{tierColorProperty:"color"}},gamecardDetail:{practiceCtaClass:"tertiary",stickyPracticeCtaClass:"tertiary inverse"},gamecardPlayConfig:{hideGameMode:!0},account:{overlayStyle:"modal-dark-bg"},rafLinks:{theme:"light"},bonusAccountComponent:{actionButtonClass:"custom-cta tertiary account-info",moreInfoTextClass:"more-info-color",bonusActiveClass:"tertiary bonus-active",availableTabClass:"secondary"},bonusAccountClaimByCodeComponent:{buttonClass:"custom-cta tertiary account-info"},helpUI:{helpSearchInputIconClose:"icon-close"},communicationPlayer:{customTabTypeClass:"quaternary"}},cafecasino:{header:{cta:{deposit:{class:"secondary",showAlways:!0},join:{class:"quaternary"},login:{class:"tertiary"}}},login:{joinNowStyleClass:"tertiary"},bannerWelcome:{cta:{login:{class:"tertiary inverse"},join:{class:"quaternary"}}},bannerCarousel:{maxContainer:!1,carouselAnimation:!0},loyalty:{userIcon:{tierColorProperty:"color"}},account:{overlayStyle:"modal-dark-bg",cta:{logout:{class:"tertiary"},withdraw:{class:"tertiary"}}},bonusAccountComponent:{actionButtonClass:"custom-cta tertiary account-info",availableTabClass:"quaternary"},bonusAccountClaimByCodeComponent:{buttonClass:"custom-cta tertiary account-info"},rafLinks:{theme:"light"},profileUpdate:{confirmation:{icon:"icon-info"}},helpUI:{helpSearchInputIconClose:"icon-close",helpSearchNoResultsIcon:"color-icon-no-result"},communicationPlayer:{customTabTypeClass:"quaternary"}},slotscom:{header:{navmenu:{show:!1}},bannerWelcome:{brandLogo:"/content/images/logo_welcome.png"}},bodogio:{header:{badge:{class:""}}}}},71059:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var i=n(6884),r=n(16465),o=n(50377);function a(e,t){return function(n){let i=e.default[t],o=n.getSiteConfigProp("theme");return o&&e[o]&&e[o][t]?r(s,i,e[o][t]):i}}function s(e,t){return Array.isArray(e)&&Array.isArray(t)?o(i(e,t)):"object"==typeof e&&"object"==typeof t?r(s,e,t):t}},55183:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var i=n(41759),r=n(13493),o=n(48108),a=n(6856),s=n(25595),c=n(57826);let l=(()=>{class e{constructor(e,t,n,i){this.timezoneService=e,this.datePipe=t,this.languageService=n,this.localeService=i,this.locale="en",this.languageService&&this.languageService.getLanguage().subscribe((e=>{this.localeService&&(this.locale=this.localeService.getLocaleTime(e))}))}getLanguageService(){return this.languageService}getLocaleService(){return this.localeService}transform(e,t,n){if(!e)return"";try{if(this.datePipe&&this.isLocalizedFormat(t))return this.datePipe.transform(e,t,this.getUtcOffset(e),this.locale);{const i=this.getMoment(e).format(t);return"Invalid date"===i&&null!=n?n:i}}catch(e){if(null!=n)return n;throw e}}getMoment(e){return i.Z.tz(e,this.timezoneService.getCurrentTimezone())}getUtcOffset(t){return this.getMoment(t).format(e.OFFSET_FROM_UTC_TOKEN)}isLocalizedFormat(t){return e.I18N_FORMATS.includes(t)}}return e.I18N_FORMATS=["shortTime","mediumTime","longTime","fullTime","short","medium","long","full","shortDate","mediumDate","longDate","fullDate"],e.OFFSET_FROM_UTC_TOKEN="Z",e.ɵfac=function(t){return new(t||e)(c["ɵɵdirectiveInject"](r.B,16),c["ɵɵdirectiveInject"](a.DatePipe,24),c["ɵɵdirectiveInject"](o.T,24),c["ɵɵdirectiveInject"](s.O,24))},e.ɵpipe=c["ɵɵdefinePipe"]({name:"bxDate",type:e,pure:!0}),e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},45645:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var i=n(55183),r=n(57826);let o=(()=>{class e{constructor(e){this.bxDatePipe=e}transform(e){return null!=e?e.replace(/\[date:([^\[]+)]([^\[]+)\[\/date]/g,((e,t,n)=>this.bxDatePipe.transform(n,t))):e}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.a,16))},e.ɵpipe=r["ɵɵdefinePipe"]({name:"bxDateTag",type:e,pure:!0}),e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},34207:(e,t,n)=>{"use strict";n.d(t,{$:()=>c});var i=n(55183),r=n(13493),o=n(56614),a=n(6856),s=n(57826);let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=s["ɵɵdefineNgModule"]({type:e}),e.ɵinj=s["ɵɵdefineInjector"]({providers:[r.B,a.DatePipe,i.a],imports:[[o.F]]}),e})()},13493:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var i=n(55640),r=n(41759),o=n(57826);let a=(()=>{class e{constructor(e){this.browserStorageService=e}getCurrentTimezone(){return this.browserStorageService.get(e.TIMEZONE_KEY)||r.Z.tzGuess()}setCurrentTimezone(t){this.browserStorageService.set(e.TIMEZONE_KEY,t)}}return e.TIMEZONE_KEY="timezone",e.DEFAULT_TIMEZONE="US/Eastern",e.TIMEZONE_EDT_ALWAYS="US/ALWAYS_EDT",e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.z))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},26626:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.linkHasBeenClicked=!1}getLinkClicked(){return this.linkHasBeenClicked}setLinkClicked(e){this.linkHasBeenClicked=e}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},63576:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d});var i=n(50536),r=n(61556),o=n(57685),a=n(11198),s=n(36575),c=n(26626),l=n(57826);let d=(()=>{class e{static forRoot(){return{ngModule:e}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l["ɵɵdefineNgModule"]({type:e}),e.ɵinj=l["ɵɵdefineInjector"]({providers:[c.j],imports:[[r.d,i.j,o.z.forBrowser(),a.$,s.I]]}),e})()},59948:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});const i=new(n(57826).InjectionToken)("TranslateConfig")},86014:(e,t,n)=>{"use strict";n.d(t,{P:()=>l});var i=n(57826),r=n(73753),o=n(42998),a=n(91605),s=n(81736),c=n(12596);let l=(()=>{class e{constructor(e,t,n,i,r){this.el=e,this.translateService=t,this.markupService=n,this.renderer=i,this.router=r,this.attributeElements=[]}set bxTranslate(e){this.attributeElements=[].concat(e)}handleAnchorClicks(e){if(null!=this.router&&null!=e&&!e.target.isEqualNode(this.el.nativeElement)){let t=this.findClosestAnchor(e.target);if(t){let n=t.getAttribute("href");const i=t.getAttribute("target");if(n&&this.isRelativeURL(n)&&(!i||"_blank"!==i))return this.router.navigate([n]),e.preventDefault(),e.stopPropagation(),!1}}return!0}findClosestAnchor(e){for(;null!=e&&"A"!==e.tagName;)e=e.parentElement;return e}isRelativeURL(e){return!/(http(s?))\:\/\//gi.test(e)}ngAfterViewInit(){this.setupTagText(),this.loadTranslations(),this.subscription=this.updateNodes()}ngOnChanges(e){e.bxTranslate.isFirstChange()||(this.loadTranslations(),this.subscription=this.updateNodes())}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.decreasePendingTranslationsCounter(),this.noRemainingRequestsPending()&&this.unHideParent("canceled!"))}loadTranslations(){let e=this.getTranslationLabel();if(e){let t=this.translateService.getCategory(e);this.translations$&&this.category===t||(this.category=t,this.translations$=this.getTranslations(e))}}getTranslationLabel(){let e;if(this.attributeElements.length>0){let t=this.attributeElements[0];"string"==typeof t?e=this.getLabel(t):t.tag&&(e=t.label?t.label:this.getLabel(t.tag))}return e}getLabel(t){return(t===e.TAG_TEXT_ATTRIBUTE_NAME?this.el.nativeElement[t]:this.el.nativeElement.getAttribute(t)).trim()}getTranslations(e){return this.findClosestParentComponent(),this.isFirstTranslationRequestForParent()?this.initializeTranslationRequest():this.linkToExistingTranslationRequest(),this.increasePendingTranslationsCounter(),this.translateService.loadTranslations(this.translateService.getCategory(e)).pipe((0,o.first)((e=>Object.keys(e).length>0)))}setupTagText(){this.attributeElements.some((t=>t===e.TAG_TEXT_ATTRIBUTE_NAME||t.tag===e.TAG_TEXT_ATTRIBUTE_NAME))||this.attributeElements.push(e.TAG_TEXT_ATTRIBUTE_NAME)}updateNodes(){return this.translations$?this.translations$.subscribe((t=>{let n;this.attributeElements.forEach((i=>{let r,o;if("string"==typeof i?(n=this.getLabel(i),r=i,o=t[n]):i.tag&&(r=i.tag,n=void 0!==i.label&&null!=i.label?i.label:this.getLabel(i.tag),o=i.values?t[n]&&this.translateService.interpolate(t[n],i.values):t[n]),o)if(r===e.TAG_TEXT_ATTRIBUTE_NAME){i.values&&(o=this.translateService.interpolate(o,i.values));let t=this.markupService.parseMarkupContent(o);switch(t.type){case s.S.plain:this.el.nativeElement[e.TAG_TEXT_ATTRIBUTE_NAME]=t.content;break;case s.S.html:this.el.nativeElement.innerHTML=t.content}}else this.el.nativeElement[r]=o;else this.el.nativeElement[r]=n;this.decreasePendingTranslationsCounter()})),this.noRemainingRequestsPending()&&this.unHideParent()})):null}findClosestParentComponent(){const e=/(bx|sp)-/;if(this.parentDomElement=this.el.nativeElement,this.parentDomName=this.parentDomElement.localName,this.parentDomElement.parentNode&&this.parentDomElement.parentNode.localName)do{this.parentDomElement=this.parentDomElement.parentNode,this.parentDomName=this.parentDomElement.localName}while(this.parentDomElement.parentNode&&this.parentDomElement.parentNode.localName&&!this.parentDomName.match(e))}noRemainingRequestsPending(){return!this.translateService.pendingTranslationRequestsPerDom.get(this.parentDomTransactionId)||this.translateService.pendingTranslationRequestsPerDom.get(this.parentDomTransactionId)<1}decreasePendingTranslationsCounter(){let e=this.translateService.pendingTranslationRequestsPerDom.get(this.parentDomTransactionId);this.translateService.pendingTranslationRequestsPerDom.set(this.parentDomTransactionId,--e)}increasePendingTranslationsCounter(){let e=this.translateService.pendingTranslationRequestsPerDom.get(this.parentDomTransactionId);this.translateService.pendingTranslationRequestsPerDom.set(this.parentDomTransactionId,++e)}unHideParent(e="success!"){this.translateService.pendingTranslationRequestsPerDom.delete(this.parentDomTransactionId);let t=this.parentDomElement.getAttribute("previousStyle");"null"!==t?this.renderer.setAttribute(this.parentDomElement,"style",t):this.renderer.setStyle(this.parentDomElement,"visibility","inherit"),this.renderer.removeAttribute(this.parentDomElement,"previousStyle"),this.renderer.setAttribute(this.parentDomElement,"waiting-for-files-to-load",e)}initializeTranslationRequest(){this.parentDomTransactionId="translate-request-"+(0,a.v4)(),this.translateService.pendingTranslationRequestsPerDom.set(this.parentDomTransactionId,0),this.renderer.setAttribute(this.parentDomElement,"waiting-for-files-to-load",this.parentDomTransactionId);let e=this.parentDomElement.getAttribute("style");this.renderer.setAttribute(this.parentDomElement,"previousStyle",e),this.renderer.setStyle(this.parentDomElement,"visibility","hidden")}linkToExistingTranslationRequest(){this.parentDomTransactionId=this.parentDomElement.getAttribute("waiting-for-files-to-load")}isFirstTranslationRequestForParent(){return!this.parentDomElement.getAttribute("waiting-for-files-to-load")||this.parentDomElement.getAttribute("waiting-for-files-to-load").includes("!")}}return e.TAG_TEXT_ATTRIBUTE_NAME="textContent",e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](c.s),i["ɵɵdirectiveInject"](s.l),i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](r.Router,8))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxTranslate",""]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.handleAnchorClicks(e)}))},inputs:{bxTranslate:"bxTranslate"},features:[i["ɵɵNgOnChangesFeature"]]}),e})()},84704:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var i=n(57826),r=n(23550),o=n(12596),a=n(50536),s=n(59948),c=n(81736);let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[c.l]}),e})();var d=n(48108),u=n(53272),p=n(19065);function h(e,t,n,i){return new o.s(e,t,n,i)}let m=(()=>{class e{static configure(t){return{ngModule:e,providers:[{provide:s.f,useValue:{customPath:t}}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[{provide:o.s,useFactory:h,deps:[r.HttpClient,d.T,p.x,[new i.Optional,s.f]]}],imports:[[a.j,l,u.b]]}),e})()},12596:(e,t,n)=>{"use strict";n.d(t,{s:()=>d});var i=n(23550),r=n(4309),o=n(42998),a=n(48108),s=n(59948),c=n(57826),l=n(19065);let d=(()=>{class e{constructor(e,t,n,i){this.http=e,this.languageService=t,this.stringUtils=n,this.subscriptions=new Map,this.translations=new Map,this.pendingTranslationRequestsPerDom=new Map,this.lang="en",this.languageService.getLanguage().subscribe((e=>this.lang=e)),i&&i.customPath?this.customPath=i.customPath:this.languageService.getTranslationUrlPrefix&&(this.customPath=this.languageService.getTranslationUrlPrefix())}injectCategory(e){for(let t in e){let n=e[t];this.translations.has(t)||this.translations.set(t,new r.BehaviorSubject({})),this.translations.get(t).next(n)}}loadTranslations(e,t=!1,n){return!this.translations.has(e)||t?(this.translations.has(e)||this.translations.set(e,new r.BehaviorSubject({})),this.fetchTranslations(e,n)):this.translations.get(e).subscribe((t=>{0!==Object.keys(t).length&&-1===Object.keys(t).indexOf("error")||this.fetchTranslations(e,n)})),this.translations.get(e)}getCategory(e){return e.split(".")[0]}translate(e,t){return this.loadTranslations(this.getCategory(e)).pipe((0,o.map)((n=>null!==n[e]&&void 0!==n[e]?t?this.interpolate(n[e],t):n[e]:e)))}interpolate(e,t){return this.stringUtils.interpolate(e,t)}getTranslationsUrl(e,t){const n=t||this.lang;return this.customPath?this.customPath+`/i18n/${n.toString()}/${e}.json`:`i18n/${n.toString()}/${e}.json`}fetchTranslations(e,t){this.subscriptions.has(e)&&!this.subscriptions.get(e).closed||this.subscriptions.set(e,this.http.get(this.getTranslationsUrl(e,t)).subscribe((t=>{this.translations.get(e).next(t)}),(()=>{this.translations.get(e).next({error:"file not found"})})))}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](i.HttpClient),c["ɵɵinject"](a.T),c["ɵɵinject"](l.x),c["ɵɵinject"](s.f,8))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},83017:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var i=n(6856),r=n(84704),o=n(57826);let a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.a]]}),e})()},65904:(e,t,n)=>{"use strict";n.d(t,{g:()=>d});var i=n(57826),r=n(6856),o=n(86014);const a=function(e){return{inverse:e}},s=function(e){return{active:e}},c=function(e,t){return{"icon-arrow-next":e,"icon-arrow-down":t}},l=["*"];let d=(()=>{class e{constructor(){this.open=!1,this.type="primary",this.inverse=!1}toggleOpen(){this.open=!this.open}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-single-accordion"]],inputs:{title:"title",open:"open",type:"type",inverse:"inverse"},ngContentSelectors:l,decls:20,vars:14,consts:[[3,"ngClass"],["role","button",1,"subject-heading",3,"ngClass","click"],[1,"title",3,"bxTranslate"],[1,"icon",3,"ngClass"],[1,"more-info"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n          "),i["ɵɵelementStart"](3,"header",1),i["ɵɵlistener"]("click",(function(){return t.toggleOpen()})),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"h2",2),i["ɵɵtext"](6),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelement"](8,"i",3),i["ɵɵtext"](9,"\n          "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n          "),i["ɵɵelementStart"](11,"section",4),i["ɵɵtext"](12,"\n            "),i["ɵɵelementStart"](13,"p"),i["ɵɵtext"](14,"\n                "),i["ɵɵprojection"](15),i["ɵɵtext"](16,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n          "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassMapInterpolate1"]("bx-single-accordion accordion ",t.type,""),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](7,a,t.inverse)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](9,s,t.open)),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](t.title),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](11,c,!t.open,t.open)))},directives:[r.NgClass,o.P],styles:[".bx-single-accordion[_ngcontent-%COMP%] {\n  padding: 1em; }\n\n[_nghost-%COMP%]     .accordion.inverse .more-info {\n  color: #fff; }\n\n[_nghost-%COMP%]     .accordion .more-info {\n  color: #2b2b2b; }"]}),e})()},68574:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var i=n(27399),r=n(6856),o=n(40475),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[i.vO,r.CommonModule,o.FormsModule]]}),e})()},36803:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var i=n(57826);let r=(()=>{class e{constructor(e,t,n,i){this.renderer=e,this.el=t,this.viewContainerRef=n,this.changeDetectorRef=i,this.placement="bottom",this.absolute=!1,this.condition=!0,this.popover=!1,this.showWhen="click"}handleClickEvent(e){if(this.popover){let t=this.el.nativeElement;t.contains(e.target)||this.popoverContainerDiv.contains(e.target)&&!this.popoverCloseButton.contains(e.target)?this.renderer.addClass(t,"active"):this.renderer.removeClass(t,"active")}}mouseover(){if("hover"===this.showWhen){let e=this.el.nativeElement;this.renderer.addClass(e,"active")}}ngAfterViewInit(){if(this.condition){if("string"!=typeof this.bxTooltip){const e=this.viewContainerRef.createEmbeddedView(this.bxTooltip);this.templatesNodes=e.rootNodes}const e=this.el.nativeElement.parentNode;this.popoverContainerDiv=this.renderer.createElement("div"),this.renderer.addClass(this.popoverContainerDiv,"tooltip-popover-container"),this.absolute&&this.renderer.setStyle(this.popoverContainerDiv,"position","absolute"),this.renderer.insertBefore(e,this.popoverContainerDiv,this.el.nativeElement);let t=this.renderer.createElement("div");this.renderer.addClass(t,"tooltip-popover-content"),this.renderer.appendChild(this.popoverContainerDiv,t);let n=this.renderer.createElement("div");if(this.renderer.addClass(n,"tooltip-popover-msg"),this.renderer.setStyle(n,"justify-content","center"),this.renderer.addClass(n,this.placement),this.renderer.addClass(this.el.nativeElement,this.popover?"popover-toggle":"tooltip-toggle"),this.renderer.removeChild(e,this.el.nativeElement),"string"==typeof this.bxTooltip){let e=this.renderer.createElement("span");e.innerHTML=this.bxTooltip,this.renderer.appendChild(n,e)}else this.templatesNodes.forEach((e=>this.renderer.insertBefore(n,e,null)));if(this.popover){this.popoverCloseButton=this.renderer.createElement("button"),this.renderer.addClass(this.popoverCloseButton,"close-btn"),this.renderer.setAttribute(this.popoverCloseButton,"type","button");let e=this.renderer.createElement("i");this.renderer.addClass(e,"icon"),this.renderer.addClass(e,"icon-close2"),this.renderer.appendChild(this.popoverCloseButton,e),this.renderer.appendChild(n,this.popoverCloseButton)}this.renderer.appendChild(t,this.el.nativeElement),this.renderer.appendChild(t,n),this.changeDetectorRef.detectChanges()}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](i.ChangeDetectorRef))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxTooltip",""]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.handleClickEvent(e)}),!1,i["ɵɵresolveDocument"])("mouseover",(function(){return t.mouseover()}))},inputs:{bxTooltip:"bxTooltip",placement:"placement",absolute:"absolute",condition:"condition",popover:"popover",showWhen:"showWhen"}}),e})()},38129:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[],imports:[[]]}),e})()},35462:(e,t,n)=>{"use strict";n.d(t,{z:()=>i.z});var i=n(38129)},68698:(e,t,n)=>{"use strict";n.d(t,{T:()=>m});var i=n(6716),r=n(70570),o=n(40475),a=n(10790),s=n(6856),c=n(84704),l=n(82009),d=n(57826);let u=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d["ɵɵdefineNgModule"]({type:e}),e.ɵinj=d["ɵɵdefineInjector"]({imports:[[s.CommonModule,c.a,o.FormsModule,l.D]]}),e})();var p=n(39211),h=n(75826);let m=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d["ɵɵdefineNgModule"]({type:e}),e.ɵinj=d["ɵɵdefineInjector"]({providers:[h.t],imports:[[i.r1,r.k],i.r1,r.k,a.v,u,p.N,o.ReactiveFormsModule]}),e})()},20843:(e,t,n)=>{"use strict";n.d(t,{J:()=>N});var i=n(6856),r=n(57826),o=n(40475),a=n(4309),s=n(42998),c=n(81899),l=n(43959),d=n(76355),u=n(86014);const p=["list"];function h(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"input",13),r["ɵɵlistener"]("click",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().toggle(t)}))("blur",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().updateVisited()})),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵclassMap"](e.dropDownType),r["ɵɵproperty"]("id",e.id)("readonly",!0)("value",e.dropdownDisplayValue)("disabled",e.disabled)}}function m(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"input",14),r["ɵɵlistener"]("click",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().toggle(t)}))("keyup",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().filterOptions(t.target.value)}))("keydown",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().forceFilteredList()}))("blur",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().updateVisited()})),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("id",e.id)("value",e.dropdownDisplayValue)("disabled",e.disabled),r["ɵɵattribute"]("readonly",e.readonly?"":null)}}const g=function(e){return["selected",e]};function f(e,t){if(1&e&&r["ɵɵelement"](0,"i",15),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](1,g,e.selectedIcon))}}function v(e,t){if(1&e&&r["ɵɵelement"](0,"i",15),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",e.prefixIconClass)}}function b(e,t){if(1&e&&r["ɵɵelement"](0,"span",16),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxRequiredField",e.label)("mandatory",e.required)}}function y(e,t){if(1&e&&(r["ɵɵelementStart"](0,"span"),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.label)}}const C=function(e){return[e]};function S(e,t){if(1&e&&r["ɵɵelement"](0,"i",15),2&e){const e=r["ɵɵnextContext"]();r["ɵɵclassMapInterpolate1"]("",e.dropDownType," icon icon-arrow"),r["ɵɵclassProp"]("disabled",e.disabled),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](6,C,e.dropdownOpened?e.arrowUpIconClass:e.arrowDownIconClass))}}const x=function(e,t){return["icon",e,t]};function w(e,t){if(1&e&&r["ɵɵelement"](0,"i",15),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](1,x,e[t.iconClassProperty],t.iconClassProperty))}}function E(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"a",19),r["ɵɵlistener"]("click",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"](2).preventHrefClick(t)})),r["ɵɵtext"](1),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("href",t.getHrefValue(e[t.valueProperty]),r["ɵɵsanitizeUrl"]),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e[t.displayProperty])}}function I(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e[t.displayProperty])}}const P=function(e){return{active:e}};function T(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"li",17),r["ɵɵlistener"]("click",(function(){const t=r["ɵɵrestoreView"](e).$implicit;return r["ɵɵnextContext"]().changeValue(t)})),r["ɵɵtext"](1,"\n                    "),r["ɵɵtemplate"](2,w,1,4,"i",3),r["ɵɵtext"](3,"\n                    "),r["ɵɵtemplate"](4,E,2,2,"a",18),r["ɵɵtext"](5,"\n                    "),r["ɵɵtemplate"](6,I,2,1,"ng-container",6),r["ɵɵtext"](7,"\n                "),r["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](5,P,n.dropdownValue===e[n.valueProperty])),r["ɵɵattribute"]("listitem","small-options"!==n.type?"listitem":null),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",n.iconClassProperty&&e[n.iconClassProperty]),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",n.getHrefValue(e[n.valueProperty])),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!n.getHrefValue(e[n.valueProperty]))}}const _=function(e,t){return{tag:"textContent",label:e,values:t}};function M(e,t){if(1&e&&r["ɵɵelement"](0,"p",20),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction2"](1,_,e.errorMessage,e.errorValues))}}function O(e,t){1&e&&r["ɵɵelement"](0,"div",21)}const A=function(e,t,n,i,r,o,a,s){return{"custom-field":e,"small-field":t,options:n,"lang-selector":i,active:r,"invalid-field":o,"corrected-field":a,inverse:s}},k=function(e,t){return{"active-field":e,"active-button":t}},j=function(e){return{"scrollable-area":e}};let N=(()=>{class e{constructor(e,t,n,i,o,a){this.eRef=e,this.cd=t,this.dropdownConfig=n,this.renderer=i,this.windowService=o,this.platformId=a,this.type="normal",this.hrefValues={},this.resetFiltersOnOptionsChange=!1,this.state="",this.disabled=!1,this.readonly=!1,this.forceFilterList=!1,this.showArrowIcon=!1,this.showSelectedIcon=!0,this.arrowUpIconClass="icon-arrow-up",this.arrowDownIconClass="icon-arrow-down",this.prefixIconClass="",this.inverse=!1,this.change=new r.EventEmitter,this.dropdownValue="",this.dropdownDisplayValue="",this.dropdownOpened=!1,this.ulDisplay="none",this.activeClass=!1,this.backgroundOverlay=!1,this.propagateChange=()=>{},this.propagateTouch=()=>{},this.dropdownConfig&&(this.backgroundOverlay=this.dropdownConfig.backgroundOverlay)}closeGlobal(e){this.disabled||this.eRef.nativeElement.contains(e.target)||(this.close(),this.activeClass=!1)}setSelectedValue(e){e?("small"===this.type?this.label="":"button"===this.type&&(this.displayLabelProperty?this.label=e[this.displayLabelProperty]:this.label=e[this.displayProperty]),this.dropdownValue=e[this.valueProperty],this.dropdownDisplayValue=e[this.displayProperty],this.selectedIcon=e[this.iconClassProperty],this.propagateChange(this.dropdownValue)):("small"===this.type&&(this.label=this.originalLabel),this.dropdownValue="",this.dropdownDisplayValue="",this.selectedIcon="",this.propagateChange(""))}updateVisited(){this.visited=this.dropdownDisplayValue,this.propagateTouch()}filterOptions(e){if(this.readonly)return;const t=e=>t=>t[this.displayProperty]&&t[this.displayProperty].toLowerCase().includes(e.toLowerCase());this.localOptionFilterSubject$||(this.localOptionFilterSubject$=this.optionFilterSubject$||(new a.Subject).pipe((0,s.map)((e=>({searchQuery:e,filteredOpts:""===e?null:this.options.filter(t(e))})))),this.localOptionFilterSubject$.asObservable().subscribe((({searchQuery:e,filteredOpts:t})=>{this.filteredOptions=t,this.filteredOptions&&1===this.filteredOptions.length&&e===this.filteredOptions[0][this.displayProperty]?this.setSelectedValue(this.filteredOptions[0]):this.setSelectedValue(null),this.cd.markForCheck(),this.dropdownDisplayValue=e}))),this.localOptionFilterSubject$.next(e)}preventHrefClick(e){e.preventDefault()}getHrefValue(e){return this.hrefValues[e]?this.hrefValues[e]:null}close(){this.dropdownOpened=!1,this.ulDisplay="none"}toggle(e){this.disabled||this.readonly||(this.dropdownOpened=!this.dropdownOpened,this.ulDisplay="block"===this.ulDisplay?"none":"block",this.dropdownOpened?(this.activeClass=!0,this.showItemListDownwardsOrUpwards()):this.activeClass=!1)}showItemListDownwardsOrUpwards(){if((0,i.isPlatformBrowser)(this.platformId)){this.cd.detectChanges();const e=this.eRef.nativeElement.getBoundingClientRect(),t=this.list.nativeElement.getBoundingClientRect();this.windowService.window().innerHeight-e.bottom<t.height&&e.top>=t.height?this.renderer.setStyle(this.list.nativeElement,"top",-t.height+"px"):this.renderer.removeStyle(this.list.nativeElement,"top")}}changeValue(e){this.setSelectedValue(e),this.change.emit(e),this.close()}ngOnInit(){this.id||(this.id=Math.random().toString(36).substring(7)),this.displayProperty||(this.displayProperty=this.valueProperty),this.selectedValue&&this.setSelectedValue(this.findOption(this.selectedValue)),this.originalLabel=this.label}filterbyCategoryOptions(e){this.filteredOptions=this.options.filter((t=>!e||t.filterValue.toLowerCase().includes(e)))}findOption(e){return this.options?this.options.find((t=>t[this.valueProperty]===e)):null}ngOnChanges(e){const t=e.id,n=e.selectedValue,i=e.label,r=e.options,o=e.parentValue;t&&(this.id=t.currentValue),o&&!o.isFirstChange()&&o.currentValue!==o.previousValue&&(this.filterbyCategoryOptions(o.currentValue),this.filteredOptions.some((e=>e[this.valueProperty]===this.dropdownValue))||this.setSelectedValue(null)),n&&this.setSelectedValue(this.findOption(n.currentValue)),r&&this.setSelectedValue(this.findOption(this.dropdownValue)),i&&(this.originalLabel=i.currentValue,this.label=i.currentValue),this.resetFiltersOnOptionsChange&&this.isThereChangesInOptions(r)&&this.filterOptions("")}writeValue(e){e?this.setSelectedValue(this.findOption(e)):this.setSelectedValue(null)}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.propagateTouch=e}forceFilteredList(){!this.forceFilterList||this.disabled||this.readonly||(this.dropdownOpened=!0,this.ulDisplay="block")}isThereChangesInOptions(e){if(!e)return!1;const t=e.currentValue,n=e.previousValue;return!!t||!!n}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.ChangeDetectorRef),r["ɵɵdirectiveInject"](l.k,8),r["ɵɵdirectiveInject"](r.Renderer2),r["ɵɵdirectiveInject"](c.u),r["ɵɵdirectiveInject"](r.PLATFORM_ID))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-dropdown"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](p,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.list=e.first)}},hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("click",(function(e){return t.closeGlobal(e)}),!1,r["ɵɵresolveDocument"])},inputs:{id:"id",type:"type",typeahead:"typeahead",required:"required",options:"options",hrefValues:"hrefValues",displayProperty:"displayProperty",displayLabelProperty:"displayLabelProperty",valueProperty:"valueProperty",parentValue:"parentValue",resetFiltersOnOptionsChange:"resetFiltersOnOptionsChange",iconClassProperty:"iconClassProperty",selectedIcon:"selectedIcon",label:"label",selectedValue:"selectedValue",state:"state",errorMessage:"errorMessage",errorValues:"errorValues",disabled:"disabled",readonly:"readonly",forceFilterList:"forceFilterList",showArrowIcon:"showArrowIcon",showSelectedIcon:"showSelectedIcon",arrowUpIconClass:"arrowUpIconClass",arrowDownIconClass:"arrowDownIconClass",prefixIconClass:"prefixIconClass",dropDownType:"dropDownType",optionFilterSubject$:"optionFilterSubject$",inverse:"inverse"},outputs:{change:"change"},features:[r["ɵɵProvidersFeature"]([{provide:o.NG_VALUE_ACCESSOR,useExisting:(0,r.forwardRef)((()=>e)),multi:!0}]),r["ɵɵNgOnChangesFeature"]],decls:31,vars:31,consts:[[1,"custom-dropdown",3,"ngClass"],["type","text",3,"class","id","readonly","value","disabled","click","blur",4,"ngIf"],["type","text","autocomplete","off",3,"id","value","disabled","click","keyup","keydown","blur",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"for","ngClass","click"],[3,"bxRequiredField","mandatory",4,"ngIf"],[4,"ngIf"],[3,"class","disabled","ngClass",4,"ngIf"],[1,"custom-droplist",3,"ngClass"],["list",""],[3,"ngClass","click",4,"ngFor","ngForOf"],["class","error-msg",3,"bxTranslate",4,"ngIf"],["class","lang-selector-menu-overlay",4,"ngIf"],["type","text",3,"id","readonly","value","disabled","click","blur"],["type","text","autocomplete","off",3,"id","value","disabled","click","keyup","keydown","blur"],[3,"ngClass"],[3,"bxRequiredField","mandatory"],[3,"ngClass","click"],[3,"href","click",4,"ngIf"],[3,"href","click"],[1,"error-msg",3,"bxTranslate"],[1,"lang-selector-menu-overlay"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"figure",0),r["ɵɵtext"](2,"\n            "),r["ɵɵtemplate"](3,h,1,7,"input",1),r["ɵɵtext"](4,"\n            "),r["ɵɵtemplate"](5,m,1,4,"input",2),r["ɵɵtext"](6,"\n            "),r["ɵɵtemplate"](7,f,1,3,"i",3),r["ɵɵtext"](8,"\n            "),r["ɵɵelementStart"](9,"label",4),r["ɵɵlistener"]("click",(function(e){return t.toggle(e)})),r["ɵɵtext"](10,"\n                "),r["ɵɵtemplate"](11,v,1,1,"i",3),r["ɵɵtext"](12,"\n                "),r["ɵɵtemplate"](13,b,1,2,"span",5),r["ɵɵtext"](14,"\n                "),r["ɵɵtemplate"](15,y,2,1,"span",6),r["ɵɵtext"](16,"\n                "),r["ɵɵtemplate"](17,S,1,8,"i",7),r["ɵɵtext"](18,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](19,"\n            "),r["ɵɵelementStart"](20,"ul",8,9),r["ɵɵtext"](22,"\n                "),r["ɵɵtemplate"](23,T,8,7,"li",10),r["ɵɵtext"](24,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](25,"\n            "),r["ɵɵtemplate"](26,M,1,4,"p",11),r["ɵɵtext"](27,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](28,"\n        "),r["ɵɵtemplate"](29,O,1,0,"div",12),r["ɵɵtext"](30,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction8"](17,A,!("button"===t.type),"small"===t.type||"small-options"===t.type,"small-options"===t.type,"button"===t.type,t.dropdownOpened,"error"===t.state||t.typeahead&&t.visited&&t.visited===t.dropdownDisplayValue&&""!==t.dropdownDisplayValue&&""===t.dropdownValue,"valid"===t.state,t.inverse)),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!("button"===t.type||t.typeahead)),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!("button"===t.type)&&t.typeahead),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.showSelectedIcon&&t.selectedIcon),r["ɵɵadvance"](2),r["ɵɵproperty"]("for",t.id)("ngClass",r["ɵɵpureFunction2"](26,k,!("button"===t.type)&&(t.dropdownOpened||""!==t.dropdownDisplayValue),"button"===t.type&&t.activeClass)),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!!t.prefixIconClass),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf","button"!==t.type),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf","button"===t.type),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf","button"!==t.type||t.showArrowIcon),r["ɵɵadvance"](3),r["ɵɵstyleProp"]("display",t.ulDisplay),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](29,j,"small-options"===t.type)),r["ɵɵattribute"]("role","small-options"!==t.type?"list":null),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",t.filteredOptions||t.options),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",t.errorMessage),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",t.backgroundOverlay&&t.dropdownOpened))},directives:[i.NgClass,i.NgIf,i.NgForOf,d.w,u.P],styles:["div.modal-content .custom-form-helper div.bx-account-menu-subcontent .modal-body .custom-dropdown.custom-field input:disabled.date + label {\n  background-color: #ffffff;\n  border-color: rgba(163, 163, 163, 0.3);\n  color: #c2c2c2; }\n\n  div.modal-content .custom-form-helper div.bx-account-menu-subcontent .modal-body .custom-dropdown.custom-field input:disabled.date {\n  color: #c2c2c2; }\n\n  .custom-dropdown i.date.icon.icon-arrow.icon-arrow-down {\n  font-size: 8px;\n  color: #040404; }\n\n  .custom-dropdown i.date.icon.icon-arrow.icon-arrow-down.disabled {\n    color: #c2c2c2; }\n\n  div.modal-content .custom-form-helper div.bx-account-menu-subcontent .modal-body .custom-dropdown.custom-field input:disabled {\n  -webkit-text-fill-color: #c2c2c2;\n  -webkit-opacity: 1;\n  color: #c2c2c2; }"]}),e})()},43959:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.backgroundOverlay=!1,this.useInverseStyle=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},70570:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var i=n(6856),r=n(84704),o=n(82009),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.a,o.D]]}),e})()},75619:(e,t,n)=>{"use strict";n.d(t,{m:()=>k});var i=n(57826),r=n(18548),o=n(4309),a=n(6856),s=n(76355),c=n(86014);const l=function(e){return{tag:"textContent",label:e}};function d(e,t){if(1&e&&(i["ɵɵelementStart"](0,"p",1),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](2,l,e.taphint)),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.message)}}let u=(()=>{class e{constructor(){this.display=!1}ngOnInit(){this.onEvent.subscribe((e=>{switch(e){case"focus":"invalid"!==this.inputState.state&&(this.display=!0);break;case"changes":"invalid"===this.inputState.state?this.display=!1:"valid"===this.inputState.state&&(this.display=!0)}}))}ngOnDestroy(){this.onEvent.unsubscribe()}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-tap-hint"]],inputs:{onEvent:"onEvent",message:"message",inputState:"inputState"},decls:3,vars:1,consts:[["class","hint-msg",3,"bxTranslate",4,"ngIf"],[1,"hint-msg",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n    "),i["ɵɵtemplate"](1,d,2,4,"p",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.display))},directives:[a.NgIf,c.P],encapsulation:2}),e})();var p=n(81899);const h=function(e,t,n){return{"icon-close":e,"icon-checked":t,"icon-info":n}},m=function(e){return{tag:"textContent",label:e}};function g(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",2),i["ɵɵtext"](1,"\n            "),i["ɵɵelement"](2,"i",3),i["ɵɵtext"](3,"\n            "),i["ɵɵelement"](4,"span",4),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction3"](2,h,!1===e.valid,!0===e.valid,void 0===e.valid)),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](6,m,e.translate))}}function f(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n        "),i["ɵɵtemplate"](2,g,6,8,"div",1),i["ɵɵtext"](3,"\n    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",e.rulesChecker)}}let v=(()=>{class e{constructor(e){this.windowService=e,this.display=!1}ngOnInit(){this.onEvent.subscribe((e=>{switch(e){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"changes":this.onChanges()}}))}ngOnDestroy(){this.onEvent.unsubscribe()}onFocus(){this.display=!0,this.checkRules()}onChanges(){this.checkRules(),"invalid"===this.inputState.state&&(this.display=!0)}onBlur(){this.rulesChecker.every((e=>void 0!==e.valid))&&this.windowService.window().setTimeout((()=>{this.display=!!this.rulesChecker.find((e=>!1===e.valid))}),100)}checkRules(){if(this.rulesChecker&&this.rulesChecker.length){if(!this.inputState.state&&!this.inputState.value&&this.rulesChecker.find((e=>void 0===e.valid)))return;this.inputState.errorList=this.inputState.errorList||{};let e=Object.keys(this.inputState.errorList);this.rulesChecker.map((t=>(t.valid=!0,e.forEach((e=>{t.rules.toString().toLowerCase().split(",").indexOf(e.toLowerCase())>-1&&(t.valid=!1)})),t)))}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](p.u))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-rules-checker"]],inputs:{rulesChecker:"rulesChecker",onEvent:"onEvent",inputState:"inputState"},decls:3,vars:1,consts:[[4,"ngIf"],["class","row",4,"ngFor","ngForOf"],[1,"row"],[1,"icon",3,"ngClass"],[3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n    "),i["ɵɵtemplate"](1,f,4,1,"div",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.display))},directives:[a.NgIf,a.NgForOf,a.NgClass,c.P],encapsulation:2}),e})();const b=function(e){return{"icon-show-password":e}};function y(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",9),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onClickPasswordEye()})),i["ɵɵtext"](1,"Show/Hide\n                "),i["ɵɵelement"](2,"i",10),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,b,e.passwordType))}}function C(e,t){if(1&e&&i["ɵɵelement"](0,"i",11),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass","valid"===e.state?"icon icon-checked status":"icon icon-error status")}}const S=function(e){return{tag:"textContent",label:e}};function x(e,t){if(1&e&&(i["ɵɵelementStart"](0,"p",12),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](2,S,e.hint)),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.hint)}}function w(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-tap-hint",13),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("message",e.tapHint)("inputState",e.inputState)("onEvent",e.eventSubject)}}function E(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"bx-rules-checker",14),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("rulesChecker",e.rulesChecker)("onEvent",e.eventSubject)("inputState",e.inputState)}}const I=function(e,t){return{tag:"textContent",label:e,values:t}};function P(e,t){if(1&e&&(i["ɵɵelementStart"](0,"p",16),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](1,I,e.errorMessage,e.errorVars))}}function T(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                "),i["ɵɵtemplate"](1,P,2,4,"p",15),i["ɵɵtext"](2,"\n            ")),2&e){const e=i["ɵɵnextContext"](),t=i["ɵɵreference"](21);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",e.errorMessage)("ngIfElse",t)}}function _(e,t){if(1&e&&i["ɵɵelement"](0,"p",18),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](1,S,e.info))}}function M(e,t){if(1&e&&(i["ɵɵtext"](0,"\n               "),i["ɵɵtemplate"](1,_,1,3,"p",17),i["ɵɵtext"](2,"\n            ")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",e.info)}}const O=function(e){return{"active-field":e}},A=["*"];let k=(()=>{class e{constructor(e,t){this.changeDetectionRef=e,this.elementRef=t,this.label="",this.state="",this.errorMessage="",this.styles="",this.forLabelTag="",this.errorVars={},this.fieldActive=!1,this.inputClass="",this.isPassword=!1,this.passwordType=!1,this.eventSubject=new o.ReplaySubject,this.inputState={}}onDocumentClick(){this.isPassword&&this.toPassword()}ngAfterContentInit(){this.inputField.type="passwordEye"===this.inputField.visualType?"password":this.inputField.visualType,this.isPassword="password"===this.inputField.type,this.setStyles(),this.isPassword&&(this.inputField.onBlurEmitter.subscribe((()=>{"text"==this.inputField.type&&(this.timer=setTimeout((()=>this.toPassword()),200))})),this.inputField.setPasswordFieldAttributes()),this.inputField.onBlurEmitter.subscribe((()=>{this.setStyles(),this.sendEvent("blur")})),this.inputField.onFocusedEmitter.subscribe((()=>{this.setStyles(),this.sendEvent("focus")}))}ngAfterViewChecked(){this.inputField.getInputValue()||"invalid"===this.state?this.styles.includes("small-field")&&(this.label=""):this.label=this.originalLabel,this.changeDetectionRef.detectChanges()}onClickPasswordEye(){let e=navigator.userAgent||navigator.vendor;clearTimeout(this.timer),this.toggleInputType(),/android/i.test(e)?setTimeout((()=>this.inputField.focus()),200):(this.inputField.focus(),this.elementRef.nativeElement.scrollIntoView())}toggleInputType(){"text"==this.inputField.type?this.toPassword():this.toText()}toPassword(){this.inputField.type="password",this.passwordType=!1}toText(){this.inputField.type="text",this.passwordType=!0}cancelBubble(e){e.stopPropagation()}ngOnChanges(e){let t=e.label,n=e.styles,i=e.state,r=e.hint;t&&(this.originalLabel=t.currentValue),(n||i)&&this.setStyles(),r&&(this.hint=r.currentValue),this.sendEvent("changes",e)}ngOnDestroy(){this.inputField.onBlurEmitter.unsubscribe(),this.inputField.onFocusedEmitter.unsubscribe()}getClasses(){return this.inputClass}setStyles(){this.inputClass=this.styles,"invalid"===this.state&&(this.inputClass+=" invalid-field"),"valid"===this.state&&(this.inputClass+=" corrected-field"),this.isPassword&&(this.inputClass+=" password-field"),this.fieldActive=this.isActive(),this.inputClass=`${this.inputClass} ${this.fieldActive?"active":""}`,this.changeDetectionRef.detectChanges()}sendEvent(e,t){this.shouldEventsBeSent()&&(t=t||{},this.inputState.errorList=t.errorList?t.errorList.currentValue:this.errorList,this.inputState.state=t.state?t.state.currentValue:this.state,this.inputState.value=this.inputField.getInputValue(),this.eventSubject.next(e))}shouldEventsBeSent(){return!!(this.rulesChecker&&this.rulesChecker.length||this.tapHint)}isActive(){return!this.inputField.isDisabled()&&(""!=this.inputField.getInputValue()||this.inputField.focused)}isActiveLabel(){return""!=this.inputField.getInputValue()||this.inputField.focused}isEnabledInputIconStatus(){return this.inputClass.includes("icon-status")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ChangeDetectorRef),i["ɵɵdirectiveInject"](i.ElementRef))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-input-field-container"]],contentQueries:function(e,t,n){if(1&e&&i["ɵɵcontentQuery"](n,r.u,7),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.inputField=e.first)}},hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("touchstart",(function(){return t.onDocumentClick()}),!1,i["ɵɵresolveDocument"])},inputs:{label:"label",state:"state",errorMessage:"errorMessage",styles:"styles",forLabelTag:"forLabelTag",hint:"hint",tapHint:"tapHint",info:"info",required:"required",rulesChecker:"rulesChecker",errorList:"errorList",errorVars:"errorVars"},features:[i["ɵɵNgOnChangesFeature"]],ngContentSelectors:A,decls:24,vars:13,consts:[[1,"custom-field",3,"ngClass","touchstart"],[3,"for","ngClass","bxRequiredField","mandatory"],["type","button","role","button","class","toggle-password-btn active",3,"click",4,"ngIf"],[3,"ngClass",4,"ngIf"],["class","hint-msg",3,"bxTranslate",4,"ngIf"],[3,"message","inputState","onEvent",4,"ngIf"],[4,"ngIf","ngIfElse"],["displayErrorMsg",""],["displayInfoMsg",""],["type","button","role","button",1,"toggle-password-btn","active",3,"click"],[1,"icon","icon-hide-password",3,"ngClass"],[3,"ngClass"],[1,"hint-msg",3,"bxTranslate"],[3,"message","inputState","onEvent"],[3,"rulesChecker","onEvent","inputState"],["class","error-msg",3,"bxTranslate",4,"ngIf","ngIfElse"],[1,"error-msg",3,"bxTranslate"],["class","info-msg",3,"bxTranslate",4,"ngIf"],[1,"info-msg",3,"bxTranslate"]],template:function(e,t){if(1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵlistener"]("touchstart",(function(e){return t.cancelBubble(e)})),i["ɵɵtext"](2,"\n            "),i["ɵɵprojection"](3),i["ɵɵtext"](4,"\n            "),i["ɵɵelement"](5,"label",1),i["ɵɵtext"](6,"\n            "),i["ɵɵtemplate"](7,y,4,3,"button",2),i["ɵɵtext"](8,"\n            "),i["ɵɵtemplate"](9,C,1,1,"i",3),i["ɵɵtext"](10,"\n\n            "),i["ɵɵtemplate"](11,x,2,4,"p",4),i["ɵɵtext"](12,"\n\n            "),i["ɵɵtemplate"](13,w,2,3,"bx-tap-hint",5),i["ɵɵtext"](14,"\n\n            "),i["ɵɵtemplate"](15,E,5,3,"div",6),i["ɵɵtext"](16,"\n            "),i["ɵɵtemplate"](17,T,3,2,"ng-template",null,7,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](19,"\n            "),i["ɵɵtemplate"](20,M,3,1,"ng-template",null,8,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](22,"\n\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n    ")),2&e){const e=i["ɵɵreference"](18);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",t.inputClass),i["ɵɵadvance"](4),i["ɵɵproperty"]("for",t.forLabelTag)("ngClass",i["ɵɵpureFunction1"](11,O,t.isActiveLabel()))("bxRequiredField",t.label)("mandatory",t.required),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.isPassword),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.isEnabledInputIconStatus()&&("invalid"===t.state||"valid"===t.state)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.hint),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.tapHint),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.rulesChecker&&t.rulesChecker.length)("ngIfElse",e)}},directives:[a.NgClass,s.w,a.NgIf,c.P,u,v],styles:["[_nghost-%COMP%]     .inner-addon[class*=col-] .left-addon {\n  left: 10px; }\n[_nghost-%COMP%]     .inner-addon[class*=col-] .left-addon ~ label {\n    padding-left: 30px; }\n[_nghost-%COMP%]     .inner-addon[class*=col-] .left-addon ~ input {\n    padding-left: 30px;\n    padding-right: 30px; }\n[_nghost-%COMP%]     .inner-addon[class*=col-] .right-addon {\n  right: 10px; }\n[_nghost-%COMP%]     .inner-addon[class*=col-] .right-addon ~ input {\n    padding-right: 50px; }\n[_nghost-%COMP%]     .inner-addon[class*=col-].active .left-addon ~ label {\n  padding-left: 10px; }\n[_nghost-%COMP%]     .inner-addon[class*=col-].active.small-field .left-addon ~ label {\n  padding-left: 30px; }\n[_nghost-%COMP%]     .inner-addon {\n  position: relative;\n  color: #989898; }\n[_nghost-%COMP%]     .inner-addon .icon {\n    position: absolute;\n    padding: 10px;\n    pointer-events: none;\n    top: .65em; }\n[_nghost-%COMP%]     .inner-addon .icon.clickable-addon {\n      cursor: pointer;\n      z-index: 2;\n      pointer-events: auto; }\n[_nghost-%COMP%]     .inner-addon .left-addon {\n    left: -5px; }\n[_nghost-%COMP%]     .inner-addon .left-addon ~ label {\n      padding-left: 25px; }\n[_nghost-%COMP%]     .inner-addon .left-addon ~ input {\n      padding-left: 25px; }\n[_nghost-%COMP%]     .inner-addon .right-addon {\n    right: 0; }\n[_nghost-%COMP%]     .inner-addon .right-addon ~ input {\n      padding-right: 30px; }\n[_nghost-%COMP%]     .inner-addon.small-field .icon {\n    top: 0; }\n[_nghost-%COMP%]     .inner-addon.active .left-addon {\n    top: 1.25em; }\n[_nghost-%COMP%]     .inner-addon.active .left-addon ~ label {\n      padding-left: 5px; }\n[_nghost-%COMP%]     .inner-addon.active .right-addon {\n    top: 1.25em; }\n[_nghost-%COMP%]     .inner-addon.active.small-field .left-addon {\n    top: 0; }\n[_nghost-%COMP%]     .inner-addon.active.small-field .left-addon ~ label {\n      padding-left: 25px; }\n[_nghost-%COMP%]     .inner-addon.active.small-field .right-addon {\n    top: 0; }\n[_nghost-%COMP%]     input[type='hidden'] ~ label, [_nghost-%COMP%]     input[type='hidden'] ~ p.hint-msg {\n  display: none; }"]}),e})()},18548:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var i=n(57826),r=n(81899),o=n(6856);const a=["","disabled"];let s=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.windowService=t,this.platformId=n,this.passwordField=!1,this.focused=!1,this.visualType="text",this.onBlurEmitter=new i.EventEmitter,this.onFocusedEmitter=new i.EventEmitter}onInput(){this.focused=!0,this.onFocusedEmitter.emit(!0)}onBlur(){this.focused=this.elementRef.nativeElement.value||!1,this.onBlurEmitter.emit(!0)}onInputChange(){this.onFocusedEmitter.emit(!0)}ngOnInit(){this.focused&&(0,o.isPlatformBrowser)(this.platformId)&&this.windowService.window().setTimeout((()=>this.focus()),0)}focus(){(0,o.isPlatformBrowser)(this.platformId)&&this.elementRef.nativeElement.focus()}getInputValue(){return this.elementRef.nativeElement.value}isDisabled(){return this.elementRef.nativeElement.hasAttribute("disabled")&&a.includes(this.elementRef.nativeElement.getAttribute("disabled"))}setPasswordFieldAttributes(){this.elementRef.nativeElement.setAttribute("autocomplete","off"),this.elementRef.nativeElement.setAttribute("autocorrect","off"),this.elementRef.nativeElement.setAttribute("autocapitalize","off"),this.elementRef.nativeElement.setAttribute("spellcheck","off")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](r.u),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["input","bxInput",""]],hostVars:1,hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("focus",(function(){return t.onInput()}))("blur",(function(){return t.onBlur()}))("input",(function(){return t.onInputChange()})),2&e&&i["ɵɵhostProperty"]("type",t.type)},inputs:{focused:"focused",visualType:"visualType"},outputs:{onBlurEmitter:"onBlurEmitter",onFocusedEmitter:"onFocusedEmitter"}}),e})()},78418:(e,t,n)=>{"use strict";n.d(t,{r:()=>d});var i=n(6856),r=n(84704),o=n(82009),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.a]]}),e})(),c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.a]]}),e})();var l=n(76660);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({providers:[l.X],imports:[[i.CommonModule,r.a,o.D,s,c]]}),e})()},6716:(e,t,n)=>{"use strict";n.d(t,{r1:()=>i.r}),n(75619),n(18548);var i=n(78418)},6684:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.enabled=!0}set bxOnlyNumber(e){this.enabled=!!e}onkeypress(e){return this.isNumberKey(e)}isNumberKey(e){if(!this.enabled)return!0;let t=e.which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}return e.ɵfac=function(t){return new(t||e)},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxOnlyNumber",""]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("keypress",(function(e){return t.onkeypress(e)}))},inputs:{bxOnlyNumber:"bxOnlyNumber"}}),e})()},5608:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})()},1890:(e,t,n)=>{"use strict";n.d(t,{b:()=>C});var i=n(57826),r=n(40475),o=n(6856),a=n(86014),s=n(36803),c=n(6684);let l=(()=>{class e{constructor(e){this.el=e}onClick(){this.el.nativeElement.focus()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxClickFocus",""]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(){return t.onClick()}))}}),e})();function d(e,t){if(1&e&&i["ɵɵelement"](0,"i",9),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("bxTooltip",e.tooltipText)}}function u(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",6),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"span",7),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,d,1,1,"i",8),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.fieldLabel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.showPinCodeInfoTooltip)}}const p=function(e){return{"has-text":e}},h=function(e){return{"active-field":e}};function m(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",10),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"input",11),i["ɵɵlistener"]("ngModelChange",(function(t){const n=i["ɵɵrestoreView"](e).index,r=i["ɵɵnextContext"]();return r.showPinCode?r.inputs[n]:r.maskedInputs[n]=t}))("focus",(function(t){const n=i["ɵɵrestoreView"](e).index;return i["ɵɵnextContext"]().selectValue(n+1,t)}))("input",(function(){const t=i["ɵɵrestoreView"](e).index;return i["ɵɵnextContext"]().updateValue(t+1)})),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"label",12),i["ɵɵtext"](5,"\n                        Pin Code\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=t.index,r=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngModel",r.showPinCode?r.inputs[n]:r.maskedInputs[n])("id",r.bxId+e)("disabled",r.disabled)("ngClass",i["ɵɵpureFunction1"](7,p,r.inputs[n]&&""!=r.inputs[n])),i["ɵɵattribute"]("readonly",r.readonly?"":null),i["ɵɵadvance"](2),i["ɵɵproperty"]("for",r.bxId+e)("ngClass",i["ɵɵpureFunction1"](9,h,r.inputs[n]&&""!=r.inputs[n]))}}const g=function(e,t){return{"icon-hide-password":e,"icon-show-password":t}};function f(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",13),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().toggleShow()}))("blur",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().hidePinCode()})),i["ɵɵtext"](1,"Show/Hide\n                    "),i["ɵɵelement"](2,"i",14),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](1,g,!e.showPinCode,e.showPinCode))}}const v=function(e){return{tag:"textContent",label:e}};function b(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",15),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"p",16),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](1,v,e.errorMessage))}}const y=function(){return["1","2","3","4"]};let C=(()=>{class e{constructor(e,t){this.elementRef=e,this.cdRef=t,this.disabled=!1,this.avoidAutofocusInput=!1,this.readonly=!1,this.hidePinCodeEye=!1,this.showPinCodeLegend=!1,this.showPinCodeInfoTooltip=!1,this.alwaysShowPinCode=!1,this.additionalClasses=[],this.fieldLabel="pinCode.overlay.advertisement",this.allDigitsEntered=new i.EventEmitter,this.amountOfDigitsEntered=new i.EventEmitter,this.inputChanged=new i.EventEmitter,this.inputs=["","","",""],this.maskedInputs=["","","",""],this.showPinCode=!1,this.propagateChange=()=>{},this.propagateTouch=()=>{}}ngAfterViewInit(){this.avoidAutofocusInput||setTimeout((()=>this.focusElement(1)))}updateValue(t){this.maskedInputs[t-1]&&t<e.PIN_DIGITS?this.focusElement(t+1):!this.maskedInputs[t-1]&&t>1&&this.focusElement(t-1),this.saveOriginalValue(t-1)}toggleShow(){this.showPinCode=!this.showPinCode}hidePinCode(){this.showPinCode=!1}selectValue(e,t){this.inputs[e-1]&&t.currentTarget.setSelectionRange(0,1)}writeValue(e){this.updateInnerValues(e)}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.propagateTouch=e}updateInnerValues(t){this.inputs=t.split("").slice(0,e.PIN_DIGITS),this.maskedInputs=this.inputs.map((e=>this.formatPinCodeDigit(e)))}focusElement(e){this.elementRef.nativeElement.querySelector(`#${this.bxId}${e}`).focus()}saveOriginalValue(t){if(this.maskedInputs[t]!==e.PASSWORD_CHAR){this.inputs[t]=this.maskedInputs[t],this.cdRef.detectChanges(),this.maskedInputs[t]=this.formatPinCodeDigit(this.inputs[t]);const n=this.inputs.join("");this.allDigitsEntered.emit(n.length==e.PIN_DIGITS),this.amountOfDigitsEntered.emit(n.length),this.propagateChange(n),this.inputChanged.emit(!0)}}formatPinCodeDigit(t){return this.alwaysShowPinCode?t||"":t?e.PASSWORD_CHAR:""}}return e.PASSWORD_CHAR="●",e.PIN_DIGITS=4,e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](i.ChangeDetectorRef))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-pin-code"]],inputs:{bxId:"bxId",disabled:"disabled",avoidAutofocusInput:"avoidAutofocusInput",readonly:"readonly",errorMessage:"errorMessage",hidePinCodeEye:"hidePinCodeEye",showPinCodeLegend:"showPinCodeLegend",showPinCodeInfoTooltip:"showPinCodeInfoTooltip",alwaysShowPinCode:"alwaysShowPinCode",additionalClasses:"additionalClasses",tooltipText:"tooltipText",fieldLabel:"fieldLabel"},outputs:{allDigitsEntered:"allDigitsEntered",amountOfDigitsEntered:"amountOfDigitsEntered",inputChanged:"inputChanged"},features:[i["ɵɵProvidersFeature"]([{provide:r.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)((()=>e)),multi:!0}])],decls:15,vars:6,consts:[[1,"pin-code-container",3,"ngClass"],["class","legend",4,"ngIf"],[1,"pin-wrapper"],["class","custom-field pin-field",4,"ngFor","ngForOf"],["bxClickFocus","","type","button","class","toggle-password-btn","data-container",".pin-field",3,"click","blur",4,"ngIf"],["class","custom-field invalid-field",4,"ngIf"],[1,"legend"],[1,"align-left",3,"bxTranslate"],["class","icon icon-info","placement","top",3,"bxTooltip",4,"ngIf"],["placement","top",1,"icon","icon-info",3,"bxTooltip"],[1,"custom-field","pin-field"],["autocomplete","off","onpaste","return false;","type","tel","maxlength","1",1,"pin-input",3,"ngModel","id","disabled","ngClass","bxOnlyNumber","ngModelChange","focus","input"],[3,"for","ngClass"],["bxClickFocus","","type","button","data-container",".pin-field",1,"toggle-password-btn",3,"click","blur"],[1,"icon",3,"ngClass"],[1,"custom-field","invalid-field"],[1,"error-msg",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,u,7,2,"div",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"fieldset",2),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,m,7,11,"div",3),i["ɵɵtext"](8,"\n                "),i["ɵɵtemplate"](9,f,4,4,"button",4),i["ɵɵtext"](10,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n            "),i["ɵɵtemplate"](12,b,4,3,"div",5),i["ɵɵtext"](13,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",t.additionalClasses),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.showPinCodeLegend),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngForOf",i["ɵɵpureFunction0"](5,y)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.hidePinCodeEye),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.errorMessage))},directives:[o.NgClass,o.NgIf,o.NgForOf,a.P,s.i,r.DefaultValueAccessor,r.MaxLengthValidator,r.NgControlStatus,r.NgModel,c.p,l],styles:["[_nghost-%COMP%] {\n  width: 100%; }\n\n.pin-code-container.bodog88[_ngcontent-%COMP%] {\n  background: #f2f2f2;\n  padding-top: 18px;\n  padding-bottom: 24px;\n  padding-left: calc((100% - 216px) / 2); }\n\n.pin-code-container.bodog88[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%] {\n    margin-bottom: 8px;\n    line-height: 14px;\n    font-weight: bold; }\n\n.pin-code-container.bodog88[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]   .icon-info[_ngcontent-%COMP%] {\n      margin-left: 4px;\n      font-size: 16px; }\n\n.pin-code-container.bodog88[_ngcontent-%COMP%]   .pin-wrapper[_ngcontent-%COMP%]   .custom-field.pin-field[_ngcontent-%COMP%]:not(:first-of-type) {\n    margin-left: 8px; }\n\n.tooltip-popover-container[_ngcontent-%COMP%] {\n  position: absolute;\n  margin-top: -2px; }"]}),e})()},39211:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var i=n(6856),r=n(84704),o=n(40475),a=n(5608),s=n(35462),c=n(57826);let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c["ɵɵdefineNgModule"]({type:e}),e.ɵinj=c["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.a,o.FormsModule,a.a,s.z]]}),e})()},76355:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var i=n(57826),r=n(12596);let o=(()=>{class e{constructor(e,t){this.el=e,this.translateService=t}ngOnChanges(e){this.setLabelText()}setLabelText(){null!=this.label&&(""===this.label?this.el.nativeElement.textContent="":this.label.indexOf(" ")>=0?this.el.nativeElement.textContent=this.transformLabel(this.label,this.mandatory):this.translateService.translate(this.label).subscribe((e=>{this.el.nativeElement.textContent=this.transformLabel(e,this.mandatory)})))}transformLabel(e,t){return void 0===t?e:t&&e&&"*"!==e.substring(e.length-1)?`${e}*`:!t&&e&&"*"===e.substring(e.length-1)?e.substring(0,e.length-1).trim():e}set label(e){this.bxRequiredField=e}get label(){return this.bxRequiredField}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](r.s))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxRequiredField",""]],inputs:{bxRequiredField:"bxRequiredField",mandatory:"mandatory"},features:[i["ɵɵNgOnChangesFeature"]]}),e})()},82009:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var i=n(84704),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({imports:[[i.a]]}),e})()},96872:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var i=n(57826),r=n(40475),o=n(6856),a=n(86014);const s=function(e,t){return{"switch-btn-off":e,"switch-btn-on":t}};let c=(()=>{class e{constructor(){this.disabled=!1,this.readonly=!1,this.status=!1,this.change=new i.EventEmitter,this.propagateChange=()=>{}}onClick(e){if(this.disabled||this.readonly)return!1;this.status=!this.status,this.propagateChange(this.status),this.change.emit(this.status),e.preventDefault()}ngOnInit(){this.id||(this.id=Math.random().toString(36).substring(7))}writeValue(e){this.status=!!e}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-toggle"]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.onClick(e)}))},inputs:{id:"id",label:"label",disabled:"disabled",readonly:"readonly",status:"status"},outputs:{change:"change"},features:[i["ɵɵProvidersFeature"]([{provide:r.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)((()=>e)),multi:!0}])],decls:9,vars:10,consts:[[1,"custom-toggle"],["role","checkbox","type","checkbox",3,"id","disabled","checked"],[3,"for","ngClass","bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n          "),i["ɵɵelement"](3,"input",1),i["ɵɵtext"](4,"\n          "),i["ɵɵelementStart"](5,"label",2),i["ɵɵtext"](6),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("id",t.id)("disabled",t.disabled)("checked",t.status),i["ɵɵattribute"]("readonly",t.readonly?"":null),i["ɵɵadvance"](2),i["ɵɵproperty"]("for",t.id)("ngClass",i["ɵɵpureFunction2"](7,s,!t.status,t.status)),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](t.label))},directives:[o.NgClass,a.P],encapsulation:2}),e})()},10790:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var i=n(6856),r=n(84704),o=n(57826);let a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({providers:[],imports:[[i.CommonModule,r.a]]}),e})()},69575:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})()},86789:(e,t,n)=>{"use strict";n.d(t,{T2:()=>i.T,EO:()=>a.E,PQ:()=>r.P,Bs:()=>s.B,U8:()=>c.U,il:()=>o.i}),n(75619),n(18548),n(78418);var i=n(68698),r=(n(84195),n(52450)),o=n(99576),a=(n(38945),n(5109)),s=n(22646),c=n(28850);n(57826),n(4309),n(6856),n(90566),n(86014),n(84704),n(8566),n(73502),n(83017),n(65904)},19496:(e,t,n)=>{"use strict";n.d(t,{N:()=>c});var i=n(57826),r=n(12473),o=n(6856);const a=function(e){return{position:e}};function s(e,t){if(1&e&&i["ɵɵelement"](0,"div",4),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngStyle",i["ɵɵpureFunction1"](1,a,e.containerView?"absolute":"fixed"))}}let c=(()=>{class e{constructor(){this.close=new i.EventEmitter,this.defaults={content:"",modal:!1}}ngOnInit(){this.loading=r(this.defaults,this.loading)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-loading"]],inputs:{loading:"loading",containerView:"containerView"},outputs:{close:"close"},decls:14,vars:3,consts:[[1,"loading-spinner","custom-loading"],[1,"icon","icon-loading"],[1,"loading-content"],["class","loading-overlay",3,"ngStyle",4,"ngIf"],[1,"loading-overlay",3,"ngStyle"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"figure",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"i",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"figcaption"),i["ɵɵtext"](6),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelementStart"](8,"span",2),i["ɵɵtext"](9),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n        "),i["ɵɵtemplate"](12,s,1,3,"div",3),i["ɵɵtext"](13,"\n      ")),2&e&&(i["ɵɵadvance"](6),i["ɵɵtextInterpolate"](t.loading.content),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](t.loading.content),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.loading.modal))},directives:[o.NgIf,o.NgStyle],styles:[".custom-loading[_ngcontent-%COMP%] {\n            position: absolute;\n            top: calc(50% - 20px);\n            left: calc(50% - 20px);\n            z-index: 100;\n        }\n\n        .loading-overlay[_ngcontent-%COMP%] {\n            top: 0;\n            right: 0;\n            bottom: 0;\n            left: 0;\n            background: rgba(0, 0, 0, 0.6);\n            z-index: 99;\n            pointer-events: auto;\n        }\n\n        .loading-content[_ngcontent-%COMP%] {\n            color: white;\n            font-size: 1.2em;\n        }"]}),e})()},46630:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var i=n(6856),r=n(8566),o=n(19496),a=n(25394),s=n(84704),c=n(57826);let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c["ɵɵdefineNgModule"]({type:e,bootstrap:[o.N]}),e.ɵinj=c["ɵɵdefineInjector"]({providers:[a.b],imports:[[i.CommonModule,r.B,s.a],r.B]}),e})()},25394:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var i=n(57826),r=n(42767),o=n(19496);let a=(()=>{class e{constructor(e){this.injectionService=e}start(e,t){let n,i=this.injectionService.appendComponent(o.N,{loading:e,containerView:t},t);return n=i.instance.close.subscribe((e=>{e===i&&(n.unsubscribe(),i.destroy())}).bind(this,i)),i.instance}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](r.Y))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},84195:(e,t,n)=>{"use strict";n.d(t,{c:()=>g});var i=n(57826),r=n(6856),o=n(96940);function a(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",8),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).close()})),i["ɵɵtext"](1,"\n                        "),i["ɵɵelement"](2,"i",9),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"]()}}function s(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figcaption"),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.notification.msg)}}function c(e,t){if(1&e&&(i["ɵɵelement"](0,"figcaption",10),i["ɵɵpipe"](1,"bxTrustyHtml")),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("innerHTML",i["ɵɵpipeBind1"](1,1,e.notification.msg),i["ɵɵsanitizeHtml"])}}const l=function(e){return["icon",e]};function d(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,a,4,0,"button",6),i["ɵɵtext"](3,"\n                    "),i["ɵɵelement"](4,"i",2),i["ɵɵtext"](5,"\n                    "),i["ɵɵtemplate"](6,s,2,1,"figcaption",4),i["ɵɵtext"](7,"\n                    "),i["ɵɵtemplate"](8,c,2,3,"figcaption",7),i["ɵɵtext"](9,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.notification.showClose),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](4,l,"icon-"+e.notification.type)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",void 0===e.notification.escapeMsg||e.notification.escapeMsg),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!1===e.notification.escapeMsg)}}function u(e,t){1&e&&i["ɵɵelement"](0,"div",11)}const p=function(e){return["custom-notification",e]};function h(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",1),i["ɵɵlistener"]("click",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onNotificationClick(t)})),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"figure",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"div",null,3),i["ɵɵtext"](6,"\n                    "),i["ɵɵprojection"](7),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                "),i["ɵɵtemplate"](10,d,10,6,"ng-container",4),i["ɵɵtext"](11,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n            "),i["ɵɵtemplate"](13,u,1,0,"div",5),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵreference"](5),t=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](3,p,t.notification.type)),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngIf",0==e.children.length),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.overlay)}}const m=["*"];let g=(()=>{class e{constructor(){this.add=new i.EventEmitter,this.remove=new i.EventEmitter}set doClose(e){this.closingNotificationTimeOut(e)}set notification(e){this.internalNotification&&this.close(),e&&this.showNotification(e)}get notification(){return this.internalNotification}showNotification(e){this.clearCloseTimeout(),this.internalNotification=e,e.timeout>0&&this.setTimeout(e.timeout),this.add.emit(),this.overlay=this.notification.modal}onNotificationClick(e){e.target instanceof HTMLAnchorElement?this.onNotificationLinkClick(e):this.notification&&0!==this.notification.timeout&&this.close()}onNotificationLinkClick(e){this.notification.attributeClickCallbacks&&this.callAttributeCallbacks(e,e.target,this.notification.attributeClickCallbacks)}callAttributeCallbacks(e,t,n){t.getAttributeNames().forEach((t=>{const i=n[t];i&&i(e)}))}close(){this.clearCloseTimeout(),this.remove.emit(),this.notification&&this.notification.onRemove&&this.notification.onRemove(this.notification),this.overlay=!1,this.internalNotification=void 0}clearCloseTimeout(){this.closeTimeout&&clearTimeout(this.closeTimeout)}setTimeout(e){this.closeTimeout=setTimeout((()=>{this.close()}),e)}closingNotificationTimeOut(e){setTimeout((()=>{e&&e.name&&this.close()}),5e3)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-notification"]],inputs:{doClose:"doClose",notification:"notification"},outputs:{add:"add",remove:"remove"},ngContentSelectors:m,decls:3,vars:1,consts:[["class","bx-notification-container",3,"click",4,"ngIf"],[1,"bx-notification-container",3,"click"],[3,"ngClass"],["customNotification",""],[4,"ngIf"],["class","notification-overlay",4,"ngIf"],["type","button","class","close-btn",3,"click",4,"ngIf"],[3,"innerHTML",4,"ngIf"],["type","button",1,"close-btn",3,"click"],[1,"icon","icon-close"],[3,"innerHTML"],[1,"notification-overlay"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,h,15,5,"div",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.notification))},directives:[r.NgIf,r.NgClass],pipes:[o.d],styles:[".notification-overlay[_ngcontent-%COMP%] {\n            position: fixed;\n            top: 0;\n            right: 0;\n            bottom: 0;\n            left: 0;\n            background: rgba(0, 0, 0, 0.8);\n            z-index: 5;\n            pointer-events: auto;\n        }"]}),e})()},5109:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.showClose=!1,this.timeout=2e3}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},52450:(e,t,n)=>{"use strict";n.d(t,{P:()=>l});var i=n(6856),r=n(99576),o=n(5109),a=n(61556),s=n(73502),c=n(57826);let l=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.i,o.E]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c["ɵɵdefineNgModule"]({type:e}),e.ɵinj=c["ɵɵdefineInjector"]({imports:[[i.CommonModule,a.d,s.D]]}),e})()},38945:(e,t,n)=>{"use strict";n.d(t,{f:()=>d});var i=n(42998),r=n(99576),o=n(57826),a=n(6856),s=n(84195);function c(e,t){if(1&e&&(o["ɵɵelementStart"](0,"bx-notification",1),o["ɵɵpipe"](1,"async"),o["ɵɵtext"](2,"\n            "),o["ɵɵprojection"](3),o["ɵɵtext"](4,"\n        "),o["ɵɵelementEnd"]()),2&e){const e=o["ɵɵnextContext"]();o["ɵɵproperty"]("notification",e.notification)("doClose",o["ɵɵpipeBind1"](1,2,e.doClose$))}}const l=["*"];let d=(()=>{class e{constructor(e){this.toastNotificationService=e,this.close={},this.name="default"}ngOnDestroy(){this.commandsSubscription&&this.commandsSubscription.unsubscribe()}ngOnInit(){this.commandsSubscription=this.toastNotificationService.commands.pipe((0,i.filter)((e=>e.name===this.name))).subscribe((e=>{clearTimeout(this.delayedNotificationId),e.notification.delay&&e.notification.delay>0?this.delayedNotificationId=setTimeout((()=>{this.notification=e.notification}),e.notification.delay):this.notification=e.notification})),this.doClose$=this.toastNotificationService.doClose.pipe((0,i.filter)((e=>e.name===this.name))),this.doClose$.subscribe((()=>{clearTimeout(this.delayedNotificationId)}))}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵdirectiveInject"](r.i))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["bx-toast-notification"]],inputs:{name:"name"},ngContentSelectors:l,decls:3,vars:1,consts:[[3,"notification","doClose",4,"ngIf"],[3,"notification","doClose"]],template:function(e,t){1&e&&(o["ɵɵprojectionDef"](),o["ɵɵtext"](0,"\n        "),o["ɵɵtemplate"](1,c,5,4,"bx-notification",0),o["ɵɵtext"](2,"\n    ")),2&e&&(o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",t.notification))},directives:[a.NgIf,s.c],pipes:[a.AsyncPipe],styles:["[_nghost-%COMP%]     .bx-notification-container {\n           z-index: 99999;\n           height: 100%;\n           left: 0px;\n        }"]}),e})()},99576:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var i=n(4309),r=n(5109),o=n(57826);let a=(()=>{class e{constructor(e){this.defaultOptions=e,this.commandsSubject=new i.Subject,this.close$=new i.Subject}get commands(){return this.commandsSubject.asObservable()}get doClose(){return this.close$.asObservable()}add(e,t){const n="number"==typeof e.timeout?e.timeout:this.defaultOptions.timeout,i="boolean"==typeof e.showClose?e.showClose:this.defaultOptions.showClose,r={...e,showClose:i,type:e.type||"success",timeout:n,onRemove:e.onRemove||(()=>{}),delay:e.delay||0};return this.commandsSubject.next({notification:r,name:t||"default"}),r}close(e){this.close$.next({name:e||"default"})}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.E))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},72558:(e,t,n)=>{"use strict";n.d(t,{EO:()=>o.E,PQ:()=>i.P,il:()=>r.i}),n(84195);var i=n(52450),r=n(99576),o=(n(38945),n(5109));n(57826),n(6856)},48173:(e,t,n)=>{"use strict";n.d(t,{D:()=>m});var i=n(57826),r=n(6856),o=n(12473),a=n(90566);function s(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().close.next("closed")})),i["ɵɵtext"](1,"\n            "),i["ɵɵelement"](2,"i",7),i["ɵɵtext"](3,"\n          "),i["ɵɵelementEnd"]()}}function c(e,t){if(1&e&&(i["ɵɵtext"](0,"\n              "),i["ɵɵelementStart"](1,"bx-dynamic-loader-component",8),i["ɵɵtext"](2,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n          ")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵproperty"]("component",e.notification.content)("context",e.context)("output",e.close)}}function l(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figcaption"),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.notification.content)}}const d=function(e){return["icon",e,"bx-icon"]};function u(e,t){if(1&e&&i["ɵɵelement"](0,"i",0),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,d,"icon-"+e.notification.type))}}function p(e,t){1&e&&i["ɵɵelement"](0,"div",9)}const h=function(e,t){return["custom-notification",e,t]};let m=(()=>{class e{constructor(e){this.document=e,this.close=new i.EventEmitter,this.defaults={type:"success",closeable:!1,modal:!1,showIcon:!0,customClass:""},this.singleText=!1}ngOnInit(){this.notification=o(this.defaults,this.notification),this.singleText="string"==typeof this.notification.content||void 0===this.notification.content,this.removeScrollIfNeeded()}ngOnDestroy(){this.restoreScrollIfNeeded()}removeScrollIfNeeded(){this.hasScroll=!this.document.querySelectorAll("body.non-scroll").length,this.notification.modal&&this.hasScroll&&this.document.querySelector("body").classList.add("non-scroll")}restoreScrollIfNeeded(){this.notification.modal&&this.hasScroll&&this.document.querySelector("body").classList.remove("non-scroll")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.DOCUMENT))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-notification2"]],inputs:{notification:"notification",context:"context"},outputs:{close:"close"},decls:15,vars:9,consts:[[3,"ngClass"],["type","button","class","close-btn",3,"click",4,"ngIf"],["embeddedComponent",""],[4,"ngIf","ngIfElse"],[3,"ngClass",4,"ngIf"],["class","notification-overlay",4,"ngIf"],["type","button",1,"close-btn",3,"click"],[1,"icon","icon-close"],["outputName","result",3,"component","context","output"],[1,"notification-overlay"]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"figure",0),i["ɵɵtext"](2,"\n          "),i["ɵɵtemplate"](3,s,4,0,"button",1),i["ɵɵtext"](4,"\n          "),i["ɵɵtemplate"](5,c,4,3,"ng-template",null,2,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](7,"\n          "),i["ɵɵtemplate"](8,l,2,1,"figcaption",3),i["ɵɵtext"](9,"\n          "),i["ɵɵtemplate"](10,u,1,3,"i",4),i["ɵɵtext"](11,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n        "),i["ɵɵtemplate"](13,p,1,0,"div",5),i["ɵɵtext"](14,"\n      ")),2&e){const e=i["ɵɵreference"](6);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](6,h,t.notification.type,t.notification.customClass)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.notification.closeable),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.singleText)("ngIfElse",e),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.notification.showIcon),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.notification.modal)}},directives:[r.NgClass,r.NgIf,a.W],styles:[".custom-notification[_ngcontent-%COMP%] {\n            position: absolute;\n            top: 0;\n            z-index: 100;\n        }\n\n        .notification-overlay[_ngcontent-%COMP%] {\n            position: fixed;\n            top: 0;\n            right: 0;\n            bottom: 0;\n            left: 0;\n            background: rgba(0, 0, 0, 0.8);\n            z-index: 99;\n            pointer-events: auto;\n        }"]}),e})()},29135:(e,t,n)=>{"use strict";n.d(t,{r:()=>c});var i=n(23146),r=n(48173),o=n(6856),a=n(8566),s=n(57826);let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=s["ɵɵdefineNgModule"]({type:e,bootstrap:[r.D]}),e.ɵinj=s["ɵɵdefineInjector"]({providers:[i.d],imports:[[o.CommonModule,a.B],a.B]}),e})()},23146:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var i=n(57826),r=n(42767),o=n(48173);let a=(()=>{class e{constructor(e){this.injectionService=e}open(e,t){let n,i,r=this.injectionService.appendComponent(o.D,{notification:e,context:e.contentContext},t);return e.timeout&&(n=setTimeout((()=>r.instance.close.next()),e.timeout)),i=r.instance.close.subscribe((e=>{e===r&&(i.unsubscribe(),n&&clearTimeout(n),r.destroy())}).bind(this,r)),r.instance}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](r.Y))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},34581:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var i=n(57826),r=n(6856),o=n(13429),a=n(39336);let s=(()=>{class e{constructor(e){this.platformId=e}block(){this.dispatchAvoidNotification({detail:a.rB})}unblock(){this.dispatchAvoidNotification({detail:a.f3})}dispatchAvoidNotification(e){(0,r.isPlatformBrowser)(this.platformId)&&document.dispatchEvent(new CustomEvent(o.F,e))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},4893:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var i=n(64762),r=n(91184),o=n(57826);class a{constructor(){this.blockingComponentCounter=0}get isUnblocked(){return 0===this.blockingComponentCounter}incrementCount(){this.blockingComponentCounter++}decrementCount(){this.blockingComponentCounter--}getCounter(){return this.blockingComponentCounter}}a.ɵfac=function(e){return new(e||a)},a.ɵprov=o["ɵɵdefineInjectable"]({token:a,factory:a.ɵfac,providedIn:"root"}),(0,i.__decorate)([r.LO,(0,i.__metadata)("design:type",Number)],a.prototype,"blockingComponentCounter",void 0),(0,i.__decorate)([r.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],a.prototype,"isUnblocked",null),(0,i.__decorate)([r.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],a.prototype,"incrementCount",null),(0,i.__decorate)([r.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],a.prototype,"decrementCount",null)},39336:(e,t,n)=>{"use strict";n.d(t,{_r:()=>l,f3:()=>c,rB:()=>s});var i=n(4893),r=n(6856),o=n(13429),a=n(57826);const s="notification-block",c="notification-unblock";let l=(()=>{class e{constructor(e,t){this.notificationBlockerStore=e,this.document=t,this.handlerMap={[s]:{apply:()=>this.notificationBlockerStore.incrementCount()},[c]:{apply:()=>this.notificationBlockerStore.decrementCount()}}}init(){this.document&&this.document.addEventListener(o.F,(e=>this.handle(e)))}handle(e){if(e.detail){const t=this.handlerMap[e.detail];t&&t.apply()}}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.N),a["ɵɵinject"](r.DOCUMENT,8))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},13429:(e,t,n)=>{"use strict";n.d(t,{F:()=>u,t:()=>h});var i=n(6856),r=n(57826),o=n(32711),a=n(4309),s=n(55640),c=n(35294),l=n(4893),d=n(39336);const u="avoidNotification",p="notificationDisplayedCount";let h=(()=>{class e{constructor(e,t,n,r,o){this.platformId=e,this.notificationDisplayEventHandler=t,this.notificationBlockerStore=n,this.appStateStore=r,this.storageService=o,this.notificationsAllowed=new a.Subject,(0,i.isPlatformBrowser)(this.platformId)&&(this.notificationDisplayEventHandler.init(),this.setupReactions())}setupReactions(){(0,o.U5)((()=>this.notificationBlockerStore.isUnblocked),(e=>this.notificationsAllowed.next(e))),(0,o.U5)((()=>this.appStateStore.loginState),(e=>this.refreshCounter(e)))}refreshCounter(e){e?this.storageService.set(p,"0"):this.storageService.remove(p)}incrementDisplayCount(e){if(e.displayCountable){const e=this.getNotificationDisplayCount()+1;this.storageService.set(p,`${e}`)}}getNotificationDisplayCount(){return+this.storageService.get(p)}isDisplayLimitNotExceeded(){return this.getNotificationDisplayCount()<3}subscribeNotificationsAllowed(){return this.notificationsAllowed.asObservable()}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](d._r),r["ɵɵinject"](l.N),r["ɵɵinject"](c.X),r["ɵɵinject"](s.z))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},81994:(e,t,n)=>{"use strict";n.d(t,{U:()=>g});var i=n(57826),r=n(12473),o=n(46093),a=n(76547),s=n(52723),c=n(6856);function l(e,t){if(1&e&&i["ɵɵelement"](0,"img",10),2&e){const e=i["ɵɵnextContext"]();i["ɵɵpropertyInterpolate"]("src",e.options.image,i["ɵɵsanitizeUrl"])}}function d(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figure",11),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"i",12),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",e.options.icon),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass","icon-"+e.options.icon)}}function u(e,t){if(1&e&&(i["ɵɵelementStart"](0,"h2",13),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.options.title)}}function p(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",14),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.options.body)}}function h(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a",15),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.options.label)}}const m=function(e){return["notification-popup",e]};let g=(()=>{class e{constructor(e){this.changeDetectionRef=e,this.closed=new i.EventEmitter,this.isOpen=!1,this.defaults={position:o.z.BOTTOM,image:"/content/images/notification-default.png"}}ngOnInit(){this.options.image||delete this.options.image,this.options=r(this.defaults,this.options)}ngAfterViewInit(){this.isOpen=!0,this.changeDetectionRef.detectChanges()}onClose(e){e.stopPropagation(),this.close(!0)}close(e=!1){this.isOpen=!1,setTimeout((()=>{e&&this.options.onClose&&this.options.onClose(),this.closed.next()}),s.a)}onClick(){this.options.onClick&&this.options.onClick(),this.close()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ChangeDetectorRef))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["notification-popup"]],inputs:{options:"options"},outputs:{closed:"closed"},decls:25,vars:9,consts:[[3,"ngClass","click"],[3,"src",4,"ngIf"],["class","notification-popup-icon custom-notification alert",3,"ngClass",4,"ngIf"],[1,"text-content"],[1,"text-container"],["class","title h2-heading",4,"ngIf"],["class","text-body",4,"ngIf"],["class","custom-link",4,"ngIf"],["type","button",1,"close-btn",3,"click"],[1,"icon","icon-close"],[3,"src"],[1,"notification-popup-icon","custom-notification","alert",3,"ngClass"],[1,"icon",3,"ngClass"],[1,"title","h2-heading"],[1,"text-body"],[1,"custom-link"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"figure",0),i["ɵɵlistener"]("click",(function(){return t.onClick()})),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,l,1,1,"img",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,d,4,2,"figure",2),i["ɵɵtext"](6,"\n            "),i["ɵɵelementStart"](7,"span",3),i["ɵɵtext"](8,"\n                "),i["ɵɵelementStart"](9,"span",4),i["ɵɵtext"](10,"\n                    "),i["ɵɵtemplate"](11,u,2,1,"h2",5),i["ɵɵtext"](12,"\n                    "),i["ɵɵtemplate"](13,p,2,1,"div",6),i["ɵɵtext"](14,"\n                    "),i["ɵɵtemplate"](15,h,2,1,"a",7),i["ɵɵtext"](16,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n            "),i["ɵɵelementStart"](19,"button",8),i["ɵɵlistener"]("click",(function(e){return t.onClose(e)})),i["ɵɵtext"](20,"\n                "),i["ɵɵelement"](21,"i",9),i["ɵɵtext"](22,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](7,m,t.options.position))("@openClose",t.isOpen?"open":"closed"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.options.icon),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.options.icon),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",!!t.options.title),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!!t.options.body),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!!t.options.label))},directives:[c.NgClass,c.NgIf],encapsulation:2,data:{animation:[(0,a.trigger)("openClose",[(0,a.state)("open",(0,a.style)({opacity:1})),(0,a.state)("closed",(0,a.style)({opacity:0})),(0,a.transition)("open => closed",[(0,a.animate)("0.8s")]),(0,a.transition)("closed => open",[(0,a.animate)("0.8s")])])]}}),e})()},92753:(e,t,n)=>{"use strict";n.d(t,{v:()=>u});var i=n(52723),r=n(6856),o=n(8566),a=n(81994),s=n(84704),c=n(9359),l=n(87012),d=n(57826);let u=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d["ɵɵdefineNgModule"]({type:e,bootstrap:[a.U,l.Q]}),e.ɵinj=d["ɵɵdefineInjector"]({providers:[i.n,c.L],imports:[[r.CommonModule,s.a,o.B],o.B]}),e})()},52723:(e,t,n)=>{"use strict";n.d(t,{n:()=>d,a:()=>l});var i=n(57826),r=n(42767),o=n(13429),a=n(81994),s=n(87012),c=(()=>(function(e){e.REWARD_CLAIMED="reward_claim"}(c||(c={})),c))();const l=800;let d=(()=>{class e{constructor(e,t){this.injectionService=e,this.notificationDisplayService=t,this.currentNotificationIndex=0,this.displayedNotifications=new Map}open(e){let t=e.tags&&e.tags===c.REWARD_CLAIMED?this.injectionService.appendComponent(s.Q,{options:e}):this.injectionService.appendComponent(a.U,{options:e});const n=this.setTimer(t,e.timeout);return this.subscribeToClose(t,n),this.setNotification(t),this.notificationDisplayService.incrementDisplayCount(e),this.currentNotificationIndex}close(e){this.displayedNotifications.get(e)&&(this.displayedNotifications.get(e).instance.closed.next(),this.displayedNotifications.delete(e))}setTimer(e,t){return t=t||10,setTimeout((()=>e.instance.closed.next()),1e3*t)}setNotification(e){this.currentNotificationIndex++,this.displayedNotifications.set(this.currentNotificationIndex,e)}subscribeToClose(e,t){let n;n=e.instance.closed.subscribe((i=>{i===e&&(n.unsubscribe(),t&&clearTimeout(t),e.instance.isOpen=!1,setTimeout((()=>{e.destroy()}),l))}).bind(this,e))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](r.Y),i["ɵɵinject"](o.t))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},87012:(e,t,n)=>{"use strict";n.d(t,{Q:()=>b});var i=n(57826),r=n(76547),o=n(9359),a=n(46093),s=n(52723),c=n(12473),l=n(6856),d=n(86014);function u(e,t){if(1&e&&i["ɵɵelement"](0,"img",10),2&e){const e=i["ɵɵnextContext"]();i["ɵɵpropertyInterpolate"]("src",e.options.image,i["ɵɵsanitizeUrl"])}}function p(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figure",11),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"i",12),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",e.options.icon),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass","icon-"+e.options.icon)}}function h(e,t){if(1&e&&(i["ɵɵelementStart"](0,"h2",13),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.options.title)}}function m(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",14),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.options.body)}}const g=function(e){return{hidden:e}};function f(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",15),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"button",16),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onBonusClaim()})),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementStart"](5,"div",17),i["ɵɵtext"](6,"\n                            "),i["ɵɵelement"](7,"i",18),i["ɵɵtext"](8,"\n                            "),i["ɵɵelementStart"](9,"span",19),i["ɵɵtext"](10,"rewardClaimNotificationPopup.claim-bonus.confirmation"),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n\n                        "),i["ɵɵelementStart"](13,"div",20),i["ɵɵtext"](14,"\n                            "),i["ɵɵelement"](15,"i",21),i["ɵɵtext"](16,"\n                            "),i["ɵɵelementStart"](17,"div",22),i["ɵɵtext"](18,"\n                                "),i["ɵɵelementStart"](19,"span",19),i["ɵɵtext"](20,"\n                                    rewardClaimNotificationPopup.claim-bonus.errorMessage"),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](4,g,e.isClaimed||e.isFailed)),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("",e.options.label,"\n                        "),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](6,g,!e.isClaimed)),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](8,g,!e.isFailed))}}const v=function(e){return["notification-popup",e]};let b=(()=>{class e{constructor(e,t){this.changeDetectionRef=e,this.rewardNotificationPopupService=t,this.closed=new i.EventEmitter,this.isOpen=!1,this.defaults={position:a.z.BOTTOM,image:"/content/images/notification-default.png"},this.isClaimed=!1,this.isFailed=!1,this.rewardNotificationPopupService.bonusClaimedEvent.subscribe((e=>{this.isClaimed=!0,this.isFailed=!1,this.options.onClick&&this.options.onClick()})),this.rewardNotificationPopupService.bonusFailedEvent.subscribe((e=>{this.isFailed=!0,this.isClaimed=!1,this.options.onClick&&this.options.onClick()}))}ngOnInit(){this.options.image||delete this.options.image,this.options=c(this.defaults,this.options)}ngAfterViewInit(){this.isOpen=!0,this.changeDetectionRef.detectChanges()}onClose(e){e.stopPropagation(),this.isOpen=!1,setTimeout((()=>{this.options.onClose&&this.options.onClose(),this.closed.next()}),s.a)}showAction(){return this.options.label&&this.options.bonusCode}onBonusClaim(){this.rewardNotificationPopupService.onClaimBonusEvent(this.options.bonusCode)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ChangeDetectorRef),i["ɵɵdirectiveInject"](o.L))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-reward-claimed-notification-popup"]],inputs:{options:"options"},outputs:{closed:"closed"},decls:25,vars:9,consts:[[3,"ngClass"],[3,"src",4,"ngIf"],["class","notification-popup-icon custom-notification alert",3,"ngClass",4,"ngIf"],[1,"text-content"],[1,"text-container"],["class","title h2-heading",4,"ngIf"],["class","text-body",4,"ngIf"],["class","action-wrapper",4,"ngIf"],["type","button",1,"close-btn",3,"click"],[1,"icon","icon-close"],[3,"src"],[1,"notification-popup-icon","custom-notification","alert",3,"ngClass"],[1,"icon",3,"ngClass"],[1,"title","h2-heading"],[1,"text-body"],[1,"action-wrapper"],["id","claimBonusFromNotification",1,"custom-link","claim-now",3,"ngClass","click"],[1,"custom-badge","secondary","bonus-claimed",3,"ngClass"],[1,"icon","icon-checked"],[3,"bxTranslate"],[1,"custom-notification","alert","error","bonus-claimed",3,"ngClass"],[1,"icon","icon-error"],[1,"error-message"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"figure",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,u,1,1,"img",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,p,4,2,"figure",2),i["ɵɵtext"](6,"\n            "),i["ɵɵelementStart"](7,"span",3),i["ɵɵtext"](8,"\n                "),i["ɵɵelementStart"](9,"span",4),i["ɵɵtext"](10,"\n                    "),i["ɵɵtemplate"](11,h,2,1,"h2",5),i["ɵɵtext"](12,"\n                    "),i["ɵɵtemplate"](13,m,2,1,"div",6),i["ɵɵtext"](14,"\n                    "),i["ɵɵtemplate"](15,f,24,10,"div",7),i["ɵɵtext"](16,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n            "),i["ɵɵelementStart"](19,"button",8),i["ɵɵlistener"]("click",(function(e){return t.onClose(e)})),i["ɵɵtext"](20,"\n                "),i["ɵɵelement"](21,"i",9),i["ɵɵtext"](22,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](7,v,t.options.position))("@openClose",t.isOpen?"open":"closed"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.options.icon),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.options.icon),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",!!t.options.title),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!!t.options.body),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.showAction()))},directives:[l.NgClass,l.NgIf,d.P],encapsulation:2,data:{animation:[(0,r.trigger)("openClose",[(0,r.state)("open",(0,r.style)({opacity:1})),(0,r.state)("closed",(0,r.style)({opacity:0})),(0,r.transition)("open => closed",[(0,r.animate)("0.8s")]),(0,r.transition)("closed => open",[(0,r.animate)("0.8s")])])]}}),e})()},9359:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.claimBonusEvent=new i.EventEmitter,this.bonusClaimedEvent=new i.EventEmitter,this.bonusFailedEvent=new i.EventEmitter}onClaimBonusEvent(e){this.claimBonusEvent.next(e)}onBonusClaimed(){this.bonusClaimedEvent.next(!0)}onBonusFailed(){this.bonusFailedEvent.next(!0)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},46093:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var i=(()=>(function(e){e.BOTTOM="bottom",e.TOP_RIGHT="top-right"}(i||(i={})),i))()},38458:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var i=n(57826);const r=["*"];let o=(()=>{class e{constructor(){this.fullWidth=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-overlay-body"]],inputs:{fullWidth:"fullWidth"},ngContentSelectors:r,decls:6,vars:2,consts:[[1,"modal-body"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"section",0),i["ɵɵtext"](2,"\n            "),i["ɵɵprojection"](3),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n  ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassProp"]("modal-body-full-width",t.fullWidth))},encapsulation:2}),e})()},22646:(e,t,n)=>{"use strict";n.d(t,{B:()=>d});var i=n(57826),r=n(73753),o=n(65340),a=n(81899),s=n(34581),c=n(6856);const l=["*"];let d=(()=>{class e{constructor(e,t,n,r,o){this.router=e,this.route=t,this.overlayNotificationService=n,this.windowService=r,this.componentNotificationEventDispatcher=o,this.close=new i.EventEmitter,this.centered=!1,this.dark=!0,this.gameWrapper=!1,this.noScroll=!1,this.className="",this.containerClassName="",this.sendNotificationEvent=!0}ngOnInit(){this.sendNotificationEvent&&this.componentNotificationEventDispatcher.block(),this.styleFromData(),this.router.events.subscribe((e=>{e instanceof r.NavigationEnd&&(e.url.startsWith("/account")&&(this.className=""),this.windowService.window().scrollTo(0,0),this.styleFromData())})),this.overlayNotificationService.notifyOverlayOpen()}ngOnDestroy(){this.sendNotificationEvent&&this.componentNotificationEventDispatcher.unblock()}styleFromData(){const e=this.mappingRouterData();e&&(this.centered="centered"===e.overlayComponentPosition,this.dark="light"!==e.overlayComponentTint,this.gameWrapper="true"===e.overlayComponentGameWrapper,this.noScroll="noHorizontalScroll"===e.overlayComponentStyle,this.className+=e.className?" "+e.className:"")}closeOverlay(){this.close.emit(),this.overlayNotificationService.notifyOverlayClosed()}mappingRouterData(){if(this.route.firstChild){let e=this.route;for(;e.firstChild;)e=e.firstChild;return Object.assign(e.snapshot.data,this.route.snapshot.data)}return this.route.snapshot.data}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.Router),i["ɵɵdirectiveInject"](r.ActivatedRoute),i["ɵɵdirectiveInject"](o.v),i["ɵɵdirectiveInject"](a.u),i["ɵɵdirectiveInject"](s.K))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-overlay"]],inputs:{centered:"centered",dark:"dark",gameWrapper:"gameWrapper",noScroll:"noScroll",className:"className",containerClassName:"containerClassName",sendNotificationEvent:"sendNotificationEvent"},outputs:{close:"close"},ngContentSelectors:l,decls:9,vars:10,consts:[["tabindex","-1","role","dialog","aria-labelledby","modal",1,"modal-overlay",3,"ngClass"],[1,"modal-content",3,"ngClass"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵprojection"](5),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassProp"]("dark-overlay",t.dark)("game-wrapper-overlay",t.gameWrapper),i["ɵɵproperty"]("ngClass",t.containerClassName),i["ɵɵadvance"](2),i["ɵɵclassProp"]("screen-center",t.centered)("no-scroll-overlay",t.noScroll),i["ɵɵproperty"]("ngClass",t.className))},directives:[c.NgClass],styles:[".modal-overlay[_ngcontent-%COMP%] {\n            outline: none;\n        }\n        .modal-overlay[_ngcontent-%COMP%]   .modal-content.no-scroll-overlay[_ngcontent-%COMP%] {\n            overflow-x: hidden;\n            overflow-y: auto;\n        }\n        .modal-overlay[_ngcontent-%COMP%]   .modal-content[_ngcontent-%COMP%] {\n            margin-bottom: 0;\n        }"]}),e})()},97637:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var i=n(22646),r=n(57826);const o=["*"];let a=(()=>{class e{constructor(e){this.overlay=e,this.overlayType="default",this.extraClass=""}ngOnInit(){this.overlay.className=`modal-${this.overlayType}`,this.overlay.containerClassName=`${this.extraClass}`}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.B))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-overlay-container"]],inputs:{overlayType:"overlayType",extraClass:"extraClass"},ngContentSelectors:o,decls:6,vars:0,template:function(e,t){1&e&&(r["ɵɵprojectionDef"](),r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"div"),r["ɵɵtext"](2,"\n            "),r["ɵɵprojection"](3),r["ɵɵtext"](4,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n    "))},encapsulation:2}),e})()},84853:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var i=n(57826),r=n(6856),o=n(22646);function a(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",3),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onBack()})),i["ɵɵtext"](1,"\n        "),i["ɵɵelement"](2,"i",4),i["ɵɵtext"](3,"Back\n      "),i["ɵɵelementEnd"]()}}function s(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",5),i["ɵɵlistener"]("click",(function(){i["ɵɵrestoreView"](e);const t=i["ɵɵnextContext"]();return!t.invisibleCloseButton&&t.onClose()})),i["ɵɵtext"](1,"\n        "),i["ɵɵelement"](2,"i",6),i["ɵɵtext"](3,"Close\n      "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵstyleProp"]("visibility",e.invisibleCloseButton?"hidden":null)}}const c=["*"];let l=(()=>{class e{constructor(e,t){this.overlay=e,this.location=t,this.backButton=!1,this.closeButton=!0,this.invisibleCloseButton=!1,this.defaultBackHandling=!0,this.defaultCloseHandling=!0,this.staticNavHeader=!1,this.back=new i.EventEmitter,this.close=new i.EventEmitter}onClose(){this.defaultCloseHandling?this.overlay.closeOverlay():this.close.emit()}onBack(){this.defaultBackHandling&&this.location.back(),this.back.emit()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.B),i["ɵɵdirectiveInject"](r.Location))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-overlay-header"]],inputs:{backButton:"backButton",closeButton:"closeButton",invisibleCloseButton:"invisibleCloseButton",defaultBackHandling:"defaultBackHandling",defaultCloseHandling:"defaultCloseHandling",staticNavHeader:"staticNavHeader"},outputs:{back:"back",close:"close"},ngContentSelectors:c,decls:10,vars:4,consts:[[1,"modal-header"],["type","button","class","back-btn",3,"click",4,"ngIf"],["type","button","class","close-btn",3,"visibility","click",4,"ngIf"],["type","button",1,"back-btn",3,"click"],[1,"icon","icon-back"],["type","button",1,"close-btn",3,"click"],[1,"icon","icon-close"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n    "),i["ɵɵelementStart"](1,"header",0),i["ɵɵtext"](2,"\n      "),i["ɵɵtemplate"](3,a,4,0,"button",1),i["ɵɵtext"](4,"\n      "),i["ɵɵprojection"](5),i["ɵɵtext"](6,"\n      "),i["ɵɵtemplate"](7,s,4,2,"button",2),i["ɵɵtext"](8,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassProp"]("navbar-static",t.staticNavHeader),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.backButton),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.closeButton))},directives:[r.NgIf],encapsulation:2}),e})()},28850:(e,t,n)=>{"use strict";n.d(t,{U:()=>c});var i=n(57826),r=n(6856),o=n(22646),a=n(93996),s=n(65340);let c=(()=>{class e{static forRoot(){return{ngModule:e,providers:[s.v]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[o.B],imports:[[r.CommonModule,a.M]]}),e})()},36873:(e,t,n)=>{"use strict";n.d(t,{Bs:()=>i.B,U8:()=>r.U}),n(38458);var i=n(22646),r=(n(97637),n(84853),n(28850))},62090:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var i=n(93758),r=n(15287),o=n(40606),a=n(57826);let s=(()=>{class e{constructor(e,t){this.monetaryAmountService=e,this.currencyConversionService=t}transform(e,t){if(e){let n=new o.W(this.monetaryAmountService,this.currencyConversionService),i=e;for(;i.match(/\[monetaryAmount:([A-Z]{3})\]([^\[]+)\[\/monetaryAmount\]/);)i=i.replace(/\[monetaryAmount:([A-Z]{3})\]([^\[]+)\[\/monetaryAmount\]/,((e,i,r)=>(r=parseFloat(r),`${n.transform({amount:r,currency:i},!0,!1,void 0,t)}`)));return`${i}`}}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵdirectiveInject"](i.S,16),a["ɵɵdirectiveInject"](r.OJ,16))},e.ɵpipe=a["ɵɵdefinePipe"]({name:"bxMonetaryAmountTag",type:e,pure:!0}),e})()},73502:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})()},76660:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var i=n(57826);let r=(()=>{class e{transform(e){return e?e.replace(/\d(?=\d{4})/g,"*"):e}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i["ɵɵdefinePipe"]({name:"bxMaskStringPipe",type:e,pure:!0}),e})()},75826:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var i=n(57826);let r=(()=>{class e{transform(t){if(t&&!isNaN(Number(t))){let n=t.split(e.DEFAULT_DECIMALS_SEPARATOR);return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,e.DEFAULT_THOUSANDS_SEPARATOR),n.join(e.DEFAULT_DECIMALS_SEPARATOR)}return t}}return e.DEFAULT_THOUSANDS_SEPARATOR=",",e.DEFAULT_DECIMALS_SEPARATOR=".",e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i["ɵɵdefinePipe"]({name:"bxThousandsSeparator",type:e,pure:!0}),e})()},96940:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var i=n(15982),r=n(57826);let o=(()=>{class e{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.DomSanitizer,16))},e.ɵpipe=r["ɵɵdefinePipe"]({name:"bxTrustyHtml",type:e,pure:!0}),e})()},32716:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(57826);let r=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t,this.CSS_CLASS="preview-indicator"}ngAfterViewInit(){this.hasPreviewIndicator()&&this.renderer.addClass(this.elementRef.nativeElement,this.CSS_CLASS)}hasPreviewIndicator(){return this.content&&this.content.draft}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](i.Renderer2))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxPreviewIndicator",""]],inputs:{content:["bxPreviewIndicator","content"]}}),e})()},40821:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var i=n(6856),r=n(84704),o=n(49379),a=n(53609),s=n(57826);let c=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=s["ɵɵdefineNgModule"]({type:e}),e.ɵinj=s["ɵɵdefineInjector"]({providers:[o.M,{provide:a.D,useValue:{}}],imports:[[i.CommonModule,r.a]]}),e})()},4473:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var i=n(57826),r=n(15982),o=n(6856);class a{constructor(e,t){this.tstate=e,this.platformId=t,this.cachedDataByUrl={},this.FROM_UNIVERSAL_KEY="fromUniversal",(0,o.isPlatformBrowser)(this.platformId)&&(this.cachedDataByUrl=this.tstate.get(a.CACHE_BY_URL_KEY,{})),(0,o.isPlatformServer)(this.platformId)&&(this.tstate.set(a.CACHE_BY_URL_KEY,this.cachedDataByUrl),this.setFromUniversal())}saveData(e,t){if(!a.isExcludedUrl(e))if(this.cachedDataByUrl[e])this.cachedDataByUrl[e].counter++;else{let n={counter:1,data:t};this.cachedDataByUrl[e]=n}}getData(e){const t=this.cachedDataByUrl[e];return t?(1===t.counter?delete this.cachedDataByUrl[e]:t.counter>1&&this.cachedDataByUrl[e].counter--,t.data):null}static isExcludedUrl(e){for(const t of a.excludedUrls)if(e.endsWith(t))return!0;return!1}isFromUniversal(){return void 0!==this.cachedDataByUrl[this.FROM_UNIVERSAL_KEY]||!1}setFromUniversal(){return this.saveData(this.FROM_UNIVERSAL_KEY,{})}clearFromUniversal(){delete this.cachedDataByUrl[this.FROM_UNIVERSAL_KEY]}}a.CACHE_BY_URL_KEY=(0,r.makeStateKey)("cachedDataByUrl"),a.excludedUrls=["/i18n/routes.json","/services/site-config/v1/config"],a.ɵfac=function(e){return new(e||a)(i["ɵɵinject"](r.TransferState),i["ɵɵinject"](i.PLATFORM_ID))},a.ɵprov=i["ɵɵdefineInjectable"]({token:a,factory:a.ɵfac})},23444:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});const i=new(n(57826).InjectionToken)("UniversalConfig")},77523:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var i=n(4473),r=n(57826);let o=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.m]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({}),e})()},64417:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var i=n(27218),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.X]}),e})()},27218:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){}getUrl(e,t,n,i,r="casino"){let o="/";return i&&(o=`?${i}=`),`${o}${r}/${e}/${n}/${t}`}getPathFormat(){return"casino/:category/:subcategory/:slug"}getPathList(e,t,n,i="/casino"){return[i,e,n,t]}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},7011:(e,t,n)=>{"use strict";n.d(t,{L:()=>p});var i=n(57826),r=n(6856),o=n(90441),a=n(56614),s=n(55640),c=n(93996),l=n(30173),d=n(36575);const u=[{provide:o.X,useFactory:function(e,t,n){return new o.X(e,t,n)},deps:[s.z,l.U,i.PLATFORM_ID]}];let p=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...u]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,a.F,c.M,d.I]]}),e})()},90441:(e,t,n)=>{"use strict";n.d(t,{X:()=>d,u:()=>c});var i=n(57826),r=n(6856),o=n(4309),a=n(55640),s=n(30173);const c="e30=",l="existingBlackBox";let d=(()=>{class e{constructor(e,t,n){this.storageService=e,this.deviceService=t,this.platformId=n,this._iFrameId="fpIframe",this._encodedBlackBox=c,(0,r.isPlatformBrowser)(this.platformId)&&(this._document=document,this._location=location,this.blackBoxGenerationResults=new o.Subject,this.storageService.get(l)&&(this._encodedBlackBox=this.storageService.get(l)),window.addEventListener?window.addEventListener("message",this.deviceProtectListener.bind(this),!1):window.attachEvent("onmessage",this.deviceProtectListener))}generateBlackBox(){if(this.isDeviceTrackingEnabled()){const e=this.isHSTSEnabled();let t={basePath:"/fp",blackbox:!0,f:!0,h:e,iFrameId:this._iFrameId,iframeIndexUrl:this.deviceTrackingUrl+"/views/fp/index.html",parentUrl:this.getMainHost(),v:"2.8.0",bx:!0,bgw:this.getDeviceInfo()};e||(t.hc=this.storageService.get("hc")),this.appendIFrameToBody(t,this.blackBoxGenerationResults)}}getBlackBox(){return this._encodedBlackBox}getDefaultBlackBox(){return c}deviceProtectListener(e){switch(e.data.messageType){case"blackBox":this._encodedBlackBox=e.data.data,this.storageService.set(l,e.data.data);break;case"hc":this.storageService.set("hc",e.data.data)}}setDocument(e){this._document=e}setLocation(e){this._location=e}getDeviceInfo(){return this.deviceService.getDeviceType()+"|"+this.deviceService.getDeviceOS()+"|"+this.deviceService.getOSVersion()+"|"+this.deviceService.getBrowser()+"|"+this.deviceService.getBrowserVersion()+"|"+this.deviceService.getScreenWidth()+"|"+this.deviceService.getScreenHeight()}getMainHost(){let e=this._location.host,t=this._location.protocol+"//"+e;return"localhost"!==e&&this.notIpAddress(e)||(t+=this._location.port?":"+this._location.port:""),t}sendSessionId(e,t){let n={data:e,messageType:"bx-session-id"},i=document.getElementById(this._iFrameId);i&&i.contentWindow.postMessage(n,t)}listenBlackBoxGenerationResults(e){return this.deviceTrackingUrl=e,this.blackBoxGenerationResults.asObservable()}notIpAddress(e){let t=e.split("."),n=t[t.length-1];return isNaN(n)}appendIFrameToBody(e,t){e.iframeId&&(this._iFrameId=e.iframeId);const n=this.encodeTruthyUriComponents(e.basePath),i=this.encodeTruthyUriComponents(e.blackbox),r=this.encodeTruthyUriComponents(e.f),o=this.encodeTruthyUriComponents(e.h),a=this.encodeTruthyUriComponents(e.iFrameId),s=this.encodeTruthyUri(e.iframeIndexUrl),c=this.encodeTruthyUriComponents(e.parentUrl),l=`${s}?f=${r}&h=${o}&blackbox=${i}&iframeId=${a}&basePath=${n}&v=${this.encodeTruthyUriComponents(e.v)}&parentUrl=${c}&bx=${this.encodeTruthyUriComponents(e.bx)}&bgw=${this.encodeTruthyUriComponents(e.bgw)}${"hc"in e?`&hc=${this.encodeTruthyUriComponents(e.hc)}`:""}`;let d=this._document.getElementById(this._iFrameId);d&&d.remove(),d=this._document.createElement("iframe"),d.setAttribute("id",a),d.setAttribute("src",l),d.setAttribute("frameBorder","0"),d.setAttribute("width","0%"),d.setAttribute("height","0%"),d.setAttribute("style","width:0%;height:0%;position:absolute;top:0;left:0;"),d.onload=()=>{t.next({})},this._document.getElementsByTagName("body")[0].appendChild(d)}encodeTruthy(e,t){return e?t(e):e}encodeTruthyUriComponents(e){return this.encodeTruthy(e,encodeURIComponent)}encodeTruthyUri(e){return this.encodeTruthy(e,encodeURI)}isDeviceTrackingEnabled(){return!!this.deviceTrackingUrl}isHSTSEnabled(){return"safari"!==this.deviceService.getBrowser().toLowerCase()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](a.z),i["ɵɵinject"](s.U),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},76141:(e,t,n)=>{"use strict";n.d(t,{L1:()=>i.L,Xp:()=>r.X,uw:()=>r.u});var i=n(7011),r=n(90441)},25938:(e,t,n)=>{"use strict";n.d(t,{L1:()=>i.L1,Xp:()=>i.Xp,uw:()=>i.uw});var i=n(76141)},58447:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var i=n(40475),r=n(57826);const o=["*"];let a=(()=>{class e{submit(e){this.formGroup.valid||(this.markGroupAsTouched(this.formGroup),e.stopImmediatePropagation())}markGroupAsTouched(e){e instanceof i.FormGroup||e instanceof i.FormArray?Object.keys(e.controls).map((t=>this.markGroupAsTouched(e.get(t)))):e.markAsTouched()}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-form"]],inputs:{formGroup:"formGroup"},ngContentSelectors:o,decls:6,vars:0,consts:[["novalidate","",3,"ngSubmit"]],template:function(e,t){1&e&&(r["ɵɵprojectionDef"](),r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"form",0),r["ɵɵlistener"]("ngSubmit",(function(e){return t.submit(e)})),r["ɵɵtext"](2,"\n            "),r["ɵɵprojection"](3),r["ɵɵtext"](4,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n    "))},directives:[i["ɵNgNoValidate"],i.NgControlStatusGroup,i.NgForm],encapsulation:2}),e})()},12644:(e,t,n)=>{"use strict";n.d(t,{q:()=>y});var i=n(84245),r=n(40475),o=n(84704),a=n(6856),s=n(68698),c=n(82009),l=n(5608),d=n(38129),u=n(71835),p=n(33225),h=n(30346),m=n(41759);const g=[{provide:h.C,useValue:{name:"bxAdminCalendar",validator:function(){return e=>{if(r.Validators.required(e))return null;let t=(0,m.Z)(+e.value),n=(0,m.Z)().utc();return t.isValid()&&n.isValid()&&!t.isAfter(n)?{notInThePast:!0}:null}}},multi:!0},{provide:h.C,useValue:{name:"bxEmail",validator:function(e){if(r.Validators.required(e))return null;let t=e.value;return/^[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/.test(t)?null:{bxEmail:!0}}},multi:!0},{provide:h.C,useValue:{name:"bxUsername",validator:function(e){return r.Validators.required(e)||/^[a-zA-Z0-9_\-]*$/.test(e.value)?null:{bxUsername:!0}}},multi:!0},{provide:h.C,useValue:{name:"password",validator:function(e){if(r.Validators.required(e))return null;let t=e.value;return/(.*[0-9]+.*[A-Z]+.*)|(.*[A-Z]+.*[0-9]+.*)/.test(t)?null:{password:!0}}},multi:!0},{provide:h.C,useValue:{name:"digits",validator:function(e){if(r.Validators.required(e))return null;let t=e.value;return/^\d+$/.test(t)?null:{digits:!0}}},multi:!0},{provide:h.C,useValue:{name:"someRequired",validator:function(e,t){return n=>{let i=0;for(let e of t)n.get(e)&&n.get(e).value&&(i+=1);return i>=e?null:{someRequired:!0}}}},multi:!0},{provide:h.C,useValue:{name:"range",validator:function(e,t){return n=>{if(r.Validators.required(n))return null;let i=+n.value;return i>=e&&i<=t?null:{range:!0}}}},multi:!0},{provide:h.C,useValue:{name:"gt",validator:function(e){return t=>r.Validators.required(t)||(t.value?+t.value.toString().replace(/,/g,""):+t.value)>e?null:{gt:!0}}},multi:!0},{provide:h.C,useValue:{name:"bxChecked",validator:function(e){if(r.Validators.required(e))return null;let t=e.value;return!t||/false/g.test(t)?{bxChecked:!0}:null}},multi:!0},{provide:h.C,useValue:{name:"bxValidName",validator:function(e){if(r.Validators.required(e))return null;let t=e.value;return new RegExp("^[\\w\\s.,\\/#!%\\^*;:{}=\\-`~()¡ªº'¿´\\u00C0-\\u00FF\\u4E00-\\u9FFF]*$").test(t)?null:{error_pattern:!0}}},multi:!0},{provide:h.C,useValue:{name:"bxNoWhitespacesName",validator:function(e){return r.Validators.required(e)||0!==(e.value||"").trim().length?null:{required:!0}}},multi:!0}];var f=n(88856),v=n(8566),b=n(57826);let y=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=b["ɵɵdefineNgModule"]({type:e}),e.ɵinj=b["ɵɵdefineInjector"]({providers:[i.o,p.S,u.l,...g],imports:[[r.FormsModule,r.ReactiveFormsModule,o.a,a.CommonModule,s.T,f.QA,c.D,v.B,l.a,d.z],r.FormsModule,r.ReactiveFormsModule,a.CommonModule]}),e})()},74195:(e,t,n)=>{"use strict";n.d(t,{E:()=>we});var i=n(33225),r=n(57826),o=n(80279),a=n(40475),s=n(81207),c=n(38026),l=n(61493),d=n(45965),u=n(6856),p=n(86014),h=n(90566),m=n(75619),g=n(18548),f=n(35218),v=n(15287),b=n(50811);let y=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.control=t,this.injector=n,this.currencyCode="",this.includeThousandsSeparator=!1}ngAfterViewInit(){this.initCurrencyConversionService(),this.control&&this.control.value&&this.currencyConversionService&&(this.internalValue=this.asMonetaryAmount(this.currencyCode,this.control.value),this.elementRef.nativeElement.value=this.includeThousandsSeparator?b.w.formatAmountUsingEnglishStandard(this.currencyConversionService.convert(this.internalValue).amount.toString()):this.currencyConversionService.convert(this.internalValue).amount.toString())}initCurrencyConversionService(){this.currencyConversionService||"monetaryAmount"!==this.elementRef.nativeElement.getAttribute("Type")||(this.currencyConversionService=this.injector.get(v.OJ))}onChange(e){e.target&&"monetaryAmount"===e.target.getAttribute("Type")&&this.currencyConversionService&&(this.internalValue=this.currencyConversionService.convert(this.asMonetaryAmount(f.o.getCurrencyCodeToShow(this.currencyCode),this.includeThousandsSeparator?b.w.removeEnglishThousandsSeparator(e.target.value):e.target.value)))}onFocus(e){e.target&&"monetaryAmount"===e.target.getAttribute("Type")&&delete this.control.control.isValuePatched}onTouched(e){e.target&&"monetaryAmount"===e.target.getAttribute("Type")&&this.currencyConversionService&&this.internalValue&&(this.control.control.isValuePatched=!0,this.control.control.patchValue(this.internalValue.amount.toString()),this.elementRef.nativeElement.value=this.includeThousandsSeparator?b.w.formatAmountUsingEnglishStandard(this.currencyConversionService.convert(this.internalValue).amount.toString()):this.currencyConversionService.convert(this.internalValue).amount.toString())}asMonetaryAmount(e,t){return{amount:isNaN(+t)?0:+t,currency:e}}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](a.NgControl),r["ɵɵdirectiveInject"](r.Injector))},e.ɵdir=r["ɵɵdefineDirective"]({type:e,selectors:[["input","bxMonetaryAmount",""]],hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("blur",(function(e){return t.onTouched(e)}))("change",(function(e){return t.onChange(e)}))("focus",(function(e){return t.onFocus(e)}))},inputs:{currencyCode:"currencyCode",includeThousandsSeparator:"includeThousandsSeparator"}}),e})();var C=n(76660),S=n(33704);let x=(()=>{class e{constructor(e,t,n,i){this.elementRef=e,this.control=t,this.phoneSubjectService=n,this.maskStringPipe=i,this.targetType="telMasked",this.initPhone="",this.mustBeValidated=!1}ngAfterViewInit(){const e=this.elementRef.nativeElement.getAttribute("type");this.control&&e===this.targetType&&(this.elementRef.nativeElement.setAttribute("autocomplete","off"),this.initSubscription=this.controlGroup.get(this.formControlName).valueChanges.subscribe((e=>{this.initialize(e),this.unsubscribeInitSubscription()})),this.phoneSubjectService.phoneItem$.subscribe((e=>{this.initialize(e)})))}onChange(e){e.target&&e.target.getAttribute("Type")===this.targetType&&(e.target.value&&!this.mustBeValidated?this.addValidators():e.target.value||this.removeValidators())}onFocus(e){e.target&&e.target.getAttribute("Type")===this.targetType&&e.target.value.includes("*")&&(this.elementRef.nativeElement.value="")}onTouched(e){e.target&&e.target.getAttribute("Type")===this.targetType&&!e.target.value&&this.fillDefaultValue()}setInitPhone(e){this.initPhone=e}initialize(e){this.setInitPhone(e),this.fillDefaultValue(),this.removeValidators()}unsubscribeInitSubscription(){this.initSubscription.unsubscribe()}fillDefaultValue(){this.elementRef.nativeElement.value=this.maskStringPipe.transform(this.initPhone)}addValidators(){this.controlGroup.get(this.formControlName).setValidators([a.Validators.required,a.Validators.maxLength(this.validators.maxLength),a.Validators.pattern(this.validators.pattern)]),this.controlGroup.get(this.formControlName).updateValueAndValidity({emitEvent:!1}),this.mustBeValidated=!0}removeValidators(){this.controlGroup.get(this.formControlName).clearValidators(),this.controlGroup.get(this.formControlName).setErrors(null),this.mustBeValidated=!1}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](a.NgControl),r["ɵɵdirectiveInject"](S.$),r["ɵɵdirectiveInject"](C.X))},e.ɵdir=r["ɵɵdefineDirective"]({type:e,selectors:[["input","bxTelMasked",""]],hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("blur",(function(e){return t.onTouched(e)}))("change",(function(e){return t.onChange(e)}))("focus",(function(e){return t.onFocus(e)}))},inputs:{controlGroup:"controlGroup",formControlName:"formControlName",validators:"validators"}}),e})();var w=n(81899);let E=(()=>{class e{constructor(e,t,n){this.renderer=t,this.windowService=n,this.targetInput=e.nativeElement}ngAfterViewInit(){this.typeAheadConfig&&this.createTypeAheadInput()}processInputForTypeAhead(){if(!this.typeAheadConfig)return;let e="";this.triggersSearch()&&(e=this.findHintValue()),this.setHint(e)}acceptHintValue(e){this.typeAheadConfig&&this.canAcceptHint()&&(this.completeInputWithTypeAhead(),e.preventDefault())}acceptHintValueIfClickedAtTheEnd(e){this.typeAheadConfig&&this.canAcceptHintOnClick(e.offsetX)&&this.completeInputWithTypeAhead()}resetHint(){this.typeAheadConfig&&this.setHint("")}createTypeAheadInput(){this.wrapper=this.renderer.createElement("div"),this.typedSpan=this.renderer.createElement("span"),this.hintSpan=this.renderer.createElement("span"),this.styleTypeAhead(),this.renderer.appendChild(this.wrapper,this.typedSpan),this.renderer.appendChild(this.wrapper,this.hintSpan),this.renderer.insertBefore(this.renderer.parentNode(this.targetInput),this.wrapper,this.targetInput)}styleTypeAhead(){const{padding:e,fontSize:t,zIndex:n}=this.getTargetInputStyles();this.renderer.addClass(this.wrapper,"type-ahead-wrapper"),this.renderer.addClass(this.hintSpan,"type-ahead-hint"),this.renderer.addClass(this.typedSpan,"type-ahead-typed"),this.renderer.setStyle(this.wrapper,"padding",e),this.renderer.setStyle(this.wrapper,"font-size",t),this.renderer.setStyle(this.wrapper,"z-index",n)}getTargetInputStyles(){return this.windowService?this.windowService.window().getComputedStyle(this.targetInput):{}}triggersSearch(){return this.typeAheadConfig.regex.test(this.targetInput.value)}findHintValue(){const{searchTermIgnoreCase:e,matchedElement:t}=this.findMatch();return t?t.replace(e,""):""}findMatch(){const e=this.typeAheadConfig.regex.exec(this.targetInput.value)[1],t=new RegExp(`^${e}`.replace(/\./g,"\\."),"i");return{matchedElement:this.typeAheadConfig.searchList.find((e=>t.test(e))),searchTermIgnoreCase:t}}setHint(e){this.typedSpan.textContent=this.targetInput.value,this.hintSpan.textContent=e}completeInputWithTypeAhead(){this.targetInput.value+=this.hintSpan.textContent,this.targetInput.dispatchEvent(new Event("input"))}canAcceptHint(){return!!this.hintSpan.textContent}canAcceptHintOnClick(e){return this.canAcceptHint()&&this.isClickAtTheEnd(e)}isClickAtTheEnd(e){return e>this.typedSpan.offsetWidth+this.hintSpan.offsetWidth}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2),r["ɵɵdirectiveInject"](w.u,8))},e.ɵdir=r["ɵɵdefineDirective"]({type:e,selectors:[["input","bxTypeAhead",""]],hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("input",(function(){return t.processInputForTypeAhead()}))("focus",(function(){return t.processInputForTypeAhead()}))("keydown.enter",(function(e){return t.acceptHintValue(e)}))("click",(function(e){return t.acceptHintValueIfClickedAtTheEnd(e)}))("blur",(function(){return t.resetHint()}))("keydown.esc",(function(){return t.resetHint()}))},inputs:{typeAheadConfig:["bxTypeAhead","typeAheadConfig"]}}),e})();var I=n(88856),P=n(6684),T=n(36803),_=n(96872),M=n(76355),O=n(20843);const A=function(e,t){return{tag:"textContent",label:e,values:t}};function k(e,t){if(1&e&&r["ɵɵelement"](0,"p",4),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction2"](1,A,e.errorMessage,e.errorVars))}}const j=function(e,t){return{"invalid-field":e,"corrected-field":t}},N=function(e){return{"active-field":e}};let R=(()=>{class e{constructor(e){this.elementRef=e,this.disabled=!1,this.readonly=!1,this.value="",this.state="",this.errorMessage="",this.errorVars={},this.focused=!1,this.propagateChange=()=>{},this.propagateTouch=()=>{}}get bindValue(){return this.innerValue}set bindValue(e){e!==this.innerValue&&(this.innerValue=e,this.propagateChange(e))}onFocus(){this.focused=!0}onBlur(){this.focused=this.elementRef.nativeElement.value||!1,this.propagateTouch()}ngOnInit(){this.bxId||(this.bxId=Math.random().toString(36).substring(7)),this.innerValue=this.value}writeValue(e){this.innerValue=e}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.propagateTouch=e}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ElementRef))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-textarea"]],inputs:{bxId:"bxId",label:"label",disabled:"disabled",readonly:"readonly",maxLength:"maxLength",value:"value",state:"state",errorMessage:"errorMessage",errorVars:"errorVars",required:"required"},features:[r["ɵɵProvidersFeature"]([{provide:a.NG_VALUE_ACCESSOR,useExisting:(0,r.forwardRef)((()=>e)),multi:!0}])],decls:10,vars:16,consts:[[1,"custom-field","custom-textarea",3,"ngClass"],[3,"id","ngModel","disabled","maxlength","ngModelChange","focus","blur"],[3,"for","ngClass","bxRequiredField","mandatory"],["class","error-msg",3,"bxTranslate",4,"ngIf"],[1,"error-msg",3,"bxTranslate"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"div",0),r["ɵɵtext"](2,"\n          "),r["ɵɵelementStart"](3,"textarea",1),r["ɵɵlistener"]("ngModelChange",(function(e){return t.bindValue=e}))("focus",(function(){return t.onFocus()}))("blur",(function(){return t.onBlur()})),r["ɵɵelementEnd"](),r["ɵɵtext"](4,"\n          "),r["ɵɵelement"](5,"label",2),r["ɵɵtext"](6,"\n\n           "),r["ɵɵtemplate"](7,k,1,4,"p",3),r["ɵɵtext"](8,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](9,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](11,j,"error"===t.state,"valid"===t.state)),r["ɵɵadvance"](2),r["ɵɵproperty"]("id",t.bxId)("ngModel",t.bindValue)("disabled",t.disabled)("maxlength",t.maxLength),r["ɵɵattribute"]("readonly",t.readonly?"":null),r["ɵɵadvance"](2),r["ɵɵproperty"]("for",t.bxId)("ngClass",r["ɵɵpureFunction1"](14,N,t.innerValue||t.focused))("bxRequiredField",t.label)("mandatory",t.required),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.errorMessage))},directives:[u.NgClass,a.DefaultValueAccessor,a.NgControlStatus,a.NgModel,a.MaxLengthValidator,M.w,u.NgIf,p.P],encapsulation:2}),e})();var D=n(1890),L=n(27399);function F(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"i",5),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"](),n=t.item,i=t.index;return r["ɵɵnextContext"](),r["ɵɵreference"](2).removeItem(n,i)})),r["ɵɵelementEnd"]()}}function B(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                    "),r["ɵɵelementStart"](1,"span",3),r["ɵɵtext"](2),r["ɵɵtemplate"](3,F,1,0,"i",4),r["ɵɵtext"](4,"\n                    "),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n                ")),2&e){const e=t.item,n=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",n.writeChipsRefData(e.display,"type")),r["ɵɵattribute"]("data-tooltip",n.writeChipsRefData(e.display,"description")),r["ɵɵadvance"](1),r["ɵɵtextInterpolate1"]("\n                        ",e.display,"\n                        "),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!n.disabled)}}function U(e,t){if(1&e&&(r["ɵɵelementStart"](0,"tag-input-dropdown",6),r["ɵɵtext"](1,"\n                "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("showDropdownIfEmpty",!0)("focusFirstElement",!0)("displayBy","display")("identifyBy","value")("autocompleteItems",e._autocompleteItems)}}const V=function(){return{enter:"0ms",leave:"0ms"}};let G=(()=>{class e{constructor(){this.validators=[],this.asyncValidators=[],this.errorMessages={},this.chipsUpdated=new r.EventEmitter,this.propagateChange=()=>{},this.propagateTouch=()=>{}}set chips(e){this._chips=e.map((e=>({display:e,value:e,readonly:!0})))}set autocompleteItems(e){void 0!==e&&(this._autocompleteItems=e.map((e=>({display:e,value:e,readonly:!0}))))}updateFormModel(){this.propagateChange(this._chips.map((e=>e.value))),this.chipsUpdated.emit(this._chips.map((e=>e.value)))}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.propagateTouch=e}writeValue(e){e&&e.length>0?this._chips=e.map((e=>({display:e,value:e,readonly:!0}))):this._chips=[]}writeChipsRefData(e,t){if(this.chipsRefData&&this.chipsRefData[e])return this.chipsRefData[e][t]}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-chips"]],inputs:{bxId:"bxId",chips:"chips",autocompleteItems:"autocompleteItems",hideForm:"hideForm",disabled:"disabled",dropdown:"dropdown",validators:"validators",asyncValidators:"asyncValidators",errorMessages:"errorMessages",onAdding:"onAdding",placeholder:"placeholder",chipsRefData:"chipsRefData",dragZone:"dragZone"},outputs:{chipsUpdated:"chipsUpdated"},features:[r["ɵɵProvidersFeature"]([{provide:a.NG_VALUE_ACCESSOR,useExisting:(0,r.forwardRef)((()=>e)),multi:!0}])],decls:9,vars:16,consts:[["theme","enterprise","inputClass","add-tag-field",3,"ngModel","hideForm","disable","validators","asyncValidators","errorMessages","onAdding","addOnBlur","placeholder","secondaryPlaceholder","onlyFromAutocomplete","dragZone","animationDuration","ripple","ngModelChange","onRemove","onTextChange","onAdd"],["input",""],[3,"showDropdownIfEmpty","focusFirstElement","displayBy","identifyBy","autocompleteItems",4,"ngIf"],["aria-label","Bonus code",1,"tag-brand",3,"ngClass"],["class","icon icon-close",3,"click",4,"ngIf"],[1,"icon","icon-close",3,"click"],[3,"showDropdownIfEmpty","focusFirstElement","displayBy","identifyBy","autocompleteItems"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"tag-input",0,1),r["ɵɵlistener"]("ngModelChange",(function(e){return t._chips=e}))("onRemove",(function(){return t.updateFormModel()}))("onTextChange",(function(){return t.updateFormModel()}))("onAdd",(function(){return t.updateFormModel()})),r["ɵɵtext"](3,"\n                "),r["ɵɵtemplate"](4,B,6,4,"ng-template"),r["ɵɵtext"](5,"\n                "),r["ɵɵtemplate"](6,U,2,5,"tag-input-dropdown",2),r["ɵɵtext"](7,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](8,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngModel",t._chips)("hideForm",t.hideForm)("disable",t.disabled)("validators",t.validators)("asyncValidators",t.asyncValidators)("errorMessages",t.errorMessages)("onAdding",t.onAdding)("addOnBlur",!0)("placeholder",t.placeholder)("secondaryPlaceholder",t.placeholder)("onlyFromAutocomplete",!!t.dropdown)("dragZone",t.dragZone)("animationDuration",r["ɵɵpureFunction0"](15,V))("ripple",!1),r["ɵɵadvance"](5),r["ɵɵproperty"]("ngIf",!!t.dropdown))},directives:[L.m7,a.NgControlStatus,a.NgModel,u.NgIf,u.NgClass,L.zP],styles:["[_nghost-%COMP%]     .ng2-tag-input.enterprise {\n  display: block;\n  flex-direction: row;\n  flex-wrap: wrap;\n  position: relative;\n  cursor: text;\n  border-bottom: 1px solid #74747c;\n  border-radius: 0;\n  border-bottom: solid 2px #ceced3;\n  padding: 0;\n  margin-top: 10px; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise:focus {\n    outline: 0; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise.ng2-tag-input--dropping {\n    opacity: 0.7; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise.ng2-tag-input--loading {\n    border: none; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise.ng2-tag-input--disabled {\n    opacity: 0.5;\n    cursor: not-allowed; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise .ng2-tags-container {\n    flex-wrap: wrap;\n    display: flex; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise.ng2-tag-input--focused {\n    border-color: #909ea5; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise.ng2-tag-input--invalid.ng2-tag-input--focused {\n    border-color: #f44336; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise .ng2-tags-container {\n    align-items: center; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise tag {\n  display: flex;\n  flex-direction: row;\n  flex-wrap: wrap;\n  font-family: \"catamaran\";\n  color: #fff;\n  border-radius: 0;\n  background: transparent;\n  -webkit-user-select: none;\n          user-select: none;\n  overflow: hidden;\n  outline: 0;\n  cursor: pointer;\n  position: relative;\n  height: 34px; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise tag:not(.readonly):not(.tag--editing):focus {\n    background: transparent; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise tag:not(.readonly):not(.tag--editing):active {\n    background: transparent; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise tag:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover {\n    background: transparent;\n    color: #fff; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise tag.readonly {\n    cursor: default; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise tag.readonly:focus, [_nghost-%COMP%]     .ng2-tag-input.enterprise tag:focus {\n    outline: 0; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise tag.tag--editing {\n    cursor: text; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise .add-tag-field {\n  border: none;\n  text-align: left;\n  font-size: 1.34em;\n  padding: 0 10px;\n  outline-style: none;\n  height: 48px;\n  line-height: 48px;\n  font-family: 'catamaran'; }\n  [_nghost-%COMP%]     .ng2-tag-input.enterprise .add-tag-field::placeholder {\n    color: #74747c; }\n  .tag-brand[_ngcontent-%COMP%] {\n  margin-right: 10px; }\n  .tag-brand[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n    float: right;\n    margin-left: 10px;\n    margin-right: -10px;\n    font-size: 1em; }\n  [_nghost-%COMP%]     .error-messages.enterprise .error-message {\n  font-size: 1.17em;\n  font-family: 'catamaran';\n  color: #f44336; }\n  [_nghost-%COMP%]     .tag-field {\n  width: 100%; }"]}),e})(),H=(()=>{class e{transform(e){let t=Object.keys(e),n=[];return t.forEach((t=>{e[t].formControlName=t,n.push(e[t])})),n}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=r["ɵɵdefinePipe"]({name:"bxObjectToArray",type:e,pure:!1}),e})();var z=n(54503);let $=(()=>{class e{transform(e,t){return t&&t.length>0?z(t,e):e}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=r["ɵɵdefinePipe"]({name:"bxFilterModel",type:e,pure:!0}),e})();function W(e,t){if(1&e&&r["ɵɵelementContainer"](0,6),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngTemplateOutlet",t.templateStartMap[e.formControlName].templateRef)("ngTemplateOutletContext",t.templateStartMap[e.formControlName].templateContext)}}function q(e,t){if(1&e&&r["ɵɵelementContainer"](0,6),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngTemplateOutlet",t.templateStartMap[e.modelType].templateRef)("ngTemplateOutletContext",t.templateStartMap[e.modelType].templateContext)}}function K(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"span",7),r["ɵɵtext"](3,"\n                            "),r["ɵɵelement"](4,"bx-form-group",8),r["ɵɵtext"](5,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵproperty"]("formGroup",t.controlGroup)("formGroupName",e.formControlName),r["ɵɵadvance"](2),r["ɵɵproperty"]("model",e)("controlGroup",t.controlGroup.controls[e.formControlName])("templateStartMap",t.templateStartMap)("templateEndMap",t.templateEndMap)}}function X(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"span",9),r["ɵɵtext"](3,"\n                            "),r["ɵɵelement"](4,"bx-form-group",8),r["ɵɵtext"](5,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵproperty"]("formGroup",t.controlGroup)("formArrayName",e.formControlName),r["ɵɵadvance"](2),r["ɵɵproperty"]("model",e)("controlGroup",t.controlGroup.controls[e.formControlName])("templateStartMap",t.templateStartMap)("templateEndMap",t.templateEndMap)}}function Y(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"fieldset"),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"legend",10),r["ɵɵtext"](5),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                            "),r["ɵɵelement"](7,"bx-form-group",8),r["ɵɵtext"](8,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](9,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵclassMap"](e.legendClass),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.legend),r["ɵɵadvance"](2),r["ɵɵproperty"]("model",e)("controlGroup",t.controlGroup)("templateStartMap",t.templateStartMap)("templateEndMap",t.templateEndMap)}}const J=function(e,t){return{formGroup:e,arguments:t}};function Q(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"bx-dynamic-loader-component",11),r["ɵɵtext"](3,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](4,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("component",e.component)("context",r["ɵɵpureFunction2"](2,J,t.controlGroup,e.arguments))}}function Z(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n\n                        "),r["ɵɵelementStart"](2,"bx-input-field-container",12),r["ɵɵtext"](3,"\n                                "),r["ɵɵelementStart"](4,"input",13),r["ɵɵlistener"]("keypress",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().$implicit.keypress(t)}))("keyup",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().$implicit.keyup(t)}))("change",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().$implicit.change(t)})),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n\n                    "),r["ɵɵelementContainerEnd"]()}if(2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("forLabelTag",e.id)("label",e.label)("required",t.isRequired(e))("state",t.controlGroup.get(e.formControlName).touched?t.controlGroup.get(e.formControlName).errors?"invalid":"valid":"")("errorMessage",t.controlGroup.get(e.formControlName).errors&&t.controlGroup.get(e.formControlName).touched?e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]:"")("styles",e.layoutClass+t.inputIconStatusClass())("rulesChecker",e.rulesChecker)("errorList",t.controlGroup.get(e.formControlName).errors)("errorVars",t.getErrorVars(t.controlGroup.get(e.formControlName).errors))("info",e.info)("hint",e.hint)("tapHint",e.tapHint),r["ɵɵadvance"](2),r["ɵɵproperty"]("currencyCode",e.currencyCode)("visualType",e.type)("textMask",e.mask)("focused",e.focused)("formControlName",e.formControlName)("controlGroup",t.controlGroup)("validators",e.validators)("min",e.min)("max",e.max)("value",e.value)("bxOnlyNumber",e.onlyNumber)("bxTooltip",null==e.tooltip?null:e.tooltip.bxTooltip)("condition",null==e.tooltip?null:e.tooltip.condition)("placement",null==e.tooltip?null:e.tooltip.placement)("absolute",null==e.tooltip?null:e.tooltip.absolute)("popover",null==e.tooltip?null:e.tooltip.popover)("bxTypeAhead",e.typeAhead),r["ɵɵattribute"]("id",e.id)("maxLength",null==e.validators?null:e.validators.maxLength)("readonly",e.readonly?"":null)}}const ee=function(e){return{tag:"textContent",label:e}};function te(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",17),r["ɵɵtext"](1,"\n                                "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2).$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](1,ee,e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]))}}function ne(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div"),r["ɵɵtext"](3,"\n                            "),r["ɵɵelement"](4,"bx-toggle",14),r["ɵɵtext"](5,"\n\n                            "),r["ɵɵelementStart"](6,"span",15),r["ɵɵtext"](7,"\n                                "),r["ɵɵtemplate"](8,te,2,3,"p",16),r["ɵɵtext"](9,"\n                            "),r["ɵɵelementEnd"](),r["ɵɵtext"](10,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](11,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵproperty"]("id",e.id)("label",e.label)("status",!!e.value)("readonly",e.readonly)("disabled",e.disabled)("formControlName",e.formControlName),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngIf",t.controlGroup.get(e.formControlName).errors)}}function ie(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",17),r["ɵɵtext"](1,"\n                            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2).$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](1,ee,e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]))}}const re=function(e){return{"invalid-field":e}},oe=function(e,t){return{tag:"textContent",label:e,values:t}};function ae(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div",18),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"input",19),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]().$implicit;return r["ɵɵnextContext"]().filterReadonly(t)})),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n                            "),r["ɵɵelementStart"](6,"label",20),r["ɵɵtext"](7,"\n                            "),r["ɵɵelementEnd"](),r["ɵɵtext"](8,"\n                            "),r["ɵɵtemplate"](9,ie,2,3,"p",16),r["ɵɵtext"](10,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](11,"\n                    "),r["ɵɵelementContainerEnd"]()}if(2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMapInterpolate1"]("custom-checkbox native-toggle ",e.layoutClass,""),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](13,re,t.controlGroup.get(e.formControlName).touched&&t.controlGroup.get(e.formControlName).errors)),r["ɵɵadvance"](2),r["ɵɵproperty"]("id",e.id)("value",e.value)("checked",!!e.checked)("formControlName",e.formControlName),r["ɵɵattribute"]("disabled",e.disabled?"":null)("readonly",e.readonly?"":null),r["ɵɵadvance"](2),r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction2"](15,oe,e.label,e.labelValues))("for",e.id),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",t.controlGroup.get(e.formControlName).errors)}}function se(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",17),r["ɵɵtext"](1,"\n                                "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](3).$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](1,ee,e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]))}}function ce(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",18),r["ɵɵtext"](1,"\n                            "),r["ɵɵelement"](2,"input",23),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"label",20),r["ɵɵtext"](5),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                            "),r["ɵɵelementStart"](7,"span",15),r["ɵɵtext"](8,"\n                                "),r["ɵɵtemplate"](9,se,2,3,"p",16),r["ɵɵtext"](10,"\n                            "),r["ɵɵelementEnd"](),r["ɵɵtext"](11,"\n                        "),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=r["ɵɵnextContext"](2).$implicit,i=r["ɵɵnextContext"]();r["ɵɵclassMapInterpolate1"]("custom-radio native-toggle ",n.layoutClass,""),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](12,re,i.controlGroup.get(n.formControlName).touched&&i.controlGroup.get(n.formControlName).errors)),r["ɵɵadvance"](2),r["ɵɵproperty"]("id",n.id+"_"+e.value)("value",e.value)("name",n.name)("formControlName",n.formControlName),r["ɵɵattribute"]("disabled",n.disabled||n.readonly&&i.controlGroup.get(n.formControlName).value!=e.value?"":null),r["ɵɵadvance"](2),r["ɵɵproperty"]("for",n.id+"_"+e.value),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.text),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngIf",i.controlGroup.get(n.formControlName).errors)}}function le(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelement"](2,"label",21),r["ɵɵtext"](3,"\n                        "),r["ɵɵtemplate"](4,ce,12,14,"div",22),r["ɵɵtext"](5,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("bxRequiredField",e.label)("mandatory",t.isRequired(e)),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.options)}}function de(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div"),r["ɵɵtext"](3,"\n\n                         "),r["ɵɵelementStart"](4,"bx-dropdown",24),r["ɵɵtext"](5,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](7,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵproperty"]("formControlName",e.formControlName)("id",e.id)("type",e.dropdownType)("options",e.options)("displayProperty",e.displayProperty)("valueProperty",e.valueProperty)("iconClassProperty",e.iconClassProperty)("selectedValue",e.value)("label",e.label)("labelValues",e.labelValues)("legend",e.legend)("required",t.isRequired(e))("typeahead",e.typeahead)("readonly",e.readonly)("optionFilterSubject$",e.optionFilterSubject$)("disabled",t.controlGroup.get(e.formControlName).disabled)("state",t.controlGroup.get(e.formControlName).touched?t.controlGroup.get(e.formControlName).errors?"error":"valid":"")("errorMessage",t.controlGroup.get(e.formControlName).errors?e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]:"")}}function ue(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div"),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"bx-textarea",25),r["ɵɵtext"](5,"\n                            "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](7,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵproperty"]("bxId",e.id)("formControlName",e.formControlName)("label",e.label)("required",t.isRequired(e))("value",e.value)("readonly",e.readonly)("maxLength",null==e.validators?null:e.validators.maxLength)("disabled",t.controlGroup.get(e.formControlName).disabled)("state",t.controlGroup.get(e.formControlName).touched?t.controlGroup.get(e.formControlName).errors?"error":"valid":"")("errorMessage",t.controlGroup.get(e.formControlName).errors?e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]:"")}}function pe(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div"),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"button",26),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]().$implicit;return t.clickHandler(t.id)})),r["ɵɵtext"](5),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](7,"\n\n                    "),r["ɵɵelementContainerEnd"]()}if(2&e){const e=r["ɵɵnextContext"]().$implicit;r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵclassMapInterpolate1"]("custom-cta ",e.buttonClass,""),r["ɵɵproperty"]("id",e.id),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.label)}}function he(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div"),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"bx-pin-code",27),r["ɵɵtext"](5,"\n                            "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](7,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵproperty"]("bxId",e.id)("formControlName",e.formControlName)("disabled",t.controlGroup.get(e.formControlName).disabled)("readonly",e.readonly)("errorMessage",t.controlGroup.get(e.formControlName).errors&&t.controlGroup.get(e.formControlName).touched?e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]:"")}}function me(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div"),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"bx-multi-select",28),r["ɵɵtext"](5,"\n                            "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](7,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵproperty"]("bxId",e.id)("formControlName",e.formControlName)("options",e.options)("config",t.processMultiSelectConfig(e))("state",t.controlGroup.get(e.formControlName).touched?t.controlGroup.get(e.formControlName).errors?"error":"valid":"")("errorMessage",t.controlGroup.get(e.formControlName).errors?e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]:"")}}function ge(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div"),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"bx-multi-group-select",28),r["ɵɵtext"](5,"\n                            "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](7,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵproperty"]("bxId",e.id)("formControlName",e.formControlName)("options",e.options)("config",e.config)("state",t.controlGroup.get(e.formControlName).touched?t.controlGroup.get(e.formControlName).errors?"error":"valid":"")("errorMessage",t.controlGroup.get(e.formControlName).errors?e.errorMessages[t.getErrorCode(t.controlGroup.get(e.formControlName))]:"")}}function fe(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"div"),r["ɵɵtext"](3,"\n                            "),r["ɵɵelementStart"](4,"bx-chips",29),r["ɵɵlistener"]("onAdding",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().$implicit.onAdding})),r["ɵɵtext"](5,"\n                            "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n                        "),r["ɵɵelementEnd"](),r["ɵɵtext"](7,"\n                    "),r["ɵɵelementContainerEnd"]()}if(2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵclassMap"](e.layoutClass),r["ɵɵadvance"](2),r["ɵɵproperty"]("formControlName",e.formControlName)("placeholder",e.label)("dropdown",e.dropdown)("autoCompleteItems",e.autoCompleteItems)("validators",t.getValidatorsArray(e.validators))("asyncValidators",t.getValidatorsArray(e.asyncValidators))("errorMessages",e.errorMessages)("dragZone",e.dragZone)}}function ve(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                        "),r["ɵɵelementStart"](2,"h2",30),r["ɵɵtext"](3),r["ɵɵelementEnd"](),r["ɵɵtext"](4,"\n                    "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit;r["ɵɵadvance"](2),r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](2,ee,(e.labelPrefix||"profileFields.group.")+e.label+".label")),r["ɵɵadvance"](1),r["ɵɵtextInterpolate1"]("\n                            ",e.label,"\n                        ")}}function be(e,t){if(1&e&&r["ɵɵelementContainer"](0,6),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngTemplateOutlet",t.templateEndMap[e.formControlName].templateRef)("ngTemplateOutletContext",t.templateEndMap[e.formControlName].templateContext)}}function ye(e,t){if(1&e&&r["ɵɵelementContainer"](0,6),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngTemplateOutlet",t.templateEndMap[e.modelType].templateRef)("ngTemplateOutletContext",t.templateEndMap[e.modelType].templateContext)}}function Ce(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n\n                "),r["ɵɵtemplate"](2,W,1,2,"ng-container",3),r["ɵɵtext"](3,"\n\n                "),r["ɵɵtemplate"](4,q,1,2,"ng-container",3),r["ɵɵtext"](5,"\n\n                "),r["ɵɵelementContainerStart"](6,4),r["ɵɵtext"](7,"\n                    "),r["ɵɵtemplate"](8,K,7,8,"ng-container",5),r["ɵɵtext"](9,"\n\n                    "),r["ɵɵtemplate"](10,X,7,8,"ng-container",5),r["ɵɵtext"](11,"\n\n                    "),r["ɵɵtemplate"](12,Y,10,9,"ng-container",5),r["ɵɵtext"](13,"\n\n                    "),r["ɵɵtemplate"](14,Q,5,5,"ng-container",5),r["ɵɵtext"](15,"\n\n                    "),r["ɵɵtemplate"](16,Z,7,32,"ng-container",5),r["ɵɵtext"](17,"\n\n                    "),r["ɵɵtemplate"](18,ne,12,10,"ng-container",5),r["ɵɵtext"](19,"\n\n                    "),r["ɵɵtemplate"](20,ae,12,18,"ng-container",5),r["ɵɵtext"](21,"\n\n                    "),r["ɵɵtemplate"](22,le,6,3,"ng-container",5),r["ɵɵtext"](23,"\n\n                    "),r["ɵɵtemplate"](24,de,8,21,"ng-container",5),r["ɵɵtext"](25,"\n\n                    "),r["ɵɵtemplate"](26,ue,8,13,"ng-container",5),r["ɵɵtext"](27,"\n\n                    "),r["ɵɵtemplate"](28,pe,8,8,"ng-container",5),r["ɵɵtext"](29,"\n\n                    "),r["ɵɵtemplate"](30,he,8,8,"ng-container",5),r["ɵɵtext"](31,"\n\n                    "),r["ɵɵtemplate"](32,me,8,9,"ng-container",5),r["ɵɵtext"](33,"\n\n                    "),r["ɵɵtemplate"](34,ge,8,9,"ng-container",5),r["ɵɵtext"](35,"\n\n                    "),r["ɵɵtemplate"](36,fe,8,11,"ng-container",5),r["ɵɵtext"](37,"\n\n                    "),r["ɵɵtemplate"](38,ve,5,4,"ng-container",5),r["ɵɵtext"](39,"\n\n                "),r["ɵɵelementContainerEnd"](),r["ɵɵtext"](40,"\n\n                "),r["ɵɵtemplate"](41,be,1,2,"ng-container",3),r["ɵɵtext"](42,"\n\n                "),r["ɵɵtemplate"](43,ye,1,2,"ng-container",3),r["ɵɵtext"](44,"\n\n            "),r["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit,n=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",n.templateStartMap[e.formControlName]),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",n.templateStartMap[e.modelType]),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitch",e.modelType),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","formgroup"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","formarray"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","fieldset"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","component"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","input"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","toggle"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","checkbox"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","radiogroup"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","dropdown"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","textarea"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","button"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","pincode"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","multi-select"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","multi-group-select"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","chips"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngSwitchCase","header"),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",n.templateEndMap[e.formControlName]),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",n.templateEndMap[e.modelType])}}function Se(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",17),r["ɵɵtext"](1,"\n                    "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](1,ee,e.model.errorMessages[e.getErrorCode(e.controlGroup)]))}}function xe(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtext"](1,"\n                "),r["ɵɵelementStart"](2,"span",15),r["ɵɵtext"](3,"\n                    "),r["ɵɵtemplate"](4,Se,2,3,"p",16),r["ɵɵtext"](5,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n            "),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](4),r["ɵɵproperty"]("ngIf",e.controlGroup.errors)}}let we=(()=>{class e{constructor(e,t){this.validatorsService=e,this.siteConfigService=t,this.templateStartMap={},this.templateEndMap={}}ngOnInit(){if(!this.model||!this.controlGroup)throw new Error("no [model] or [formGroup] property binding defined for FormGroupLightComponent");this.model.disabled&&this.controlGroup.disable()}filterReadonly(e){if(e.readonly)return!1}ngAfterViewInit(){setTimeout((()=>{this.templates.forEach((e=>{e.align===s.eC?this.templateStartMap[e.modelSelector]=e:this.templateEndMap[e.modelSelector]=e}))}))}allTouched(e){return 0===Object.keys(e.controls).filter((t=>e.controls[t].untouched)).length}getErrorCode(e){let t=Object.keys(e.errors)[0];return this.workaroundAngularLowerCaseErrorCodes(t)}getErrorVars(e){if(e){let t=Object.keys(e)[0];return this.model.errorValues[t]}}isRequired(e){return!!e&&e instanceof o.L&&!!e.validators&&e.validators.hasOwnProperty("required")}processMultiSelectConfig(e){return c("required",this.isRequired(e),e.config)}getValidatorsArray(e){return this.validatorsService.getValidators(e)}workaroundAngularLowerCaseErrorCodes(e){return"minlength"!==e&&"maxlength"!==e||(e=e.replace("length","Length")),e}inputIconStatusClass(){return this.siteConfigService&&this.siteConfigService.evalFeature(l.A.inputIconStatusEnabled)?" icon-status":""}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.S),r["ɵɵdirectiveInject"](d.r,8))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-form-group"]],contentQueries:function(e,t,n){if(1&e&&r["ɵɵcontentQuery"](n,s.Rn,4),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.templates=e)}},inputs:{model:"model",controlGroup:"controlGroup",filterElements:"filterElements",templateStartMap:"templateStartMap",templateEndMap:"templateEndMap"},decls:10,vars:8,consts:[[3,"formGroup"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formGroup","formGroupName"],[3,"model","controlGroup","templateStartMap","templateEndMap"],[3,"formGroup","formArrayName"],[3,"bxTranslate"],[3,"component","context"],[3,"forLabelTag","label","required","state","errorMessage","styles","rulesChecker","errorList","errorVars","info","hint","tapHint"],["bxInput","","bxMonetaryAmount","","bxTelMasked","",3,"currencyCode","visualType","textMask","focused","formControlName","controlGroup","validators","min","max","value","bxOnlyNumber","bxTooltip","condition","placement","absolute","popover","bxTypeAhead","keypress","keyup","change"],[3,"id","label","status","readonly","disabled","formControlName"],[1,"invalid-field"],["class","error-msg",3,"bxTranslate",4,"ngIf"],[1,"error-msg",3,"bxTranslate"],[3,"ngClass"],["type","checkbox","role","checkbox",3,"id","value","checked","formControlName","click"],[3,"bxTranslate","for"],[3,"bxRequiredField","mandatory"],[3,"class","ngClass",4,"ngFor","ngForOf"],["type","radio","role","radio",3,"id","value","name","formControlName"],[3,"formControlName","id","type","options","displayProperty","valueProperty","iconClassProperty","selectedValue","label","labelValues","legend","required","typeahead","readonly","optionFilterSubject$","disabled","state","errorMessage"],[3,"bxId","formControlName","label","required","value","readonly","maxLength","disabled","state","errorMessage"],["type","button",3,"id","bxTranslate","click"],[3,"bxId","formControlName","disabled","readonly","errorMessage"],[3,"bxId","formControlName","options","config","state","errorMessage"],[3,"formControlName","placeholder","dropdown","autoCompleteItems","validators","asyncValidators","errorMessages","dragZone","onAdding"],[1,"h2-heading",3,"bxTranslate"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n\n        "),r["ɵɵelementStart"](1,"div",0),r["ɵɵtext"](2,"\n            "),r["ɵɵtemplate"](3,Ce,45,21,"ng-container",1),r["ɵɵpipe"](4,"bxObjectToArray"),r["ɵɵpipe"](5,"bxFilterModel"),r["ɵɵtext"](6,"\n            "),r["ɵɵtemplate"](7,xe,7,1,"ng-container",2),r["ɵɵtext"](8,"\n\n\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](9,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("formGroup",t.controlGroup),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",r["ɵɵpipeBind1"](4,3,r["ɵɵpipeBind2"](5,5,t.model.elements,t.filterElements))),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngIf","formgroup"==t.model.modelType&&t.allTouched(t.controlGroup)))},directives:[a.NgControlStatusGroup,a.FormGroupDirective,u.NgForOf,u.NgIf,u.NgSwitch,u.NgSwitchCase,u.NgTemplateOutlet,a.FormGroupName,e,a.FormArrayName,p.P,h.W,m.m,g.u,y,x,a.DefaultValueAccessor,E,I.hd,a.NgControlStatus,a.FormControlName,P.p,T.i,_.n,u.NgClass,a.CheckboxControlValueAccessor,M.w,a.RadioControlValueAccessor,O.J,a.RequiredValidator,R,D.b,G],pipes:[H,$],encapsulation:2}),e})()},8807:(e,t,n)=>{"use strict";n.d(t,{E:()=>f});var i=n(57826),r=n(12644),o=n(40475),a=n(6856),s=n(5608),c=n(88856),l=n(68698),d=n(82009),u=n(38129),p=n(84704),h=n(8566),m=n(69575),g=n(68574);let f=(()=>{class e{static withComponents(t){return{ngModule:e,providers:[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.q,o.FormsModule,o.ReactiveFormsModule,p.a,a.CommonModule,l.T,c.QA,d.D,h.B,s.a,u.z,g.G,m.d],o.FormsModule,o.ReactiveFormsModule,a.CommonModule]}),e})()},84245:(e,t,n)=>{"use strict";n.d(t,{o:()=>u});var i=n(40475),r=n(80279),o=n(93144),a=n(16736);class s extends a.j{constructor(e){super(e),this.modelType="formarray",this.createElementFn=e.createElementFn,this.initialCount=e.initialCount||1,this.elements=e.elements||[]}}var c=n(10323),l=n(33225),d=n(57826);let u=(()=>{class e{constructor(e,t){this.fb=e,this.validatorService=t}createFormControl(e){return e instanceof r.L?this.createFormField(e):e instanceof o.f?this.createFormGroup(e):e instanceof s?this.createFormArray(e):e instanceof c.R?this.createFieldset(e):void 0}createFormField(e){const t=e.skipValidatorsRegistration?[]:this.validatorService.getValidators(e.validators),n=e.skipValidatorsRegistration?[]:this.validatorService.getValidators(e.asyncValidators);return this.fb.control({value:e.value,disabled:e.disabled},{validators:t,asyncValidators:n,updateOn:e.updateOn})}createFormGroup(e){let t={};for(let n in e.elements){let r=this.createFormControl(e.elements[n]);r instanceof i.AbstractControl?t[n]=r:t=Object.assign(t,r)}return this.fb.group(t,{validator:this.validatorService.getGroupValidator(e.validator),asyncValidator:this.validatorService.getGroupValidator(e.asyncValidator)})}createFieldset(e){let t={};for(let n in e.elements){let r=this.createFormControl(e.elements[n]);r instanceof i.AbstractControl?t[n]=r:t=Object.assign(t,r)}return t}createFormArray(e){let t=[];return Array.from(Array(e.initialCount).keys()).forEach((n=>{let r=e.createElementFn(n);e.elements.push(r);let o=this.createFormControl(r);if(!(o instanceof i.AbstractControl))throw new Error("Root elements for array should be a group or single control");t.push(o)})),this.fb.array(t)}addToArray(e,t){let n=t.createElementFn(e.length),r=this.createFormControl(n);if(!(r instanceof i.AbstractControl))throw new Error("Root elements for array should be a group or single control");e.push(r),t.elements.push(n)}removeFromArray(e,t,n){"number"==typeof n&&(t.elements.splice(n,1),e.removeAt(n))}addToRootGroup(e,t,n,i){this._addToGroup(e,t,n,i)}addToGroup(e,t,n,i,r){let o=e.get(n),a=this.findInModel(n,t);this._addToGroup(o,a,i,r)}addToGroupPath(e,t,n,i,r,o){let a=n?e.get(n):e,s=this.findInModel(i,t);this._addToGroup(a,s,r,o)}removeFromGroupPath(e,t,n,i,r){let o=n?e.get(n):e;delete this.findInModel(i,t).elements[r],o.removeControl(r)}_addToGroup(e,t,n,r){t.elements[r]=n;let o=this.createFormControl(n);if(e.removeControl(r),o instanceof i.AbstractControl)e.addControl(r,o);else for(let t in o)e.addControl(t,o[t])}findInModel(e,t){let n=e.indexOf(".");if(-1===n)return t.elements[e];{let i=e.substring(0,n),r=t.elements[i];return this.findInModel(e.substring(n+1,e.length),r)}}formDataTrim(e){Object.keys(e).forEach((t=>{let n=e[t];n&&"string"==typeof n?e[t]=e[t].trim():n&&"object"==typeof n&&this.formDataTrim(n)}))}}return e.ɵfac=function(t){return new(t||e)(d["ɵɵinject"](i.FormBuilder),d["ɵɵinject"](l.S))},e.ɵprov=d["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},97241:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var i=n(57826);class r{transform(e,t){let n=this.generateKeys(e,t);return"profileUpdateAccount"!==n.id?n:this.hideLegend(n)}generateKeys(e,t){switch(e.modelType){case"formgroup":return this.processGroup(e,t);case"formarray":return this.processArray(e,t);case"fieldset":return this.processFieldset(e,t);default:return this.processField(e,t)}}processGroup(e,t){Object.keys(e.elements).forEach((n=>e.elements[n]=this.generateKeys(e.elements[n],`${t}.${n}`)));let n=Object.assign({},e.validator,e.asyncValidator);return e=this.processValidatorsMsgs(e,n,t)}processArray(e,t){return e.elements=e.elements.map((e=>this.generateKeys(e,t))),e}processFieldset(e,t){return Object.keys(e.elements).forEach((n=>e.elements[n]=this.generateKeys(e.elements[n],`${t}.${n}`))),Object.keys(e).forEach((n=>{!this.isMessagePresent(e[n])&&this.isTranslatableProperty(n)&&(e[n]=`${t}.${n}`)})),e}processField(e,t){Object.keys(e).forEach((n=>{!this.isMessagePresent(e[n])&&this.isTranslatableProperty(n)&&(e[n]=`${t}.${n}`)}));let n=Object.assign({},e.validators,e.asyncValidators);return this.processValidatorsMsgs(e,n,t)}isTranslatableProperty(e){return r.translatable.has(e)}processValidatorsMsgs(e,t,n){return Object.keys(t).forEach((t=>{this.isMessagePresent(e.errorMessages[t])||(e.errorMessages[t]=`${n}.error_${t}`)})),e}isMessagePresent(e){return null!=e}hideLegend(e){if(e.elements&&e.elements.general){const t=/^title:([A-Za-z]+$)/;return Object.keys(e.elements.general.elements).filter((e=>t.test(e))).forEach((n=>{const i=n.match(t)[1];e.elements.general.elements[i]&&(e.elements.general.elements[i].legend="")})),e}return e}}r.translatable=new Set(["label","placeholder","legend"]),r.ɵfac=function(e){return new(e||r)},r.ɵpipe=i["ɵɵdefinePipe"]({name:"bxTranslationKeys",type:r,pure:!0})},33225:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});var i=n(40475),r=n(30346),o=n(57826);let a=(()=>{class e{constructor(e,t){this.BX_VALIDATORS=e,this.BX_ASYNC_VALIDATORS=t}getValidators(e){return e?Object.keys(e).map((t=>this.getValidatorFn(t,e[t]))):[]}getGroupValidator(e){if("function"==typeof e)return e;if("object"==typeof e){if(Object.keys(e).length>1){let t=[];return Object.keys(e).forEach((n=>{t=t.concat(this.getValidatorFn(n,e[n]))})),t}let t=Object.keys(e)[0];return this.getValidatorFn(t,e[t])}return null}getValidatorFn(e,t){let n=i.Validators[e];if(n)return t?n(t):n;if("function"==typeof t)return t;if(this.BX_VALIDATORS&&(n=this.BX_VALIDATORS.find((t=>e===t.name)),n))return this.applyValidatorFnArgs(n.validator,t);if(this.BX_ASYNC_VALIDATORS&&(n=this.BX_ASYNC_VALIDATORS.find((t=>e===t.name)),n))return this.applyValidatorFnArgs(n.validator,t);throw new Error(`validator ${e} with ${t} is invalid`)}applyValidatorFnArgs(e,t){if(!t||t instanceof Array||(t=[t]),e)return t?e.apply(void 0,t):e}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.C,8),o["ɵɵinject"](r.R,8))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},81207:(e,t,n)=>{"use strict";n.d(t,{Rn:()=>o,eC:()=>r});var i=n(57826);const r="START";let o=(()=>{class e{constructor(e){this.templateRef=e,this.align="END"}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.TemplateRef))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["ng-template","modelSelector",""]],inputs:{align:"align",modelSelector:"modelSelector",templateContext:"templateContext"}}),e})()},66166:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var i=n(80279);class r extends i.L{constructor(e){super(e),this.modelType="checkbox",this.checked=e.checked||!1,this.notTranslatedLabel=e.notTranslatedLabel}}},36476:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var i=n(80279);class r extends i.L{constructor(e){super(e),this.modelType="dropdown",this.dropdownType=e.dropdownType||"normal",this.options=e.options,this.displayProperty=e.displayProperty,this.valueProperty=e.valueProperty,this.iconClassProperty=e.iconClassProperty,this.typeahead=e.typeahead||!1,this.optionFilterSubject$=e.optionFilterSubject$||null,this.parentName=e.parentName||null}}},10323:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var i=n(16736);class r extends i.j{constructor(e){super(e),this.modelType="fieldset",this.legend=e.legend,this.legendClass=e.legendClass||"",this.elements=e.elements}}},80279:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(16736);class r extends i.j{constructor(e){super(e),this.label=e.label,this.value=e.value||"",this.labelValues=e.labelValues,this.legend=e.legend||"",this.disabled=e.disabled||!1,this.readonly=e.readonly||!1,this.validators=e.validators||{},this.asyncValidators=e.asyncValidators||{},this.updateOn=e.updateOn}}},93144:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var i=n(16736);class r extends i.j{constructor(e){super(e),this.modelType="formgroup",this.elements=e.elements,this.validator=e.validator,this.asyncValidator=e.asyncValidator,this.disabled=e.disabled}}},82319:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var i=n(80279);const r=()=>{};class o extends i.L{constructor(e){super(e),this.modelType="input",this.type=e.type||"text",this.includeThousandsSeparator=e.includeThousandsSeparator||!1,this.focused=e.focused||!1,this.min=e.min||0===e.min?e.min:null,this.max=e.max||0===e.max?e.max:null,this.hint=e.hint||null,this.mask=e.mask||{mask:!1},this.onlyNumber=!!e.onlyNumber,this.rulesChecker=e.rulesChecker||[],this.currencyCode=e.currencyCode,this.typeAhead=e.typeAhead,e.tooltip&&(this.tooltip={bxTooltip:e.tooltip.bxTooltip,popover:e.tooltip.popover||!1,absolute:e.tooltip.absolute||!1,condition:e.tooltip.condition||!0,placement:e.tooltip.placement||"bottom"}),this.keypress=e.keypress||r,this.keyup=e.keyup||r,this.change=e.keyup||r}}},16736:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});class i{constructor(e){this.id=e.id,this.errorMessages=e.errorMessages||{},this.errorValues=e.errorValues||{},this.layoutClass=e.layoutClass||"",this.skipValidatorsRegistration=e.skipValidatorsRegistration||!1}}},81428:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n(80279);class r extends i.L{constructor(e){super(e),this.modelType="textarea"}}},71835:(e,t,n)=>{"use strict";n.d(t,{l:()=>g});var i=n(93144),r=n(82319),o=n(66166),a=n(36476),s=n(80279);class c extends s.L{constructor(e){super(e),this.modelType="radiogroup",this.name=e.name,this.options=e.options}}var l=n(10323);class d extends s.L{constructor(e){super(e),this.modelType="toggle"}}var u=n(81428);class p extends s.L{constructor(e){super(e),this.modelType="multi-select",this.options=e.options,this.config=e.config}}class h extends s.L{constructor(e){super(e),this.modelType="chips",this.onAdding=e.onAdding,this.dropdown=e.dropdown,this.autocompleteItems=e.autocompleteItems,this.dragZone=e.dragZone}}var m=n(57826);let g=(()=>{class e{parseFromJson(e){if(!e)throw new Error("JSON is empty");return this.parseModel(e)}parseModel(e){switch(e.modelType){case"formgroup":return this.parseGroup(e);case"fieldset":return this.parseFieldSet(e);case"input":return this.parseInput(e);case"dropdown":return this.parseDropdown(e);case"checkbox":return this.parseCheckbox(e);case"radiogroup":return this.parseRadioGroup(e);case"toggle":return this.parseToggle(e);case"textarea":return this.parseTextarea(e);case"multi-select":return this.parseMultiSelect(e);case"chips":return this.parseChips(e);default:throw Error(`Unable to parse from JSON. Type not supported: ${e.modelType}`)}}parseGroup(e){return new i.f({id:e.id,elements:this.parseElements(e.elements),validator:e.validator,asyncValidator:e.asyncValidator,errorMessages:e.errorMessages,layoutClass:e.layoutClass})}parseFieldSet(e){return new l.R({id:e.id,elements:this.parseElements(e.elements),legend:e.legend,legendClass:e.legendClass,errorMessages:e.errorMessages,layoutClass:e.layoutClass})}parseElements(e){let t={};return e&&Object.keys(e).forEach((n=>t[n]=this.parseModel(e[n]))),t}parseInput(e){let t=this.parseFormFieldConfig(e);return t.type=e.type,t.readonly=e.readonly,t.focused=e.focused,t.min=e.min,t.max=e.max,t.hint=e.hint,t.mask=e.mask,t.onlyNumber=e.onlyNumber||void 0,new r.b(t)}parseCheckbox(e){let t=this.parseFormFieldConfig(e);return t.checked=e.checked,new o.H(t)}parseDropdown(e){let t=this.parseFormFieldConfig(e);return t.dropdownType=e.dropdownType,t.options=e.options,t.displayProperty=e.displayProperty,t.valueProperty=e.valueProperty,t.iconClassProperty=e.iconClassProperty,t.typeahead=e.typeahead||void 0,t.optionFilterSubject$=e.optionFilterSubject$||void 0,new a.k(t)}parseRadioGroup(e){let t=this.parseFormFieldConfig(e);return t.name=e.name,t.options=e.options,new c(t)}parseToggle(e){let t=this.parseFormFieldConfig(e);return new d(t)}parseTextarea(e){let t=this.parseFormFieldConfig(e);return new u.d(t)}parseMultiSelect(e){let t=this.parseFormFieldConfig(e);return t.config=e.config,t.options=e.options,new p(t)}parseChips(e){let t=this.parseFormFieldConfig(e);return t.modelType=e.modelType,t.errorMessages=e.errorMessages,t.onAdding=e.onAdding,t.placeholder=e.placeholder,t.dropdown=e.dropdown,t.autoCompleteItems=e.autoCompleteItems,new h(t)}parseFormFieldConfig(e){return{id:e.id,label:e.label,value:e.value,disabled:e.disabled,validators:e.validators,asyncValidators:e.asyncValidators,errorMessages:e.errorMessages,layoutClass:e.layoutClass}}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=m["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},30346:(e,t,n)=>{"use strict";n.d(t,{C:()=>r,R:()=>o});var i=n(57826);const r=new i.InjectionToken("bxValidators"),o=new i.InjectionToken("bxAsyncValidators")},76693:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var i=n(41759);let r=(()=>{class e{static validDatetime(t){return t.value?e.resolveMoment(t.value,e.DATETIME_PATTERN).isValid()?null:{validDatetime:!0}:null}static validFormattedDate(t,n){const i=t?e.HTML5_DATE_PATTERN:e.DATE_PATTERN;return t=>e.isValidDate(t.value,n||i)}static isValidDate(t,n){return t?e.resolveMoment(t,n).isValid()?null:{validDate:!0}:null}static validPeriod(t,n){return i=>{let r=e.resolveMoment(i.controls[t].value,e.DATETIME_PATTERN),o=e.resolveMoment(i.controls[n].value,e.DATETIME_PATTERN);return r.isValid()&&o.isValid()&&!r.isBefore(o)?{validPeriod:!0}:null}}static validPeriodISO(e,t){return n=>{let r=(0,i.Z)(n.controls[e].value),o=(0,i.Z)(n.controls[t].value);return r.isValid()&&o.isValid()&&!r.isBefore(o)?{validPeriod:!0}:null}}static formattedAge(t,n,i){const r=n?e.HTML5_DATE_PATTERN:e.DATE_PATTERN;return o=>e.validFormattedDate(n,i)(o)?null:e.isOverAge(o.value,i||r,t)}static isOverAge(e,t,n){if(""===e)return null;let i=new Date(this.unifyDateFormat(e,t));return new Date(i.getFullYear()+n,i.getMonth(),i.getDate())>=new Date?{age:null}:null}static resolveMoment(e,t){return i.Z.utc(e,t,!0)}static unifyDateFormat(e,t){const n=e.split("-");let i;switch(t){case"YYYY-MM-DD":i=e;break;case"MM-DD-YYYY":i=`${n[2]}-${n[0]}-${n[1]}`;break;case"DD-MM-YYYY":i=`${n[2]}-${n[1]}-${n[0]}`}return i}}return e.DATETIME_PATTERN="MM-DD-YYYY HH:mm",e.DATE_PATTERN="MM-DD-YYYY",e.HTML5_DATE_PATTERN="YYYY-MM-DD",e})()},56479:(e,t,n)=>{"use strict";n.d(t,{V:()=>v});var i=n(64762),r=n(69703),o=n(35294),a=n(32711),s=n(91184),c=n(25858),l=n(30063),d=n(57826);class u{constructor(e,t,n,i){this.notificationsStore=e,this.playerUpdatesService=t,this.notificationEnabledService=n,this.appStateStore=i,(0,a.U5)((()=>this.appStateStore.loginState),(e=>{e?(this.notificationReaction(),this.subscribeToMessages()):(this.notificationsDispose(),this.unsubscribeToMessages(),(0,a.z)((()=>{this.unreadMessages=void 0,this.unreadNotifications=void 0})))}),{fireImmediately:!0})}notificationReaction(){this.notificationEnabledService.isNotificationEnabled()?this.notificationDisposer=(0,a.EH)((()=>{if(this.notificationsStore.isDone){let e=this.notificationsStore.notifications.filter((e=>0==e.acknowledged)).length;(0,a.z)((()=>{this.unreadNotifications=e}))}else this.notificationsStore.isError&&(0,a.z)((()=>{this.unreadNotifications=this.unreadNotifications||0}))})):(0,a.z)((()=>{this.unreadNotifications=0}))}subscribeToMessages(){this.messagesSubscription=this.playerUpdatesService.getUpdates().subscribe((e=>{e.hasValue&&e.value.numberOfMessages!=this.unreadMessages?(0,a.z)((()=>{this.unreadMessages=e.value.numberOfMessages})):(0,a.z)((()=>{this.unreadMessages=this.unreadMessages||0}))}))}unsubscribeToMessages(){this.messagesSubscription&&!this.messagesSubscription.closed&&(this.messagesSubscription.unsubscribe(),this.messagesSubscription=void 0)}notificationsDispose(){this.notificationDisposer&&(this.notificationDisposer(),this.notificationDisposer=void 0)}get unreadCommunications(){return void 0===this.unreadMessages||void 0===this.unreadNotifications?void 0:this.unreadMessages+this.unreadNotifications}}u.ɵfac=function(e){return new(e||u)(d["ɵɵinject"](c.p),d["ɵɵinject"](l.J),d["ɵɵinject"](r.j),d["ɵɵinject"](o.X))},u.ɵprov=d["ɵɵdefineInjectable"]({token:u,factory:u.ɵfac,providedIn:"root"}),(0,i.__decorate)([s.LO,(0,i.__metadata)("design:type",Number)],u.prototype,"unreadMessages",void 0),(0,i.__decorate)([s.LO,(0,i.__metadata)("design:type",Number)],u.prototype,"unreadNotifications",void 0),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],u.prototype,"notificationReaction",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],u.prototype,"subscribeToMessages",null),(0,i.__decorate)([s.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],u.prototype,"unreadCommunications",null);var p=n(6856);let h=(()=>{class e{constructor(){this.MAX_NUMBER_MESSAGES=9}transform(e){return e<=this.MAX_NUMBER_MESSAGES?e.toString():`${this.MAX_NUMBER_MESSAGES}+`}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=d["ɵɵdefinePipe"]({name:"bxCommunicationsCounterFormatter",type:e,pure:!0}),e})();function m(e,t){if(1&e&&(d["ɵɵelementStart"](0,"span",3),d["ɵɵtext"](1),d["ɵɵpipe"](2,"bxCommunicationsCounterFormatter"),d["ɵɵelementEnd"]()),2&e){const e=d["ɵɵnextContext"](2);d["ɵɵproperty"]("ngClass",e.backgroundStyle),d["ɵɵadvance"](1),d["ɵɵtextInterpolate"](d["ɵɵpipeBind1"](2,2,e.unreadCommunications))}}function g(e,t){1&e&&d["ɵɵelement"](0,"span",4)}function f(e,t){if(1&e&&(d["ɵɵelementContainerStart"](0),d["ɵɵtext"](1,"\n       "),d["ɵɵtemplate"](2,m,3,4,"span",1),d["ɵɵtext"](3,"\n       "),d["ɵɵtemplate"](4,g,1,0,"span",2),d["ɵɵtext"](5,"\n     "),d["ɵɵelementContainerEnd"]()),2&e){const e=d["ɵɵnextContext"]();d["ɵɵadvance"](2),d["ɵɵproperty"]("ngIf",e.unreadCommunications>0),d["ɵɵadvance"](2),d["ɵɵproperty"]("ngIf",0==e.unreadCommunications)}}let v=(()=>{class e{constructor(e){this.communicationsCounterStore=e,this.unreadCommunications=-1}getUnreadCommunications(){return this.unreadCommunications=this.communicationsCounterStore.unreadCommunications}}return e.ɵfac=function(t){return new(t||e)(d["ɵɵdirectiveInject"](u))},e.ɵcmp=d["ɵɵdefineComponent"]({type:e,selectors:[["bx-communications-counter"]],inputs:{backgroundStyle:"backgroundStyle"},decls:3,vars:1,consts:[[4,"mobxReaction"],["id","communications-counter","class","bubble-badge icon-bubble fixed",3,"ngClass",4,"ngIf"],["id","communications-counter",4,"ngIf"],["id","communications-counter",1,"bubble-badge","icon-bubble","fixed",3,"ngClass"],["id","communications-counter"]],template:function(e,t){1&e&&(d["ɵɵtext"](0,"\n     "),d["ɵɵtemplate"](1,f,6,2,"ng-container",0),d["ɵɵtext"](2,"\n    ")),2&e&&(d["ɵɵadvance"](1),d["ɵɵproperty"]("mobxReaction",t.getUnreadCommunications.bind(t)))},directives:[s.Hn,p.NgIf,p.NgClass],pipes:[h],encapsulation:2,changeDetection:0}),e})()},72855:(e,t,n)=>{"use strict";n.d(t,{k:()=>l});var i=n(6856),r=n(91184),o=n(83521),a=n(56479),s=n(94216),c=n(57826);let l=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c["ɵɵdefineNgModule"]({type:e,bootstrap:[a.V]}),e.ɵinj=c["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.nA,o.U,s.U]]}),e})()},22101:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},20718:(e,t,n)=>{"use strict";n.d(t,{m:()=>B});var i=n(57826),r=n(73753),o=n(69703),a=n(48083),s=n(57106),c=n(21368),l=n(45965),d=n(84860),u=n(30173),p=n(6856),h=n(65180),m=n(38473),g=n(86014),f=n(55183),v=n(62090),b=n(96940),y=n(45645);let C=(()=>{class e{transform(e){return e.replace(/<\/?[^>]+(>|$)/g,"").trim()}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i["ɵɵdefinePipe"]({name:"bxStripHtmlTags",type:e,pure:!0}),e})();function S(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",3),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"bx-player-message-detail",4),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("playerMessage",e.communicationSelected)}}function x(e,t){1&e&&(i["ɵɵtext"](0,"\n                    "),i["ɵɵelementStart"](1,"figure",11),i["ɵɵtext"](2,"\n                        "),i["ɵɵelement"](3,"i",12),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementStart"](5,"figcaption",13),i["ɵɵtext"](6,"messagesList.noResults"),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                "))}function w(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",22),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](4);i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("(",e.unacknowledgedCommunications,")\n                        ")}}function E(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span"),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"span",13),i["ɵɵtext"](3,"messagesList.table.caption"),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                        "),i["ɵɵtemplate"](5,w,2,1,"span",21),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",e.unacknowledgedCommunications>0)}}const I=function(e){return{tag:"textContent",label:e}};function P(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                        "),i["ɵɵelement"](1,"span",23),i["ɵɵtext"](2,"\n                    ")),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](1),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](1,I,e.allChecked?"multiSelect.deselectAll":"multiSelect.selectAll"))}}const T=function(e){return{"select-all":e}};function _(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",14),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"div",15),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementStart"](4,"div",16),i["ɵɵtext"](5,"\n                            "),i["ɵɵelementStart"](6,"input",17),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).switchToEditMode("ALL")})),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                            "),i["ɵɵelement"](8,"label",18),i["ɵɵtext"](9,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n\n                    "),i["ɵɵtemplate"](12,E,7,1,"span",19),i["ɵɵtext"](13,"\n\n                    "),i["ɵɵtemplate"](14,P,3,3,"ng-template",null,20,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](16,"\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵreference"](15),t=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](6,T,t.notificationEnabledService.isNotificationEnabled())),i["ɵɵadvance"](6),i["ɵɵpropertyInterpolate1"]("id","selectAll",t.keyId,""),i["ɵɵproperty"]("checked",t.allChecked),i["ɵɵadvance"](2),i["ɵɵpropertyInterpolate1"]("for","selectAll",t.keyId,""),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",!t.notificationEnabledService.isNotificationEnabled())("ngIfElse",e)}}function M(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",34),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"span",13),i["ɵɵtext"](3,"messagesList.notification.expiresOn"),i["ɵɵelementEnd"](),i["ɵɵtext"](4),i["ɵɵpipe"](5,"bxDate"),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵadvance"](4),i["ɵɵtextInterpolate1"](": ",i["ɵɵpipeBind2"](5,1,e.expiresAt,"MMM D, YYYY h:mm A"),"\n                            ")}}const O=function(e){return{"item-visited":e}},A=function(e){return{"bx-unacknowledged":e}};function k(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li"),i["ɵɵtext"](1,"\n                            "),i["ɵɵtemplate"](2,M,6,4,"div",26),i["ɵɵtext"](3,"\n                            "),i["ɵɵelementStart"](4,"div",27),i["ɵɵtext"](5,"\n                                "),i["ɵɵelementStart"](6,"input",28),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).$implicit,n=i["ɵɵnextContext"](3);return n.switchToEditMode(n.getCommunicationId(t))})),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                                "),i["ɵɵelement"](8,"label",18),i["ɵɵtext"](9,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n\n                            "),i["ɵɵelementStart"](11,"a",29),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).$implicit;return i["ɵɵnextContext"](3).selectCommunication(t)})),i["ɵɵtext"](12,"\n                                "),i["ɵɵelementStart"](13,"time",30),i["ɵɵtext"](14),i["ɵɵpipe"](15,"bxDate"),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                                "),i["ɵɵelementStart"](17,"h3",31),i["ɵɵtext"](18),i["ɵɵpipe"](19,"bxMonetaryAmountTag"),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n                                "),i["ɵɵelement"](21,"p",32),i["ɵɵpipe"](22,"bxTrustyHtml"),i["ɵɵpipe"](23,"bxDateTag"),i["ɵɵpipe"](24,"bxMonetaryAmountTag"),i["ɵɵpipe"](25,"bxStripHtmlTags"),i["ɵɵtext"](26,"\n                                "),i["ɵɵelement"](27,"i",33),i["ɵɵtext"](28,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](29,"\n                        "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=i["ɵɵnextContext"](3);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.expiresAt),i["ɵɵadvance"](4),i["ɵɵpropertyInterpolate"]("id",n.getCommunicationId(e)),i["ɵɵproperty"]("checked",e.selected),i["ɵɵadvance"](2),i["ɵɵpropertyInterpolate"]("for",n.getCommunicationId(e)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](22,O,e.acknowledged)),i["ɵɵadvance"](3),i["ɵɵtextInterpolate1"]("\n                                    ",i["ɵɵpipeBind2"](15,9,e.publishedAt,"mediumDate"),"\n                                "),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](24,A,!e.acknowledged)),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                                    ",i["ɵɵpipeBind1"](19,12,e.subject),"\n                                "),i["ɵɵadvance"](3),i["ɵɵproperty"]("innerHTML",i["ɵɵpipeBind1"](22,14,i["ɵɵpipeBind1"](23,16,i["ɵɵpipeBind1"](24,18,i["ɵɵpipeBind1"](25,20,e.content)))),i["ɵɵsanitizeHtml"])}}function j(e,t){if(1&e&&(i["ɵɵelementStart"](0,"ul",24),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,k,30,26,"li",25),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",e.communicationList)}}function N(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",37),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).deleteSelectedCommunications()})),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](1,I,e.deleteButtonText))}}function R(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",35),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,N,1,3,"button",36),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵclassProp"]("hide-communication-list-footer",!e.editMode),i["ɵɵproperty"]("ngClass",e.communicationList&&e.communicationList.length>0?"communication-list-footer-upper-line":""),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.editMode)}}const D=function(e,t){return{"bx-hidden":e,"resize-list-body":t}},L=function(e,t,n){return{"notification-enabled":e,"empty-notifications-list":t,"notification-list-ios-bottom-margin":n}};function F(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"section",5),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,x,9,0,"ng-template",null,6,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,_,17,8,"div",7),i["ɵɵtext"](6,"\n\n                "),i["ɵɵelementStart"](7,"div",8),i["ɵɵlistener"]("scrollEnds",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().scrollEnds.emit()})),i["ɵɵtext"](8,"\n                    "),i["ɵɵtemplate"](9,j,4,1,"ul",9),i["ɵɵtext"](10,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n\n                "),i["ɵɵtemplate"](12,R,4,4,"div",10),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵreference"](3),t=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](6,D,t.communicationSelected,t.editMode)),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.communicationList.length>0),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction3"](9,L,t.notificationEnabledService.isNotificationEnabled(),!t.communicationList||0===t.communicationList.length,"iOS"===t.deviceService.getOSVersion())),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.communicationList.length>0)("ngIfElse",e),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.editMode)}}let B=(()=>{class e{constructor(e,t,n,r,o,a,s,c){this.communicationListService=e,this.route=t,this.notificationEnabledService=n,this.communicationPlayerConfig=r,this.view=o,this.dialogService=a,this.siteConfigService=s,this.deviceService=c,this.scrollEnds=new i.EventEmitter,this.loadCommunications=new i.EventEmitter,this.deleteCommunications=new i.EventEmitter,this.acknowledgeCommunication=new i.EventEmitter,this.editMode=!1,this.selectedCounter=0,this.allChecked=!1}ngOnInit(){this.loadCommunications.emit(),this.deleteSelectedButtonText="messagesList.table.button.deleteSelected",this.deleteAllButtonText="messagesList.table.button.deleteAll",this.communicationSelectedChanged$=this.communicationListService.subscribeToCommunicationSelectedChanged().subscribe((e=>{this.communicationListService.communicationTabsVisibility(!1),this.communicationSelected=e})),this.deleteCommunications$=this.communicationListService.subscribeToDeleteCommunications().subscribe((e=>{e?this.communicationListService.showSuccessMessage(this.allChecked):this.communicationListService.showErrorMessage()}))}ngOnDestroy(){this.deleteCommunications$.unsubscribe(),this.communicationSelectedChanged$.unsubscribe()}ngOnChanges(e){const t=e.unacknowledgedCommunications;t&&t.previousValue&&t.currentValue!==t.previousValue&&this.resetAndReload()}switchToEditMode(e){if("ALL"===e){this.allChecked=!this.allChecked;for(let e of this.communicationList)e.selected=this.allChecked;this.selectedCounter=this.allChecked?this.communicationList.length:0}else for(let t of this.communicationList)e===this.getCommunicationId(t)&&(t.selected=!t.selected,this.selectedCounter+=t.selected?1:-1);this.checkAllSelected(),this.editMode=0!==this.selectedCounter}checkAllSelected(){this.selectedCounter!=this.communicationList.length?(this.allChecked=!1,this.deleteButtonText=this.deleteSelectedButtonText):(this.allChecked=!0,this.deleteButtonText=this.deleteAllButtonText)}deleteSelectedCommunications(){this.siteConfigService.isFeaturePresent(d.L.messageDeletionConfirmation)?this.dialogService.confirm(this.view,{headerText:"messagesList.delete.dialog.header",messageText:`messagesList.delete.dialog.${this.type}`,okText:"messagesList.delete.dialog.ok",cancelText:"messagesList.delete.dialog.cancel"}).subscribe((e=>{e&&this.removeCommunications()})):this.removeCommunications()}removeCommunications(){let e=[];for(let t of this.communicationList)t.selected&&e.push(this.getCommunicationId(t));this.deleteCommunications.emit(e),this.reset()}selectCommunication(e){this.editMode||(this.setCommunicationSelected(e),e.acknowledged||this.acknowledgeCommunication.emit(e))}setCommunicationSelected(e){this.communicationListService.notifyCommunicationSelectedChanged(e)}reset(){this.selectedCounter=0,this.editMode=!1,this.allChecked=!1}resetAndReload(){this.reset(),this.loadCommunications.emit()}getCommunicationId(e){return e[this.keyId]}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](a.j),i["ɵɵdirectiveInject"](r.ActivatedRoute),i["ɵɵdirectiveInject"](o.j),i["ɵɵdirectiveInject"](s.r),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](c.q),i["ɵɵdirectiveInject"](l.r),i["ɵɵdirectiveInject"](u.U))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-communication-list"]],inputs:{communicationList:"communicationList",unacknowledgedCommunications:"unacknowledgedCommunications",keyId:"keyId",type:"type"},outputs:{scrollEnds:"scrollEnds",loadCommunications:"loadCommunications",deleteCommunications:"deleteCommunications",acknowledgeCommunication:"acknowledgeCommunication"},features:[i["ɵɵNgOnChangesFeature"]],decls:8,vars:3,consts:[[1,"modal-body","main-section-communication-list",3,"ngClass"],["class","player-message-detail",4,"ngIf"],["class","bx-communications-list",3,"ngClass",4,"ngIf"],[1,"player-message-detail"],[3,"playerMessage"],[1,"bx-communications-list",3,"ngClass"],["noResults",""],["class","bx-header-communication-checkbox",3,"ngClass",4,"ngIf"],["bxScrollTracker","",1,"bx-table-container",3,"ngClass","scrollEnds"],["class","custom-menu primary check-list",4,"ngIf","ngIfElse"],["class","communication-list-footer",3,"hide-communication-list-footer","ngClass",4,"ngIf"],[1,"custom-notification","alert","info"],[1,"icon","icon-info"],[3,"bxTranslate"],[1,"bx-header-communication-checkbox",3,"ngClass"],[1,"bx-select-all-checkbox"],[1,"custom-checkbox","native-toggle","bx-communication-list-check"],["type","checkbox","role","checkbox",3,"checked","id","click"],[1,"no-text",3,"for"],[4,"ngIf","ngIfElse"],["selectAll",""],["class","bx-unacknowledged-count",4,"ngIf"],[1,"bx-unacknowledged-count"],[1,"select-all",3,"bxTranslate"],[1,"custom-menu","primary","check-list"],[4,"ngFor","ngForOf"],["class","bx-expires-date",4,"ngIf"],[1,"item-checkbox","custom-checkbox","native-toggle"],["type","checkbox","role","checkbox",3,"id","checked","click"],["href","javascript:void(null)",1,"item-link",3,"ngClass","click"],[1,"timestamp"],[1,"title",3,"ngClass"],[1,"preview",3,"innerHTML"],[1,"icon","icon-arrow-next"],[1,"bx-expires-date"],[1,"communication-list-footer",3,"ngClass"],["id","deleteButton","type","button","class","custom-cta primary",3,"bxTranslate","click",4,"ngIf"],["id","deleteButton","type","button",1,"custom-cta","primary",3,"bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"section",0),i["ɵɵtext"](2,"\n\n            "),i["ɵɵtemplate"](3,S,4,1,"div",1),i["ɵɵtext"](4,"\n\n            "),i["ɵɵtemplate"](5,F,14,13,"section",2),i["ɵɵtext"](6,"\n\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",t.communicationPlayerConfig.additionalClasses),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.communicationSelected),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!!t.communicationList))},directives:[p.NgClass,p.NgIf,h.E,m.I,g.P,p.NgForOf],pipes:[f.a,v.s,b.d,y.G,C],encapsulation:2}),e})()},48083:(e,t,n)=>{"use strict";n.d(t,{j:()=>l});var i=n(12596),r=n(72558),o=n(4309),a=n(42998),s=n(57106),c=n(57826);let l=(()=>{class e{constructor(e,t,n){this.translateService=e,this.communicationPlayerConfig=t,this.toastNotificationService=n,this.$communicationDeleted=new o.Subject,this.$communicationSelectedChanged=new o.Subject,this.$acknowledgeCommunicationNumberChanged=new o.BehaviorSubject(void 0),this.$communicationTabsVisibility=new o.Subject,this.publishNotification=e=>this.toastNotificationService.add(e,this.communicationPlayerConfig.messageOverlay?"messageOverlay":""),this.toErrorNotification=e=>this.toNotification("error",e)}showSuccessMessage(e){this.buildSuccessMessage(e).pipe((0,a.map)(this.toSuccessNotification())).subscribe((e=>this.publishNotification(e)))}showErrorMessage(){this.translateService.translate("messagesList.delete.error_message").pipe((0,a.map)(this.toErrorNotification)).subscribe((e=>this.publishNotification(e)))}notifyCommunicationDeleted(e){this.$communicationDeleted.next(e)}subscribeToDeleteCommunications(){return this.$communicationDeleted.asObservable()}notifyCommunicationSelectedChanged(e){this.$communicationSelectedChanged.next(e)}subscribeToCommunicationSelectedChanged(){return this.$communicationSelectedChanged.asObservable()}notifyUnacknowledgeCommunicationNumberChanged(e){this.$acknowledgeCommunicationNumberChanged.next(e)}subscribeToAcknowledgeCommunicationNumberChanged(){return this.$acknowledgeCommunicationNumberChanged.asObservable()}communicationTabsVisibilityObservable(){return this.$communicationTabsVisibility.asObservable()}communicationTabsVisibility(e){this.$communicationTabsVisibility.next(e)}toSuccessNotification(){return e=>this.toNotification("success",e)}buildSuccessMessage(e){let t=e?"messagesList.delete.success_all_message":"messagesList.delete.success_message";return this.translateService.translate(t)}toNotification(e,t){return{msg:t,modal:!0,type:e,timeout:3e3}}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](i.s),c["ɵɵinject"](s.r),c["ɵɵinject"](r.il))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},57106:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.messageOverlay=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},22715:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var i=n(81899),r=n(45965),o=n(57826);let a=(()=>{class e{constructor(e,t){this.windowService=e,this.siteConfigService=t}composeInvitationUrl(e){return e.forEach((e=>{this.containsInvitationMessage(e)&&(e.content=this.changeRelativeUrlToAbsoluteUrlInMessage(e.content))})),e}containsInvitationMessage(e){return e.topicCode&&"vipinvitation"===e.topicCode}changeRelativeUrlToAbsoluteUrlInMessage(e){const t=this.getBaseUrl(),n="/services/signup-service/v1/invitation/link/";return e.replace(n,`${t}${n}`)}getBaseUrl(){return`https://${this.siteConfigService.getSiteConfigProp("serviceSubDomain")}.${this.windowService.getHostnameWithoutWWW()}`}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.u),o["ɵɵinject"](r.r))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},51015:(e,t,n)=>{"use strict";n.d(t,{O:()=>u});var i=n(42998),r=n(53801),o=n(36849),a=n(48083),s=n(94708),c=n(22715),l=n(57826),d=n(20718);let u=(()=>{class e{constructor(e,t,n){this.messagesService=e,this.communicationListService=t,this.invitationMessagesPlayerService=n,this.loading=!1,this.currentScroll=new o.X(null)}ngOnInit(){this.numberOfMessagesSubscription$=this.getNumberOfMessages()}ngOnDestroy(){this.numberOfMessagesSubscription$.unsubscribe()}loadMessages(e){if(this.loading)return;this.loading=!0;let t={};this.currentScroll.next&&e&&(t.scroll=this.currentScroll.next),this.messagesService.getMessages(t).pipe((0,i.finalize)((()=>this.loading=!1))).subscribe((t=>{t.items=this.invitationMessagesPlayerService.composeInvitationUrl(t.items),this.messagesList&&this.currentScroll.next&&e?this.messagesList=this.messagesList.concat(t.items):this.messagesList=t.items,t.scroll&&(this.currentScroll=t.scroll)})),this.messagesService.getNumberOfMessages().subscribe()}onDeleteSelectedMessages(e){this.messagesService.bulkDeleteMessage(e).subscribe((()=>{this.loadMessages(),this.communicationListService.notifyCommunicationDeleted(!0)}),(()=>this.communicationListService.notifyCommunicationDeleted(!1)))}onAcknowledgeCommunication(e){this.messagesService.acknowledgeMessage(e.messageId).subscribe((()=>{e.acknowledged=!0,this.getNumberOfMessages()}))}onScrollEnds(){this.currentScroll&&this.currentScroll.next&&this.loadMessages(!0)}getNumberOfMessages(){return this.messagesService.getNumberOfMessages().subscribe((e=>{this.unacknowledgedCommunications&&e.numberOfMessages===this.unacknowledgedCommunications||(this.unacknowledgedCommunications=e.numberOfMessages,this.communicationListService.notifyUnacknowledgeCommunicationNumberChanged({number:this.unacknowledgedCommunications,communicationItemType:r.v0}))}))}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵdirectiveInject"](s.v),l["ɵɵdirectiveInject"](a.j),l["ɵɵdirectiveInject"](c.N))},e.ɵcmp=l["ɵɵdefineComponent"]({type:e,selectors:[["bx-messages-list"]],decls:4,vars:3,consts:[["keyId","messageId",3,"communicationList","unacknowledgedCommunications","type","deleteCommunications","loadCommunications","acknowledgeCommunication","scrollEnds"]],template:function(e,t){1&e&&(l["ɵɵtext"](0,"\n        "),l["ɵɵelementStart"](1,"bx-communication-list",0),l["ɵɵlistener"]("deleteCommunications",(function(e){return t.onDeleteSelectedMessages(e)}))("loadCommunications",(function(){return t.loadMessages()}))("acknowledgeCommunication",(function(e){return t.onAcknowledgeCommunication(e)}))("scrollEnds",(function(){return t.onScrollEnds()})),l["ɵɵtext"](2,"\n\n        "),l["ɵɵelementEnd"](),l["ɵɵtext"](3,"\n    ")),2&e&&(l["ɵɵadvance"](1),l["ɵɵproperty"]("communicationList",t.messagesList)("unacknowledgedCommunications",t.unacknowledgedCommunications)("type","message"))},directives:[d.m],encapsulation:2}),e})()},3539:(e,t,n)=>{"use strict";n.d(t,{O:()=>_});var i=n(6856),r=n(84704),o=n(89493),a=n(94708),s=n(22715),c=n(51015),l=n(14969),d=n(48083),u=n(73502),p=n(58892),h=n(34207),m=n(72558),g=n(8566),f=n(83521),v=n(69703),b=n(25858),y=n(42356),C=n(92753),S=n(94216),x=n(54634),w=n(21368),E=n(57826);let I=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=E["ɵɵdefineNgModule"]({type:e,bootstrap:[x.A]}),e.ɵinj=E["ɵɵdefineInjector"]({providers:[w.q],imports:[[r.a,i.CommonModule]]}),e})();var P=n(79346),T=n(93996);let _=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=E["ɵɵdefineNgModule"]({type:e,bootstrap:[c.O,l.Z]}),e.ɵinj=E["ɵɵdefineInjector"]({providers:[d.j,v.j,a.v,s.N,b.p],imports:[[i.CommonModule,r.a,u.D,o.E,p.I,h.$,m.PQ,g.B,f.U,y.M,C.v,S.U,I,P.C,T.M]]}),e})()},94708:(e,t,n)=>{"use strict";n.d(t,{v:()=>h});var i=n(23550),r=n(4309),o=n(42998);class a{constructor(e,t){this.acknowledged=e,this.deleted=t}}var s=n(53801),c=n(36849);class l{constructor(e,t){this.messageIds=e,this.messagePatch=t}}class d{constructor(e){this.numberOfMessages=e}}var u=n(30063),p=n(57826);let h=(()=>{class e extends class{constructor(e){this.http=e}toHttpParams(e){return new i.HttpParams({fromObject:e})}getMessages(e,t){return this.getMessagesRequest$||(this.getMessagesRequest$=this.http.get(this.getUrl(t),{withCredentials:!0,params:this.toHttpParams(e)}).pipe((0,o.map)((e=>{let t,n;return t=e.items?s.v0.unserializeCollection(e.items):[],n=e.scroll&&e.scroll.next?new c.X(e.scroll.next):new c.X(null),new c.T(t,n)})),(0,o.finalize)((()=>{this.getMessagesRequest$=null})),(0,o.share)())),this.getMessagesRequest$}deleteMessage(e,t){return this.http.patch(this.getDeleteUrl(e,t),new a(void 0,!0),{withCredentials:!0})}}{constructor(e,t){super(e),this.http=e,this.playerUpdatesService=t,this.BASE_URL="/services/messages/v1/profiles/<sessionId>/player-messages",this.ACKNOWLEDGE_URL=this.BASE_URL+"/{messageId}",this.DELETE_URL=this.ACKNOWLEDGE_URL}getNumberOfMessages(){return this.getNumberOfMessagesMaterialized().pipe((0,o.filter)((e=>e.hasValue)),(0,o.dematerialize)(),(0,o.map)((e=>new d(e))))}getNumberOfMessagesMaterialized(){return this.playerUpdatesService.getUpdates().pipe((0,o.map)((e=>e.hasValue?r.Notification.createNext(e.value.numberOfMessages):r.Notification.createError(e.error))))}acknowledgeMessage(e){return this.http.patch(this.getAcknowledgeUrl(e),new a(!0),{withCredentials:!0})}bulkDeleteMessage(e){let t=new l;return t.messageIds=e,t.messagePatch=new a(void 0,!0),this.http.patch(this.getUrl(),t,{withCredentials:!0})}getAcknowledgeUrl(e){return this.ACKNOWLEDGE_URL.replace("{messageId}",e)}getUrl(){return this.BASE_URL}getDeleteUrl(e){return this.DELETE_URL.replace("{messageId}",e)}}return e.ɵfac=function(t){return new(t||e)(p["ɵɵinject"](i.HttpClient),p["ɵɵinject"](u.J))},e.ɵprov=p["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},14969:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(20380),r=n(1776),o=n(32711),a=n(48083),s=n(42998),c=n(57826),l=n(20718);let d=(()=>{class e{constructor(e,t){this.notificationsStore=e,this.communicationListService=t}ngOnInit(){this.setMapReaction()}onAcknowledgeCommunication(e){this.notificationsStore.setNotificationAsRead(e.notificationId)}onDeleteSelectedNotifications(e){this.notificationsStore.deleteNotifications(e).pipe((0,s.take)(1)).subscribe((e=>{this.communicationListService.notifyCommunicationDeleted(e)}))}setMapReaction(){(0,o.EH)((()=>{this.notificationsStore.notifications&&this.notificationsStore.isDone&&(this.playerNotifications=this.notificationsStore.notifications.map((e=>({notificationId:e.notificationId,displayed:e.displayed,acknowledged:e.acknowledged,publishedAt:e.createdAt.toString(),deleted:e.deleted,subject:e.content.subject,content:e.content.message.body,ctaLabel:e.content.message.label,url:e.content.message.url,expiresAt:e.expiresAt.toString()}))),this.setUnacknowledgedCommunications())}))}setUnacknowledgedCommunications(){this.unacknowledgedCommunications=this.playerNotifications.filter((e=>!e.acknowledged)).length,this.communicationListService.notifyUnacknowledgeCommunicationNumberChanged({number:this.unacknowledgedCommunications,communicationItemType:i.e})}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵdirectiveInject"](r.s),c["ɵɵdirectiveInject"](a.j))},e.ɵcmp=c["ɵɵdefineComponent"]({type:e,selectors:[["bx-notification-list"]],decls:4,vars:3,consts:[["keyId","notificationId",3,"communicationList","unacknowledgedCommunications","type","deleteCommunications","acknowledgeCommunication"]],template:function(e,t){1&e&&(c["ɵɵtext"](0,"\n        "),c["ɵɵelementStart"](1,"bx-communication-list",0),c["ɵɵlistener"]("deleteCommunications",(function(e){return t.onDeleteSelectedNotifications(e)}))("acknowledgeCommunication",(function(e){return t.onAcknowledgeCommunication(e)})),c["ɵɵtext"](2,"\n        "),c["ɵɵelementEnd"](),c["ɵɵtext"](3,"\n    ")),2&e&&(c["ɵɵadvance"](1),c["ɵɵproperty"]("communicationList",t.playerNotifications)("unacknowledgedCommunications",t.unacknowledgedCommunications)("type","notification"))},directives:[l.m],encapsulation:2}),e})()},65180:(e,t,n)=>{"use strict";n.d(t,{E:()=>g});var i=n(57106),r=n(57826),o=n(6856),a=n(86014),s=n(62090),c=n(55183),l=n(96940),d=n(45645);function u(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",8),r["ɵɵtext"](1,"\n                    "),r["ɵɵelementStart"](2,"span",9),r["ɵɵtext"](3,"messagesList.notification.expiresOn"),r["ɵɵelementEnd"](),r["ɵɵtext"](4),r["ɵɵpipe"](5,"bxDate"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵadvance"](4),r["ɵɵtextInterpolate1"](": ",r["ɵɵpipeBind2"](5,1,e.expiresAt,"MMM D, YYYY h:mm A"),"\n                ")}}function p(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",10),r["ɵɵtext"](1,"\n                    "),r["ɵɵelementStart"](2,"button",11),r["ɵɵtext"](3),r["ɵɵelementEnd"](),r["ɵɵtext"](4,"\n                "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵpropertyInterpolate"]("href",e.url,r["ɵɵsanitizeUrl"]),r["ɵɵadvance"](3),r["ɵɵtextInterpolate1"]("\n                        ",e.ctaLabel,"\n                    ")}}function h(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",5),r["ɵɵtext"](1,"\n                "),r["ɵɵtemplate"](2,u,6,4,"div",6),r["ɵɵtext"](3,"\n                "),r["ɵɵtemplate"](4,p,5,2,"a",7),r["ɵɵtext"](5,"\n            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.expiresAt),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.url&&e.ctaLabel)}}const m=function(e){return[e]};let g=(()=>{class e{constructor(e){this.playerMessageConfig=e}ngOnInit(){({ctaLabel:this.ctaLabel,url:this.url,expiresAt:this.expiresAt}=this.playerMessage||{})}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.r))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-player-message-detail"]],inputs:{playerMessage:"playerMessage"},decls:20,vars:18,consts:[[1,"playerMessageDetail","modal-large"],["role","heading",3,"ngClass"],[1,"bx-message-date"],[1,"custom-textarea",3,"innerHTML"],["class","bx-notification-cta-section",4,"ngIf"],[1,"bx-notification-cta-section"],["class","bx-expires-date",4,"ngIf"],[3,"href",4,"ngIf"],[1,"bx-expires-date"],[3,"bxTranslate"],[3,"href"],["type","button",1,"custom-cta","primary"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n\n        "),r["ɵɵelementStart"](1,"div",0),r["ɵɵtext"](2,"\n            "),r["ɵɵelementStart"](3,"h3",1),r["ɵɵtext"](4),r["ɵɵpipe"](5,"bxMonetaryAmountTag"),r["ɵɵelementEnd"](),r["ɵɵtext"](6,"\n            "),r["ɵɵelementStart"](7,"div",2),r["ɵɵtext"](8),r["ɵɵpipe"](9,"bxDate"),r["ɵɵelementEnd"](),r["ɵɵtext"](10,"\n            "),r["ɵɵelementStart"](11,"div",3),r["ɵɵpipe"](12,"bxTrustyHtml"),r["ɵɵpipe"](13,"bxDateTag"),r["ɵɵpipe"](14,"bxMonetaryAmountTag"),r["ɵɵtext"](15,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](16,"\n            "),r["ɵɵtemplate"](17,h,6,2,"div",4),r["ɵɵtext"](18,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](19,"\n    ")),2&e&&(r["ɵɵadvance"](3),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](16,m,t.playerMessageConfig.detailHeadingStyle||"h3-heading")),r["ɵɵadvance"](1),r["ɵɵtextInterpolate1"]("\n               ",r["ɵɵpipeBind1"](5,5,t.playerMessage.subject),"\n            "),r["ɵɵadvance"](4),r["ɵɵtextInterpolate1"]("",r["ɵɵpipeBind2"](9,7,t.playerMessage.publishedAt,"mediumDate"),"\n            "),r["ɵɵadvance"](3),r["ɵɵproperty"]("innerHTML",r["ɵɵpipeBind1"](12,10,r["ɵɵpipeBind1"](13,12,r["ɵɵpipeBind1"](14,14,t.playerMessage.content))),r["ɵɵsanitizeHtml"]),r["ɵɵadvance"](6),r["ɵɵproperty"]("ngIf",t.url&&t.ctaLabel||t.expiresAt))},directives:[o.NgClass,o.NgIf,a.P],pipes:[s.s,c.a,l.d,d.G],styles:[".custom-textarea[_ngcontent-%COMP%]     b {\n  font-weight: bold; }\n\n.custom-textarea[_ngcontent-%COMP%]     i {\n  font-style: italic; }\n\n.bx-message-date[_ngcontent-%COMP%] {\n  margin-bottom: 10px;\n  margin-top: 5px; }"]}),e})()},94216:(e,t,n)=>{"use strict";n.d(t,{U:()=>o});var i=n(30063),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.J]}),e})()},30063:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var i=n(4309),r=n(42998),o=n(23550),a=n(57826);let s=(()=>{class e{constructor(t){this.http=t,this.URL="/services/messages/v1/profiles/<sessionId>/player-updates",this.getUpdatesUrl=e=>e?this.URL+`?updatedAfter=${e.toISOString()}`:this.URL,this.value$=new i.BehaviorSubject(void 0),this.timerUpdates$=(0,i.timer)(0,e.POLLING_INTERVAL_MILLISECONDS).pipe((0,r.switchMap)((()=>this.fetchUpdatesAsRxEvents())),(0,r.tap)((e=>this.value$.next(e))))}init(){this.lastUpdate=void 0}getUpdates(){return 0==this.value$.observers.length?(this.stopTimer(),this.timerSubscription=this.timerUpdates$.subscribe()):this.fetchUpdatesAsRxEvents().pipe((0,r.tap)((e=>this.value$.next(e)))),this.value$.pipe((0,r.filter)((e=>void 0!==e)),(0,r.finalize)((()=>{this.stopTimer()})),(0,r.share)())}fetchUpdatesAsRxEvents(){return this.fetchPlayerUpdates().pipe((0,r.map)((e=>i.Notification.createNext(e))),(0,r.catchError)((e=>(0,i.of)(i.Notification.createError(e)))))}fetchPlayerUpdates(){return this.http.get(this.getUpdatesUrl(this.lastUpdate),{withCredentials:!0,observe:"response"}).pipe((0,r.map)((e=>(this.lastUpdate=new Date(e.headers.get("date")),e.body))))}stopTimer(){this.timerSubscription&&!this.timerSubscription.closed&&this.timerSubscription.unsubscribe()}}return e.POLLING_INTERVAL_MILLISECONDS=6e4,e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](o.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},53801:(e,t,n)=>{"use strict";n.d(t,{v0:()=>r});var i=n(97458);class r extends i.g{static unserialize(e){let t=new r;return t.messageId=e.messageId,t.profileId=e.profileId,t.type=e.type,t.status=e.status,t.acknowledged=e.acknowledged,t.deleted=e.deleted,t.topicCode=e.topicCode,t.subject=e.subject,t.content=e.content,t.internalContent=e.internalContent,t.createdBy=e.createdBy,t.createdAt=e.createdAt,t.updatedAt=e.updatedAt,t.publishedAt=e.publishedAt,t.priority=e.priority,t.sendEmail=e.sendEmail,t}static unserializeCollection(e){return e.map((e=>r.unserialize(e)))}}},36849:(e,t,n)=>{"use strict";n.d(t,{T:()=>r,X:()=>i});class i{constructor(e){this.next=e}}class r{constructor(e,t){this.items=e,this.scroll=t}}},97458:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});class i{}},65553:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var i=n(16462),r=n(42998),o=n(57826);let a=(()=>{class e{constructor(e){this.contentService=e,this.CONTENT_SECTION="homepage"}getNotification(e){let t=this.contentService.getContentBySlug(e,this.CONTENT_SECTION);return this.mapResponse(t)}mapResponse(e){let t={};return e.pipe((0,r.map)((e=>(e.fields&&(t={subject:e.fields.subject,message:{body:e.fields.message_body,url:e.fields.message_url,label:e.fields.message_url_label},popup:{image:e.fields.notification_image?e.fields.notification_image.url:void 0,body:e.fields.notification_body,url:e.fields.notification_url,label:e.fields.notification_url_label,tags:e.fields.tags}}),t))))}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i._))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},33262:(e,t,n)=>{"use strict";n.d(t,{T:()=>c});var i=n(4309),r=n(42998),o=n(30063),a=n(23550),s=n(57826);let c=(()=>{class e{constructor(e,t){this.http=e,this.playerUpdatesService=t,this.URL="/services/messages/v1/profiles/<sessionId>/player-notifications",this.patchNotificationUrl=e=>this.URL+"/"+e,this.deleteNotificationUrl=e=>this.URL+"?ids="+e.join(",")}init(){this.playerUpdatesService.init()}getNotificationsUpdates(){return this.playerUpdatesService.getUpdates().pipe((0,r.map)((e=>e.hasValue?i.Notification.createNext(this.mapNotificationsExpiresAt(e.value.notifications)):i.Notification.createError(e.error))))}deleteNotification(e){return this.http.delete(this.deleteNotificationUrl(e),{withCredentials:!0})}updateNotification(e,t){return this.patchNotification(e,t)}mapNotificationsExpiresAt(e){return e&&e.forEach((e=>e.expiresAt=new Date(e.expiresAt))),e}patchNotification(e,t){return this.http.patch(this.patchNotificationUrl(e),t,{withCredentials:!0})}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](a.HttpClient),s["ɵɵinject"](o.J))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},25858:(e,t,n)=>{"use strict";n.d(t,{p:()=>h});var i=n(64762),r=n(35294),o=n(84781),a=n(32711),s=n(91184),c=n(4309),l=n(42998),d=n(65553),u=n(33262),p=n(57826);class h extends o.d{constructor(e,t,n){super(),this.notificationsService=e,this.stateStore=t,this.notificationsContentService=n}init(){this.initNotifications(),this.setRefreshReaction(),this.setLoginStateReaction()}get notifications(){return this.notifs}deleteNotifications(e){const t=new c.Subject;return this.notificationsService.deleteNotification(e).pipe((0,l.take)(1)).subscribe((()=>{this.deleteStoreNotifications(e),t.next(!0)}),(()=>{t.next(!1),this.error()})),t}setNotificationAsRead(e){this.notifs.find((t=>t.notificationId===e&&!t.acknowledged))&&this.updateNotification(e,{acknowledged:!0})}setNotificationAsDisplayed(e){this.updateNotification(e,{displayed:!0})}initNotifications(){this.notifsSubs&&this.notifsSubs.unsubscribe(),this.notifs=[]}setLoginStateReaction(){(0,a.EH)((()=>{this.notificationsService.init(),this.stateStore.loginState?this.refresh():this.initNotifications()}))}setRefreshReaction(){(0,a.U5)((()=>this.mustRefresh),(()=>this.getNotifications()))}getNotifications(){this.notifsSubs=this.notificationsService.getNotificationsUpdates().subscribe((e=>{e.hasValue?(this.mergeNotifications(e.value),this.removeExpired()):e.error&&this.error()}))}removeExpired(){for(let e=this.notifs.length-1;e>=0;e--)this.isExpired(this.notifs[e])&&this.notifs.splice(e,1)}isExpired(e){return e.expiresAt&&e.expiresAt.getTime()<(new Date).getTime()}mergeNotifications(e){let t=0;e.forEach((e=>{let n=this.getIndexOfNotificationById(e.notificationId);n>-1?e.deleted?this.notifs.splice(n,1):(e.content=this.notifs[n].content,this.notifs[n]=e):e.deleted||(t++,this.notificationsContentService.getNotification(e.contentId).pipe((0,l.catchError)((()=>(0,c.of)({}))),(0,l.take)(1)).subscribe((n=>{n.subject&&(e.content=n,(0,a.z)((()=>{this.notifs.unshift(e)}))),t--,0==t&&((0,a.z)((()=>{this.notifs=this.notifs.sort(this.compareNotifications)})),this.done())})))})),0==t&&this.done()}compareNotifications(e,t){return new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()}getIndexOfNotificationById(e){for(let t=0;t<this.notifs.length;t+=1)if(this.notifs[t].notificationId===e)return t;return-1}deleteStoreNotifications(e){this.notifs=this.notifs.filter((t=>!e.includes(t.notificationId)))}updateNotification(e,t){this.notificationsService.updateNotification(e,t).pipe((0,l.take)(1)).subscribe((()=>{const n=this.getIndexOfNotificationById(e);n>-1&&(0,a.z)((()=>{Object.entries(t).forEach((e=>this.notifs[n][e[0]]=e[1]))}))}),(()=>{this.error()}))}}h.ɵfac=function(e){return new(e||h)(p["ɵɵinject"](u.T),p["ɵɵinject"](r.X),p["ɵɵinject"](d.w))},h.ɵprov=p["ɵɵdefineInjectable"]({token:h,factory:h.ɵfac}),(0,i.__decorate)([s.LO,(0,i.__metadata)("design:type",Array)],h.prototype,"notifs",void 0),(0,i.__decorate)([s.Fl,(0,i.__metadata)("design:type",Array),(0,i.__metadata)("design:paramtypes",[])],h.prototype,"notifications",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Array]),(0,i.__metadata)("design:returntype",c.Subject)],h.prototype,"deleteNotifications",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"setNotificationAsRead",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"setNotificationAsDisplayed",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"initNotifications",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"removeExpired",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Array]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"mergeNotifications",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Array]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"deleteStoreNotifications",null),(0,i.__decorate)([s.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String,class{}]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"updateNotification",null)},42356:(e,t,n)=>{"use strict";n.d(t,{M:()=>d});var i=n(91691),r=n(1776),o=n(65553),a=n(33262),s=n(25858),c=n(94216),l=n(57826);let d=(()=>{class e{static forRoot(){return{ngModule:e,providers:[s.p,{provide:r.s,useExisting:s.p}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l["ɵɵdefineNgModule"]({type:e}),e.ɵinj=l["ɵɵdefineInjector"]({providers:[o.w,a.T],imports:[[i.C.forRoot(),c.U]]}),e})()},20380:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var i=n(97458);class r extends i.g{}},87290:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var i=n(7171),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.e]}),e})()},7171:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var i=n(82846),r=n(45965),o=n(57826);let a=(()=>{class e{constructor(e,t){this.cookieService=e,this.configService=t}loyaltyEnabled(){return!!this.cookieService.get(e.LOYALTY_COOKIE)||this.configService.evalFeature(e.LOYALTY_FEATURE_FLAG_NAME)}}return e.LOYALTY_COOKIE="bxLoyalty",e.LOYALTY_FEATURE_FLAG_NAME="site.config.loyalty.enabled",e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.G),o["ɵɵinject"](r.r))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},58695:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});let i=(()=>{class e{}return e.DEFAULT={userIcon:{tierColorProperty:"background"}},e})()},26918:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},84825:(e,t,n)=>{"use strict";n.d(t,{Fz:()=>c,N:()=>a,VP:()=>d,WJ:()=>p,au:()=>s,mH:()=>l,pD:()=>u});var i=n(75826),r=n(41759);let o;function a(e,t){return t=t||"MMM DD, YYYY h:mm A z",r.Z.utc(e).tz("America/New_York").format(t)}function s(e,t=!1){let n=2;return t&&e>999999.99&&(n=0),i=e,r=(r=n)||0===r?r:2,""+o.transform(i.toFixed(r));var i,r}function c(e){return h((()=>e.tiersInfo[e.nextTierId]))}function l(e){return h((()=>{let t=function(e){return h((()=>e.tiersInfo[e.currentTierId]))}(e);return e.excluded?void 0:t.colour}))}function d(e){return h((()=>{let t=function(e){return h((()=>e.tiersInfo[e.previousTierId]))}(e);return e.excluded?void 0:t.colour}))}function u(e){return h((()=>{let t=c(e);return e.excluded?void 0:t.colour}))}function p(e,t=1){if(7===e.length){const n=255,i=255,r=255;let o=parseInt(e.substr(1,2),16),a=parseInt(e.substr(3,2),16),s=parseInt(e.substr(5,2),16);return o=Math.round(n+(o-n)*t),a=Math.round(i+(a-i)*t),s=Math.round(r+(s-r)*t),`rgb(${o}, ${a}, ${s})`}}function h(e){try{return e()}catch(e){return}}o=new i.t},74362:(e,t,n)=>{"use strict";n.d(t,{q:()=>c});var i=n(23550),r=n(48108),o=n(4309),a=n(42998),s=n(57826);let c=(()=>{class e{constructor(e,t){this.http=e,this.playersUrl="/services/loyalty-points/v1/players",this.playersUrlV2="/services/loyalty-points/v2/players",t.getLanguage().subscribe((e=>this.language=e))}getPlayerInfo(e){return this.url=this.playerInfoURL(),this.getPlayerDetails(e,!0)}unsubscribeToPlayerDetails(){this.playerDetailsSubscription$&&(this.playerDetailsSubscription$.unsubscribe(),this.playerDetailsSubscription$=void 0),this.playerInfoUpdates$&&(this.playerInfoUpdates$.unsubscribe(),this.playerInfoUpdates$=void 0),this.playerInfo$&&(this.playerInfo$=void 0)}getPlayerInfoForCM(e){return this.url=this.playerInfoURLForCM(e),this.getPlayerDetails()}getPlayerDetails(e,t){return this.playerInfoUpdates$||(this.playerInfoUpdates$=new o.ReplaySubject(1),t&&this.initPolling()),this.playerInfo$||(this.playerInfo$=this.fetchPlayerDetails().pipe((0,a.publishLast)(),(0,a.refCount)(),(0,a.finalize)((()=>{this.playerInfo$=null}))),this.playerInfo$.subscribe((()=>{}),(t=>{console.error(t),404==t.status&&this.playerInfoUpdates$.next([]),e&&e.theFunction&&e.theFunction.call(e.callerInstance)}))),this.playerInfoUpdates$}fetchPlayerDetails(){const e={withCredentials:!0,headers:{"X-LANGUAGE":this.language}};return this.http.get(this.url,e).pipe((0,a.map)((e=>{this.playerInfoUpdates$.next(e)})))}initPolling(){this.playerDetailsSubscription$=(0,o.interval)(e.POLLING_INTERVAL_MILLISECONDS).pipe((0,a.mergeMap)((()=>this.fetchPlayerDetails()))).subscribe((()=>{}))}redeemPoints(e){return this.http.post(this.redeemPointsURL(),e,{withCredentials:!0})}redeemPointsForCM(e,t){return this.http.post(this.redeemPointsURLForCM(t),e,{withCredentials:!0})}adjustPointsForCM(e,t){return this.http.put(this.adjustPointsURLForCM(t),e,{withCredentials:!0})}getLoyaltyExclusionV2(e){return this.http.get(this.exclusionV2URL(e),{withCredentials:!0})}updateLoyaltyExclusionV2(e,t){return this.http.put(this.exclusionV2URL(e),{exclusions:t},{withCredentials:!0})}isPlayerNotExcludedAndAvailableProgram(e){return e&&Object.keys(e).length>0&&!e.excluded}playerInfoURL(){return`${this.playersUrl}/<sessionId>/external`}playerInfoURLForCM(e){return`${this.playersUrl}/${e}/external`}exclusionV2URL(e){return`${this.playersUrlV2}/${e}/exclusion`}redeemPointsURL(){return`${this.playersUrl}/<sessionId>/redeem`}redeemPointsURLForCM(e){return`${this.playersUrl}/${e}/redeem`}adjustPointsURLForCM(e){return`${this.playersUrl}/${e}/adjustPoints`}}return e.POLLING_INTERVAL_MILLISECONDS=3e4,e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.HttpClient),s["ɵɵinject"](r.T))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},79560:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},65502:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var i=n(57826),r=(n(60725),n(89309)),o=n(58695),a=n(6856);let s=(()=>{class e{constructor(e,t){this.injector=t,this.loyaltyStore=e}ngOnInit(){this.loyaltyThemeConfig=this.injector.get(o.e,o.e.DEFAULT)}calculateColor(){let e={};return this.loyaltyStore.playerLoyaltyInfoAvailable&&this.loyaltyThemeConfig&&(e[this.loyaltyThemeConfig.userIcon.tierColorProperty]=this.loyaltyStore.currentTierColor),e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.r),i["ɵɵdirectiveInject"](i.Injector))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-loyalty-user-icon"]],decls:3,vars:1,consts:[[1,"icon","icon-user",3,"ngStyle"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelement"](1,"i",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngStyle",t.calculateColor()))},directives:[a.NgStyle],styles:["i[_ngcontent-%COMP%] {\n            border-radius: 50px;\n        }"]}),e})()},19799:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var i=n(6856),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({imports:[[i.CommonModule]]}),e})()},81869:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var i=n(74362),r=n(97963),o=n(57826);let a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({providers:[i.q,r.T]}),e})()},97963:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var i=n(68335),r=n(43431),o=n(42998),a=n(57826);let s=(()=>{class e{constructor(e,t){this.contentSectionService=e,this.cmsFeatureFlagService=t}getContentObservable(){return this.contentSectionService.getSectionBySlug("loyalty-redemption").pipe((0,o.map)((e=>this.cmsFeatureFlagService.isSectionEnabled("footer")?e.fields:{link:e.value})))}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.l),a["ɵɵinject"](r.u))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},60725:(e,t,n)=>{"use strict";n.d(t,{K:()=>m});var i=n(64762),r=n(41931),o=n(35294),a=(n(89309),n(84781)),s=n(32711),c=n(91184),l=n(4309),d=n(84825);class u{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m,g,f,v,b,y,C,S,x,w,E,I,P,T){this.programId=e,this.rewardName=t,this.excluded=n,this.tierPoints=i,this.criteriaPoints=r,this.redemptionPoints=o,this.redemptionAmount=a,this.redemptionPointsName=s,this.redemptionPointsToExpire=c,this.redemptionAmountToExpire=l,this.redemptionPointsToExpireDate=d,this.currencyCode=u,this.currentTierId=p,this.currentThreshold=h,this.nextTierId=m,this.nextThreshold=g,this.previousTierId=f,this.currentTierIndex=v,this.numTotalTiers=b,this.link=y,this.lastTierUpgradeDate=C,this.tiersInfo=S,this.limitReached=x,this.limitExpirationDate=w,this.playerSegment=E,this.pokerPointsRatio=I,this.minRedeemableAmount=P,this.maxRedeemableAmount=T}}var p=n(74362),h=n(57826);class m extends a.d{constructor(e,t,n){super(),this.pointsService=e,this.stateStore=t,this.playerChatMetadataService=n,this.initialised=!1,this.playerDetailsSubject=new l.ReplaySubject(1)}init(){this.initialised=!0,this.resetPlayerDetails(),this.setRefreshReaction(),this.setLoginStateReaction()}isInitialised(){return this.initialised}getPlayerDetails(){return this.playerDetailsSubject.asObservable()}get updatedPlayerDetails(){return this.playerDetails}get isVip(){let e=this.getCurrentTier();return!!e&&!!e.vip}get currentTierColor(){let e=this.getCurrentTier();return e?e.colour:""}get currentTierName(){let e=this.getCurrentTier();return e?e.name:""}get currentTierId(){return this.playerDetails?this.playerDetails.currentTierId:""}get playerLoyaltyInfoAvailable(){return this.playerDetails&&void 0!==this.playerDetails.excluded&&!this.playerDetails.excluded}get redemptionPoints(){return this.ifLoyaltyInfoAvailable((()=>this.playerDetails.redemptionPoints))}get formattedRedemptionPoints(){return this.ifLoyaltyInfoAvailable((()=>{let e=this.playerDetails.redemptionPoints;return e?e.toFixed(2):""}))}get formattedRedemptionAmount(){return this.ifLoyaltyInfoAvailable((()=>(0,d.au)(this.playerDetails.redemptionAmount)))}get programRewardName(){return this.getProgramRewardName(this.playerDetails)}get pokerPointsRatio(){return this.ifLoyaltyInfoAvailable((()=>this.playerDetails.pokerPointsRatio))}getProgramRewardName(e){return this.ifLoyaltyInfoAvailable((()=>e.redemptionPointsName||""))}setPlayerDetails(e){this.playerDetails=e}resetPlayerDetails(){this.pointsService.unsubscribeToPlayerDetails(),this.setPlayerDetails(void 0)}setRefreshReaction(){(0,s.U5)((()=>this.mustRefresh),(()=>{this.pointsService.getPlayerInfo().subscribe((e=>{this.playerDetails=e,this.playerChatMetadataService.onPlayerLoyaltyPointsUpdate(this.isVip,this.playerDetails.playerSegment),this.playerDetailsSubject.next(this.populateSubjectData(e)),this.done()}),(e=>this.error()))}))}populateSubjectData(e){return{programRewardName:this.getProgramRewardName(e)}}setLoginStateReaction(){(0,s.EH)((()=>{this.stateStore.loginState?this.refresh():this.resetPlayerDetails()}))}getCurrentTier(){if(this.playerDetails&&this.playerDetails.currentTierId&&this.playerDetails.tiersInfo&&!this.playerDetails.excluded)return this.playerDetails.tiersInfo[this.playerDetails.currentTierId]}ifLoyaltyInfoAvailable(e){return this.playerLoyaltyInfoAvailable?e.apply(this):void 0}}m.ɵfac=function(e){return new(e||m)(h["ɵɵinject"](p.q),h["ɵɵinject"](o.X),h["ɵɵinject"](r.w))},m.ɵprov=h["ɵɵdefineInjectable"]({token:m,factory:m.ɵfac}),(0,i.__decorate)([c.LO,(0,i.__metadata)("design:type",u)],m.prototype,"playerDetails",void 0),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",u),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"updatedPlayerDetails",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"isVip",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"currentTierColor",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"currentTierName",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"currentTierId",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"playerLoyaltyInfoAvailable",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"redemptionPoints",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"formattedRedemptionPoints",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"formattedRedemptionAmount",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"programRewardName",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"pokerPointsRatio",null),(0,i.__decorate)([c.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[u]),(0,i.__metadata)("design:returntype",void 0)],m.prototype,"setPlayerDetails",null)},32446:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var i=n(73753),r=n(6856),o=n(84704),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[o.a,i.RouterModule,r.CommonModule]]}),e})()},57223:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var i=n(84704),r=n(97815),o=n(57826);let a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({providers:[r.r],imports:[[i.a]]}),e})()},26090:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(6856),r=n(61556),o=n(32866),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.d,o.g]]}),e})()},91377:(e,t,n)=>{"use strict";n.d(t,{E:()=>f});var i=n(64762),r=n(57826),o=n(45965),a=n(84860),s=n(35294),c=n(32711),l=n(91184),d=n(4309),u=n(20151),p=n(92947),h=n(84781),m=n(42998),g=n(6856);class f extends h.d{constructor(e,t,n,i){super(),this.appState=e,this.siteConfigService=t,this.profileService=n,this.platformId=i,this.profileStatus=u.e.UNKNOWN,this.isDocumentVerificationEnabled=!1,this.setStatusFromResponse=e=>{e&&(this.setStatus(u.e[e.status]),this.done())},this.setStatusOnError=()=>{this.setStatus(u.e.UNKNOWN),this.error()}}init(){(0,g.isPlatformBrowser)(this.platformId)&&(this.isDocumentVerificationEnabled=this.siteConfigService.isFeaturePresent(a.L.documentVerification),this.isDocumentVerificationEnabled&&(this.setLoginStateReaction(),(0,c.U5)((()=>this.mustRefresh),(()=>this.initDocumentVerificationStatus())),this.startPolling(),this.initDocumentVerificationStatus()))}setLoginStateReaction(){(0,c.EH)((()=>{this.appState.loginState?this.refresh():this.setStatus(u.e.UNKNOWN)}))}initDocumentVerificationStatus(){this.profileService.getDocumentVerificationStatus().subscribe(this.setStatusFromResponse,this.setStatusOnError)}startPolling(){(0,d.interval)(f.POLLING_INTERVAL_MILLISECONDS).pipe((0,m.mergeMap)((()=>this.profileService.getDocumentVerificationStatus()))).subscribe(this.setStatusFromResponse,this.setStatusOnError)}get documentStatus(){return this.profileStatus}setStatus(e){this.profileStatus=e}}f.POLLING_INTERVAL_MILLISECONDS=3e4,f.ɵfac=function(e){return new(e||f)(r["ɵɵinject"](s.X),r["ɵɵinject"](o.r),r["ɵɵinject"](p.H),r["ɵɵinject"](r.PLATFORM_ID))},f.ɵprov=r["ɵɵdefineInjectable"]({token:f,factory:f.ɵfac}),(0,i.__decorate)([l.LO,(0,i.__metadata)("design:type",String)],f.prototype,"profileStatus",void 0),(0,i.__decorate)([l.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"documentStatus",null),(0,i.__decorate)([l.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String]),(0,i.__metadata)("design:returntype",void 0)],f.prototype,"setStatus",null)},32866:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var i=n(57826),r=n(91377),o=n(91691),a=n(61556);let s=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.E]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[o.C,a.d]]}),e})()},67864:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var i=n(73753),r=n(6856),o=n(84704),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[o.a,i.RouterModule,r.CommonModule]]}),e})()},53612:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var i=n(79611),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.k]}),e})()},79611:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var i=n(23550),r=n(4309),o=n(42998),a=n(57826);let s=(()=>{class e{constructor(e){this.http=e,this.forgotPinRequested$=new r.Subject}url(){return"/services/player-verification/v1/profiles/<sessionId>/verifications/PIN_CODE/request-reset"}requestForgotPin(){return this.forgotPinRequest||(this.forgotPinRequest=this.http.post(this.url(),null,{observe:"response"}).pipe((0,o.map)((e=>(this.forgotPinRequest=null,e.ok&&this.forgotPinRequested$.next(),null))),(0,o.catchError)((e=>(this.forgotPinRequest=null,(0,r.throwError)(e)))))),this.forgotPinRequest}getForgotPinRequested(){return this.forgotPinRequested$}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},69937:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var i=n(6856),r=n(61556),o=n(14867),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.d,o.b]]}),e})()},21111:(e,t,n)=>{"use strict";n.d(t,{G:()=>m});var i=n(64762),r=n(23550),o=n(55640),a=n(45965),s=n(35294),c=n(32711),l=n(91184),d=n(4309),u=n(37521),p=n(72243),h=n(57826);class m{constructor(e,t,n,i){this.httpService=e,this.appState=t,this.siteConfigService=n,this.browserStorageService=i,this.phoneStatus=u.k.UNKNOWN,this.timesUpdated=0,this.dataLoaded$=new d.ReplaySubject(null)}init(){this.isPhoneValidationEnabled=this.siteConfigService.getSiteConfigProp(m.PHONE_VALIDATION_ENABLED),this.isFourStopPhoneValidationEnabled=this.siteConfigService.getSiteConfigProp(m.PHONE_TYPE_VALIDATION_ENABLED),this.isPhoneValidationEnabled?(this.updatePhoneStatus(),(0,c.U5)((()=>this.appState.loginState),(()=>this.updatePhoneStatus()))):this.dataLoaded$.next(!0)}updatePhoneStatus(){this.appState.loginState?this.retrievePhoneStatusFromBackend():(this.phoneStatus=u.k.UNKNOWN,this.phoneTypeValid=void 0,this.incrementTimesUpdated())}retrievePhoneStatusFromBackend(){this.getPhoneStatus().subscribe((e=>{this.setStatus(e.status),this.setPhoneTypeValid(this.isPhoneTypeValid(e)),this.incrementTimesUpdated(),this.dataLoaded$.next(!0)}),(()=>{this.setStatus(u.k.UNKNOWN),this.setPhoneTypeValid(void 0),this.incrementTimesUpdated(),this.dataLoaded$.next(!1)}))}getPhoneStatus(){return this.httpService.get(m.CHECK_PHONE_STATUS_PATH,{withCredentials:!0})}setStatus(e){this.phoneStatus=e}setPhoneTypeValid(e){this.phoneTypeValid=e}incrementTimesUpdated(){this.timesUpdated++}updateToNotValidated(e,t){this.isPhoneValidationEnabled&&e.hasPhoneChanged()&&(this.setStatus(u.k.NOT_VALIDATED),this.incrementTimesUpdated(),t())}isPhoneTypeValid(e){const t=e.phoneProfilingStatus;if(!this.isFourStopPhoneValidationEnabled||"PENDING"!==t)return this.validateProfilingStatus(t);const n=this.browserStorageService.getAndRemove(m.PHONE_STATUS_KEY);return this.validateProfilingStatus(p.y[n])}validateProfilingStatus(e){return!e||e!==p.y.INVALID}}m.CHECK_PHONE_STATUS_PATH="/services/profile/v1/phone-status/profile/<sessionId>",m.PHONE_VALIDATION_ENABLED="phoneValidationEnabled",m.PHONE_TYPE_VALIDATION_ENABLED="phoneTypeValidationEnabled",m.PHONE_STATUS_KEY="phoneStatus",m.ɵfac=function(e){return new(e||m)(h["ɵɵinject"](r.HttpClient),h["ɵɵinject"](s.X),h["ɵɵinject"](a.r),h["ɵɵinject"](o.z))},m.ɵprov=h["ɵɵdefineInjectable"]({token:m,factory:m.ɵfac}),(0,i.__decorate)([l.LO,(0,i.__metadata)("design:type",String)],m.prototype,"phoneStatus",void 0),(0,i.__decorate)([l.LO,(0,i.__metadata)("design:type",Boolean)],m.prototype,"phoneTypeValid",void 0),(0,i.__decorate)([l.LO,(0,i.__metadata)("design:type",Number)],m.prototype,"timesUpdated",void 0),(0,i.__decorate)([l.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[String]),(0,i.__metadata)("design:returntype",void 0)],m.prototype,"setStatus",null),(0,i.__decorate)([l.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Boolean]),(0,i.__metadata)("design:returntype",void 0)],m.prototype,"setPhoneTypeValid",null),(0,i.__decorate)([l.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],m.prototype,"incrementTimesUpdated",null)},14867:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var i=n(57826),r=n(21111),o=n(91691),a=n(61556);let s=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.G]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[o.C,a.d]]}),e})()},72243:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var i=(()=>(function(e){e.VALID="VALID",e.INVALID="INVALID",e.PENDING="PENDING",e.ERROR="ERROR"}(i||(i={})),i))()},44236:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});var i=n(14867),r=n(97815),o=n(57826);let a=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.r]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({imports:[[i.b]]}),e})()},97815:(e,t,n)=>{"use strict";n.d(t,{r:()=>c});var i=n(45965),r=n(37521),o=n(21111),a=n(82846),s=n(57826);let c=(()=>{class e{constructor(t,n,i){this.cookieStorageService=t,this.phoneStatusStore=n,this.siteConfigService=i,this.phoneValidationsSections=this.siteConfigService.getSiteConfigProp(e.PHONE_VALIDATION_SECTIONS),this.phoneTypeValidationSections=this.siteConfigService.getSiteConfigProp(e.PHONE_TYPE_VALIDATION_SECTIONS)}shouldSectionBeBlockedByPhoneValidation(e){return this.isSectionBlockedByPhoneValidation(e)&&this.isPhoneNotValidated()}shouldSectionBeBlockedByPhoneTypeValidation(e){return(this.isSectionBlockedByPhoneTypeValidation(e)||this.isSectionBlockedByCookie(e))&&this.isPhoneTypeNotValid()}isPhoneNotValidated(){return this.phoneStatusStore.phoneStatus===r.k.NOT_VALIDATED}isPhoneTypeNotValid(){return!this.phoneStatusStore.phoneTypeValid}isSectionBlockedByPhoneValidation(e){return!e||this.phoneValidationsSections.indexOf(e)>-1}isSectionBlockedByPhoneTypeValidation(e){return!e||this.phoneTypeValidationSections.indexOf(e)>-1}isSectionBlockedByCookie(t){const n=this.cookieStorageService.get(e.PHONE_TYPE_VALIDATION_BLOCKED_SECTION_COOKIE);if(!n)return!1;const i=n.split(",");return!t||i.includes(t)}}return e.PHONE_TYPE_VALIDATION_BLOCKED_SECTION_COOKIE="PHONE_TYPE_VALIDATION_BLOCKED_SECTION_COOKIE",e.PHONE_VALIDATION_SECTIONS="phoneValidationSections",e.PHONE_TYPE_VALIDATION_SECTIONS="phoneTypeValidationSections",e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](a.G),s["ɵɵinject"](o.G),s["ɵɵinject"](i.r))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},70141:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var i=n(73753),r=n(6856),o=n(84704),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[o.a,i.RouterModule,r.CommonModule]]}),e})()},37307:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var i=n(73753),r=n(96299),o=n(45965),a=n(57826);let s=(()=>{class e{constructor(e,t,n){this.previewModeService=e,this.siteConfigService=t,this.router=n}canActivate(e,t){return!(!this.previewModeService.isPreviewMode()&&!this.siteConfigService.getSiteConfigProp("joinEnabled"))||this.router.parseUrl("/404")}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](r.q),a["ɵɵinject"](o.r),a["ɵɵinject"](i.Router))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},6969:(e,t,n)=>{"use strict";n.d(t,{H8:()=>h,Yc:()=>m});var i=n(92116),r=n(23550),o=n(55640),a=n(48108),s=n(45965),c=n(4309),l=n(42998),d=n(10599),u=n(18207),p=n(57826);let h=(()=>{class e{constructor(e,t,n,i){this.http=e,this.languageService=t,this.storageService=n,this.siteConfigService=i,this.sharingMethodMapping={rafcopy:"COPY",rafemail:"EMAIL",rafsms:"SMS"},this.signUpUrl="/api/v1/signup",this.registrationEvent$=new c.Subject,this.deferredEvent=new c.Subject,this.languageService.getLanguage().subscribe((e=>this.language=e))}createProfile(e){return e.attributes?e.attributes.language=this.language:e.attributes=new d.m(this.language),this.referralNotExpired()&&this.addReferralInfo(e),this.http.post(this.signUpUrl,e).pipe((0,l.tap)((e=>{e&&e.sessionId&&this.clearReferralInfo()})),(0,l.catchError)((e=>(0,u._)(e))))}getRegistrationEvent(){return this.registrationEvent$}publishRegistrationEvent(e){this.registrationEvent$.next(e)}sendDuplicatedEmailEvent(){this.deferredEvent.next(new g)}referralNotExpired(){let e=new Date(+this.storageService.get(i.zc)),t=+this.siteConfigService.getSiteConfigProp("myAffiliateTokenExpiration");return e.setDate(e.getDate()+t),e>=new Date}addReferralInfo(e){let t,n=this.storageService.get(i.EI),r=this.storageService.get(i.jj),o=this.storageService.get(i.HM);n&&(t=r&&r in this.sharingMethodMapping?this.sharingMethodMapping[r]:i.ln,e.referral={type:o,token:n,referredBySource:t});let a=this.storageService.get(i.F$);a&&(e.referral?e.referral.affiliateId=a:e.referral={affiliateId:a,type:o})}clearReferralInfo(){this.storageService.remove(i.EI),this.storageService.remove(i.jj),this.storageService.remove(i.HM),this.storageService.remove(i.F$),this.storageService.remove(i.zc)}}return e.ɵfac=function(t){return new(t||e)(p["ɵɵinject"](r.HttpClient),p["ɵɵinject"](a.T),p["ɵɵinject"](o.z),p["ɵɵinject"](s.r))},e.ɵprov=p["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class m{constructor(e,t){this.sessionId=e,this.postCFUrl=t}}class g{}},77194:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var i=n(6969),r=n(57826);let o=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.H8]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({}),e})()},76580:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.headerLevel2=!0}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},52149:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var i=n(23550),r=n(4309),o=n(42998),a=n(57826);let s=(()=>{class e{constructor(e){this.http=e}searchProfiles(e){return this.searchProfilesPaginated(e).pipe((0,o.map)((e=>e.items)))}searchProfileByProfileId(e){return this.http.get(this.getUrl(e)).pipe((0,o.catchError)(this.handlError))}handlError(e){return"404"==e.status?(0,r.of)({}):(0,r.throwError)(e)}getUrl(t){return e.SEARCH_URL+`/${t}`}searchProfilesPaginated(t,n={}){return this.http.get(e.SEARCH_URL,{withCredentials:!0,params:this.buildQueryParams(t,n)}).pipe((0,o.publishLast)(),(0,o.refCount)())}buildQueryParams(e,t){let n=new i.HttpParams;return n=this.fillQueryParamsWithObjectProperties(n,e),n=this.fillQueryParamsWithObjectProperties(n,t),n}fillQueryParamsWithObjectProperties(e,t){return Object.keys(t).forEach((n=>{const i=t[n];i&&(e=e.set(n,i))})),e}}return e.SEARCH_URL="/services/profile-search/v1/profiles",e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},1272:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},17505:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.headerLevel2=!0}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},92969:(e,t,n)=>{"use strict";n.d(t,{U:()=>h});var i=n(84704),r=n(36873),o=n(40475),a=n(39211),s=n(50536),c=n(8807),l=n(53612),d=n(80493),u=n(78357),p=n(57826);let h=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({providers:[d.a],imports:[[c.E,i.a,o.ReactiveFormsModule,r.U8,a.N,u.x,s.j,l.r]]}),e})()},80493:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var i=n(23550),r=n(4309),o=n(42998),a=n(57826);let s=(()=>{class e{constructor(e){this.http=e,this.verifyPinRequested$=new r.Subject}url(){return"/services/player-verification/v1/profiles/<sessionId>/verifications/verify"}verifyPin(e){return this.verifyPinRequest||(this.verifyPinRequest=this.http.put(this.url(),{operation:"profile_update",verificationType:"PIN_CODE",currentValue:e}).pipe((0,o.map)((t=>(this.verifyPinRequest=null,this.verifyPinRequested$.next(e),t))),(0,o.catchError)((e=>(this.verifyPinRequest=null,(0,r.throwError)(e)))))),this.verifyPinRequest}getVerifyPinRequested(){return this.verifyPinRequested$}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},24171:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(23550),r=n(4309),o=n(42998),a=n(83330),s=n(57826);let c=(()=>{class e{constructor(e){this.http=e,this.baseUrl="/ecomm/proxy-api/fraud"}getUrl(e,t){return`${this.baseUrl}/bxstatus/sites/${e}/profiles/${t}?_=${Date.now()}`}getFraudStatus(e,t){return this.http.get(this.getUrl(e,t),{headers:a.iq}).pipe((0,o.catchError)((()=>(0,r.of)("profileDetails.fraud.service.not.available"))))}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.HttpClient))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},21807:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var i=n(23550),r=n(4309),o=n(42998),a=n(83330),s=n(57826);let c=(()=>{class e{constructor(e){this.http=e,this.baseUrl="/ecomm/proxy-api/profiles"}getUrl(e){return`${this.baseUrl}/${e}/categories`}getPPCs(e){return this.http.get(this.getUrl(e),{headers:a.iq}).pipe((0,o.catchError)((()=>(0,r.of)("profileDetails.ppcs.service.not.available"))))}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.HttpClient))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},83330:(e,t,n)=>{"use strict";n.d(t,{EE:()=>r,iq:()=>i});const i=new(n(23550).HttpHeaders)({"Content-Type":"application/json",Authorization:"Basic cWEtZWNvbW0tbGludDpBclYzSDlHWTZRd1FXUk4="}),r="DUPLICATED_PHONE"},85898:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var i=n(30173),r=n(48108),o=n(45965),a=n(76693),s=n(42998);class c{constructor(e,t){this.pattern=e,this.mask=t}}var l=n(57826);const d=["-"];let u=(()=>{class e{constructor(e,t,n){this.defaultDateFormat=new c("MM-DD-YYYY",[/[0-1]/,/\d/,"-",/[0-3]/,/\d/,"-",/[1-2]/,/\d/,/\d/,/\d/]),this.zhHansDateFormat=new c("YYYY-MM-DD",[/[1-2]/,/\d/,/\d/,/\d/,"-",/[0-1]/,/\d/,"-",/[0-3]/,/\d/]),this.latamDateFormat=new c("DD-MM-YYYY",[/[0-3]/,/\d/,"-",/[0-1]/,/\d/,"-",/[1-2]/,/\d/,/\d/,/\d/]),this.customDateFormats={"zh-hans":this.zhHansDateFormat,es:this.latamDateFormat,pt:this.latamDateFormat},this.siteConfigDateFormat=this.generateSiteConfigDateFormat(n),this.dateFormat$=e.getLanguage().pipe((0,s.map)((e=>this.siteConfigDateFormat||this.customDateFormats[e]||this.defaultDateFormat))),t.isDesktop()?this.siteConfigDateFormat&&this.siteConfigDateFormat.pattern?this.datePattern=this.siteConfigDateFormat.pattern:this.dateFormat.subscribe((e=>this.datePattern=e.pattern)):this.datePattern=a.D.HTML5_DATE_PATTERN}get dateFormat(){return this.dateFormat$}getSiteConfigDateFormat(){return this.siteConfigDateFormat}parseDateToBackend(e){return a.D.resolveMoment(e,this.datePattern).toISOString()||""}parseDateFromBackend(e){return e?a.D.resolveMoment(e,"YYYY-MM-DD[T]HH:mm:ss[Z]").format(this.datePattern):""}generateSiteConfigDateFormat(e){let t=e.getSiteConfigProp("dateMask"),n=t?t.split(",").map((e=>e.trim())).map((e=>d.includes(e)?e:new RegExp(e))):[];return t&&0!==t.length?new c(e.getSiteConfigProp("dateFormat"),n):null}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](r.T),l["ɵɵinject"](i.U),l["ɵɵinject"](o.r))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},78357:(e,t,n)=>{"use strict";n.d(t,{x:()=>C});var i=n(6856),r=n(21807),o=n(79346),a=n(55640),s=n(28795),c=n(17443),l=n(23550),d=n(4309),u=n(42998);class p{constructor(e,t){this.playerGroup=e,this.lineGroup=t}}var h=n(57826);let m=(()=>{class e{constructor(e){this.http=e,this.sportsAccountsUrl="/services/sports-accounts",this.sportsAccountUrl=e=>`${this.sportsAccountsUrl}/external/${e}`}getPlayerSportsDetails(e){return this.http.get(this.sportsAccountUrl(e),{withCredentials:!0}).pipe((0,u.map)((e=>{let t=e.playerProfileGroup.description,n=e.lineDescription||e.playerProfileGroup.lineDescription;return new p(t,n)})),(0,u.catchError)((e=>404===e.status?(0,d.of)(new p):(0,d.throwError)(e))))}}return e.ɵfac=function(t){return new(t||e)(h["ɵɵinject"](l.HttpClient))},e.ɵprov=h["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var g=n(8807),f=n(85898);class v{constructor(e="",t=""){this.documentNumber=e,this.documentType=t}}let b=(()=>{class e{constructor(e){this.http=e,this.baseUrl="/services/ecomm/v1/private/api"}getUrl(e){return`${this.baseUrl}/security-profiles/${e}/security-document-info`}getSecurityDocumentInfo(e){return this.http.get(this.getUrl(e),{withCredentials:!0}).pipe((0,u.map)((e=>new v(e[0].documentNumber,e[0].documentType))),(0,u.catchError)((e=>404===e.status?(0,d.of)(new v):(0,d.throwError)(e))))}}return e.ɵfac=function(t){return new(t||e)(h["ɵɵinject"](l.HttpClient))},e.ɵprov=h["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var y=n(52149);let C=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=h["ɵɵdefineNgModule"]({type:e}),e.ɵinj=h["ɵɵdefineInjector"]({providers:[s.B,a.z,r.h,m,f.f,b,y.l],imports:[[i.CommonModule,g.E,c.S,o.C],i.CommonModule]}),e})()},92947:(e,t,n)=>{"use strict";n.d(t,{H:()=>p});var i=n(95556),r=n(98896),o=n(23550),a=n(4309),s=n(42998),c=n(65700),l=(()=>(function(e){e.ID_DOCUMENT="ID_DOCUMENT"}(l||(l={})),l))(),d=n(83330),u=n(57826);class p{constructor(e,t,n){this.httpClient=e,this.brandConfigurationService=t,this.sessionService=n,this.pinCodeUpdated$=new a.Subject}static documentVerificationStatusUrl(e){return`${this.PLAYER_ACCOUNT_DOCUMENT_VERIFICATION_STATUS_BASE_URL}${e}`}getProfileInfoUrl(e){return`${p.GET_PROFILE_INFO_URL}/${e}`}getUrl(e){return`${p.BASE_URL}/${e}`}getPatchSettingUrl(e){return`${p.PROFILE_PATCH_URL}/${e}`}getPlayerVerificationAccoutStatusUrl(e,t){return`${t&&"AGENT"===t?p.AGENT_ACCOUNT_STATUS_BASE_URL:p.PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL}/${e}/status`}getStatusUpdateUrl(e){return`${p.PROFILE_STATUS_UPDATE_URL}/${e}`}getAccountStatusByOperationUrl(e){return`/${p.PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL}/<sessionId>/operations/${e}/status`}getAccountDocumentVerificationStatus(e){let t=this.httpClient.get(p.documentVerificationStatusUrl(e),{params:{documentType:l[l.ID_DOCUMENT]}});return this.handleBackendResponse(t)}getDocumentVerificationStatus(){let e=this.httpClient.get(p.PLAYER_DOCUMENT_VERIFICATION_STATUS_BASE_URL,{params:{documentType:l[l.ID_DOCUMENT]}});return this.handleBackendResponse(e)}updateDocumentVerificationStatus(e,t){let n=this.httpClient.post(p.documentVerificationStatusUrl(e),t);return this.handleBackendResponse(n)}updateDocumentVerificationStatusToPending(){let e=this.httpClient.post(p.PLAYER_DOCUMENT_VERIFICATION_PENDING_UPDATE+"?documentType=ID_DOCUMENT",{});return this.handleBackendResponse(e)}getIdentityVerificationUrl(){let e=this.httpClient.get(p.GET_DOCUMENT_VERIFICATION_URL,{withCredentials:!0});return this.handleBackendResponse(e)}getProfileDetails(e){let t=this.httpClient.get(this.getProfileInfoUrl(e),{withCredentials:!0});return this.handleBackendResponse(t)}getProfileDetailsPlayer(){if(!this.profileDetailsPlayer$&&this.sessionService.isAuthenticated())this.profileDetailsPlayer$=this.httpClient.get(p.GET_PROFILE_INFO_PLAYER,{withCredentials:!0}).pipe((0,s.publishReplay)(1),(0,s.refCount)()).pipe((0,s.catchError)((e=>(0,a.throwError)(e.error||"Internal Server Error"))));else if(!this.sessionService.isAuthenticated())return(0,a.empty)();return this.profileDetailsPlayer$}cleanProfileDetailsPlayer(){this.profileDetailsPlayer$=null}getPinCodeUpdated(){return this.pinCodeUpdated$}patchProfile(e){return this.cleanProfileDetailsPlayer(),this.httpClient.put(p.PROFILE_PUT_URL,e,{withCredentials:!0,headers:new o.HttpHeaders({"X-MFA-OPERATION":"updateProfile"})})}updatePhoneNumber(e){return this.cleanProfileDetailsPlayer(),this.httpClient.patch(p.UPDATE_PHONE_NUMBER_URL,{phoneNumber:e},{withCredentials:!0}).pipe((0,s.catchError)(this.handleUpdatePhoneError))}handleUpdatePhoneError(e){let t=e.error;return 409===e.status&&t&&t.errorCode&&t.errorCode===d.EE?(0,a.throwError)(d.EE):(0,a.throwError)("Internal Server Error")}patchUsername(e){return this.cleanProfileDetailsPlayer(),this.httpClient.put(p.PROFILE_PUT_USERNAME_URL+e,null,{withCredentials:!0})}internalPatchProfile(e,t){return this.cleanProfileDetailsPlayer(),this.httpClient.patch(this.getPatchSettingUrl(e),t,{withCredentials:!0})}updateProfile(e){return this.cleanProfileDetailsPlayer(),this.httpClient.put(this.getUrl(e.profileId),e)}disableProfile(e){this.cleanProfileDetailsPlayer();let t=this.httpClient.delete(this.getUrl(e));return this.handleBackendResponse(t)}updateStatusAndCreateMessage(e,t){this.cleanProfileDetailsPlayer();let n=this.httpClient.put(this.getStatusUpdateUrl(e),t);return this.handleBackendResponse(n)}updatePinCode(e){return this.cleanProfileDetailsPlayer(),this.httpClient.put(p.SET_PIN_CODE_URL,{pinCode:e},{withCredentials:!0}).pipe((0,s.map)((()=>{this.pinCodeUpdated$.next()})))}isValidPinCode(e){return this.httpClient.post(p.VALID_PIN_CODE_URL,{pinCode:e},{withCredentials:!0}).pipe((0,s.map)((e=>e.valid)))}isValidPinCodeFromVerificationService(e,t,n){return this.isValidPinCodeFromVerificationServiceV2(t,n)}isValidPinCodeFromVerificationServiceV2(e,t){this.cleanProfileDetailsPlayer();let n=`${p.PUBLIC_PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL}/${p.SESSION_ID_PLACEHOLDER}/verifications/verify`;return this.httpClient.put(n,{operation:"cryptoWithdrawal",verificationType:"PIN_CODE",currentValue:e,metadata:{type:"ecomm",data:{method:t}}},{withCredentials:!0})}getAccountStatus(e,t){const n={status:"SERVICE_UNAVAILABLE"};return this.httpClient.get(this.getPlayerVerificationAccoutStatusUrl(e,t),{withCredentials:!0}).pipe((0,s.catchError)((()=>(0,a.of)(n))),(0,s.map)((e=>this.toAccountStatus(e))))}getAccountStatusByOperation(e){const t={status:"SERVICE_UNAVAILABLE"};return this.httpClient.get(this.getAccountStatusByOperationUrl(e)).pipe((0,s.catchError)((()=>(0,a.of)(t))))}getAgentSource(e,t){return this.brandConfigurationService.getBrandProperties(e).pipe((0,s.mergeMap)((e=>e&&e[p.CONFIG_SHOW_AGENT_SOURCE_KEY]&&"true"===e[p.CONFIG_SHOW_AGENT_SOURCE_KEY][0]?this.getAgentProfileId(t).pipe((0,s.concatMap)((e=>{let t=e.agent.parentProfileId;return this.getProfileDetails(t).pipe((0,s.map)((t=>({privileges:e.agent.privileges,profile:t}))))})),(0,s.catchError)((()=>(0,a.of)(null)))):(0,a.of)(null))))}getAgentProfileId(e){return this.httpClient.get(`${p.GET_AGENT_PARENT_PROFILE_URL}/${e}`,{withCredentials:!0,params:{withDetails:"false"}})}unblockAccount(e){return this.httpClient.delete(this.getPlayerVerificationAccoutStatusUrl(e),{withCredentials:!0})}toAccountStatus(e){return new c.dp(e.blockedUntil,e.status)}resolvePlayerName(e){let t=e.firstName||"",n=e.lastName||"",i=e.nickname||"",r=e.username||"",o=e.email||"";return`${t} ${n}`.trim()||i||r||o}handleBackendResponse(e){return e.pipe((0,s.catchError)((e=>(0,a.throwError)(e.error||"Internal Server Error"))))}}p.SESSION_ID_PLACEHOLDER="<sessionId>",p.GET_PROFILE_INFO_URL="/api/v1/profile-info",p.GET_PROFILE_INFO_PLAYER=p.GET_PROFILE_INFO_URL+"/"+p.SESSION_ID_PLACEHOLDER,p.BASE_URL="/api/v1/profiles",p.PROFILE_PLAYER=p.BASE_URL+"/"+p.SESSION_ID_PLACEHOLDER,p.PROFILE_PUT_URL="/services/web/v1/profiles/"+p.SESSION_ID_PLACEHOLDER,p.PROFILE_PUT_USERNAME_URL=p.PROFILE_PUT_URL+"/username/",p.SET_PIN_CODE_URL=p.PROFILE_PLAYER+"/pin-code",p.VALID_PIN_CODE_URL=p.PROFILE_PLAYER+"/valid-pin-code",p.PROFILE_PATCH_URL="/services/profile/v1/profiles",p.PROFILE_STATUS_UPDATE_URL="/services/internal/v1/profiles",p.UPDATE_PHONE_NUMBER_URL=p.BASE_URL+"/"+p.SESSION_ID_PLACEHOLDER+"/update-phone-number",p.PLAYER_ACCOUNT_DOCUMENT_VERIFICATION_STATUS_BASE_URL="/services/profile/v1/document-verification-status/profile/",p.PLAYER_DOCUMENT_VERIFICATION_STATUS_BASE_URL="/api/v1/document-verification-status/profile/"+p.SESSION_ID_PLACEHOLDER,p.PLAYER_DOCUMENT_VERIFICATION_PENDING_UPDATE="/api/v1/document-verification-status/profile/"+p.SESSION_ID_PLACEHOLDER+"/pending",p.GET_DOCUMENT_VERIFICATION_URL="/services/profile-profiling/v1/document-verification/profile/"+p.SESSION_ID_PLACEHOLDER+"/document-verification-url",p.PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL="services/player-verification/v1/profiles",p.AGENT_ACCOUNT_STATUS_BASE_URL="services/agent-account/v1/profiles",p.PUBLIC_PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL="/services/player-verification/v1/profiles",p.GET_AGENT_PARENT_PROFILE_URL="services/agent-profile/v1/agent",p.CONFIG_SHOW_AGENT_SOURCE_KEY="cm.config.profile_details.show_agent_source",p.ɵfac=function(e){return new(e||p)(u["ɵɵinject"](o.HttpClient),u["ɵɵinject"](r.b),u["ɵɵinject"](i.mj))},p.ɵprov=u["ɵɵdefineInjectable"]({token:p,factory:p.ɵfac,providedIn:"root"})},17443:(e,t,n)=>{"use strict";n.d(t,{S:()=>u});var i=n(92947),r=n(57264),o=n(24171),a=n(40829),s=n(4309),c=n(42998),l=n(57826);let d=(()=>{class e{constructor(e){this.profileService=e,this.refresh$=new s.BehaviorSubject(void 0),this.profileDetails$=this.refresh$.pipe((0,c.distinctUntilChanged)(),(0,c.switchMap)((e=>this.profileService.getProfileDetails(e))),(0,c.shareReplay)())}getProfileDetails(e){return this.refresh$.next(e),this.profileDetails$}}return e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](i.H))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),u=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.H,o.A,a.O,d]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l["ɵɵdefineNgModule"]({type:e}),e.ɵinj=l["ɵɵdefineInjector"]({imports:[[r.D]]}),e})()},616:(e,t,n)=>{"use strict";n.d(t,{s:()=>g});var i=n(64762),r=n(49994),o=n(41931),a=n(35294),s=n(84781),c=n(13493),l=n(32711),d=n(91184),u=n(4309);class p{constructor(e="",t="",n="",i="",r="",o="",a=[],s={countryCode:""},c={language:"",currency:"",time_zone:""},l="",d="",u="",p=[],h="",m=!1,g=!0,f,v,b,y,C,S,x,w,E,I,P,T,_,M,O,A,k,j=""){this.profileId=e,this.status=t,this.nickname=n,this.brandCode=i,this.email=r,this.username=o,this.phones=a,this.address=s,this.attributes=c,this.firstName=l,this.lastName=d,this.birthdate=u,this.tags=p,this.createdAt=h,this.hasPinCode=m,this.allowUpdate=g,this.subscriptionChannelsEnabled=f,this.subscriptionChannels=v,this.accountStatus=b,this.referral=y,this.accountNumber=C,this.fraudStatus=S,this.sportsDetails=x,this.parent=w,this.privileges=E,this.requiredActions=I,this.cryptoSurvey=P,this.phonePrefix=T,this.hostedPlayerInfo=_,this.pokerPointsRatioEnabled=M,this.features=O,this.personaId=A,this.personaLinkedAccounts=k,this.acceptsGifts=j}}var h=n(92947),m=n(57826);class g extends s.d{constructor(e,t,n,i,r){super(),this.profileService=e,this.currencyService=t,this.timezoneService=n,this.stateStore=i,this.playerChatMetadataService=r,this.profileSubject=new u.ReplaySubject(1)}init(){this.initProfile(),this.setRefreshReaction(),this.setTimezoneReaction(),this.setLoginStateReaction()}getProfile(){return this.profileSubject.asObservable()}get timezone(){return this.profile.attributes.time_zone}get language(){return this.profile.attributes.language}get currency(){return this.profile.attributes.currency}get currencySymbol(){return this.currencyService.getCurrencySymbol(this.currency)}get hasPinCode(){return this.profile.hasPinCode}get playerName(){return[this.profile.firstName,this.profile.lastName].filter(Boolean).join(" ")||this.profile.nickname||this.profile.username||this.profile.email}get countryCode(){return this.profile.address.countryCode}setProfile(e){this.profile=e}get personaLinkedAccounts(){return this.profile&&this.profile.personaLinkedAccounts?this.profile.personaLinkedAccounts.map((e=>e)):[]}get acceptsGifts(){return this.profile.acceptsGifts}initProfile(){this.profileSubscription&&this.profileSubscription.unsubscribe(),this.profileService.cleanProfileDetailsPlayer(),this.setProfile(new p)}setRefreshReaction(){(0,l.U5)((()=>this.mustRefresh),(()=>this.refreshProfile()))}refreshProfile(){this.profileService.cleanProfileDetailsPlayer(),this.profileSubscription=this.profileService.getProfileDetailsPlayer().subscribe((e=>{this.setProfile(e),this.done(),this.playerChatMetadataService.onPlayerProfileUpdated(this.profile),this.profileSubject.next(e)}),(()=>{this.error()}))}setTimezoneReaction(){(0,l.EH)((()=>{this.timezone&&this.timezoneService.setCurrentTimezone(this.timezone)}))}setLoginStateReaction(){(0,l.EH)((()=>{this.stateStore.loginState?this.refresh():this.initProfile()}))}}g.ɵfac=function(e){return new(e||g)(m["ɵɵinject"](h.H),m["ɵɵinject"](r.i),m["ɵɵinject"](c.B),m["ɵɵinject"](a.X),m["ɵɵinject"](o.w))},g.ɵprov=m["ɵɵdefineInjectable"]({token:g,factory:g.ɵfac}),(0,i.__decorate)([d.LO,(0,i.__metadata)("design:type",p)],g.prototype,"profile",void 0),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"timezone",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"language",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"currency",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"currencySymbol",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"hasPinCode",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"playerName",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"countryCode",null),(0,i.__decorate)([d.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[p]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"setProfile",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Array),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"personaLinkedAccounts",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],g.prototype,"acceptsGifts",null)},33814:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var i=n(616),r=n(38056),o=n(91691),a=n(57826);let s=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.s,{provide:r.A,useExisting:i.s}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[o.C.forRoot()]]}),e})()},40829:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(23550),r=n(4309),o=n(42998),a=n(57826);let s=(()=>{class e{constructor(e){this.http=e,this.baseUrl="/services/required-actions/v1/profiles"}getUrl(e){return`${this.baseUrl}/${e}`}getRequiredActions(e){return this.http.get(this.getUrl(e)).pipe((0,o.map)((e=>e.items.map((e=>({type:e.actionType}))))),(0,o.catchError)((()=>(0,r.of)([]))))}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},65700:(e,t,n)=>{"use strict";n.d(t,{TW:()=>o,dp:()=>a,l0:()=>r});var i=n(41759);const r="BLOCKED",o="UNBLOCKED";let a=(()=>{class e{constructor(e,t){this.blockedUntil=e,this.status=t}get getBlockedUntil(){return(0,i.Z)(this.blockedUntil).format(e.BLOCKUNTIL_PATTERN)}}return e.BLOCKUNTIL_PATTERN="MMMM DD YYYY hh:mm a",e})()},37521:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var i=(()=>(function(e){e.VALIDATED="VALIDATED",e.NOT_VALIDATED="NOT_VALIDATED",e.EXEMPT="EXEMPT",e.UNKNOWN=""}(i||(i={})),i))()},10599:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});class i{constructor(e,t,n,i,r,o,a,s,c,l,d){this.language=e,this.currency=t,this.signup_ip=n,this.time_zone=i,this.pin_code=r,this.legacy_security_mmn=o,this.legacy_security_pob=a,this.territory=s,this.agent_type=c,this.affiliateId=l,this.crypto_count_self_lock=d}}},20151:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var i=(()=>(function(e){e.REQUESTED="REQUESTED",e.VERIFIED="VERIFIED",e.INVALID="INVALID",e.PENDING="PENDING",e.BLOCKED="BLOCKED",e.UNKNOWN=""}(i||(i={})),i))()},28795:(e,t,n)=>{"use strict";n.d(t,{B:()=>a}),n(73753);var i=n(42998),r=n(92947),o=n(57826);let a=(()=>{class e{constructor(e){this.profileService=e}resolve(e){return this.profileService.getProfileDetailsPlayer().pipe((0,i.map)((e=>({profile:e}))))}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.H))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},43279:(e,t,n)=>{"use strict";n.d(t,{R:()=>u});var i=n(6856),r=n(70141),o=n(84704),a=n(57826);let s=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[o.a]]}),e})();var c=n(57223),l=n(67864),d=n(32446);let u=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({imports:[[r.S,s,c.B,i.CommonModule,l.h,d.P]]}),e})()},59851:(e,t,n)=>{"use strict";n.d(t,{H3:()=>r,Px:()=>a,RC:()=>o,Uc:()=>l,Wq:()=>c,ft:()=>i,wF:()=>s});const i="",r="pin-code-update",o="account",a="cashier",s="404",c="maintenance",l="blockedfb"},10904:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var i=n(48108),r=n(57826);let o=(()=>{class e{constructor(e){this.languageService=e,this.urlLang=""}ngOnInit(){this.languageSubscription=this.languageService.getLanguage().subscribe((e=>{this.urlLang=e}))}ngOnDestroy(){this.languageSubscription.unsubscribe()}getCashierMenuUrlMetadata(e){let t={backLink:null,closeLink:"/",closeFragment:"real"},n=e.url.split("?")[0];if((this.isDepositUrl(n,e)||this.isWithdrawUrl(n,e))&&(t.backLink=this.getBackLink(e,n),e.queryParams&&e.queryParams.destination)){let n=e.queryParams.destination.split("#")[0];n=n.replace("/"+this.urlLang+"/","/"),t.closeLink=n,t.closeFragment=e.queryParams.destination.split("#")[1]}return t}getBackLink(e,t){return e.queryParams&&e.queryParams.fromAccount?`/${e.accountMenuUrl}/${e.queryParams.fromAccount}`:this.isDepositPMUrl(t,e)?e.depositUrl:this.isWithdrawPMUrl(t,e)?e.withdrawUrl:`/${e.accountMenuUrl}`}isDepositUrl(e,t){return 0===e.indexOf(t.depositUrl)}isDepositPMUrl(e,t){return this.isDepositUrl(e,t)&&e!=t.depositUrl}isWithdrawUrl(e,t){return 0===e.indexOf(t.withdrawUrl)}isWithdrawPMUrl(e,t){return this.isWithdrawUrl(e,t)&&e!=t.withdrawUrl}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.T))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},13580:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var i=n(4309),r=n(57826);let o=(()=>{class e{constructor(){this.finishedLoading=new i.Subject}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},29815:(e,t,n)=>{"use strict";n.d(t,{x:()=>d});var i=n(73753),r=n(55640),o=n(4309),a=n(42998),s=n(59851),c=n(42312),l=n(57826);let d=(()=>{class e{constructor(e,t,n){this.router=e,this.firstTimeDepositorService=t,this.browserStorageService=n}canActivate(e,t){return this.firstTimeDepositorService.getFirstTimeDepositor().pipe((0,a.map)((e=>(this.navigateToCashierIfSuccess(t,e),!0))),(0,a.catchError)((()=>(0,o.of)(!0))))}navigateToCashierIfSuccess(t,n){if(void 0!==n&&(!0===n||400===n.status)&&-1===t.url.indexOf("withdraw")){const t={destination:this.browserStorageService.get(e.PREVIOUS_URL_KEY)};this.router.navigate([s.Px,"deposit"],{queryParams:t})}}}return e.PREVIOUS_URL_KEY="previousUrl",e.ɵfac=function(t){return new(t||e)(l["ɵɵinject"](i.Router),l["ɵɵinject"](c.$),l["ɵɵinject"](r.z))},e.ɵprov=l["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},42312:(e,t,n)=>{"use strict";n.d(t,{$:()=>c});var i=n(56159),r=n(2470),o=n(4309),a=n(42998),s=n(57826);let c=(()=>{class e{constructor(e,t){this.logoutService=e,this.paymentProfileInfoDataService=t,this.logoutService.logoutEvent.subscribe((()=>this.isFtd=void 0))}getFirstTimeDepositorAtLogin(){return this.getFirstTimeDepositValue(!1)}getFirstTimeDepositor(){return this.getFirstTimeDepositValue(!0)}getFirstTimeDepositValue(e){return!1===this.isFtd?(0,o.of)(!1):(e&&this.paymentProfileInfoDataService.loadPaymentProfileInfo(),this.paymentProfileInfoDataService.getPaymentProfileInfo().pipe((0,a.map)((e=>(this.isFtd=e.ftd,this.isFtd))),(0,a.catchError)((e=>(0,o.throwError)(e||"Internal Server Error")))))}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.PO),s["ɵɵinject"](r.B))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},47490:(e,t,n)=>{"use strict";n.d(t,{W:()=>p});var i=n(2470),r=n(23550),o=n(30173),a=n(45965),s=n(92947),c=n(4309),l=n(42998),d=n(57826);class u{constructor(e="",t=null,n=[],i,r){this.brand=e,this.profile=t,this.tags=n,this.tier=i,this.urlPrefix=r}}let p=(()=>{class e{constructor(e,t,n,i,r){this.httpClient=e,this.deviceService=t,this.profileService=n,this.siteConfigService=i,this.paymentProfileInfoDataService=r,this.hasTTPSubject=new c.ReplaySubject(1),this.hasCBTSubject=new c.ReplaySubject(1)}loadLoginPaymentMethods(){if(this.siteConfigService.evalFeature("site.config.cashier.paymentMethodGroup.enabled")){const t=(0,c.of)(this.siteConfigService.getSiteConfigProp(e.BRAND_CODE)),n=this.profileService.getProfileDetailsPlayer(),i=this.paymentProfileInfoDataService.getPaymentProfileInfo(),r=(0,c.of)(this.siteConfigService.getSiteConfigProp(e.URL_PREFIX));(0,c.combineLatest)([t,n,i,r]).pipe((0,l.map)((e=>this.createPaymentMethodsGroupRequest(e)))).pipe((0,l.concatMap)((e=>this.requestLoginPaymentMethods(e)))).subscribe((e=>{this.hasTTPSubject.next(this.containTTPMethod(e)),this.hasCBTSubject.next(this.containCBTMethod(e))}),(()=>{this.hasTTPSubject.next(!1),this.hasCBTSubject.next(!1)}))}else this.hasTTPSubject.next(!1),this.hasCBTSubject.next(!1),this.hasTTPSubject.complete(),this.hasCBTSubject.complete()}hasTTPMethod(){return this.hasTTPSubject}hasCBTMethod(){return this.hasCBTSubject}requestLoginPaymentMethods(t){return this.httpClient.get(e.LPM_URL,this.getOptions(t))}createPaymentMethodsGroupRequest(e){const t=e[2];return new u(e[0],e[1],t.cp,t.ct,e[3])}containTTPMethod(t){return null!=t.find((t=>t.code===e.TTP_PAYMENT_METHOD))}containCBTMethod(t){return null!=t.find((t=>t.code===e.CBT_PAYMENT_METHOD))}getOptions(e){let t=this.getGenericOptions(e);return e.urlPrefix&&(t.params.context=e.urlPrefix),e.tier&&(t.params.ct=e.tier),Array.isArray(e.tags)&&e.tags.length&&(t.params.cp=e.tags.toString()),t}getGenericOptions(e){return{withCredentials:!0,params:{channel:this.getChannelCode(),region:this.composeRegion(e.profile),brand:this.getBrandCode(e.profile,e.brand),paymentType:"W",currency:e.profile.attributes.currency}}}getChannelCode(){return this.deviceService.isDesktop()?"W":"M"}getBrandCode(e,t){return e.brandCode||t}composeRegion(e){return e.address.subdivision?e.address.countryCode+" "+e.address.subdivision:e.address.countryCode}}return e.LPM_URL="/services/routing/config/payment-methods/method-groups",e.TTP_PAYMENT_METHOD="TTP",e.CBT_PAYMENT_METHOD="CBT",e.BRAND_CODE="brandCode",e.URL_PREFIX="urlPrefix",e.ɵfac=function(t){return new(t||e)(d["ɵɵinject"](r.HttpClient),d["ɵɵinject"](o.U),d["ɵɵinject"](s.H),d["ɵɵinject"](a.r),d["ɵɵinject"](i.B))},e.ɵprov=d["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},23696:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var i=n(73753),r=n(45965),o=n(92947),a=n(616),s=n(4309),c=n(42998);const l="pin-code";var d=n(57826);let u=(()=>{class e{constructor(e,t,n,i){this.profileService=e,this.profileStore=t,this.router=n,this.configService=i}skipPinCode(){return this.configService.hasFeature("ams.profile.skip_pincode")}canActivate(e,t){return this.profileStore.isDone?this.profileStore.profile.hasPinCode?(0,s.of)(-1===t.url.indexOf(l)):(-1!==t.url.indexOf(l)||this.skipPinCode()||this.router.navigate([l],{queryParams:{returnUrl:t.url.replace(/\(overlay:(.+?)\)/,"")}}),(0,s.of)(-1!==t.url.indexOf(l))):this.profileStore.isError?(0,s.of)(!0):this.profileService.getProfileDetailsPlayer().pipe((0,c.switchMap)((e=>e.hasPinCode?(0,s.of)(-1===t.url.indexOf(l)):(-1!==t.url.indexOf(l)||this.skipPinCode()||this.router.navigate([l],{queryParams:{returnUrl:t.url.replace(/\(overlay:(.+?)\)/,"")}}),(0,s.of)(-1!==t.url.indexOf(l))))),(0,c.catchError)((()=>(0,s.of)(!0))))}}return e.ɵfac=function(t){return new(t||e)(d["ɵɵinject"](o.H),d["ɵɵinject"](a.s),d["ɵɵinject"](i.Router),d["ɵɵinject"](r.r))},e.ɵprov=d["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},54474:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var i=n(73753),r=n(57826);let o=(()=>{class e{constructor(e){this.router=e}handleClose(e,t){t?this.router.navigateByUrl(t):e()}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.Router))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},54348:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var i=n(54474),r=n(57826);let o=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[i.a]}),e})()},34580:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var i=n(73753),r=n(64174),o=n(21311),a=n(64041),s=n(57826);let c=(()=>{class e{constructor(e,t,n){this.sessionService=e,this.authService=t,this.router=n,this.HEADLESS_PREFIX_URL="headless/",this.additionalQueryParams={}}canActivate(e,t){this.authService.setLastPage(t.url,!0);const n=t.url.indexOf(this.HEADLESS_PREFIX_URL)>-1;if(!this.sessionService.isAuthenticated()){const i=n?a.N6:a.ZE,r={destination:t.url,closeUrl:e.queryParams.closeUrl};return this.router.navigate([`/${i}`],{queryParams:Object.assign(r,this.additionalQueryParams)}),!1}return!0}canActivateChild(e,t){return this.canActivate(e,t)}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](r.m),s["ɵɵinject"](o.i),s["ɵɵinject"](i.Router))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},21311:(e,t,n)=>{"use strict";n.d(t,{i:()=>P});var i=n(6856),r=n(57826),o=n(73753),a=n(94224),s=n(71063),c=n(37424),l=n(2470),d=n(64174),u=n(99604),p=n(55640),h=n(82846),m=n(36957),g=n(81899),f=n(41931),v=n(24144),b=n(45965),y=n(6969),C=n(39597),S=n(42312),x=n(47490),w=n(59851),E=n(30986),I=n(64041);let P=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m,g,f,v,b,y,C){this.router=e,this.route=t,this.loginService=n,this.logoutService=i,this.registrationService=r,this.invitationService=o,this.conversionFunnelService=a,this.sessionService=s,this.storageService=c,this.routesToolsService=l,this.platformId=d,this.cookieService=u,this.windowService=p,this.reactiveChatService=h,this.firstTimeDepositorService=m,this.playerChatMetadataService=g,this.siteConfigService=f,this.discourseForumService=v,this.cashierCustomMessagesDataService=b,this.loginPaymentMethodsService=y,this.paymentProfileInfoDataService=C}init(){this.loginSubscription=this.loginService.loginEvent.subscribe((()=>this.onLogin())),this.logoutSubscription=this.logoutService.logoutEvent.subscribe((e=>this.onLogout(e))),this.sessionSubscription=this.sessionService.unauthorizedEvent.subscribe((e=>this.onUnauthorizedEvent(e))),this.registrationSubscription=this.registrationService.getRegistrationEvent().subscribe((e=>{this.cookieService.set("JOINED","true"),this.cookieService.get("url-prefix")||this.cookieService.set("url-prefix","/"+this.siteConfigService.getSiteConfigProp("urlPrefix")),this.onRegistration(e)})),this.validationCodeSubscription=this.conversionFunnelService.getValidationCodeEvents().subscribe((e=>this.onValidationCode(e))),this.routerSubscription=this.router.events.subscribe((e=>{e instanceof o.NavigationStart&&!this.isLoginOrRegistration(e.url)&&this.setLastPage(e.url,!1);const t=this.route.snapshot.queryParams.destination?decodeURIComponent(this.route.snapshot.queryParams.destination):this.route.snapshot.queryParams.destination;e instanceof o.NavigationEnd&&this.isLoginOrRegistration(e.url)&&t&&this.setLastPage(t,!1)})),this.activateAccountSubscription=this.invitationService.getActivateAccountEvent().subscribe((e=>{this.cookieService.set("JOINED","true"),this.cookieService.get("url-prefix")||this.cookieService.set("url-prefix","/"+this.siteConfigService.getSiteConfigProp("urlPrefix")),this.onActivatedAccount(e)})),(0,i.isPlatformBrowser)(this.platformId)&&(this.sessionSubscription=this.sessionService.sessionObserver.subscribe((e=>{e.isAuthenticated?(this.paymentProfileInfoDataService.loadPaymentProfileInfo(),this.cashierCustomMessagesDataService.loadCashierCustomMessages(),this.loginPaymentMethodsService.loadLoginPaymentMethods(),this.resolveFirstTimeDepositor()):this.playerChatMetadataService.onFirstTimeDepositorChange(this.playerChatMetadataService.getPlayerStatus().firstTimeVisitor)})))}setLastPage(t,n){if((0,i.isPlatformBrowser)(this.platformId)){let i={url:this.routesToolsService.getPath(t)};this.routesToolsService.getFragment(t)&&(i.fragment=this.routesToolsService.getFragment(t)),i.url=i.url.replace(/([^(]*)\((overlay)\:([\w-_]+)\)/gi,"/$3"),this.storageService.set(e.LAST_PAGE,JSON.stringify(i)),this.lastPageUrl=i,this.lastPageSecured=n,this.lastPageQueryParams=this.router.parseUrl(t).queryParams}}ngOnDestroy(){this.unsubscribeMethods()}isLoginOrRegistration(e){return e.startsWith(`/${I.ZE}`)||e.startsWith(`/${I.ts}`)||e.startsWith(`/${I.N6}`)||e.startsWith(`/${I.jU}`)}buildUrlWithQueryParams(e){const t=this.router.parseUrl(e);return t.queryParams=this.lastPageQueryParams,delete t.queryParams.overlay,t.toString()}onLogin(){this.navigateToLastPage(),this.countryCookieExists()&&(this.cookieService.get(e.PIN_CODE_COOKIE)&&(this.lastPageUrl.url="/"+w.H3),this.reloadToLastPage())}navigateToLastPage(){const t=this.discourseForumService.getDiscourseForumUrl(this.windowService.location(),this.route.snapshot.queryParams);if(t&&(this.windowService.location().href=t),!this.lastPageUrl){let t=this.storageService.get(e.LAST_PAGE);this.lastPageUrl=t?JSON.parse(t):{}}this.navigate(this.lastPageUrl)}navigate(e){this.router.navigate([this.lastPageUrl.url||`/${I.ft}`],{replaceUrl:!0,fragment:this.lastPageUrl.fragment})}onLogout(e){this.closeChatSession(),e.sessionExpired?this.router.navigate([`/${I.ft}`],{queryParams:{sessionExpired:!0}}):this.router.navigate([`/${I.ft}`]),this.countryCookieExists()&&(this.removeCountryCookie(),this.reloadPage("/"))}onUnauthorizedEvent(e){401==e.status&&e.isAuthenticated&&this.logoutService.logout(!0)}onRegistration(e){e instanceof y.Yc&&(this.sessionService.session=e.sessionId,this.navigateToLastPage())}onValidationCode(e){(e instanceof E.aj||e instanceof E.N$)&&this.navigateToLastPage()}onActivatedAccount(e){e instanceof C.i&&(this.sessionService.session=e.sessionId,this.navigateToLastPage())}resolveFirstTimeDepositor(){this.firstTimeSubscription=this.firstTimeDepositorService.getFirstTimeDepositorAtLogin().subscribe((e=>{this.playerChatMetadataService.onFirstTimeDepositorChange(e)}),(e=>{this.emitPlayerChatEvent(e)}))}emitPlayerChatEvent(e){"99"==e.minorCode&&this.playerChatMetadataService.onFirstTimeDepositorChange(!0)}closeChatSession(){this.reactiveChatService.closeChat()}countryCookieExists(){return!!this.cookieService.get("Country")}removeCountryCookie(){this.cookieService.remove("Country")}reloadPage(e){setTimeout((()=>{this.windowService.location().replace(e)}))}reloadToLastPage(){let e=this.lastPageUrl?this.lastPageUrl.url:"";e=this.buildUrlWithQueryParams(e);const t=this.windowService.origin()+e;this.reloadPage(t)}unsubscribeMethods(){this.loginSubscription&&this.loginSubscription.unsubscribe(),this.firstTimeSubscription&&this.firstTimeSubscription.unsubscribe(),this.logoutSubscription&&this.logoutSubscription.unsubscribe(),this.sessionSubscription&&this.sessionSubscription.unsubscribe(),this.routerSubscription&&this.routerSubscription.unsubscribe(),this.registrationSubscription&&this.registrationSubscription.unsubscribe(),this.validationCodeSubscription&&this.validationCodeSubscription.unsubscribe(),this.activateAccountSubscription&&this.activateAccountSubscription.unsubscribe()}}return e.LAST_PAGE="lastpage",e.PIN_CODE_COOKIE="cf_spc",e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](o.Router),r["ɵɵinject"](o.ActivatedRoute),r["ɵɵinject"](s.r6),r["ɵɵinject"](c.P),r["ɵɵinject"](y.H8),r["ɵɵinject"](C.e),r["ɵɵinject"](E.Kx),r["ɵɵinject"](d.m),r["ɵɵinject"](p.z),r["ɵɵinject"](m.T),r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](h.G),r["ɵɵinject"](g.u),r["ɵɵinject"](v.R),r["ɵɵinject"](S.$),r["ɵɵinject"](f.w),r["ɵɵinject"](b.r),r["ɵɵinject"](u.p),r["ɵɵinject"](a.G),r["ɵɵinject"](x.W),r["ɵɵinject"](l.B))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},64041:(e,t,n)=>{"use strict";n.d(t,{N6:()=>a,ZE:()=>r,ft:()=>i,jU:()=>s,ts:()=>o});const i="",r="login",o="join",a="headless/login",s="headless/join"},50474:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(57826),r=n(21311),o=n(34580),a=n(25);let s=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:r.i,useClass:t},o.a]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[a.T]]}),e})()},92870:(e,t,n)=>{"use strict";n.d(t,{D2:()=>o.D,a1:()=>i.a,ib:()=>r.i});var i=n(34580),r=n(21311),o=n(50474)},30986:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>a,N$:()=>s,aj:()=>c});var i=n(4309),r=n(42998),o=n(57826);let a=(()=>{class e{constructor(){this.event$=new i.Subject}getValidationCodeEvents(){return this.event$.pipe((0,r.filter)((e=>e instanceof s||e instanceof c)))}emit(e){this.event$.next(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class s{}class c{}},81243:(e,t,n)=>{"use strict";n.d(t,{j:()=>d});var i=n(57826),r=n(6856),o=n(77247),a=n(81899),s=n(45965),c=n(80112);const l="overlay";let d=(()=>{class e{constructor(e,t,n,i,r){this.platformId=e,this.siteConfigService=t,this.urlPrefixService=n,this.request=i,this.windowService=r}calculateURL(e){return this.isHttpAbsolute(e)?e:this.composeAbsoluteURL(e)}calculateCanonicalURL(e){return e?this.isHttpAbsolute(e)?e:this.composeCanonicalURLFromRelative(e):this.purgeQueryParamsOtherThanOverlay(this.getCurrentCanonicalURL())}getPath(){const e=(0,r.isPlatformBrowser)(this.platformId)?this.windowService.window().location.pathname:this.request.path;let t=this.siteConfigService.getSiteConfigProp("urlPrefix");return t&&e.startsWith("/"+t)?e.substring(t.length+1):e}purgeQueryParamsOtherThanOverlay(e){const t=e.split("?");if(1===t.length)return e;const n=t[0],i=t[1];return i.includes(l)?[n,this.getOverlayParamValue(i)].join("?"):n}getCanonicalOrigin(){let e=this.siteConfigService.getSiteConfigProp("canonicalDomain");return e?`https://${e}`:this.getURLOrigin()}getPathIncludingParams(){return(this.getPath()||"")+(this.getParams()||"")}getOverlayParamValue(e){return e.split("&").find((e=>e.split("=")[0]===l))}isHttpAbsolute(e){return e.startsWith("http")}composeCanonicalURLFromRelative(e){const t=e.startsWith("/")?e:`${this.getCuratedAbsolutePath()}/${e}`;return`${this.getCanonicalOrigin()}${this.urlPrefixService.addUrlPrefix(t)}`}getCurrentCanonicalURL(){return`${this.getCanonicalOrigin()}${this.urlPrefixService.addUrlPrefix(this.getPathIncludingParams())}`}getCuratedAbsolutePath(){const e=this.getPath();return this.sanitizePath(e)}sanitizePath(e){return"/"===e?"":e}composeAbsoluteURL(e){return e.startsWith("/")?`${this.getURLOrigin()}${e}`:`${this.getURLOrigin()}${this.getCuratedAbsolutePath()}/${e}`}getURLOrigin(){return(0,r.isPlatformBrowser)(this.platformId)?this.windowService.window().location.origin:`https://${this.request.headers["x-requested-domain"].toString()}`}getParams(){return(0,r.isPlatformBrowser)(this.platformId)?this.windowService.window().location.search:this.getParamsForUniversal(this.request.url)}getParamsForUniversal(e){if(e){const t=e.split("?");return 1===t.length?"":"?"+t[1]}return""}removeQueryParams(e){return decodeURIComponent(e).split(/[?#]/)[0]}getQueryParams(e){return decodeURIComponent(e).split(/[?#]/)[1]}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](s.r),i["ɵɵinject"](c.z),i["ɵɵinject"](o.Z,8),i["ɵɵinject"](a.u,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},29862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(73753);var i=n(45965),r=n(81899);const o=function(){const e={};return t=>e[t]?Promise.resolve():(e[t]=!0,new Promise(((e,n)=>{let i=document.createElement("link");i.href=t,i.type="text/css",i.rel="stylesheet",i.onload=e,i.onerror=n,document.getElementsByTagName("head")[0].appendChild(i)})))}();var a=n(57826);let s=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.windowService=t}resolve(e){const t=this.getLazyLoadStylesheet(e);return t?o(t):Promise.resolve()}getLazyLoadStylesheet(e){if(this.windowService&&this.windowService.getIsPlatformBrowser()){const t=this.windowService.window().cssChannels,n=t&&t[e.data.channel]||"";if(n)return"assets/css/"+e.data.channel+"-"+this.getTheme()+"-"+n+".css"}return""}getTheme(){return this.siteConfigService.getSiteConfigProp("theme")||"default"}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.r),a["ɵɵinject"](r.u,8))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},50206:(e,t,n)=>{"use strict";n.d(t,{T:()=>p});var i=n(4869),r=n(57826),o=n(6856),a=n(2046),s=n(73753),c=n(86014);function l(e,t){if(1&e&&r["ɵɵelement"](0,"bx-section",2),2&e){const e=t.ngIf;r["ɵɵproperty"]("data",e)}}const d=function(){return{label:"referAFriend.how_it_works",tag:"textContent"}};function u(e,t){1&e&&(r["ɵɵtext"](0,"\n           "),r["ɵɵelementStart"](1,"div",3),r["ɵɵtext"](2,"\n               "),r["ɵɵelement"](3,"a",4),r["ɵɵtext"](4,"\n           "),r["ɵɵelementEnd"](),r["ɵɵtext"](5,"\n       ")),2&e&&(r["ɵɵadvance"](3),r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction0"](1,d)))}let p=(()=>{class e{constructor(e){this.rafCustomCMSLinkService=e}ngOnInit(){this.content=this.rafCustomCMSLinkService.getRAFSectionContent()}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](i.i))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-raf-custom-cms-link"]],decls:7,vars:4,consts:[[3,"data",4,"ngIf","ngIfElse"],["link",""],[3,"data"],[1,"refer-a-friend-link"],["routerLink","/refer",1,"custom-link",3,"bxTranslate"]],template:function(e,t){if(1&e&&(r["ɵɵtext"](0,"\n       "),r["ɵɵtemplate"](1,l,1,1,"bx-section",0),r["ɵɵpipe"](2,"async"),r["ɵɵtext"](3,"\n       "),r["ɵɵtemplate"](4,u,6,2,"ng-template",null,1,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](6,"\n    ")),2&e){const e=r["ɵɵreference"](5);r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",r["ɵɵpipeBind1"](2,2,t.content))("ngIfElse",e)}},directives:[o.NgIf,a.e,s.RouterLinkWithHref,c.P],pipes:[o.AsyncPipe],encapsulation:2}),e})()},4869:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var i=n(16462),r=n(4309),o=n(42998),a=n(57826);let s=(()=>{class e{constructor(e){this.contentService=e}getRAFSectionContent(){return this.contentService.getContentBySlug(e.SLUG,e.CONTENT_SECTION).pipe((0,o.first)(),(0,o.catchError)((e=>(0,r.of)(!1))))}}return e.CONTENT_SECTION="section",e.SLUG="account-referafriend",e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i._))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},23056:(e,t,n)=>{"use strict";n.d(t,{p:()=>f});var i=n(64762),r=n(30173),o=n(12596),a=n(71710),s=n(81899),c=n(75330),l=n(3336),d=n(57826),u=n(6856),p=n(86014),h=n(3935);function m(e,t){1&e&&(d["ɵɵelementStart"](0,"figure",2),d["ɵɵtext"](1,"\n            "),d["ɵɵelement"](2,"i",3),d["ɵɵtext"](3,"\n            "),d["ɵɵelementStart"](4,"figcaption",4),d["ɵɵtext"](5,"raf.shareLinks.error"),d["ɵɵelementEnd"](),d["ɵɵtext"](6,"\n        "),d["ɵɵelementEnd"]())}function g(e,t){if(1&e){const e=d["ɵɵgetCurrentView"]();d["ɵɵelementStart"](0,"div",5),d["ɵɵtext"](1,"\n            "),d["ɵɵelementStart"](2,"p",6),d["ɵɵtext"](3,"raf.shareOn"),d["ɵɵelementEnd"](),d["ɵɵtext"](4,"\n            "),d["ɵɵelementStart"](5,"bx-share-buttons",7),d["ɵɵlistener"]("clickOnSharingMethod",(function(t){return d["ɵɵrestoreView"](e),d["ɵɵnextContext"]().share(t)})),d["ɵɵtext"](6,"\n            "),d["ɵɵelementEnd"](),d["ɵɵtext"](7,"\n        "),d["ɵɵelementEnd"]()}if(2&e){const e=d["ɵɵnextContext"]();d["ɵɵadvance"](5),d["ɵɵproperty"]("theme",e.theme)("shareLinks",e.shareLinks)("copyFullRow",e.copyFullRow)}}class f{constructor(e,t,n,i){this.deviceService=e,this.translateService=t,this.windowService=n,this.analyticsService=i,this.copyFullRow=!1}ngOnInit(){this.rafUrl?(this.initComponent(),this.showShareButtons=!0):this.showShareButtons=!1}share(e){switch(e){case"email":this.sendEmail();break;case"sms":this.sendSms();break;case"copy":this.sendCopy()}}initComponent(){"light"!==this.theme&&"dark"!==this.theme&&(this.theme="dark");let e=this.deviceService.isMobile();this.copyFullRow=e;let t={id:"email",title:"Email",img:"assets/images/"+this.theme+"_share_mail.svg",icon:"icon-envelope"},n={id:"sms",title:"Text message",img:"assets/images/"+this.theme+"_share_sms.svg",icon:"icon-contact"},i={id:"copy",title:"Copy url:",url:this.rafUrl+a.mJ,icon:"icon-link"};const r=this.getBrandName(),o=r.replace(/\.[^\.]*$/,"");this.translateService.loadTranslations("raf").subscribe((e=>{t.title=e["raf.shareLinks.email"],n.title=e["raf.shareLinks.sms"],i.title=e["raf.shareLinks.copy"]+":",e["raf.shareBySms.template"]&&(this.smsBody=this.translateService.interpolate(e["raf.shareBySms.template"],{brand:r,rafLink:this.rafUrl+a.Fq,brandNameWithouTLD:o})),this.mailSubject=e["raf.shareByEmail.subject.template"],this.mailBody=e["raf.shareByEmail.body.template"],this.mailSubject&&this.mailBody&&(this.mailSubject=this.translateService.interpolate(this.mailSubject,{brand:r}),this.mailBody=this.translateService.interpolate(this.mailBody,{brand:r,rafLink:this.rafUrl+a.kA}))})),this.shareLinks=e?[[n,t],[i]]:[[t,i]]}sendEmail(){this.windowService.location().href="mailto:?subject="+encodeURIComponent(this.mailSubject)+"&body="+encodeURIComponent(this.mailBody)}sendSms(){this.windowService.location().href="sms:?&body="+this.smsBody}sendCopy(){}getBrandName(){return this.windowService.getHostname().replace(/^(www\.)/,"").replace(/\b\w/,(e=>e.toUpperCase()))}}f.rafLinkCustomValue=()=>({1:"true"}),f.ɵfac=function(e){return new(e||f)(d["ɵɵdirectiveInject"](r.U),d["ɵɵdirectiveInject"](o.s),d["ɵɵdirectiveInject"](s.u),d["ɵɵdirectiveInject"](l.y))},f.ɵcmp=d["ɵɵdefineComponent"]({type:f,selectors:[["bx-raf-links"]],inputs:{theme:"theme",rafUrl:"rafUrl"},decls:5,vars:2,consts:[["role","alert","class","custom-notification alert info high-contrast",4,"ngIf"],["class","raf-links-container",4,"ngIf"],["role","alert",1,"custom-notification","alert","info","high-contrast"],[1,"icon","icon-info"],[3,"bxTranslate"],[1,"raf-links-container"],[1,"share-on",3,"bxTranslate"],[3,"theme","shareLinks","copyFullRow","clickOnSharingMethod"]],template:function(e,t){1&e&&(d["ɵɵtext"](0,"\n        "),d["ɵɵtemplate"](1,m,7,0,"figure",0),d["ɵɵtext"](2,"\n        "),d["ɵɵtemplate"](3,g,8,3,"div",1),d["ɵɵtext"](4,"\n    ")),2&e&&(d["ɵɵadvance"](1),d["ɵɵproperty"]("ngIf",!t.showShareButtons),d["ɵɵadvance"](2),d["ɵɵproperty"]("ngIf",t.showShareButtons))},directives:[u.NgIf,p.P,h.u],styles:[".share-on[_ngcontent-%COMP%] { font-size: 1.3em; padding-bottom: 5px; }"]}),(0,i.__decorate)([(0,c.ob)("RAF_CTA_Email_Click",!0,f.rafLinkCustomValue),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],f.prototype,"sendEmail",null),(0,i.__decorate)([(0,c.ob)("RAF_CTA_Sms_Click",!0,f.rafLinkCustomValue),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],f.prototype,"sendSms",null),(0,i.__decorate)([(0,c.ob)("RAF_CTA_Sms_CopyLink",!0,f.rafLinkCustomValue),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],f.prototype,"sendCopy",null)},80445:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.theme=""}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},71710:(e,t,n)=>{"use strict";n.d(t,{EG:()=>a,Fq:()=>o,kA:()=>r,mJ:()=>i});const i="rafcopy",r="rafemail",o="rafsms";function a(e,t,n){return`${e}${t}/welcome/${n}/join?extcmpid=`}},75025:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RAFLinksModule:()=>m});var i=n(6856),r=n(23056),o=n(50206),a=n(61733),s=n(80953),c=n(4869),l=n(84704),d=n(63576),u=n(73753),p=n(23475),h=n(57826);let m=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=h["ɵɵdefineNgModule"]({type:e,bootstrap:[r.p,o.T]}),e.ɵinj=h["ɵɵdefineInjector"]({providers:[s.p,c.i,a.w],imports:[[i.CommonModule,l.a,d.Q,u.RouterModule,p.H]]}),e})()},61733:(e,t,n)=>{"use strict";n.d(t,{w:()=>l}),n(73753);var i=n(80112),r=n(4309),o=n(42998),a=n(71710),s=n(80953),c=n(57826);let l=(()=>{class e{constructor(e,t){this.rafLinksService=e,this.urlPrefixService=t}resolve(e){return this.rafLinksService.getReferralProfile().pipe((0,o.map)((e=>(0,a.EG)(this.rafLinksService.getReferralDomain(),this.urlPrefixService.getUrlPrefix(),e.trackingCode))),(0,o.catchError)((e=>(0,r.empty)())))}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](s.p),c["ɵɵinject"](i.z))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},80953:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var i=n(23550),r=n(81899),o=n(45965),a=n(57826);let s=(()=>{class e{constructor(e,t,n){this.httpClient=e,this.siteConfigService=t,this.windowService=n}getReferralProfileUrl(){return`${e.REFERRALS_BASE_URL}/<sessionId>`}getReferralProfile(){return this.httpClient.get(this.getReferralProfileUrl(),{withCredentials:!0})}getReferralDomain(){return this.siteConfigService.getSiteConfigProp("rafDomain")||this.windowService.location().origin}}return e.REFERRALS_BASE_URL="/services/referral/v1/profiles",e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient),a["ɵɵinject"](o.r),a["ɵɵinject"](r.u))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},3935:(e,t,n)=>{"use strict";n.d(t,{u:()=>d});var i=n(57826),r=n(6856);function o(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",5),i["ɵɵlistener"]("click",(function(){i["ɵɵrestoreView"](e);const t=i["ɵɵnextContext"]().$implicit;return i["ɵɵnextContext"](2).selectMethod(t.id)})),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"div",6),i["ɵɵtext"](3,"\n                            "),i["ɵɵelement"](4,"i",7),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]().$implicit,t=i["ɵɵnextContext"](2);i["ɵɵclassMapInterpolate1"]("table-cell ",t.theme,"-cell clickable-cell"),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngClass",e.icon),i["ɵɵadvance"](2),i["ɵɵtextInterpolate1"]("\n                        ",e.title,"\n                    ")}}function a(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"div",6),i["ɵɵtext"](3,"\n                            "),i["ɵɵelement"](4,"i",7),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementStart"](7,"div",8),i["ɵɵtext"](8),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                        "),i["ɵɵelementStart"](10,"input",9),i["ɵɵlistener"]("click",(function(t){i["ɵɵrestoreView"](e);const n=i["ɵɵnextContext"]().$implicit;return i["ɵɵnextContext"](2).selectMethod(n.id,t)})),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]().$implicit,t=i["ɵɵnextContext"](2);i["ɵɵclassMapInterpolate1"]("table-cell copy-url-cell ",t.theme,"-cell"),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngClass",e.icon),i["ɵɵadvance"](4),i["ɵɵtextInterpolate"](e.title),i["ɵɵadvance"](2),i["ɵɵpropertyInterpolate"]("value",e.url)}}function s(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,o,7,5,"div",4),i["ɵɵtext"](3,"\n\n                    "),i["ɵɵtemplate"](4,a,12,6,"div",1),i["ɵɵtext"](5,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf","copy"!==e.id),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf","copy"===e.id)}}function c(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",2),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,s,6,2,"ng-container",3),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",e)}}function l(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"div",10),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementStart"](6,"div",6),i["ɵɵtext"](7,"\n                         "),i["ɵɵelement"](8,"i",7),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                    "),i["ɵɵelementStart"](11,"div",8),i["ɵɵtext"](12),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementStart"](14,"input",9),i["ɵɵlistener"]("click",(function(t){i["ɵɵrestoreView"](e);const n=i["ɵɵnextContext"]();return n.selectMethod(n.copyRow.id,t)})),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassMapInterpolate1"]("table ",e.theme,"-copy-table bx-share-buttons"),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngClass",e.copyRow.icon),i["ɵɵadvance"](4),i["ɵɵtextInterpolate"](null==e.copyRow?null:e.copyRow.title),i["ɵɵadvance"](2),i["ɵɵpropertyInterpolate"]("value",null==e.copyRow?null:e.copyRow.url)}}let d=(()=>{class e{constructor(){this.clickOnSharingMethod=new i.EventEmitter}selectMethod(e,t){"copy"===e&&(/Android/i.test(navigator.userAgent)||(t.target.selectionStart=0,t.target.selectionEnd=t.target.value.length)),this.clickOnSharingMethod.emit(e)}ngOnInit(){this.copyFullRow&&this.shareLinks.forEach(((e,t,n)=>{e.forEach((e=>{"copy"===e.id&&(this.copyRow=e,n.splice(t,1))}))}))}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-share-buttons"]],inputs:{theme:"theme",shareLinks:"shareLinks",copyFullRow:"copyFullRow"},outputs:{clickOnSharingMethod:"clickOnSharingMethod"},decls:8,vars:5,consts:[["class","table-row",4,"ngFor","ngForOf"],[3,"class",4,"ngIf"],[1,"table-row"],[4,"ngFor","ngForOf"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"icon-container"],[1,"icon","static-icon","small-icon",3,"ngClass"],[1,"cell-title"],["type","text","readonly","",1,"url-container",3,"value","click"],[1,"table-cell","copy-full-row-url-cell"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div"),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,c,4,1,"div",0),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n        "),i["ɵɵtemplate"](6,l,18,6,"div",1),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassMapInterpolate1"]("table ",t.theme,"-table bx-share-buttons"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",t.shareLinks),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.copyFullRow))},directives:[r.NgForOf,r.NgIf,r.NgClass],styles:[".table[_ngcontent-%COMP%] {\n  display: table;\n  width: 100%;\n  table-layout: fixed; }\n\n.dark-table[_ngcontent-%COMP%] {\n  background-color: #424242;\n  border: 1px solid black; }\n\n.light-table[_ngcontent-%COMP%] {\n  background-color: #FEFEFF;\n  border: 1px solid #E4E4E5; }\n\n.dark-copy-table[_ngcontent-%COMP%] {\n  color: white;\n  background-color: #424242;\n  border: 2px solid black;\n  border-top: 0; }\n\n.light-copy-table[_ngcontent-%COMP%] {\n  color: #404040;\n  background-color: #FEFEFF;\n  border: 2px solid #E4E4E5;\n  border-top: 0; }\n\n.table-row[_ngcontent-%COMP%] {\n  display: table-row;\n  width: auto;\n  height: 80px; }\n\n.table-cell[_ngcontent-%COMP%] {\n  display: table-cell;\n  vertical-align: middle;\n  text-align: left;\n  font-weight: 600;\n  position: relative; }\n\n.copy-url-cell[_ngcontent-%COMP%] {\n  padding-left: 20px; }\n\n.copy-full-row-url-cell[_ngcontent-%COMP%] {\n  padding-left: 24px; }\n\n.clickable-cell[_ngcontent-%COMP%] {\n  cursor: pointer;\n  padding-left: 75px; }\n\n.dark-cell[_ngcontent-%COMP%] {\n  color: white;\n  border: 1px solid black; }\n\n.dark-cell[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%] {\n    color: #404040; }\n\n.dark-cell[_ngcontent-%COMP%]   .url-container[_ngcontent-%COMP%] {\n    border: 1.5px solid grey;\n    background-color: transparent; }\n\n.light-cell[_ngcontent-%COMP%] {\n  border: 1px solid #E4E4E5;\n  color: #404040; }\n\n.icon-container[_ngcontent-%COMP%] {\n  border-radius: 50%;\n  height: 32px;\n  width: 32px;\n  position: absolute;\n  top: 24px;\n  left: 24px;\n  background-color: #F2F2F2;\n  border: 1px solid #C2C2C2; }\n\n.icon-container[_ngcontent-%COMP%]   .small-icon[_ngcontent-%COMP%] {\n    position: absolute;\n    left: 0.45em;\n    top: 0.45em;\n    font-size: 16px; }"]}),e})()},59677:(e,t,n)=>{"use strict";n.d(t,{S:()=>i.RAFLinksModule,pt:()=>r.p,wB:()=>o.w});var i=n(75025),r=n(80953),o=(n(4869),n(61733));n(23056),n(50206),n(3935)},34033:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var i=n(57826),r=n(6856),o=n(73753),a=n(68576),s=n(55640),c=n(66168);let l=(()=>{class e{constructor(e,t,n,i,r){this.destinationService=e,this.multilingualRoutesService=t,this.browserStorageService=n,this.router=i,this.platformId=r}canActivate(t){const n=t.queryParams.destination;if(n)this.destinationService.setDestination(this.getDestination(this.fullyDecodeURI(n)));else if((0,r.isPlatformBrowser)(this.platformId)){const t=this.browserStorageService.get(e.PREVIOUS_URL_KEY);t&&this.destinationService.setDestination(this.fullyDecodeURI(t))}return!0}canDeactivate(){return this.destinationService.setDestination(null),!0}getDestination(e){var t;let n={};const i=this.router.parseUrl(e),r=null!==(t=i.root.children[o.PRIMARY_OUTLET])&&void 0!==t?t:"",a=new c.MS(r.toString()),s=this.multilingualRoutesService.processPath(a).url;return n.path=s&&!s.startsWith("/")?"/"+s:s,n.queryParams=i.queryParams,n.outlets=Object.entries(i.root.children).filter((([e,t])=>e!==o.PRIMARY_OUTLET)).reduce(((e,[t,n])=>({...e,[t]:n.toString()})),{}),n}isEncoded(e){return(e=e||"")!==decodeURIComponent(e)}fullyDecodeURI(e){for(;this.isEncoded(e);)e=decodeURIComponent(e);return e}}return e.PREVIOUS_URL_KEY="previousUrl",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](a.B),i["ɵɵinject"](c.JH),i["ɵɵinject"](s.z),i["ɵɵinject"](o.Router),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},52652:(e,t,n)=>{"use strict";n.d(t,{g:()=>c});var i=n(73753),r=n(34033),o=n(68576),a=n(55640),s=n(57826);let c=(()=>{class e{static forRoot(){return{ngModule:e,imports:[i.RouterModule],providers:[a.z,o.B,r.J]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=s["ɵɵdefineNgModule"]({type:e}),e.ɵinj=s["ɵɵdefineInjector"]({}),e})()},68576:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var i=n(57826);let r=(()=>{class e{getDestination(){return this.destination}setDestination(e){this.destination=e}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},67793:(e,t,n)=>{"use strict";n.d(t,{M:()=>v});var i=n(6856),r=n(73753),o=n(84704),a=n(69937),s=n(26090),c=n(73502),l=n(46630),d=n(45965),u=n(92947),p=n(57826),h=n(86014);let m=(()=>{class e{constructor(e,t){this.profileService=e,this.siteConfigService=t}ngOnInit(){this.profileService.updateDocumentVerificationStatusToPending().subscribe()}getIconClass(){return"SLLV"===this.siteConfigService.getSiteConfigProp("brandCode")?"icon icon-success":"icon icon-status-win"}}return e.ɵfac=function(t){return new(t||e)(p["ɵɵdirectiveInject"](u.H),p["ɵɵdirectiveInject"](d.r))},e.ɵcmp=p["ɵɵdefineComponent"]({type:e,selectors:[["bx-identity-verification-landing-page"]],decls:12,vars:1,consts:[[1,"identity-verification-landing-icon"],[3,"ngClass"],[1,"content-title",3,"bxTranslate"],[1,"content-body",3,"bxTranslate"]],template:function(e,t){1&e&&(p["ɵɵtext"](0,"\n        "),p["ɵɵelementStart"](1,"div",0),p["ɵɵtext"](2,"\n            "),p["ɵɵelement"](3,"i",1),p["ɵɵtext"](4,"\n            "),p["ɵɵelementStart"](5,"p",2),p["ɵɵtext"](6,"validationCode.overlay.content.message.info.identityVerificationSubmitted"),p["ɵɵelementEnd"](),p["ɵɵtext"](7,"\n            "),p["ɵɵelementStart"](8,"p",3),p["ɵɵtext"](9,"validationCode.overlay.content.message.info.processCanTakeMinutes"),p["ɵɵelementEnd"](),p["ɵɵtext"](10,"\n        "),p["ɵɵelementEnd"](),p["ɵɵtext"](11,"\n    ")),2&e&&(p["ɵɵadvance"](3),p["ɵɵproperty"]("ngClass",t.getIconClass()))},directives:[i.NgClass,h.P],encapsulation:2}),e})(),g=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({imports:[[o.a,i.CommonModule,c.D,l.I,r.RouterModule.forChild([{path:"identity-verification/result",component:m}])]]}),e})();var f=n(54348);let v=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({imports:[[i.CommonModule,o.a,a.p,s.Z,r.RouterModule,f.J,g]]}),e})()},14186:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var i=n(23550),r=n(30986),o=n(57826);let a=(()=>{class e{constructor(e,t){this.conversionFunnelService=e,this.httpClient=t,this.buildConfirmationCodeUrl=e=>`/services/player-verification/v1/profiles/<sessionId>/operation/${e}/confirmationCode`}emit(e){this.conversionFunnelService.emit(e)}requestConfirmationCode(e){return this.httpClient.post(this.buildConfirmationCodeUrl(e),{},{withCredentials:!0})}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.Kx),o["ɵɵinject"](i.HttpClient))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},45242:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var i=n(57826);let r=(()=>{class e{constructor(){this.skipButtonStyleClass=""}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},85100:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t,n){this.type=e,this.amount=t,this.currency=n}}new i("",0,"")},67616:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var i=n(45965),r=n(55640),o=n(57826);let a=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.browserStorageService=t}isFishHunterEnabled(){return this.isFeatureFlagOrOverrideEnabled("site.config.casino.fish.hunter.enabled")}isOneworksEnabled(){return this.isFeatureFlagOrOverrideEnabled("site.config.sports.oneworks.enabled")}isMatchPayEnabled(){return this.isFeatureFlagOrOverrideEnabled("site.config.matchpay.enabled")}isCMMatchPayEnabled(){return this.isFeatureFlagOrOverrideEnabled("site.config.cm.matchpay.enabled")}isFeatureFlagOrOverrideEnabled(e){const t=this.browserStorageService.get(e);return null==t?this.siteConfigService.evalFeature(e):"true"==t}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.r),o["ɵɵinject"](r.z))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},64076:(e,t,n)=>{"use strict";n.d(t,{Q:()=>b});var i=n(6856),r=n(73753),o=n(38960),a=n(4060),s=n(84704),c=n(91184),l=n(14739),d=n(2967),u=n(94768),p=n(80823),h=n(73076),m=n(26995),g=n(67616),f=n(40606),v=n(57826);let b=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=v["ɵɵdefineNgModule"]({type:e}),e.ɵinj=v["ɵɵdefineInjector"]({providers:[o.m,l.L,d.e,u.Y,p.n,h.s,m.l,g.j,f.W],imports:[[i.CommonModule,a.P,s.a,r.RouterModule,c.nA],a.P]}),e})()},38960:(e,t,n)=>{"use strict";n.d(t,{m:()=>u});var i=n(58132),r=n(3150),o=n(23550),a=n(25695),s=n(40809),c=n(4309),l=n(42998),d=n(57826);class u{constructor(e,t){this.http=e,this.bonusListService=t}getBalances(){return this.balancesUpdates$||(this.balancesUpdates$=new c.ReplaySubject(1),this.initPolling()),this.balances$||(this.balances$=this.fetchBalance().pipe((0,l.publishLast)(),(0,l.refCount)(),(0,l.finalize)((()=>{this.balances$=null}))),this.balances$.subscribe((()=>{}))),this.balancesUpdates$}getBalancesMap(){return this.getBalances().pipe((0,l.map)((e=>s(a("type")(e),e))))}fetchBalance(){return this.http.get(u.URL_BALANCES,{withCredentials:!0}).pipe((0,l.map)((e=>{this.balancesUpdates$.next(e)})))}initPolling(){(0,c.merge)((0,c.interval)(u.POLLING_INTERVAL_MILISECONDS),this.bonusListService.onActiveBonusChange.asObservable()).pipe((0,l.mergeMap)((()=>this.fetchBalance()))).subscribe((()=>{}))}}u.POLLING_INTERVAL_MILISECONDS=3e4,u.URL_BALANCES="/services/wallet-gateway/v1/profiles/"+i.Y.SESSION_ID_PLACEHOLDER+"/balances",u.ɵfac=function(e){return new(e||u)(d["ɵɵinject"](o.HttpClient),d["ɵɵinject"](r.u))},u.ɵprov=d["ɵɵdefineInjectable"]({token:u,factory:u.ɵfac})},58710:(e,t,n)=>{"use strict";n.d(t,{r:()=>S});var i=n(64762),r=n(6856),o=n(57826),a=n(93758),s=n(35294),c=n(84781),l=n(32711),d=n(91184),u=n(25695),p=n(40809),h=n(4309),m=n(42998),g=n(85100),f=n(38960),v=n(2967),b=n(26995),y=n(40644),C=n(80823);class S extends c.d{constructor(e,t,n,i,o,a,s){super(),this.service=e,this.fishService=t,this.oneworksService=n,this.matchpayService=i,this.stateStore=o,this.monetaryAmountService=a,this.platformId=s,this.balances=l.LO.map(),this.products=l.LO.map(),(0,r.isPlatformBrowser)(this.platformId)&&(this.listenLoginStore(),this.setBalances(this.initObject()),(0,l.U5)((()=>this.mustRefresh),(()=>{this.service.getBalancesMap(),this.getFishBalanceMap(!0),this.getOneworksBalanceMap(!0),this.getMatchpayBalanceMap(!0)})),(0,h.merge)(this.service.getBalancesMap(),this.getFishBalanceMap(),this.getOneworksBalanceMap(),this.getMatchpayBalanceMap()).subscribe((e=>{this.setBalances(e),this.done()}),(()=>{this.error()})))}getFishBalanceMap(e){return this.fishService.getBalance(e).pipe((0,m.map)((e=>p(u("type")([e]),[e]))))}getOneworksBalanceMap(e){return this.oneworksService.getBalance(e).pipe((0,m.map)((e=>p(u("type")([e]),[e]))))}getMatchpayBalanceMap(e){return this.matchpayService.getBalance(e).pipe((0,m.map)((e=>p(u("type")([e]),[e]))))}get playable(){return this.balances.get(y.s.PLAYABLE).amount}get withdrawable(){return this.balances.get(y.s.WITHDRAWABLE).amount}get bonus(){return this.balances.get(y.s.BONUS).amount}get locked(){return this.balances.get(y.s.LOCKED).amount}get unlocked(){return this.balances.get(y.s.UNLOCKED).amount}get pendingWithdrawal(){return this.balances.get(y.s.PENDING_WITHDRAWAL).amount}get total(){return this.balances.get(y.s.TOTAL)}get nonPlayableBonus(){return this.balances.get(y.s.NON_PLAYABLE_BONUS)}get lockedBalance(){return this.balances.get(y.s.LOCKED)}get unlockedBalance(){return this.balances.get(y.s.UNLOCKED)}get bonusBalance(){return this.balances.get(y.s.BONUS)}get playableBalance(){return this.balances.get(y.s.PLAYABLE)}get pendingWithdrawalBalance(){return this.balances.get(y.s.PENDING_WITHDRAWAL)}get playableWithExternalWallets(){let e=this.balances.get(y.s.PLAYABLE),t=this.balances.get(y.s.FISH_HUNTER),n=this.balances.get(y.s.ONEWORKS);return e.currency?{amount:(e.amount||0)+(t.amount||0)+(n.amount||0),currency:e.currency}:this.emptyBalance()}get totalWithExternalWallets(){let e=this.balances.get(y.s.TOTAL),t=this.balances.get(y.s.FISH_HUNTER),n=this.balances.get(y.s.ONEWORKS);return e.currency?{amount:(e.amount||0)+(t.amount||0)+(n.amount||0)-(this.nonPlayableBonus.amount||0),currency:e.currency}:this.emptyBalance()}get fishHunter(){return this.balances.get(y.s.FISH_HUNTER)}get oneworks(){return this.balances.get(y.s.ONEWORKS)}get matchpay(){return this.balances.get(y.s.MATCHPAY)}get playableBalanceFormatter(){return this.getBalanceFormatter(y.s.PLAYABLE)}get playableCurrencyAmount(){return void 0===this.balances.get(y.s.PLAYABLE).amount?"":this.monetaryAmountService.format({amount:this.balances.get(y.s.PLAYABLE).amount})}get withdrawableBalanceFormatter(){return this.getBalanceFormatter(y.s.WITHDRAWABLE)}get bonusBalanceFormatter(){return this.getBalanceFormatter(y.s.BONUS)}get lockedBalanceFormatter(){return this.getBalanceFormatter(y.s.LOCKED)}get unlockedBalanceFormatter(){return this.getBalanceFormatter(y.s.UNLOCKED)}get pendingWithdrawalBalanceFormatter(){return this.getBalanceFormatter(y.s.PENDING_WITHDRAWAL)}get playableCasino(){return this.balances.get(y.s.PLAYABLE_CASINO)}get playableSports(){return this.balances.get(y.s.PLAYABLE_SPORTS)}get playablePoker(){return this.balances.get(y.s.PLAYABLE_POKER)}get playableHorses(){return this.balances.get(y.s.PLAYABLE_HORSES)}setBalances(e){Object.keys(e).forEach((t=>{this.balances.set(t,e[t])}))}getBalanceFormatter(e){let t=this.balances.get(e);return null==t.amount?"":this.monetaryAmountService.formatNativeCurrency(t.amount)}emptyBalance(){return new g.y("",void 0,"")}initObject(){return{Playable:this.emptyBalance(),PlayableCasino:this.emptyBalance(),PlayableSports:this.emptyBalance(),PlayablePoker:this.emptyBalance(),PlayableHorses:this.emptyBalance(),Withdrawable:this.emptyBalance(),Bonus:this.emptyBalance(),Locked:this.emptyBalance(),Unlocked:this.emptyBalance(),PendingWithdrawal:this.emptyBalance(),FishHunter:this.emptyBalance(),Oneworks:this.emptyBalance(),MatchPay:this.emptyBalance(),Total:this.emptyBalance(),NonPlayableBonus:this.emptyBalance()}}fetchNewBalance(){this.stateStore.loginState&&this.refresh()}listenLoginStore(){(0,l.EH)((()=>{this.stateStore.loginState?this.refresh():this.setBalances(this.initObject())}))}}S.ɵfac=function(e){return new(e||S)(o["ɵɵinject"](f.m),o["ɵɵinject"](v.e),o["ɵɵinject"](C.n),o["ɵɵinject"](b.l),o["ɵɵinject"](s.X),o["ɵɵinject"](a.S),o["ɵɵinject"](o.PLATFORM_ID))},S.ɵprov=o["ɵɵdefineInjectable"]({token:S,factory:S.ɵfac}),(0,i.__decorate)([d.LO,(0,i.__metadata)("design:type",l.vP)],S.prototype,"balances",void 0),(0,i.__decorate)([d.LO,(0,i.__metadata)("design:type",l.vP)],S.prototype,"products",void 0),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playable",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"withdrawable",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"bonus",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"locked",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"unlocked",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"pendingWithdrawal",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"total",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"nonPlayableBonus",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"lockedBalance",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"unlockedBalance",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"bonusBalance",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableBalance",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"pendingWithdrawalBalance",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableWithExternalWallets",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"totalWithExternalWallets",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"fishHunter",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"oneworks",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"matchpay",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableBalanceFormatter",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableCurrencyAmount",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"withdrawableBalanceFormatter",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"bonusBalanceFormatter",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"lockedBalanceFormatter",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"unlockedBalanceFormatter",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"pendingWithdrawalBalanceFormatter",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableCasino",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableSports",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playablePoker",null),(0,i.__decorate)([d.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableHorses",null),(0,i.__decorate)([d.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],S.prototype,"setBalances",null)},14739:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var i=n(23550),r=n(42998),o=n(85100),a=n(40644),s=n(57826);let c=(()=>{class e{constructor(e){this.http=e}getBalance(e="<sessionId>"){let t=`/services/casino/casino-integration-services/v1/agfishhunter/sites/<siteId>/players/${e}/balance`;return this.http.get(t,{withCredentials:!0}).pipe((0,r.map)((e=>new o.y(a.s.FISH_HUNTER,this.fromCents(e.balance),e.currency))))}fromCents(e){return(e||0)/100}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.HttpClient))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},2967:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var i=n(6856),r=n(57826),o=n(4309),a=n(42998),s=n(67616),c=n(14739);let l=(()=>{class e{constructor(t,n,r){this.fishHunterBalanceService=t,this.balanceConfigService=n,this.platformId=r,this.forceRefresh$=new o.BehaviorSubject(!0),this.holdBalance$=new o.BehaviorSubject(!1),(0,i.isPlatformBrowser)(this.platformId)&&(this.balances$=(0,o.combineLatest)(this.holdBalance$.pipe((0,a.distinctUntilChanged)(),(0,a.switchMap)((t=>(0,o.iif)((()=>!t),(0,o.timer)(0,e.POLLING_INTERVAL_MS),o.EMPTY)))),this.forceRefresh$).pipe((0,a.filter)((()=>this.balanceConfigService.isFishHunterEnabled())),(0,a.switchMap)((()=>this.fishHunterBalanceService.getBalance().pipe((0,a.onErrorResumeNext)(o.EMPTY)))),(0,a.share)()),this.balances$.subscribe((e=>this.holdBalance$.next(0===e.amount))))}getBalance(e){return e&&!this.holdBalance$.value?this.forceRefresh$.next(!0):e&&this.holdBalance$.value&&this.holdBalance$.next(!1),this.balances$}}return e.POLLING_INTERVAL_MS=18e4,e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](c.L),r["ɵɵinject"](s.j),r["ɵɵinject"](r.PLATFORM_ID))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},73076:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var i=n(58132),r=n(23550),o=n(42998),a=n(85100),s=n(40644),c=n(57826);let l=(()=>{class e{constructor(e){this.http=e}getBalance(e){let t=`/services/ecomm/matchpay/${i.Y.SESSION_ID_PLACEHOLDER}/balance`;return this.http.get(t,{headers:e,withCredentials:!0}).pipe((0,o.map)((e=>new a.y(s.s.MATCHPAY,e.balance,e.currency))))}}return e.ɵfac=function(t){return new(t||e)(c["ɵɵinject"](r.HttpClient))},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},26995:(e,t,n)=>{"use strict";n.d(t,{l:()=>d});var i=n(6856),r=n(57826),o=n(35294),a=n(4309),s=n(42998),c=n(67616),l=n(73076);let d=(()=>{class e{constructor(t,n,r,o){this.matchpayBalanceService=t,this.balanceConfigService=n,this.stateStore=r,this.platformId=o,this.forceRefresh$=new a.BehaviorSubject(!0),this.holdBalance$=new a.BehaviorSubject(!1),(0,i.isPlatformBrowser)(this.platformId)&&(this.balances$=(0,a.combineLatest)(this.holdBalance$.pipe((0,s.distinctUntilChanged)(),(0,s.switchMap)((t=>(0,a.iif)((()=>!t),(0,a.timer)(0,e.POLLING_INTERVAL_MS),a.EMPTY)))),this.forceRefresh$).pipe((0,s.filter)((()=>this.balanceConfigService.isMatchPayEnabled()&&this.isUserLogged())),(0,s.switchMap)((()=>this.matchpayBalanceService.getBalance().pipe((0,s.onErrorResumeNext)(a.EMPTY)))),(0,s.share)()),this.balances$.subscribe((e=>this.holdBalance$.next(0===e.amount))))}getBalance(e){return e&&!this.holdBalance$.value?this.forceRefresh$.next(!0):e&&this.holdBalance$.value&&this.holdBalance$.next(!1),this.balances$}isUserLogged(){return this.stateStore.loginState}}return e.POLLING_INTERVAL_MS=18e4,e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](l.s),r["ɵɵinject"](c.j),r["ɵɵinject"](o.X),r["ɵɵinject"](r.PLATFORM_ID))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},94768:(e,t,n)=>{"use strict";n.d(t,{Y:()=>c});var i=n(23550),r=n(42998),o=n(85100),a=n(40644),s=n(57826);let c=(()=>{class e{constructor(e){this.http=e}getBalance(e){return this.http.get("/services/sports/oneworks/v1/balance",{headers:e,withCredentials:!0}).pipe((0,r.map)((e=>new o.y(a.s.ONEWORKS,e.balance,e.currency))))}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.HttpClient))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},80823:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var i=n(6856),r=n(57826),o=n(35294),a=n(4309),s=n(42998),c=n(67616),l=n(94768);let d=(()=>{class e{constructor(t,n,r,o){this.oneworksBalanceService=t,this.balanceConfigService=n,this.stateStore=r,this.platformId=o,this.forceRefresh$=new a.BehaviorSubject(!0),this.holdBalance$=new a.BehaviorSubject(!1),(0,i.isPlatformBrowser)(this.platformId)&&(this.balances$=(0,a.combineLatest)(this.holdBalance$.pipe((0,s.distinctUntilChanged)(),(0,s.switchMap)((t=>(0,a.iif)((()=>!t),(0,a.timer)(0,e.POLLING_INTERVAL_MS),a.EMPTY)))),this.forceRefresh$).pipe((0,s.filter)((()=>this.balanceConfigService.isOneworksEnabled()&&this.isUserLogged())),(0,s.switchMap)((()=>this.oneworksBalanceService.getBalance().pipe((0,s.onErrorResumeNext)(a.EMPTY)))),(0,s.share)()),this.balances$.subscribe((e=>this.holdBalance$.next(0===e.amount))))}getBalance(e){return e&&!this.holdBalance$.value?this.forceRefresh$.next(!0):e&&this.holdBalance$.value&&this.holdBalance$.next(!1),this.balances$}isUserLogged(){return this.stateStore.loginState}}return e.POLLING_INTERVAL_MS=18e4,e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](l.Y),r["ɵɵinject"](c.j),r["ɵɵinject"](o.X),r["ɵɵinject"](r.PLATFORM_ID))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},40644:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});let i=(()=>{class e{}return e.PLAYABLE="Playable",e.PLAYABLE_CASINO="PlayableCasino",e.PLAYABLE_SPORTS="PlayableSports",e.PLAYABLE_POKER="PlayablePoker",e.PLAYABLE_HORSES="PlayableHorses",e.NON_PLAYABLE_BONUS="NonPlayableBonus",e.WITHDRAWABLE="Withdrawable",e.BONUS="Bonus",e.LOCKED="Locked",e.UNLOCKED="Unlocked",e.PENDING_WITHDRAWAL="PendingWithdrawal",e.FISH_HUNTER="FishHunter",e.ONEWORKS="Oneworks",e.MATCHPAY="MatchPay",e.TOTAL="Total",e})()},46821:function(e,t,n){var i;!function(r){"use strict";var o,a=1e6,s={},c=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function l(e,t,n){var i=e.constructor,r=t-(e=new i(e)).e,o=e.c;for(o.length>++t&&d(e,r,i.RM),o[0]?n?r=t:(o=e.c,r=e.e+r+1):++r;o.length<r;o.push(0));return r=e.e,1===n||n&&(t<=r||r<=i.E_NEG)?(e.s<0&&o[0]?"-":"")+(o.length>1?o[0]+"."+o.join("").slice(1):o[0])+(r<0?"e":"e+")+r:e.toString()}function d(e,t,n,i){var r,o=e.c,a=e.e+t+1;if(1===n?i=o[a]>=5:2===n?i=o[a]>5||5==o[a]&&(i||a<0||o[a+1]!==r||1&o[a-1]):3===n?i=i||o[a]!==r||a<0:(i=!1,0!==n&&u("!Big.RM!")),a<1||!o[0])i?(e.e=-t,e.c=[1]):e.c=[e.e=0];else{if(o.length=a--,i)for(;++o[a]>9;)o[a]=0,a--||(++e.e,o.unshift(1));for(a=o.length;!o[--a];o.pop());}return e}function u(e){var t=new Error(e);throw t.name="BigError",t}s.abs=function(){var e=new this.constructor(this);return e.s=1,e},s.cmp=function(e){var t,n=this,i=n.c,r=(e=new n.constructor(e)).c,o=n.s,a=e.s,s=n.e,c=e.e;if(!i[0]||!r[0])return i[0]?o:r[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=c)return s>c^t?1:-1;for(o=-1,a=(s=i.length)<(c=r.length)?s:c;++o<a;)if(i[o]!=r[o])return i[o]>r[o]^t?1:-1;return s==c?0:s>c^t?1:-1},s.div=function(e){var t=this,n=t.constructor,i=t.c,r=(e=new n(e)).c,o=t.s==e.s?1:-1,s=n.DP;if((s!==~~s||s<0||s>a)&&u("!Big.DP!"),!i[0]||!r[0])return i[0]==r[0]&&u(NaN),r[0]||u(o/0),new n(0*o);var c,l,p,h,m,g,f=r.slice(),v=c=r.length,b=i.length,y=i.slice(0,c),C=y.length,S=e,x=S.c=[],w=0,E=s+(S.e=t.e-e.e)+1;for(S.s=o,o=E<0?0:E,f.unshift(0);C++<c;y.push(0));do{for(p=0;p<10;p++){if(c!=(C=y.length))h=c>C?1:-1;else for(m=-1,h=0;++m<c;)if(r[m]!=y[m]){h=r[m]>y[m]?1:-1;break}if(!(h<0))break;for(l=C==c?r:f;C;){if(y[--C]<l[C]){for(m=C;m&&!y[--m];y[m]=9);--y[m],y[C]+=10}y[C]-=l[C]}for(;!y[0];y.shift());}x[w++]=h?p:++p,y[0]&&h?y[C]=i[v]||0:y=[i[v]]}while((v++<b||y[0]!==g)&&o--);return x[0]||1==w||(x.shift(),S.e--),w>E&&d(S,s,n.RM,y[0]!==g),S},s.eq=function(e){return!this.cmp(e)},s.gt=function(e){return this.cmp(e)>0},s.gte=function(e){return this.cmp(e)>-1},s.lt=function(e){return this.cmp(e)<0},s.lte=function(e){return this.cmp(e)<1},s.sub=s.minus=function(e){var t,n,i,r,o=this,a=o.constructor,s=o.s,c=(e=new a(e)).s;if(s!=c)return e.s=-c,o.plus(e);var l=o.c.slice(),d=o.e,u=e.c,p=e.e;if(!l[0]||!u[0])return u[0]?(e.s=-c,e):new a(l[0]?o:0);if(s=d-p){for((r=s<0)?(s=-s,i=l):(p=d,i=u),i.reverse(),c=s;c--;i.push(0));i.reverse()}else for(n=((r=l.length<u.length)?l:u).length,s=c=0;c<n;c++)if(l[c]!=u[c]){r=l[c]<u[c];break}if(r&&(i=l,l=u,u=i,e.s=-e.s),(c=(n=u.length)-(t=l.length))>0)for(;c--;l[t++]=0);for(c=t;n>s;){if(l[--n]<u[n]){for(t=n;t&&!l[--t];l[t]=9);--l[t],l[n]+=10}l[n]-=u[n]}for(;0===l[--c];l.pop());for(;0===l[0];)l.shift(),--p;return l[0]||(e.s=1,l=[p=0]),e.c=l,e.e=p,e},s.mod=function(e){var t,n=this,i=n.constructor,r=n.s,o=(e=new i(e)).s;return e.c[0]||u(NaN),n.s=e.s=1,t=1==e.cmp(n),n.s=r,e.s=o,t?new i(n):(r=i.DP,o=i.RM,i.DP=i.RM=0,n=n.div(e),i.DP=r,i.RM=o,this.minus(n.times(e)))},s.add=s.plus=function(e){var t,n=this,i=n.constructor,r=n.s,o=(e=new i(e)).s;if(r!=o)return e.s=-o,n.minus(e);var a=n.e,s=n.c,c=e.e,l=e.c;if(!s[0]||!l[0])return l[0]?e:new i(s[0]?n:0*r);if(s=s.slice(),r=a-c){for(r>0?(c=a,t=l):(r=-r,t=s),t.reverse();r--;t.push(0));t.reverse()}for(s.length-l.length<0&&(t=l,l=s,s=t),r=l.length,o=0;r;)o=(s[--r]=s[r]+l[r]+o)/10|0,s[r]%=10;for(o&&(s.unshift(o),++c),r=s.length;0===s[--r];s.pop());return e.c=s,e.e=c,e},s.pow=function(e){var t=this,n=new t.constructor(1),i=n,r=e<0;for((e!==~~e||e<-1e6||e>1e6)&&u("!pow!"),e=r?-e:e;1&e&&(i=i.times(t)),e>>=1;)t=t.times(t);return r?n.div(i):i},s.round=function(e,t){var n=this,i=n.constructor;return null==e?e=0:(e!==~~e||e<0||e>a)&&u("!round!"),d(n=new i(n),e,null==t?i.RM:t),n},s.sqrt=function(){var e,t,n,i=this,r=i.constructor,o=i.c,a=i.s,s=i.e,c=new r("0.5");if(!o[0])return new r(i);a<0&&u(NaN),0===(a=Math.sqrt(i.toString()))||a===1/0?((e=o.join("")).length+s&1||(e+="0"),(t=new r(Math.sqrt(e).toString())).e=((s+1)/2|0)-(s<0||1&s)):t=new r(a.toString()),a=t.e+(r.DP+=4);do{n=t,t=c.times(n.plus(i.div(n)))}while(n.c.slice(0,a).join("")!==t.c.slice(0,a).join(""));return d(t,r.DP-=4,r.RM),t},s.mul=s.times=function(e){var t,n=this,i=n.constructor,r=n.c,o=(e=new i(e)).c,a=r.length,s=o.length,c=n.e,l=e.e;if(e.s=n.s==e.s?1:-1,!r[0]||!o[0])return new i(0*e.s);for(e.e=c+l,a<s&&(t=r,r=o,o=t,l=a,a=s,s=l),t=new Array(l=a+s);l--;t[l]=0);for(c=s;c--;){for(s=0,l=a+c;l>c;)s=t[l]+o[c]*r[l-c-1]+s,t[l--]=s%10,s=s/10|0;t[l]=(t[l]+s)%10}for(s&&++e.e,t[0]||t.shift(),c=t.length;!t[--c];t.pop());return e.c=t,e},s.toString=s.valueOf=s.toJSON=function(){var e=this,t=e.constructor,n=e.e,i=e.c.join(""),r=i.length;if(n<=t.E_NEG||n>=t.E_POS)i=i.charAt(0)+(r>1?"."+i.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;i="0"+i);i="0."+i}else if(n>0)if(++n>r)for(n-=r;n--;i+="0");else n<r&&(i=i.slice(0,n)+"."+i.slice(n));else r>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&e.c[0]?"-"+i:i},s.toExponential=function(e){return null==e?e=this.c.length-1:(e!==~~e||e<0||e>a)&&u("!toExp!"),l(this,e,1)},s.toFixed=function(e){var t,n=this,i=n.constructor,r=i.E_NEG,o=i.E_POS;return i.E_NEG=-(i.E_POS=1/0),null==e?t=n.toString():e===~~e&&e>=0&&e<=a&&(t=l(n,n.e+e),n.s<0&&n.c[0]&&t.indexOf("-")<0&&(t="-"+t)),i.E_NEG=r,i.E_POS=o,t||u("!toFix!"),t},s.toPrecision=function(e){return null==e?this.toString():((e!==~~e||e<1||e>a)&&u("!toPre!"),l(this,e-1,2))},o=function e(){function t(n){var i=this;if(!(i instanceof t))return void 0===n?e():new t(n);n instanceof t?(i.s=n.s,i.e=n.e,i.c=n.c.slice()):function(e,t){var n,i,r;for(0===t&&1/t<0?t="-0":c.test(t+="")||u(NaN),e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),r=t.length,i=0;i<r&&"0"==t.charAt(i);i++);if(i==r)e.c=[e.e=0];else{for(;r>0&&"0"==t.charAt(--r););for(e.e=n-i-1,e.c=[];i<=r;e.c.push(+t.charAt(i++)));}}(i,n),i.constructor=t}return t.prototype=s,t.DP=20,t.RM=1,t.E_NEG=-7,t.E_POS=21,t}(),void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},95238:function(e){e.exports=function(){"use strict";function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var t="millisecond",n="second",i="minute",r="hour",o="day",a="week",s="month",c="year",l="date",d=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},m={padStart:h,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),i=t%60;return(e<=0?"+":"-")+h(n,2,"0")+":"+h(i,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months"),r=t-i<0,o=e.clone().add(n+(r?-1:1),"months"),a=Number(-(n+(t-i)/(r?i-o:o-i)));return 0===Math.abs(a)?0:a},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(e){return{M:s,y:c,w:a,d:o,h:r,m:i,s:n,ms:t}[e]||String(e||"").toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},g="en",f={};f[g]=p;var v=function(e){return e instanceof x},b=function(e,t,n){var i;if(!e)return null;if("string"==typeof e)f[e]&&(i=e),t&&(f[e]=t,i=e);else{var r=e.name;f[r]=e,i=r}return n||(g=i),i},y=function(e,t){if(v(e)){if(!t)return e.clone();e=e.toDate()}var n=t||{};return e instanceof Date&&!1!==n.cloneDate&&(e=new Date(e)),n.date=e,new x(n)},C=function(e,t,n){return y(e,{locale:t.$L,utc:t.$u,cloneDate:n})},S=m;S.parseLocale=b,S.getLocale=function(e){if("string"==typeof e)return f[e];if(e){var t=e.name;f[t]=e}else e=f[g];return e},S.isDayjs=v,S.wrapper=C;var x=function(){function e(e){this.parse(e)}var p=e.prototype;return p.parse=function(e){this.$d=function(e){var t,n=e.date;if(null===n)return new Date(NaN);if(S.isUndefined(n))return new Date;if(n instanceof Date)return n;if("string"==typeof n&&n.charCodeAt(n.length-1)<=57&&(t=n.match(d))){var i=t[1],r=t[2]-1,o=t[3]||1,a=t[5]||0,s=t[6]||0,c=t[7]||0,l=t[8]||0;return e&&e.utc?new Date(Date.UTC(i,r,o,a,s,c,l)):new Date(i,r,o,a,s,c,l)}return new Date(n)}(e),this.init(e)},p.init=function(e){var t=e&&!!e.utc,n=this.$d;this.$u=t,this.$ms=t?(this.$y=n.getUTCFullYear(),this.$M=n.getUTCMonth(),this.$D=n.getUTCDate(),this.$W=n.getUTCDay(),this.$H=n.getUTCHours(),this.$m=n.getUTCMinutes(),this.$s=n.getUTCSeconds(),n.getUTCMilliseconds()):(this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),n.getMilliseconds()),this.$L=this.$L||b(e.locale,null,!0)||g},p.$utils=function(){return S},p.isValid=function(){return!("Invalid Date"===this.$d.toString())},p.$compare=function(e){return this.valueOf()-y(e).valueOf()},p.isSame=function(e){return 0===this.$compare(e)},p.isBefore=function(e){return this.$compare(e)<0},p.isAfter=function(e){return 0<this.$compare(e)},p.year=function(){return this.$y},p.month=function(){return this.$M},p.day=function(){return this.$W},p.date=function(){return this.$D},p.hour=function(){return this.$H},p.minute=function(){return this.$m},p.second=function(){return this.$s},p.millisecond=function(){return this.$ms},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,t){var d=this,u=!!S.isUndefined(t)||t,p=S.prettyUnit(e),h=this.$u?["setUTCHours","setUTCMinutes","setUTCSeconds","setUTCMilliseconds"]:["setHours","setMinutes","setSeconds","setMilliseconds"],m=function(e,t){var n=d.$u?new Date(Date.UTC(d.$y,t,e)):new Date(d.$y,t,e),i=C(n,d,!1);return u?i:i.endOf(o)},g=function(e){var t=d.toDate();return C(t[h[e]].apply(t,u?[0,0,0,0].slice(e):[23,59,59,999].slice(e)),d,!1)};switch(p){case c:return u?m(1,0):m(31,11);case s:return u?m(1,this.$M):m(0,this.$M+1);case a:return m(u?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case o:case l:return g(0);case r:return g(1);case i:return g(2);case n:return g(3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(e,a){var d=S.prettyUnit(e),u=this.$u?{year:"setUTCFullYear",month:"setUTCMonth",date:"setUTCDate",hours:"setUTCHours",minutes:"setUTCMinutes",seconds:"setUTCSeconds",milliseconds:"setUTCMilliseconds"}:{year:"setFullYear",month:"setMonth",date:"setDate",hours:"setHours",minutes:"setMinutes",seconds:"setSeconds",milliseconds:"setMilliseconds"};switch(d){case o:this.$d[u.date](this.$D+(a-this.$W));break;case l:this.$d[u.date](a);break;case s:this.$d[u.month](a);break;case c:this.$d[u.year](a);break;case r:this.$d[u.hours](a);break;case i:this.$d[u.minutes](a);break;case n:this.$d[u.seconds](a);break;case t:this.$d[u.milliseconds](a)}return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.add=function(e,t){var d=this;e=Number(e);var u,p=S.prettyUnit(t),h=function(t,n){var i=d.set(l,1).set(t,n+e);return i.set(l,Math.min(d.$D,i.daysInMonth()))},m=function(t){var n=new Date(d.$d);return n.setDate(n.getDate()+t*e),C(n,d)};if(p===s)return h(s,this.$M);if(p===c)return h(c,this.$y);if(p===o)return m(1);if(p===a)return m(7);switch(p){case i:u=6e4;break;case r:u=36e5;break;case n:u=1e3;break;default:u=1}var g=this.valueOf()+e*u;return C(g,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=e||"YYYY-MM-DDTHH:mm:ssZ",i=this.$u?"+00:00":S.padZoneStr(this.$d.getTimezoneOffset()),r=this.$locale(),o=r.weekdays,a=r.months,s=function(e,t,n,i){return e&&e[t]||n[t].substr(0,i)};return n.replace(u,(function(e){if(-1<e.indexOf("["))return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return String(t.$y);case"M":return String(t.$M+1);case"MM":return S.padStart(t.$M+1,2,"0");case"MMM":return s(r.monthsShort,t.$M,a,3);case"MMMM":return a[t.$M];case"D":return String(t.$D);case"DD":return S.padStart(t.$D,2,"0");case"d":return String(t.$W);case"dd":return s(r.weekdaysMin,t.$W,o,2);case"ddd":return s(r.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(t.$H);case"HH":return S.padStart(t.$H,2,"0");case"h":case"hh":return 0===t.$H?12:S.padStart(t.$H<13?t.$H:t.$H-12,"hh"===e?2:1,"0");case"a":return t.$H<12?"am":"pm";case"A":return t.$H<12?"AM":"PM";case"m":return String(t.$m);case"mm":return S.padStart(t.$m,2,"0");case"s":return String(t.$s);case"ss":return S.padStart(t.$s,2,"0");case"SSS":return S.padStart(t.$ms,3,"0");case"Z":return i;default:return i.replace(":","")}}))},p.diff=function(e,t,l){var d=S.prettyUnit(t),u=y(e),p=this-u,h=S.monthDiff(this,u);switch(d){case c:h/=12;break;case s:break;case"quarter":h/=3;break;case a:h=p/6048e5;break;case o:h=p/864e5;break;case r:h=p/36e5;break;case i:h=p/6e4;break;case n:h=p/1e3;break;default:h=p}return l?h:S.absFloor(h)},p.daysInMonth=function(){return this.endOf(s).$D},p.$locale=function(){return f[this.$L]},p.locale=function(e,t){var n=this.clone();return n.$L=b(e,t,!0),n},p.clone=function(){return C(this.toDate(),this,!1)},p.toDate=function(){return new Date(this.$d)},p.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},p.toJSON=function(){return this.toISOString()},p.toISOString=function(){return this.$d.toISOString()},p.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},p.toString=function(){return this.$d.toUTCString()},p.isUTC=function(){return this.$u},p.utc=function(){return y(this.$d.valueOf(),{locale:this.$L,utc:!0})},p.local=function(){return y(this.$d.valueOf(),{locale:this.$L,utc:!1})},p.utcOffset=function(){return this.$u?0:this.$d.getTimezoneOffset()},e}();return y.prototype=x.prototype,y.utc=function(t,n){var i=e({},n,{utc:!0});return y(t,i)},y.extend=function(e,t){return e(t,x,y),y},y.locale=b,y.isDayjs=v,y.unix=function(e){return y(1e3*e)},y.en=f[g],y}()},94600:function(e){e.exports=function(){"use strict";var e=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,t=/\d\d/,n=/\d\d?/,i=/[+-]\d\d:?\d\d/,r={},o={},a={},s=[31,0,31,30,31,30,31,31,30,31,30,31];function c(t){var n=t.match(e);if(!n)throw new Error('Invalid format: "'+t+'".');for(var i=n.length,a=0;a<i;a+=1){var c=n[a],l=r[c],d=o[c];n[a]=d?{regex:l,parser:d}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,o=0;r<i;r+=1){var a=n[r];if("string"==typeof a){if(e.indexOf(a,o)!==o){var c=e.substr(o,a.length);throw new Error('Expected "'+a+'" at character '+o+', found "'+c+'".')}o+=a.length}else{var l=a.regex,d=a.parser,u=e.substr(o),p=l.exec(u);if(!p||0!==p.index)throw new Error('Matching "'+l+'" at character '+o+' failed with "'+u+'".');var h=p[0];d.call(t,h),o+=h.length}}return function(e){var t,n,i=e.day,r=e.month;if(t=2===r?(n=e.year)%4==0&&n%100!=0||n%400==0?29:28:s[r-1],!(1<=i&&i<=t))throw new Error('Invalid day: "'+i+'".')}(t),function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}function l(e,t){r[e]=t}function d(e,t,n){var i;"string"==typeof e&&(e=[e]),i="string"==typeof t?n?function(e){var i=+e;if(!n(i))throw new Error("Invalid "+t+': "'+e+'".');this[t]=i}:function(e){this[t]=+e}:t;for(var r=0,a=e.length;r<a;r+=1)o[e[r]]=i}l("A",/[AP]M/),d(["A"],(function(e){this.afternoon="PM"===e})),l("a",/[ap]m/),d(["a"],(function(e){this.afternoon="pm"===e})),l("S",/\d/),l("SS",t),l("SSS",/\d{3}/);for(var u=function(e,t){d(e,(function(e){this.milliseconds=+e*t}))},p="S",h=100;1<=h;p+="S",h/=10)u(p,h);return l("s",n),l("ss",t),d(["s","ss"],"seconds",(function(e){return e<=59})),l("m",n),l("mm",t),d(["m","mm"],"minutes",(function(e){return e<=59})),l("H",n),l("h",n),l("HH",t),l("hh",t),d(["H","HH"],"hours",(function(e){return e<=23})),d(["h","hh"],"hours",(function(e){return 1<=e&&e<=12})),l("D",n),l("DD",t),d(["D","DD"],"day"),l("M",n),l("MM",t),d(["M","MM"],"month",(function(e){return 1<=e&&e<=12})),l("Y",/[+-]?\d+/),l("YY",t),l("YYYY",/\d{4}/),d(["Y","YYYY"],"year"),d("YY",(function(e){e=+e,this.year=e+(68<e?1900:2e3)})),l("z",/[A-Z]{3,4}/),d("z",(function(e){(this.zone||(this.zone={})).abbreviation=e})),l("Z",i),l("ZZ",i),d(["Z","ZZ"],(function(e){(this.zone||(this.zone={})).offset=function(e){var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+ +t[2],i=0===n?0:"+"===t[0]?-n:n;if(!(i%15==0&&Math.abs(i)<=765))throw new Error('Invalid time zone offset: "'+e+'".');return i}(e)})),function(e,t){var n=t.prototype,i=n.parse;n.parse=function(e){var t,n,r,o=e.date,s=e.format;if(s){try{var l,d=(t=o,(r=a[n=s])||(r=c(n),a[n]=r),r(t)),u=d.year,p=d.month,h=d.day,m=d.hours,g=d.minutes,f=d.seconds,v=d.milliseconds,b=d.zone;if(b){var y=Date.UTC(u,p-1,h,m||0,g||0,f||0,v||0)+60*b.offset*1e3;l=new Date(y)}else l=new Date(u,p-1,h,m||0,g||0,f||0,v||0);this.$d=l}catch(e){this.$d=new Date(Number.NaN)}this.init(e)}else i.call(this,e)}}}()},52179:function(e,t,n){e.exports=function(e){"use strict";return function(t,n,i){var r=n.prototype;i.en.relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};var o=function(t,n,r,o){var a,s,c=r.$locale(),l=c.relativeTime,d=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],u=d.length;!function(e){var t,n,i,r,o,a;e.s&&(n=(t=e).future,i=t.past,r=Object.keys(t).reduce((function(e,n){var i=n.length;if(i<=2){var r=t[n];if(1===i){e[n]=r;var o=n+n,a=e[o];a||(a=e[o]=[]),a.unshift(r)}else{var s=e[n];s||(s=e[n]=[]),s.push(r)}}return delete t[n],e}),{}),o={},a={},Object.keys(r).forEach((function(e){var t=r[e];a[e]="string"==typeof t?(o[e]=n.replace("%s",t),i.replace("%s",t)):(o[e]=t.map((function(e){return n.replace("%s",e)})),t.map((function(e){return i.replace("%s",e)})))})),t.duration=r,t.future=o,t.past=a)}(l);for(var p=0;p<u;p+=1){var h=d[p],m=h.d;m&&(a=o?i(t).diff(r,m,!0):r.diff(t,m,!0));var g=Math.ceil(Math.abs(a)),f=h.r;if(g<=f||!f){var v=void 0;v=n?l.duration:0<a?l.future:l.past;var b=h.l;s=1===b.length?v[b]:v[b][e.getPluralFormForCardinalByLocale(c.name,g)].replace("%d",g);break}}return s};r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)},r.toNow=function(e){return this.to(i(),e)},r.fromNow=function(e){return this.from(i(),e)}}}(n(60109))},92778:function(e,t,n){e.exports=function(e){"use strict";function t(e){return 9<e?e:"0"+e}function n(e,n){return(e<=0?(e=-e,"+"):"-")+t(Math.floor(e/60))+n+t(e%60)}return function(t,i){var r=i.prototype,o=r.parse,a=r.format;r.parse=function(t){o.call(this,t);var n=t.timeZone,i=t.convertTimeZone;if(n){var r=this.$d;try{var a=e.findTimeZone(n);!function(e,t,n){var i=t.year,r=t.month,o=t.day,a=t.dayOfWeek,s=t.hours,c=t.minutes,l=t.epoch,d=t.zone,u=e.$d;if(u.setTime(l),n){e.$Y=i,e.$M=r-1,e.$D=o,e.$W=a,e.$H=s,e.$m=c;var p=d.abbreviation,h=d.offset;e.$z=p,e.$o=h}else e.$Y=u.getFullYear(),e.$M=u.getMonth(),e.$D=u.getDate(),e.$W=u.getDay(),e.$H=u.getHours(),e.$m=u.getMinutes()}(this,i?e.getZonedTime(r,a):e.setTimeZone(r,a,{useUTC:!1}),i)}catch(n){r.setTime(Number.NaN),this.init(t)}}},r.format=function(e,t){void 0===t&&(t={}),"object"!=typeof e||e instanceof String||(t=e,e=void 0);var r,o,s=t.timeZone;return s?(r=new i({date:this.$d.valueOf(),locale:this.$L,timeZone:s,convertTimeZone:!0}),o=r,e=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/z|ZZ|Z/g,(function(e){switch(e){case"z":return"["+o.$z+"]";case"Z":return n(o.$o,":");default:return n(o.$o,"")}}))):r=this,a.call(r,e)}}}(n(69033))},93105:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,r)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,i){var r,o,a,l;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=c(e))>0&&a.length>r&&!a.warned){a.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=a.length,l=d,console&&console.warn&&console.warn(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):m(r,r.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function g(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(o){i.once&&e.removeEventListener(t,r),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var l=c.length,d=m(c,l);for(n=0;n<l;++n)i(d[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,u(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,u(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,r,o,a;if(s(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},60109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[function(){return 0},function(e){return 1===e?0:1},function(e){return e<=1?0:1},function(e){return e%10==1&&e%100!=11?0:e%10!=0?1:2},function(e){return 1===e||11===e?0:2===e||12===e?1:e>2&&e<20?2:3},function(e){return 1===e?0:0===e||e%100>0&&e%100<20?1:2},function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},function(e){return 1===e?0:e>=2&&e<=4?1:2},function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},function(e){return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3},function(e){return 1===e?0:2===e?1:e>2&&e<7?2:e>6&&e<11?3:4},function(e){return 1===e?0:2===e?1:e%100>=3&&e%100<=10?2:e%100>=11?3:0!==e?4:5},function(e){return 1===e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},function(e){return e%10==1?0:e%10==2?1:2},function(e){return e%10==1&&e%100!=11?0:1},function(e){return e%10==1&&e%100!=11&&e%100!=71&&e%100!=91?0:e%10==2&&e%100!=12&&e%100!=72&&e%100!=92?2:e%10==3&&e%100!=13&&e%100!=73&&e%100!=93||e%10==4&&e%100!=14&&e%100!=74&&e%100!=94||e%10==9&&e%100!=19&&e%100!=79&&e%100!=99?3:4},function(e){return 0!==e?0:1},function(e){return 1===e?0:2===e?1:3===e?2:6===e?3:0!==e?4:5},function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},function(e){return 1===e?0:2===e?1:3===e?2:3},function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},function(e){return 0===e?0:1===e?1:2}],i={ach:2,af:1,ak:2,am:2,an:1,anp:1,ar:12,arn:2,as:1,ast:1,ay:0,az:1,be:7,bg:1,bn:1,bo:0,br:2,brx:1,bs:7,ca:1,cgg:0,cs:8,csb:19,cy:18,da:1,de:1,doi:1,dz:0,el:1,en:1,eo:1,es:1,"es-ar":1,et:1,eu:1,fa:2,ff:1,fi:1,fil:2,fo:1,fr:2,fur:1,fy:1,ga:11,gd:4,gl:1,gu:1,gun:2,ha:1,he:1,hi:1,hne:1,hr:7,hu:1,hy:1,ia:1,id:0,is:15,it:1,ja:0,jbo:0,jv:17,ka:0,kk:1,kl:1,km:0,kn:1,ko:0,ku:1,kw:20,ky:1,lb:1,ln:2,lo:0,lt:6,lv:3,mai:1,me:21,mfe:2,mg:2,mi:2,mk:15,ml:1,mn:1,mni:1,mnk:22,mr:1,ms:0,mt:13,my:0,nah:1,nap:1,nb:1,ne:1,nl:1,nn:1,no:1,nso:1,oc:2,or:1,pa:1,pap:1,pl:9,pms:1,ps:1,pt:1,"pt-br":2,rm:1,ro:5,ru:7,rw:1,sah:0,sat:1,sco:1,sd:1,se:1,si:1,sk:8,sl:10,so:1,son:1,sq:1,sr:7,su:0,sv:1,sw:1,ta:1,te:1,tg:2,th:0,ti:2,tk:1,tr:2,tt:0,ug:0,uk:7,ur:1,uz:2,vi:0,wa:2,wo:0,yo:1,"zh-cn":0,"zh-tw":2};function r(e){e=function(e){return e.toLowerCase().replace("_","-")}(e);var t=i[e];if(void 0===t){var r=function(e){var t=e.indexOf("-");return t>0?e.substr(0,t):e}(e);t=i[r]}if(void 0===t)throw new Error('Unrecognized locale: "'+e+'".');return n[t]}function o(e){var t=n[e];if(void 0===t)throw new Error('Invalid index: "'+e+'".');return t}t.getPluralRuleForCardinalsByLocale=r,t.getPluralFormForCardinalByLocale=function(e,t){return r(e)(t)},t.getPluralRuleForCardinalsByIndex=o,t.getPluralFormForCardinalByIndex=function(e,t){return o(e)(t)}},11524:(e,t,n)=>{var i;!function(r,o,a,s){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],d=o.createElement("div"),u=Math.round,p=Math.abs,h=Date.now;function m(e,t,n){return setTimeout(S(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(f(e,n[t],n),!0)}function f(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function v(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),e.apply(this,arguments)}}c="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign;var b=v((function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&e[i[r]]===s)&&(e[i[r]]=t[i[r]]),r++;return e}),"extend","Use `assign`."),y=v((function(e,t){return b(e,t,!0)}),"merge","Use `assign`.");function C(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&c(i,n)}function S(e,t){return function(){return e.apply(t,arguments)}}function x(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function w(e,t){return e===s?t:e}function E(e,t,n){f(_(t),(function(t){e.addEventListener(t,n,!1)}))}function I(e,t,n){f(_(t),(function(t){e.removeEventListener(t,n,!1)}))}function P(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return e.indexOf(t)>-1}function _(e){return e.trim().split(/\s+/g)}function M(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function O(e){return Array.prototype.slice.call(e,0)}function A(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];M(r,a)<0&&i.push(e[o]),r[o]=a,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function k(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),o=0;o<l.length;){if((i=(n=l[o])?n+r:t)in e)return i;o++}return s}var j=1;function N(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}var R="ontouchstart"in r,D=k(r,"PointerEvent")!==s,L=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F="touch",B="mouse",U=["x","y"],V=["clientX","clientY"];function G(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){x(e.options.enable,[e])&&n.handler(t)},this.init()}function H(e,t,n){var i=n.pointers.length,r=n.changedPointers.length,o=1&t&&i-r==0,a=12&t&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,r=i.length;n.firstInput||(n.firstInput=z(t)),r>1&&!n.firstMultiple?n.firstMultiple=z(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,c=a?a.center:o.center,l=t.center=$(i);t.timeStamp=h(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=X(c,l),t.distance=K(c,l),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=q(t.deltaX,t.deltaY);var d,u,m=W(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=m.x,t.overallVelocityY=m.y,t.overallVelocity=p(m.x)>p(m.y)?m.x:m.y,t.scale=a?(d=a.pointers,K((u=i)[0],u[1],V)/K(d[0],d[1],V)):1,t.rotation=a?function(e,t){return X(t[1],t[0],V)+X(e[1],e[0],V)}(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,r,o,a=e.lastInterval||t,c=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(c>25||a.velocity===s)){var l=t.deltaX-a.deltaX,d=t.deltaY-a.deltaY,u=W(c,l,d);i=u.x,r=u.y,n=p(u.x)>p(u.y)?u.x:u.y,o=q(l,d),e.lastInterval=t}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=o}(n,t);var g=e.element;P(t.srcEvent.target,g)&&(g=t.srcEvent.target),t.target=g}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function z(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:u(e.pointers[n].clientX),clientY:u(e.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:t,center:$(t),deltaX:e.deltaX,deltaY:e.deltaY}}function $(e){var t=e.length;if(1===t)return{x:u(e[0].clientX),y:u(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:u(n/t),y:u(i/t)}}function W(e,t,n){return{x:t/e||0,y:n/e||0}}function q(e,t){return e===t?1:p(e)>=p(t)?e<0?2:4:t<0?8:16}function K(e,t,n){n||(n=U);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function X(e,t,n){n||(n=U);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}G.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(N(this.element),this.evWin,this.domHandler)}};var Y={mousedown:1,mousemove:2,mouseup:4},J="mousedown",Q="mousemove mouseup";function Z(){this.evEl=J,this.evWin=Q,this.pressed=!1,G.apply(this,arguments)}C(Z,G,{handler:function(e){var t=Y[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var ee={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},te={2:F,3:"pen",4:B,5:"kinect"},ne="pointerdown",ie="pointermove pointerup pointercancel";function re(){this.evEl=ne,this.evWin=ie,G.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(ne="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel"),C(re,G,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=ee[i],o=te[e.pointerType]||e.pointerType,a=o==F,s=M(t,e.pointerId,"pointerId");1&r&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&r&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart",se="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=ae,this.evWin=se,this.started=!1,G.apply(this,arguments)}function le(e,t){var n=O(e.touches),i=O(e.changedTouches);return 12&t&&(n=A(n.concat(i),"identifier",!0)),[n,i]}C(ce,G,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=le.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}}});var de={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ue="touchstart touchmove touchend touchcancel";function pe(){this.evTarget=ue,this.targetIds={},G.apply(this,arguments)}function he(e,t){var n=O(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=O(e.changedTouches),s=[],c=this.target;if(o=n.filter((function(e){return P(e.target,c)})),1===t)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),12&t&&delete i[a[r].identifier],r++;return s.length?[A(o.concat(s),"identifier",!0),s]:void 0}function me(){G.apply(this,arguments);var e=S(this.handler,this);this.touch=new pe(this.manager,e),this.mouse=new Z(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ge(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,fe.call(this,t)):12&e&&fe.call(this,t)}function fe(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function ve(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),a=Math.abs(n-r.y);if(o<=25&&a<=25)return!0}return!1}C(pe,G,{handler:function(e){var t=de[e.type],n=he.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}}),C(me,G,{handler:function(e,t,n){var i=n.pointerType==F,r=n.pointerType==B;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)ge.call(this,t,n);else if(r&&ve.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var be=k(d.style,"touchAction"),ye=be!==s,Ce="compute",Se="auto",xe="manipulation",we="none",Ee="pan-x",Ie="pan-y",Pe=function(){if(!ye)return!1;var e={},t=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||r.CSS.supports("touch-action",n)})),e}();function Te(e,t){this.manager=e,this.set(t)}Te.prototype={set:function(e){e==Ce&&(e=this.compute()),ye&&this.manager.element.style&&Pe[e]&&(this.manager.element.style[be]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return f(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(T(e,we))return we;var t=T(e,Ee),n=T(e,Ie);return t&&n?we:t||n?t?Ee:Ie:T(e,xe)?xe:Se}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=T(i,we)&&!Pe.none,o=T(i,Ie)&&!Pe["pan-y"],a=T(i,Ee)&&!Pe["pan-x"];if(r){var s=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}if(!a||!o)return r||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var _e=32;function Me(e){this.options=c({},this.defaults,e||{}),this.id=j++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Oe(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ae(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ke(e,t){var n=t.manager;return n?n.get(e):e}function je(){Me.apply(this,arguments)}function Ne(){je.apply(this,arguments),this.pX=null,this.pY=null}function Re(){je.apply(this,arguments)}function De(){Me.apply(this,arguments),this._timer=null,this._input=null}function Le(){je.apply(this,arguments)}function Fe(){je.apply(this,arguments)}function Be(){Me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ue(e,t){return(t=t||{}).recognizers=w(t.recognizers,Ue.defaults.preset),new Ve(e,t)}function Ve(e,t){this.options=c({},Ue.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new(this.options.inputClass||(D?re:L?pe:R?me:Z))(this,H),this.touchAction=new Te(this,this.options.touchAction),Ge(this,!0),f(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Ge(e,t){var n,i=e.element;i.style&&(f(e.options.cssProps,(function(r,o){n=k(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Me.prototype={defaults:{},set:function(e){return c(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ke(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)||(e=ke(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===M(t,e=ke(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=ke(e,this);var t=M(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Oe(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Oe(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=_e},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=c({},e);if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=_e);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},C(je,Me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?16|t:i||r?4&n?8|t:2&t?4|t:2:_e}}),C(Ne,je,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ie),24&e&&t.push(Ee),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,a=e.deltaY;return r&t.direction||(6&t.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===a?1:a<0?8:16,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return je.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ae(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),C(Re,je,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),C(De,Me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Se]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=m((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return _e},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),C(Le,je,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),C(Fe,je,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ne.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Ae(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),C(Be,Me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||K(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=m((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return _e},failTimeout:function(){return this._timer=m((function(){this.state=_e}),this.options.interval,this),_e},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ue.VERSION="2.0.7",Ue.defaults={domEvents:!1,touchAction:Ce,enable:!0,inputTarget:null,inputClass:null,preset:[[Le,{enable:!1}],[Re,{enable:!1},["rotate"]],[Fe,{direction:6}],[Ne,{direction:6},["swipe"]],[Be],[Be,{event:"doubletap",taps:2},["tap"]],[De]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Ve.prototype={set:function(e){return c(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=M(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return f(_(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return f(_(e),(function(e){t?n[e]&&n[e].splice(M(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&Ge(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Ue,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:_e,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ve,Input:G,TouchAction:Te,TouchInput:pe,MouseInput:Z,PointerEventInput:re,TouchMouseInput:me,SingleTouchInput:ce,Recognizer:Me,AttrRecognizer:je,Tap:Be,Pan:Ne,Swipe:Fe,Pinch:Re,Rotate:Le,Press:De,on:E,off:I,each:f,merge:y,extend:b,assign:c,inherit:C,bindFn:S,prefixed:k}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Ue,(i=function(){return Ue}.call(t,n,t,e))===s||(e.exports=i)}(window,document)},91184:(e,t,n)=>{"use strict";n.d(t,{nA:()=>u,fF:()=>a,Hn:()=>d,aD:()=>p,Fl:()=>h,LO:()=>m});var i,r=n(57826),o=n(32711),a=function(){function e(e,t){this.templateRef=e,this.viewContainer=t,this.templateBindings={}}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.templateRef),this.dispose&&this.dispose(),this.shouldDetach()&&this.view.detach(),this.autoDetect(this.view)},e.prototype.shouldDetach=function(){return this.mobxAutorun&&this.mobxAutorun.detach},e.prototype.autoDetect=function(e){this.dispose=(0,o.EH)((function(){return e.detectChanges()}))},e.prototype.ngOnDestroy=function(){this.dispose&&this.dispose()},e.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef}]},e.propDecorators={mobxAutorun:[{type:r.Input}]},e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.TemplateRef),r["ɵɵdirectiveInject"](r.ViewContainerRef))},e.ɵdir=r["ɵɵdefineDirective"]({type:e,selectors:[["","mobxAutorun",""]],inputs:{mobxAutorun:"mobxAutorun"}}),"undefined"==typeof ngDevMode||ngDevMode,e}(),s=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.templateRef=t,i.viewContainer=n,i}return s(t,e),t.prototype.autoDetect=function(e){console.warn("mobxAutorunSync is deprecated, please use mobxAutorun instead - it's doing exactly the same thing"),this.dispose=(0,o.EH)((function(){e.detectChanges()}))},t.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef}]},t.ɵfac=function(e){return new(e||t)(r["ɵɵdirectiveInject"](r.TemplateRef),r["ɵɵdirectiveInject"](r.ViewContainerRef))},t.ɵdir=r["ɵɵdefineDirective"]({type:t,selectors:[["","mobxAutorunSync",""]],features:[r["ɵɵInheritDefinitionFeature"]]}),"undefined"==typeof ngDevMode||ngDevMode,t}(a),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.templateRef=t,i.viewContainer=n,i}return l(t,e),t.prototype.autoDetect=function(e){this.dispose=(0,o.U5)(this.mobxReaction,(function(){e.detectChanges()}),{fireImmediately:!0})},t.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef}]},t.propDecorators={mobxReaction:[{type:r.Input}]},t.ɵfac=function(e){return new(e||t)(r["ɵɵdirectiveInject"](r.TemplateRef),r["ɵɵdirectiveInject"](r.ViewContainerRef))},t.ɵdir=r["ɵɵdefineDirective"]({type:t,selectors:[["","mobxReaction",""]],inputs:{mobxReaction:"mobxReaction"},features:[r["ɵɵInheritDefinitionFeature"]]}),"undefined"==typeof ngDevMode||ngDevMode,t}(a),u=function(){function e(){}return e.ctorParameters=function(){return[]},e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[],imports:[[]]}),"undefined"==typeof ngDevMode||ngDevMode,("undefined"==typeof ngJitMode||ngJitMode)&&r["ɵɵsetNgModuleScope"](e,{declarations:[a,c,d],exports:[a,c,d]}),e}(),p=Object.assign((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.aD.apply(void 0,e)}),o.aD),h=Object.assign((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.Fl.apply(void 0,e)}),o.Fl),m=Object.assign((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.LO.apply(void 0,e)}),o.LO)},32711:(e,t,n)=>{"use strict";n.d(t,{EH:()=>ce,Fl:()=>un,LO:()=>Re,U5:()=>de,aD:()=>Y,gx:()=>le,vP:()=>We,z:()=>Q});var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){function e(e){void 0===e&&(e="Atom@"+Ye()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Ut.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){Lt(this)},e.prototype.reportChanged=function(){Rt(),function(e){if(e.lowestObserverState!==Ut.STALE){e.lowestObserverState=Ut.STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===Ut.UP_TO_DATE&&(i.isTracing!==Vt.NONE&&Ft(i,e),i.onBecomeStale()),i.dependenciesState=Ut.STALE}}}(this),Dt()},e.prototype.toString=function(){return this.name},e}(),a=function(e){function t(t,n,i){void 0===t&&(t="Atom@"+Ye()),void 0===n&&(n=nt),void 0===i&&(i=nt);var r=e.call(this,t)||this;return r.name=t,r.onBecomeObservedHandler=n,r.onBecomeUnobservedHandler=i,r.isPendingUnobservation=!1,r.isBeingTracked=!1,r}return r(t,e),t.prototype.reportObserved=function(){return Rt(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),Dt(),!!Ct.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(o),s=mt("Atom",o);function c(e){return e.interceptors&&e.interceptors.length>0}function l(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),tt((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function d(e,t){var n=Yt();try{var i=e.interceptors;if(i)for(var r=0,o=i.length;r<o&&(Qe(!(t=i[r](t))||t.type,"Intercept handlers should return nothing or a change object"),t);r++);return t}finally{Jt(n)}}function u(e){return e.changeListeners&&e.changeListeners.length>0}function p(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),tt((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function h(e,t){var n=Yt(),i=e.changeListeners;if(i){for(var r=0,o=(i=i.slice()).length;r<o;r++)i[r](t);Jt(n)}}function m(){return!!Ct.spyListeners.length}function g(e){if(Ct.spyListeners.length)for(var t=Ct.spyListeners,n=0,i=t.length;n<i;n++)t[n](e)}function f(e){g(st({},e,{spyReportStart:!0}))}var v={spyReportEnd:!0};function b(e){g(e?st({},e,v):v)}function y(e){return Ct.spyListeners.push(e),tt((function(){var t=Ct.spyListeners.indexOf(e);-1!==t&&Ct.spyListeners.splice(t,1)}))}function C(e){Qe(!0!==e.__$$iterating,"Illegal state: cannot recycle array as iterator"),ut(e,"__$$iterating",!0);var t=-1;return ut(e,"next",(function(){return{done:++t>=this.length,value:t<this.length?this[t]:void 0}})),e}function S(e,t){ut(e,"function"==typeof Symbol&&Symbol.iterator||"@@iterator",t)}var x,w,E=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),I=0,P=function(){};x=P,w=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(x.prototype,w):void 0!==x.prototype.__proto__?x.prototype.__proto__=w:x.prototype=w,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(P.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var T=function(){function e(e,t,n,i){this.array=n,this.owned=i,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new o(e||"ObservableArray@"+Ye()),this.enhancer=function(n,i){return t(n,i,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer?e.map(this.dehancer):e},e.prototype.intercept=function(e){return l(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),p(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>I&&k(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var i=this;Wt(this.atom);var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:null==t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=[]),c(this)){var o=d(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return Ke;t=o.removedCount,n=o.added}var a=(n=n.map((function(e){return i.enhancer(e,void 0)}))).length-t;this.updateArrayLength(r,a);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(i=this.values).splice.apply(i,[e,t].concat(n));var i,r=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),r},e.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&m(),r=u(this),o=r||i?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;i&&f(o),this.atom.reportChanged(),r&&h(this,o),i&&b()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&m(),r=u(this),o=r||i?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&f(o),this.atom.reportChanged(),r&&h(this,o),i&&b()},e}(),_=function(e){function t(t,n,i,r){void 0===i&&(i="ObservableArray@"+Ye()),void 0===r&&(r=!1);var o=e.call(this)||this,a=new T(i,n,o,r);return ut(o,"$mobx",a),t&&t.length&&o.spliceWithArray(0,0,t),E&&Object.defineProperty(a.array,"0",M),o}return r(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return N(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0);var i=this.findIndex.apply(this,arguments);return-1===i?void 0:this.get(i)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var i=this.peek(),r=i.length,o=n;o<r;o++)if(e.call(t,i[o],o,this))return o;return-1},t.prototype.splice=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var i,r=this.$mobx.values;i=e<t?r.slice(0,e).concat(r.slice(e+1,t+1),[r[e]],r.slice(t+1)):r.slice(0,t).concat([r[e]],r.slice(t,e),r.slice(e+1)),this.replace(i)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,i=n.values;if(e<i.length){Wt(n.atom);var r=i[e];if(c(n)){var o=d(n,{type:"update",object:this,index:e,newValue:t});if(!o)return;t=o.newValue}(t=n.enhancer(t,r))!==r&&(i[e]=t,n.notifyArrayChildUpdate(e,t,r))}else{if(e!==i.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+i.length);n.spliceWithArray(e,0,[t])}},t}(P);S(_.prototype,(function(){return C(this.slice())})),Object.defineProperty(_.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];Qe("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),dt(_.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),function(e,t){for(var n=0;n<t.length;n++)dt(e,t[n],e[t[n]])}(_.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var M=O(0);function O(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function A(e){Object.defineProperty(_.prototype,""+e,O(e))}function k(e){for(var t=I;t<e;t++)A(t);I=e}k(1e3);var j=mt("ObservableArrayAdministration",T);function N(e){return ot(e)&&j(e.$mobx)}var R={},D=function(e){function t(t,n,i,r){void 0===i&&(i="ObservableValue@"+Ye()),void 0===r&&(r=!0);var o=e.call(this,i)||this;return o.enhancer=n,o.hasUnreportedChange=!1,o.dehancer=void 0,o.value=n(t,void 0,i),r&&m()&&g({type:"create",object:o,newValue:o.value}),o}return r(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==R){var n=m();n&&f({type:"update",object:this,newValue:e,oldValue:t}),this.setNewValue(e),n&&b()}},t.prototype.prepareNewValue=function(e){if(Wt(this),c(this)){var t=d(this,{object:this,type:"update",newValue:e});if(!t)return R;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.value!==e?e:R},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),u(this)&&h(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return l(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),p(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return vt(this.get())},t}(o);D.prototype[ft()]=D.prototype.valueOf;var L=mt("ObservableValue",D),F={m001:"It is not allowed to assign new values to @action fields",m002:"`runInAction` expects a function",m003:"`runInAction` expects a function without arguments",m004:"autorun expects a function",m005:"Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.",m006:"Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.",m007:"reaction only accepts 2 or 3 arguments. If migrating from MobX 2, please provide an options object",m008:"wrapping reaction expression in `asReference` is no longer supported, use options object instead",m009:"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.",m010:"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'",m011:"First argument to `computed` should be an expression. If using computed as decorator, don't pass it arguments",m012:"computed takes one or two arguments if used as function",m013:"[mobx.expr] 'expr' should only be used inside other reactive functions.",m014:"extendObservable expected 2 or more arguments",m015:"extendObservable expects an object as first argument",m016:"extendObservable should not be used on maps, use map.merge instead",m017:"all arguments of extendObservable should be objects",m018:"extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540",m019:"[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.",m020:"modifiers can only be used for individual object properties",m021:"observable expects zero or one arguments",m022:"@observable can not be used on getters, use @computed instead",m024:"whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.",m025:"whyRun can only be used on reactions and computed values",m026:"`action` can only be invoked on functions",m028:"It is not allowed to set `useStrict` when a derivation is running",m029:"INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row",m030a:"Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ",m030b:"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ",m031:"Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: ",m032:"* This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t  1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t  2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).",m033:"`observe` doesn't support the fire immediately property for observable maps.",m034:"`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead",m035:"Cannot make the designated object observable; it is not extensible",m036:"It is not possible to get index atoms from arrays",m037:'Hi there! I\'m sorry you have just run into an exception.\nIf your debugger ends up here, know that some reaction (like the render() of an observer component, autorun or reaction)\nthrew an exception and that mobx caught it, to avoid that it brings the rest of your application down.\nThe original cause of the exception (the code that caused this reaction to run (again)), is still in the stack.\n\nHowever, more interesting is the actual stack trace of the error itself.\nHopefully the error is an instanceof Error, because in that case you can inspect the original stack of the error from where it was thrown.\nSee `error.stack` property, or press the very subtle "(...)" link you see near the console.error message that probably brought you here.\nThat stack is more interesting than the stack of this console.error itself.\n\nIf the exception you see is an exception you created yourself, make sure to use `throw new Error("Oops")` instead of `throw "Oops"`,\nbecause the javascript environment will only preserve the original stack trace in the first form.\n\nYou can also make sure the debugger pauses the next time this very same exception is thrown by enabling "Pause on caught exception".\n(Note that it might pause on many other, unrelated exception as well).\n\nIf that all doesn\'t help you out, feel free to open an issue https://github.com/mobxjs/mobx/issues!\n',m038:"Missing items in this list?\n    1. Check whether all used values are properly marked as observable (use isObservable to verify)\n    2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"};function B(e){return F[e]}function U(e,t){Qe("function"==typeof t,B("m026")),Qe("string"==typeof e&&e.length>0,"actions should have valid names, got: '"+e+"'");var n=function(){return V(e,t,this,arguments)};return n.originalFn=t,n.isMobxAction=!0,n}function V(e,t,n,i){var r=function(e,t,n,i){var r=m()&&!!e,o=0;if(r){o=Date.now();var a=i&&i.length||0,s=new Array(a);if(a>0)for(var c=0;c<a;c++)s[c]=i[c];f({type:"action",name:e,fn:t,object:n,arguments:s})}var l=Yt();return Rt(),{prevDerivation:l,prevAllowStateChanges:G(!0),notifySpy:r,startTime:o}}(e,t,n,i);try{return t.apply(n,i)}finally{!function(e){H(e.prevAllowStateChanges),Dt(),Jt(e.prevDerivation),e.notifySpy&&b({time:Date.now()-e.startTime})}(r)}}function G(e){var t=Ct.allowStateChanges;return Ct.allowStateChanges=e,t}function H(e){Ct.allowStateChanges=e}function z(e,t,n,i,r){function o(o,a,s,c,l){if(void 0===l&&(l=0),Qe(r||q(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),s){lt(o,"__mobxLazyInitializers")||dt(o,"__mobxLazyInitializers",o.__mobxLazyInitializers&&o.__mobxLazyInitializers.slice()||[]);var d=s.value,u=s.initializer;return o.__mobxLazyInitializers.push((function(t){e(t,a,u?u.call(t):d,c,s)})),{enumerable:i,configurable:!0,get:function(){return!0!==this.__mobxDidRunLazyInitializers&&W(this),t.call(this,a)},set:function(e){!0!==this.__mobxDidRunLazyInitializers&&W(this),n.call(this,a,e)}}}var p={enumerable:i,configurable:!0,get:function(){return this.__mobxInitializedProps&&!0===this.__mobxInitializedProps[a]||$(this,a,void 0,e,c,s),t.call(this,a)},set:function(t){this.__mobxInitializedProps&&!0===this.__mobxInitializedProps[a]?n.call(this,a,t):$(this,a,t,e,c,s)}};return(arguments.length<3||5===arguments.length&&l<3)&&Object.defineProperty(o,a,p),p}return r?function(){if(q(arguments))return o.apply(null,arguments);var e=arguments,t=arguments.length;return function(n,i,r){return o(n,i,r,e,t)}}:o}function $(e,t,n,i,r,o){lt(e,"__mobxInitializedProps")||dt(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,i(e,t,n,r,o)}function W(e){!0!==e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers&&(dt(e,"__mobxDidRunLazyInitializers",!0),e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers.forEach((function(t){return t(e)})))}function q(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]}var K=z((function(e,t,n,i,r){var o=i&&1===i.length?i[0]:n.name||t||"<unnamed action>";dt(e,t,Y(o,n))}),(function(e){return this[e]}),(function(){Qe(!1,B("m001"))}),!1,!0),X=z((function(e,t,n){ee(e,t,n)}),(function(e){return this[e]}),(function(){Qe(!1,B("m001"))}),!1,!1),Y=function(e,t,n,i){return 1===arguments.length&&"function"==typeof e?U(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?U(e,t):1===arguments.length&&"string"==typeof e?J(e):J(t).apply(null,arguments)};function J(e){return function(t,n,i){if(i&&"function"==typeof i.value)return i.value=U(e,i.value),i.enumerable=!1,i.configurable=!0,i;if(void 0!==i&&void 0!==i.get)throw new Error("[mobx] action is not expected to be used with getters");return K(e).apply(this,arguments)}}function Q(e,t,n){var i="string"==typeof e?e:e.name||"<unnamed action>",r="function"==typeof e?e:t,o="function"==typeof e?t:n;return Qe("function"==typeof r,B("m002")),Qe(0===r.length,B("m003")),Qe("string"==typeof i&&i.length>0,"actions should have valid names, got: '"+i+"'"),V(i,r,o,void 0)}function Z(e){return"function"==typeof e&&!0===e.isMobxAction}function ee(e,t,n){var i=function(){return V(t,n,e,arguments)};i.isMobxAction=!0,dt(e,t,i)}Y.bound=function(e,t,n){if("function"==typeof e){var i=U("<not yet bound action>",e);return i.autoBind=!0,i}return X.apply(null,arguments)};var te=Object.prototype.toString;function ne(e,t){return ie(e,t)}function ie(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var r=typeof e;return("function"===r||"object"===r||"object"==typeof t)&&function(e,t,n,i){e=re(e),t=re(t);var r=te.call(e);if(r!==te.call(t))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var o="[object Array]"===r;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!("function"==typeof a&&a instanceof a&&"function"==typeof s&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}i=i||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return i[c]===t;if(n.push(e),i.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!ie(e[c],t[c],n,i))return!1}else{var l,d=Object.keys(e);if(c=d.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!oe(t,l=d[c])||!ie(e[l],t[l],n,i))return!1}return n.pop(),i.pop(),!0}(e,t,n,i)}function re(e){return N(e)?e.peek():qe(e)?e.entries():gt(e)?function(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}(e.entries()):e}function oe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ae(e,t){return e===t}var se={identity:ae,structural:function(e,t){return ne(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||ae(e,t)}};function ce(e,t,n){var i,r,o;"string"==typeof e?(i=e,r=t,o=n):(i=e.name||"Autorun@"+Ye(),r=e,o=t),Qe("function"==typeof r,B("m004")),Qe(!1===Z(r),B("m005")),o&&(r=r.bind(o));var a=new tn(i,(function(){this.track(s)}));function s(){r(a)}return a.schedule(),a.getDisposer()}function le(e,t,n,i){var r,o,a,s;return"string"==typeof e?(r=e,o=t,a=n,s=i):(r="When@"+Ye(),o=e,a=t,s=n),ce(r,(function(e){if(o.call(s)){e.dispose();var t=Yt();a.call(s),Jt(t)}}))}function de(e,t,n){var i;arguments.length>3&&Je(B("m007")),Le(e)&&Je(B("m008")),(i="object"==typeof n?n:{}).name=i.name||e.name||t.name||"Reaction@"+Ye(),i.fireImmediately=!0===n||!0===i.fireImmediately,i.delay=i.delay||0,i.compareStructural=i.compareStructural||i.struct||!1,t=Y(i.name,i.context?t.bind(i.context):t),i.context&&(e=e.bind(i.context));var r,o=!0,a=!1,s=i.equals?i.equals:i.compareStructural||i.struct?se.structural:se.default,c=new tn(i.name,(function(){o||i.delay<1?l():a||(a=!0,setTimeout((function(){a=!1,l()}),i.delay))}));function l(){if(!c.isDisposed){var n=!1;c.track((function(){var t=e(c);n=o||!s(r,t),r=t})),o&&i.fireImmediately&&t(r,c),o||!0!==n||t(r,c),o&&(o=!1)}}return c.schedule(),c.getDisposer()}var ue=function(){function e(e,t,n,i,r){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=Ut.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Ut.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+Ye(),this.value=new Gt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Vt.NONE,this.name=i||"ComputedValue@"+Ye(),r&&(this.setter=U(i+"-setter",r))}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState===Ut.UP_TO_DATE){e.lowestObserverState=Ut.POSSIBLY_STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===Ut.UP_TO_DATE&&(i.dependenciesState=Ut.POSSIBLY_STALE,i.isTracing!==Vt.NONE&&Ft(i,e),i.onBecomeStale())}}}(this)},e.prototype.onBecomeUnobserved=function(){Kt(this),this.value=void 0},e.prototype.get=function(){Qe(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===Ct.inBatch?(Rt(),zt(this)&&(this.isTracing!==Vt.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),Dt()):(Lt(this),zt(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState!==Ut.STALE){e.lowestObserverState=Ut.STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===Ut.POSSIBLY_STALE?i.dependenciesState=Ut.STALE:i.dependenciesState===Ut.UP_TO_DATE&&(e.lowestObserverState=Ut.UP_TO_DATE)}}}(this));var e=this.value;if(Ht(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(Ht(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){Qe(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else Qe(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){m()&&g({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.dependenciesState===Ut.NOT_TRACKING,n=this.value=this.computeValue(!0);return t||Ht(e)||Ht(n)||!this.equals(e,n)},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Ct.computationDepth++,e)t=qt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new Gt(e)}return Ct.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,i=!0,r=void 0;return ce((function(){var o=n.get();if(!i||t){var a=Yt();e({type:"update",object:n,newValue:o,oldValue:r}),Jt(a)}i=!1,r=o}))},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return vt(this.get())},e.prototype.whyRun=function(){var e=Boolean(Ct.trackingDerivation),t=it(this.isComputing?this.newObserving:this.observing).map((function(e){return e.name})),n=it(At(this).map((function(e){return e.name})));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===Ut.NOT_TRACKING?B("m032"):" * This computation will re-run if any of the following observables changes:\n    "+rt(t)+"\n    "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n    "+B("m038")+"\n\n  * If the outcome of this computation changes, the following observers will be re-run:\n    "+rt(n)+"\n")},e}();ue.prototype[ft()]=ue.prototype.valueOf;var pe=mt("ComputedValue",ue),he=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return Qe(!0!==t,"`observe` doesn't support the fire immediately property for observable objects."),p(this,e)},e.prototype.intercept=function(e){return l(this,e)},e}();function me(e,t){if(we(e)&&e.hasOwnProperty("$mobx"))return e.$mobx;Qe(Object.isExtensible(e),B("m035")),at(e)||(t=(e.constructor.name||"ObservableObject")+"@"+Ye()),t||(t="ObservableObject@"+Ye());var n=new he(e,t);return ut(e,"$mobx",n),n}function ge(e,t,n,i){if(e.values[t]&&!pe(e.values[t]))return Qe("value"in n,"The property "+t+" in "+e.name+" is already observable, cannot redefine it as computed property"),void(e.target[t]=n.value);if("value"in n)if(Le(n.value)){var r=n.value;fe(e,t,r.initialValue,r.enhancer)}else Z(n.value)&&!0===n.value.autoBind?ee(e.target,t,n.value.originalFn):pe(n.value)?function(e,t,n){var i=e.name+"."+t;n.name=i,n.scope||(n.scope=e.target),e.values[t]=n,Object.defineProperty(e.target,t,Ce(t))}(e,t,n.value):fe(e,t,n.value,i);else ve(e,t,n.get,n.set,se.default,!0)}function fe(e,t,n,i){if(ht(e.target,t),c(e)){var r=d(e,{object:e.target,name:t,type:"add",newValue:n});if(!r)return;n=r.newValue}n=(e.values[t]=new D(n,i,e.name+"."+t,!1)).value,Object.defineProperty(e.target,t,function(e){return be[e]||(be[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){Se(this,e,t)}})}(t)),function(e,t,n,i){var r=u(e),o=m(),a=r||o?{type:"add",object:t,name:n,newValue:i}:null;o&&f(a),r&&h(e,a),o&&b()}(e,e.target,t,n)}function ve(e,t,n,i,r,o){o&&ht(e.target,t),e.values[t]=new ue(n,e.target,r,e.name+"."+t,i),o&&Object.defineProperty(e.target,t,Ce(t))}var be={},ye={};function Ce(e){return ye[e]||(ye[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function Se(e,t,n){var i=e.$mobx,r=i.values[t];if(c(i)){if(!(s=d(i,{type:"update",object:e,name:t,newValue:n})))return;n=s.newValue}if((n=r.prepareNewValue(n))!==R){var o=u(i),a=m(),s=o||a?{type:"update",object:e,oldValue:r.value,name:t,newValue:n}:null;a&&f(s),r.setNewValue(n),o&&h(i,s),a&&b()}}var xe=mt("ObservableObjectAdministration",he);function we(e){return!!ot(e)&&(W(e),xe(e.$mobx))}function Ee(e,t){if(null==e)return!1;if(void 0!==t){if(N(e)||qe(e))throw new Error(B("m019"));if(we(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return we(e)||!!e.$mobx||s(e)||sn(e)||pe(e)}function Ie(e){return Qe(!!e,":("),z((function(t,n,i,r,o){ht(t,n),Qe(!o||!o.get,B("m022")),fe(me(t,void 0),n,i,e)}),(function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()}),(function(e,t){Se(this,e,t)}),!0,!1)}function Pe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return _e(e,Be,t)}function Te(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return _e(e,Ve,t)}function _e(e,t,n){Qe(arguments.length>=2,B("m014")),Qe("object"==typeof e,B("m015")),Qe(!qe(e),B("m016")),n.forEach((function(e){Qe("object"==typeof e,B("m017")),Qe(!Ee(e),B("m018"))}));for(var i=me(e),r={},o=n.length-1;o>=0;o--){var a=n[o];for(var s in a)if(!0!==r[s]&&lt(a,s)){if(r[s]=!0,e===a&&!pt(e,s))continue;var c=Object.getOwnPropertyDescriptor(a,s);ge(i,s,c,t)}}return e}var Me=Ie(Be),Oe=Ie(Ue),Ae=Ie(Ve),ke=Ie(Ge),je=Ie(He),Ne={box:function(e,t){return arguments.length>2&&De("box"),new D(e,Be,t)},shallowBox:function(e,t){return arguments.length>2&&De("shallowBox"),new D(e,Ve,t)},array:function(e,t){return arguments.length>2&&De("array"),new _(e,Be,t)},shallowArray:function(e,t){return arguments.length>2&&De("shallowArray"),new _(e,Ve,t)},map:function(e,t){return arguments.length>2&&De("map"),new We(e,Be,t)},shallowMap:function(e,t){return arguments.length>2&&De("shallowMap"),new We(e,Ve,t)},object:function(e,t){arguments.length>2&&De("object");var n={};return me(n,t),Pe(n,e),n},shallowObject:function(e,t){arguments.length>2&&De("shallowObject");var n={};return me(n,t),Te(n,e),n},ref:function(){return arguments.length<2?Fe(Ve,arguments[0]):Ae.apply(null,arguments)},shallow:function(){return arguments.length<2?Fe(Ue,arguments[0]):Oe.apply(null,arguments)},deep:function(){return arguments.length<2?Fe(Be,arguments[0]):Me.apply(null,arguments)},struct:function(){return arguments.length<2?Fe(Ge,arguments[0]):ke.apply(null,arguments)}},Re=function(e){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return Me.apply(null,arguments);if(Qe(arguments.length<=1,B("m021")),Qe(!Le(e),B("m020")),Ee(e))return e;var t=Be(e,0,void 0);return t!==e?t:Re.box(e)};function De(e){Je("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function Le(e){return"object"==typeof e&&null!==e&&!0===e.isMobxModifierDescriptor}function Fe(e,t){return Qe(!Le(t),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function Be(e,t,n){return Le(e)&&Je("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),Ee(e)?e:Array.isArray(e)?Re.array(e,n):at(e)?Re.object(e,n):gt(e)?Re.map(e,n):e}function Ue(e,t,n){return Le(e)&&Je("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),null==e||we(e)||N(e)||qe(e)?e:Array.isArray(e)?Re.shallowArray(e,n):at(e)?Re.shallowObject(e,n):gt(e)?Re.shallowMap(e,n):Je("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function Ve(e){return e}function Ge(e,t,n){if(ne(e,t))return t;if(Ee(e))return e;if(Array.isArray(e))return new _(e,Ge,n);if(gt(e))return new We(e,Ge,n);if(at(e)){var i={};return me(i,n),_e(i,Ge,[e]),i}return e}function He(e,t,n){return ne(e,t)?t:e}function ze(e,t){void 0===t&&(t=void 0),Rt();try{return e.apply(t)}finally{Dt()}}Object.keys(Ne).forEach((function(e){return Re[e]=Ne[e]})),Re.deep.struct=Re.struct,Re.ref.struct=function(){return arguments.length<2?Fe(He,arguments[0]):je.apply(null,arguments)};var $e={},We=function(){function e(e,t,n){void 0===t&&(t=Be),void 0===n&&(n="ObservableMap@"+Ye()),this.enhancer=t,this.name=n,this.$mobx=$e,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new _(void 0,Ve,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return void 0!==this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(c(this)){var i=d(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,c(this)&&!(r=d(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=m(),i=u(this),r=i||n?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return n&&f(r),ze((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0})),i&&h(this,r),n&&b(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new D(t,Ve,this.name+"."+e+"?",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==R){var i=m(),r=u(this),o=r||i?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&f(o),n.setNewValue(t),r&&h(this,o),i&&b()}},e.prototype._addValue=function(e,t){var n=this;ze((function(){var i=n._data[e]=new D(t,n.enhancer,n.name+"."+e,!1);t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)}));var i=m(),r=u(this),o=r||i?{type:"add",object:this,name:e,newValue:t}:null;i&&f(o),r&&h(this,o),i&&b()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return C(this._keys.slice())},e.prototype.values=function(){return C(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return C(this._keys.map((function(t){return[t,e.get(t)]})))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach((function(i){return e.call(t,n.get(i),i,n)}))},e.prototype.merge=function(e){var t=this;return qe(e)&&(e=e.toJS()),ze((function(){at(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],i=e[1];return t.set(n,i)})):gt(e)?e.forEach((function(e,n){return t.set(n,e)})):null!=e&&Je("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;ze((function(){Xt((function(){e.keys().forEach(e.delete,e)}))}))},e.prototype.replace=function(e){var t=this;return ze((function(){var n,i=at(n=e)?Object.keys(n):Array.isArray(n)?n.map((function(e){return e[0]})):gt(n)?Array.from(n.keys()):qe(n)?n.keys():Je("Cannot get keys from "+n);t.keys().filter((function(e){return-1===i.indexOf(e)})).forEach((function(e){return t.delete(e)})),t.merge(e)})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach((function(n){return t[n]=e.get(n)})),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!=e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map((function(t){return t+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return Qe(!0!==t,B("m033")),p(this,e)},e.prototype.intercept=function(e){return l(this,e)},e}();S(We.prototype,(function(){return this.entries()}));var qe=mt("ObservableMap",We),Ke=[];function Xe(){return"undefined"!=typeof window?window:global}function Ye(){return++Ct.mobxGuid}function Je(e,t){throw Qe(!1,e,t),"X"}function Qe(e,t,n){if(!e)throw new Error("[mobx] Invariant failed: "+t+(n?" in '"+n+"'":""))}Object.freeze(Ke);var Ze=[];function et(e){return-1===Ze.indexOf(e)&&(Ze.push(e),console.error("[mobx] Deprecated: "+e),!0)}function tt(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var nt=function(){};function it(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),t}function rt(e,t,n){return void 0===t&&(t=100),void 0===n&&(n=" - "),e?e.slice(0,t).join(n)+(e.length>t?" (... and "+(e.length-t)+"more)":""):""}function ot(e){return null!==e&&"object"==typeof e}function at(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function st(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++){var i=arguments[t];for(var r in i)lt(i,r)&&(e[r]=i[r])}return e}var ct=Object.prototype.hasOwnProperty;function lt(e,t){return ct.call(e,t)}function dt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ut(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function pt(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||!1!==n.configurable&&!1!==n.writable}function ht(e,t){Qe(pt(e,t),"Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function mt(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return ot(e)&&!0===e[n]}}function gt(e){return void 0!==Xe().Map&&e instanceof Xe().Map}function ft(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function vt(e){return null===e?null:"object"==typeof e?""+e:e}var bt=["mobxGuid","resetId","spyListeners","strictMode","runId"],yt=function(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]},Ct=new yt,St=!1,xt=!1,wt=!1,Et=Xe();function It(e,t){if("object"==typeof e&&null!==e){if(N(e))return Qe(void 0===t,B("m036")),e.$mobx.atom;if(qe(e)){var n=e;return void 0===t?It(n._keys):(Qe(!!(i=n._data[t]||n._hasMap[t]),"the entry '"+t+"' does not exist in the observable map '"+Tt(e)+"'"),i)}var i;if(W(e),t&&!e.$mobx&&e[t],we(e))return t?(Qe(!!(i=e.$mobx.values[t]),"no observable property '"+t+"' found on the observable object '"+Tt(e)+"'"),i):Je("please specify a property");if(s(e)||pe(e)||sn(e))return e}else if("function"==typeof e&&sn(e.$mobx))return e.$mobx;return Je("Cannot obtain atom from "+e)}function Pt(e,t){return Qe(e,"Expecting some object"),void 0!==t?Pt(It(e,t)):s(e)||pe(e)||sn(e)||qe(e)?e:(W(e),e.$mobx?e.$mobx:void Qe(!1,"Cannot obtain administration from "+e))}function Tt(e,t){return(void 0!==t?It(e,t):we(e)||qe(e)?Pt(e):It(e)).name}function _t(e,t){return Mt(It(e,t))}function Mt(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=it(e.observing).map(Mt)),t}function Ot(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=At(e).map(Ot)),t}function At(e){return e.observers}function kt(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function jt(e,t){if(1===e.observers.length)e.observers.length=0,Nt(e);else{var n=e.observers,i=e.observersIndexes,r=n.pop();if(r!==t){var o=i[t.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],n[o]=r}delete i[t.__mapid]}}function Nt(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,Ct.pendingUnobservations.push(e))}function Rt(){Ct.inBatch++}function Dt(){if(0==--Ct.inBatch){on();for(var e=Ct.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&n.onBecomeUnobserved()}Ct.pendingUnobservations=[]}}function Lt(e){var t=Ct.trackingDerivation;null!==t?t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e):0===e.observers.length&&Nt(e)}function Ft(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Vt.BREAK){var n=[];Bt(_t(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof ue?e.derivation.toString():"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n    ")()}}function Bt(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Bt(e,t,n+1)})))}Et.__mobxInstanceCount?(Et.__mobxInstanceCount++,setTimeout((function(){St||xt||wt||(wt=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))}),1)):Et.__mobxInstanceCount=1;var Ut=(()=>(function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(Ut||(Ut={})),Ut))(),Vt=(()=>(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Vt||(Vt={})),Vt))(),Gt=function(e){this.cause=e};function Ht(e){return e instanceof Gt}function zt(e){switch(e.dependenciesState){case Ut.UP_TO_DATE:return!1;case Ut.NOT_TRACKING:case Ut.STALE:return!0;case Ut.POSSIBLY_STALE:for(var t=Yt(),n=e.observing,i=n.length,r=0;r<i;r++){var o=n[r];if(pe(o)){try{o.get()}catch(e){return Jt(t),!0}if(e.dependenciesState===Ut.STALE)return Jt(t),!0}}return Qt(e),Jt(t),!1}}function $t(){return null!==Ct.trackingDerivation}function Wt(e){var t=e.observers.length>0;Ct.computationDepth>0&&t&&Je(B("m031")+e.name),!Ct.allowStateChanges&&t&&Je(B(Ct.strictMode?"m030a":"m030b")+e.name)}function qt(e,t,n){Qt(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Ct.runId;var i,r=Ct.trackingDerivation;Ct.trackingDerivation=e;try{i=t.call(n)}catch(e){i=new Gt(e)}return Ct.trackingDerivation=r,function(e){for(var t=e.observing,n=e.observing=e.newObserving,i=Ut.UP_TO_DATE,r=0,o=e.unboundDepsCount,a=0;a<o;a++)0===(s=n[a]).diffValue&&(s.diffValue=1,r!==a&&(n[r]=s),r++),s.dependenciesState>i&&(i=s.dependenciesState);for(n.length=r,e.newObserving=null,o=t.length;o--;)0===(s=t[o]).diffValue&&jt(s,e),s.diffValue=0;for(;r--;){var s;1===(s=n[r]).diffValue&&(s.diffValue=0,kt(s,e))}i!==Ut.UP_TO_DATE&&(e.dependenciesState=i,e.onBecomeStale())}(e),i}function Kt(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)jt(t[n],e);e.dependenciesState=Ut.NOT_TRACKING}function Xt(e){var t=Yt(),n=e();return Jt(t),n}function Yt(){var e=Ct.trackingDerivation;return Ct.trackingDerivation=null,e}function Jt(e){Ct.trackingDerivation=e}function Qt(e){if(e.dependenciesState!==Ut.UP_TO_DATE){e.dependenciesState=Ut.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Ut.UP_TO_DATE}}function Zt(e){return console.log(e),e}function en(e){switch(e.length){case 0:return Ct.trackingDerivation;case 1:return It(e[0]);case 2:return It(e[0],e[1])}}var tn=function(){function e(e,t){void 0===e&&(e="Reaction@"+Ye()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=Ut.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+Ye(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Vt.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ct.pendingReactions.push(this),on())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(Rt(),this._isScheduled=!1,zt(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&m()&&g({object:this,type:"scheduled-reaction"})),Dt())},e.prototype.track=function(e){Rt();var t,n=m();n&&(t=Date.now(),f({object:this,type:"reaction",fn:e})),this._isRunning=!0;var i=qt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Kt(this),Ht(i)&&this.reportExceptionInDerivation(i.cause),n&&b({time:Date.now()-t}),Dt()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,i=B("m037");console.error(n||i,e),m()&&g({type:"error",message:n,error:e,object:this}),Ct.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Rt(),Kt(this),Dt()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=nn,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=it(this._isRunning?this.newObserving:this.observing).map((function(e){return e.name}));return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n    "+rt(e)+"\n    "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+B("m038")+"\n"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var i=en(e);if(!i)return Je("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing===Vt.NONE&&console.log("[mobx.trace] '"+i.name+"' tracing enabled"),i.isTracing=n?Vt.BREAK:Vt.LOG}(this,e)},e}();function nn(e){Qe(this&&this.$mobx&&sn(this.$mobx),"Invalid `this`"),Qe(!this.$mobx.errorHandler,"Only one onErrorHandler can be registered"),this.$mobx.errorHandler=e}var rn=function(e){return e()};function on(){Ct.inBatch>0||Ct.isRunningReactions||rn(an)}function an(){Ct.isRunningReactions=!0;for(var e=Ct.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),i=0,r=n.length;i<r;i++)n[i].runReaction()}Ct.isRunningReactions=!1}var sn=mt("Reaction",tn);function cn(e){return z((function(t,n,i,r,o){Qe(void 0!==o,B("m009")),Qe("function"==typeof o.get,B("m010")),ve(me(t,""),n,o.get,o.set,e,!1)}),(function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()}),(function(e,t){this.$mobx.values[e].set(t)}),!1,!1)}var ln=cn(se.default),dn=cn(se.structural),un=function(e,t,n){if("string"==typeof t)return ln.apply(null,arguments);Qe("function"==typeof e,B("m011")),Qe(arguments.length<3,B("m012"));var i="object"==typeof t?t:{};i.setter="function"==typeof t?t:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?se.structural:se.default;return new ue(e,i.context,r,i.name||e.name||"",i.setter)};un.struct=dn,un.equals=cn;var pn={allowStateChanges:function(e,t){var n,i=G(e);try{n=t()}finally{H(i)}return n},deepEqual:ne,getAtom:It,getDebugName:Tt,getDependencyTree:_t,getAdministration:Pt,getGlobalState:function(){return Ct},getObserverTree:function(e,t){return Ot(It(e,t))},interceptReads:function(e,t,n){var i;if(qe(e)||N(e)||L(e))i=Pt(e);else{if(!we(e))return Je("Expected observable map, object or array as first array");if("string"!=typeof t)return Je("InterceptReads can only be used with a specific property, not with an object in general");i=Pt(e,t)}return void 0!==i.dehancer?Je("An intercept reader was already established"):(i.dehancer="function"==typeof t?t:n,function(){i.dehancer=void 0})},isComputingDerivation:$t,isSpyEnabled:m,onReactionError:function(e){return Ct.globalReactionErrorHandlers.push(e),function(){var t=Ct.globalReactionErrorHandlers.indexOf(e);t>=0&&Ct.globalReactionErrorHandlers.splice(t,1)}},reserveArrayBuffer:k,resetGlobalState:function(){Ct.resetId++;var e=new yt;for(var t in e)-1===bt.indexOf(t)&&(Ct[t]=e[t]);Ct.allowStateChanges=!Ct.strictMode},isolateGlobalState:function(){xt=!0,Xe().__mobxInstanceCount--},shareGlobalState:function(){et("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),St=!0;var e=Xe(),t=Ct;if(e.__mobservableTrackingStack||e.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(e.__mobxGlobal&&e.__mobxGlobal.version!==t.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");e.__mobxGlobal?Ct=e.__mobxGlobal:e.__mobxGlobal=t},spyReport:g,spyReportEnd:b,spyReportStart:f,setReactionScheduler:function(e){var t=rn;rn=function(n){return e((function(){return t(n)}))}}},hn={Reaction:tn,untracked:Xt,Atom:a,BaseAtom:o,useStrict:function(e){Qe(null===Ct.trackingDerivation,B("m028")),Ct.strictMode=e,Ct.allowStateChanges=!e},isStrictModeEnabled:function(){return Ct.strictMode},spy:y,comparer:se,asReference:function(e){return et("asReference is deprecated, use observable.ref instead"),Re.ref(e)},asFlat:function(e){return et("asFlat is deprecated, use observable.shallow instead"),Re.shallow(e)},asStructure:function(e){return et("asStructure is deprecated. Use observable.struct, computed.struct or reaction options instead."),Re.struct(e)},asMap:function(e){return et("asMap is deprecated, use observable.map or observable.shallowMap instead"),Re.map(e||{})},isModifierDescriptor:Le,isObservableObject:we,isBoxedObservable:L,isObservableArray:N,ObservableMap:We,isObservableMap:qe,map:function(e){return et("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Re.map(e)},transaction:ze,observable:Re,computed:un,isObservable:Ee,isComputed:function(e,t){if(null==e)return!1;if(void 0!==t){if(!1===we(e))return!1;if(!e.$mobx.values[t])return!1;var n=It(e,t);return pe(n)}return pe(e)},extendObservable:Pe,extendShallowObservable:Te,observe:function(e,t,n,i){return"function"==typeof n?function(e,t,n,i){return Pt(e,t).observe(n,i)}(e,t,n,i):function(e,t,n){return Pt(e).observe(t,n)}(e,t,n)},intercept:function(e,t,n){return"function"==typeof n?function(e,t,n){return Pt(e,t).intercept(n)}(e,t,n):function(e,t){return Pt(e).intercept(t)}(e,t)},autorun:ce,autorunAsync:function(e,t,n,i){var r,o,a,s;"string"==typeof e?(r=e,o=t,a=n,s=i):(r=e.name||"AutorunAsync@"+Ye(),o=e,a=t,s=n),Qe(!1===Z(o),B("m006")),void 0===a&&(a=1),s&&(o=o.bind(s));var c=!1,l=new tn(r,(function(){c||(c=!0,setTimeout((function(){c=!1,l.isDisposed||l.track(d)}),a))}));function d(){o(l)}return l.schedule(),l.getDisposer()},when:le,reaction:de,action:Y,isAction:Z,runInAction:Q,expr:function(e,t){return $t()||console.warn(B("m013")),un(e,{context:t}).get()},toJS:function e(t,n,i){function r(e){return n&&i.push([t,e]),e}if(void 0===n&&(n=!0),void 0===i&&(i=[]),Ee(t)){if(n&&null===i&&(i=[]),n&&null!==t&&"object"==typeof t)for(var o=0,a=i.length;o<a;o++)if(i[o][0]===t)return i[o][1];if(N(t)){var s=r([]),c=t.map((function(t){return e(t,n,i)}));for(s.length=c.length,o=0,a=c.length;o<a;o++)s[o]=c[o];return s}if(we(t)){for(var l in s=r({}),t)s[l]=e(t[l],n,i);return s}if(qe(t)){var d=r({});return t.forEach((function(t,r){return d[r]=e(t,n,i)})),d}if(L(t))return e(t.get(),n,i)}return t},createTransformer:function(e,t){Qe("function"==typeof e&&e.length<2,"createTransformer expects a function that accepts one argument");var n={},i=Ct.resetId,o=function(i){function o(t,n){var r=i.call(this,(function(){return e(n)}),void 0,se.default,"Transformer-"+e.name+"-"+t,void 0)||this;return r.sourceIdentifier=t,r.sourceObject=n,r}return r(o,i),o.prototype.onBecomeUnobserved=function(){var e=this.value;i.prototype.onBecomeUnobserved.call(this),delete n[this.sourceIdentifier],t&&t(e,this.sourceObject)},o}(ue);return function(e){i!==Ct.resetId&&(n={},i=Ct.resetId);var t=function(e){if("string"==typeof e||"number"==typeof e)return e;if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object or primitive value, got: "+e);var t=e.$transformId;return void 0===t&&dt(e,"$transformId",t=Ye()),t}(e),r=n[t];return r?r.get():(r=n[t]=new o(t,e)).get()}},whyRun:function(e,t){return et("`whyRun` is deprecated in favor of `trace`"),(e=en(arguments))?pe(e)||sn(e)?Zt(e.whyRun()):Je(B("m025")):Zt(B("m024"))},isArrayLike:function(e){return Array.isArray(e)||N(e)},extras:pn},mn=!1,gn=function(e){var t=hn[e];Object.defineProperty(hn,e,{get:function(){return mn||(mn=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in [email protected]\nUse `import * as mobx from 'mobx'` instead")),t}})};for(var fn in hn)gn(fn);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:y,extras:pn})},13811:(e,t,n)=>{"use strict";n.d(t,{Fy:()=>g,bB:()=>v,o6:()=>f});var i=n(57826),r=n(51103),o=n(6856);function a(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",7),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).index;return i["ɵɵnextContext"](2).selectSlide(t)})),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit;i["ɵɵclassProp"]("active",!0===e.active)}}function s(e,t){if(1&e&&(i["ɵɵelementStart"](0,"ol",5),i["ɵɵtemplate"](1,a,1,2,"li",6),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵproperty"]("ngForOf",e.indicatorsSlides())}}function c(e,t){1&e&&(i["ɵɵelementStart"](0,"span",11),i["ɵɵtext"](1,"Previous"),i["ɵɵelementEnd"]())}function l(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",8),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().previousSlide()})),i["ɵɵelement"](1,"span",9),i["ɵɵtemplate"](2,c,2,0,"span",10),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("disabled",0===e.activeSlide&&e.noWrap),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.isBs4)}}function d(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",12),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().nextSlide()})),i["ɵɵelement"](1,"span",13),i["ɵɵelementStart"](2,"span",11),i["ɵɵtext"](3,"Next"),i["ɵɵelementEnd"](),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("disabled",e.isLast(e.activeSlide)&&e.noWrap)}}const u=function(e){return{display:e}},p=["*"];let h=(()=>{class e{constructor(){this.interval=5e3,this.noPause=!1,this.noWrap=!1,this.showIndicators=!0,this.pauseOnFocus=!1,this.indicatorsByChunk=!1,this.itemsPerSlide=1,this.singleSlideOffset=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=(0,i["ɵɵdefineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();"undefined"==typeof ngDevMode||ngDevMode;const m={UNKNOWN:0,NEXT:1,PREV:2};m[m.UNKNOWN]="UNKNOWN",m[m.NEXT]="NEXT",m[m.PREV]="PREV";let g=(()=>{class e{constructor(e,t){this.ngZone=t,this.indicatorsByChunk=!1,this.itemsPerSlide=1,this.singleSlideOffset=!1,this.isAnimated=!1,this.activeSlideChange=new i.EventEmitter(!1),this.slideRangeChange=new i.EventEmitter,this.startFromIndex=0,this._slides=new r.Su,this._currentVisibleSlidesIndex=0,this.destroyed=!1,this.getActive=e=>e.active,this.makeSlidesConsistent=e=>{e.forEach(((e,t)=>e.item.order=t))},Object.assign(this,e)}set activeSlide(e){this.multilist||this._slides.length&&e!==this._currentActiveSlide&&this._select(e)}get activeSlide(){return this._currentActiveSlide}get interval(){return this._interval}set interval(e){this._interval=e,this.restartTimer()}get slides(){return this._slides.toArray()}get isBs4(){return!(0,r.XA)()}ngAfterViewInit(){setTimeout((()=>{this.singleSlideOffset&&(this.indicatorsByChunk=!1),this.multilist&&(this._chunkedSlides=function(e,t){const n=[],i=Math.ceil(e.length/t);let r=0;for(;r<i;){const o=e.splice(0,r===i-1&&t<e.length?e.length:t);n.push(o),r++}return n}(this.mapSlidesAndIndexes(),this.itemsPerSlide),this.selectInitialSlides())}),0)}ngOnDestroy(){this.destroyed=!0}addSlide(e){this._slides.add(e),this.multilist&&this._slides.length<=this.itemsPerSlide&&(e.active=!0),!this.multilist&&this.isAnimated&&(e.isAnimated=!0),this.multilist||1!==this._slides.length||(this._currentActiveSlide=void 0,this.activeSlide=0,this.play()),this.multilist&&this._slides.length>this.itemsPerSlide&&this.play()}removeSlide(e){const t=this._slides.indexOf(e);if(this._currentActiveSlide===t){let e;this._slides.length>1&&(e=this.isLast(t)?this.noWrap?t-1:0:t),this._slides.remove(t),setTimeout((()=>{this._select(e)}),0)}else{this._slides.remove(t);const e=this.getCurrentSlideIndex();setTimeout((()=>{this._currentActiveSlide=e,this.activeSlideChange.emit(this._currentActiveSlide)}),0)}}nextSlideFromInterval(e=!1){this.move(m.NEXT,e)}nextSlide(e=!1){this.isPlaying&&this.restartTimer(),this.move(m.NEXT,e)}previousSlide(e=!1){this.isPlaying&&this.restartTimer(),this.move(m.PREV,e)}getFirstVisibleIndex(){return this.slides.findIndex(this.getActive)}getLastVisibleIndex(){return function(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}(this.slides,this.getActive)}move(e,t=!1){const n=this.getFirstVisibleIndex(),i=this.getLastVisibleIndex();this.noWrap&&(e===m.NEXT&&this.isLast(i)||e===m.PREV&&0===n)||(this.multilist?this.moveMultilist(e):this.activeSlide=this.findNextSlideIndex(e,t))}keydownPress(e){if(13===e.keyCode||"Enter"===e.key||32===e.keyCode||"Space"===e.key)return this.nextSlide(),void e.preventDefault();37!==e.keyCode&&"LeftArrow"!==e.key?39!==e.keyCode&&"RightArrow"!==e.key||this.nextSlide():this.previousSlide()}onMouseLeave(){this.pauseOnFocus||this.play()}onMouseUp(){this.pauseOnFocus||this.play()}pauseFocusIn(){this.pauseOnFocus&&(this.isPlaying=!1,this.resetTimer())}pauseFocusOut(){this.play()}selectSlide(e){this.isPlaying&&this.restartTimer(),this.multilist?this.selectSlideRange(this.indicatorsByChunk?e*this.itemsPerSlide:e):this.activeSlide=this.indicatorsByChunk?e*this.itemsPerSlide:e}play(){this.isPlaying||(this.isPlaying=!0,this.restartTimer())}pause(){this.noPause||(this.isPlaying=!1,this.resetTimer())}getCurrentSlideIndex(){return this._slides.findIndex(this.getActive)}isLast(e){return e+1>=this._slides.length}isFirst(e){return 0===e}indicatorsSlides(){return this.slides.filter(((e,t)=>!this.indicatorsByChunk||t%this.itemsPerSlide==0))}selectInitialSlides(){const e=this.startFromIndex<=this._slides.length?this.startFromIndex:0;if(this.hideSlides(),this.singleSlideOffset){if(this._slidesWithIndexes=this.mapSlidesAndIndexes(),this._slides.length-e<this.itemsPerSlide){const t=this._slidesWithIndexes.slice(0,e);this._slidesWithIndexes=[...this._slidesWithIndexes,...t].slice(t.length).slice(0,this.itemsPerSlide)}else this._slidesWithIndexes=this._slidesWithIndexes.slice(e,e+this.itemsPerSlide);this._slidesWithIndexes.forEach((e=>e.item.active=!0)),this.makeSlidesConsistent(this._slidesWithIndexes)}else this.selectRangeByNestedIndex(e);this.slideRangeChange.emit(this.getVisibleIndexes())}findNextSlideIndex(e,t){let n=0;if(t||!this.isLast(this.activeSlide)||e===m.PREV||!this.noWrap){switch(e){case m.NEXT:n=this.isLast(this._currentActiveSlide)?!t&&this.noWrap?this._currentActiveSlide:0:this._currentActiveSlide+1;break;case m.PREV:n=this._currentActiveSlide>0?this._currentActiveSlide-1:!t&&this.noWrap?this._currentActiveSlide:this._slides.length-1;break;default:throw new Error("Unknown direction")}return n}}mapSlidesAndIndexes(){return this.slides.slice().map(((e,t)=>({index:t,item:e})))}selectSlideRange(e){if(!this.isIndexInRange(e)){if(this.hideSlides(),this.singleSlideOffset){const t=this.isIndexOnTheEdges(e)?e:e-this.itemsPerSlide+1,n=this.isIndexOnTheEdges(e)?e+this.itemsPerSlide:e+1;this._slidesWithIndexes=this.mapSlidesAndIndexes().slice(t,n),this.makeSlidesConsistent(this._slidesWithIndexes),this._slidesWithIndexes.forEach((e=>e.item.active=!0))}else this.selectRangeByNestedIndex(e);this.slideRangeChange.emit(this.getVisibleIndexes())}}selectRangeByNestedIndex(e){const t=this._chunkedSlides.map(((e,t)=>({index:t,list:e}))).find((t=>void 0!==t.list.find((t=>t.index===e))));this._currentVisibleSlidesIndex=t.index,this._chunkedSlides[t.index].forEach((e=>{e.item.active=!0}))}isIndexOnTheEdges(e){return e+1-this.itemsPerSlide<=0||e+this.itemsPerSlide<=this._slides.length}isIndexInRange(e){return this.singleSlideOffset?this._slidesWithIndexes.map((e=>e.index)).indexOf(e)>=0:e<=this.getLastVisibleIndex()&&e>=this.getFirstVisibleIndex()}hideSlides(){this.slides.forEach((e=>e.active=!1))}isVisibleSlideListLast(){return this._currentVisibleSlidesIndex===this._chunkedSlides.length-1}isVisibleSlideListFirst(){return 0===this._currentVisibleSlidesIndex}moveSliderByOneItem(e){let t,n,i,r;if(this.noWrap){t=this.getFirstVisibleIndex(),n=this.getLastVisibleIndex(),i=e===m.NEXT?t:n,r=e!==m.NEXT?t-1:this.isLast(n)?0:n+1,this._slides.get(i).active=!1,this._slides.get(r).active=!0;const o=this.mapSlidesAndIndexes().filter((e=>e.item.active));this.makeSlidesConsistent(o),this.slideRangeChange.emit(this.getVisibleIndexes())}else{let i;t=this._slidesWithIndexes[0].index,n=this._slidesWithIndexes[this._slidesWithIndexes.length-1].index,e===m.NEXT?(this._slidesWithIndexes.shift(),i=this.isLast(n)?0:n+1,this._slidesWithIndexes.push({index:i,item:this._slides.get(i)})):(this._slidesWithIndexes.pop(),i=this.isFirst(t)?this._slides.length-1:t-1,this._slidesWithIndexes=[{index:i,item:this._slides.get(i)},...this._slidesWithIndexes]),this.hideSlides(),this._slidesWithIndexes.forEach((e=>e.item.active=!0)),this.makeSlidesConsistent(this._slidesWithIndexes),this.slideRangeChange.emit(this._slidesWithIndexes.map((e=>e.index)))}}moveMultilist(e){this.singleSlideOffset?this.moveSliderByOneItem(e):(this.hideSlides(),this.noWrap?this._currentVisibleSlidesIndex=e===m.NEXT?this._currentVisibleSlidesIndex+1:this._currentVisibleSlidesIndex-1:e===m.NEXT?this._currentVisibleSlidesIndex=this.isVisibleSlideListLast()?0:this._currentVisibleSlidesIndex+1:this._currentVisibleSlidesIndex=this.isVisibleSlideListFirst()?this._chunkedSlides.length-1:this._currentVisibleSlidesIndex-1,this._chunkedSlides[this._currentVisibleSlidesIndex].forEach((e=>e.item.active=!0)),this.slideRangeChange.emit(this.getVisibleIndexes()))}getVisibleIndexes(){return this.singleSlideOffset?this._slidesWithIndexes.map((e=>e.index)):this._chunkedSlides[this._currentVisibleSlidesIndex].map((e=>e.index))}_select(e){if(isNaN(e))return void this.pause();if(!this.multilist){const e=this._slides.get(this._currentActiveSlide);e&&(e.active=!1)}const t=this._slides.get(e);t&&(this._currentActiveSlide=e,t.active=!0,this.activeSlide=e,this.activeSlideChange.emit(e))}restartTimer(){this.resetTimer();const e=+this.interval;!isNaN(e)&&e>0&&(this.currentInterval=this.ngZone.runOutsideAngular((()=>setInterval((()=>{const e=+this.interval;this.ngZone.run((()=>{this.isPlaying&&!isNaN(this.interval)&&e>0&&this.slides.length?this.nextSlideFromInterval():this.pause()}))}),e))))}get multilist(){return this.itemsPerSlide>1}resetTimer(){this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=void 0)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](h),i["ɵɵdirectiveInject"](i.NgZone))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["carousel"]],inputs:{indicatorsByChunk:"indicatorsByChunk",itemsPerSlide:"itemsPerSlide",singleSlideOffset:"singleSlideOffset",isAnimated:"isAnimated",startFromIndex:"startFromIndex",activeSlide:"activeSlide",interval:"interval",noWrap:"noWrap",noPause:"noPause",showIndicators:"showIndicators",pauseOnFocus:"pauseOnFocus"},outputs:{activeSlideChange:"activeSlideChange",slideRangeChange:"slideRangeChange"},ngContentSelectors:p,decls:6,vars:6,consts:[["tabindex","0",1,"carousel","slide",3,"mouseenter","mouseleave","mouseup","keydown","focusin","focusout"],["class","carousel-indicators",4,"ngIf"],[1,"carousel-inner",3,"ngStyle"],["class","left carousel-control carousel-control-prev","tabindex","0","role","button",3,"disabled","click",4,"ngIf"],["class","right carousel-control carousel-control-next","tabindex","0","role","button",3,"disabled","click",4,"ngIf"],[1,"carousel-indicators"],[3,"active","click",4,"ngFor","ngForOf"],[3,"click"],["tabindex","0","role","button",1,"left","carousel-control","carousel-control-prev",3,"click"],["aria-hidden","true",1,"icon-prev","carousel-control-prev-icon"],["class","sr-only",4,"ngIf"],[1,"sr-only"],["tabindex","0","role","button",1,"right","carousel-control","carousel-control-next",3,"click"],["aria-hidden","true",1,"icon-next","carousel-control-next-icon"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵelementStart"](0,"div",0),i["ɵɵlistener"]("mouseenter",(function(){return t.pause()}))("mouseleave",(function(){return t.onMouseLeave()}))("mouseup",(function(){return t.onMouseUp()}))("keydown",(function(e){return t.keydownPress(e)}))("focusin",(function(){return t.pauseFocusIn()}))("focusout",(function(){return t.pauseFocusOut()})),i["ɵɵtemplate"](1,s,2,1,"ol",1),i["ɵɵelementStart"](2,"div",2),i["ɵɵprojection"](3),i["ɵɵelementEnd"](),i["ɵɵtemplate"](4,l,3,3,"a",3),i["ɵɵtemplate"](5,d,4,2,"a",4),i["ɵɵelementEnd"]()),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.showIndicators&&t.slides.length>1),i["ɵɵadvance"](1),i["ɵɵproperty"]("ngStyle",i["ɵɵpureFunction1"](4,u,t.multilist?"flex":"block")),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.slides.length>1),i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.slides.length>1))},directives:[o.NgIf,o.NgStyle,o.NgForOf],encapsulation:2}),e})();"undefined"==typeof ngDevMode||ngDevMode;let f=(()=>{class e{constructor(e){this.itemWidth="100%",this.order=0,this.addClass=!0,this.carousel=e}ngOnInit(){this.carousel.addSlide(this),this.itemWidth=100/this.carousel.itemsPerSlide+"%"}ngOnDestroy(){this.carousel.removeSlide(this)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](g))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["slide"]],hostVars:13,hostBindings:function(e,t){2&e&&(i["ɵɵattribute"]("aria-hidden",!t.active),i["ɵɵstyleProp"]("width",t.itemWidth)("order",t.order),i["ɵɵclassProp"]("item",t.addClass)("carousel-item",t.addClass)("active",t.active)("carousel-animation",t.isAnimated))},inputs:{active:"active"},ngContentSelectors:p,decls:2,vars:2,consts:[[1,"item"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵelementStart"](0,"div",0),i["ɵɵprojection"](1),i["ɵɵelementEnd"]()),2&e&&i["ɵɵclassProp"]("active",t.active)},styles:[".carousel-animation[_nghost-%COMP%] {\n       transition: opacity 0.6s ease, visibility 0.6s ease;\n       float: left;\n    }\n    .carousel-animation.active[_nghost-%COMP%] {\n      opacity: 1;\n      visibility: visible;\n    }\n    .carousel-animation[_nghost-%COMP%]:not(.active) {\n      display: block;\n      position: absolute;\n      opacity: 0;\n      visibility: hidden;\n    }"]}),e})();"undefined"==typeof ngDevMode||ngDevMode;let v=(()=>{class e{static forRoot(){return{ngModule:e,providers:[]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[o.CommonModule]]}),e})();"undefined"==typeof ngDevMode||ngDevMode,("undefined"==typeof ngJitMode||ngJitMode)&&i["ɵɵsetNgModuleScope"](v,{declarations:function(){return[f,g]},imports:function(){return[o.CommonModule]},exports:function(){return[f,g]}})},51103:(e,t,n)=>{"use strict";n.d(t,{AL:()=>a,C:()=>l,GU:()=>m,O4:()=>v,Rg:()=>c,Su:()=>h,XA:()=>p,wo:()=>s});var i=n(57826);class r{constructor(e,t){this.open=e,this.close=t||e}isManual(){return"manual"===this.open||"manual"===this.close}}const o={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function a(e,t=o){const n=(e||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map((e=>e.split(":"))).map((e=>{const n=t[e[0]]||e;return new r(n[0],n[1])})),a=i.filter((e=>e.isManual()));if(a.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===a.length&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}function s(e,t){const n=a(t.triggers),i=t.target;if(1===n.length&&n[0].isManual())return Function.prototype;const r=[],o=[],s=()=>{o.forEach((e=>r.push(e()))),o.length=0};return n.forEach((n=>{const a=n.open===n.close,c=a?t.toggle:t.show;a||o.push((()=>e.listen(i,n.close,t.hide))),r.push(e.listen(i,n.open,(()=>c(s))))})),()=>{r.forEach((e=>e()))}}function c(e,t){return t.outsideClick?e.listen("document","click",(e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some((t=>t.contains(e.target)))||t.hide()})):Function.prototype}function l(e,t){return t.outsideEsc?e.listen("document","keyup.esc",(e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some((t=>t.contains(e.target)))||t.hide()})):Function.prototype}const d="undefined"!=typeof window&&window||{};let u;function p(){return void 0===d||(void 0===d.__theme?(u||(u=function(){if("undefined"==typeof document)return null;const e=document.createElement("span");e.innerText="test bs version",document.body.appendChild(e),e.classList.add("d-none");const t=e.getBoundingClientRect();return document.body.removeChild(e),t&&0===t.top?"bs4":"bs3"}()),"bs3"===u):"bs4"!==d.__theme)}d.document,d.location,d.gc,d.performance&&d.performance,d.Event,d.MouseEvent,d.KeyboardEvent,d.EventTarget,d.History,d.Location,d.EventListener;class h{constructor(){this.length=0,this.asArray=[]}get(e){if(0===this.length||e<0||e>=this.length)return;let t=this.head;for(let n=0;n<e;n++)t=t.next;return t.value}add(e,t=this.length){if(t<0||t>this.length)throw new Error("Position is out of the list");const n={value:e,next:void 0,previous:void 0};if(0===this.length)this.head=n,this.tail=n,this.current=n;else if(0===t)n.next=this.head,this.head.previous=n,this.head=n;else if(t===this.length)this.tail.next=n,n.previous=this.tail,this.tail=n;else{const e=this.getNode(t-1),i=e.next;e.next=n,i.previous=n,n.previous=e,n.next=i}this.length++,this.createInternalArrayRepresentation()}remove(e=0){if(0===this.length||e<0||e>=this.length)throw new Error("Position is out of the list");if(0===e)this.head=this.head.next,this.head?this.head.previous=void 0:this.tail=void 0;else if(e===this.length-1)this.tail=this.tail.previous,this.tail.next=void 0;else{const t=this.getNode(e);t.next.previous=t.previous,t.previous.next=t.next}this.length--,this.createInternalArrayRepresentation()}set(e,t){if(0===this.length||e<0||e>=this.length)throw new Error("Position is out of the list");this.getNode(e).value=t,this.createInternalArrayRepresentation()}toArray(){return this.asArray}findAll(e){let t=this.head;const n=[];for(let i=0;i<this.length;i++)e(t.value,i)&&n.push({index:i,value:t.value}),t=t.next;return n}push(...e){return e.forEach((e=>{this.add(e)})),this.length}pop(){if(0===this.length)return;const e=this.tail;return this.remove(this.length-1),e.value}unshift(...e){return e.reverse(),e.forEach((e=>{this.add(e,0)})),this.length}shift(){if(0===this.length)return;const e=this.head.value;return this.remove(),e}forEach(e){let t=this.head;for(let n=0;n<this.length;n++)e(t.value,n),t=t.next}indexOf(e){let t=this.head,n=0;for(let i=0;i<this.length;i++){if(t.value===e){n=i;break}t=t.next}return n}some(e){let t=this.head,n=!1;for(;t&&!n;){if(e(t.value)){n=!0;break}t=t.next}return n}every(e){let t=this.head,n=!0;for(;t&&n;)e(t.value)||(n=!1),t=t.next;return n}toString(){return"[Linked List]"}find(e){let t,n=this.head;for(let i=0;i<this.length;i++){if(e(n.value,i)){t=n.value;break}n=n.next}return t}findIndex(e){let t,n=this.head;for(let i=0;i<this.length;i++){if(e(n.value,i)){t=i;break}n=n.next}return t}getNode(e){if(0===this.length||e<0||e>=this.length)throw new Error("Position is out of the list");let t=this.head;for(let n=0;n<e;n++)t=t.next;return t}createInternalArrayRepresentation(){const e=[];let t=this.head;for(;t;)e.push(t.value),t=t.next;this.asArray=e}}function m(e){const t="Change";return function(e,n){const i=` __${n}Value`;Object.defineProperty(e,n,{get(){return this[i]},set(e){const r=this[i];this[i]=e,r!==e&&this[n+t]&&this[n+t].emit(e)}})}}const g={},f="undefined"==typeof console||!("warn"in console);function v(e){!(0,i.isDevMode)()||f||e in g||(g[e]=!0,console.warn(e))}},27399:(e,t,n)=>{"use strict";n.d(t,{m7:()=>le,zP:()=>se,vO:()=>pe});var i=n(64762),r=n(57826),o=n(40475),a=n(6856),s=n(76547);function c(e,t){1&e&&(r["ɵɵelementStart"](0,"span",3),r["ɵɵnamespaceSVG"](),r["ɵɵelementStart"](1,"svg",4),r["ɵɵelement"](2,"path",5),r["ɵɵelement"](3,"g"),r["ɵɵelement"](4,"g"),r["ɵɵelement"](5,"g"),r["ɵɵelement"](6,"g"),r["ɵɵelement"](7,"g"),r["ɵɵelement"](8,"g"),r["ɵɵelementEnd"](),r["ɵɵelementEnd"]())}const l=["*"];function d(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",2),r["ɵɵlistener"]("click",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().hide()})),r["ɵɵelementEnd"]()}}const u=[[["ng2-dropdown-button"]],[["ng2-dropdown-menu"]]],p=["ng2-dropdown-button","ng2-dropdown-menu"];let h=(()=>{let e=class{constructor(e){this.element=e,this.onMenuToggled=new r.EventEmitter,this.showCaret=!0}toggleMenu(){this.onMenuToggled.emit(!0)}getPosition(){return this.element.nativeElement.getBoundingClientRect()}};return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ElementRef))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["ng2-dropdown-button"]],inputs:{showCaret:"showCaret"},outputs:{onMenuToggled:"onMenuToggled"},ngContentSelectors:l,decls:4,vars:1,consts:[["type","button","tabindex","0s",1,"ng2-dropdown-button",3,"click"],[1,"ng2-dropdown-button__label"],["class","ng2-dropdown-button__caret",4,"ngIf"],[1,"ng2-dropdown-button__caret"],["enable-background","new 0 0 32 32","height","16px","id","Слой_1","version","1.1","viewBox","0 0 32 32","width","16px",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["d","M24.285,11.284L16,19.571l-8.285-8.288c-0.395-0.395-1.034-0.395-1.429,0  c-0.394,0.395-0.394,1.035,0,1.43l8.999,9.002l0,0l0,0c0.394,0.395,1.034,0.395,1.428,0l8.999-9.002  c0.394-0.395,0.394-1.036,0-1.431C25.319,10.889,24.679,10.889,24.285,11.284z","fill","#121313","id","Expand_More"]],template:function(e,t){1&e&&(r["ɵɵprojectionDef"](),r["ɵɵelementStart"](0,"button",0),r["ɵɵlistener"]("click",(function(){return t.toggleMenu()})),r["ɵɵelementStart"](1,"span",1),r["ɵɵprojection"](2),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,c,9,0,"span",2),r["ɵɵelementEnd"]()),2&e&&(r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",t.showCaret))},directives:[a.NgIf],styles:['.ng2-dropdown-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",Helvetica,Arial;background:#fff;padding:.45rem .25rem;font-size:14px;letter-spacing:.08rem;color:#444;outline:0;cursor:pointer;font-weight:400;border:none;border-bottom:1px solid #efefef;text-align:left;min-width:100px;width:100%;display:flex;flex-direction:row;max-width:150px}.ng2-dropdown-button[_ngcontent-%COMP%]:hover{color:#222}.ng2-dropdown-button[_ngcontent-%COMP%]:active, .ng2-dropdown-button[_ngcontent-%COMP%]:focus{color:#222;border-bottom:2px solid #2196f3}.ng2-dropdown-button__label[_ngcontent-%COMP%]{flex:1 1 95%}.ng2-dropdown-button__caret[_ngcontent-%COMP%]{width:12px;height:12px;display:flex;flex:1 1 6%}.ng2-dropdown-button--icon[_nghost-%COMP%]   .ng2-dropdown-button[_ngcontent-%COMP%], .ng2-dropdown-button--icon   [_nghost-%COMP%]   .ng2-dropdown-button[_ngcontent-%COMP%]{border:none;min-width:40px;width:40px;border-radius:100%;transition:.2s;text-align:center;height:40px;padding:.5em}.ng2-dropdown-button--icon[_nghost-%COMP%]   .ng2-dropdown-button[_ngcontent-%COMP%]:active, .ng2-dropdown-button--icon   [_nghost-%COMP%]   .ng2-dropdown-button[_ngcontent-%COMP%]:active{background:rgba(0,0,0,.2)}']}),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onMenuToggled",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"showCaret",void 0),e})();const m={9:(e,t,n)=>{e<t.length-1?n.select(t[e+1],!0):n.select(t[0],!0)},38:(e,t,n)=>{e>0&&n.select(t[e-1],!0)},40:(e,t,n)=>{e<t.length-1&&n.select(t[e+1],!0)},13:(e,t,n)=>n.selectedItem?n.selectedItem.click():void 0,27:function(){this.hide()}};function g(e){[38,40].indexOf(e.keyCode)>-1&&e.preventDefault()}class f{constructor(){this.onItemSelected=new r.EventEmitter,this.onItemClicked=new r.EventEmitter,this.onItemDestroyed=new r.EventEmitter}get selectedItem(){return this._selectedItem}select(e,t=!0){this._selectedItem=e,t&&e&&(e.focus(),this.onItemSelected.emit(e))}unselect(){this._selectedItem=void 0}}let v=(()=>{let e=class{constructor(){this.menuState={isVisible:!1,toString(){return!0===this.isVisible?"visible":"hidden"}},this.dropdownState=new f}};return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:function(t){return e.ɵfac(t)}}),e})(),b=(()=>{let e=class{constructor(e,t){this.state=e,this.element=t,this.preventClose=!1}ngOnDestroy(){this.state.dropdownState.onItemDestroyed.emit(this)}get isSelected(){return this===this.state.dropdownState.selectedItem}select(e){this.state.dropdownState.select(this,!0),e&&(e.stopPropagation(),e.preventDefault())}click(){this.state.dropdownState.onItemClicked.emit(this)}focus(){this.element.nativeElement.children[0].focus()}};return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](v),r["ɵɵdirectiveInject"](r.ElementRef))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["ng2-menu-item"]],inputs:{preventClose:"preventClose",value:"value"},ngContentSelectors:l,decls:2,vars:2,consts:[["role","button","tabindex","0",1,"ng2-menu-item",3,"keydown.enter","click","mouseover"]],template:function(e,t){1&e&&(r["ɵɵprojectionDef"](),r["ɵɵelementStart"](0,"div",0),r["ɵɵlistener"]("keydown.enter",(function(){return t.click()}))("click",(function(){return t.click()}))("mouseover",(function(){return t.select()})),r["ɵɵprojection"](1),r["ɵɵelementEnd"]()),2&e&&r["ɵɵclassProp"]("ng2-menu-item--selected",t.isSelected)},styles:['.ng2-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",Helvetica,Arial;background:#fff;color:rgba(0,0,0,.87);cursor:pointer;font-size:.9em;text-transform:none;font-weight:400;letter-spacing:.03em;height:48px;line-height:48px;padding:.3em 1.25rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;transition:background .25s}.ng2-menu-item--selected[_ngcontent-%COMP%]{background:rgba(158,158,158,.2);outline:0}.ng2-menu-item[_ngcontent-%COMP%]:focus{outline:0}.ng2-menu-item[_ngcontent-%COMP%]:active{background:rgba(158,158,158,.4)}ng2-menu-item[_nghost-%COMP%]     [ng2-menu-item-icon]{vertical-align:middle;font-size:28px;width:1.5em;height:30px;color:rgba(0,0,0,.44)}']}),(0,i.__decorate)([(0,r.Input)()],e.prototype,"preventClose",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"value",void 0),e})(),y=(()=>{let e=class{constructor(e,t,n){this.dropdownState=e,this.element=t,this.renderer=n,this.width=4,this.focusFirstElement=!0,this.appendToBody=!0,this.zIndex=1e3,this.listeners={arrowHandler:void 0,handleKeypress:void 0}}show(e,t=!0){const n="undefined"!=typeof document?document:void 0,i="undefined"!=typeof window?window:void 0;this.dropdownState.menuState.isVisible||(this.listeners.handleKeypress=this.renderer.listen(n.body,"keydown",this.handleKeypress.bind(this)),this.listeners.arrowHandler=this.renderer.listen(i,"keydown",g)),this.dropdownState.menuState.isVisible=!0,e&&this.updatePosition(e,t)}hide(){this.dropdownState.menuState.isVisible=!1,this.dropdownState.dropdownState.unselect(),this.listeners.arrowHandler&&this.listeners.arrowHandler(),this.listeners.handleKeypress&&this.listeners.handleKeypress()}updatePosition(e,t){this.position=e,this.updateOnChange(t)}handleKeypress(e){const t=e.keyCode,n=this.items.toArray(),i=n.indexOf(this.dropdownState.dropdownState.selectedItem);m.hasOwnProperty(t)&&m[t].call(this,i,n,this.dropdownState.dropdownState)}getMenuElement(){return this.element.nativeElement.children[0]}calcPositionOffset(e){const t="undefined"!=typeof window?window:void 0,n="undefined"!=typeof document?document:void 0;if(!t||!n||!e)return;const i=this.getMenuElement(),r=void 0!==t.pageXOffset,o="CSS1Compat"===(n.compatMode||""),a=r?t.pageXOffset:o?n.documentElement.scrollLeft:n.body.scrollLeft,s=r?t.pageYOffset:o?n.documentElement.scrollTop:n.body.scrollTop;let{top:c,left:l}=this.applyOffset(`${e.top+(this.appendToBody?s-15:0)}px`,e.left+a-5+"px");const d=i.clientWidth,u=i.clientHeight,p=parseInt(c)+u+(this.appendToBody?0:s-15),h=parseInt(l)+d,m=t.innerHeight+t.scrollY,g=t.innerWidth+t.scrollX;if(p>=m&&(c=parseInt(c.replace("px",""))-u+"px"),h>=g){const e=h-g+30;l=parseInt(l.replace("px",""))-e+"px"}return{top:c,left:l}}applyOffset(e,t){if(!this.offset)return{top:e,left:t};const n=this.offset.split(" ");return n[1]||(n[1]="0"),{top:e=`${parseInt(e.replace("px",""))+parseInt(n[0])}px`,left:t=`${parseInt(t.replace("px",""))+parseInt(n[1])}px`}}ngOnInit(){const e="undefined"!=typeof document?document:void 0;this.appendToBody&&e.body.appendChild(this.element.nativeElement)}updateOnChange(e=!0){const t=this.getMenuElement(),n=this.calcPositionOffset(this.position);n&&(this.renderer.setStyle(t,"top",n.top.toString()),this.renderer.setStyle(t,"left",n.left.toString())),this.focusFirstElement&&this.items.first&&!this.dropdownState.dropdownState.selectedItem&&this.dropdownState.dropdownState.select(this.items.first,!1)}ngOnDestroy(){const e=this.element.nativeElement;e.parentNode.removeChild(e),this.listeners.handleKeypress&&this.listeners.handleKeypress()}};return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](v),r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["ng2-dropdown-menu"]],contentQueries:function(e,t,n){if(1&e&&r["ɵɵcontentQuery"](n,b,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.items=e)}},inputs:{width:"width",focusFirstElement:"focusFirstElement",appendToBody:"appendToBody",zIndex:"zIndex",offset:"offset"},ngContentSelectors:l,decls:4,vars:12,consts:[[1,"ng2-dropdown-menu__options-container"],["class","ng2-dropdown-backdrop",3,"click",4,"ngIf"],[1,"ng2-dropdown-backdrop",3,"click"]],template:function(e,t){1&e&&(r["ɵɵprojectionDef"](),r["ɵɵelementStart"](0,"div"),r["ɵɵelementStart"](1,"div",0),r["ɵɵprojection"](2),r["ɵɵelementEnd"](),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,d,1,0,"div",1)),2&e&&(r["ɵɵclassMapInterpolate1"]("ng2-dropdown-menu ng2-dropdown-menu---width--",t.width,""),r["ɵɵstyleProp"]("z-index",t.zIndex),r["ɵɵclassProp"]("ng2-dropdown-menu--inside-element",!t.appendToBody)("ng2-dropdown-menu--open",t.dropdownState.menuState.isVisible),r["ɵɵproperty"]("@fade",t.dropdownState.menuState.toString()),r["ɵɵadvance"](1),r["ɵɵproperty"]("@opacity",t.dropdownState.menuState.toString()),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.dropdownState.menuState.isVisible))},directives:[a.NgIf],styles:["[_nghost-%COMP%]{display:block}.ng2-dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;box-shadow:0 1px 2px 0 rgba(0,0,0,.3);position:absolute;padding:.5em 0;background:#fff;border-radius:1px;max-height:400px;width:260px;min-height:0;display:block}.ng2-dropdown-menu.ng2-dropdown-menu--inside-element[_ngcontent-%COMP%]{position:fixed}.ng2-dropdown-menu.ng2-dropdown-menu--width--2[_ngcontent-%COMP%]{width:200px}.ng2-dropdown-menu.ng2-dropdown-menu--width--4[_ngcontent-%COMP%]{width:260px}.ng2-dropdown-menu.ng2-dropdown-menu--width--6[_ngcontent-%COMP%]{width:320px}.ng2-dropdown-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:hidden}[_nghost-%COMP%]     .ng2-menu-divider{height:1px;min-height:1px;max-height:1px;width:100%;display:block;background:#f9f9f9}"],data:{animation:[(0,s.trigger)("fade",[(0,s.state)("visible",(0,s.style)({opacity:1,height:"*",width:"*"})),(0,s.state)("hidden",(0,s.style)({opacity:0,overflow:"hidden",height:0,width:0})),(0,s.transition)("hidden => visible",[(0,s.animate)("250ms ease-in",(0,s.style)({opacity:1,height:"*",width:"*"}))]),(0,s.transition)("visible => hidden",[(0,s.animate)("350ms ease-out",(0,s.style)({opacity:0,width:0,height:0}))])]),(0,s.trigger)("opacity",[(0,s.transition)("hidden => visible",[(0,s.animate)("450ms ease-in",(0,s.keyframes)([(0,s.style)({opacity:0,offset:0}),(0,s.style)({opacity:1,offset:1})]))]),(0,s.transition)("visible => hidden",[(0,s.animate)("250ms ease-out",(0,s.keyframes)([(0,s.style)({opacity:1,offset:0}),(0,s.style)({opacity:.5,offset:.3}),(0,s.style)({opacity:0,offset:1})]))])])]}}),(0,i.__decorate)([(0,r.Input)()],e.prototype,"width",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"focusFirstElement",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"offset",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"appendToBody",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"zIndex",void 0),(0,i.__decorate)([(0,r.ContentChildren)(b,{descendants:!0})],e.prototype,"items",void 0),e})(),C=(()=>{let e=class{constructor(e){this.state=e,this.dynamicUpdate=!0,this.onItemClicked=new r.EventEmitter,this.onItemSelected=new r.EventEmitter,this.onShow=new r.EventEmitter,this.onHide=new r.EventEmitter}ngOnInit(){this.state.dropdownState.onItemClicked.subscribe((e=>{this.onItemClicked.emit(e),e.preventClose||this.hide.call(this)})),this.button&&this.button.onMenuToggled.subscribe((()=>{this.toggleMenu()})),this.state.dropdownState.onItemSelected.subscribe((e=>{this.onItemSelected.emit(e)})),this.state.dropdownState.onItemDestroyed.subscribe((e=>{let t;const n=this.menu.items.toArray();e===this.state.dropdownState.selectedItem&&(this.menu.focusFirstElement&&(t=e===n[0]&&n.length>1?n[1]:n[0]),this.state.dropdownState.select(t))}))}toggleMenu(e=this.button.getPosition()){this.state.menuState.isVisible?this.hide():this.show(e)}hide(){this.menu.hide(),this.onHide.emit(this)}show(e=this.button.getPosition()){this.menu.show(e,this.dynamicUpdate),this.onShow.emit(this)}scrollListener(){this.button&&this.dynamicUpdate&&this.menu.updatePosition(this.button.getPosition(),!0)}};return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](v))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["ng2-dropdown"]],contentQueries:function(e,t,n){if(1&e&&(r["ɵɵcontentQuery"](n,h,7),r["ɵɵcontentQuery"](n,y,7)),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.button=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.menu=e.first)}},hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("scroll",(function(){return t.scrollListener()}),!1,r["ɵɵresolveWindow"])},inputs:{dynamicUpdate:"dynamicUpdate"},outputs:{onItemClicked:"onItemClicked",onItemSelected:"onItemSelected",onShow:"onShow",onHide:"onHide"},features:[r["ɵɵProvidersFeature"]([v])],ngContentSelectors:p,decls:3,vars:0,consts:[[1,"ng2-dropdown-container"]],template:function(e,t){1&e&&(r["ɵɵprojectionDef"](u),r["ɵɵelementStart"](0,"div",0),r["ɵɵprojection"](1),r["ɵɵprojection"](2,1),r["ɵɵelementEnd"]())},encapsulation:2}),(0,i.__decorate)([(0,r.ContentChild)(h,{static:!0})],e.prototype,"button",void 0),(0,i.__decorate)([(0,r.ContentChild)(y,{static:!0})],e.prototype,"menu",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"dynamicUpdate",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onItemClicked",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onItemSelected",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onShow",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onHide",void 0),(0,i.__decorate)([(0,r.HostListener)("window:scroll")],e.prototype,"scrollListener",null),e})(),S=(()=>{let e=class{};return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({imports:[[a.CommonModule]]}),e})();"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,("undefined"==typeof ngJitMode||ngJitMode)&&r["ɵɵsetNgModuleScope"](S,{declarations:function(){return[C,b,h,y]},imports:function(){return[a.CommonModule]},exports:function(){return[b,h,y,C]}});var x=n(42998);const w=["input"];function E(e,t){}const I=function(e,t){return{item:e,index:t}};function P(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div"),r["ɵɵtemplate"](1,E,0,0,"ng-template",4),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵattribute"]("contenteditable",e.editing),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngTemplateOutletContext",r["ɵɵpureFunction2"](3,I,e.model,e.index))("ngTemplateOutlet",e.template)}}function T(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"delete-icon",8),r["ɵɵlistener"]("click",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"](2).remove(t)})),r["ɵɵelementEnd"]()}}function _(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",5),r["ɵɵelementStart"](1,"div",6),r["ɵɵlistener"]("keydown.enter",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().disableEditMode(t)}))("keydown.escape",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().disableEditMode(t)}))("click",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().editing?t.stopPropagation():void 0}))("blur",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().onBlurred(t)})),r["ɵɵtext"](2),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,T,1,0,"delete-icon",7),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵattribute"]("contenteditable",e.editing)("title",e.getDisplayValue(e.model)),r["ɵɵadvance"](1),r["ɵɵtextInterpolate1"](" ",e.getDisplayValue(e.model)," "),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.isDeleteIconVisible())}}function M(e,t){if(1&e&&r["ɵɵelement"](0,"tag-ripple",9),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("state",e.rippleState),r["ɵɵattribute"]("tabindex",-1)}}function O(e,t){if(1&e&&(r["ɵɵelement"](0,"span",6),r["ɵɵpipe"](1,"highlight")),2&e){const e=r["ɵɵnextContext"]().$implicit,t=r["ɵɵnextContext"]();r["ɵɵproperty"]("innerHTML",r["ɵɵpipeBind2"](1,1,e[t.displayBy],t.tagInput.inputForm.value.value),r["ɵɵsanitizeHtml"])}}function A(e,t){}const k=function(e,t,n){return{item:e,index:t,last:n}};function j(e,t){if(1&e&&r["ɵɵtemplate"](0,A,0,0,"ng-template",7),2&e){const e=r["ɵɵnextContext"](),t=e.$implicit,n=e.index,i=e.last,o=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngTemplateOutlet",o.templates.first)("ngTemplateOutletContext",r["ɵɵpureFunction3"](2,k,t,n,i))}}function N(e,t){if(1&e&&(r["ɵɵelementStart"](0,"ng2-menu-item",3),r["ɵɵtemplate"](1,O,2,4,"span",4),r["ɵɵtemplate"](2,j,1,6,void 0,5),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=r["ɵɵnextContext"]();r["ɵɵproperty"]("value",e)("ngSwitch",!!n.templates.length),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngSwitchCase",!1)}}function R(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"tag",6),r["ɵɵlistener"]("onSelect",(function(){const t=r["ɵɵrestoreView"](e).$implicit;return r["ɵɵnextContext"]().selectItem(t)}))("onRemove",(function(){const t=r["ɵɵrestoreView"](e),n=t.$implicit,i=t.index;return r["ɵɵnextContext"]().onRemoveRequested(n,i)}))("onKeyDown",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().handleKeydown(t)}))("onTagEdited",(function(t){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().updateEditedTag(t)}))("onBlur",(function(t){const n=r["ɵɵrestoreView"](e).index;return r["ɵɵnextContext"]().onTagBlurred(t,n)}))("dragstart",(function(t){const n=r["ɵɵrestoreView"](e),i=n.$implicit,o=n.index,a=r["ɵɵnextContext"]();return a.dragZone?a.onDragStarted(t,i,o):void 0}))("drop",(function(t){const n=r["ɵɵrestoreView"](e).index,i=r["ɵɵnextContext"]();return i.dragZone?i.onTagDropped(t,n):void 0}))("dragenter",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"]();return n.dragZone?n.onDragOver(t):void 0}))("dragover",(function(t){const n=r["ɵɵrestoreView"](e).index,i=r["ɵɵnextContext"]();return i.dragZone?i.onDragOver(t,n):void 0}))("dragleave",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return t.dragZone?t.dragProvider.onDragEnd():void 0})),r["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=t.index,i=r["ɵɵnextContext"]();r["ɵɵpropertyInterpolate"]("draggable",i.editable),r["ɵɵproperty"]("canAddTag",i.isTagValid)("disabled",i.disable)("@animation",i.animationMetadata)("hasRipple",i.ripple)("index",n)("removable",i.removable)("editable",i.editable)("displayBy",i.displayBy)("identifyBy",i.identifyBy)("template",i.hasCustomTemplate()?i.templates.first:void 0)("draggable",i.dragZone)("model",e),r["ɵɵattribute"]("tabindex",0)}}function D(e,t){1&e&&r["ɵɵelement"](0,"div",7)}function L(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",10),r["ɵɵelementStart"](1,"span"),r["ɵɵtext"](2),r["ɵɵelementEnd"](),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵadvance"](2),r["ɵɵtextInterpolate"](e)}}function F(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",8),r["ɵɵtemplate"](1,L,3,1,"p",9),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",e.theme),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngForOf",e.errors)}}const B=["*"];let U=(()=>{let e=class{transform(e,t){if(!t.trim())return e;try{const i=new RegExp(`(${n=t,n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")})`,"i");return e.replace(i,"<b>$1</b>")}catch(t){return e}var n}};return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=r["ɵɵdefinePipe"]({name:"highlight",type:e,pure:!0}),e})();const V="keydown",G="DELETE",H="SWITCH_PREV",z="SWITCH_NEXT",$={8:G,46:G,37:H,39:z,9:"TAB"},W="Text",q="NEXT",K="PREV";let X=(()=>{let e=class{constructor(){this.state={dragging:!1,dropping:!1,index:void 0}}setDraggedItem(e,t){e&&e.dataTransfer&&e.dataTransfer.setData(W,JSON.stringify(t))}getDraggedItem(e){if(e&&e.dataTransfer){const t=e.dataTransfer.getData(W);try{return JSON.parse(t)}catch(e){return}}}setSender(e){this.sender=e}setReceiver(e){this.receiver=e}onTagDropped(e,t,n){this.onDragEnd(),this.sender.onRemoveRequested(e,t),this.receiver.onAddingRequested(!1,e,n)}setState(e){this.state=Object.assign(Object.assign({},this.state),e)}getState(e){return e?this.state[e]:this.state}onDragEnd(){this.setState({dragging:!1,dropping:!1,index:void 0})}};return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:function(t){return e.ɵfac(t)}}),e})();const Y={tagInput:{separatorKeys:[],separatorKeyCodes:[],maxItems:1/0,placeholder:"+ Tag",secondaryPlaceholder:"Enter a new tag",validators:[],asyncValidators:[],onlyFromAutocomplete:!1,errorMessages:{},theme:"",onTextChangeDebounce:250,inputId:null,inputClass:"",clearOnBlur:!1,hideForm:!1,addOnBlur:!1,addOnPaste:!1,pasteSplitPattern:",",blinkIfDupe:!0,removable:!0,editable:!1,allowDupes:!1,modelAsStrings:!1,trimTags:!0,ripple:!0,tabIndex:"",disable:!1,dragZone:"",onRemoving:void 0,onAdding:void 0,displayBy:"display",identifyBy:"value",animationDuration:{enter:"250ms",leave:"150ms"}},dropdown:{displayBy:"display",identifyBy:"value",appendToBody:!0,offset:"50 0",focusFirstElement:!1,showDropdownIfEmpty:!1,minimumTextLength:1,limitItemsTo:1/0,keepOpen:!0,dynamicUpdate:!0,zIndex:1e3,matchingFn:function(e,t){const n=t[this.displayBy].toString();return n&&n.toLowerCase().indexOf(e.toLowerCase())>=0}}};let J=(()=>{class e{setOptions(t){e.defaults.tagInput=Object.assign(Object.assign({},Y.tagInput),t.tagInput),e.defaults.dropdown=Object.assign(Object.assign({},Y.dropdown),t.dropdown)}}return e.defaults=Y,e})();function Q(e){return e===Object(e)}let Z=(()=>{let e=class{constructor(){this._items=[],this.displayBy=J.defaults.tagInput.displayBy,this.identifyBy=J.defaults.tagInput.identifyBy}get items(){return this._items}set items(e){this._items=e,this._onChangeCallback(this._items)}onTouched(){this._onTouchedCallback()}writeValue(e){this._items=e||[]}registerOnChange(e){this._onChangeCallback=e}registerOnTouched(e){this._onTouchedCallback=e}getItemValue(e,t=!1){const n=t&&this.dropdown?this.dropdown.identifyBy:this.identifyBy;return Q(e)?e[n]:e}getItemDisplay(e,t=!1){const n=t&&this.dropdown?this.dropdown.displayBy:this.displayBy;return Q(e)?e[n]:e}getItemsWithout(e){return this.items.filter(((t,n)=>n!==e))}};return e.ɵfac=function(t){return new(t||e)},e.ɵdir=r["ɵɵdefineDirective"]({type:e,inputs:{displayBy:"displayBy",identifyBy:"identifyBy"}}),(0,i.__decorate)([(0,r.Input)()],e.prototype,"displayBy",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"identifyBy",void 0),e})();function ee(e,t,n=!0){if(!this.listeners.hasOwnProperty(e))throw new Error("The event entered may be wrong");n&&this.listeners[e].push(t)}let te=(()=>{let e=class{constructor(){this.onSubmit=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onKeyup=new r.EventEmitter,this.onKeydown=new r.EventEmitter,this.inputTextChange=new r.EventEmitter,this.validators=[],this.asyncValidators=[],this.tabindex="",this.disabled=!1,this.item=new o.FormControl({value:"",disabled:this.disabled})}get inputText(){return this.item.value}set inputText(e){this.item.setValue(e),this.inputTextChange.emit(e)}ngOnInit(){this.item.setValidators(this.validators),this.item.setAsyncValidators(this.asyncValidators),this.form=new o.FormGroup({item:this.item})}ngOnChanges(e){e.disabled&&!e.disabled.firstChange&&(e.disabled.currentValue?this.form.controls.item.disable():this.form.controls.item.enable())}get value(){return this.form.get("item")}isInputFocused(){const e="undefined"!=typeof document?document:void 0;return!!e&&e.activeElement===this.input.nativeElement}getErrorMessages(e){return Object.keys(e).filter((e=>this.value.hasError(e))).map((t=>e[t]))}hasErrors(){const{dirty:e,value:t,valid:n}=this.form;return e&&t.item&&!n}focus(){this.input.nativeElement.focus()}blur(){this.input.nativeElement.blur()}getElementPosition(){return this.input.nativeElement.getBoundingClientRect()}destroy(){const e=this.input.nativeElement;e.parentElement.removeChild(e)}onKeyDown(e){if(this.inputText=this.value.value,"Enter"!==e.key)return this.onKeydown.emit(e);this.submit(e)}onKeyUp(e){return this.inputText=this.value.value,this.onKeyup.emit(e)}submit(e){e.preventDefault(),this.onSubmit.emit(e)}};return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["tag-input-form"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](w,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.input=e.first)}},inputs:{validators:"validators",asyncValidators:"asyncValidators",tabindex:"tabindex",disabled:"disabled",inputText:"inputText",placeholder:"placeholder",inputId:"inputId",inputClass:"inputClass"},outputs:{onSubmit:"onSubmit",onBlur:"onBlur",onFocus:"onFocus",onKeyup:"onKeyup",onKeydown:"onKeydown",inputTextChange:"inputTextChange"},features:[r["ɵɵNgOnChangesFeature"]],decls:3,vars:8,consts:[[3,"formGroup","ngSubmit"],["type","text","autocomplete","off","minlength","1","formControlName","item",1,"ng2-tag-input__text-input",3,"tabindex","ngClass","focus","blur","keydown","keyup"],["input",""]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"form",0),r["ɵɵlistener"]("ngSubmit",(function(e){return t.submit(e)})),r["ɵɵelementStart"](1,"input",1,2),r["ɵɵlistener"]("focus",(function(e){return t.onFocus.emit(e)}))("blur",(function(e){return t.onBlur.emit(e)}))("keydown",(function(e){return t.onKeyDown(e)}))("keyup",(function(e){return t.onKeyUp(e)})),r["ɵɵelementEnd"](),r["ɵɵelementEnd"]()),2&e&&(r["ɵɵproperty"]("formGroup",t.form),r["ɵɵadvance"](1),r["ɵɵpropertyInterpolate"]("tabindex",t.disabled?-1:t.tabindex?t.tabindex:0),r["ɵɵproperty"]("ngClass",t.inputClass),r["ɵɵattribute"]("id",t.inputId)("placeholder",t.placeholder)("aria-label",t.placeholder)("tabindex",t.tabindex)("disabled",t.disabled?t.disabled:null))},directives:[o["ɵNgNoValidate"],o.NgControlStatusGroup,o.FormGroupDirective,o.DefaultValueAccessor,o.MinLengthValidator,o.NgControlStatus,o.FormControlName,a.NgClass],styles:['.dark[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:0;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px rgba(0,0,0,.4);border:1px solid #ccc}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:.25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196f3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f;border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{color:#d9534f}.ng2-tag-input__text-input[_ngcontent-%COMP%]{display:inline;vertical-align:middle;border:none;padding:0 .5rem;height:38px;font-size:1em;font-family:Roboto,"Helvetica Neue",sans-serif}.ng2-tag-input__text-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input__text-input[disabled=true][_ngcontent-%COMP%]{opacity:.5;background:#fff}']}),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onSubmit",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onBlur",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onFocus",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onKeyup",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onKeydown",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"inputTextChange",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"placeholder",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"validators",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"asyncValidators",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"inputId",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"inputClass",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"tabindex",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"disabled",void 0),(0,i.__decorate)([(0,r.ViewChild)("input")],e.prototype,"input",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"inputText",null),e})(),ne=(()=>{let e=class{constructor(){this.state="none"}};return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["tag-ripple"]],inputs:{state:"state"},decls:1,vars:1,consts:[[1,"tag-ripple"]],template:function(e,t){1&e&&r["ɵɵelement"](0,"div",0),2&e&&r["ɵɵproperty"]("@ink",t.state)},styles:["[_nghost-%COMP%] {\n            width: 100%;\n            height: 100%;\n            left: 0;\n            overflow: hidden;\n            position: absolute;\n        }\n\n        .tag-ripple[_ngcontent-%COMP%] {\n            background: rgba(0, 0, 0, 0.1);\n            top: 50%;\n            left: 50%;\n            height: 100%;\n            transform: translate(-50%, -50%);\n            position: absolute;\n        }"],data:{animation:[(0,s.trigger)("ink",[(0,s.state)("none",(0,s.style)({width:0,opacity:0})),(0,s.transition)("none => clicked",[(0,s.animate)(300,(0,s.keyframes)([(0,s.style)({opacity:1,offset:0,width:"30%",borderRadius:"100%"}),(0,s.style)({opacity:1,offset:.5,width:"50%"}),(0,s.style)({opacity:.5,offset:1,width:"100%",borderRadius:"16px"})]))])])]}}),(0,i.__decorate)([(0,r.Input)()],e.prototype,"state",void 0),e})();const ie="undefined"!=typeof window?window.navigator:{userAgent:"Chrome",vendor:"Google Inc"},re=/Chrome/.test(ie.userAgent)&&/Google Inc/.test(ie.vendor);let oe=(()=>{let e=class{constructor(e,t,n){this.element=e,this.renderer=t,this.cdRef=n,this.disabled=!1,this.onSelect=new r.EventEmitter,this.onRemove=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onKeyDown=new r.EventEmitter,this.onTagEdited=new r.EventEmitter,this.editing=!1,this.rippleState="none"}get readonly(){return"string"!=typeof this.model&&!0===this.model.readonly}select(e){this.readonly||this.disabled||(e&&e.stopPropagation(),this.focus(),this.onSelect.emit(this.model))}remove(e){e.stopPropagation(),this.onRemove.emit(this)}focus(){this.element.nativeElement.focus()}move(){this.moving=!0}keydown(e){if(this.editing){if(13===e.keyCode)return this.disableEditMode(e)}else this.onKeyDown.emit({event:e,model:this.model})}blink(){const e=this.element.nativeElement.classList;e.add("blink"),setTimeout((()=>e.remove("blink")),50)}toggleEditMode(){if(this.editable)return this.editing?void 0:this.activateEditMode()}onBlurred(e){if(!this.editable)return;this.disableEditMode();const t=e.target.innerText,n="string"==typeof this.model?t:Object.assign(Object.assign({},this.model),{[this.displayBy]:t});this.onBlur.emit(n)}getDisplayValue(e){return"string"==typeof e?e:e[this.displayBy]}get isRippleVisible(){return!this.readonly&&!this.editing&&re&&this.hasRipple}disableEditMode(e){const t=this.element.nativeElement.classList,n=this.getContentEditableText();this.editing=!1,t.remove("tag--editing"),n?(this.storeNewValue(n),this.cdRef.detectChanges(),e&&e.preventDefault()):this.setContentEditableText(this.model)}isDeleteIconVisible(){return!this.readonly&&!this.disabled&&this.removable&&!this.editing}getContentEditableText(){const e=this.getContentEditable();return e?e.innerText.trim():""}setContentEditableText(e){const t=this.getContentEditable(),n=this.getDisplayValue(e);t.innerText=n}activateEditMode(){this.element.nativeElement.classList.add("tag--editing"),this.editing=!0}storeNewValue(e){if((t=>"string"==typeof t?t===e:t[this.displayBy]===e)(this.model))return;const t="string"==typeof this.model?e:{index:this.index,[this.identifyBy]:(()=>this.model[this.identifyBy]!==this.model[this.displayBy])()?this.model[this.identifyBy]:e,[this.displayBy]:e};this.canAddTag(t)?this.onTagEdited.emit({tag:t,index:this.index}):this.setContentEditableText(this.model)}getContentEditable(){return this.element.nativeElement.querySelector("[contenteditable]")}};return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2),r["ɵɵdirectiveInject"](r.ChangeDetectorRef))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["tag"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](ne,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.ripple=e.first)}},hostVars:2,hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("keydown",(function(e){return t.keydown(e)})),2&e&&r["ɵɵclassProp"]("moving",t.moving)},inputs:{disabled:"disabled",model:"model",removable:"removable",editable:"editable",template:"template",displayBy:"displayBy",identifyBy:"identifyBy",index:"index",hasRipple:"hasRipple",canAddTag:"canAddTag"},outputs:{onSelect:"onSelect",onRemove:"onRemove",onBlur:"onBlur",onKeyDown:"onKeyDown",onTagEdited:"onTagEdited"},decls:4,vars:8,consts:[[3,"ngSwitch","click","dblclick","mousedown","mouseup"],[4,"ngSwitchCase"],["class","tag-wrapper",4,"ngSwitchCase"],[3,"state",4,"ngIf"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"tag-wrapper"],["spellcheck","false",1,"tag__text","inline",3,"keydown.enter","keydown.escape","click","blur"],["aria-label","Remove tag","role","button",3,"click",4,"ngIf"],["aria-label","Remove tag","role","button",3,"click"],[3,"state"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"div",0),r["ɵɵlistener"]("click",(function(e){return t.select(e)}))("dblclick",(function(){return t.toggleEditMode()}))("mousedown",(function(){return t.rippleState="clicked"}))("mouseup",(function(){return t.rippleState="none"})),r["ɵɵtemplate"](1,P,2,6,"div",1),r["ɵɵtemplate"](2,_,4,4,"div",2),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,M,1,2,"tag-ripple",3)),2&e&&(r["ɵɵclassProp"]("disabled",t.disabled),r["ɵɵproperty"]("ngSwitch",!!t.template),r["ɵɵattribute"]("tabindex",-1)("aria-label",t.getDisplayValue(t.model)),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngSwitchCase",!0),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngSwitchCase",!1),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.isRippleVisible))},directives:function(){return[a.NgSwitch,a.NgSwitchCase,a.NgIf,a.NgTemplateOutlet,de,ne]},styles:["[_nghost-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%]:focus{outline:0;overflow:hidden;transition:opacity 1s;z-index:1}[_nghost-%COMP%]{max-width:400px}.blink[_nghost-%COMP%]{-webkit-animation:.3s ease-in-out forwards blink;animation:.3s ease-in-out forwards blink}@-webkit-keyframes blink{0%{opacity:.3}}@keyframes blink{0%{opacity:.3}}[_nghost-%COMP%]   .disabled[_ngcontent-%COMP%]{cursor:not-allowed}[_nghost-%COMP%]   [contenteditable=true][_ngcontent-%COMP%]{outline:0}.tag-wrapper[_ngcontent-%COMP%]{flex-direction:row;display:flex}.tag__text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]}),(0,i.__decorate)([(0,r.Input)()],e.prototype,"model",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"removable",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"editable",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"template",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"displayBy",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"identifyBy",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"index",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"hasRipple",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"disabled",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"canAddTag",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onSelect",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onRemove",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onBlur",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onKeyDown",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onTagEdited",void 0),(0,i.__decorate)([(0,r.HostBinding)("class.moving")],e.prototype,"moving",void 0),(0,i.__decorate)([(0,r.ViewChild)(ne)],e.prototype,"ripple",void 0),(0,i.__decorate)([(0,r.HostListener)("keydown",["$event"])],e.prototype,"keydown",null),e})();const ae=[(0,s.trigger)("animation",[(0,s.state)("in",(0,s.style)({opacity:1})),(0,s.state)("out",(0,s.style)({opacity:0})),(0,s.transition)(":enter",[(0,s.animate)("{{ enter }}",(0,s.keyframes)([(0,s.style)({opacity:0,offset:0,transform:"translate(0px, 20px)"}),(0,s.style)({opacity:.3,offset:.3,transform:"translate(0px, -10px)"}),(0,s.style)({opacity:.5,offset:.5,transform:"translate(0px, 0px)"}),(0,s.style)({opacity:.75,offset:.75,transform:"translate(0px, 5px)"}),(0,s.style)({opacity:1,offset:1,transform:"translate(0px, 0px)"})]))]),(0,s.transition)(":leave",[(0,s.animate)("{{ leave }}",(0,s.keyframes)([(0,s.style)({opacity:1,transform:"translateX(0)",offset:0}),(0,s.style)({opacity:1,transform:"translateX(-15px)",offset:.7}),(0,s.style)({opacity:0,transform:"translateX(100%)",offset:1})]))])])];let se=(()=>{let e=class{constructor(e){this.injector=e,this.offset=Y.dropdown.offset,this.focusFirstElement=Y.dropdown.focusFirstElement,this.showDropdownIfEmpty=Y.dropdown.showDropdownIfEmpty,this.minimumTextLength=Y.dropdown.minimumTextLength,this.limitItemsTo=Y.dropdown.limitItemsTo,this.displayBy=Y.dropdown.displayBy,this.identifyBy=Y.dropdown.identifyBy,this.matchingFn=Y.dropdown.matchingFn,this.appendToBody=Y.dropdown.appendToBody,this.keepOpen=Y.dropdown.keepOpen,this.dynamicUpdate=Y.dropdown.dynamicUpdate,this.zIndex=Y.dropdown.zIndex,this.items=[],this.tagInput=this.injector.get(le),this._autocompleteItems=[],this.show=()=>{const e=this.tagInput.items.length===this.tagInput.maxItems,t=this.getFormValue(),n=t.trim().length>=this.minimumTextLength,i=this.calculatePosition(),r=this.getMatchingItems(t),o=r.length>0,a=!1===this.isVisible,s=this.showDropdownIfEmpty&&o&&!t,c=this.tagInput.disable,l=a&&(o&&n||s),d=this.isVisible&&!o;return this.autocompleteObservable&&n?this.getItemsFromObservable(t):!this.showDropdownIfEmpty&&!t||e||c?this.dropdown.hide():(this.setItems(r),void(l?this.dropdown.show(i):d&&this.hide()))},this.requestAdding=e=>(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=this.createTagModel(e);yield this.tagInput.onAddingRequested(!0,t).catch((()=>{}))})),this.resetItems=()=>{this.items=[]},this.getItemsFromObservable=e=>{this.setLoadingState(!0),this.autocompleteObservable(e).pipe((0,x.first)()).subscribe((t=>{this.setLoadingState(!1).populateItems(t),this.setItems(this.getMatchingItems(e)),this.items.length?this.dropdown.show(this.calculatePosition()):this.dropdown.hide()}),(()=>this.setLoadingState(!1)))}}set autocompleteItems(e){this._autocompleteItems=e}get autocompleteItems(){const e=this._autocompleteItems;return e?e.map((e=>"string"==typeof e?{[this.displayBy]:e,[this.identifyBy]:e}:e)):[]}ngAfterViewInit(){this.onItemClicked().subscribe((e=>{this.requestAdding(e)})),this.onHide().subscribe(this.resetItems);const e=this.keepOpen;this.tagInput.onTextChange.asObservable().pipe((0,x.distinctUntilChanged)(),(0,x.debounceTime)(200),(0,x.filter)((t=>!1!==e||t.length>0))).subscribe(this.show)}updatePosition(){const e=this.tagInput.inputForm.getElementPosition();this.dropdown.menu.updatePosition(e,this.dynamicUpdate)}get isVisible(){return this.dropdown.menu.dropdownState.menuState.isVisible}onHide(){return this.dropdown.onHide}onItemClicked(){return this.dropdown.onItemClicked}get selectedItem(){return this.dropdown.menu.dropdownState.dropdownState.selectedItem}get state(){return this.dropdown.menu.dropdownState}hide(){this.resetItems(),this.dropdown.hide()}scrollListener(){this.isVisible&&this.dynamicUpdate&&this.updatePosition()}onWindowBlur(){this.dropdown.hide()}getFormValue(){const e=this.tagInput.formValue;return e?e.toString().trim():""}calculatePosition(){return this.tagInput.inputForm.getElementPosition()}createTagModel(e){const t="string"==typeof e.value?e.value:e.value[this.displayBy],n="string"==typeof e.value?e.value:e.value[this.identifyBy];return Object.assign(Object.assign({},e.value),{[this.tagInput.displayBy]:t,[this.tagInput.identifyBy]:n})}getMatchingItems(e){if(!e&&!this.showDropdownIfEmpty)return[];const t=this.tagInput.allowDupes;return this.autocompleteItems.filter((n=>{const i=!t&&this.tagInput.tags.some((e=>{const t=this.tagInput.identifyBy;return("string"==typeof e.model?e.model:e.model[t])===n[this.identifyBy]}));return this.matchingFn(e,n)&&!1===i}))}setItems(e){this.items=e.slice(0,this.limitItemsTo||e.length)}populateItems(e){return this.autocompleteItems=e.map((e=>"string"==typeof e?{[this.displayBy]:e,[this.identifyBy]:e}:e)),this}setLoadingState(e){return this.tagInput.isLoading=e,this}};return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.Injector))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["tag-input-dropdown"]],contentQueries:function(e,t,n){if(1&e&&r["ɵɵcontentQuery"](n,r.TemplateRef,4),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.templates=e)}},viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](C,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.dropdown=e.first)}},hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("scroll",(function(){return t.scrollListener()}),!1,r["ɵɵresolveWindow"])("blur",(function(){return t.onWindowBlur()}),!1,r["ɵɵresolveWindow"])},inputs:{offset:"offset",focusFirstElement:"focusFirstElement",showDropdownIfEmpty:"showDropdownIfEmpty",minimumTextLength:"minimumTextLength",limitItemsTo:"limitItemsTo",displayBy:"displayBy",identifyBy:"identifyBy",matchingFn:"matchingFn",appendToBody:"appendToBody",keepOpen:"keepOpen",dynamicUpdate:"dynamicUpdate",zIndex:"zIndex",autocompleteItems:"autocompleteItems",autocompleteObservable:"autocompleteObservable"},decls:3,vars:6,consts:[[3,"dynamicUpdate"],[3,"focusFirstElement","zIndex","appendToBody","offset"],[3,"value","ngSwitch",4,"ngFor","ngForOf"],[3,"value","ngSwitch"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"innerHTML"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"ng2-dropdown",0),r["ɵɵelementStart"](1,"ng2-dropdown-menu",1),r["ɵɵtemplate"](2,N,3,3,"ng2-menu-item",2),r["ɵɵelementEnd"](),r["ɵɵelementEnd"]()),2&e&&(r["ɵɵproperty"]("dynamicUpdate",t.dynamicUpdate),r["ɵɵadvance"](1),r["ɵɵproperty"]("focusFirstElement",t.focusFirstElement)("zIndex",t.zIndex)("appendToBody",t.appendToBody)("offset",t.offset),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngForOf",t.items))},directives:[C,y,a.NgForOf,b,a.NgSwitch,a.NgSwitchCase,a.NgSwitchDefault,a.NgTemplateOutlet],pipes:[U],encapsulation:2}),(0,i.__decorate)([(0,r.ViewChild)(C)],e.prototype,"dropdown",void 0),(0,i.__decorate)([(0,r.ContentChildren)(r.TemplateRef)],e.prototype,"templates",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"offset",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"focusFirstElement",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"showDropdownIfEmpty",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"autocompleteObservable",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"minimumTextLength",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"limitItemsTo",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"displayBy",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"identifyBy",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"matchingFn",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"appendToBody",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"keepOpen",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"dynamicUpdate",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"zIndex",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"autocompleteItems",null),(0,i.__decorate)([(0,r.HostListener)("window:scroll")],e.prototype,"scrollListener",null),(0,i.__decorate)([(0,r.HostListener)("window:blur")],e.prototype,"onWindowBlur",null),e})();"undefined"!=typeof window&&window.DragEvent;const ce={provide:o.NG_VALUE_ACCESSOR,useExisting:(0,r.forwardRef)((()=>le)),multi:!0};let le=(()=>{let e=class extends Z{constructor(e,t){super(),this.renderer=e,this.dragProvider=t,this.separatorKeys=Y.tagInput.separatorKeys,this.separatorKeyCodes=Y.tagInput.separatorKeyCodes,this.placeholder=Y.tagInput.placeholder,this.secondaryPlaceholder=Y.tagInput.secondaryPlaceholder,this.maxItems=Y.tagInput.maxItems,this.validators=Y.tagInput.validators,this.asyncValidators=Y.tagInput.asyncValidators,this.onlyFromAutocomplete=Y.tagInput.onlyFromAutocomplete,this.errorMessages=Y.tagInput.errorMessages,this.theme=Y.tagInput.theme,this.onTextChangeDebounce=Y.tagInput.onTextChangeDebounce,this.inputId=Y.tagInput.inputId,this.inputClass=Y.tagInput.inputClass,this.clearOnBlur=Y.tagInput.clearOnBlur,this.hideForm=Y.tagInput.hideForm,this.addOnBlur=Y.tagInput.addOnBlur,this.addOnPaste=Y.tagInput.addOnPaste,this.pasteSplitPattern=Y.tagInput.pasteSplitPattern,this.blinkIfDupe=Y.tagInput.blinkIfDupe,this.removable=Y.tagInput.removable,this.editable=Y.tagInput.editable,this.allowDupes=Y.tagInput.allowDupes,this.modelAsStrings=Y.tagInput.modelAsStrings,this.trimTags=Y.tagInput.trimTags,this.ripple=Y.tagInput.ripple,this.tabindex=Y.tagInput.tabIndex,this.disable=Y.tagInput.disable,this.dragZone=Y.tagInput.dragZone,this.onRemoving=Y.tagInput.onRemoving,this.onAdding=Y.tagInput.onAdding,this.animationDuration=Y.tagInput.animationDuration,this.onAdd=new r.EventEmitter,this.onRemove=new r.EventEmitter,this.onSelect=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onTextChange=new r.EventEmitter,this.onPaste=new r.EventEmitter,this.onValidationError=new r.EventEmitter,this.onTagEdited=new r.EventEmitter,this.isLoading=!1,this.listeners={[V]:[],keyup:[]},this.inputTextChange=new r.EventEmitter,this.inputTextValue="",this.errors=[],this.appendTag=(e,t=this.items.length)=>{const n=this.items,i=this.modelAsStrings?e[this.identifyBy]:e;this.items=[...n.slice(0,t),i,...n.slice(t,n.length)]},this.createTag=e=>{const t=(e,t)=>"string"==typeof e?e.trim():e[t];return Object.assign(Object.assign({},"string"!=typeof e?e:{}),{[this.displayBy]:this.trimTags?t(e,this.displayBy):e,[this.identifyBy]:this.trimTags?t(e,this.identifyBy):e})},this.isTagValid=(e,t=!1)=>{const n=this.dropdown?this.dropdown.selectedItem:void 0,i=this.getItemDisplay(e).trim();if(n&&!t||!i)return!1;const r=this.findDupe(e,t);if(!this.allowDupes&&r&&this.blinkIfDupe){const e=this.tags.find((e=>this.getItemValue(e.model)===this.getItemValue(r)));e&&e.blink()}const o=t&&this.onlyFromAutocomplete,a=[!r||this.allowDupes,!this.maxItemsReached,o||!this.onlyFromAutocomplete];return a.filter(Boolean).length===a.length},this.onPasteCallback=e=>(0,i.__awaiter)(this,void 0,void 0,(function*(){const t=(()=>{const t=Boolean(window.clipboardData),n=t?window.clipboardData:e.clipboardData,i=t?"Text":"text/plain";return null===n?"":n.getData(i)||""})(),n=t.split(this.pasteSplitPattern).map((e=>{const t=this.createTag(e);return this.setInputValue(t[this.displayBy]),this.onAddingRequested(!1,t)})),i=()=>setTimeout((()=>this.setInputValue("")),50);Promise.all(n).then((()=>{this.onPaste.emit(t),i()})).catch(i)}))}get inputText(){return this.inputTextValue}set inputText(e){this.inputTextValue=e,this.inputTextChange.emit(e)}get tabindexAttr(){return""!==this.tabindex?"-1":""}ngAfterViewInit(){this.setUpKeypressListeners(),this.setupSeparatorKeysListener(),this.setUpInputKeydownListeners(),this.onTextChange.observers.length&&this.setUpTextChangeSubscriber(),(this.clearOnBlur||this.addOnBlur)&&this.setUpOnBlurSubscriber(),this.addOnPaste&&this.setUpOnPasteListener();const e=this.inputForm.form.statusChanges;e.pipe((0,x.filter)((e=>"PENDING"!==e))).subscribe((()=>{this.errors=this.inputForm.getErrorMessages(this.errorMessages)})),this.isProgressBarVisible$=e.pipe((0,x.map)((e=>"PENDING"===e||this.isLoading))),this.hideForm&&this.inputForm.destroy()}ngOnInit(){void 0!==this.maxItems&&this.items&&this.items.length>this.maxItems&&(this.maxItems=this.items.length,console.warn("The number of items specified was greater than the property max-items.")),this.editable=!this.onlyFromAutocomplete&&this.editable,this.setAnimationMetadata()}onRemoveRequested(e,t){return new Promise((n=>{const i=i=>{this.removeItem(i,t),n(e)};this.onRemoving?this.onRemoving(e).pipe((0,x.first)()).subscribe(i):i(e)}))}onAddingRequested(e,t,n,i){return new Promise(((r,o)=>{const a=t=>this.addItem(e,t,n,i).then(r).catch(o);return this.onAdding?this.onAdding(t).pipe((0,x.first)()).subscribe(a,o):a(t)}))}selectItem(e,t=!0){e&&"string"!=typeof e&&e.readonly||this.selectedTag===e||(this.selectedTag=e,t&&this.onSelect.emit(e))}fireEvents(e,t){this.listeners[e].forEach((e=>e.call(this,t)))}handleKeydown(e){const t=e.event,n=t.keyCode||t.which,i=t.shiftKey||!1;switch($[n]){case G:if(this.selectedTag&&this.removable){const e=this.items.indexOf(this.selectedTag);this.onRemoveRequested(this.selectedTag,e)}break;case H:this.moveToTag(e.model,K);break;case z:this.moveToTag(e.model,q);break;case"TAB":if(i){if(this.isFirstTag(e.model))return;this.moveToTag(e.model,K)}else{if(this.isLastTag(e.model)&&(this.disable||this.maxItemsReached))return;this.moveToTag(e.model,q)}break;default:return}t.preventDefault()}onFormSubmit(){return(0,i.__awaiter)(this,void 0,void 0,(function*(){try{yield this.onAddingRequested(!1,this.formValue)}catch(e){return}}))}setInputValue(e,t=!0){this.getControl().setValue(e,{emitEvent:t})}getControl(){return this.inputForm.value}focus(e=!1,t=!1){this.dragProvider.getState("dragging")||(this.selectItem(void 0,!1),e&&(this.inputForm.focus(),this.onFocus.emit(this.formValue)))}blur(){this.onTouched(),this.onBlur.emit(this.formValue)}hasErrors(){return!!this.inputForm&&this.inputForm.hasErrors()}isInputFocused(){return!!this.inputForm&&this.inputForm.isInputFocused()}hasCustomTemplate(){const e=this.templates?this.templates.first:void 0,t=this.dropdown&&this.dropdown.templates?this.dropdown.templates.first:void 0;return Boolean(e&&e!==t)}get maxItemsReached(){return void 0!==this.maxItems&&this.items.length>=this.maxItems}get formValue(){const e=this.inputForm.value;return e?e.value:""}onDragStarted(e,t,n){e.stopPropagation();const i={zone:this.dragZone,tag:t,index:n};this.dragProvider.setSender(this),this.dragProvider.setDraggedItem(e,i),this.dragProvider.setState({dragging:!0,index:n})}onDragOver(e,t){this.dragProvider.setState({dropping:!0}),this.dragProvider.setReceiver(this),e.preventDefault()}onTagDropped(e,t){const n=this.dragProvider.getDraggedItem(e);n&&n.zone===this.dragZone&&(this.dragProvider.onTagDropped(n.tag,n.index,t),e.preventDefault(),e.stopPropagation())}isDropping(){const e=this.dragProvider.receiver===this,t=this.dragProvider.getState("dropping");return Boolean(e&&t)}onTagBlurred(e,t){this.items[t]=e,this.blur()}trackBy(e,t){return t[this.identifyBy]}updateEditedTag({tag:e,index:t}){this.onTagEdited.emit(e)}moveToTag(e,t){const n=this.isLastTag(e),i=this.isFirstTag(e);if(t===q&&n||t===K&&i)return void this.focus(!0);const r=t===q?1:-1,o=this.getTagIndex(e)+r,a=this.getTagAtIndex(o);return a.select.call(a)}isFirstTag(e){return this.tags.first.model===e}isLastTag(e){return this.tags.last.model===e}getTagIndex(e){return this.tags.toArray().findIndex((t=>t.model===e))}getTagAtIndex(e){return this.tags.toArray()[e]}removeItem(e,t){this.items=this.getItemsWithout(t),this.selectedTag===e&&this.selectItem(void 0,!1),this.focus(!0,!1),this.onRemove.emit(e)}addItem(e=!1,t,n,i){const r=this.getItemDisplay(t),o=this.createTag(t);return e&&this.setInputValue(this.getItemValue(t,!0)),new Promise(((t,a)=>{const s=()=>{this.setInputValue(""),i?this.focus(!1,!1):this.focus(!0,!1),t(r)},c=()=>{this.appendTag(o,n),this.onAdd.emit(o),this.dropdown&&(this.dropdown.hide(),this.dropdown.showDropdownIfEmpty&&this.dropdown.show())},l=this.inputForm.form.status,d=this.isTagValid(o,e),u=()=>(this.onValidationError.emit(o),a());return"VALID"===l&&d?(c(),s()):"INVALID"!==l&&d?"PENDING"===l?this.inputForm.form.statusChanges.pipe((0,x.filter)((e=>"PENDING"!==e)),(0,x.first)()).subscribe((e=>"VALID"===e&&d?(c(),s()):(s(),u()))):void 0:(s(),u())}))}setupSeparatorKeysListener(){const e=this.separatorKeyCodes.length>0||this.separatorKeys.length>0;ee.call(this,V,(e=>{const t=this.separatorKeyCodes.indexOf(e.keyCode)>=0,n=this.separatorKeys.indexOf(e.key)>=0,i=229===e.keyCode;(t||n&&!i)&&(e.preventDefault(),this.onAddingRequested(!1,this.formValue).catch((()=>{})))}),e)}setUpKeypressListeners(){ee.call(this,V,(e=>{(37===e.keyCode||8===e.keyCode)&&!this.formValue&&this.items.length&&this.tags.last.select.call(this.tags.last)}))}setUpInputKeydownListeners(){this.inputForm.onKeydown.subscribe((e=>{"Backspace"===e.key&&""===this.formValue.trim()&&e.preventDefault()}))}setUpOnPasteListener(){const e=this.inputForm.input.nativeElement;this.renderer.listen(e,"paste",(e=>(this.onPasteCallback(e),e.preventDefault(),!0)))}setUpTextChangeSubscriber(){this.inputForm.form.valueChanges.pipe((0,x.debounceTime)(this.onTextChangeDebounce)).subscribe((e=>{this.onTextChange.emit(e.item)}))}setUpOnBlurSubscriber(){this.inputForm.onBlur.pipe((0,x.debounceTime)(100),(0,x.filter)((()=>!(this.dropdown&&this.dropdown.isVisible||!this.formValue)))).subscribe((()=>{const e=()=>this.setInputValue("");if(this.addOnBlur)return this.onAddingRequested(!1,this.formValue,void 0,!0).then(e).catch(e);e()}))}findDupe(e,t){const n=e[t?this.dropdown.identifyBy:this.identifyBy];return this.items.find((e=>this.getItemValue(e)===n))}setAnimationMetadata(){this.animationMetadata={value:"in",params:Object.assign({},this.animationDuration)}}};return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](r.Renderer2),r["ɵɵdirectiveInject"](X))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["tag-input"]],contentQueries:function(e,t,n){if(1&e&&(r["ɵɵcontentQuery"](n,se,5),r["ɵɵcontentQuery"](n,r.TemplateRef,4)),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.dropdown=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.templates=e)}},viewQuery:function(e,t){if(1&e&&(r["ɵɵviewQuery"](te,5),r["ɵɵviewQuery"](oe,5)),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.inputForm=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.tags=e)}},hostVars:1,hostBindings:function(e,t){2&e&&r["ɵɵattribute"]("tabindex",t.tabindexAttr)},inputs:{separatorKeys:"separatorKeys",separatorKeyCodes:"separatorKeyCodes",placeholder:"placeholder",secondaryPlaceholder:"secondaryPlaceholder",maxItems:"maxItems",validators:"validators",asyncValidators:"asyncValidators",onlyFromAutocomplete:"onlyFromAutocomplete",errorMessages:"errorMessages",theme:"theme",onTextChangeDebounce:"onTextChangeDebounce",inputId:"inputId",inputClass:"inputClass",clearOnBlur:"clearOnBlur",hideForm:"hideForm",addOnBlur:"addOnBlur",addOnPaste:"addOnPaste",pasteSplitPattern:"pasteSplitPattern",blinkIfDupe:"blinkIfDupe",removable:"removable",editable:"editable",allowDupes:"allowDupes",modelAsStrings:"modelAsStrings",trimTags:"trimTags",ripple:"ripple",tabindex:"tabindex",disable:"disable",dragZone:"dragZone",onRemoving:"onRemoving",onAdding:"onAdding",animationDuration:"animationDuration",inputText:"inputText"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onSelect:"onSelect",onFocus:"onFocus",onBlur:"onBlur",onTextChange:"onTextChange",onPaste:"onPaste",onValidationError:"onValidationError",onTagEdited:"onTagEdited",inputTextChange:"inputTextChange"},features:[r["ɵɵProvidersFeature"]([ce]),r["ɵɵInheritDefinitionFeature"]],ngContentSelectors:B,decls:8,vars:27,consts:[[1,"ng2-tag-input",3,"ngClass","click","drop","dragenter","dragover","dragend"],[1,"ng2-tags-container"],[3,"draggable","canAddTag","disabled","hasRipple","index","removable","editable","displayBy","identifyBy","template","model","onSelect","onRemove","onKeyDown","onTagEdited","onBlur","dragstart","drop","dragenter","dragover","dragleave",4,"ngFor","ngForOf","ngForTrackBy"],[3,"inputText","disabled","validators","asyncValidators","hidden","placeholder","inputClass","inputId","tabindex","onSubmit","onBlur","click","onKeydown","onKeyup"],["class","progress-bar",4,"ngIf"],["class","error-messages",3,"ngClass",4,"ngIf"],[3,"draggable","canAddTag","disabled","hasRipple","index","removable","editable","displayBy","identifyBy","template","model","onSelect","onRemove","onKeyDown","onTagEdited","onBlur","dragstart","drop","dragenter","dragover","dragleave"],[1,"progress-bar"],[1,"error-messages",3,"ngClass"],["class","error-message",4,"ngFor","ngForOf"],[1,"error-message"]],template:function(e,t){1&e&&(r["ɵɵprojectionDef"](),r["ɵɵelementStart"](0,"div",0),r["ɵɵlistener"]("click",(function(){return t.focus(!0,!1)}))("drop",(function(e){return t.dragZone?t.onTagDropped(e,void 0):void 0}))("dragenter",(function(e){return t.dragZone?t.onDragOver(e):void 0}))("dragover",(function(e){return t.dragZone?t.onDragOver(e):void 0}))("dragend",(function(){return t.dragZone?t.dragProvider.onDragEnd():void 0})),r["ɵɵelementStart"](1,"div",1),r["ɵɵtemplate"](2,R,1,14,"tag",2),r["ɵɵelementStart"](3,"tag-input-form",3),r["ɵɵlistener"]("onSubmit",(function(){return t.onFormSubmit()}))("onBlur",(function(){return t.blur()}))("click",(function(){return t.dropdown?t.dropdown.show():void 0}))("onKeydown",(function(e){return t.fireEvents("keydown",e)}))("onKeyup",(function(e){return t.fireEvents("keyup",e)})),r["ɵɵelementEnd"](),r["ɵɵelementEnd"](),r["ɵɵtemplate"](4,D,1,0,"div",4),r["ɵɵpipe"](5,"async"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](6,F,2,2,"div",5),r["ɵɵprojection"](7)),2&e&&(r["ɵɵclassProp"]("ng2-tag-input--dropping",t.isDropping())("ng2-tag-input--disabled",t.disable)("ng2-tag-input--loading",t.isLoading)("ng2-tag-input--invalid",t.hasErrors())("ng2-tag-input--focused",t.isInputFocused()),r["ɵɵproperty"]("ngClass",t.theme),r["ɵɵattribute"]("tabindex",-1),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",t.items)("ngForTrackBy",t.trackBy),r["ɵɵadvance"](1),r["ɵɵproperty"]("inputText",t.inputText)("disabled",t.disable)("validators",t.validators)("asyncValidators",t.asyncValidators)("hidden",t.maxItemsReached)("placeholder",t.items.length?t.placeholder:t.secondaryPlaceholder)("inputClass",t.inputClass)("inputId",t.inputId)("tabindex",t.tabindex),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",r["ɵɵpipeBind1"](5,25,t.isProgressBarVisible$)),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.hasErrors()))},directives:[a.NgClass,a.NgForOf,te,a.NgIf,oe],pipes:[a.AsyncPipe],styles:['.dark[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:0;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px rgba(0,0,0,.4);border:1px solid #ccc}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:.25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196f3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f;border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{color:#d9534f}.progress-bar[_ngcontent-%COMP%], .progress-bar[_ngcontent-%COMP%]:before{height:2px;width:100%;margin:0}.progress-bar[_ngcontent-%COMP%]{background-color:#2196f3;display:flex;position:absolute;bottom:0}.progress-bar[_ngcontent-%COMP%]:before{background-color:#82c4f8;content:"";-webkit-animation:2s cubic-bezier(.4,0,.2,1) infinite running-progress;animation:2s cubic-bezier(.4,0,.2,1) infinite running-progress}@-webkit-keyframes running-progress{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}100%{margin-left:100%;margin-right:0}}@keyframes running-progress{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}100%{margin-left:100%;margin-right:0}}tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;font-family:Roboto,"Helvetica Neue",sans-serif;font-weight:400;font-size:1em;letter-spacing:.05rem;color:#444;border-radius:16px;transition:.3s;margin:.1rem .3rem .1rem 0;padding:.08rem .45rem;height:32px;line-height:34px;background:#efefef;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#2196f3;color:#fff;box-shadow:0 2px 3px 1px #d4d1d1}tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active{background:#0d8aee;color:#fff;box-shadow:0 2px 3px 1px #d4d1d1}tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#e2e2e2;color:initial;box-shadow:0 2px 3px 1px #d4d1d1}tag.readonly[_ngcontent-%COMP%]{cursor:default}tag.readonly[_ngcontent-%COMP%]:focus, tag[_ngcontent-%COMP%]:focus{outline:0}tag.tag--editing[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;cursor:text}.minimal[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;border-radius:0;background:#f9f9f9;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.minimal[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active, .minimal[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#d0d0d0;color:initial}.minimal[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#ececec}.minimal[_ngcontent-%COMP%]   tag.readonly[_ngcontent-%COMP%]{cursor:default}.minimal[_ngcontent-%COMP%]   tag.readonly[_ngcontent-%COMP%]:focus, .minimal[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:focus{outline:0}.minimal[_ngcontent-%COMP%]   tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.dark[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;color:#f9f9f9;border-radius:3px;background:#444;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.dark[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#efefef;color:#444}.dark[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#2b2b2b;color:#f9f9f9}.dark[_ngcontent-%COMP%]   tag.readonly[_ngcontent-%COMP%]{cursor:default}.dark[_ngcontent-%COMP%]   tag.readonly[_ngcontent-%COMP%]:focus, .dark[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:focus{outline:0}.dark[_ngcontent-%COMP%]   tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.bootstrap[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;color:#f9f9f9;border-radius:.25rem;background:#0275d8;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative}.bootstrap[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active, .bootstrap[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#025aa5}.bootstrap[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#0267bf;color:#f9f9f9}.bootstrap[_ngcontent-%COMP%]   tag.readonly[_ngcontent-%COMP%]{cursor:default}.bootstrap[_ngcontent-%COMP%]   tag.readonly[_ngcontent-%COMP%]:focus, .bootstrap[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:focus{outline:0}.bootstrap[_ngcontent-%COMP%]   tag.tag--editing[_ngcontent-%COMP%]{cursor:text}.bootstrap3-info[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;font-family:inherit;font-weight:400;font-size:95%;color:#fff;border-radius:.25em;background:#5bc0de;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;outline:0;cursor:pointer;position:relative;padding:.25em .6em;text-align:center;white-space:nowrap}.bootstrap3-info[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):active, .bootstrap3-info[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(.readonly):not(.tag--editing):focus{background:#28a1c5}.bootstrap3-info[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover{background:#46b8da;color:#fff}.bootstrap3-info[_ngcontent-%COMP%]   tag.readonly[_ngcontent-%COMP%]{cursor:default}.bootstrap3-info[_ngcontent-%COMP%]   tag.readonly[_ngcontent-%COMP%]:focus, .bootstrap3-info[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info[_ngcontent-%COMP%]   tag.tag--editing[_ngcontent-%COMP%]{cursor:text}[_nghost-%COMP%]{display:block}'],data:{animation:ae}}),(0,i.__decorate)([(0,r.Input)()],e.prototype,"separatorKeys",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"separatorKeyCodes",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"placeholder",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"secondaryPlaceholder",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"maxItems",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"validators",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"asyncValidators",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"onlyFromAutocomplete",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"errorMessages",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"theme",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"onTextChangeDebounce",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"inputId",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"inputClass",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"clearOnBlur",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"hideForm",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"addOnBlur",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"addOnPaste",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"pasteSplitPattern",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"blinkIfDupe",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"removable",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"editable",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"allowDupes",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"modelAsStrings",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"trimTags",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"inputText",null),(0,i.__decorate)([(0,r.Input)()],e.prototype,"ripple",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"tabindex",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"disable",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"dragZone",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"onRemoving",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"onAdding",void 0),(0,i.__decorate)([(0,r.Input)()],e.prototype,"animationDuration",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onAdd",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onRemove",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onSelect",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onFocus",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onBlur",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onTextChange",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onPaste",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onValidationError",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"onTagEdited",void 0),(0,i.__decorate)([(0,r.ContentChild)(se)],e.prototype,"dropdown",void 0),(0,i.__decorate)([(0,r.ContentChildren)(r.TemplateRef,{descendants:!1})],e.prototype,"templates",void 0),(0,i.__decorate)([(0,r.ViewChild)(te)],e.prototype,"inputForm",void 0),(0,i.__decorate)([(0,r.ViewChildren)(oe)],e.prototype,"tags",void 0),(0,i.__decorate)([(0,r.Output)()],e.prototype,"inputTextChange",void 0),(0,i.__decorate)([(0,r.HostBinding)("attr.tabindex")],e.prototype,"tabindexAttr",null),e})(),de=(()=>{let e=class{};return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["delete-icon"]],decls:3,vars:0,consts:[["height","16px","viewBox","0 0 32 32","width","16px"],["d","M17.459,16.014l8.239-8.194c0.395-0.391,0.395-1.024,0-1.414c-0.394-0.391-1.034-0.391-1.428,0  l-8.232,8.187L7.73,6.284c-0.394-0.395-1.034-0.395-1.428,0c-0.394,0.396-0.394,1.037,0,1.432l8.302,8.303l-8.332,8.286  c-0.394,0.391-0.394,1.024,0,1.414c0.394,0.391,1.034,0.391,1.428,0l8.325-8.279l8.275,8.276c0.394,0.395,1.034,0.395,1.428,0  c0.394-0.396,0.394-1.037,0-1.432L17.459,16.014z","fill","#121313"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"span"),r["ɵɵnamespaceSVG"](),r["ɵɵelementStart"](1,"svg",0),r["ɵɵelement"](2,"path",1),r["ɵɵelementEnd"](),r["ɵɵelementEnd"]())},styles:[".dark[_ngcontent-%COMP%]   tag[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #323232}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]{background-color:#fff;display:inline-block;color:#555;vertical-align:middle;max-width:100%;height:42px;line-height:44px}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;box-shadow:none;outline:0;background-color:transparent;padding:0 6px;margin:0;width:auto;max-width:inherit}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-moz-placeholder{color:#777;opacity:1}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#777}.ng2-tag-input.bootstrap3-info[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px rgba(0,0,0,.4);border:1px solid #ccc}.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;transition:.25s;padding:.25rem 0;min-height:32px;cursor:text;border-bottom:2px solid #efefef}.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #2196f3}.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #f44336}.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.ng2-tag-input[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin:.1em 0}.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.minimal.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:1px solid transparent}.minimal.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.minimal.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.minimal.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.minimal.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.minimal.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.dark.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #444}.dark.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.dark.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.dark.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.dark.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.dark.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;cursor:text;border-bottom:2px solid #efefef}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap.ng2-tag-input.ng2-tag-input--focused[_ngcontent-%COMP%]{border-bottom:2px solid #0275d8}.bootstrap.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{border-bottom:2px solid #d9534f}.bootstrap.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]{display:block;flex-direction:row;flex-wrap:wrap;position:relative;padding:4px;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);border-radius:4px}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]:focus{outline:0}.bootstrap3-info.ng2-tag-input.ng2-tag-input--dropping[_ngcontent-%COMP%]{opacity:.7}.bootstrap3-info.ng2-tag-input.ng2-tag-input--invalid[_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #d9534f;border-bottom:1px solid #d9534f}.bootstrap3-info.ng2-tag-input.ng2-tag-input--loading[_ngcontent-%COMP%]{border:none}.bootstrap3-info.ng2-tag-input.ng2-tag-input--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin:.1em 0}.bootstrap3-info.ng2-tag-input[_ngcontent-%COMP%]   .ng2-tags-container[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex}.error-message[_ngcontent-%COMP%]{font-size:.8em;color:#f44336;margin:.5em 0 0}.bootstrap[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{color:#d9534f}delete-icon[_nghost-%COMP%]{width:20px;height:16px;transition:.15s;display:inline-block;text-align:right}delete-icon[_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#444}delete-icon[_nghost-%COMP%]   svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}delete-icon[_nghost-%COMP%]:hover{transform:scale(1.5) translateY(-3px)}.dark[_nghost-%COMP%], .dark   [_nghost-%COMP%]{text-align:right}.dark[_nghost-%COMP%]   path[_ngcontent-%COMP%], .dark   [_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#fff}.dark[_nghost-%COMP%]   svg[_ngcontent-%COMP%], .dark   [_nghost-%COMP%]   svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}.minimal[_nghost-%COMP%], .minimal   [_nghost-%COMP%]{text-align:right}.minimal[_nghost-%COMP%]   path[_ngcontent-%COMP%], .minimal   [_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#444}.minimal[_nghost-%COMP%]   svg[_ngcontent-%COMP%], .minimal   [_nghost-%COMP%]   svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}.bootstrap[_nghost-%COMP%], .bootstrap   [_nghost-%COMP%]{text-align:right}.bootstrap[_nghost-%COMP%]   path[_ngcontent-%COMP%], .bootstrap   [_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#fff}.bootstrap[_nghost-%COMP%]   svg[_ngcontent-%COMP%], .bootstrap   [_nghost-%COMP%]   svg[_ngcontent-%COMP%]{vertical-align:bottom;height:34px}tag:active[_nghost-%COMP%]   path[_ngcontent-%COMP%], tag:active   [_nghost-%COMP%]   path[_ngcontent-%COMP%], tag:focus[_nghost-%COMP%]   path[_ngcontent-%COMP%], tag:focus   [_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#fff}.darktag:active[_nghost-%COMP%]   path[_ngcontent-%COMP%], .darktag:active   [_nghost-%COMP%]   path[_ngcontent-%COMP%], .darktag:focus[_nghost-%COMP%]   path[_ngcontent-%COMP%], .darktag:focus   [_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#000}.minimaltag:active[_nghost-%COMP%]   path[_ngcontent-%COMP%], .minimaltag:active   [_nghost-%COMP%]   path[_ngcontent-%COMP%], .minimaltag:focus[_nghost-%COMP%]   path[_ngcontent-%COMP%], .minimaltag:focus   [_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#000}.bootstraptag:active[_nghost-%COMP%]   path[_ngcontent-%COMP%], .bootstraptag:active   [_nghost-%COMP%]   path[_ngcontent-%COMP%], .bootstraptag:focus[_nghost-%COMP%]   path[_ngcontent-%COMP%], .bootstraptag:focus   [_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#fff}.bootstrap3-info[_nghost-%COMP%], .bootstrap3-info   [_nghost-%COMP%]{height:inherit}.bootstrap3-info[_nghost-%COMP%]   path[_ngcontent-%COMP%], .bootstrap3-info   [_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:#fff}"]}),e})();const ue=new J;let pe=(()=>{let e=class{static withDefaults(e){ue.setOptions(e)}};return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[X,{provide:o.COMPOSITION_BUFFER_MODE,useValue:!1}],imports:[[a.CommonModule,o.ReactiveFormsModule,o.FormsModule,S]]}),e})();"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,("undefined"==typeof ngJitMode||ngJitMode)&&r["ɵɵsetNgModuleScope"](pe,{declarations:function(){return[le,de,te,oe,U,se,ne]},imports:function(){return[a.CommonModule,o.ReactiveFormsModule,o.FormsModule,S]},exports:function(){return[le,de,te,oe,U,se,ne]}})},1135:(e,t,n)=>{"use strict";n.d(t,{x0:()=>w});var i=n(57826),r=n(6856);const o={UKNOWN:"Unknown"},a={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:o.UKNOWN},s={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n      MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n        P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n        CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},c={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n        SHV-E230S|SHW-M180K|SHW-M180L|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n        SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|\n        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n        SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n        \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n        PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n        SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n        TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n        Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n        TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n        TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n        P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n        Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},l={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:o.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},d={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:o.UKNOWN},u={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",UNKNOWN:o.UKNOWN.toLowerCase()},p=Object.assign(Object.assign(Object.assign({},s),c),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/}),h={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,iOS:/(iPhone OS\s*[0-9_]+)/},m={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},g=(e,t)=>(e[t]=h[t],e),f=Object.keys(h).reduce(g,{}),v=(e,t)=>(e[a[t]]=m[t],e),b=Object.keys(m).reduce(v,{});var y=Object.freeze({__proto__:null,GENERAL:o,BROWSERS:a,MOBILES_RE:s,TABLETS_RE:c,DEVICES:l,OS:d,OS_VERSIONS:u,OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:p,OS_VERSIONS_RE_MAP:h,BROWSER_VERSIONS_RE_MAP:m,OS_VERSIONS_RE:f,BROWSER_VERSIONS_RE:b,ɵ0:g,ɵ1:v});class C{constructor(){}test(e,t){return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.test(e):t&&Array.isArray(t.and)?t.and.every((t=>this.test(e,t))):t&&Array.isArray(t.or)?t.or.some((t=>this.test(e,t))):!(!t||!t.not||this.test(e,t.not))}exec(e,t){return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.exec(e):t&&Array.isArray(t)?t.reduce(((t,n)=>t||this.exec(e,n)),null):null}}var S=(()=>(function(e){e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e.Unknown="unknown"}(S||(S={})),S))(),x=(()=>(function(e){e.Portrait="portrait",e.Landscape="landscape"}(x||(x={})),x))();let w=(()=>{class e{constructor(e){this.platformId=e,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new C,this.deviceType="",this.orientation="",(0,r.isPlatformBrowser)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(e=this.userAgent){e!==this.userAgent&&(this.userAgent=e);const t=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(t.forEach((t=>{this[t.prop]=Object.keys(y[t.const]).reduce(((n,i)=>"device"===y[t.const][i]&&(0,r.isPlatformBrowser)(this.platformId)&&(this.reTree.test(this.userAgent,c.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(n[y[t.const][i]]="iPad",Object):(n[y[t.const][i]]=this.reTree.test(e,y[`${t.const}_RE`][i]),n)),{})})),t.forEach((e=>{this[e.prop]=Object.keys(y[e.const]).map((t=>y[e.const][t])).reduce(((t,n)=>"device"===e.prop&&t===y[e.const].ANDROID?this[e.prop][n]?n:t:t===y[e.const].UNKNOWN&&this[e.prop][n]?n:t),y[e.const].UNKNOWN)})),this.browser_version="0",this.browser!==a.UNKNOWN){const t=b[this.browser],n=this.reTree.exec(e,t);n&&(this.browser_version=n[1])}"undefined"!=typeof window&&window.matchMedia?this.orientation=window.matchMedia("(orientation: landscape)").matches?x.Landscape:x.Portrait:this.orientation=o.UKNOWN,this.deviceType=this.isTablet()?S.Tablet:this.isMobile(this.userAgent)?S.Mobile:this.isDesktop(this.userAgent)?S.Desktop:S.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(e=this.userAgent){return!this.isTablet(e)&&!!Object.keys(s).find((t=>this.reTree.test(e,s[t])))}isTablet(e=this.userAgent){return!(!(0,r.isPlatformBrowser)(this.platformId)||!(this.reTree.test(this.userAgent,c.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(c).find((t=>!!this.reTree.test(e,c[t])))}isDesktop(e=this.userAgent){const t=[l.PS4,l.CHROME_BOOK,l.UNKNOWN];return(this.device!==l.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&t.indexOf(this.device)>-1}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=(0,i["ɵɵdefineInjectable"])({factory:function(){return new e((0,i["ɵɵinject"])(i.PLATFORM_ID))},token:e,providedIn:"root"}),e})();"undefined"==typeof ngDevMode||ngDevMode},74598:(e,t,n)=>{var i=n(97562);e.exports=i((function(e,t){return e.apply(this,t)}))},87887:(e,t,n)=>{var i=n(10771),r=n(74598),o=n(61211),a=n(24287),s=n(76043),c=n(25695),l=n(62892),d=n(379);e.exports=i((function e(t){return t=a((function(t){return"function"==typeof t?t:e(t)}),t),o(l(s,0,c("length",d(t))),(function(){var e=arguments;return a((function(t){return r(t,e)}),t)}))}))},38026:(e,t,n)=>{var i=n(83006);e.exports=i((function(e,t,n){var i={};for(var r in n)i[r]=n[r];return i[e]=t,i}))},84694:(e,t,n)=>{var i=n(83006),r=n(27640),o=n(50636),a=n(54527),s=n(38026);e.exports=i((function e(t,n,i){if(0===t.length)return n;var c=t[0];if(t.length>1){var l=r(c,i)?i[c]:a(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,l)}if(a(c)&&o(i)){var d=[].concat(i);return d[c]=n,d}return s(c,n,i)}))},10205:(e,t,n)=>{var i=n(72265),r=n(97562);e.exports=r((function(e,t){return i(e.length,(function(){return e.apply(t,arguments)}))}))},24426:(e,t,n)=>{var i=n(26655),r=n(10771);e.exports=r((function(e){return null!=e&&"function"==typeof e.clone?e.clone():i(e,[],[],!0)}))},11607:(e,t,n)=>{var i=n(50680),r=n(90731);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return i.apply(this,r(arguments))}},6884:(e,t,n)=>{var i=n(97562),r=n(50636),o=n(98332),a=n(10779);e.exports=i((function(e,t){if(null==e||!o(e.concat))throw new TypeError(a(e)+' does not have a method named "concat"');if(r(e)&&!r(t))throw new TypeError(a(t)+" is not an array");return e.concat(t)}))},75934:(e,t,n)=>{var i=n(10771),r=n(61211);e.exports=i((function(e){return r(e.length,e)}))},61211:(e,t,n)=>{var i=n(72265),r=n(10771),o=n(97562),a=n(82371);e.exports=o((function(e,t){return 1===e?r(t):i(e,a(e,[],t))}))},16071:(e,t,n)=>{var i=n(97562);e.exports=i((function(e,t){return null==t||t!=t?e:t}))},2593:(e,t,n)=>{var i=n(10771),r=n(76844),o=n(50636),a=n(43146),s=n(1879);e.exports=i((function(e){return null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():o(e)?[]:s(e)?"":a(e)?{}:r(e)?function(){return arguments}():void 0}))},65299:(e,t,n)=>{var i=n(97562),r=n(4181);e.exports=i((function(e,t){return r(e,t,[],[])}))},9638:(e,t,n)=>{var i=n(97562),r=n(67072),o=n(15892),a=n(43146),s=n(54797),c=n(22416),l=n(6806);e.exports=i(r(["filter"],c,(function(e,t){return a(t)?s((function(n,i){return e(t[i])&&(n[i]=t[i]),n}),{},l(t)):o(e,t)})))},35944:(e,t,n)=>{var i=n(79193),r=n(97562);e.exports=r(i("forEach",(function(e,t){for(var n=t.length,i=0;i<n;)e(t[i]),i+=1;return t})))},12546:(e,t,n)=>{var i=n(97562);e.exports=i((function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}))},14710:(e,t,n)=>{var i=n(10771),r=n(19919);e.exports=i(r)},42560:(e,t,n)=>{var i=n(48570);e.exports=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function t(e,t,n){var r,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var a=e?1:0;return!!n._items[o][a]||(t&&(n._items[o][a]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):o in n._items?!!i(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!i(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}return e.prototype.add=function(e){return!t(e,!0,this)},e.prototype.has=function(e){return t(e,!1,this)},e}()},72265:e=>{e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,i){return t.apply(this,arguments)};case 4:return function(e,n,i,r){return t.apply(this,arguments)};case 5:return function(e,n,i,r,o){return t.apply(this,arguments)};case 6:return function(e,n,i,r,o,a){return t.apply(this,arguments)};case 7:return function(e,n,i,r,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,i,r,o,a,s,c){return t.apply(this,arguments)};case 9:return function(e,n,i,r,o,a,s,c,l){return t.apply(this,arguments)};case 10:return function(e,n,i,r,o,a,s,c,l,d){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},14905:e=>{e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},28284:(e,t,n)=>{var i=n(62049);e.exports="function"==typeof Object.assign?Object.assign:i},79193:(e,t,n)=>{var i=n(50636);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return i(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}},26655:(e,t,n)=>{var i=n(82118),r=n(52765);e.exports=function e(t,n,o,a){var s=function(i){for(var r=n.length,s=0;s<r;){if(t===n[s])return o[s];s+=1}for(var c in n[s+1]=t,o[s+1]=i,t)i[c]=a?e(t[c],n,o,!0):t[c];return i};switch(r(t)){case"Object":return s({});case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return i(t);default:return t}}},82118:e=>{e.exports=function(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}},86351:e=>{e.exports=function(e){return function(){return!e.apply(this,arguments)}}},48570:(e,t,n)=>{var i=n(32356);e.exports=function(e,t){return i(t,e,0)>=0}},10771:(e,t,n)=>{var i=n(65376);e.exports=function(e){return function t(n){return 0===arguments.length||i(n)?t:e.apply(this,arguments)}}},97562:(e,t,n)=>{var i=n(10771),r=n(65376);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return r(n)?t:i((function(t){return e(n,t)}));default:return r(n)&&r(o)?t:r(n)?i((function(t){return e(t,o)})):r(o)?i((function(t){return e(n,t)})):e(n,o)}}}},83006:(e,t,n)=>{var i=n(10771),r=n(97562),o=n(65376);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r((function(t,i){return e(n,t,i)}));case 2:return o(n)&&o(a)?t:o(n)?r((function(t,n){return e(t,a,n)})):o(a)?r((function(t,i){return e(n,t,i)})):i((function(t){return e(n,a,t)}));default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?r((function(t,n){return e(t,n,s)})):o(n)&&o(s)?r((function(t,n){return e(t,a,n)})):o(a)&&o(s)?r((function(t,i){return e(n,t,i)})):o(n)?i((function(t){return e(t,a,s)})):o(a)?i((function(t){return e(n,t,s)})):o(s)?i((function(t){return e(n,a,t)})):e(n,a,s)}}}},82371:(e,t,n)=>{var i=n(72265),r=n(65376);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,c=t,l=0;l<n.length||s<arguments.length;){var d;l<n.length&&(!r(n[l])||s>=arguments.length)?d=n[l]:(d=arguments[s],s+=1),a[l]=d,r(d)||(c-=1),l+=1}return c<=0?o.apply(this,a):i(c,e(t,a,o))}}},67072:(e,t,n)=>{var i=n(50636),r=n(64374);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),a=o.pop();if(!i(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,o);s+=1}if(r(a)){var c=t.apply(null,o);return c(a)}}return n.apply(this,arguments)}}},4181:(e,t,n)=>{var i=n(14905),r=n(5726),o=n(27640),a=n(12546),s=n(6806),c=n(52765);e.exports=function e(t,n,l,d){if(a(t,n))return!0;if(c(t)!==c(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(c(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===r(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!a(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!a(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!e(i(t.entries()),i(n.entries()),l,d))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=s(t);if(u.length!==s(n).length)return!1;for(var p=l.length-1;p>=0;){if(l[p]===t)return d[p]===n;p-=1}for(l.push(t),d.push(n),p=u.length-1;p>=0;){var h=u[p];if(!o(h,n)||!e(n[h],t[h],l,d))return!1;p-=1}return l.pop(),d.pop(),!0}},15892:e=>{e.exports=function(e,t){for(var n=0,i=t.length,r=[];n<i;)e(t[n])&&(r[r.length]=t[n]),n+=1;return r}},5726:e=>{e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},27640:e=>{e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},19919:e=>{e.exports=function(e){return e}},32356:(e,t,n)=>{var i=n(65299);e.exports=function(e,t,n){var r,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(o=e[n])&&1/o===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(i(e[n],t))return n;n+=1}return-1}},76844:(e,t,n)=>{var i=n(27640);e.exports=function(){var e=Object.prototype.toString;return"[object Arguments]"===e.call(arguments)?function(t){return"[object Arguments]"===e.call(t)}:function(e){return i("callee",e)}}()},50636:e=>{e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},98332:e=>{e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},54527:e=>{e.exports=Number.isInteger||function(e){return e<<0===e}},43146:e=>{e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},65376:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},1879:e=>{e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},64374:e=>{e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},57001:e=>{e.exports=function(e,t){for(var n=0,i=t.length,r=Array(i);n<i;)r[n]=e(t[n]),n+=1;return r}},62049:(e,t,n)=>{var i=n(27640);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var o=arguments[n];if(null!=o)for(var a in o)i(a,o)&&(t[a]=o[a]);n+=1}return t}},71186:e=>{e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},5941:e=>{e.exports=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},54797:(e,t,n)=>{var i=n(60035),r=n(10205),o=n(68444);e.exports=function(){function e(e,t,n){for(var i=n.next();!i.done;){if((t=e["@@transducer/step"](t,i.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}i=n.next()}return e["@@transducer/result"](t)}var t="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(n,a,s){if("function"==typeof n&&(n=i(n)),o(s))return function(e,t,n){for(var i=0,r=n.length;i<r;){if((t=e["@@transducer/step"](t,n[i]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}i+=1}return e["@@transducer/result"](t)}(n,a,s);if("function"==typeof s.reduce)return function(e,t,n){return e["@@transducer/result"](n.reduce(r(e["@@transducer/step"],e),t))}(n,a,s);if(null!=s[t])return e(n,a,s[t]());if("function"==typeof s.next)return e(n,a,s);throw new TypeError("reduce: list must be array or iterable")}}()},67196:e=>{var t;e.exports=(t=function(e){return(e<10?"0":"")+e},"function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"})},34412:(e,t,n)=>{var i=n(48570),r=n(57001),o=n(5941),a=n(67196),s=n(6806),c=n(60903);e.exports=function e(t,n){var l=function(r){var o=n.concat([t]);return i(r,o)?"<Circular>":e(r,o)},d=function(e,t){return r((function(t){return o(t)+": "+l(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+r(l,t).join(", ")+"))";case"[object Array]":return"["+r(l,t).concat(d(t,c((function(e){return/^\d+$/.test(e)}),s(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+l(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?l(NaN):o(a(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+l(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+l(t.valueOf())+")":o(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var u=t.toString();if("[object Object]"!==u)return u}return"{"+d(t,s(t)).join(", ")+"}"}}},4597:e=>{e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},22416:(e,t,n)=>{var i=n(97562),r=n(4597);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=r.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},i((function(t,n){return new e(t,n)}))}()},61640:(e,t,n)=>{var i=n(97562),r=n(4597);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=r.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},i((function(t,n){return new e(t,n)}))}()},60035:e=>{e.exports=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},function(t){return new e(t)}}()},68444:(e,t,n)=>{var i=n(10771),r=n(50636),o=n(1879);e.exports=i((function(e){return!!r(e)||!!e&&"object"==typeof e&&!o(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}))},92920:(e,t,n)=>{var i=n(10771),r=n(2593),o=n(65299);e.exports=i((function(e){return null!=e&&o(e,r(e))}))},9293:(e,t,n)=>{var i=n(10771);e.exports=i((function(e){return null==e}))},6806:(e,t,n)=>{var i,r,o,a,s=n(10771),c=n(27640),l=n(76844);e.exports=(i=!{toString:null}.propertyIsEnumerable("toString"),r=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],o=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),a=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},"function"!=typeof Object.keys||o?s((function(e){if(Object(e)!==e)return[];var t,n,s=[],d=o&&l(e);for(t in e)!c(t,e)||d&&"length"===t||(s[s.length]=t);if(i)for(n=r.length-1;n>=0;)c(t=r[n],e)&&!a(s,t)&&(s[s.length]=t),n-=1;return s})):s((function(e){return Object(e)!==e?[]:Object.keys(e)})))},64576:(e,t,n)=>{var i=n(97562),r=n(24287);e.exports=i((function(e,t){return function(n){return function(i){return r((function(e){return t(e,i)}),n(e(i)))}}}))},83798:(e,t,n)=>{var i=n(10771),r=n(84694),o=n(64576),a=n(63253);e.exports=i((function(e){return o(a(e),r(e))}))},24287:(e,t,n)=>{var i=n(97562),r=n(67072),o=n(57001),a=n(54797),s=n(61640),c=n(61211),l=n(6806);e.exports=i(r(["map"],s,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return c(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return a((function(n,i){return n[i]=e(t[i]),n}),{},l(t));default:return o(e,t)}})))},76043:(e,t,n)=>{var i=n(97562);e.exports=i((function(e,t){return t>e?t:e}))},12473:(e,t,n)=>{var i=n(28284),r=n(97562);e.exports=r((function(e,t){return i({},e,t)}))},16465:(e,t,n)=>{var i=n(83006),r=n(80864);e.exports=i((function(e,t,n){return r((function(t,n,i){return e(n,i)}),t,n)}))},80864:(e,t,n)=>{var i=n(83006),r=n(27640);e.exports=i((function(e,t,n){var i,o={};for(i in t)r(i,t)&&(o[i]=r(i,n)?e(i,t[i],n[i]):t[i]);for(i in n)r(i,n)&&!r(i,o)&&(o[i]=n[i]);return o}))},76053:(e,t,n)=>{var i=n(10771);e.exports=i((function(e){return!e}))},63253:(e,t,n)=>{var i=n(97562);e.exports=i((function(e,t){for(var n=t,i=0;i<e.length;){if(null==n)return;n=n[e[i]],i+=1}return n}))},54503:(e,t,n)=>{var i=n(97562);e.exports=i((function(e,t){for(var n={},i=0;i<e.length;)e[i]in t&&(n[e[i]]=t[e[i]]),i+=1;return n}))},50680:(e,t,n)=>{var i=n(72265),r=n(71186),o=n(62892),a=n(27834);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return i(arguments[0].length,o(r,arguments[0],a(arguments)))}},25695:(e,t,n)=>{var i=n(97562),r=n(24287),o=n(12495);e.exports=i((function(e,t){return r(o(e),t)}))},12495:(e,t,n)=>{var i=n(97562);e.exports=i((function(e,t){return t[e]}))},62892:(e,t,n)=>{var i=n(83006),r=n(54797);e.exports=i(r)},60903:(e,t,n)=>{var i=n(86351),r=n(97562),o=n(9638);e.exports=r((function(e,t){return o(i(e),t)}))},71923:(e,t,n)=>{var i=n(83006);e.exports=i((function(e,t,n){var i=Array.prototype.slice.call(n,0);return i.splice(e,t),i}))},49765:(e,t,n)=>{var i=n(83006);e.exports=i((function(e,t,n){return n.replace(e,t)}))},90731:(e,t,n)=>{var i=n(10771),r=n(1879);e.exports=i((function(e){return r(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}))},41650:(e,t,n)=>{var i=n(79193),r=n(83006);e.exports=r(i("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})))},27834:(e,t,n)=>{var i=n(79193),r=n(10771),o=n(41650);e.exports=r(i("tail",o(1,1/0)))},10779:(e,t,n)=>{var i=n(10771),r=n(34412);e.exports=i((function(e){return r(e,[])}))},52765:(e,t,n)=>{var i=n(10771);e.exports=i((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}))},50377:(e,t,n)=>{var i=n(14710),r=n(32930);e.exports=r(i)},32930:(e,t,n)=>{var i=n(42560),r=n(97562);e.exports=r((function(e,t){for(var n,r,o=new i,a=[],s=0;s<t.length;)n=e(r=t[s]),o.add(n)&&a.push(r),s+=1;return a}))},379:(e,t,n)=>{var i=n(10771),r=n(6806);e.exports=i((function(e){for(var t=r(e),n=t.length,i=[],o=0;o<n;)i[o]=e[t[o]],o+=1;return i}))},15480:(e,t,n)=>{var i,r=n(97562);e.exports=(i=function(e){return{value:e,map:function(){return this}}},r((function(e,t){return e(i)(t).value})))},40809:(e,t,n)=>{var i=n(97562);e.exports=i((function(e,t){for(var n=0,i=Math.min(e.length,t.length),r={};n<i;)r[e[n]]=t[n],n+=1;return r}))},42775:function(e){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return i(r).default}});var o=n(2);Object.defineProperty(t,"adjustCaretPosition",{enumerable:!0,get:function(){return i(o).default}});var a=n(5);Object.defineProperty(t,"createTextMaskInputElement",{enumerable:!0,get:function(){return i(a).default}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,r=void 0===t?i:t,o=e.previousPlaceholder,a=void 0===o?i:o,s=e.currentCaretPosition,c=void 0===s?0:s,l=e.conformedValue,d=e.rawValue,u=e.placeholderChar,p=e.placeholder,h=e.indexesOfPipedChars,m=void 0===h?n:h,g=e.caretTrapIndexes,f=void 0===g?n:g;if(0===c||!d.length)return 0;var v=d.length,b=r.length,y=p.length,C=l.length,S=v-b,x=S>0;if(S>1&&!x&&0!==b)return c;var w=0,E=void 0,I=void 0;if(!x||r!==l&&l!==p){var P=l.toLowerCase(),T=d.toLowerCase().substr(0,c).split(i).filter((function(e){return-1!==P.indexOf(e)}));I=T[T.length-1];var _=a.substr(0,T.length).split(i).filter((function(e){return e!==u})).length,M=p.substr(0,T.length).split(i).filter((function(e){return e!==u})).length,O=M!==_,A=void 0!==a[T.length-1]&&void 0!==p[T.length-2]&&a[T.length-1]!==u&&a[T.length-1]!==p[T.length-1]&&a[T.length-1]===p[T.length-2];!x&&(O||A)&&_>0&&p.indexOf(I)>-1&&void 0!==d[c]&&(E=!0,I=d[c]);for(var k=m.map((function(e){return P[e]})),j=k.filter((function(e){return e===I})).length,N=T.filter((function(e){return e===I})).length,R=p.substr(0,p.indexOf(u)).split(i).filter((function(e,t){return e===I&&d[t]!==e})).length,D=R+N+j+(E?1:0),L=0,F=0;F<C&&(w=F+1,P[F]===I&&L++,!(L>=D));F++);}else w=c-S;if(x){for(var B=w,U=w;U<=y;U++)if(p[U]===u&&(B=U),p[U]===u||-1!==f.indexOf(U)||U===y)return B}else if(E){for(var V=w-1;V>=0;V--)if(l[V]===I||-1!==f.indexOf(V)||0===V)return V}else for(var G=w;G>=0;G--)if(p[G-1]===u||-1!==f.indexOf(G)||0===G)return G};var n=[],i=""},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,r.isArray)(t)){if((void 0===t?"undefined":i(t))!==o.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,r.processCaretTraps)(t).maskWithoutCaretTraps}var c=n.guide,l=void 0===c||c,d=n.previousConformedValue,u=void 0===d?s:d,p=n.placeholderChar,h=void 0===p?o.placeholderChar:p,m=n.placeholder,g=void 0===m?(0,r.convertMaskToPlaceholder)(t,h):m,f=n.currentCaretPosition,v=n.keepCharPositions,b=!1===l&&void 0!==u,y=e.length,C=u.length,S=g.length,x=t.length,w=y-C,E=w>0,I=f+(E?-w:0),P=I+Math.abs(w);if(!0===v&&!E){for(var T=s,_=I;_<P;_++)g[_]===h&&(T+=h);e=e.slice(0,I)+T+e.slice(I,y)}for(var M=e.split(s).map((function(e,t){return{char:e,isNew:t>=I&&t<P}})),O=y-1;O>=0;O--){var A=M[O].char;A!==h&&A===g[O>=I&&C===x?O-w:O]&&M.splice(O,1)}var k=s,j=!1;e:for(var N=0;N<S;N++){var R=g[N];if(R===h){if(M.length>0)for(;M.length>0;){var D=M.shift(),L=D.char,F=D.isNew;if(L===h&&!0!==b){k+=h;continue e}if(t[N].test(L)){if(!0===v&&!1!==F&&u!==s&&!1!==l&&E){for(var B=M.length,U=null,V=0;V<B;V++){var G=M[V];if(G.char!==h&&!1===G.isNew)break;if(G.char===h){U=V;break}}null!==U?(k+=L,M.splice(U,1)):N--}else k+=L;continue e}j=!0}!1===b&&(k+=g.substr(N,S));break}k+=R}if(b&&!1===E){for(var H=null,z=0;z<k.length;z++)g[z]===h&&(H=z);k=null!==H?k.substr(0,H+1):s}return{conformedValue:k,meta:{someCharsRejected:j}}};var r=n(4),o=n(1),a=[],s=""},function(e,t,n){"use strict";function i(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.placeholderChar;if(!i(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")},t.isArray=i,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(a));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var r=n(1),o=[],a="[]"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){document.activeElement===e&&(g?f((function(){return e.setSelectionRange(t,t,h)}),0):e.setSelectionRange(t,t,h))}function o(e){if((0,d.isString)(e))return e;if((0,d.isNumber)(e))return String(e);if(null==e)return p;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,h=i.inputElement,g=i.mask,f=i.guide,v=i.pipe,b=i.placeholderChar,y=void 0===b?u.placeholderChar:b,C=i.keepCharPositions,S=void 0!==C&&C,x=i.showMask,w=void 0!==x&&x;if(void 0===n&&(n=h.value),n!==t.previousConformedValue){(void 0===g?"undefined":s(g))===m&&void 0!==g.pipe&&void 0!==g.mask&&(v=g.pipe,g=g.mask);var E=void 0,I=void 0;if(g instanceof Array&&(E=(0,d.convertMaskToPlaceholder)(g,y)),!1!==g){var P=o(n),T=h.selectionEnd,_=t.previousConformedValue,M=t.previousPlaceholder,O=void 0;if((void 0===g?"undefined":s(g))===u.strFunction){if(!1===(I=g(P,{currentCaretPosition:T,previousConformedValue:_,placeholderChar:y})))return;var A=(0,d.processCaretTraps)(I);I=A.maskWithoutCaretTraps,O=A.indexes,E=(0,d.convertMaskToPlaceholder)(I,y)}else I=g;var k={previousConformedValue:_,guide:f,placeholderChar:y,pipe:v,placeholder:E,currentCaretPosition:T,keepCharPositions:S},j=(0,l.default)(P,I,k).conformedValue,N=(void 0===v?"undefined":s(v))===u.strFunction,R={};N&&(!1===(R=v(j,a({rawValue:P},k)))?R={value:_,rejected:!0}:(0,d.isString)(R)&&(R={value:R}));var D=N?R.value:j,L=(0,c.default)({previousConformedValue:_,previousPlaceholder:M,conformedValue:D,placeholder:E,rawValue:P,currentCaretPosition:T,placeholderChar:y,indexesOfPipedChars:R.indexesOfPipedChars,caretTrapIndexes:O}),F=D===E&&0===L?w?E:p:D;t.previousConformedValue=F,t.previousPlaceholder=E,h.value!==F&&(h.value=F,r(h,L))}}}}};var c=i(n(2)),l=i(n(3)),d=n(4),u=n(1),p="",h="none",m="object",g="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),f="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},69033:(e,t)=>{"use strict";function n(e){return e>96?e-87:e>64?e-29:e-48}function i(e){var t=e.split("."),i=t[0],r=t[1]||"",o=1,a=0,s=0,c=1;45===e.charCodeAt(0)&&(a=1,c=-1);for(var l=a,d=i.length;l<d;++l)s=60*s+n(i.charCodeAt(l));for(var u=0,p=r.length;u<p;++u)s+=n(r.charCodeAt(u))*(o/=60);return s*c}function r(e){for(var t=0,n=e.length;t<n;++t)e[t]=i(e[t])}function o(e,t){for(var n=[],i=0,r=t.length;i<r;++i)n[i]=e[t[i]];return n}var a,s,c,l;function d(e){var t=e.year,n=e.month,i=e.day,r=e.hours,o=e.minutes,a=e.seconds,s=void 0===a?0:a,c=e.milliseconds,l=void 0===c?0:c;return Date.UTC(t,n-1,i,r,o,s,l)}function u(e){return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),dayOfWeek:e.getUTCDay(),hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()||0,milliseconds:e.getUTCMilliseconds()||0}}function p(e){return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),dayOfWeek:e.getDay(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()||0,milliseconds:e.getMilliseconds()||0}}function h(e,t){var n=function(e,t){for(var n=t.untils,i=0,r=n.length;i<r;++i)if(e<n[i])return i}(e,t);return{abbreviation:t.abbreviations[n],offset:t.offsets[n]}}function m(e,t){Object.defineProperty(e,"epoch",{value:t})}Object.defineProperty(t,"__esModule",{value:!0}),t.populateTimeZones=function(e){var t=e.zones,n=e.links;a={},s=t.map((function(e){var t=e.substr(0,e.indexOf("|"));return a[t]=e,t})),c=n.reduce((function(e,t){var n=t.split("|"),i=n[0];return e[n[1]]=i,e}),{}),l={}},t.listTimeZones=function(){return s.slice()},t.findTimeZone=function(e){var t=c[e]||e,n=l[t];if(!n){var i=a[t];if(!i)throw new Error('Unknown time zone "'+t+'".');n=l[t]=function(e){var t=e.split("|"),n=t[2].split(" "),i=t[3].split(""),a=t[4].split(" ");r(n),r(i),r(a),function(e,t){for(var n=0;n<t;++n)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(a,i.length);var s=t[0],c=o(t[1].split(" "),i),l=0|t[5];return{name:s,abbreviations:c,offsets:n=o(n,i),untils:a,population:l}}(i)}return n},t.getUTCOffset=function(e,t){var n=h("number"==typeof e?e:e.getTime(),t);return{abbreviation:n.abbreviation,offset:n.offset}},t.getZonedTime=function(e,t){var n="number"==typeof e,i=n?e:e.getTime(),r=h(i,t),o=r.abbreviation,a=r.offset;(n||a)&&(e=new Date(i-6e4*a));var s=u(e);return s.zone={abbreviation:o,offset:a},m(s,i),s},t.getUnixTime=function(e,t){var n=e.zone,i=e.epoch;if(i){if(t)throw new Error("Both epoch and other time zone specified. Omit the other one.");return i}var r=d(e);if(n){if(t)throw new Error("Both own and other time zones specified. Omit the other one.")}else{if(!t)throw new Error("Missing other time zone.");n=h(r,t)}return r+6e4*n.offset},t.setTimeZone=function(e,t,n){if(e instanceof Date)e=function(e,t){var n,i=(t||{}).useUTC;if(!0===i)n=u;else{if(!1!==i)throw new Error("Extract local or UTC date? Set useUTC option.");n=p}return n(e)}(e,n);else{var i=e,r=i.year,o=i.month,a=i.day,s=i.hours,c=i.minutes,l=i.seconds,g=void 0===l?0:l,f=i.milliseconds;e={year:r,month:o,day:a,hours:s,minutes:c,seconds:g,milliseconds:void 0===f?0:f}}var v=d(e),b=new Date(v);e.dayOfWeek=b.getUTCDay();var y=h(v,t),C=y.abbreviation,S=y.offset;return e.zone={abbreviation:C,offset:S},m(e,v+6e4*S),e},t.convertTimeToDate=function(e){var t=e.epoch;if(void 0!==t)return new Date(t);var n,i,r,o,a,s,c,l,u,p=(e.zone||{}).offset;if(void 0===p)return i=(n=e).year,r=n.month,o=n.day,a=n.hours,s=n.minutes,l=void 0===(c=n.seconds)?0:c,u=n.milliseconds,new Date(i,r-1,o,a,s,l,void 0===u?0:u);var h=d(e);return new Date(h+6e4*p)},t.convertDateToTime=function(e){var t=p(e),n=/\(([^)]+)\)$/.exec(e.toTimeString());return t.zone={abbreviation:n?n[1]:"???",offset:e.getTimezoneOffset()},m(t,e.getTime()),t}},91605:(e,t,n)=>{var i=n(67816),r=n(42893),o=r;o.v1=i,o.v4=r,e.exports=o},74754:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},34368:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},67816:(e,t,n)=>{var i,r,o=n(34368),a=n(74754),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,d=t||[],u=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:r;if(null==u||null==p){var h=o();null==u&&(u=i=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=r=16383&(h[6]<<8|h[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:c+1,f=m-s+(g-c)/1e4;if(f<0&&void 0===e.clockseq&&(p=p+1&16383),(f<0||m>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,c=g,r=p;var v=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;d[l++]=v>>>24&255,d[l++]=v>>>16&255,d[l++]=v>>>8&255,d[l++]=255&v;var b=m/4294967296*1e4&268435455;d[l++]=b>>>8&255,d[l++]=255&b,d[l++]=b>>>24&15|16,d[l++]=b>>>16&255,d[l++]=p>>>8|128,d[l++]=255&p;for(var y=0;y<6;++y)d[l+y]=u[y];return t||a(d)}},42893:(e,t,n)=>{var i=n(34368),r=n(74754);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||r(a)}},55057:(e,t,n)=>{"use strict";n.d(t,{$P:()=>L,A1:()=>k,Bz:()=>D,FJ:()=>_,Fi:()=>w,Gl:()=>A,Gq:()=>G,HB:()=>F,HY:()=>u,If:()=>l,J4:()=>v,Jp:()=>O,Kd:()=>I,Lb:()=>o,MD:()=>p,Px:()=>E,RC:()=>d,Se:()=>g,TV:()=>B,To:()=>s,Uc:()=>U,VH:()=>h,WT:()=>V,XQ:()=>f,Z0:()=>j,ZE:()=>r,d4:()=>T,dU:()=>M,fp:()=>m,ft:()=>i,gS:()=>b,iS:()=>R,jA:()=>P,ne:()=>y,p$:()=>C,sz:()=>N,t5:()=>c,ts:()=>a,uz:()=>H,vu:()=>x,w7:()=>S});const i="",r="login",o="pin-code",a="join",s="validation-code",c="send-validation-code",l="forgot-password",d="account",u="blocked-document-status",p="validate-document",h="wallet",m="settings",g="bonuses",f="bonus",v="offers",b="rewards",y="transactions",C="transactions/:type",S="refer-a-friend",x="change-password",w="messages",E="cashier",I="cashier/withdraw/cryptoreward",P="bonus-selection",T="bonus-terms-conditions",_="reset-password/:resetToken",M="cashier/deposit",O="contact-us",A="help/contact-us",k="faq",j="help",N="terms-of-service",R="responsible-gambling",D="privacy-policy",L="about-us",F="pages/:uriSuffix",B="updateForumUsername",U=new Map([["/join","registration:form_view"],["/?overlay=join","registration:form_view"],["/login","login:form_view"],["/cashier/deposit","cashier:deposit"],["/account/cashier/deposit","cashier:deposit"],["/","home"],["/casino",":casino"],["/poker",":poker"],["/sports",":sports"],["/horses",":horses"]]),V={"#3:game_overlay":{regex:/(\bcasino\b)\/(.*)\/(.*)/,isLoggedIn:!0}},G="info",H="two-factor-authenticator"},9886:(e,t,n)=>{"use strict";n.d(t,{Y_:()=>r});var i=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},95994:(e,t,n)=>{"use strict";n(36291);var i=n(57826);var r=n(6856),o=n(73753),a=n(64762),s=n(4309),c=n(42998);const l=new i.InjectionToken("ComponentInjector");let d=(()=>{class e{constructor(e){this.componentOutlet=e}get componentRef(){return this.componentOutlet._componentRef}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.NgComponentOutlet,1))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","ngComponentOutlet",""]],exportAs:["ndcComponentOutletInjector"]}),e})();"undefined"==typeof ngDevMode||ngDevMode;let u=(()=>{class e{constructor(e,t,n,i,r){this.renderer=e,this.differs=t,this.injector=n,this.componentInjectorType=i,this.componentOutletInjector=r,this._attrsDiffer=this.differs.find({}).create(),this._componentInjector=this.injector.get(this.componentInjectorType,null)}get _attributes(){return this.ndcDynamicAttributes||this.ngComponentOutletNdcDynamicAttributes}get _compInjector(){return this.componentOutletInjector||this._componentInjector}get _nativeElement(){return this._compInjector.componentRef&&this._compInjector.componentRef.location.nativeElement}get _compType(){return this._compInjector.componentRef&&this._compInjector.componentRef.componentType}get _isCompChanged(){return this._lastCompType!==this._compType&&(this._lastCompType=this._compType,!0)}ngDoCheck(){const e=this._isCompChanged,t=this._attrsDiffer.diff(this._attributes);t&&(this._lastAttrActions=this._changesToAttrActions(t)),(t||e&&this._lastAttrActions)&&this._updateAttributes(this._lastAttrActions)}setAttribute(e,t,n){this._nativeElement&&this.renderer.setAttribute(this._nativeElement,e,t,n)}removeAttribute(e,t){this._nativeElement&&this.renderer.removeAttribute(this._nativeElement,e,t)}_updateAttributes(e){this._compType&&(Object.keys(e.set).forEach((t=>this.setAttribute(t,e.set[t]))),e.remove.forEach((e=>this.removeAttribute(e))))}_changesToAttrActions(e){const t={set:{},remove:[]};return e.forEachAddedItem((e=>t.set[e.key]=e.currentValue)),e.forEachChangedItem((e=>t.set[e.key]=e.currentValue)),e.forEachRemovedItem((e=>t.remove.push(e.key))),t}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](i.KeyValueDiffers),i["ɵɵdirectiveInject"](i.Injector),i["ɵɵdirectiveInject"](l),i["ɵɵdirectiveInject"](d,9))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","ndcDynamicAttributes",""],["","ngComponentOutletNdcDynamicAttributes",""]],inputs:{ndcDynamicAttributes:"ndcDynamicAttributes",ngComponentOutletNdcDynamicAttributes:"ngComponentOutletNdcDynamicAttributes"},exportAs:["ndcDynamicAttributes"]}),e})();function p(e){return new i.SimpleChange(void 0,e,!0)}function h(e,t){return n=>t(n,function(e,t=!1){return t?p(e.currentValue):new i.SimpleChange(e.previousValue,e.currentValue,!1)}(n,e))}"undefined"==typeof ngDevMode||ngDevMode;const m={isFirstChanges:!1,onlyNewChanges:!1};function g(e=m){return e.onlyNewChanges?(t=e.isFirstChanges,e=>h(t,((t,n)=>{e[t.key]||(e[t.key]=n)}))):function(e){return t=>h(e,((e,n)=>t[e.key]=n))}(e.isFirstChanges);var t}function f(){}const v=g({isFirstChanges:!0}),b=g({onlyNewChanges:!0});let y=(()=>{class e{constructor(e,t){this._differs=e,this._cfr=t,this.checkInit=this.failInit,this._lastComponentInst=null,this._inputsDiffer=this._differs.find({}).create(),this._compFactory=null,this._outputsShouldDisconnect$=new s.Subject,this._outputsChanged=()=>!1}get _compRef(){return this._compInjector.componentRef}get _componentInst(){return this._compRef?this._compRef.instance:null}get _componentInstChanged(){return this._lastComponentInst!==this._componentInst&&(this._lastComponentInst=this._componentInst,!0)}get _compCdr(){return this._compRef?this._compRef.injector.get(i.ChangeDetectorRef):null}ngOnDestroy(){this._disconnectOutputs()}init(e,t={}){if(this.checkInit=e?f:this.failInit,this._compInjector=e,t.trackOutputChanges){const e=this._differs.find({}).create();this._outputsChanged=t=>!!e.diff(t)}}update(e,t,n,i){this.checkInit(),this.updateIO(e,t);const r=this._componentInstChanged;if(r||n){const e=this._getInputsChanges(this._inputs);e&&this._updateInputChanges(e),this.updateInputs(r||!this._lastInputChanges)}(r||i)&&this.bindOutputs()}maybeUpdate(){if(this.checkInit(),this._componentInstChanged)return this.updateInputs(!0),void this.bindOutputs();if(this._outputsChanged(this._outputs)&&this.bindOutputs(),!this._inputs)return;const e=this._getInputsChanges(this._inputs);if(e){const t=!!this._lastInputChanges;this._updateInputChanges(e),t&&this.updateInputs()}}updateIO(e,t){this._inputs=e,this._outputs=t}updateInputs(e=!1){e&&this._updateCompFactory();const t=this._componentInst;let n=this._inputs;n&&t&&(n=this._resolveInputs(n),Object.keys(n).forEach((e=>t[e]=n[e])),this._compCdr&&this._compCdr.markForCheck(),this.notifyOnInputChanges(this._lastInputChanges,e))}bindOutputs(){this._disconnectOutputs();const e=this._componentInst;let t=this._outputs;t&&e&&(t=this._resolveOutputs(t),Object.keys(t).filter((t=>e[t])).forEach((n=>e[n].pipe((0,c.takeUntil)(this._outputsShouldDisconnect$)).subscribe(t[n]))))}notifyOnInputChanges(e={},t){this._componentInst.ngOnChanges&&(t&&(e=this._collectFirstChanges()),this._componentInst.ngOnChanges(e))}_disconnectOutputs(){this._outputsShouldDisconnect$.next()}_getInputsChanges(e){return this._inputsDiffer.diff(this._inputs)}_updateInputChanges(e){this._lastInputChanges=this._collectChangesFromDiffer(e)}_collectFirstChanges(){const e={},t=this._inputs;return Object.keys(t).forEach((n=>e[n]=p(t[n]))),this._resolveChanges(e)}_collectChangesFromDiffer(e){const t={};return e.forEachAddedItem(v(t)),e.forEachItem(b(t)),this._resolveChanges(t)}_resolveCompFactory(){try{try{return this._cfr.resolveComponentFactory(this._compRef.componentType)}catch(e){return this._cfr.resolveComponentFactory(this._compRef.instance.constructor)}}catch(e){return null}}_updateCompFactory(){this._compFactory=this._resolveCompFactory()}_resolveInputs(e){return this._compFactory?this._remapIO(e,this._compFactory.inputs):e}_resolveOutputs(e){return this._compFactory?this._remapIO(e,this._compFactory.outputs):e}_resolveChanges(e){return this._compFactory?this._remapIO(e,this._compFactory.inputs):e}_remapIO(e,t){const n={};return Object.keys(e).forEach((i=>{const r=this._findPropByTplInMapping(i,t)||i;n[r]=e[i]})),n}_findPropByTplInMapping(e,t){for(const n of t)if(n.templateName===e)return n.propName;return null}failInit(){throw Error("IoService: ComponentInjector was not set! Please call init() method!")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.KeyValueDiffers),i["ɵɵinject"](i.ComponentFactoryResolver))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();"undefined"==typeof ngDevMode||ngDevMode;let C=(()=>{class e{constructor(e,t){this.differs=e,this.cfr=t}create(){return new y(this.differs,this.cfr)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.KeyValueDiffers),i["ɵɵinject"](i.ComponentFactoryResolver))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();"undefined"==typeof ngDevMode||ngDevMode;const S=new i.InjectionToken("WindowRef");let x=(()=>{class e{constructor(e){this.injector=e,this.nativeWindow=this.injector.get(S,null)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.Injector))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();"undefined"==typeof ngDevMode||ngDevMode;let w=(()=>{class e{constructor(e,t,n,r,o,a){this.injector=e,this.iterableDiffers=t,this.ioFactoryService=n,this.windowRef=r,this.componentInjectorType=o,this.componentOutletInjector=a,this.ndcDynamicDirectivesCreated=new i.EventEmitter,this.componentInjector=this.injector.get(this.componentInjectorType,null),this.dirRef=new Map,this.dirIo=new Map,this.dirsDiffer=this.iterableDiffers.find([]).create(((e,t)=>t.type))}get directives(){return this.ndcDynamicDirectives||this.ngComponentOutletNdcDynamicDirectives}get compInjector(){return this.componentOutletInjector||this.componentInjector}get componentRef(){return this.compInjector.componentRef}get compInstance(){return this.componentRef&&this.componentRef.instance}get isCompChanged(){return this.lastCompInstance!==this.compInstance&&(this.lastCompInstance=this.compInstance,!0)}get hostInjector(){return this.componentRef.injector}get hostVcr(){return this.componentRef._viewRef._viewContainerRef}get reflect(){return this.windowRef.nativeWindow.Reflect}ngDoCheck(){if(this.maybeDestroyDirectives())return;const e=this.dirsDiffer.diff(this.directives);if(!e)return this.updateDirectives();this.processDirChanges(e)}ngOnDestroy(){this.destroyAllDirectives()}maybeDestroyDirectives(){return!this.isCompChanged&&this.componentRef||(this.dirsDiffer.diff([]),this.destroyAllDirectives()),!this.componentRef}processDirChanges(e){e.forEachRemovedItem((({item:e})=>this.destroyDirective(e)));const t=[];e.forEachAddedItem((({item:e})=>t.push(this.initDirective(e)))),t.length&&this.ndcDynamicDirectivesCreated.emit(t.filter(Boolean))}updateDirectives(){this.directives.forEach((e=>this.updateDirective(e)))}updateDirective(e){const t=this.dirIo.get(e.type);t.update(e.inputs,e.outputs,!1,!1),t.maybeUpdate()}initDirective(e){if(this.dirRef.has(e.type))return;const t=this.createDirective(e.type),n={instance:t,type:e.type,injector:this.hostInjector,hostComponent:this.componentRef.instance,hostView:this.componentRef.hostView,location:this.componentRef.location,changeDetectorRef:this.componentRef.changeDetectorRef,onDestroy:this.componentRef.onDestroy};return this.initDirIO(n,e.inputs,e.outputs),this.callInitHooks(t),this.dirRef.set(n.type,n),n}destroyAllDirectives(){this.dirRef.forEach((e=>this.destroyDirRef(e))),this.dirRef.clear(),this.dirIo.clear()}destroyDirective(e){this.destroyDirRef(this.dirRef.get(e.type)),this.dirRef.delete(e.type),this.dirIo.delete(e.type)}initDirIO(e,t,n){const i=this.ioFactoryService.create();i.init({componentRef:this.dirToCompDef(e)},{trackOutputChanges:!0}),i.update(t,n,!!t,!!n),this.dirIo.set(e.type,i)}dirToCompDef(e){return Object.assign({},this.componentRef,{destroy:this.componentRef.destroy,onDestroy:this.componentRef.onDestroy,injector:this.componentRef.injector,instance:e.instance,componentType:e.type})}destroyDirRef(e){this.dirIo.get(e.type).ngOnDestroy(),"ngOnDestroy"in e.instance&&e.instance.ngOnDestroy()}createDirective(e){var t;return new e(...(t=e,this.reflect.getMetadata("design:paramtypes",t)).map((e=>this.resolveDep(e))))}resolveDep(e){return this.maybeResolveVCR(e)||this.hostInjector.get(e)}maybeResolveVCR(e){if(e===i.ViewContainerRef)return this.hostVcr}callInitHooks(e){this.callHook(e,"ngOnInit"),this.callHook(e,"ngDoCheck"),this.callHook(e,"ngAfterContentInit"),this.callHook(e,"ngAfterContentChecked"),this.callHook(e,"ngAfterViewInit"),this.callHook(e,"ngAfterViewChecked")}callHook(e,t,n=[]){e[t]&&e[t](...n)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.Injector),i["ɵɵdirectiveInject"](i.IterableDiffers),i["ɵɵdirectiveInject"](C),i["ɵɵdirectiveInject"](x),i["ɵɵdirectiveInject"](l),i["ɵɵdirectiveInject"](d,9))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","ndcDynamicDirectives",""],["","ngComponentOutletNdcDynamicDirectives",""]],inputs:{ndcDynamicDirectives:"ndcDynamicDirectives",ngComponentOutletNdcDynamicDirectives:"ngComponentOutletNdcDynamicDirectives"},outputs:{ndcDynamicDirectivesCreated:"ndcDynamicDirectivesCreated"}}),e})();"undefined"==typeof ngDevMode||ngDevMode;let E=(()=>{class e{constructor(e,t){this._vcr=e,this._cfr=t,this.ndcDynamicCreated=new i.EventEmitter}ngOnChanges(e){e.ndcDynamicComponent&&this.createDynamicComponent()}createDynamicComponent(){this._vcr.clear(),this.componentRef=null,this.ndcDynamicComponent&&(this.componentRef=this._vcr.createComponent(this._cfr.resolveComponentFactory(this.ndcDynamicComponent),0,this._resolveInjector(),this.ndcDynamicContent),this.ndcDynamicCreated.emit(this.componentRef))}_resolveInjector(){let e=this.ndcDynamicInjector||this._vcr.parentInjector;return this.ndcDynamicProviders&&(e=i.Injector.create({providers:this.ndcDynamicProviders,parent:e})),e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](i.ComponentFactoryResolver))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["ndc-dynamic"]],inputs:{ndcDynamicComponent:"ndcDynamicComponent",ndcDynamicInjector:"ndcDynamicInjector",ndcDynamicProviders:"ndcDynamicProviders",ndcDynamicContent:"ndcDynamicContent"},outputs:{ndcDynamicCreated:"ndcDynamicCreated"},features:[i["ɵɵNgOnChangesFeature"]],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();"undefined"==typeof ngDevMode||ngDevMode;let I=(()=>{class e{constructor(e,t,n,i){this._injector=e,this.ioService=t,this._componentInjectorType=n,this._componentOutletInjector=i,this._componentInjector=this._injector.get(this._componentInjectorType,null),this.ioService.init(this._compInjector)}get _inputs(){return this.ndcDynamicInputs||this.ngComponentOutletNdcDynamicInputs}get _outputs(){return this.ndcDynamicOutputs||this.ngComponentOutletNdcDynamicOutputs}get _compInjector(){return this._componentOutletInjector||this._componentInjector}ngOnChanges(e){this.ioService.update(this._inputs,this._outputs,this._inputsChanged(e),this._outputsChanged(e))}ngDoCheck(){this.ioService.maybeUpdate()}_inputsChanged(e){return"ngComponentOutletNdcDynamicInputs"in e||"ndcDynamicInputs"in e}_outputsChanged(e){return"ngComponentOutletNdcDynamicOutputs"in e||"ndcDynamicOutputs"in e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.Injector),i["ɵɵdirectiveInject"](y),i["ɵɵdirectiveInject"](l),i["ɵɵdirectiveInject"](d,9))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","ndcDynamicInputs",""],["","ndcDynamicOutputs",""],["","ngComponentOutletNdcDynamicInputs",""],["","ngComponentOutletNdcDynamicOutputs",""]],inputs:{ndcDynamicInputs:"ndcDynamicInputs",ngComponentOutletNdcDynamicInputs:"ngComponentOutletNdcDynamicInputs",ndcDynamicOutputs:"ndcDynamicOutputs",ngComponentOutletNdcDynamicOutputs:"ngComponentOutletNdcDynamicOutputs"},features:[i["ɵɵProvidersFeature"]([y]),i["ɵɵNgOnChangesFeature"]]}),e})();function P(){return window}"undefined"==typeof ngDevMode||ngDevMode;let T=(()=>{class e{static withComponents(t,n=E){return{ngModule:e,providers:[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0},{provide:l,useValue:n},C,{provide:S,useFactory:P},x]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule]]}),e})();"undefined"==typeof ngDevMode||ngDevMode,("undefined"==typeof ngJitMode||ngJitMode)&&i["ɵɵsetNgModuleScope"](T,{declarations:function(){return[E,I,d,u,w]},imports:function(){return[r.CommonModule]},exports:function(){return[E,I,d,u,w]}});var _=n(1459);function M(e,t){if(1&e&&i["ɵɵelementContainer"](0,1),2&e){const e=t.ngIf,n=i["ɵɵnextContext"]();i["ɵɵproperty"]("ndcDynamicInputs",n.inputs)("ndcDynamicOutputs",n.outputs)("ngComponentOutletNgModuleFactory",e.ngModuleFactory)("ngComponentOutlet",e.componentType)}}const O=new i.InjectionToken("REACTIVE_COMPONENT_LOADER_MODULE_REGISTRY");function A(e){return new Error(`Component '<${e}>' not found.`)}class k{constructor(e,t,n,i){this._compiler=e,this._injector=t,this._ngModuleFactoryLoader=n,this._moduleRegistry=i}getComponentRecipe(e){return null==e?(0,s.of)(null):(0,s.defer)((()=>(0,a.__awaiter)(this,void 0,void 0,(function*(){const{moduleId:t,selector:n}=e,i=this._findModuleInfo(t),r=yield this._getModuleFactory(i),o=r.create(this._injector);return{componentType:this._tryGetComponentType(o,n),ngModuleFactory:r}}))))}_tryGetComponentType(e,t){const n=e.componentFactoryResolver;if(n._factories){const e=Array.from(n._factories.values()).find((e=>e.selector===t));if(null==e)throw A(t);return e.componentType}const[i]=e._bootstrapComponents;if(null==i)throw A(t);return n.resolveComponentFactory(i).componentType}_getModuleFactory(e){return(0,a.__awaiter)(this,void 0,void 0,(function*(){if("string"==typeof e.loadChildren)return yield this._ngModuleFactoryLoader.load(e.loadChildren);const t=yield e.loadChildren();return t instanceof i.NgModuleFactory?t:yield this._compiler.compileModuleAsync(t)}))}_findModuleInfo(e){const t=this._moduleRegistry.filter((t=>t.moduleId===e)),n=t[0];if(null==n)throw function(e){return new Error(`Module with id '${e}' not found.`)}(e);if(t.filter((e=>e.loadChildren!==n.loadChildren)).length>0)throw function(e){return new Error(`Module with id '${e}' has been declared more than once with different locations.`)}(n.moduleId);return n}}k.ɵfac=function(e){return new(e||k)(i["ɵɵinject"](i.Compiler),i["ɵɵinject"](i.Injector),i["ɵɵinject"](i.NgModuleFactoryLoader),i["ɵɵinject"](O))},k.ɵprov=i["ɵɵdefineInjectable"]({token:k,factory:k.ɵfac,providedIn:"root"}),k.ngInjectableDef=(0,i["ɵɵdefineInjectable"])({factory:function(){return new k((0,i["ɵɵinject"])(i.Compiler),(0,i["ɵɵinject"])(i.INJECTOR),(0,i["ɵɵinject"])(i.NgModuleFactoryLoader),(0,i["ɵɵinject"])(O))},token:k,providedIn:"root"}),"undefined"==typeof ngDevMode||ngDevMode;let j=(()=>{class e{constructor(e){this._dynamicComponentLoader=e}ngOnChanges(e){null!=e.location&&(this.componentRecipe$=this._dynamicComponentLoader.getComponentRecipe(this.location))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](k))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["wt-lazy"]],inputs:{location:"location",inputs:"inputs",outputs:"outputs"},features:[i["ɵɵNgOnChangesFeature"]],decls:2,vars:3,consts:[[3,"ndcDynamicInputs","ndcDynamicOutputs","ngComponentOutletNgModuleFactory","ngComponentOutlet",4,"ngIf"],[3,"ndcDynamicInputs","ndcDynamicOutputs","ngComponentOutletNgModuleFactory","ngComponentOutlet"]],template:function(e,t){1&e&&(i["ɵɵtemplate"](0,M,1,4,"ng-container",0),i["ɵɵpipe"](1,"async")),2&e&&i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](1,1,t.componentRecipe$))},directives:[r.NgIf,I,r.NgComponentOutlet,d],pipes:[r.AsyncPipe],encapsulation:2}),e})();"undefined"==typeof ngDevMode||ngDevMode;let N=(()=>{class e extends r.NgComponentOutlet{constructor(e,t){super(t),this._reactiveComponentLoader=e,this._scavenger=new _.u8(this)}get componentRef(){return this._componentRef}ngOnChanges(e){e.location&&this._onLocationChange(e.location.isFirstChange())}ngOnDestroy(){}_onLocationChange(e){this._reactiveComponentLoader.getComponentRecipe(this.location).pipe(this._scavenger.collectByKey("getComponentRecipe")).subscribe((t=>this._onRecipeChange({isFirstChange:e,recipe:t})))}_onRecipeChange({isFirstChange:e,recipe:t}){const{componentType:n=null,ngModuleFactory:r=null}=t||{},o={ngComponentOutlet:new i.SimpleChange(this.ngComponentOutlet,this.ngComponentOutlet=n,e),ngComponentOutletNgModuleFactory:new i.SimpleChange(this.ngComponentOutletNgModuleFactory,this.ngComponentOutletNgModuleFactory=r,e)};super.ngOnChanges(o)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](k),i["ɵɵdirectiveInject"](i.ViewContainerRef))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","wtLazy",""]],inputs:{location:["wtLazy","location"]},features:[i["ɵɵInheritDefinitionFeature"],i["ɵɵNgOnChangesFeature"]]}),e})();function R(){return null}"undefined"==typeof ngDevMode||ngDevMode;let D=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader}]}}static withModule(t){return{ngModule:e,providers:[(0,o.provideRoutes)([{loadChildren:t.loadChildren,matcher:R}]),{provide:O,useValue:t,multi:!0}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[(0,o.provideRoutes)([])],imports:[[r.CommonModule,T.withComponents([])],T]}),e})();"undefined"==typeof ngDevMode||ngDevMode,("undefined"==typeof ngJitMode||ngJitMode)&&i["ɵɵsetNgModuleScope"](D,{declarations:function(){return[j,N]},imports:function(){return[r.CommonModule,T]},exports:function(){return[T,j,N]}});var L=n(7114),F=n(66168),B=n(25938),U=n(71063),V=n(64174),G=n(45965),H=n(6969);let z=(()=>{class e{constructor(e,t,n,i,r){this.sessionService=e,this.loginService=t,this.profileRegistrationService=n,this.deviceProtectService=i,this.siteConfigService=r,this.deviceProtectConfigProp="deviceProtect",this.deviceProtectDomainProp="domain",this.deviceProtectEnabledProp="enabled",this.loadModule()}loadModule(){if(this.isDeviceProtectEnabled()){const e=this.siteConfigService.getSiteConfigProp(this.deviceProtectConfigProp)[this.deviceProtectDomainProp];this.deviceProtectUrl="https://"+e}}init(){if(this.isDeviceProtectEnabled()){let e=this.deviceProtectService.listenBlackBoxGenerationResults(this.deviceProtectUrl);this.subscribeToEvents(e)}}subscribeToEvents(e){e.subscribe((()=>{if(this.sessionService.isAuthenticated()){let e=this.sessionService.session;this.deviceProtectService.sendSessionId(e,this.deviceProtectUrl)}else this.loginService.loginEvent.subscribe((()=>{let e=this.sessionService.session;this.deviceProtectService.sendSessionId(e,this.deviceProtectUrl)})),this.profileRegistrationService.getRegistrationEvent().subscribe((e=>{this.deviceProtectService.sendSessionId(e.sessionId,this.deviceProtectUrl)}))}))}isDeviceProtectEnabled(){let e=this.siteConfigService.getSiteConfigProp(this.deviceProtectConfigProp);return e&&e[this.deviceProtectEnabledProp]}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](V.m),i["ɵɵinject"](U.r6),i["ɵɵinject"](H.H8),i["ɵɵinject"](B.Xp),i["ɵɵinject"](G.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class ${preload(e,t){return e.data&&e.data.preload?t():(0,s.of)(null)}}var W=n(53001),q=n(17990),K=n(25300);function X(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelement"](4,"wt-lazy",3),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](4),i["ɵɵproperty"]("location",e.location)("inputs",e.inputs)}}const Y="LazyProfileRegistrationModule";let J=class{constructor(e){this.sessionService=e,this.location={moduleId:Y,selector:"bx-profile-registration-page"},this.inputs={lazyRegistration:!0}}isAuthenticated(){return this.sessionService.isAuthenticated()}};J.ɵfac=function(e){return new(e||J)(i["ɵɵdirectiveInject"](V.m))},J.ɵcmp=i["ɵɵdefineComponent"]({type:J,selectors:[["bx-lazy-profile-registration-page"]],decls:3,vars:1,consts:[["class","registration-container modal-overlay dark-overlay",4,"ngIf"],[1,"registration-container","modal-overlay","dark-overlay"],[1,"modal-content","modal-medium","modal-body"],[3,"location","inputs"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,X,7,2,"div",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",!t.isAuthenticated()))},directives:[r.NgIf,j],styles:[".registration-container.modal-overlay.dark-overlay[_ngcontent-%COMP%] {\n  background-color: transparent;\n  overflow: hidden;\n  position: inherit;\n}\n\n.registration-container.modal-overlay.dark-overlay[_ngcontent-%COMP%]   .modal-content[_ngcontent-%COMP%] {\n  margin: 0 auto;\n}\n\n.registration-container.modal-overlay.dark-overlay[_ngcontent-%COMP%]   .modal-content.modal-medium.modal-body[_ngcontent-%COMP%] {\n  border: none;\n}"]}),J=(0,a.__decorate)([(0,q.DE)({name:"Profile Registration page Functional Placeholder",matcher:e=>e.contentType===K.z.FUNCTIONAL&&e.fields.tags&&e.fields.tags.split(",").indexOf("mkJoin")>=0}),(0,a.__metadata)("design:paramtypes",[V.m])],J);let Q=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,W.J.withComponents([J]),D.withModule({moduleId:Y,loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(163)]).then(n.bind(n,90163)).then((e=>e.ProfileRegistrationModule))})]]}),e})();var Z=n(57597),ee=n(81899);let te=(()=>{class e{constructor(e,t){this.windowService=e,this.zone=t,this.targets=[]}init(){this.lockElements=[],this.clickListener=this.onClick.bind(this),this.zone.runOutsideAngular((()=>{this.windowService.window().addEventListener("click",this.clickListener,!0)}))}getTimeout(t){return this.targets[t]||e.DEFAULT_TIMEOUT}setTimeout(e,t){this.targets[e]=t}onClick(e){this.isBlocked(e.target)?(e.stopPropagation(),e.preventDefault()):(this.block(e.target),setTimeout((()=>{this.release(e.target)}),this.getTimeout(e.target)))}destroy(){this.clickListener&&this.windowService.window().removeEventListener("click",this.clickListener,!0)}isBlocked(e){return this.lockElements.includes(e)}block(e){this.lockElements.push(e)}release(e){const t=this.lockElements.indexOf(e);t>-1&&this.lockElements.splice(t,1)}}return e.DEFAULT_TIMEOUT=400,e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ee.u),i["ɵɵinject"](i.NgZone))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var ne=n(69703),ie=n(24144),re=n(4473),oe=n(3336),ae=n(13429),se=n(52723),ce=n(32711),le=n(25858);let de=(()=>{class e{constructor(e,t,n,i,r,o){this.notificationsStore=e,this.notificationPopupService=t,this.router=n,this.windowService=i,this.notificationDisplayService=r,this.analyticsService=o,this.displayAllowed=!0,this.notifications=[]}init(){this.notificationReaction(),this.navigationReaction(),this.subscribeNotificationsAllowed()}subscribeNotificationsAllowed(){this.notificationDisplayService.subscribeNotificationsAllowed().subscribe((e=>{this.displayAllowed=e,e?this.displayPendingNotifications():this.closeCurrentNotification()}))}navigationReaction(){this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationStart))).subscribe((()=>{this.closeCurrentNotification(),this.notificationShownOnPage=!1})),this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd))).subscribe((()=>{this.displayPendingNotifications()}))}closeCurrentNotification(){this.notificationIndex&&(this.notificationPopupService.close(this.notificationIndex),this.notificationIndex=void 0)}notificationReaction(){(0,ce.EH)((()=>{this.notificationsStore.isDone&&(this.notifications=this.notificationsStore.notifications,this.displayPendingNotifications())}))}displayPendingNotifications(){setTimeout((()=>{const e=this.notificationToDisplay();e&&(this.notificationIndex=this.notificationPopupService.open({title:e.content.subject,body:e.content.popup.body,label:e.content.popup.label,image:e.content.popup.image,tags:e.content.popup.tags,bonusCode:e.content.popup.url,displayCountable:!0,onClick:()=>this.onClickNotification(e)}),(0,ce.z)((()=>{e.displayed=!0,this.notificationsStore.setNotificationAsDisplayed(e.notificationId)})),this.analyticsService.trackNotificationEvent("display",e.notificationId))}),2e3)}notificationToDisplay(){if(this.isEntitledToDisplay()){let e=this.notifications.filter((e=>0==e.displayed&&0==e.acknowledged&&e.expiresAt>new Date&&!!e.content.popup.body));if(e.length>0)return this.notificationShownOnPage=!0,e[0]}}isEntitledToDisplay(){return this.notificationDisplayService.isDisplayLimitNotExceeded()&&!this.notificationShownOnPage&&this.displayAllowed}onClickNotification(e){this.analyticsService.trackNotificationEvent("click",e.notificationId),e.content.popup.tags?this.notificationsStore.setNotificationAsRead(e.notificationId):e.content.popup.url?(this.notificationsStore.setNotificationAsRead(e.notificationId),(0,ce.gx)((()=>e.acknowledged),(()=>this.windowService.window().location.href=e.content.popup.url))):this.router.navigateByUrl("/account/messages?tab=notifications")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](le.p),i["ɵɵinject"](se.n),i["ɵɵinject"](o.Router),i["ɵɵinject"](ee.u),i["ɵɵinject"](ae.t),i["ɵɵinject"](oe.y))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var ue=n(7171),pe=n(60725),he=n(616),me=n(82846),ge=n(40475),fe=n(12596),ve=n(99576),be=n(92947);let ye=(()=>{class e{constructor(){this.headerLevel2=!0}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Ce=n(1890),Se=n(86014);function xe(e,t){1&e&&(i["ɵɵelementStart"](0,"p",10),i["ɵɵtext"](1,"\n                    pinCodeUpdate.form.advertisement1\n                "),i["ɵɵelementEnd"]())}function we(e,t){1&e&&(i["ɵɵelementStart"](0,"p",10),i["ɵɵtext"](1,"\n                    pinCodeUpdate.form.advertisement2\n                "),i["ɵɵelementEnd"]())}function Ee(e,t){1&e&&(i["ɵɵelementStart"](0,"span",11),i["ɵɵtext"](1,"pinCodeUpdate.form.label"),i["ɵɵelementEnd"]())}function Ie(e,t){1&e&&(i["ɵɵelementStart"](0,"figure",12),i["ɵɵtext"](1,"\n                    "),i["ɵɵelement"](2,"i",13),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"figcaption",14),i["ɵɵtext"](5,"pinCodeUpdate.form.information"),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"]())}function Pe(e,t){1&e&&(i["ɵɵelementStart"](0,"p",14),i["ɵɵtext"](1,"\n                    pinCodeUpdate.form.verification.alert\n                "),i["ɵɵelementEnd"]())}const Te=function(){return["/contact-us"]};function _e(e,t){1&e&&(i["ɵɵelementStart"](0,"div",1),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"p"),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"span",14),i["ɵɵtext"](5,"pinCodeUpdate.form.label.contactUs"),i["ɵɵelementEnd"](),i["ɵɵtext"](6," "),i["ɵɵelementStart"](7,"a",15),i["ɵɵtext"](8,"\n                            pinCodeUpdate.form.link.contactUs\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n            "),i["ɵɵelementEnd"]()),2&e&&(i["ɵɵadvance"](7),i["ɵɵproperty"]("routerLink",i["ɵɵpureFunction0"](1,Te)))}class Me{constructor(e,t,n,i,r,o,a){this.formBuilder=e,this.profileService=t,this.profileStore=n,this.translateService=i,this.toastNotificationService=r,this.pinCodeUpdateConfig=o,this.analyticsService=a,this.processingCall=!1,this.allDigitsEntered=!1,this.isForceUpdatePinCode=!1,this.publishNotification=e=>this.toastNotificationService.add(e),this.toLoadingNotification=e=>this.toNotification("loading",e,0,2e3)}ngOnInit(){this.pinCodeForm=this.formBuilder.group({pinCode:this.formBuilder.control("",[ge.Validators.required,ge.Validators.minLength(4),ge.Validators.maxLength(4)])})}sendPinCode(){if(this.pinCodeForm.valid){if(this.processingCall)return;this.processingCall=!0,this.errorMessage=null,this.translateService.translate("pinCodeUpdate.loading").pipe((0,c.map)(this.toLoadingNotification)).subscribe((e=>this.publishNotification(e))),this.analyticsService.sendEvent("click",Me.BUTTON_EVENT_NAME,!0,Me.BUTTON_CUSTOM_VALUE,Me.OVERRIDE_CONTEXT),this.profileService.updatePinCode(this.pinCodeForm.value.pinCode).subscribe((()=>{this.profileStore.refresh(),this.toastNotificationService.close(),this.toastNotificationService.doClose.subscribe((()=>{this.processingCall=!1}))}),(e=>this.processingCall=!1))}else this.errorMessage="pinCodeUpdate.error.message"}getButtonTag(){return this.isForceUpdatePinCode?"pinCodeUpdate.form.button.done":"pinCodeUpdate.form.button"}onPinCodeInputChanged(e){this.allDigitsEntered=e}shouldHideSubmitButton(){return this.pinCodeUpdateConfig.autoHideSubmitButton&&!this.allDigitsEntered}toNotification(e,t,n=3e3,i=0){return{msg:t,modal:!0,type:e,timeout:n,delay:i}}}Me.BUTTON_EVENT_NAME="submit_pinCodeOverlay",Me.BUTTON_CUSTOM_VALUE={1:Me.BUTTON_EVENT_NAME},Me.OVERRIDE_CONTEXT={contentId:"pin_code"},Me.ɵfac=function(e){return new(e||Me)(i["ɵɵdirectiveInject"](ge.FormBuilder),i["ɵɵdirectiveInject"](be.H),i["ɵɵdirectiveInject"](he.s),i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](ve.i),i["ɵɵdirectiveInject"](ye),i["ɵɵdirectiveInject"](oe.y))},Me.ɵcmp=i["ɵɵdefineComponent"]({type:Me,selectors:[["bx-pin-code-update-form"]],inputs:{isForceUpdatePinCode:"isForceUpdatePinCode"},decls:28,vars:18,consts:[["novalidate","",3,"formGroup","ngClass","submit"],[1,"pin-code-form"],["class","align-left",3,"bxTranslate",4,"ngIf"],["class","label",3,"bxTranslate",4,"ngIf"],["formControlName","pinCode",3,"errorMessage","hidePinCodeEye","alwaysShowPinCode","showPinCodeLegend","showPinCodeInfoTooltip","additionalClasses","allDigitsEntered"],["class","custom-notification alert info",4,"ngIf"],[3,"bxTranslate",4,"ngIf"],[1,"full-width-ctas"],["type","submit",1,"custom-cta","primary","cta-large",3,"disabled","bxTranslate"],["class","pin-code-form",4,"ngIf"],[1,"align-left",3,"bxTranslate"],[1,"label",3,"bxTranslate"],[1,"custom-notification","alert","info"],[1,"icon","icon-info"],[3,"bxTranslate"],[1,"contact-us-link",3,"routerLink","bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"form",0),i["ɵɵlistener"]("submit",(function(){return t.sendPinCode()})),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,xe,2,0,"p",2),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,we,2,0,"p",2),i["ɵɵtext"](8,"\n                "),i["ɵɵtemplate"](9,Ee,2,0,"span",3),i["ɵɵtext"](10,"\n                "),i["ɵɵelementStart"](11,"bx-pin-code",4),i["ɵɵlistener"]("allDigitsEntered",(function(e){return t.onPinCodeInputChanged(e)})),i["ɵɵtext"](12,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n                "),i["ɵɵtemplate"](14,Ie,7,0,"figure",5),i["ɵɵtext"](15,"\n                "),i["ɵɵtemplate"](16,Pe,2,0,"p",6),i["ɵɵtext"](17,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n            "),i["ɵɵelementStart"](19,"div",7),i["ɵɵtext"](20,"\n                "),i["ɵɵelementStart"](21,"button",8),i["ɵɵtext"](22),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n            "),i["ɵɵtemplate"](25,_e,11,2,"div",9),i["ɵɵtext"](26,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("formGroup",t.pinCodeForm)("ngClass",t.pinCodeUpdateConfig.additionalClasses),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.isForceUpdatePinCode),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.isForceUpdatePinCode&&!t.pinCodeUpdateConfig.hideSecondPinCodeAdvertisement),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.pinCodeUpdateConfig.alwaysShowPinCodeFormLabel||!t.isForceUpdatePinCode),i["ɵɵadvance"](2),i["ɵɵproperty"]("errorMessage",t.errorMessage)("hidePinCodeEye",t.pinCodeUpdateConfig.hidePinCodeEye)("alwaysShowPinCode",t.pinCodeUpdateConfig.alwaysShowPinCode)("showPinCodeLegend",t.pinCodeUpdateConfig.showPinCodeLegend)("showPinCodeInfoTooltip",t.pinCodeUpdateConfig.showPinCodeInfoTooltip)("additionalClasses",t.pinCodeUpdateConfig.additionalClasses),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",!t.pinCodeUpdateConfig.hidePinCodeNotModifiableMessage),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.isForceUpdatePinCode),i["ɵɵadvance"](3),i["ɵɵclassProp"]("invisible",t.shouldHideSubmitButton()),i["ɵɵadvance"](2),i["ɵɵproperty"]("disabled",t.processingCall),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("",t.getButtonTag(),"\n                "),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.isForceUpdatePinCode))},directives:[ge["ɵNgNoValidate"],ge.NgControlStatusGroup,ge.FormGroupDirective,r.NgClass,r.NgIf,Ce.b,ge.NgControlStatus,ge.FormControlName,Se.P,o.RouterLinkWithHref],styles:[".full-width-ctas[_ngcontent-%COMP%] {\n  margin-top: 15px; }\n\n[_nghost-%COMP%]     div.invalid-field {\n  display: table-cell;\n  height: 20px; }\n\n[_nghost-%COMP%]     .custom-field label.active-field {\n  padding: 15px 10px; }\n\n.pin-code-form[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%] {\n  width: auto;\n  margin-top: 30px; }\n\n.bodog88[_ngcontent-%COMP%]   .pin-code-form[_ngcontent-%COMP%] {\n  display: block;\n  align-items: center;\n  flex-direction: column; }\n\n.bodog88[_ngcontent-%COMP%]   .pin-code-form[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {\n    font-size: 12px;\n    line-height: 14px;\n    color: #2b2b2b;\n    width: 100%;\n    margin-top: 15px;\n    text-align: center; }\n\n.bodog88[_ngcontent-%COMP%]   .pin-code-form[_ngcontent-%COMP%]   span.label[_ngcontent-%COMP%] {\n    margin-top: 18px;\n    margin-bottom: 16px;\n    font-size: 14px;\n    font-weight: bold;\n    line-height: 16px;\n    width: 100%; }\n\n.bodog88[_ngcontent-%COMP%]   .pin-code-form[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%] {\n    width: auto;\n    margin-top: 30px; }\n\n.bodog88[_ngcontent-%COMP%]   .pin-code-form[_ngcontent-%COMP%]   p.align-left[_ngcontent-%COMP%] {\n    text-align: left;\n    margin-top: 0;\n    margin-bottom: 20px; }\n\n.bodog88[_ngcontent-%COMP%]   div.full-width-ctas[_ngcontent-%COMP%] {\n  margin-top: 16px; }\n\n.bodog88[_ngcontent-%COMP%]   div.full-width-ctas[_ngcontent-%COMP%]   button.custom-cta.primary.full-width-ctas[_ngcontent-%COMP%] {\n    font-size: 16px;\n    line-height: 19px;\n    padding-top: 11px;\n    padding-bottom: 6px;\n    margin: 0;\n    box-shadow: inset 0 -4px 0 0 #aa1207; }\n\n.bodog88[_ngcontent-%COMP%]   div.full-width-ctas[_ngcontent-%COMP%]   button.custom-cta.primary.full-width-ctas[disabled][_ngcontent-%COMP%] {\n    box-shadow: none;\n    color: white; }\n\n.bodog88[_ngcontent-%COMP%]   .invisible[_ngcontent-%COMP%] {\n  visibility: hidden; }"]});const Oe="pin-code-update";let Ae=(()=>{class e{constructor(e,t,n){this.cookieStorageService=e,this.loginService=t,this.router=n}init(){this.loginService.loginEvent.pipe((0,c.first)()).subscribe((()=>{this.cookieStorageService.get(e.COOKIE_NAME)&&this.router.navigate(["/",Oe])}))}}return e.COOKIE_NAME="cf_spc",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](me.G),i["ɵɵinject"](U.r6),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var ke=n(49379);function je(e,t){1&e&&(i["ɵɵelementStart"](0,"div",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"figure",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelement"](4,"i",3),i["ɵɵtext"](5,"\n                "),i["ɵɵelementStart"](6,"figcaption",4),i["ɵɵtext"](7,"previewNotification.message"),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n        "),i["ɵɵelementEnd"]())}let Ne=(()=>{class e{constructor(e,t,n){this.platformId=e,this.hostnameService=t,this.document=n,this.hasPreviewNotification=!1}ngOnInit(){if((0,r.isPlatformBrowser)(this.platformId)){const e=this.document.body,t="preview-notification",n=this.hostnameService.hostname;this.hasPreviewNotification=n.startsWith("preview"),this.hasPreviewNotification?e.classList.add(t):e.classList.remove(t)}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](ke.M),i["ɵɵdirectiveInject"](r.DOCUMENT))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-preview-notification"]],decls:3,vars:1,consts:[["class","preview-notification-bar",4,"ngIf"],[1,"preview-notification-bar"],["role","alert",1,"custom-notification","alert","info","high-contrast"],[1,"icon","icon-info"],[3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,je,10,0,"div",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.hasPreviewNotification))},directives:[r.NgIf,Se.P],styles:[".preview-notification-bar[_ngcontent-%COMP%] {\n  position: fixed;\n  z-index: 8;\n  background: gray;\n  width: 100%;\n  top: 0; }\n\n  .preview-indicator {\n  border: 1px dashed red;\n  border-left: 8px solid red; }"]}),e})();var Re=n(38945);let De=(()=>{class e{constructor(e,t,n,i,r,a,s,c,l,d,u,p,h,m,g){this.deviceProtectLoader=e,this.router=t,this.windowService=n,this.reactiveChatService=i,this.pinCodeUpdateLoginListener=r,this.profileStore=a,this.loyaltyStore=s,this.loyaltyFeatureFlagService=c,this.noDblClickService=l,this.siteLoadService=d,this.platformId=u,this.transferStateServiceCache=p,this.notificationsStore=h,this.notificationEnabledService=m,this.notificationsPopupManagementService=g,this.router.events.subscribe((e=>{e instanceof o.NavigationStart&&(this.clearFromUniversalIfNeeded(),this.windowService.setLocationUrl(e.url))})),this.reactiveChatService.sessionActive&&this.reactiveChatService.openExistingSession()}clearFromUniversalIfNeeded(){(0,r.isPlatformBrowser)(this.platformId)&&this.transferStateServiceCache.clearFromUniversal()}ngOnInit(){this.deviceProtectLoader&&this.deviceProtectLoader.init(),this.pinCodeUpdateLoginListener.init(),this.profileStore.init(),this.loyaltyFeatureFlagService.loyaltyEnabled()&&(0,r.isPlatformBrowser)(this.platformId)&&this.loyaltyStore.init(),this.notificationEnabledService.isNotificationEnabled()&&(0,r.isPlatformBrowser)(this.platformId)&&(this.notificationsStore.init(),this.notificationsPopupManagementService.init()),!(0,r.isPlatformBrowser)(this.platformId)||"ontouchstart"in document.documentElement||navigator.maxTouchPoints||navigator.msMaxTouchPoints||(document.body.className+=" no-touch"),(0,r.isPlatformBrowser)(this.platformId)&&this.noDblClickService.init()}ngAfterViewInit(){(0,r.isPlatformBrowser)(this.platformId)&&(this.siteLoadService.init(),setTimeout((()=>{let e=this.windowService.document().querySelectorAll("[data-placeholder]");for(let t=0,n=e.length;t<n;t++)e[t].parentNode.removeChild(e[t])}),0))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](z,8),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](ie.R),i["ɵɵdirectiveInject"](Ae),i["ɵɵdirectiveInject"](he.s),i["ɵɵdirectiveInject"](pe.K),i["ɵɵdirectiveInject"](ue.e),i["ɵɵdirectiveInject"](te),i["ɵɵdirectiveInject"](Z.W),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](re.m),i["ɵɵdirectiveInject"](le.p),i["ɵɵdirectiveInject"](ne.j),i["ɵɵdirectiveInject"](de))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-site"]],decls:7,vars:0,template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelement"](1,"bx-preview-notification"),i["ɵɵtext"](2,"\n        "),i["ɵɵelement"](3,"bx-toast-notification"),i["ɵɵtext"](4,"\n        "),i["ɵɵelement"](5,"router-outlet"),i["ɵɵtext"](6,"\n    "))},directives:[Ne,Re.f,o.RouterOutlet],styles:["[_nghost-%COMP%]     bx-cashier .cs-reduced-text {\n  font-size: 0.8em;\n}\n\n[_nghost-%COMP%]     bx-cashier .list-deposit-noftd {\n  margin-top: 0px;\n}\n\n[_nghost-%COMP%]     bx-cashier .cs-payment-details-table-title {\n  font-size: 1.4em;\n  display: block;\n  text-align: left;\n  font-weight: bold;\n  margin-bottom: 8px;\n  padding-left: 18px;\n}\n\n@media (min-width: 730px) {\n  [_nghost-%COMP%]     bx-cashier .cs-payment-details-table-title {\n    padding-left: 0px;\n  }\n}\n\n[_nghost-%COMP%]     bx-cashier .cs-highlight-text {\n  color: #FFF;\n  font-weight: bold;\n}\n\n[_nghost-%COMP%]     bx-cashier .cs-amount {\n  min-width: 160px;\n}\n\n[_nghost-%COMP%]     bx-cashier .reference-value {\n  border: none;\n  background: #404040;\n}\n\n[_nghost-%COMP%]     bx-cashier #additional-info.missing-info-msg {\n  color: #FFF;\n}\n\n[_nghost-%COMP%]     .bx-notification-container {\n  position: fixed;\n  top: 0px;\n  width: 100%;\n  overflow: hidden;\n}\n\n  img.ng-lazyloaded {\n  animation: fadeIn 200ms linear;\n  animation-play-state: running;\n}\n\n@keyframes fadeIn {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@media (max-width: 768px) {\n    .sticky-cta.non-scroll #MoxieFlyoutTab {\n    bottom: 0 !important;\n  }\n}\n\n  .preview-notification-bar {\n  padding: 10px;\n}\n\n  .preview-notification .navbar-fixed-top {\n  margin-top: 44px;\n}\n\n  .preview-notification .modal-overlay {\n  margin-top: 44px;\n}"]}),e})();var Le=n(15982),Fe=n(41109),Be=n(23550),Ue=n(99860),Ve=(n(13192),n(5711)),Ge=(n(45335),n(86594),n(95539)),He=n(63800),ze=n(4363),$e=n(73475),We=n(76460),qe=n(56159),Ke=n(2470);let Xe=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Ke.B]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Ye=n(89986),Je=n(47913),Qe=n(36211),Ze=n(14089),et=n(95556),tt=n(3442),nt=n(56647),it=n(99176),rt=n(99191),ot=n(56323),at=n(70025),st=n(54411),ct=n(69921),lt=n(63253),dt=n(80112),ut=n(27218);let pt=class extends at.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t}matcher(e){let t=lt(["fields","page_type"],e);return e.contentType===K.z.CONTENT_PAGE&&t===st.G.ARTICLE}createLink(e){let t=e.slugname||e.slug||lt(["fields","slug"],e),n=lt(["fields","uriSuffix"],e)||t;return n?`/${ct.J}/${n}`:""}};pt.ɵfac=function(e){return new(e||pt)(i["ɵɵinject"](dt.z),i["ɵɵinject"](ut.X))},pt.ɵprov=i["ɵɵdefineInjectable"]({token:pt,factory:pt.ɵfac}),pt=(0,a.__decorate)([(0,at.ST)(),(0,a.__metadata)("design:paramtypes",[dt.z,ut.X])],pt);var ht=n(98465),mt=n(52036),gt=n(10749);let ft=(()=>{class e{constructor(){this.playOverlay=!0,this.imgGame=!1,this.newGame=!1,this.gamePrice=!1,this.quickPlayEnabled=!1,this.removeRealPracticeOverlay=!1,this.thumbnailColor="",this.defaultImageColor=""}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),vt=(()=>{class e{constructor(){this.realCtaClass="",this.practiceCtaClass="",this.stickyRealCtaClass="",this.stickyPracticeCtaClass=""}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var bt=n(84704),yt=n(93996),Ct=n(51576),St=n(61556),xt=n(36873),wt=n(70570),Et=n(22291),It=n(73502),Pt=n(78357);let Tt=(()=>{class e{constructor(e,t){this.router=e,this.windowService=t,this.document=this.windowService.document(),this.documentElement=this.document.documentElement,this.fullScreenChange=(0,s.merge)((0,s.fromEvent)(this.document,"fullscreenchange"),(0,s.fromEvent)(this.document,"webkitfullscreenchange"),(0,s.fromEvent)(this.document,"mozfullscreenchange"),(0,s.fromEvent)(this.document,"MSFullscreenChange")),this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationStart))).subscribe((e=>this.exitFullScreen()))}get isSupported(){return!!["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"].find((e=>!!this.document[e]))}get isFullScreen(){return!!["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find((e=>!!this.document[e]))}goFullScreen(e=this.documentElement){if(this.isSupported){const t=["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"].find((t=>!!e[t]));e[t]()}}exitFullScreen(){if(this.isFullScreen){const e=["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"].find((e=>!!this.document[e]));this.document[e]()}}toggleFullScreen(e=this.documentElement){this.isFullScreen?this.exitFullScreen():this.goFullScreen(e)}getFullScreenChange(){return this.fullScreenChange.pipe((0,c.map)((()=>this.isFullScreen)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](ee.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),_t=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Tt]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[]}),e})();var Mt=n(40821);class Ot{constructor(e,t,n){if(this.captureGroups=t,this.isLoggedIn=n,this.hasGroupCapture=e=>"#"===e.charAt(0),this.getRegexGroupNumber=e=>+e.substring(e.lastIndexOf("#")+1,e.lastIndexOf(":")),this.captureGroups&&this.hasGroupCapture(e)){const t=this.getRegexGroupNumber(e),n=this.captureGroups[t];this.eventName=e.replace(`#${t}`,n)}else this.eventName=e}getEventName(){return this.eventName}getLoggedRestriction(){return this.isLoggedIn}}let At=(()=>{class e{constructor(e,t,n){this.router=e,this.analyticsService=t,this.sessionService=n,this.matchingRulesMap={},this.findUrlMatchResultByUrl=e=>{let t=[];const n=Object.entries(this.matchingRulesMap).findIndex((n=>(t=n[1].regex.exec(decodeURIComponent(e)),t&&t.length>0)));return n>-1?new Ot(Object.entries(this.matchingRulesMap)[n][0],t,Object.entries(this.matchingRulesMap)[n][1].isLoggedIn):void 0},this.compliesWithLoggedRestriction=e=>void 0===e||this.sessionService.isAuthenticated()===e,this.isEventNameRegistered=e=>{const t=this.findUrlMatchRuleByName(e);return!!t&&this.compliesWithLoggedRestriction(t.isLoggedIn)},this.findUrlMatchRuleByName=e=>{let t=Object.entries(this.matchingRulesMap).find((t=>this.compareByStaticEventName(t[0],e)));return t?t.pop():void 0},this.compareByStaticEventName=(e,t)=>e.split(":")[1]===t.split(":")[1]}init(e){this.matchingRulesMap=e,this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationStart))).subscribe((e=>{const t=this.findUrlMatchResultByUrl(e.url);t&&this.compliesWithLoggedRestriction(t.getLoggedRestriction())&&this.analyticsService.setStartNavigationVariables(e.url,t.getEventName())}))}trackComponentLoad(e){this.isEventNameRegistered(e)&&this.analyticsService.trackComponentLoad(e,!0,void 0)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](oe.y),i["ɵɵinject"](et.mj))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var kt=n(36575);let jt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[At],imports:[[et.ny,kt.I]]}),e})();var Nt=n(64417);let Rt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[te],imports:[[et.ny,jt,St.d,bt.a,yt.M,Ct.d,r.CommonModule,xt.U8,o.RouterModule,Et.$Q,Pt.x,_t,Mt.o,wt.k,It.D,Nt.L]]}),e})();var Dt=n(16462),Lt=n(22274),Ft=n(43431),Bt=n(30173),Ut=n(36957),Vt=n(50371),Gt=n(48108),Ht=n(26626),zt=n(92920),$t=n(49765);class Wt{}class qt{}class Kt{constructor(){this.active=!1,this.hasSubTab=!1}}class Xt{}class Yt{constructor(){this.active=!1}}var Jt=n(33564);let Qt=(()=>{class e{constructor(e,t,n){this.deviceService=e,this.urlPrefixService=t,this.trackingService=n}mapGame(e){let t=new Wt,n=this.getContentField(e,"card_image");t.cardImage=n&&n.url,t.cardImageAltText=n&&n.alt,t.name=this.getContentField(e,"title"),t.id=this.mapGameId(this.getContentField(e,"game_id")),t.notInFilter=this.mapNotInFilters(this.getContentField(e,"game_id")),t.draft="draft"===e.status,t.slug=this.getUriSuffix(e),t.customBadge=this.getContentField(e,"custom_badge");let i=this.getContentField(e,"category");"string"==typeof i?t.category=i:i&&(t.category=i.slug||"",t.categoryName=i.name||"");let r=this.getContentField(e,"subcategory");return"string"==typeof r?t.subCategory=r:r&&(t.subCategory=r.slug||"",t.subCategoryName=r.name||""),t}mapGameDetail(e){const t=new Wt,n=this.getContentField(e,"page_image");return t.pageImage=this.urlPrefixService.addUrlPrefix(n&&n.url),t.pageImageAltText=n&&n.alt,t.shortDescription=this.getContentField(e,"short_description"),t.longDescription=this.getContentField(e,"long_description"),t.tags=this.getContentField(e,"tags"),t.draft="draft"===e.status,t.metafields=e.fields.metafields,t}mergeGame(e,t){let n=new Wt;return n.name=e.name,n.cardImage=e.cardImage,n.cardImageAltText=e.cardImageAltText,n.slug=e.slug,n.category=e.category,n.categoryName=e.categoryName,n.subCategory=e.subCategory,n.subCategoryName=e.subCategoryName,n.id=e.id,n.notInFilter=e.notInFilter,n.shortDescription=t.shortDescription,n.longDescription=t.longDescription,n.pageImage=t.pageImage,n.pageImageAltText=t.pageImageAltText,n.tags=t.tags,n.draft=e.draft,n}mapCategories(e){return e.fields&&e.fields.items}mapCategory(e){let t=new qt;t.name=this.getContentField(e,"menuItemLabel"),t.title=this.getContentField(e,"title"),t.slug=this.getUriSuffix(e),t.status=e.status,t.automatedNumberOfItems=e.automatedNumberOfItems,t.hasPersonalizedContent=this.getContentField(e,"personalized"),t.automatedTracking=this.trackingService.getAutomatedTracking(e),t.internalName=this.getContentField(e,"internal_name");const n=parseInt(e.automatedNumberOfItems);return t.isAutomated=!isNaN(n),t}mapTab(e){let t=new Kt;return t.name=e.name,t.title=e.title,t.active=!1,t.hasSubTab=e.subCategories&&e.subCategories.length>0,t.slug=e.slug,t.draft="draft"===e.status,t}mapSubTab(e){let t=new Yt;return t.name=e.name,t.title=e.title,t.active=!1,t.slug=e.slug,t.draft="draft"===e.status,t}mapSubCategoryList(e){return this.getContentField(e,"items").filter((e=>"custom_menu"===e.contentType))}mapSubCategory(e){let t=new Xt;t.name=this.getContentField(e,"menuItemLabel"),t.title=this.getContentField(e,"title"),t.slug=e&&e.slug,t.slugname=this.getContentField(e,"slugname"),t.status=e.status,t.automatedNumberOfItems=e.automatedNumberOfItems,t.hasPersonalizedContent=this.getContentField(e,"personalized"),t.automatedTracking=this.trackingService.getAutomatedTracking(e),t.internalName=this.getContentField(e,"internal_name");const n=parseInt(t.automatedNumberOfItems);return t.isAutomated=!isNaN(n),t}mapGameList(e){return e||[]}mapGamesFromCategory(e){return this.getContentField(e,"items").map((e=>e.slug||e))}mapGameCategoryFullTreeAsEmpty(e,t){let n=this.mapCategory(e);return n.slug=this.getContentField(e,"slugname"),n.games=this.mapChildGamesAsEmpty(t),n.subCategories=[],n}mapGameCategoryFullTree(e){let t=this.mapCategory(e),n=this.mapSubCategoryList(e);if(0===n.length){let n=this.mapChildGames(e);t.games=n,t.subCategories=[]}else{let e=n.map((e=>{let t,n=this.mapSubCategory(e);return t=n.hasPersonalizedContent?this.mapChildGamesAsEmpty(parseInt(e.automatedNumberOfItems)):this.mapChildGames(e),n.games=t,n}));t.subCategories=e}return t}mapChildGames(e){return this.getContentField(e,"items").map((e=>this.mapGame(e))).filter((e=>!!e.id))}mapChildGamesAsEmpty(e){let t=new Wt;return t.id=1,new Array(e).fill(t)}getUriSuffix(e){let t=e.slug||lt(["fields","slug"],e);return lt(["fields","uriSuffix"],e)||t}getContentField(e,t){return e&&e.fields&&e.fields[t]}mapGameId(e){let t=this.filterGameId(e);return t?t.id:null}filterGameId(e){let t=this.deviceService.isDesktop()?"desktop":"mobile_tablet";return e&&e.find((e=>e.channelList&&e.channelList.includes(t)))}mapNotInFilters(e){let t={},n=this.filterGameId(e);return n&&n.filter&&n.filter.notIn&&(t.countrySubdivision=this.getCountrySubdivision(n.filter.notIn.countrySubdivision)),t}getCountrySubdivision(e){let t=[];return Object.keys(e).map((n=>{t=t.concat(this.generateSubdivisionId(n,e[n]))})),t}generateSubdivisionId(e,t){const n=e.split("/")[1];return t.map((e=>`${n}:${e.split(":")[1]}`))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Bt.U),i["ɵɵinject"](dt.z),i["ɵɵinject"](Jt.e))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Zt=(()=>{class e{constructor(e,t){this.deviceService=e,this.urlPrefixService=t}mapGame(e){let t=new Wt;t.name=e.fields.title.value,t.cardImage=e.fields.cardImage.value,t.id=this.mapGameId(e.fields),t.slug=e.slug,t.category=e.category,t.newGame=e.fields.newGame?e.fields.newGame.value:null,t.gamePrice=e.fields.gamePrice?e.fields.gamePrice.value:null;let n=e.fields.subcategory;return"string"==typeof n?t.subCategory=n:n&&(t.subCategory=n.slug||"",t.subCategoryName=n.name||""),t}mapGameDetail(e){let t=new Wt;return t.shortDescription=e.fields.shortDescription.value,t.longDescription=e.fields.longDescription.value,t.pageImage=this.urlPrefixService.addUrlPrefix(e.fields.pageImage.value),t}mergeGame(e,t){let n=new Wt;return n.name=e.name,n.cardImage=e.cardImage,n.slug=e.slug,n.id=e.id,n.category=e.category,n.subCategory=e.subCategory,n.subCategoryName=e.subCategoryName,n.shortDescription=t.shortDescription,n.longDescription=t.longDescription,n.pageImage=t.pageImage,n}mapCategories(e){return e.value||[]}mapCategory(e){let t=new qt;return t.name=e.fields.name.value,t.title=e.fields.title?e.fields.title.value:"",t.id=e.fields.id.value,t.slug=e.slug,t.status=e.status,t}mapTab(e){let t=new Kt;return t.name=e.name,t.title=e.title,t.active=!1,t.hasSubTab=e.subCategories&&e.subCategories.length>0,t.slug=e.slug,t.draft="draft"===e.status,t}mapSubTab(e){let t=new Yt;return t.name=e.name,t.title=e.title,t.active=!1,t.slug=e.slug,t.draft="draft"===e.status,t}mapSubCategoryList(e){return e.fields&&e.fields.subCategories&&e.fields.subCategories.value||[]}mapSubCategory(e){let t=new Xt;return t.id=e.fields.id.value,t.name=e.fields.name.value,t.title=e.fields.title?e.fields.title.value:"",t.slug=e.slug,t.status=e.status,t}mapGameList(e){return e.value}mapGamesFromCategory(e){return e.fields.games.value}mapGameId(e){let t=this.deviceService.isDesktop()?e.gameIdDesktop:e.gameIdMobile;return t?t.value:null}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Bt.U),i["ɵɵinject"](dt.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class en{}var tn=n(55640);class nn{constructor(e,t){this.id=e,this.count=t}}const rn=[516,517,518,519,520,521,522,523];let on=(()=>{class e{constructor(e){this.browserStorageService=e,this.mostPlayedChanged=new s.Subject}getAll(){return this.parseGamesMostPlayed().filter((e=>!this.isViGLiveDealerGame(e.id)))}setPlayed(t){if(this.isViGLiveDealerGame(t))return;let n=this.getAll();const i=n.filter((e=>e.id===t))[0];i?(i.count++,n.sort(((e,t)=>t.count-e.count))):n.push(new nn(t,0)),this.browserStorageService.set(e.MOST_PLAYED_SLUG,JSON.stringify(n)),this.sendMostPlayedEvent(t)}parseGamesMostPlayed(){return JSON.parse(this.browserStorageService.get(e.MOST_PLAYED_SLUG))||[]}isViGLiveDealerGame(e){return rn.includes(e)}sendMostPlayedEvent(e){this.mostPlayedChanged.next(e)}getMostPlayedEvent(){return this.mostPlayedChanged.asObservable()}}return e.MOST_PLAYED_SLUG="most-played",e.MOST_PLAYED_NAME="gamecardlist.mostPlayed",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](tn.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class an{constructor(e,t,n,i,r,o,a,s,c,l){this.currencyCode=e,this.mode=t,this.language=n,this.channelType=i,this.homeUrl=r,this.cashierUrl=o,this.loginUrl=a,this.signupUrl=s,this.subdomain=c,this.integrationParams=l}toParams(){let e={currencyCode:this.currencyCode,mode:this.mode,language:this.language,channelType:this.channelType,homeUrl:this.homeUrl,cashierUrl:this.cashierUrl,loginUrl:this.loginUrl,signupUrl:this.signupUrl};return this.integrationParams&&(e.integrationParams=this.integrationParams),this.subdomain&&(e.subdomain=this.subdomain),new Be.HttpParams({fromObject:e})}}const sn="gamecardlist.lastPlayed";class cn{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m,g,f,v,b,y,C){this.http=e,this.router=t,this.locationStrategy=n,this.windowService=i,this.sessionService=r,this.deviceService=o,this.channelTypeService=a,this.gamecardMapper=s,this.gamecardCmsMapper=c,this.languageService=l,this.contentService=d,this.cmsFeatureFlagService=u,this.gameMostPlayedService=p,this.profileService=h,this.routesToolsService=m,this.siteConfigService=g,this.hostnameService=f,this.global=v,this.linkTrackService=b,this.gameUrlService=y,this.platformId=C,this.casinoConfigProp="casino",this.allGamesCache={},this.allGamesCategoriesCache={},this.allGamesCarouselCache={},this.gameDetailsCache={},this.gameCacheUrl=new Map,this.casinoServiceUrl="/services/casino/casino-lobby-services",this.recentGamesUrl=`${this.casinoServiceUrl}/recentgames`,this.playUrl=e=>`${this.casinoServiceUrl}/games/${e}/url`,this.languageService.getLanguage().subscribe((e=>this.language=e)),this.cmsFeatureFlagService.isSectionEnabled(cn.SECTION)?this.mapper=this.gamecardCmsMapper:(this.gameCategoriesJSON=this.global.nativeGlobal.gameCategories,this.allGamesJSON=this.global.nativeGlobal.allGames,this.mapper=this.gamecardMapper),this.listenContentFromCasinoLinks(),this.sessionService.sessionObserver.subscribe((e=>{this.currencyCached&&!e.isAuthenticated&&(this.currencyCached=void 0)}))}getGame(e){return(0,s.forkJoin)([this.getGameCard(e),this.getGameDetail(e)]).pipe((0,c.map)((e=>this.mapper.mergeGame(e[0],e[1]))))}getGameCategories(){let e={};return this.gameCategoriesJSON&&!zt(this.gameCategoriesJSON)?this.allGamesCategoriesCache[this.language]=this.getGameCategoriesByJSON(this.gameCategoriesJSON).pipe((0,c.publishReplay)(1),(0,c.refCount)()):(this.cmsFeatureFlagService.isSectionEnabled(cn.SECTION)&&(e.filter=cn.CMS_CATEGORY_FILTER),this.allGamesCategoriesCache[this.language]||(this.allGamesCategoriesCache[this.language]=this.getGameCategoriesByUrl("game-categories",e).pipe((0,c.publishReplay)(1),(0,c.refCount)()))),this.allGamesCategoriesCache[this.language]}getGameCarousel(e){this.allGamesCarouselCache[this.language]=this.getGameCategoriesByJSON(e,this.gamecardMapper).pipe((0,c.publishReplay)(1),(0,c.refCount)());const t=this.getGameMostPlayed(),n=this.getGameLastPlayed();return(0,s.forkJoin)(this.allGamesCarouselCache[this.language],t,n).pipe((0,c.map)((e=>[...e[0],e[1],e[2]])))}getGameUrl(e,t,n,i){const r=`${e}|${n}|practice`;return"practice"===i&&this.gameCacheUrl.has(r)?(0,s.of)(this.gameCacheUrl.get(r)):this.getPlayerCurrency().pipe((0,c.mergeMap)((o=>{let a={params:this.getGameUrlParams(e,t,n,i,o),withCredentials:"real"===i,headers:new Be.HttpHeaders};return"real"===i&&(a.headers=a.headers.set("X-SessionId",this.sessionService.session)),(0,s.defer)((()=>this.getGameCard(n).pipe((0,c.map)((e=>e.id))))).pipe((0,c.mergeMap)((e=>this.http.get(this.playUrl(e),a).pipe((0,c.map)((e=>{const t=e.url;return"practice"===i&&(this.gameCacheUrl.clear(),this.gameCacheUrl.set(r,t)),t})),(0,c.catchError)((e=>(0,s.throwError)(e)))))))})))}getGameList(e){return(0,s.from)(e).pipe((0,c.mergeMap)((e=>this.getGameCard(e).pipe((0,c.filter)((e=>!!e&&!!e.id)),(0,c.catchError)((e=>(0,s.throwError)(e)))))),(0,c.toArray)())}getGameCard(e){return e=this.routesToolsService.getPath(e),this.getAllGames().pipe((0,c.map)((t=>t.filter((t=>t.slug===e))[0])))}mapGameDetails(e){return this.mapper.mapGameDetail(e)}getGameCardById(e){return this.getAllGames().pipe((0,c.map)((t=>t.filter((t=>+t.id===e))[0])))}getGameDetail(e){let t=e=this.routesToolsService.getPath(e),n="";return this.cmsFeatureFlagService.isSectionEnabled(cn.SECTION)?n=cn.CMS_GAME_CONTENT_TYPE:t=`casino/${t}`,this.gameDetailsCache[t]||(this.gameDetailsCache[t]=this.contentService.getContentByUriSuffix(t,cn.SECTION,n).pipe((0,c.take)(1),(0,c.map)((e=>this.mapper.mapGameDetail(e))))),this.gameDetailsCache[t]}getGameMostPlayed(){let e=this.gameMostPlayedService.getAll(),t=new qt;return t.name=on.MOST_PLAYED_NAME,t.slug=on.MOST_PLAYED_SLUG,this.sessionService.isAuthenticated()?(0,s.of)(e).pipe((0,c.switchMap)((e=>(0,s.from)(e).pipe((0,c.concatMap)((e=>this.getGameCardById(e.id))),(0,c.filter)((e=>e&&null!==e.id)),(0,c.toArray)(),(0,c.map)((e=>(t.games=e,t)))))),(0,c.catchError)((()=>this.emptyGameCategories(t)))):this.emptyGameCategories(t)}getGameLastPlayedFlags(){return this.sessionService.isAuthenticated()?this.getLastPlayedFromCasino().pipe((0,c.switchMap)((e=>zt(e)?this.getCategoryFlagsForLastPlayed():this.getCategoryFlagsForLastPlayed({hasGames:!0}))),(0,c.catchError)((()=>this.getCategoryFlagsForLastPlayed()))):this.getCategoryFlagsForLastPlayed()}getGameMostPlayedFlags(){if(this.sessionService.isAuthenticated())try{return zt(this.gameMostPlayedService.getAll())?this.getCategoryFlagsForMostPlayed():this.getCategoryFlagsForMostPlayed({hasGames:!0})}catch(e){return this.getCategoryFlagsForMostPlayed()}return this.getCategoryFlagsForMostPlayed()}getCategoryFlagsForLastPlayed({hasGames:e}={hasGames:!1}){return(0,s.of)(this.getDefaultCategoryFlagsForLastPlayed({hasGames:e}))}getDefaultCategoryFlagsForLastPlayed({hasGames:e}={hasGames:!1}){let t=new en;return t.name=sn,t.hasGames=e,t}getCategoryFlagsForMostPlayed({hasGames:e}={hasGames:!1}){return(0,s.of)(this.getDefaultCategoryFlagsForMostPlayed({hasGames:e}))}getDefaultCategoryFlagsForMostPlayed({hasGames:e}={hasGames:!1}){let t=new en;return t.name=on.MOST_PLAYED_NAME,t.hasGames=e,t}getGameLastPlayed(){let e=new qt;return e.name=sn,e.slug="last-played",this.sessionService.isAuthenticated()?this.getLastPlayedFromCasino().pipe((0,c.switchMap)((t=>(0,s.from)(t).pipe((0,c.concatMap)((e=>this.getGameCardById(e.gameId))),(0,c.filter)((e=>e&&null!==e.id)),(0,c.toArray)(),(0,c.map)((t=>(e.games=t,e)))))),(0,c.catchError)((()=>this.emptyGameCategories(e)))):this.emptyGameCategories(e)}getLastPlayedFromCasino(){let e={headers:new Be.HttpHeaders({"X-SessionId":this.sessionService.session}),withCredentials:!0};return this.http.get(this.recentGamesUrl,e)}emptyGameCategories(e){return e.games=[],(0,s.of)(e)}getGameCategoriesByUrl(e,t){return this.contentService.getContentBySlug(e,cn.SECTION,t).pipe((0,c.take)(1),(0,c.concatMap)((e=>(0,s.from)(this.mapper.mapCategories(e)))),(0,c.concatMap)((e=>this.buildGameCategory(e))),(0,c.toArray)())}getGameCategoriesByJSON(e,t){return t=t||this.mapper,(0,s.from)(t.mapCategories(e)).pipe((0,c.concatMap)((e=>this.buildGameCategory(e,t))),(0,c.toArray)())}buildGameCategory(e,t){let n=(t=t||this.mapper).mapCategory(e),i=t.mapSubCategoryList(e);return zt(i)?this.getAllGameCards(t.mapGamesFromCategory(e)).pipe((0,c.map)((e=>(n.games=e.map((e=>(e.category=e.category||n.slug,e))),n)))):(0,s.from)(i).pipe((0,c.concatMap)((e=>{let n;return n=t.mapSubCategory(e),this.getAllGameCards(t.mapGamesFromCategory(e)).pipe((0,c.map)((t=>(n.games=t.map((t=>(t.category=t.category||e.slug,t))),n))))})),(0,c.toArray)(),(0,c.map)((e=>(n.subCategories=e,n))))}getAllGameCards(e){return this.getAllGames().pipe((0,c.map)((t=>t.filter((t=>!!(t&&t.id&&e.includes(t.slug)))).sort(((t,n)=>e.indexOf(t.slug)>e.indexOf(n.slug)?1:-1)))))}getGameUrlParams(e,t,n,i,o){let a,s,c,l=this.channelTypeService.getChannelType(),d=this.deviceService.getDeviceType(),u="";const p=this.siteConfigService.getSiteConfigProp("urlPrefix"),h=(p?`/${p}`:"")+"/account/cashier/deposit";if("desktop"!==d){n=$t("#practice","",n);let i=this.getMultilingualRouterUrl(this.gameUrlService.getPathList(e,n,t),{fragment:"real"}),o=encodeURIComponent(i);const l="destination="+o;a=(0,r.isPlatformBrowser)(this.platformId)?this.windowService.location().origin:"",s=`${a}${this.getMultilingualRouterUrl([h])}?${l}`,c=`${a}${o}`,u=`${a}${this.getMultilingualRouterUrl(["/join"])}`}let m=this.siteConfigService.getSiteConfigProp(this.casinoConfigProp);const g=this.siteConfigService.getSiteConfigProp("brandCode"),f=this.siteConfigService.getSiteConfigProp("territory")||"DEFAULT",v=`https://${this.hostnameService.hostname}`,b=`${v}${h}`,y="live-dealer"===e?`${v}/${this.casinoConfigProp}/${e}`:`${v}/${this.casinoConfigProp}`,C=`https://${this.siteConfigService.getSiteConfigProp(this.casinoConfigProp).gameSubdomain}.${(0,r.isPlatformBrowser)(this.platformId)?this.windowService.getHostnameWithoutWWW():""}`,S=JSON.stringify({brandCode:g,territory:f,hostOrigin:v,cashierUrl:b,homeUrl:y,minigames:this.siteConfigService.hasFeature("casino.live-dealer.minigames.enabled"),miniGamesHostOrigin:C,apmUrl:this.siteConfigService.getSiteConfigProp("apmUri")||""});return new an(o,i,this.language,l,a,s,c,u,m.gameSubdomain,S).toParams()}getMultilingualRouterUrl(e,t){const n=this.router.createUrlTree(e,t);return this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(n))}getAllGames(){return this.allGamesCache[this.language]||(this.allGamesCache[this.language]=(0,s.defer)((()=>{let e="games",t="",n={};return this.allGamesJSON&&!zt(this.allGamesJSON)?(0,s.of)(this.mapper.mapGameList(this.allGamesJSON).map((e=>this.mapper.mapGame(e)))):(this.cmsFeatureFlagService.isSectionEnabled(cn.SECTION)&&(e="",t=cn.CMS_GAME_CONTENT_TYPE,n.filter=cn.CMS_GAME_FILTER),this.contentService.getContentByType(t,cn.SECTION,n,e).pipe((0,c.map)((e=>this.mapper.mapGameList(e).map((e=>this.mapper.mapGame(e)))))))})).pipe((0,c.publishReplay)(1,cn.ALL_GAMES_CACHE_TTL),(0,c.refCount)(),(0,c.take)(1),(0,c.map)((e=>{if(e instanceof Error)throw e;return e})))),this.allGamesCache[this.language]}getGamesByCategories(e){return this.getGameCategoriesBySlug(e).pipe((0,c.concatMap)((e=>(0,s.from)(e))),(0,c.filter)((e=>"all-games"!==e.slug)),(0,c.reduce)(((e,t)=>[...e,...t.games||this.flattenGames(t.subCategories)]),[]),(0,c.map)((e=>e.filter(((e,t,n)=>n.findIndex((t=>t.id===e.id))===t)))))}flattenGames(e){let t=[];return e&&e.forEach((e=>{e.games&&e.games.forEach((e=>{t.find((t=>t.name===e.name))||t.push(e)}))})),t}getGameCategoriesBySlug(e){return this.contentService.getContentBySlug(e,cn.SECTION,{}).pipe((0,c.take)(1),(0,c.concatMap)((e=>(0,s.from)(this.mapper.mapCategories(e)))),(0,c.concatMap)((e=>this.buildGameCategory(e))),(0,c.toArray)())}getPlayerCurrency(){if(this.currencyCached)return(0,s.of)(this.currencyCached);{const e=this.siteConfigService.getSiteConfigProp("defaultCurrency");return this.profileService.getProfileDetailsPlayer().pipe((0,c.map)((e=>{if(!e.attributes.currency)throw"no currency";return this.currencyCached=e.attributes.currency,this.currencyCached})),(0,c.catchError)((()=>(0,s.empty)())),(0,c.defaultIfEmpty)(e||cn.DEFAULT_CURRENCY))}}listenContentFromCasinoLinks(){this.gameLinkCmsContent$=this.contentService.events.pipe((0,c.filter)((e=>{const t=lt(["fields","game_id"])(e),n=t&&t[0]&&t[0].id;return Boolean(n)})),(0,c.switchMap)((e=>(0,s.of)(this.linkTrackService.getLinkClicked()&&e))),(0,c.shareReplay)(1)),this.gameLinkCmsContent$.subscribe()}get gameLinkCmsContentEvents(){return this.gameLinkCmsContent$}}cn.ALL_GAMES_CACHE_TTL=Number.POSITIVE_INFINITY,cn.DEFAULT_CURRENCY="USD",cn.SECTION="games",cn.CMS_GAME_FILTER="game",cn.CMS_CATEGORY_FILTER="gameslug",cn.CMS_GAME_CONTENT_TYPE="casino_game_page",cn.ɵfac=function(e){return new(e||cn)(i["ɵɵinject"](Be.HttpClient),i["ɵɵinject"](o.Router),i["ɵɵinject"](r.LocationStrategy),i["ɵɵinject"](ee.u),i["ɵɵinject"](et.mj),i["ɵɵinject"](Bt.U),i["ɵɵinject"](Lt.x),i["ɵɵinject"](Zt),i["ɵɵinject"](Qt),i["ɵɵinject"](Gt.T),i["ɵɵinject"](Dt._),i["ɵɵinject"](Ft.u),i["ɵɵinject"](on),i["ɵɵinject"](be.H),i["ɵɵinject"](Ut.T),i["ɵɵinject"](G.r),i["ɵɵinject"](ke.M),i["ɵɵinject"](Vt.w),i["ɵɵinject"](Ht.j),i["ɵɵinject"](ut.X),i["ɵɵinject"](i.PLATFORM_ID))},cn.ɵprov=i["ɵɵdefineInjectable"]({token:cn,factory:cn.ɵfac});let ln=(()=>{class e{constructor(){this.imageType="small",this.showDropdown=!0,this.showArrowMenu=!1,this.applyMaxContainer=!0,this.hideAndWrappComponent=!1,this.customCarousel=!1,this.scrollToTab=!0,this.showSubcategoryTitle=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var dn=n(90388);let un=(()=>{class e{constructor(e,t){this.gameService=e,this.contentNotFoundHandler=t}resolve(e,t){let n=e.params.slug;return this.gameService.getGame(n).pipe((0,c.catchError)((e=>this.contentNotFoundHandler.resolveContentNotFoundOrThrow(e))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](cn),i["ɵɵinject"](dn.B))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),pn=(()=>{class e{constructor(e,t,n){this.gamecardService=e,this.contentNotFoundHandler=t,this.cmsFeatureFlagService=n}resolve(e){if(this.cmsFeatureFlagService.isFeatureEnabled(Ft.u.CASINO_UNIQUE_PAGES_FF))return!1;let t=e.params.subcategory||e.params.category;return this.gamecardService.getGameCategories().subscribe((e=>{0===e.filter((e=>e.slug===t)).length&&this.contentNotFoundHandler.navigateToNotFoundPage()})),!1}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](cn),i["ɵɵinject"](dn.B),i["ɵɵinject"](Ft.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),hn=class extends at.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t}matcher(e){return e.contentType===K.z.CASINO_GAME_PAGE}createLink(e){let t=lt(["fields","category","slug"],e)||"",n=lt(["fields","subcategory","slug"],e)||"",i=this.getUriSuffix(e);return this.gameUrlService.getUrl(t,i,n)}getUriSuffix(e){let t=e.slugname||e.slug||lt(["fields","slug"],e);return lt(["fields","uriSuffix"],e)||t}};hn.ɵfac=function(e){return new(e||hn)(i["ɵɵinject"](dt.z),i["ɵɵinject"](ut.X))},hn.ɵprov=i["ɵɵdefineInjectable"]({token:hn,factory:hn.ɵfac}),hn=(0,a.__decorate)([(0,at.ST)(),(0,a.__metadata)("design:paramtypes",[dt.z,ut.X])],hn);let mn=(()=>{class e{constructor(e,t,n){this.gameService=e,this.gameUrlService=t,this.router=n}canActivate(e){const t=e.params.gameId;return this.getGameCategoryAndSlug(+t)}getGameCategoryAndSlug(e){return this.gameService.getGameCardById(e).pipe((0,c.map)((e=>(e&&this.router.navigate(this.gameUrlService.getPathList(e.category,e.slug,e.subCategory)),!1))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](cn),i["ɵɵinject"](ut.X),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var gn=n(49994),fn=n(86789);const vn=(0,c.map)((e=>1e3*+e)),bn=(0,c.map)((e=>{const t=(+e*(+e>=1e6?1e-6:.001)).toFixed(2);return{amount:+e,amountDisplay:+e>=1e3?+t:1e3*+t}})),yn=(0,c.map)((e=>({amount:+e,amountDisplay:+(+e>1e6?(+e/1e6).toFixed(2):Math.floor(+e/1e3).toString())})));let Cn=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h){this.http=e,this.profileService=t,this.siteConfigService=n,this.cookieStorageService=i,this.sessionService=r,this.languageService=o,this.channelTypeService=a,this.toastNotificationService=s,this.translateService=c,this.router=l,this.deviceService=d,this.windowService=u,this.currencyService=p,this.platformId=h,this.jackpotPollingCache={},this.freeGamesPollingCache={},this.casinoServiceUrl="/services/casino/casino-lobby-services/v1",this.jackpotUrl=`${this.casinoServiceUrl}/jackpots`,this.freeGamesUrl=`${this.casinoServiceUrl}/offers/games`,this.gamesUrl=`${this.casinoServiceUrl}/games`,this.sessionService.sessionObserver.subscribe((()=>{this.freeGamesSubscription&&(this.freeGamesSubscription.unsubscribe(),this.freeGamesSubscription=null,this.getFreeGamesList()),this.jackpotSubscription&&(this.currencyCached=this.currencyService.getDefaultCurrencyCode(),this.jackpotSubscription.unsubscribe(),this.jackpotSubscription=null,this.getJackpotList())}))}isFreeGamesEnabled(){return(this.siteConfigService.hasFeature(e.FREE_GAMES_FEATURE)||"true"===this.cookieStorageService.get(e.FREEGAMESENABLE_COOKIE))&&(0,r.isPlatformBrowser)(this.platformId)}isJackpotEnabled(){return this.siteConfigService.hasFeature(e.CASINO_JACKPOT_FEATURE)&&(0,r.isPlatformBrowser)(this.platformId)}getJackpotAmount(e){return this.getJackpotList(),this.jackpotPollingCache[e]||(this.jackpotPollingCache[e]=new s.BehaviorSubject(null)),this.jackpotPollingCache[e]}hasFreeGames(e){return this.getFreeGamesList(),this.freeGamesPollingCache[e]||(this.freeGamesPollingCache[e]=new s.BehaviorSubject(null)),this.freeGamesPollingCache[e]}getGameUrl(e){return this.getGenericParams().pipe((0,c.mergeMap)((t=>(t.mode=this.sessionService.isAuthenticated()?"real":"practice",this.http.get(`${this.gamesUrl}/${e}/url`,{params:t}).pipe((0,c.map)((e=>e.url)))))))}resolveCurrencyNotSupported(){return this.resolveCasinoGameError("gamecardplay.currency.notsupported.error")}resolveCasinoGameUnexpectedError(){return this.resolveCasinoGameError("gamecardplay.unexpected.error")}getPlayerCurrency(){return this.currencyCached?(0,s.of)(this.currencyCached):this.profileService.getProfileDetailsPlayer().pipe((0,c.map)((e=>(this.currencyCached=e.attributes.currency,this.currencyCached))),(0,c.catchError)((()=>(0,s.empty)())),(0,c.defaultIfEmpty)(this.currencyService.getDefaultCurrencyCode()))}resolveCasinoGameError(e){return this.translateService.translate(e).subscribe((e=>{this.toastNotificationService.add({msg:e,type:"error",timeout:5e3,showClose:!0})})),this.deviceService.isDesktop()?this.windowService.window().history.back():this.router.navigateByUrl("/casino"),(0,s.empty)()}getGenericParams(){const e=this.languageService.getLanguage(),t=this.getPlayerCurrency();return(0,s.combineLatest)(e,t).pipe((0,c.map)((e=>{const t={currencyCode:e[1],language:e[0]};return t.channelType=this.channelTypeService.getChannelType(),t})))}getJackpotList(){this.isJackpotEnabled()&&!this.jackpotSubscription&&(this.jackpotSubscription=this.getJackpotsPolling().subscribe((e=>{e.forEach((e=>{const t=e.amount/100;this.jackpotPollingCache[e.gameId]?this.jackpotPollingCache[e.gameId].next(t):this.jackpotPollingCache[e.gameId]=new s.BehaviorSubject(t)}))})))}getJackpots(){return this.getGenericParams().pipe((0,c.switchMap)((e=>{const t=this.siteConfigService.getSiteConfigProp("urlPrefix");return t&&(e.context=t),this.http.get(this.jackpotUrl,{params:e})})))}getJackpotsPolling(e=6e5){return(0,s.interval)(e).pipe((0,c.startWith)(0),(0,c.switchMap)((()=>this.getJackpots())))}getFreeGames(){return this.http.get(this.freeGamesUrl)}getFreeGamesPolling(e=3e5){return(0,s.interval)(e).pipe((0,c.startWith)(0),(0,c.switchMap)((()=>this.getFreeGames())))}getFreeGamesList(){this.isFreeGamesEnabled()&&!this.freeGamesSubscription&&(this.freeGamesSubscription=this.getFreeGamesPolling().subscribe((e=>{this.clearFreeGamesCache(),e.forEach((e=>{this.freeGamesPollingCache[e]?this.freeGamesPollingCache[e].next(!0):this.freeGamesPollingCache[e]=new s.BehaviorSubject(!0)}))})))}clearFreeGamesCache(){Object.keys(this.freeGamesPollingCache).forEach((e=>{this.freeGamesPollingCache[e]&&this.freeGamesPollingCache[e].next(null)}))}}return e.CASINO_JACKPOT_FEATURE="casino.jackpot",e.FREE_GAMES_FEATURE="casino.free-games",e.FREEGAMESENABLE_COOKIE="FREEGAMESENABLED",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Be.HttpClient),i["ɵɵinject"](be.H),i["ɵɵinject"](G.r),i["ɵɵinject"](me.G),i["ɵɵinject"](et.mj),i["ɵɵinject"](Gt.T),i["ɵɵinject"](Lt.x),i["ɵɵinject"](fn.il),i["ɵɵinject"](fe.s),i["ɵɵinject"](o.Router),i["ɵɵinject"](Bt.U),i["ɵɵinject"](ee.u),i["ɵɵinject"](gn.i),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Sn=(()=>{class e{constructor(e){this.siteConfigService=e}resolve(e,t){return this.siteConfigService.getSiteConfigProp("casinoPracticePlayDisabled")?"false":"true"}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),xn=(()=>{class e{static forRoot(){return{ngModule:e,providers:[mn,cn,un,on,Zt,Qt,hn,Et.AJ,pn,ft,ln,vt,Cn,Sn]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[]]}),e})(),wn=(()=>{class e{constructor(){this.hideGameMode=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var En=n(46630),In=n(52450);let Pn=(()=>{class e{getAllGames(){return(0,s.of)([])}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Tn=(()=>{class e{constructor(e){this.gameService=e,this.gamesCache={}}getGameCard(e){return this.getAllGames(),this.gamesCache[e]||(this.gamesCache[e]=new s.BehaviorSubject({cardImage:"assets/images/thumbnail.png",cardImageAltText:""})),this.gamesCache[e]}getAllGames(){this.getAllGamesSubscription||(this.getAllGamesSubscription=this.gameService.getAllGames().pipe((0,c.first)()).subscribe((e=>{e.forEach((e=>{this.gamesCache[e.id]?this.gamesCache[e.id].next(e):this.gamesCache[e.id]=new s.BehaviorSubject(e)}))})))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Pn))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),_n=(()=>{class e{constructor(e){this.service=e}ngOnInit(){this.tournament.game=this.service.getGameCard(this.tournament.games[0].id)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Tn))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Mn=["cardTimeTemplate"];function On(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"bx-leaderboard-picture",7),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n            "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("imageUrl",e.cardImage)("imageTooltip",e.cardImageAltText)("imgSizeClass",n.imgSizeClass)}}function An(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lb-status-button",8),i["ɵɵlistener"]("joinEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().joinTournament()}))("unjoinEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().unjoinTournament()}))("dismissEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().dismissTournament()}))("launchGameEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().launchGame()})),i["ɵɵpipe"](1,"statusPipe2"),i["ɵɵtext"](2,"\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("status",i["ɵɵpipeBind2"](1,1,e.tournament.joined,e.tournament.validFrom))}}let kn=(()=>{class e extends _n{constructor(e){super(e),this.joinEvent=new i.EventEmitter,this.unjoinEvent=new i.EventEmitter,this.dismissEvent=new i.EventEmitter,this.openGameEvent=new i.EventEmitter,this.endEvent=new i.EventEmitter,this.imgSizeClass="img-xsmall",this.showStatus=!0}joinTournament(){this.joinEvent.emit(this.tournament)}unjoinTournament(){this.unjoinEvent.emit(this.tournament)}dismissTournament(){this.dismissEvent.emit(this.tournament)}launchGame(){this.openGameEvent.emit(this.tournament)}leaderboardEnded(){this.endEvent.emit(this.tournament)}leaderboardLateJoinEnded(){this.tournament.joined||this.endEvent.emit(this.tournament)}leaderboadStarted(){this.showStatus=!1,setTimeout((()=>this.showStatus=!0))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Tn))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-card-content"]],contentQueries:function(e,t,n){if(1&e&&i["ɵɵcontentQuery"](n,Mn,5,i.TemplateRef),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.template=e.first)}},inputs:{imgSizeClass:"imgSizeClass",tournament:"tournament"},outputs:{joinEvent:"joinEvent",unjoinEvent:"unjoinEvent",dismissEvent:"dismissEvent",openGameEvent:"openGameEvent",endEvent:"endEvent"},features:[i["ɵɵInheritDefinitionFeature"]],decls:22,vars:11,consts:[[1,"bx-leaderboard-card-content"],[4,"ngIf"],[1,"leaderboard-card-time-wrapper"],[1,"leaderboard-card-time"],["hideLabel","countdown",3,"startDate","endDate","onLBEventEnded","onLBLateJoinEnd","onLBEventStarted"],[3,"ngTemplateOutlet"],[3,"status","joinEvent","unjoinEvent","dismissEvent","launchGameEvent",4,"ngIf"],[3,"imageUrl","imageTooltip","imgSizeClass"],[3,"status","joinEvent","unjoinEvent","dismissEvent","launchGameEvent"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,On,5,3,"ng-container",1),i["ɵɵpipe"](4,"async"),i["ɵɵtext"](5,"\n\n            "),i["ɵɵelementStart"](6,"div",2),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"div",3),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementStart"](10,"bx-lpl-lb-countdown",4),i["ɵɵlistener"]("onLBEventEnded",(function(){return t.leaderboardEnded()}))("onLBLateJoinEnd",(function(){return t.leaderboardLateJoinEnded()}))("onLBEventStarted",(function(){return t.leaderboadStarted()})),i["ɵɵpipe"](11,"toDatePipe"),i["ɵɵpipe"](12,"toDatePipe"),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementContainer"](15,5),i["ɵɵtext"](16,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                "),i["ɵɵtemplate"](18,An,3,4,"bx-lb-status-button",6),i["ɵɵtext"](19,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](4,5,t.tournament.game)),i["ɵɵadvance"](7),i["ɵɵproperty"]("startDate",i["ɵɵpipeBind1"](11,7,t.tournament.validFrom))("endDate",i["ɵɵpipeBind1"](12,9,t.tournament.validTo)),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngTemplateOutlet",t.template),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.showStatus))},styles:["[_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  padding: 8px; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .img-responsive[_ngcontent-%COMP%] {\n    z-index: 1; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%] {\n    display: flex;\n    flex-direction: column;\n    margin-left: 8px;\n    width: 100%; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%]   .leaderboard-card-time[_ngcontent-%COMP%] {\n      display: flex;\n      justify-content: center;\n      margin-bottom: 6px; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%]   .leaderboard-card-time[_ngcontent-%COMP%]   bx-lpl-lb-countdown[_ngcontent-%COMP%] {\n        padding: 0px 10px;\n        width: 100%; }"]}),e})();function jn(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"bx-leaderboard-picture",7),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("imageUrl",e.cardImage)("imageTooltip",e.cardImageAltText)("imgSizeClass",n.imgSizeClass)}}function Nn(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lb-status-button",8),i["ɵɵlistener"]("joinEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().joinTournament()}))("unjoinEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().unjoinTournament()}))("dismissEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().dismissTournament()}))("launchGameEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().launchGame()})),i["ɵɵpipe"](1,"statusPipe2"),i["ɵɵtext"](2,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("status",i["ɵɵpipeBind2"](1,1,e.tournament.joined,e.tournament.validFrom))}}let Rn=(()=>{class e extends kn{}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-card-content-bm"]],features:[i["ɵɵInheritDefinitionFeature"]],decls:22,vars:11,consts:[[1,"bx-leaderboard-card-content"],[1,"leaderboard-card-time-wrapper"],[4,"ngIf"],[1,"leaderboard-card-time"],[3,"startDate","endDate","onLBEventEnded","onLBLateJoinEnd","onLBEventStarted"],[3,"ngTemplateOutlet"],[3,"status","joinEvent","unjoinEvent","dismissEvent","launchGameEvent",4,"ngIf"],[3,"imageUrl","imageTooltip","imgSizeClass"],[3,"status","joinEvent","unjoinEvent","dismissEvent","launchGameEvent"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,jn,5,3,"ng-container",2),i["ɵɵpipe"](6,"async"),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"div",3),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementStart"](10,"bx-lpl-lb-countdown",4),i["ɵɵlistener"]("onLBEventEnded",(function(){return t.leaderboardEnded()}))("onLBLateJoinEnd",(function(){return t.leaderboardLateJoinEnded()}))("onLBEventStarted",(function(){return t.leaderboadStarted()})),i["ɵɵpipe"](11,"toDatePipe"),i["ɵɵpipe"](12,"toDatePipe"),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementContainer"](15,5),i["ɵɵtext"](16,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n            "),i["ɵɵtemplate"](19,Nn,3,4,"bx-lb-status-button",6),i["ɵɵtext"](20,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n    ")),2&e&&(i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](6,5,t.tournament.game)),i["ɵɵadvance"](5),i["ɵɵproperty"]("startDate",i["ɵɵpipeBind1"](11,7,t.tournament.validFrom))("endDate",i["ɵɵpipeBind1"](12,9,t.tournament.validTo)),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngTemplateOutlet",t.template),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.showStatus))},styles:["[_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  justify-content: center; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .img-responsive[_ngcontent-%COMP%] {\n    z-index: 1; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%] {\n    display: flex;\n    align-items: center;\n    justify-content: space-around;\n    margin-bottom: 33px; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%]   .leaderboard-card-time[_ngcontent-%COMP%] {\n      display: flex;\n      justify-content: center; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%]   .leaderboard-card-time[_ngcontent-%COMP%]   bx-lpl-lb-countdown[_ngcontent-%COMP%]     .bx-lb-watch-countdown .label {\n        margin-bottom: 10px; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%]   .leaderboard-card-time[_ngcontent-%COMP%]   bx-lpl-lb-countdown[_ngcontent-%COMP%]     .bx-lb-final-countdown .label {\n        display: none; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%]   .leaderboard-card-time[_ngcontent-%COMP%]   bx-lpl-lb-countdown[_ngcontent-%COMP%]     .bx-lb-final-countdown .wrapper-countdown {\n        width: 45px;\n        height: 45px; }\n  [_nghost-%COMP%]   .bx-leaderboard-card-content[_ngcontent-%COMP%]   .leaderboard-card-time-wrapper[_ngcontent-%COMP%]   .leaderboard-card-time[_ngcontent-%COMP%]   bx-lpl-lb-countdown[_ngcontent-%COMP%]     .bx-lb-final-countdown .pie {\n        border-width: 4px; }"]}),e})();function Dn(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"bx-leaderboard-picture",11),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("imageUrl",e.cardImage)("imageTooltip",e.cardImageAltText)("imgSizeClass",n.imgSizeClass)}}const Ln=function(e){return{date:e}},Fn=function(e){return{tag:"textContent",values:e,label:"leaderboardShared.label.today"}},Bn=function(e){return[e]};let Un=(()=>{class e extends kn{}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-detail-content-bm"]],features:[i["ɵɵInheritDefinitionFeature"]],decls:34,vars:18,consts:[[1,"bx-leaderboard-detail-content"],[1,"leaderboard-detail-time-wrapper"],[4,"ngIf"],[1,"leaderboard-detail-time"],[1,"leaderboard-detail-start"],[1,"start-label",3,"bxTranslate"],[3,"bxTranslate"],[1,"leaderboard-detail-duration"],[1,"duration-label",3,"bxTranslate"],[1,"duration",3,"lbDuration"],[3,"status","joinEvent","unjoinEvent","dismissEvent","launchGameEvent"],[3,"imageUrl","imageTooltip","imgSizeClass"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,Dn,5,3,"ng-container",2),i["ɵɵpipe"](6,"async"),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"div",3),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementStart"](10,"div",4),i["ɵɵtext"](11,"\n                        "),i["ɵɵelementStart"](12,"span",5),i["ɵɵtext"](13,"leaderboardShared.label.start"),i["ɵɵelementEnd"](),i["ɵɵtext"](14,":\n                        "),i["ɵɵelement"](15,"span",6),i["ɵɵpipe"](16,"bxDate"),i["ɵɵtext"](17,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n                    "),i["ɵɵelementStart"](19,"div",7),i["ɵɵtext"](20,"\n                        "),i["ɵɵelementStart"](21,"span",8),i["ɵɵtext"](22,"\n                            leaderboardShared.label.duration\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n                        "),i["ɵɵelement"](24,"span",9),i["ɵɵtext"](25,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](28,"\n            "),i["ɵɵelementStart"](29,"bx-lb-status-button",10),i["ɵɵlistener"]("joinEvent",(function(){return t.joinTournament()}))("unjoinEvent",(function(){return t.unjoinTournament()}))("dismissEvent",(function(){return t.dismissTournament()}))("launchGameEvent",(function(){return t.launchGame()})),i["ɵɵpipe"](30,"statusPipe2"),i["ɵɵtext"](31,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](32,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](33,"\n    ")),2&e&&(i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](6,4,t.tournament.game)),i["ɵɵadvance"](10),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](16,Bn,i["ɵɵpureFunction1"](14,Fn,i["ɵɵpureFunction1"](12,Ln,i["ɵɵpipeBind2"](16,6,t.tournament.validFrom,"hh:mm a"))))),i["ɵɵadvance"](9),i["ɵɵproperty"]("lbDuration",t.tournament),i["ɵɵadvance"](5),i["ɵɵproperty"]("status",i["ɵɵpipeBind2"](30,9,t.tournament.joined,t.tournament.validFrom)))},styles:["[_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%] {\n  padding: 16px 42px; }\n  [_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%]   .leaderboard-detail-time-wrapper[_ngcontent-%COMP%] {\n    display: flex;\n    align-items: center;\n    margin-bottom: 20px; }\n  [_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%]   .leaderboard-detail-time-wrapper[_ngcontent-%COMP%]   .leaderboard-detail-time[_ngcontent-%COMP%] {\n      margin-left: 20px; }\n  [_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%]   .leaderboard-detail-time-wrapper[_ngcontent-%COMP%]   .leaderboard-detail-time[_ngcontent-%COMP%]   .start-label[_ngcontent-%COMP%], [_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%]   .leaderboard-detail-time-wrapper[_ngcontent-%COMP%]   .leaderboard-detail-time[_ngcontent-%COMP%]   .duration-label[_ngcontent-%COMP%] {\n        font-weight: 600; }"]}),e})();var Vn=n(41759);let Gn=(()=>{class e{constructor(e,t,n){this.el=e,this.renderer=t,this.translateService=n}ngOnInit(){const e=(0,Vn.Z)(this.tournament.validFrom),t=(0,Vn.Z)(this.tournament.validTo),n=Math.abs(e.diff(t,"minutes"));let i;this.translateService.loadTranslations("leaderboardShared").subscribe((r=>{if(r){if(n<60)i=`${n}${r["leaderboardShared.labels.minutes"]}`;else{let o=Math.abs(e.diff(t,"hours"));i=`${o}${r["leaderboardShared.labels.hours"]}:${n%60}${r["leaderboardShared.labels.minutes"]}`}this.renderer.setProperty(this.el.nativeElement,"innerHTML",i)}}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](fe.s))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","lbDuration",""]],inputs:{tournament:["lbDuration","tournament"]}}),e})();function Hn(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                    "),i["ɵɵelementStart"](1,"div",3),i["ɵɵtext"](2,"\n                        "),i["ɵɵelementStart"](3,"span",4),i["ɵɵtext"](4,"\n                            leaderboardShared.label.duration\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n                        "),i["ɵɵelement"](6,"span",5),i["ɵɵtext"](7,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                ")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](6),i["ɵɵproperty"]("lbDuration",e.tournament)}}let zn=(()=>{class e extends kn{}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-detail-content"]],features:[i["ɵɵInheritDefinitionFeature"]],decls:10,vars:2,consts:[[1,"bx-leaderboard-detail-content"],[3,"imgSizeClass","tournament","joinEvent","unjoinEvent","dismissEvent","openGameEvent"],["cardTimeTemplate",""],[1,"leaderboard-card-duration"],[1,"duration-label",3,"bxTranslate"],[1,"duration",3,"lbDuration"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"bx-leaderboard-card-content",1),i["ɵɵlistener"]("joinEvent",(function(){return t.joinTournament()}))("unjoinEvent",(function(){return t.unjoinTournament()}))("dismissEvent",(function(){return t.dismissTournament()}))("openGameEvent",(function(){return t.launchGame()})),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,Hn,9,1,"ng-template",null,2,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](7,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("imgSizeClass",t.imgSizeClass)("tournament",t.tournament))},directives:[kn,Se.P,Gn],styles:["[_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%]     .bx-leaderboard-card-content {\n  padding: 0px; }\n\n[_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%]   .leaderboard-card-duration[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  border-left: 1px solid #808080;\n  padding: 0px 10px;\n  text-align: center; }\n\n[_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%]   .leaderboard-card-duration[_ngcontent-%COMP%]   .duration-label[_ngcontent-%COMP%] {\n    color: #808080;\n    font-size: 10px;\n    font-weight: 400;\n    text-transform: uppercase; }\n\n[_nghost-%COMP%]   .bx-leaderboard-detail-content[_ngcontent-%COMP%]   .leaderboard-card-duration[_ngcontent-%COMP%]   .duration[_ngcontent-%COMP%] {\n    color: #2B2B2B; }"]}),e})();const $n={components:{leaderboardCard:kn,leaderboardDetail:zn},css:{statusButton:{join:"primary cta-small",latejoin:"primary cta-small",launch:"primary cta-small",unjoin:"tertiary inverse cta-small",close:"icon-close"},carouselCard:{info:"icon-info"},listItem:{img:"img-small"},leaderboardGame:{tab:"quaternary"},leaderboardDetail:{header:"",img:"img-xsmall"},minBet:{button:""}},entries:[kn,zn]},Wn=new i.InjectionToken("LeaderboardConfig"),qn=new i.InjectionToken("ComponentsConfig"),Kn=new i.InjectionToken("CssConfig");class Xn{static entryComponents(e=$n){return[{provide:qn,useValue:{components:e.components}},{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:e.entries,multi:!0}]}}let Yn=(()=>{class e{constructor(){this._updateTournament=new s.Subject,this._selectedTournament=new s.BehaviorSubject(null),this._refreshTournaments=new s.Subject,this._resumableRank=new s.BehaviorSubject(null),this._activeTournaments=new s.BehaviorSubject([])}get update(){return this._updateTournament}get selected(){return this._selectedTournament}get resume(){return this._resumableRank}get refresh(){return this._refreshTournaments}get active(){return this._activeTournaments}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Jn=n(35294),Qn=n(38056),Zn=n(13493);class ei{constructor(e,t){this.language=e,this.currency=t}toHttpParams(e){const t=Object.assign({},this,e);return Object.keys(t).forEach((e=>void 0===t[e]&&delete t[e])),new Be.HttpParams({fromObject:t})}}let ti=(()=>{class e{constructor(e,t,n){this.http=e,this.timezoneService=t,this.cookieStorageService=n,this.tournamentsUrl="/services/leaderboard/widget-gateway/v1/tournaments",this.pointsUrl="/services/leaderboard/widget-gateway/v1/points",this.params=new ei(null,null)}now(e){let t=e?(0,Vn.Z)(e):(0,Vn.Z)().millisecond(0);return this.timezoneService.getCurrentTimezone()?t.tz(this.timezoneService.getCurrentTimezone()):t}tournamentsMapping(e){let t=[];return e.forEach((e=>{t.push(this.tournamentMapping(e))})),(0,s.forkJoin)(...t).pipe((0,c.defaultIfEmpty)(null))}getTournament(e){const t=this.http.get(`${this.tournamentsUrl}/${e}`,{params:this.params.toHttpParams()});return this.handleBackendResponseObservable(t,(e=>this.tournamentMapping(e)))}getActiveTournaments(e){const t=this.now().toISOString(),n=this.now().endOf("day").add(1,"hours").toISOString(),i=this.http.get(`${this.tournamentsUrl}/active`,{params:this.params.toHttpParams({maxSize:e,from:t,to:n,onlyJoinedOrJoinable:!0})});return this.handleBackendResponseObservable(i,(e=>this.tournamentsMapping(e)))}getStartingTournaments(){const e=this.now().toISOString(),t=this.now().add(7,"days").endOf("day").toISOString(),n=this.http.get(`${this.tournamentsUrl}/starting`,{params:this.params.toHttpParams({from:e,to:t})});return this.handleBackendResponseObservable(n,(e=>this.tournamentsMapping(e)))}getEndedTournaments(){const e=this.now().startOf("day").subtract(1,"hours").toISOString(),t=this.now().toISOString(),n=this.http.get(`${this.tournamentsUrl}/ending`,{params:this.params.toHttpParams({from:e,to:t})});return this.handleBackendResponseObservable(n,(e=>this.tournamentsMapping(e)))}getRankings(e){const t=this.http.get(`${this.pointsUrl}/players/tournament/${e}/ranking`,{params:this.params.toHttpParams()});return this.handleBackendResponse(t,(e=>this.pointsMapping(e)))}getRankingsPolling(e,t=5e3){return(0,s.interval)(t).pipe((0,c.startWith)(0),(0,c.mergeMap)((()=>this.getRankings(e))),(0,c.retryWhen)((({scalingDuration:e=1e3,excludedStatusCodes:t=[]}={})=>n=>n.pipe((0,c.mergeMap)(((n,i)=>{const r=i+1;return t.find((e=>e===n.status))?(0,s.throwError)(n):(console.log(`Attempt ${r}: retrying in ${e}ms`),(0,s.timer)(e))})),(0,c.finalize)((()=>console.log("No reconnection possible!")))))({scalingDuration:3e4,excludedStatusCodes:[500]})))}getRankingsFinished(e){let t=this.http.get(`${this.pointsUrl}/ranking/tournament/${e}`,{params:this.params.toHttpParams()});return this.handleBackendResponse(t,(e=>this.pointsMapping(e)))}joinTournament(e){return this.pointsRequest(e,"POST")}unJoinTournament(e){return this.pointsRequest(e,"DELETE")}canJoinTournament(e){let t=!1;if(e.validFrom){let n=new Date,i=(0,Vn.Z)(e.validTo).isBefore(n),r=!1;if(!this.isLateJoinDisabled()){const t=new Date(new Date(e.validFrom).getTime()+12e4);r=!e.joined&&(0,Vn.Z)(t).isBefore(n)}t=!i&&!r}return t}isLateJoinDisabled(){return!0}getUserTournament(e){const t=this.now().toISOString(),n=this.now().endOf("day").add(1,"hours").toISOString(),i=this.http.get(`${this.tournamentsUrl}/next-joined`,{params:this.params.toHttpParams({gameId:e,from:t,to:n})});return this.handleBackendResponse(i,(e=>e))}pointsRequest(e,t){const n=this.http.request(t,`${this.pointsUrl}/players/tournament/${e}`,{params:this.params.toHttpParams()});return this.handleBackendResponse(n,(e=>e))}pointsMapping(e){let t={id:e.id,names:e.names,gamesIds:e.gamesIds,startsAt:e.startsAt,endsAt:e.endsAt,ranking:[],lastBetAmountLessThanMin:e.lastBetAmountLessThanMin,engines:e.engines,finished:e.finished,cancelled:e.cancelled};return e&&e.ranking&&e.ranking.length&&e.ranking.forEach((e=>{t.ranking.push({rank:e.playerPosition,id:e.encodedProfileId,name:e.encodedProfileId,completed:e.completed,spins:e.context.spins,hands:e.context.hands,points:e.context.points})})),t}handleBackendResponse(e,t){return e.pipe((0,c.map)(t),(0,c.catchError)((e=>(0,s.throwError)(e))))}handleBackendResponseObservable(e,t){return e.pipe((0,c.mergeMap)(t),(0,c.catchError)((e=>(0,s.throwError)(e))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Be.HttpClient),i["ɵɵinject"](Zn.B),i["ɵɵinject"](me.G))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ni=(()=>{class e extends ti{constructor(e,t,n,i,r,o,a,s,c,l,d){super(e,t,n),this.siteConfigService=i,this.gameService=r,this.tournamentService=o,this.langugageService=a,this.currencyService=s,this.appState=c,this.profile=l,this.deviceService=d,(0,ce.EH)((()=>{this.appState.loginState?this.profile.getProfile().subscribe((()=>{this.params.currency=this.profile.currency,this.params.language=this.profile.language})):(this.params.currency=this.currencyService.getDefaultCurrencyCode(),this.langugageService.getLanguage().subscribe((e=>this.params.language=e)))}))}getActiveTournaments(e){const t=super.getActiveTournaments(e).pipe((0,c.share)());return t.subscribe((e=>{Array.isArray(e)&&this.tournamentService.active.next(e.slice())})),t}resumableRanking(e){const t=this.tournamentService.resume.pipe((0,c.switchMap)((t=>(0,s.iif)((()=>"stop"===t),(0,s.empty)(),this.getRankingsPolling(e)))),(0,c.share)());return this._resumableRankingSubscription=t.subscribe((e=>((e.cancelled||e.finished)&&(this.unsusbscribe(this._resumableRankingSubscription),this.unsusbscribe(this._resumableFallbackSubscription)),e))),this.resumableRankingFallback(t),t}cleanRankSubscription(){this.unsusbscribe(this._resumableRankingSubscription),this.unsusbscribe(this._resumableFallbackSubscription)}getCurrencyInfo(){if(this.appState.loginState){const e=this.isCurrency("XBT")?"mBTC":this.profile.currency;return{currency:this.profile.currency,symbol:this.currencyService.getCurrencySymbol(e)}}return{currency:this.currencyService.getDefaultCurrencyCode(),symbol:this.currencyService.getDefaultCurrencySymbol()}}tournamentMapping(e){if(!this._siteGamesSubject){let e=this.getGameContentData();this._siteGamesSubject=new s.ReplaySubject(1),e.subscribe(this._siteGamesSubject)}return this._siteGamesSubject.pipe((0,c.map)((t=>this.addTournamentData(e,t))))}addTournamentData(e,t){return t[e.games[0].id]?e.game=t[e.games[0].id]:t[e.games[0].id]=e.game=new s.BehaviorSubject({cardImage:"assets/images/thumbnail.png",cardImageAltText:""}),e.sortName=e.name,e.sortStart=(0,Vn.Z)(e.validFrom).valueOf(),e.sortEnd=(0,Vn.Z)(e.validTo).valueOf(),e.sortDuration=(0,Vn.Z)(e.validTo).diff((0,Vn.Z)(e.validFrom)),e}isMobileDevice(){return this.deviceService.isMobile()}isLoggedIn(){return this.appState.loginState}isLeaderboardsAvailable(){return this.siteConfigService.evalFeature(e.LEADERBOARDS_FLAG)||"true"===this.cookieStorageService.get(e.LEADERBOARDS_COOKIE)}isUnlimitedPrizesAvailable(){return!0}getGameContentData(){return this.gameService.getAllGames().pipe((0,c.catchError)((e=>(0,s.of)([]))),(0,c.first)(),(0,c.map)((e=>{let t={};return e.forEach((e=>{t[e.id]?t[e.id].next(e):t[e.id]=new s.BehaviorSubject(e)})),t})))}resumableRankingFallback(e){this._resumableFallbackSubscription=e.pipe((0,c.timeout)(18e3)).subscribe(null,(()=>{"stop"===this.tournamentService.resume.value&&(this.tournamentService.resume.next("resume"),this.unsusbscribe(this._resumableFallbackSubscription),this.resumableRankingFallback(e))}))}unsusbscribe(e){e&&(e.unsubscribe(),e=null)}isCurrency(e){return this.profile.currency===e}}return e.LEADERBOARDS_FLAG="site.config.leaderboards.enabled",e.LEADERBOARDS_COOKIE="LEADERBOARDSENABLED",e.LEADERBOARDS_UNLIMITED_COOKIE="UNLIMITEDSENABLED",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Be.HttpClient),i["ɵɵinject"](Zn.B),i["ɵɵinject"](me.G),i["ɵɵinject"](G.r),i["ɵɵinject"](Pn),i["ɵɵinject"](Yn),i["ɵɵinject"](Gt.T),i["ɵɵinject"](gn.i),i["ɵɵinject"](Jn.X),i["ɵɵinject"](Qn.A,8),i["ɵɵinject"](Bt.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ii=(()=>{class e{static forRoot(t,n,i,r,o=$n){return{ngModule:e,providers:[ut.X,Yn,ni,Tn,...Xn.entryComponents(o),{provide:Pn,useExisting:n},{provide:Wn,useValue:{imgPath:t,routes:i,options:r}},{provide:Kn,useValue:o.css}]}}static configure(t,n,i,r=$n){return{ngModule:e,providers:[ut.X,Yn,ni,Tn,...Xn.entryComponents(r),{provide:Pn,useExisting:t},{provide:Wn,useValue:{routes:n,options:i}},{provide:Kn,useValue:r.css}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[yt.M]]}),e})(),ri=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})(),oi=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a,ri]]}),e})(),ai=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule]]}),e})(),si=(()=>{class e{constructor(e){this.timezoneService=e}transform(e){return(0,Vn.Z)(e).tz(this.timezoneService.getCurrentTimezone()).isAfter((0,Vn.Z)())}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Zn.B,16))},e.ɵpipe=i["ɵɵdefinePipe"]({name:"isAfterPipe",type:e,pure:!0}),e})(),ci=(()=>{class e{constructor(e){this.timezoneService=e}transform(e){return(0,Vn.Z)(e).tz(this.timezoneService.getCurrentTimezone()).isBefore((0,Vn.Z)().tz(this.timezoneService.getCurrentTimezone()))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Zn.B,16))},e.ɵpipe=i["ɵɵdefinePipe"]({name:"isBeforePipe",type:e,pure:!0}),e})(),li=(()=>{class e{constructor(e){this.timezoneService=e}transform(e,t=(0,Vn.Z)(),n="day"){return(0,Vn.Z)(e).tz(this.timezoneService.getCurrentTimezone()).isSame((0,Vn.Z)(t).tz(this.timezoneService.getCurrentTimezone()),n)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Zn.B,16))},e.ɵpipe=i["ɵɵdefinePipe"]({name:"isSamePipe",type:e,pure:!0}),e})(),di=(()=>{class e{transform(e,t){let n=e?"inProgress":"late join";const i=(0,Vn.Z)(t).isAfter((0,Vn.Z)());return i&&e?n="joined":i&&!e&&(n="join"),n}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i["ɵɵdefinePipe"]({name:"statusPipe2",type:e,pure:!0}),e})(),ui=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[di,li,si,ci]}),e})();function pi(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",2),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"div",6),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementStart"](5,"div",4),i["ɵɵtext"](6),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.detailTitle),i["ɵɵadvance"](3),i["ɵɵtextInterpolate1"]("\n                        ",e.detailDescription,"\n                    ")}}let hi=(()=>{class e{constructor(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lpl-details"]],inputs:{details:"details",tournament:"tournament"},decls:17,vars:2,consts:[[1,"bx-lpl-details"],[1,"details-container"],[1,"detail"],[1,"detail-title",3,"lbDuration"],[1,"detail-description",3,"bxTranslate"],["class","detail",4,"ngFor","ngForOf"],[1,"detail-title"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelement"](7,"div",3),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementStart"](9,"div",4),i["ɵɵtext"](10,"\n                        leaderboardPrizesAndDetails.details.label.duration\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n                "),i["ɵɵtemplate"](13,pi,8,2,"div",5),i["ɵɵtext"](14,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n    ")),2&e&&(i["ɵɵadvance"](7),i["ɵɵproperty"]("lbDuration",t.tournament),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngForOf",t.details))},directives:[Gn,Se.P,r.NgForOf],styles:[".bx-lpl-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center; }\n  .bx-lpl-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%] {\n    flex: 0 1 200px;\n    padding: 10px 0;\n    text-align: center; }\n  .bx-lpl-details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]    + .detail[_ngcontent-%COMP%] {\n    margin-left: 2px; }\n  .bx-lpl-details[_ngcontent-%COMP%]   .terms-and-conditions[_ngcontent-%COMP%] {\n  text-align: center; }"]}),e})();class mi{constructor(e,t,n,i,r,o,a){this.title=e,this.description=t,this.thumbnail=n,this.rank=i,this.data=r,this.numPlayers=o,this.type=a}}var gi=(()=>(function(e){e.BITCOIN="XBT"}(gi||(gi={})),gi))();let fi=(()=>{class e{constructor(e){this.leaderboardService=e}getPrizeDetails(e){if(e instanceof Array){let t=[];return e&&e.length&&e.forEach((e=>{t.push(this.getPrizeInfo(e))})),t}return this.getPrizeInfo(e)}getPrizesPole(e){return this.getPrizeDetails(e).reduce(((e,t)=>{const n=t.numPlayers||1;return[...e,...Array(n).fill(0).map((()=>t))]}),[])}getPrizeInfo(e){const t=this.leaderboardService.getCurrencyInfo();let n=new mi("",e.description,e.thumbnail,e.rank,e,1,e.type);switch(e.type){case"MANUAL":n.thumbnail="/assets/images/prize-manual.svg",n.title=e.title;break;case"LOYALTY":n.thumbnail="/assets/images/prize-loyalty.svg",n.data={tierPoints:e.tierPoints,rewardPoints:e.rewardPoints,date:e.date,type:"Loyalty Points"},e.tierPoints&&e.rewardPoints?(n.title="leaderboardPrizesAndDetails.prizes.label.prize-loyalty-tier",n.description="leaderboardPrizesAndDetails.prizes.label.prize-loyalty-reward"):e.tierPoints&&!e.rewardPoints?n.title="leaderboardPrizesAndDetails.prizes.label.prize-loyalty-tier":n.description="leaderboardPrizesAndDetails.prizes.label.prize-loyalty-reward",n.numPlayers=e.numPlayers||1;break;case"BONUS":n.thumbnail="/assets/images/prize-bonus.svg",n.title="leaderboardPrizesAndDetails.prizes.label.bonus-funds",n.data={symbol:t.symbol,amount:this.parseSpecialCurrenciesAmount(t.currency,+e.amount),type:"Bonus"},e.rollover&&(n.description="leaderboardPrizesAndDetails.prizes.label.rollover",n.data.rollover=e.rollover),n.numPlayers=e.numPlayers||1;break;case"CASH":n.thumbnail="/assets/images/prize-cash.svg",n.title="leaderboardPrizesAndDetails.prizes.label.prize-cash",n.data={symbol:t.symbol,prize:e[t.currency],type:"Cash Money"}}return n}parseSpecialCurrenciesAmount(e,t){let n=t;return e===gi.BITCOIN&&(n=1e3*t),n}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ni))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),vi=(()=>{class e{constructor(e){this.leaderboardService=e}getDetails(e){return this.getDetailsByEngine(e)}getDetailsByEngine(e){let t=[];const n=this.leaderboardService.getCurrencyInfo(),i=e.engines.find((t=>+t.gameId===e.games[0].id));if(i){const r=i.minBet[n.currency];switch(e.games[0].categoryId.toString()){case"1":t.push({detailTitle:i.numHands,detailDescription:"leaderboardPrizesAndDetails.details.table-game.hands"}),t.push({detailTitle:`${n.symbol}${this.parseSpecialCurrenciesAmount(n.currency,+r)}`,detailDescription:"leaderboardPrizesAndDetails.details.table-game.min-bet"});break;case"3":t.push({detailTitle:i.numSpins,detailDescription:"leaderboardPrizesAndDetails.details.slots.spins"}),t.push({detailTitle:`${n.symbol}${this.parseSpecialCurrenciesAmount(n.currency,+r)}`,detailDescription:"leaderboardPrizesAndDetails.details.slots.min-bet"})}}return t}parseSpecialCurrenciesAmount(e,t){let n=t;return e===gi.BITCOIN&&(n=1e3*t),n}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ni))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var bi=n(89309);function yi(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-lpl-prizes",7),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵproperty"]("prize",e)}}let Ci=(()=>{class e{constructor(e,t){this.prizeInfoService=e,this.detailsService=t,this.prizes=[],this.details=[]}ngOnChanges(e){e.tournament&&e.tournament.currentValue&&(this.prizes=this.prizeInfoService.getPrizeDetails(e.tournament.currentValue.prizes),this.details=this.detailsService.getDetails(e.tournament.currentValue))}getPrizeOrdinalRange(e){const t=this.prizes.findIndex((t=>t.rank===e.rank));return t>0?this.getRange(this.getPrizeOrdinalRange(this.prizes[t-1]),this.prizes[t].numPlayers):this.getRange({start:0,end:0},this.prizes[0].numPlayers)}getRange(e,t){return t=t||1,{start:e.end+1,end:t>1?e.end+t:e.end+1,numPlayers:t}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](fi),i["ɵɵdirectiveInject"](vi))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lpl-prizes-and-details"]],inputs:{tournament:"tournament"},features:[i["ɵɵNgOnChangesFeature"]],decls:21,vars:5,consts:[[1,"bx-lpl-prizes-and-details"],[1,"h4-heading","category-title","detail",3,"bxTranslate"],[1,"list-details-container"],[3,"details","tournament"],[1,"h4-heading","category-title","prizes",3,"bxTranslate"],[1,"list-prizes-container"],[3,"prize",4,"ngFor","ngForOf"],[3,"prize"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"h4",1),i["ɵɵtext"](4,"leaderboardPrizesAndDetails.head.details"),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementStart"](6,"div",2),i["ɵɵtext"](7,"\n                "),i["ɵɵelement"](8,"bx-lpl-details",3),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n            "),i["ɵɵelementStart"](11,"h4",4),i["ɵɵtext"](12,"leaderboardPrizesAndDetails.head.prizes"),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementStart"](14,"div",5),i["ɵɵtext"](15,"\n                "),i["ɵɵtemplate"](16,yi,2,1,"bx-lpl-prizes",6),i["ɵɵpipe"](17,"prizesSortPipe"),i["ɵɵtext"](18,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n    ")),2&e&&(i["ɵɵadvance"](8),i["ɵɵproperty"]("details",t.details)("tournament",t.tournament),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngForOf",i["ɵɵpipeBind1"](17,3,t.prizes)))},styles:[".column-layout[_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%], .column-layout   [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%] {\n  flex-direction: column;\n  align-items: flex-start; }\n  .column-layout[_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%], .column-layout   [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%] {\n    flex: 0 1 100%;\n    margin: 0 0 2em 0; }\n  .column-layout[_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%]:last-child, .column-layout   [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%]:last-child {\n      margin-bottom: 0px; }\n  .column-layout[_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%]     .prize, .column-layout   [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%]     .prize {\n      flex-direction: row; }\n  .column-layout[_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%]     .prize .prize-details, .column-layout   [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%]     .prize .prize-details {\n        margin-top: 0;\n        margin-left: 2em; }\n  [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  flex-wrap: wrap;\n  padding: 16px 0 24px; }\n  [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%] {\n    flex: 0 1 160px;\n    margin: 0 2em 2em 0; }\n  @media screen and (max-width: 768px) {\n      [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-prizes-container[_ngcontent-%COMP%]   bx-lpl-prizes[_ngcontent-%COMP%] {\n        flex: 0 1 100%; } }\n  [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .list-details-container[_ngcontent-%COMP%] {\n  padding: 16px 0 24px; }\n  [_nghost-%COMP%]   .bx-lpl-prizes-and-details[_ngcontent-%COMP%]   .category-title[_ngcontent-%COMP%] {\n  text-align: center; }"]}),e})();function Si(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",3),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"div"),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"div",4),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementStart"](6,"span",5),i["ɵɵtext"](7),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                    "),i["ɵɵelement"](10,"div",6),i["ɵɵtext"](11,"\n                    "),i["ɵɵelement"](12,"div",7),i["ɵɵtext"](13,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass","prize-"+e.rank),i["ɵɵadvance"](7),i["ɵɵtextInterpolate"](e.rank)}}function xi(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("",e.rank,"th")}}let wi=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-medal-ribbon"]],inputs:{rank:"rank"},decls:8,vars:2,consts:[[1,"bx-lbi-medal-ribbon"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],[1,"badge"],[1,"rank"],[1,"badge-ribbon-left"],[1,"badge-ribbon-right"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Si,15,2,"div",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,xi,2,1,"div",2),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.rank<4),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.rank>3))},directives:[r.NgIf,r.NgClass],styles:[".bx-lbi-medal-ribbon[_ngcontent-%COMP%] {\n  height: 30px;\n  position: relative;\n  text-align: initial; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-1[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%], .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-1[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]:before {\n    background-color: #CA9D45; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-1[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:before, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-1[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:after, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-1[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:before, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-1[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:after {\n    border-bottom: 8px solid #ab8231; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-2[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%], .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-2[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]:before {\n    background-color: #B3B3B3; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-2[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:before, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-2[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:after, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-2[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:before, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-2[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:after {\n    border-bottom: 8px solid #9a9a9a; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-3[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%], .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-3[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]:before {\n    background-color: #BA743D; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-3[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:before, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-3[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:after, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-3[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:before, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .prize-3[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:after {\n    border-bottom: 8px solid #945c30; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] {\n    transform: rotate(20deg);\n    position: absolute;\n    width: 20px;\n    height: 20px;\n    z-index: 2;\n    border-radius: 5px 5px; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]:before {\n    transform: rotate(135deg);\n    content: \"\";\n    position: absolute;\n    height: 20px;\n    width: 20px;\n    border-radius: 5px 5px; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%] {\n    transform: rotate(-20deg);\n    position: absolute;\n    top: 20px;\n    left: 10px;\n    height: 10px;\n    width: 10px; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%] {\n    transform: rotate(20deg);\n    position: absolute;\n    top: 19px;\n    left: -2px;\n    height: 10px;\n    width: 10px; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:before, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:after, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:before, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:after {\n    transform: rotate(-140deg);\n    content: '';\n    position: absolute;\n    border-left: 4px solid transparent;\n    border-right: 4px solid transparent;\n    left: -5; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge-ribbon-left[_ngcontent-%COMP%]:after, .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .badge-ribbon-right[_ngcontent-%COMP%]:after {\n    transform: rotate(140deg);\n    left: auto;\n    right: -5px; }\n  .bx-lbi-medal-ribbon[_ngcontent-%COMP%]   .rank[_ngcontent-%COMP%] {\n    transform: rotate(-20deg);\n    position: absolute;\n    z-index: 3;\n    margin-left: 5px;\n    font-size: 16px;\n    line-height: 20px;\n    color: #FFFFFF; }"]}),e})(),Ei=(()=>{class e{constructor(){this.ordinals=["th","st","nd","rd"]}transform(e){let t=+e%100;return`leaderboardShared.ordinal.${this.ordinals[(t-20)%10]||this.ordinals[t]||this.ordinals[0]}`}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i["ɵɵdefinePipe"]({name:"ordinal",type:e,pure:!0}),e})();function Ii(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-lbi-medal-ribbon",11),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("rank",e.prize.rank)}}const Pi=function(e){return{"background-image":e}};function Ti(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"div",9),i["ɵɵtext"](3,"\n                            "),i["ɵɵtemplate"](4,Ii,2,1,"bx-lbi-medal-ribbon",10),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngStyle",i["ɵɵpureFunction1"](2,Pi,"url("+e.imgPath+e.prize.thumbnail+")")),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.prize.rank<4)}}const _i=function(e){return{rank:e}},Mi=function(e,t){return{tag:"textContent",values:e,label:t}};function Oi(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                                    "),i["ɵɵelement"](2,"span",15),i["ɵɵpipe"](3,"ordinal"),i["ɵɵtext"](4,"\n                                     - \n                                    "),i["ɵɵelement"](5,"span",15),i["ɵɵpipe"](6,"ordinal"),i["ɵɵtext"](7,"\n                                "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](4);i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](8,Mi,i["ɵɵpureFunction1"](6,_i,e.prizePoleRange.start),i["ɵɵpipeBind1"](3,2,e.prizePoleRange.start))),i["ɵɵadvance"](3),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](13,Mi,i["ɵɵpureFunction1"](11,_i,e.prizePoleRange.end),i["ɵɵpipeBind1"](6,4,e.prizePoleRange.end)))}}const Ai=function(e){return{numPlayer:e}},ki=function(e){return{tag:"textContent",values:e,label:"leaderboardPrizesAndDetails.prizes.top.label"}};function ji(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                                    "),i["ɵɵelement"](1,"span",15),i["ɵɵtext"](2,"\n                                ")),2&e){const e=i["ɵɵnextContext"](4);i["ɵɵadvance"](1),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](3,ki,i["ɵɵpureFunction1"](1,Ai,e.prize.numPlayers)))}}function Ni(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                                "),i["ɵɵtemplate"](2,Oi,8,16,"ng-container",3),i["ɵɵtext"](3,"\n                                "),i["ɵɵtemplate"](4,ji,3,5,"ng-template",null,14,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n                            "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵreference"](5),t=i["ɵɵnextContext"](3);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",+t.prize.rank>1)("ngIfElse",e)}}function Ri(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                                "),i["ɵɵelement"](1,"span",15),i["ɵɵpipe"](2,"ordinal"),i["ɵɵtext"](3,"\n                            ")),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](1),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](5,Mi,i["ɵɵpureFunction1"](3,_i,e.prizePoleRange.start),i["ɵɵpipeBind1"](2,1,e.prizePoleRange.start)))}}function Di(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                        "),i["ɵɵelementStart"](1,"div",12),i["ɵɵtext"](2,"\n                            "),i["ɵɵtemplate"](3,Ni,7,2,"ng-container",3),i["ɵɵtext"](4,"\n                            "),i["ɵɵtemplate"](5,Ri,4,8,"ng-template",null,13,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](7,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                    ")),2&e){const e=i["ɵɵreference"](6),t=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",t.badgeTier),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.prizePoleRange.numPlayers&&t.prizePoleRange.numPlayers>1)("ngIfElse",e)}}function Li(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"span"),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                            "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](3),i["ɵɵtextInterpolate2"]("",e.prize.data.rewardPoints," ",e.loyaltyStore.programRewardName,"")}}function Fi(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                                "),i["ɵɵelement"](1,"span",15),i["ɵɵtext"](2,"\n                            ")),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](1,Mi,e.prize.data,e.prize.description))}}const Bi=function(e,t){return{"prize-description":e,"prize-title":t}};function Ui(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,Ti,7,4,"ng-container",3),i["ɵɵtext"](5,"\n\n                    "),i["ɵɵtemplate"](6,Di,9,3,"ng-template",null,4,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementStart"](9,"div",5),i["ɵɵtext"](10,"\n                        "),i["ɵɵelementStart"](11,"div",6),i["ɵɵtext"](12,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n                        "),i["ɵɵelementStart"](14,"div",7),i["ɵɵtext"](15,"\n                            "),i["ɵɵtemplate"](16,Li,5,2,"ng-container",3),i["ɵɵtext"](17,"\n                            "),i["ɵɵtemplate"](18,Fi,3,4,"ng-template",null,8,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](20,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n            "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵreference"](7),t=i["ɵɵreference"](19),n=i["ɵɵnextContext"]();i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",!n.leaderboard.isUnlimitedPrizesAvailable())("ngIfElse",e),i["ɵɵadvance"](7),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](6,Mi,n.prize.data,n.prize.title)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](9,Bi,"BONUS"===n.prize.type,"LOYALTY"===n.prize.type)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf","LOYALTY"===n.prize.type&&n.prize.data.rewardPoints&&n.loyaltyStore.programRewardName)("ngIfElse",t)}}let Vi=(()=>{class e{constructor(e,t,n,i){this.leaderboard=e,this.prizesAndDetails=t,this.loyaltyStore=n,this.imgPath="",i&&i.imgPath&&(this.imgPath=i.imgPath)}ngOnInit(){this.leaderboard.isUnlimitedPrizesAvailable()&&(this.getPrizeBadgeTier(),this.prizesAndDetails&&(this.prizePoleRange=this.prizesAndDetails.getPrizeOrdinalRange(this.prize)))}getPrizeBadgeTier(){switch(this.prize.rank){case"1":this.badgeTier="pole-tier-one";break;case"2":this.badgeTier="pole-tier-two";break;case"3":this.badgeTier="pole-tier-three";break;default:this.badgeTier="pole-tier-default"}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ni),i["ɵɵdirectiveInject"](Ci,8),i["ɵɵdirectiveInject"](bi.r,8),i["ɵɵdirectiveInject"](Wn,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lpl-prizes"]],inputs:{prize:"prize"},decls:6,vars:1,consts:[[1,"bx-lpl-prizes"],[4,"ngIf"],[1,"prize"],[4,"ngIf","ngIfElse"],["unlimited_prizes",""],[1,"prize-details"],[1,"prize-title",3,"bxTranslate"],[3,"ngClass"],["defaultLabel",""],[1,"prize-thumbnail",3,"ngStyle"],[3,"rank",4,"ngIf"],[3,"rank"],[1,"bx-leaderboard-badge",3,"ngClass"],["single",""],["top_players",""],[3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Ui,24,12,"ng-container",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.prize))},directives:[r.NgIf,Se.P,r.NgClass,r.NgStyle,wi],pipes:[Ei],styles:["[_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%] {\n  position: relative;\n  display: flex;\n  align-items: center;\n  flex-direction: column; }\n  [_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%]   .prize-thumbnail[_ngcontent-%COMP%] {\n    width: 50px;\n    min-width: 50px;\n    height: 50px;\n    border-radius: 50%;\n    background-size: cover;\n    border: 2px solid #DDDDDD; }\n  [_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%]   .prize-thumbnail[_ngcontent-%COMP%]   bx-lbi-medal-ribbon[_ngcontent-%COMP%] {\n      position: absolute;\n      top: 30px;\n      left: 35px; }\n  [_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%]   .bx-leaderboard-badge[_ngcontent-%COMP%] {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    font-size: 1em;\n    line-height: 14px;\n    color: #FFFFFF;\n    border-radius: 500px 500px 500px 500px;\n    width: 100px;\n    padding: 4px 0px; }\n  [_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%]   .bx-leaderboard-badge.pole-tier-one[_ngcontent-%COMP%] {\n      background: #C29D31; }\n  [_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%]   .bx-leaderboard-badge.pole-tier-two[_ngcontent-%COMP%] {\n      background: #808080; }\n  [_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%]   .bx-leaderboard-badge.pole-tier-three[_ngcontent-%COMP%] {\n      background: #C76B00; }\n  [_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%]   .bx-leaderboard-badge.pole-tier-default[_ngcontent-%COMP%] {\n      background: #4D4D4D; }\n  [_nghost-%COMP%]   .bx-lpl-prizes[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%]   .prize-details[_ngcontent-%COMP%] {\n    margin-top: 1em;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    text-align: center; }"]}),e})(),Gi=(()=>{class e{transform(e,t){return e.sort(((e,t)=>+e.rank-+t.rank)),e}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i["ɵɵdefinePipe"]({name:"prizesSortPipe",type:e,pure:!0}),e})(),Hi=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[fi,vi],imports:[[r.CommonModule,bt.a,ui,ai,ri]]}),e})();i["ɵɵsetComponentScope"](Ci,[Se.P,hi,r.NgForOf,Vi],[Gi]);let zi=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule]]}),e})(),$i=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a,ai,zi]]}),e})(),Wi=(()=>{class e{constructor(){}getHowToEarnPoints(e){const t=e.engines.find((t=>+t.gameId===e.games[0].id));let n;if(t)switch(n=[],t.type){case"baccarat":n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.any-points",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-baccarat2.svg",data:{points:t.rewardedPoints.win}}),n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.any-push",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-baccarat1.svg",data:{points:t.rewardedPoints.push}});break;case"blackjack":n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.win",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-blackjack1.svg",data:{points:t.rewardedPoints.win}}),n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.push",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-blackjack2.svg",data:{points:t.rewardedPoints.push}}),n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.blackjack",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-blackjack3.svg",data:{points:t.rewardedPoints.blackjack}});break;case"slots":n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.win",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-slots1.svg",data:{points:t.rewardedPoints.win}}),n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.big-win",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-slots2.svg",data:{points:t.rewardedPoints.bigwin}}),n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.mega-win",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-slots3.svg",data:{points:t.rewardedPoints.megawin}});break;case"roulette":n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.win-medium",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-roulette1.svg",data:{points:t.rewardedPoints.win_medium}}),n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.win-high",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-roulette2.svg",data:{points:t.rewardedPoints.win_high}}),n.push({desc:"leaderboardLeaderboardMode.how-to-earn.title.win-max",points:"leaderboardLeaderboardMode.how-to-earn.label.pts",imgUrl:"assets/images/earn-roulette3.svg",data:{points:t.rewardedPoints.win_max}})}return n}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),qi=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Wi],imports:[[r.CommonModule,bt.a,oi,$i,Hi,ri]]}),e})(),Ki=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a]]}),e})(),Xi=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule]]}),e})(),Yi=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a]]}),e})();function Ji(e,t){1&e&&i["ɵɵelement"](0,"bx-lbi-spinner")}function Qi(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-lbi-final-ranking-position",4),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("prizesInfo",e.prizesInfo)("finalPosition",e.finalPosition)}}function Zi(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",8),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"button",9),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onYourPrize()})),i["ɵɵtext"](3,"\n                        leaderboardShared.label.your-prize\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementEnd"]()}}function er(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",5),i["ɵɵtext"](1,"\n                "),i["ɵɵprojection"](2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"bx-lbi-final-ranking-table",6),i["ɵɵtext"](5,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n\n                "),i["ɵɵtemplate"](7,Zi,5,0,"div",7),i["ɵɵtext"](8,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](4),i["ɵɵproperty"]("ranking",e.players)("prizesInfo",e.prizesInfo),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",e.userPrize)}}const tr=["*"];let nr=(()=>{class e{constructor(e,t){this.prizeInfoService=e,this.cd=t,this.showLoading=!0,this.showRankingTable=!1,this.finalPosition=-1,this.onYourPrizeClick=new i.EventEmitter}ngOnChanges(e){if(this.prizesInfo||(this.prizesInfo=this.prizeInfoService.getPrizesPole(this.tournament.prizes)),e.ranking&&e.ranking.currentValue)if(e.ranking.currentValue.finished){this.showLoading=!1,this.players=e.ranking.currentValue.ranking;const t=this.getCurrentPlayerInfo(this.players);t&&t.rank&&(this.finalPosition=t.rank,this.userPrize=this.getCurrentPlayerPrizeInfo(t.rank)),this.delayedRanking()}else this.finalPosition=-1,this.showLoading=!0}ngOnDestroy(){clearTimeout(this.finalRankingTableTimeout)}onYourPrize(){const e=this.getCurrentPlayerPrizeInfo(this.finalPosition);e&&this.onYourPrizeClick.emit(e.type)}getCurrentPlayerPrizeInfo(e){return this.prizesInfo[e-1]}getCurrentPlayerInfo(e){return e.find((e=>"YOU"===e.name&&e.completed))}delayedRanking(){this.finalRankingTableTimeout=setTimeout((()=>{this.showRankingTable=!0,this.cd.detectChanges(),clearTimeout(this.finalRankingTableTimeout)}),5e3)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](fi),i["ɵɵdirectiveInject"](i.ChangeDetectorRef))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-final-ranking"]],inputs:{tournament:"tournament",ranking:"ranking"},outputs:{onYourPrizeClick:"onYourPrizeClick"},features:[i["ɵɵNgOnChangesFeature"]],ngContentSelectors:tr,decls:10,vars:3,consts:[[1,"bx-lbi-final-ranking"],[4,"ngIf"],[3,"prizesInfo","finalPosition",4,"ngIf"],["class","final-ranking-container",4,"ngIf"],[3,"prizesInfo","finalPosition"],[1,"final-ranking-container"],[3,"ranking","prizesInfo"],["class","your-prize",4,"ngIf"],[1,"your-prize"],["type","button",1,"custom-cta","primary",3,"bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Ji,1,0,"bx-lbi-spinner",1),i["ɵɵtext"](4,"\n\n            "),i["ɵɵtemplate"](5,Qi,2,2,"bx-lbi-final-ranking-position",2),i["ɵɵtext"](6,"\n\n            "),i["ɵɵtemplate"](7,er,9,3,"div",3),i["ɵɵtext"](8,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.showLoading&&!t.showRankingTable),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.showLoading&&!t.showRankingTable),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.showRankingTable))},styles:["[_nghost-%COMP%] {\n  flex: 1 1 100%;\n  align-items: center;\n  justify-content: center;\n  display: flex;\n  height: 100%; }\n  [_nghost-%COMP%]   .bx-lbi-final-ranking[_ngcontent-%COMP%] {\n    display: flex;\n    flex: 1 1 100%; }\n  [_nghost-%COMP%]   .bx-lbi-final-ranking[_ngcontent-%COMP%]    > *[_ngcontent-%COMP%] {\n      flex: 1 1 100%; }\n  [_nghost-%COMP%]   .bx-lbi-final-ranking[_ngcontent-%COMP%]   .final-ranking-container[_ngcontent-%COMP%]   .your-prize[_ngcontent-%COMP%] {\n      padding: 0px 15px 14px; }\n  [_nghost-%COMP%]   .bx-lbi-final-ranking[_ngcontent-%COMP%]   .final-ranking-container[_ngcontent-%COMP%]   .your-prize[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n        width: 100%; }\n  [_nghost-%COMP%]   .bx-lbi-final-ranking[_ngcontent-%COMP%]   .icon-title[_ngcontent-%COMP%] {\n      display: flex;\n      justify-content: flex-end;\n      cursor: pointer; }\n  [_nghost-%COMP%]   .bx-lbi-final-ranking[_ngcontent-%COMP%]   .icon-title[_ngcontent-%COMP%]   .icon-close[_ngcontent-%COMP%]:before {\n        font-size: 1.7em; }"],changeDetection:0}),e})();function ir(e,t){1&e&&(i["ɵɵnamespaceSVG"](),i["ɵɵelementStart"](0,"svg",14),i["ɵɵtext"](1,"\n                        "),i["ɵɵelement"](2,"use",15),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"]())}function rr(e,t){1&e&&(i["ɵɵnamespaceSVG"](),i["ɵɵnamespaceHTML"](),i["ɵɵelementStart"](0,"p",16),i["ɵɵtext"](1,"\n                        leaderboardFinalRanking.label.prizes\n                    "),i["ɵɵelementEnd"]())}function or(e,t){1&e&&(i["ɵɵnamespaceSVG"](),i["ɵɵnamespaceHTML"](),i["ɵɵelementStart"](0,"p",17),i["ɵɵtext"](1,"\n                        leaderboardFinalRanking.label.no-prizes\n                    "),i["ɵɵelementEnd"]())}const ar=function(){return{rank:" "}},sr=function(e,t){return{tag:"textContent",values:e,label:t}};function cr(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"div",3),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,ir,4,0,"svg",4),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementStart"](6,"h1",5),i["ɵɵtext"](7,"\n                        leaderboardFinalRanking.label.ranked\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementStart"](9,"div",6),i["ɵɵtext"](10,"\n                        "),i["ɵɵnamespaceSVG"](),i["ɵɵelementStart"](11,"svg",7),i["ɵɵtext"](12,"\n                            "),i["ɵɵelement"](13,"use",8),i["ɵɵtext"](14,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                        "),i["ɵɵnamespaceHTML"](),i["ɵɵelementStart"](16,"h1",9),i["ɵɵtext"](17),i["ɵɵelement"](18,"sup",10),i["ɵɵpipe"](19,"ordinal"),i["ɵɵtext"](20,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n                        "),i["ɵɵnamespaceSVG"](),i["ɵɵelementStart"](22,"svg",11),i["ɵɵtext"](23,"\n                            "),i["ɵɵelement"](24,"use",8),i["ɵɵtext"](25,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n                    "),i["ɵɵtemplate"](28,rr,2,0,"p",12),i["ɵɵtext"](29,"\n                    "),i["ɵɵtemplate"](30,or,2,0,"p",13),i["ɵɵtext"](31,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](32,"\n            "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",e.classPosition),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.hasPrize),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngClass",e.classPosition),i["ɵɵadvance"](7),i["ɵɵproperty"]("ngClass",e.classPosition),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                            ",e.finalPosition,""),i["ɵɵadvance"](1),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](11,sr,i["ɵɵpureFunction0"](10,ar),i["ɵɵpipeBind1"](19,8,e.finalPosition))),i["ɵɵadvance"](10),i["ɵɵproperty"]("ngIf",e.hasPrize),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e.hasPrize)}}function lr(e,t){1&e&&(i["ɵɵelementStart"](0,"h2",18),i["ɵɵtext"](1,"\n                leaderboardFinalRanking.label.no-requeriments\n            "),i["ɵɵelementEnd"]())}let dr=(()=>{class e{constructor(){}get hasPrize(){return!!(this.finalPosition>0&&this.prizesInfo[this.finalPosition-1])}ngOnInit(){this.classPosition=this.getPlayerPolePosition()}getPlayerPolePosition(){let e;if(this.prizesInfo&&this.prizesInfo.length&&this.prizesInfo[this.finalPosition-1])switch(this.prizesInfo[this.finalPosition-1].rank){case"1":e="pole-tier-one";break;case"2":e="pole-tier-two";break;case"3":e="pole-tier-three";break;default:e="pole-tier-default"}return e}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-final-ranking-position"]],inputs:{finalPosition:"finalPosition",prizesInfo:"prizesInfo"},decls:8,vars:2,consts:[[1,"bx-lbi-final-ranking-position"],[4,"ngIf"],["class","h2-heading text no-requeriments",3,"bxTranslate",4,"ngIf"],[1,"position-container",3,"ngClass"],["class","cup",4,"ngIf"],[1,"h1-heading","text","header",3,"bxTranslate"],[1,"ranking-mode",3,"ngClass"],["width","30.69","height","65.75",1,"left-wing"],[0,"xlink","href","/assets/images/wing-regular-left.svg#wing_icon"],[1,"h1-heading","text","label-position",3,"ngClass"],[1,"label-position-sup",3,"bxTranslate"],["width","30.69","height","65.75",1,"right-wing","rotate-horizontal"],["class","text prizes",3,"bxTranslate",4,"ngIf"],["class","text no-prizes",3,"bxTranslate",4,"ngIf"],[1,"cup"],[0,"xlink","href","/assets/images/cup.svg#Layer_1"],[1,"text","prizes",3,"bxTranslate"],[1,"text","no-prizes",3,"bxTranslate"],[1,"h2-heading","text","no-requeriments",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,cr,33,14,"ng-container",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,lr,2,0,"h2",2),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.finalPosition>0),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.finalPosition<1))},directives:[r.NgIf,r.NgClass,Se.P],pipes:[Ei],styles:[".bx-lbi-final-ranking-position[_ngcontent-%COMP%] {\n  height: 100%;\n  background: rgba(0, 0, 0, 0.9);\n  display: flex;\n  align-items: center;\n  justify-content: center; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .pole-tier-one[_ngcontent-%COMP%] {\n    color: #BBA41D;\n    fill: #BBA41D; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .pole-tier-two[_ngcontent-%COMP%] {\n    color: #B9B9BC;\n    fill: #B9B9BC; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .pole-tier-three[_ngcontent-%COMP%] {\n    color: #BD8756;\n    fill: #BD8756; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .pole-tier-default[_ngcontent-%COMP%] {\n    color: #FFFFFF;\n    fill: #FFFFFF; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%] {\n    text-align: center; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .text.header[_ngcontent-%COMP%] {\n      margin: 16px 0px; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .text.no-requeriments[_ngcontent-%COMP%] {\n      text-transform: uppercase; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .text.prizes[_ngcontent-%COMP%], .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .text.no-prizes[_ngcontent-%COMP%] {\n      text-transform: lowercase;\n      margin-top: 16px; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .rotate-horizontal[_ngcontent-%COMP%] {\n    transform: scaleX(-1); }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .ranking-mode[_ngcontent-%COMP%] {\n    display: flex;\n    justify-content: center;\n    align-content: center; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .ranking-mode[_ngcontent-%COMP%]   .ranking-position[_ngcontent-%COMP%], .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .ranking-mode[_ngcontent-%COMP%]   .label-position[_ngcontent-%COMP%] {\n      margin: auto 10px; }\n  .bx-lbi-final-ranking-position[_ngcontent-%COMP%]   .ranking-mode[_ngcontent-%COMP%]   .label-position[_ngcontent-%COMP%]   .label-position-sup[_ngcontent-%COMP%] {\n      font-size: 18px;\n      vertical-align: super; }"],changeDetection:0}),e})();var ur=n(76547);const pr=(0,ur.trigger)("fade",[(0,ur.transition)(":enter",[(0,ur.style)({opacity:0}),(0,ur.animate)("300ms",(0,ur.style)({opacity:1}))]),(0,ur.transition)(":leave",[(0,ur.style)({opacity:1}),(0,ur.animate)("500ms",(0,ur.style)({opacity:0}))])]),hr=(0,ur.trigger)("overlay-msg",[(0,ur.transition)(":enter",[(0,ur.style)({transform:"translateY(15px)"}),(0,ur.animate)("200ms",(0,ur.style)({transform:"translateY(0)"}))]),(0,ur.transition)(":leave",[(0,ur.style)({transform:"translateY(0)"}),(0,ur.animate)("300ms",(0,ur.style)({opacity:0}))])]),mr=(0,ur.trigger)("arrow-up",[(0,ur.transition)(":enter",[(0,ur.style)({transform:"translateY(15px)"}),(0,ur.animate)("300ms",(0,ur.style)({transform:"translateY(0)"}))]),(0,ur.transition)(":leave",[(0,ur.style)({opacity:1}),(0,ur.animate)("100ms",(0,ur.style)({opacity:0}))])]);function gr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelement"](2,"i"),i["ɵɵtext"](3,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵclassMapInterpolate1"]("blink icon icon-arrow-up i",e,""),i["ɵɵproperty"]("@arrow-up",void 0)}}const fr=function(){return[1,2,3]};let vr=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-widget-arrows-up"]],decls:3,vars:2,consts:[["class","bx-lbi-widget-arrows-up",4,"ngFor","ngForOf"],[1,"bx-lbi-widget-arrows-up"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,gr,4,4,"span",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngForOf",i["ɵɵpureFunction0"](1,fr)))},directives:[r.NgForOf],styles:["@keyframes blink {\n  to {\n    visibility: hidden; } }\n\n.bx-lbi-widget-arrows-up[_ngcontent-%COMP%] {\n  position: relative; }\n\n.bx-lbi-widget-arrows-up[_ngcontent-%COMP%]   .blink[_ngcontent-%COMP%] {\n    animation-name: blink;\n    animation-duration: 0.5s;\n    animation-timing-function: steps(5, start);\n    animation-iteration-count: infinite; }\n\n.bx-lbi-widget-arrows-up[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n    position: absolute;\n    font-size: 0.6em;\n    left: -13px; }\n\n.bx-lbi-widget-arrows-up[_ngcontent-%COMP%]   i.i1[_ngcontent-%COMP%] {\n      top: 0; }\n\n.bx-lbi-widget-arrows-up[_ngcontent-%COMP%]   i.i2[_ngcontent-%COMP%] {\n      top: 4px; }\n\n.bx-lbi-widget-arrows-up[_ngcontent-%COMP%]   i.i3[_ngcontent-%COMP%] {\n      top: 8px; }"],data:{animation:[mr]},changeDetection:0}),e})();function br(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                ",e.player.rank,"\n            ")}}function yr(e,t){1&e&&i["ɵɵtext"](0,"\n                -\n            ")}let Cr=(()=>{class e{constructor(){}ngOnChanges(){this.player.completed&&this.getPlayerPolePosition()}getPlayerPolePosition(){if(this.prizes&&this.prizes.length&&this.prizes[this.player.rank-1])switch(this.prizes[this.player.rank-1].rank){case"1":this.polePosition="pole-tier-one";break;case"2":this.polePosition="pole-tier-two";break;case"3":this.polePosition="pole-tier-three";break;default:this.polePosition="pole-tier-default"}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-badge"]],inputs:{player:"player",prizes:"prizes"},features:[i["ɵɵNgOnChangesFeature"]],decls:9,vars:3,consts:[[1,"bx-leaderboard-badge",3,"ngClass"],[4,"ngIf","ngIfElse"],["no_complete",""]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"span",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,br,2,1,"ng-container",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,yr,1,0,"ng-template",null,2,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](7,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n    ")),2&e){const e=i["ɵɵreference"](6);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",t.polePosition),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.player.completed)("ngIfElse",e)}},directives:[r.NgClass,r.NgIf],styles:["[_nghost-%COMP%]   .bx-leaderboard-badge[_ngcontent-%COMP%] {\n  border-radius: 500px 500px 500px 500px;\n  width: 32px;\n  height: 20px;\n  display: flex;\n  align-items: center;\n  justify-content: center; }\n  [_nghost-%COMP%]   .bx-leaderboard-badge.pole-tier-one[_ngcontent-%COMP%] {\n    background: #C29D31;\n    color: #FFFFFF; }\n  [_nghost-%COMP%]   .bx-leaderboard-badge.pole-tier-two[_ngcontent-%COMP%] {\n    background: #808080;\n    color: #FFFFFF; }\n  [_nghost-%COMP%]   .bx-leaderboard-badge.pole-tier-three[_ngcontent-%COMP%] {\n    background: #C76B00;\n    color: #FFFFFF; }\n  [_nghost-%COMP%]   .bx-leaderboard-badge.pole-tier-default[_ngcontent-%COMP%] {\n    background: #4D4D4D;\n    color: #FFFFFF; }"]}),e})();const Sr=["header"],xr=function(e,t){return{points:e,position:t}},wr=function(e){return{tag:"textContent",values:e,label:"leaderboardRankings.table.win"}},Er=function(e){return[e]};function Ir(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",15),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"span",7),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("@overlay-msg",void 0),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](7,Er,i["ɵɵpureFunction1"](5,wr,i["ɵɵpureFunction2"](2,xr,e.pointsEarned,e.positionsMovedUp))))}}function Pr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",13),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,Ir,5,9,"div",14),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngStyle",e.msgStyle)("@fade",void 0),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.showRowMsg)}}const Tr=function(e){return{"lb-hidden-xs":e}};function _r(e,t){if(1&e&&(i["ɵɵelementStart"](0,"th",8),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"span",7),i["ɵɵtext"](3,"\n                                leaderboardRankings.table.header.spins\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,Tr,!e.deviceService.isDesktop()))}}function Mr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"th",8),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"span",7),i["ɵɵtext"](3,"\n                                leaderboardRankings.table.header.hands\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,Tr,!e.deviceService.isDesktop()))}}function Or(e,t){1&e&&(i["ɵɵelementStart"](0,"th"),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"span",7),i["ɵɵtext"](3,"\n                                leaderboardRankings.table.header.prize\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementEnd"]())}const Ar=function(e){return{blink:e}};function kr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",23),i["ɵɵtext"](1,"\n                                        "),i["ɵɵelementStart"](2,"bx-lbi-medal-ribbon",24),i["ɵɵtext"](3,"\n                                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2),t=e.$implicit,n=e.index,r=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("rank",t.rank)("ngClass",i["ɵɵpureFunction1"](2,Ar,r.highlightRow===n))}}function jr(e,t){1&e&&i["ɵɵelement"](0,"bx-lbi-widget-arrows-up")}const Nr=function(e){return{prize:e}},Rr=function(e){return{rank:e}},Dr=function(e){return{tag:"textContent",values:e,label:"leaderboardRankings.table.consonant"}};function Lr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",8),i["ɵɵtext"](1,"\n                                        "),i["ɵɵtemplate"](2,jr,1,0,"bx-lbi-widget-arrows-up",10),i["ɵɵtext"](3,"\n                                        "),i["ɵɵelement"](4,"span",7),i["ɵɵtext"](5,"\n                                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2),t=e.index,n=e.$implicit,r=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](3,Nr,r.highlightRow===t)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",r.highlightRow===t),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](9,Er,i["ɵɵpureFunction1"](7,Dr,i["ɵɵpureFunction1"](5,Rr,n.rank))))}}function Fr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",8),i["ɵɵtext"](1,"\n                                        "),i["ɵɵelementStart"](2,"span"),i["ɵɵtext"](3,"-"),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2).index,t=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,Nr,t.highlightRow===e))}}function Br(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"td"),i["ɵɵtext"](3,"\n                                    "),i["ɵɵtemplate"](4,kr,5,4,"div",22),i["ɵɵtext"](5,"\n                                    "),i["ɵɵtemplate"](6,Lr,6,11,"span",9),i["ɵɵtext"](7,"\n                                    "),i["ɵɵtemplate"](8,Fr,5,3,"span",9),i["ɵɵtext"](9,"\n                                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                            "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",e.completed&&e.rank<4),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.completed&&e.rank>3),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e.completed)}}function Ur(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-lbi-widget-arrows-up",27),i["ɵɵtext"](1,"\n                                    "),i["ɵɵelementEnd"]())}function Vr(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                                "),i["ɵɵelementStart"](1,"td",6),i["ɵɵtext"](2,"\n                                    "),i["ɵɵelementStart"](3,"bx-leaderboard-badge",25),i["ɵɵtext"](4,"\n                                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n                                    "),i["ɵɵtemplate"](6,Ur,2,0,"bx-lbi-widget-arrows-up",26),i["ɵɵtext"](7,"\n                                "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                            ")),2&e){const e=i["ɵɵnextContext"](),t=e.$implicit,n=e.index,r=i["ɵɵnextContext"](2);i["ɵɵadvance"](3),i["ɵɵproperty"]("player",t)("prizes",r.prizesInfo),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",r.highlightRow===n)}}function Gr(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                                    "),i["ɵɵelement"](2,"i",28),i["ɵɵtext"](3,"\n                                    "),i["ɵɵelementStart"](4,"span",7),i["ɵɵtext"](5,"\n                                        leaderboardRankings.table.player\n                                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                                "),i["ɵɵelementContainerEnd"]())}function Hr(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                                    "),i["ɵɵelementStart"](1,"span"),i["ɵɵtext"](2),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                                ")),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵadvance"](2),i["ɵɵtextInterpolate"](e.name)}}function zr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"td",8),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"span"),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit,t=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,Tr,!t.deviceService.isDesktop())),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.spins)}}function $r(e,t){if(1&e&&(i["ɵɵelementStart"](0,"td",8),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"span"),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit,t=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,Tr,!t.deviceService.isDesktop())),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.hands)}}function Wr(e,t){1&e&&i["ɵɵelement"](0,"bx-lbi-widget-arrows-up")}const qr=function(e,t){return{tag:"textContent",values:e,label:t}};function Kr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",7),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2).index,t=i["ɵɵnextContext"](2);i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](1,qr,t.prizesInfo[e].data,t.prizesInfo[e].title))}}function Xr(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"span"),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                                "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](2).index,t=i["ɵɵnextContext"](2);i["ɵɵadvance"](3),i["ɵɵtextInterpolate2"]("",t.prizesInfo[e].data.rewardPoints," ",t.loyaltyStore.programRewardName,"")}}function Yr(e,t){if(1&e&&i["ɵɵelement"](0,"span",7),2&e){const e=i["ɵɵnextContext"](3).index,t=i["ɵɵnextContext"](2);i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction2"](1,qr,t.prizesInfo[e].data,t.prizesInfo[e].description))}}function Jr(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                                    "),i["ɵɵtemplate"](1,Yr,1,4,"span",30),i["ɵɵtext"](2,"\n                                ")),2&e){const e=i["ɵɵnextContext"](2).index,t=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.prizesInfo[e])}}function Qr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"td",29),i["ɵɵtext"](1,"\n                                "),i["ɵɵtemplate"](2,Kr,2,4,"span",30),i["ɵɵtext"](3,"\n                                "),i["ɵɵtemplate"](4,Xr,5,2,"ng-container",16),i["ɵɵtext"](5,"\n                                "),i["ɵɵtemplate"](6,Jr,3,1,"ng-template",null,31,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](8,"\n                            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵreference"](7),t=i["ɵɵnextContext"]().index,n=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",n.prizesInfo[t]),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",n.prizesInfo[t]&&"LOYALTY"===n.prizesInfo[t].type&&n.prizesInfo[t].data.rewardPoints&&n.loyaltyStore.programRewardName)("ngIfElse",e)}}function Zr(e,t){1&e&&(i["ɵɵelementStart"](0,"td",32),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"span",7),i["ɵɵtext"](3,"leaderboardRankings.table.not-completed"),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                            "),i["ɵɵelementEnd"]())}const eo=function(e,t){return{highlight:e,ranked:t}},to=function(e){return{left:e}};function no(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"tr",8),i["ɵɵtext"](3,"\n                            "),i["ɵɵtemplate"](4,Br,11,3,"ng-container",16),i["ɵɵtext"](5,"\n                            "),i["ɵɵtemplate"](6,Vr,9,3,"ng-template",null,17,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](8,"\n                            "),i["ɵɵelementStart"](9,"td",18),i["ɵɵtext"](10,"\n                                "),i["ɵɵtemplate"](11,Gr,7,0,"ng-container",16),i["ɵɵtext"](12,"\n\n                                "),i["ɵɵtemplate"](13,Hr,4,1,"ng-template",null,19,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](15,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                            "),i["ɵɵtemplate"](17,zr,5,4,"td",9),i["ɵɵtext"](18,"\n                            "),i["ɵɵtemplate"](19,$r,5,4,"td",9),i["ɵɵtext"](20,"\n                            "),i["ɵɵelementStart"](21,"td"),i["ɵɵtext"](22,"\n                                "),i["ɵɵelementStart"](23,"span",8),i["ɵɵtext"](24,"\n                                    "),i["ɵɵtemplate"](25,Wr,1,0,"bx-lbi-widget-arrows-up",10),i["ɵɵtext"](26),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](28,"\n                            "),i["ɵɵtemplate"](29,Qr,9,3,"td",20),i["ɵɵtext"](30,"\n                            "),i["ɵɵtemplate"](31,Zr,5,0,"td",21),i["ɵɵtext"](32,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](33,"\n                    "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit,n=t.index,r=i["ɵɵreference"](7),o=i["ɵɵreference"](14),a=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](13,eo,"YOU"===e.name,e.completed&&!a.leaderboard.isUnlimitedPrizesAvailable())),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!a.leaderboard.isUnlimitedPrizesAvailable())("ngIfElse",r),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](16,to,a.modal)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf","YOU"===e.name)("ngIfElse",o),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",a.ranking&&a.ranking.length>0&&void 0!==a.ranking[0].spins&&null!==a.ranking[0].spins),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",a.ranking&&a.ranking.length>0&&void 0!==a.ranking[0].hands&&null!==a.ranking[0].hands),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](18,Nr,a.highlightRow===n)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",a.highlightRow===n),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                                    ",e.points,"\n                                "),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",a.modal&&a.prizesInfo&&a.prizesInfo.length&&e.completed),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",a.modal&&a.prizesInfo&&a.prizesInfo.length&&!e.completed)}}const io=function(e){return{modal:e}};function ro(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",1),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Pr,4,3,"div",2),i["ɵɵtext"](3,"\n\n            "),i["ɵɵelementStart"](4,"table",3),i["ɵɵtext"](5,"\n                "),i["ɵɵelementStart"](6,"thead",4),i["ɵɵtext"](7,"\n                    "),i["ɵɵelementStart"](8,"tr",null,5),i["ɵɵtext"](10,"\n                        "),i["ɵɵelementStart"](11,"th",6),i["ɵɵtext"](12,"\n                            "),i["ɵɵelementStart"](13,"span",7),i["ɵɵtext"](14,"\n                                leaderboardRankings.table.header.rank\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                        "),i["ɵɵelementStart"](17,"th",8),i["ɵɵtext"](18,"\n                            "),i["ɵɵelementStart"](19,"span",7),i["ɵɵtext"](20,"\n                                leaderboardRankings.table.header.player\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                        "),i["ɵɵtemplate"](23,_r,5,3,"th",9),i["ɵɵtext"](24,"\n                        "),i["ɵɵtemplate"](25,Mr,5,3,"th",9),i["ɵɵtext"](26,"\n                        "),i["ɵɵelementStart"](27,"th"),i["ɵɵtext"](28,"\n                            "),i["ɵɵelementStart"](29,"span",7),i["ɵɵtext"](30,"\n                                leaderboardRankings.table.header.points\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](32,"\n                        "),i["ɵɵtemplate"](33,Or,5,0,"th",10),i["ɵɵtext"](34,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](35,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](36,"\n\n                "),i["ɵɵelementStart"](37,"tbody",11),i["ɵɵtext"](38,"\n                    "),i["ɵɵtemplate"](39,no,34,20,"ng-container",12),i["ɵɵtext"](40,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](41,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](42,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.showRowMsg),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](7,io,e.modal)),i["ɵɵadvance"](13),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](9,to,e.modal)),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",e.ranking&&e.ranking.length>0&&void 0!==e.ranking[0].spins&&null!==e.ranking[0].spins),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.ranking&&e.ranking.length>0&&void 0!==e.ranking[0].hands&&null!==e.ranking[0].hands),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngIf",e.modal&&e.prizesInfo&&e.prizesInfo.length),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngForOf",e.ranking)}}let oo=(()=>{class e{constructor(e,t,n,r){this.deviceService=e,this.leaderboard=t,this.loyaltyStore=n,this.cd=r,this.isMobile=!1,this.prizesInfo=[],this.highlightRow=-1,this.onPlayerMoveUp=new i.EventEmitter,this.onPlayerRank=new i.EventEmitter}ngOnChanges(e){if(e.ranking&&e.ranking.currentValue){e.ranking.currentValue.sort(((e,t)=>e.rank-t.rank));const t=e.ranking.currentValue.find((e=>"YOU"===e.name));let n;if(e.ranking.previousValue&&(n=e.ranking.previousValue.find((e=>"YOU"===e.name))),this.onPlayerRank.emit({current:t,previous:n}),t&&n){const i=e.ranking.currentValue.indexOf(t);let r=e.ranking.currentValue.slice(0,i);this.pointsEarned=(t.points-n.points).toString(),this.positionsMovedUp=(n.rank-t.rank).toString(),+this.pointsEarned>0&&+this.positionsMovedUp>0&&i>-1&&(this.onPlayerMoveUp.emit({points:+this.pointsEarned,position:+this.positionsMovedUp}),this.rowMessageAnimation(t,r,i))}}}rowMessageAnimation(e,t,n){const i=!this.leaderboard.isUnlimitedPrizesAvailable()&&e.rank>0&&e.rank<=3&&e.completed?52:32;let r=0;const{height:o}=this.header.nativeElement.getBoundingClientRect();t&&t.length&&t.forEach((e=>{e.rank&&e.completed&&!this.leaderboard.isUnlimitedPrizesAvailable()?r+=52:r+=32})),this.msgStyle={top:o+r+"px",height:i+"px"},this.showRowMsg=!0,setTimeout((()=>{this.showRowMsg=!1,this.highlightRow=n,this.cd.detectChanges(),setTimeout((()=>{this.highlightRow=-1,this.cd.detectChanges()}),2e3)}),1500)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Bt.U),i["ɵɵdirectiveInject"](ni),i["ɵɵdirectiveInject"](bi.r,8),i["ɵɵdirectiveInject"](i.ChangeDetectorRef))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-ranking-table"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Sr,5,i.ElementRef),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.header=e.first)}},inputs:{ranking:"ranking",prizesInfo:"prizesInfo",modal:"modal"},outputs:{onPlayerMoveUp:"onPlayerMoveUp",onPlayerRank:"onPlayerRank"},features:[i["ɵɵNgOnChangesFeature"]],decls:3,vars:1,consts:[["class","bx-lbi-ranking-table",4,"ngIf"],[1,"bx-lbi-ranking-table"],["class","overlay-msg-container",3,"ngStyle",4,"ngIf"],[1,"table-list","condensed","striped",3,"ngClass"],[1,"list-header"],["header",""],[1,"position"],[3,"bxTranslate"],[3,"ngClass"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"list-body"],[4,"ngFor","ngForOf"],[1,"overlay-msg-container",3,"ngStyle"],["class","overlay-msg",4,"ngIf"],[1,"overlay-msg"],[4,"ngIf","ngIfElse"],["unlimited_prizes",""],[1,"name",3,"ngClass"],["player_name",""],["class","right prize","colspan","3",4,"ngIf"],["class","right no-prize","colspan","3",4,"ngIf"],["class","medal-container",4,"ngIf"],[1,"medal-container"],[3,"rank","ngClass"],[3,"player","prizes"],["class","green-arrow",4,"ngIf"],[1,"green-arrow"],[1,"icon","icon-player"],["colspan","3",1,"right","prize"],[3,"bxTranslate",4,"ngIf"],["defaultLabel",""],["colspan","3",1,"right","no-prize"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,ro,43,11,"div",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.ranking))},directives:[r.NgIf,r.NgClass,Se.P,r.NgForOf,r.NgStyle,wi,vr,Cr],styles:["@keyframes blink {\n  to {\n    visibility: hidden; } }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%] {\n  position: relative; }\n\n@media screen and (max-width: 320px) {\n    .bx-lbi-ranking-table[_ngcontent-%COMP%]   .lb-hidden-xs[_ngcontent-%COMP%] {\n      display: none; } }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%] {\n    table-layout: auto; }\n\n@media screen and (max-width: 768px) {\n      .bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   th[_ngcontent-%COMP%] {\n        padding: 10px 5px; } }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   th[_ngcontent-%COMP%] {\n      white-space: nowrap; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   th[_ngcontent-%COMP%] {\n      vertical-align: middle; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child, .bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-child {\n        min-width: 30px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   td.position[_ngcontent-%COMP%], .bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   th.position[_ngcontent-%COMP%] {\n        min-width: 50px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%] {\n      height: auto; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%] {\n        height: 32px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.ranked[_ngcontent-%COMP%] {\n          height: 52px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.highlight[_ngcontent-%COMP%] {\n          font-weight: 600; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.highlight[_ngcontent-%COMP%]   td.name[_ngcontent-%COMP%] {\n            text-transform: uppercase;\n            white-space: nowrap; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.highlight[_ngcontent-%COMP%]   td.name[_ngcontent-%COMP%]   .icon-player[_ngcontent-%COMP%] {\n              font-size: 12px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.position[_ngcontent-%COMP%] {\n          display: flex;\n          align-items: center;\n          height: 32px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.position[_ngcontent-%COMP%]   bx-lbi-widget-arrows-up[_ngcontent-%COMP%] {\n            margin-left: 20px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list.modal[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%] {\n      height: 35px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list.modal[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(even) {\n        box-shadow: 0 0 0 0 transparent inset; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list.modal[_ngcontent-%COMP%]   tr.highlight[_ngcontent-%COMP%]   td.name[_ngcontent-%COMP%] {\n        text-transform: none; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list.modal[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%] {\n        padding: 5px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list.modal[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:last-child {\n          width: 100%;\n          text-align: right; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list.modal[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%] {\n        padding: 3px 5px; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .table-list.modal[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child {\n          width: 100%;\n          text-align: right; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .overlay-msg-container[_ngcontent-%COMP%] {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    z-index: 9;\n    width: 100%;\n    height: 32px;\n    position: absolute;\n    top: 32px;\n    left: 0; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .overlay-msg-container[_ngcontent-%COMP%]   .overlay-msg[_ngcontent-%COMP%] {\n      text-align: center;\n      text-transform: uppercase;\n      font-size: 1.3em;\n      font-weight: 600;\n      color: #FFFFFF; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .blink[_ngcontent-%COMP%] {\n    animation-name: blink;\n    animation-duration: 0.5s;\n    animation-timing-function: steps(5, start);\n    animation-iteration-count: infinite; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .green-arrow[_ngcontent-%COMP%], .bx-lbi-ranking-table[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%] {\n    color: #4CAF50; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .prize[_ngcontent-%COMP%] {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-end; }\n\n.bx-lbi-ranking-table[_ngcontent-%COMP%]   .no-prize[_ngcontent-%COMP%] {\n    color: #767980; }"],data:{animation:[pr,hr]},changeDetection:0}),e})();const ao=function(e,t,n){return{tierPoints:e,rewardPoints:t,loyaltyProgramName:n}},so=function(e){return{tag:"textContent",values:e,label:"leaderboardFinalRanking.label.prize-tier-reward-loyalty-program"}},co=function(e){return[e]};function lo(e,t){if(1&e&&i["ɵɵelement"](0,"div",9),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](7,co,i["ɵɵpureFunction1"](5,so,i["ɵɵpureFunction3"](1,ao,e.prizeInfo.data.tierPoints,e.prizeInfo.data.rewardPoints,e.loyaltyStore.programRewardName))))}}function uo(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                            "),i["ɵɵtemplate"](2,lo,1,9,"div",8),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.prizeInfo.data.tierPoints)}}const po=function(e){return{tag:"textContent",values:e,label:"leaderboardFinalRanking.label.prize-tier"}};function ho(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",13),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](3,co,i["ɵɵpureFunction1"](1,po,e.prizeInfo.data)))}}function mo(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span"),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](1),i["ɵɵtextInterpolate2"]("\n                                    ",e.prizeInfo.data.rewardPoints," ",e.loyaltyStore.programRewardName,"\n                                ")}}function go(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                            "),i["ɵɵelementStart"](1,"div",10),i["ɵɵtext"](2,"\n                                "),i["ɵɵtemplate"](3,ho,2,5,"span",11),i["ɵɵtext"](4,"\n                                "),i["ɵɵtemplate"](5,mo,2,2,"span",12),i["ɵɵtext"](6,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                        ")),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",e.prizeInfo.data.tierPoints),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.prizeInfo.data.rewardPoints)}}function fo(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,uo,4,1,"ng-container",4),i["ɵɵtext"](3,"\n                        "),i["ɵɵtemplate"](4,go,8,2,"ng-template",null,7,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵreference"](5),t=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.prizeInfo.data.tierPoints&&t.prizeInfo.data.rewardPoints)("ngIfElse",e)}}const vo=function(e,t){return{tag:"textContent",values:e,label:t}};function bo(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",9),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](4,co,i["ɵɵpureFunction2"](1,vo,e.prizeInfo.data,e.prizeLabel)))}}function yo(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                    "),i["ɵɵtemplate"](1,bo,2,6,"div",8),i["ɵɵtext"](2,"\n                ")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",e.prizeInfo)}}function Co(e,t){1&e&&(i["ɵɵelementStart"](0,"div",10),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"span",13),i["ɵɵtext"](3,"\n                        leaderboardFinalRanking.label.full-ranking\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementStart"](5,"span",14),i["ɵɵtext"](6,"\n                        leaderboardFinalRanking.link.casino\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                "),i["ɵɵelementEnd"]())}let So=(()=>{class e{constructor(e,t){this.loyaltyStore=e,this.finalRanking=t,this.modal=!1,this.prizeLabel="leaderboardFinalRanking.label.prize"}ngOnInit(){if(this.prizesInfo&&this.prizesInfo.length&&this.ranking){const e=this.finalRanking.getCurrentPlayerInfo(this.ranking);e&&(this.prizeInfo=this.finalRanking.getCurrentPlayerPrizeInfo(e.rank),this.prizeInfo&&this.prizeInfo.data&&this.prizeInfo.data.type&&"Loyalty Points"===this.prizeInfo.data.type&&(this.prizeInfo.data.tierPoints&&this.prizeInfo.data.rewardPoints?this.prizeLabel="leaderboardFinalRanking.label.prize-tier-reward":this.prizeInfo.data.tierPoints&&!this.prizeInfo.data.rewardPoints?this.prizeLabel="leaderboardFinalRanking.label.prize-tier":this.prizeLabel="leaderboardFinalRanking.label.prize-reward"))}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](bi.r,8),i["ɵɵdirectiveInject"](nr,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-final-ranking-table"]],inputs:{ranking:"ranking",prizesInfo:"prizesInfo"},decls:20,vars:6,consts:[[1,"bx-lbi-final-ranking-table","box-ranking-table"],[1,"ranking-table-container"],[3,"ranking","prizesInfo","modal"],[1,"ranking-table-prize-info"],[4,"ngIf","ngIfElse"],["defaultLabel",""],["class","label-prize",4,"ngIf"],["loyaltyDefault",""],["class","label-prize",3,"bxTranslate",4,"ngIf"],[1,"label-prize",3,"bxTranslate"],[1,"label-prize"],[3,"bxTranslate",4,"ngIf"],[4,"ngIf"],[3,"bxTranslate"],[1,"link",3,"bxTranslate"]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"bx-lbi-ranking-table",2),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n            "),i["ɵɵelementStart"](9,"div",3),i["ɵɵtext"](10,"\n                "),i["ɵɵtemplate"](11,fo,7,2,"ng-container",4),i["ɵɵtext"](12,"\n                "),i["ɵɵtemplate"](13,yo,3,1,"ng-template",null,5,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](15,"\n                "),i["ɵɵtemplate"](16,Co,8,0,"div",6),i["ɵɵtext"](17,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n    ")),2&e){const e=i["ɵɵreference"](14);i["ɵɵadvance"](5),i["ɵɵproperty"]("ranking",t.ranking)("prizesInfo",t.prizesInfo)("modal",t.modal),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",t.prizeInfo&&"LOYALTY"===t.prizeInfo.type&&t.loyaltyStore.programRewardName)("ngIfElse",e),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",!t.prizeInfo)}},directives:[oo,r.NgIf,Se.P],styles:[".bx-lbi-final-ranking-table[_ngcontent-%COMP%]   .ranking-table-prize-info[_ngcontent-%COMP%] {\n  padding: 16px 24px; }\n  .bx-lbi-final-ranking-table[_ngcontent-%COMP%]   .ranking-table-prize-info[_ngcontent-%COMP%]   .label-prize[_ngcontent-%COMP%] {\n    text-align: center; }\n  .bx-lbi-final-ranking-table[_ngcontent-%COMP%]   .ranking-table-prize-info[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%] {\n    text-decoration: underline; }"],changeDetection:0}),e})(),xo=(()=>{class e{constructor(){this.label="leaderboardShared.spinner.label.loading"}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-spinner"]],inputs:{label:"label"},decls:12,vars:1,consts:[[1,"bx-lbi-spinner"],[1,"loading-spinner"],[3,"bxTranslate"],[1,"icon","icon-loading"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"figure",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"figcaption",2),i["ɵɵtext"](6),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                "),i["ɵɵelement"](8,"i",3),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n    ")),2&e&&(i["ɵɵadvance"](6),i["ɵɵtextInterpolate"](t.label))},directives:[Se.P],styles:[".bx-lbi-spinner[_ngcontent-%COMP%] {\n  display: flex;\n  width: 100%;\n  flex-direction: row;\n  justify-content: center; }"],changeDetection:0}),e})(),wo=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a,Hi,$i,Yi,ui]]}),e})();i["ɵɵsetComponentScope"](nr,[r.NgIf,xo,dr,So,Se.P],[]);let Eo=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,Et.$Q]]}),e})(),Io=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a,ri]]}),e})();var Po=n(79952);let To=(()=>{class e{constructor(){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-picture"]],inputs:{imgSizeClass:"imgSizeClass",imageUrl:"imageUrl",imageTooltip:"imageTooltip"},decls:8,vars:3,consts:[[1,"thumb-container","game-thumbnail",3,"ngClass"],["src","assets/images/thumbnail.png",1,"img-placeholder","img-responsive"],["bxImage","",1,"img-responsive","img-game",3,"src","alt"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n            "),i["ɵɵelementStart"](1,"figure",0),i["ɵɵtext"](2,"\n                "),i["ɵɵelement"](3,"img",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelement"](5,"img",2),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",t.imgSizeClass),i["ɵɵadvance"](4),i["ɵɵproperty"]("src",t.imageUrl,i["ɵɵsanitizeUrl"])("alt",t.imageTooltip))},directives:[r.NgClass,Po.t],styles:["[_nghost-%COMP%]   .game-thumbnail[_ngcontent-%COMP%] {\n  padding: 0px;\n  margin: 0px; }\n  [_nghost-%COMP%]   .game-thumbnail[_ngcontent-%COMP%]   .img-responsive[_ngcontent-%COMP%] {\n    z-index: 1; }"]}),e})(),_o=(()=>{class e{constructor(){this.onTimerEnd=new i.EventEmitter,this.onNotify=new i.EventEmitter,this.timerSubs=new Array}ngOnInit(){this.counter=Math.max(this.timeMoment.diff((0,Vn.Z)(),"seconds"),0);const e=(0,s.timer)(0,1e3),t=e.pipe((0,c.map)((e=>this.counter-e)),(0,c.takeUntil)((0,s.timer)(1e3*this.counter+1e3))).subscribe((()=>{this.counter=Math.max(this.timeMoment.diff((0,Vn.Z)(),"seconds"),0),this.handleTime(this.counter)}),null,(()=>this.onTimerEnd.emit()));this.timerSubs.push(t),this.notifications&&this.notifications.length&&this.notifications.forEach((t=>{this.timerSubs.push(e.pipe((0,c.takeUntil)((0,s.timer)(1e3*t.time+1e3))).subscribe(null,null,(()=>this.onNotify.emit(t.data))))}))}ngOnDestroy(){this.timerSubs.forEach((e=>e.unsubscribe()))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Mo=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lpl-watch-colon"]],decls:8,vars:0,consts:[[1,"colon"],[1,"dot"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"div",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelement"](5,"div",1),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    "))},styles:["[_nghost-%COMP%]   .colon[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  justify-content: space-around;\n  padding: 0px 2px; }\n  [_nghost-%COMP%]   .colon[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%] {\n    width: 5px;\n    height: 5px;\n    border-radius: 50%; }\n  [_nghost-%COMP%]   .colon[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]:nth-child(1) {\n      margin-bottom: 2px; }\n  [_nghost-%COMP%]   .colon[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]:nth-child(2) {\n      margin-top: 2px; }"],changeDetection:0}),e})(),Oo=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lpl-watch-digit"]],inputs:{digit:"digit"},decls:7,vars:1,consts:[[1,"bx-lpl-watch-digit"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"span"),i["ɵɵtext"](4),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n    ")),2&e&&(i["ɵɵadvance"](4),i["ɵɵtextInterpolate"](t.digit))},styles:["[_nghost-%COMP%]   .bx-lpl-watch-digit[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  display: block; }"],changeDetection:0}),e})();function Ao(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",5),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.label)}}function ko(e,t){if(1&e&&i["ɵɵelement"](0,"bx-lpl-watch-digit",6),2&e){const e=t.$implicit;i["ɵɵproperty"]("digit",e)}}function jo(e,t){1&e&&i["ɵɵelement"](0,"bx-lpl-watch-colon")}function No(e,t){if(1&e&&i["ɵɵelement"](0,"bx-lpl-watch-digit",6),2&e){const e=t.$implicit;i["ɵɵproperty"]("digit",e)}}function Ro(e,t){if(1&e&&i["ɵɵelement"](0,"bx-lpl-watch-digit",6),2&e){const e=t.$implicit;i["ɵɵproperty"]("digit",e)}}let Do=(()=>{class e extends _o{constructor(e){super(),this.cd=e}ngOnInit(){super.ngOnInit(),this.parseClockTime(this.counter)}ngOnDestroy(){super.ngOnDestroy()}handleTime(e){this.parseClockTime(e),this.cd.detectChanges()}parseClockTime(e){let t,n;t=Math.floor(e/3600),this.hours=t>0?this.splitNumber(t):null,e-=3600*+t,n=Math.floor(e/60)%60,this.minutes=this.splitNumber(n),e-=Math.floor(+n/60)%60*60,this.seconds=this.splitNumber(Math.floor(e)%60)}splitNumber(e){let t;return t=e.toString().split(""),t.length<=1&&t.unshift("0"),t}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ChangeDetectorRef))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-watch-countdown"]],inputs:{timeMoment:"timeMoment",label:"label",notifications:"notifications"},outputs:{onTimerEnd:"onTimerEnd",onNotify:"onNotify"},features:[i["ɵɵInheritDefinitionFeature"]],decls:19,vars:5,consts:[[1,"bx-lb-watch-countdown"],["class","label",3,"bxTranslate",4,"ngIf"],[1,"countdownHolder"],[3,"digit",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"label",3,"bxTranslate"],[3,"digit"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Ao,2,1,"span",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,ko,1,1,"bx-lpl-watch-digit",3),i["ɵɵtext"](8,"\n\n                "),i["ɵɵtemplate"](9,jo,1,0,"bx-lpl-watch-colon",4),i["ɵɵtext"](10,"\n\n                "),i["ɵɵtemplate"](11,No,1,1,"bx-lpl-watch-digit",3),i["ɵɵtext"](12,"\n\n                "),i["ɵɵelement"](13,"bx-lpl-watch-colon"),i["ɵɵtext"](14,"\n\n                "),i["ɵɵtemplate"](15,Ro,1,1,"bx-lpl-watch-digit",3),i["ɵɵtext"](16,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.label),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngForOf",t.hours),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.hours),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",t.minutes),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngForOf",t.seconds))},directives:[r.NgIf,r.NgForOf,Mo,Se.P,Oo],styles:[".bx-lb-watch-countdown[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column; }\n  .bx-lb-watch-countdown[_ngcontent-%COMP%]   .countdownHolder[_ngcontent-%COMP%] {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    text-align: center; }\n  .bx-lb-watch-countdown[_ngcontent-%COMP%]   .countdownHolder[_ngcontent-%COMP%]    .colon {\n      display: block; }\n  .bx-lb-watch-countdown[_ngcontent-%COMP%]   .countdownHolder[_ngcontent-%COMP%]    .colon .dot {\n        width: 2px;\n        height: 2px; }\n  .bx-lb-watch-countdown[_ngcontent-%COMP%]   .countdownHolder[_ngcontent-%COMP%]    .colon .dot:nth-child(1) {\n          margin-bottom: 3px; }\n  .bx-lb-watch-countdown[_ngcontent-%COMP%]   .countdownHolder[_ngcontent-%COMP%]    .colon .dot:nth-child(2) {\n          margin-top: 3px; }"],changeDetection:0}),e})(),Lo=(()=>{class e extends _o{constructor(){super()}ngOnInit(){super.ngOnInit(),this.counter>0&&(this.currentStyles={"-webkit-animation-duration":this.counter+"s","-moz-animation-duration":this.counter+"s","-o-animation-duration":this.counter+"s","animation-duration":this.counter+"s"})}ngOnDestroy(){super.ngOnDestroy()}handleTime(e){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-clock-countdown"]],inputs:{timeMoment:"timeMoment",label:"label",notifications:"notifications"},outputs:{onTimerEnd:"onTimerEnd",onNotify:"onNotify"},features:[i["ɵɵInheritDefinitionFeature"]],decls:10,vars:3,consts:[[1,"bx-lb-clock-countdown"],[1,"spinner","pie",3,"ngStyle"],[1,"filler","pie",3,"ngStyle"],[1,"mask",3,"ngStyle"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"div",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelement"](5,"div",2),i["ɵɵtext"](6,"\n            "),i["ɵɵelement"](7,"div",3),i["ɵɵtext"](8,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngStyle",t.currentStyles),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngStyle",t.currentStyles),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngStyle",t.currentStyles))},directives:[r.NgStyle],styles:["@keyframes rota {\n  0% {\n    transform: rotate(0deg); }\n  100% {\n    transform: rotate(360deg); } }\n\n@keyframes opa {\n  0% {\n    opacity: 1; }\n  50%, 100% {\n    opacity: 0; } }\n\n.bx-lb-clock-countdown[_ngcontent-%COMP%] {\n  position: relative;\n  border-radius: 50%;\n  box-sizing: border-box;\n  width: 40px;\n  height: 40px; }\n\n.bx-lb-clock-countdown[_ngcontent-%COMP%]   .pie[_ngcontent-%COMP%] {\n    background: #CC0000;\n    width: 50%;\n    height: 100%;\n    transform-origin: 100% 50%;\n    position: absolute; }\n\n.bx-lb-clock-countdown[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%] {\n    border-radius: 100% 0 0 100% / 50% 0 0 50%;\n    z-index: 200;\n    border-right: none;\n    animation-name: rota;\n    animation-duration: 5s;\n    animation-timing-function: linear;\n    animation-iteration-count: infinite;\n    animation-fill-mode: forwards; }\n\n.bx-lb-clock-countdown[_ngcontent-%COMP%]   .filler[_ngcontent-%COMP%] {\n    border-radius: 0 100% 100% 0 / 0 50% 50% 0;\n    left: 50%;\n    opacity: 0;\n    z-index: 100;\n    border-left: none;\n    animation-name: opa;\n    animation-duration: 5s;\n    animation-timing-function: steps(1, end);\n    animation-iteration-count: infinite;\n    animation-fill-mode: forwards;\n    animation-direction: reverse; }\n\n.bx-lb-clock-countdown[_ngcontent-%COMP%]   .mask[_ngcontent-%COMP%] {\n    width: 50%;\n    height: 100%;\n    position: absolute;\n    background: inherit;\n    opacity: 1;\n    z-index: 300;\n    border-radius: 100% 0 0 100% / 50% 0 0 50%;\n    animation-name: opa;\n    animation-duration: 5s;\n    animation-timing-function: steps(1, end);\n    animation-iteration-count: infinite;\n    animation-fill-mode: forwards; }"],changeDetection:0}),e})(),Fo=(()=>{class e extends _o{constructor(){super()}ngOnInit(){super.ngOnInit(),this.counter>0&&(this.currentStyles={"-webkit-animation-duration":this.counter+"s","-moz-animation-duration":this.counter+"s","-o-animation-duration":this.counter+"s","animation-duration":this.counter+"s"})}ngOnDestroy(){super.ngOnDestroy()}handleTime(e){}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-bar-countdown"]],inputs:{timeMoment:"timeMoment",label:"label",notifications:"notifications"},outputs:{onTimerEnd:"onTimerEnd",onNotify:"onNotify"},features:[i["ɵɵInheritDefinitionFeature"]],decls:12,vars:1,consts:[[1,"bx-lb-bar-countdown"],[1,"custom-progress"],[1,"progress-bar"],[1,"progress-value",3,"ngStyle"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"figure",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelement"](7,"div",3),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n    ")),2&e&&(i["ɵɵadvance"](7),i["ɵɵproperty"]("ngStyle",t.currentStyles))},directives:[r.NgStyle],styles:["@keyframes width {\n  0% {\n    width: 0%; }\n  100% {\n    width: 100%; } }\n\n.green[_nghost-%COMP%]   .progress-value[_ngcontent-%COMP%], .green   [_nghost-%COMP%]   .progress-value[_ngcontent-%COMP%] {\n  background: #00FF00; }\n\n.red[_nghost-%COMP%]   .progress-value[_ngcontent-%COMP%], .red   [_nghost-%COMP%]   .progress-value[_ngcontent-%COMP%] {\n  background: #FF0000; }\n\n[_nghost-%COMP%]   .custom-progress[_ngcontent-%COMP%] {\n  display: block; }\n\n[_nghost-%COMP%]   .progress-value[_ngcontent-%COMP%] {\n  animation-name: width;\n  animation-duration: 5s;\n  animation-timing-function: linear;\n  animation-fill-mode: forwards; }"],changeDetection:0}),e})();function Bo(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",7),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                ",e.label,"\n            ")}}let Uo=(()=>{class e{constructor(e){this.cd=e,this.onCountdownEnd=new i.EventEmitter}ngOnInit(){this.countdown=Math.max(this.counter,0),this.timerSubs=(0,s.timer)(0,1e3).pipe((0,c.map)((e=>this.counter-e)),(0,c.takeUntil)((0,s.timer)(1e3*this.counter+1e3))).subscribe((e=>{this.countdown=Math.max(e,0),this.cd.detectChanges()}),null,(()=>this.onCountdownEnd.emit())),this.setClockTime(this.counter)}ngOnDestroy(){this.timerSubs&&this.timerSubs.unsubscribe()}setClockTime(e){e>0&&(this.currentStyles={"-webkit-animation-duration":e+"s","-moz-animation-duration":e+"s","-o-animation-duration":e+"s","animation-duration":e+"s"})}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ChangeDetectorRef))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-final-countdown"]],inputs:{counter:"counter",label:"label"},outputs:{onCountdownEnd:"onCountdownEnd"},decls:18,vars:5,consts:[[1,"bx-lb-final-countdown"],["class","label",3,"bxTranslate",4,"ngIf"],[1,"wrapper-countdown"],[1,"counter"],[1,"spinner","pie",3,"ngStyle"],[1,"filler","pie",3,"ngStyle"],[1,"mask",3,"ngStyle"],[1,"label",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Bo,2,1,"span",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                "),i["ɵɵelementStart"](7,"div",3),i["ɵɵtext"](8),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                "),i["ɵɵelement"](10,"div",4),i["ɵɵtext"](11,"\n                "),i["ɵɵelement"](12,"div",5),i["ɵɵtext"](13,"\n                "),i["ɵɵelement"](14,"div",6),i["ɵɵtext"](15,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.label),i["ɵɵadvance"](5),i["ɵɵtextInterpolate"](t.countdown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngStyle",t.currentStyles),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngStyle",t.currentStyles),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngStyle",t.currentStyles))},directives:[r.NgIf,r.NgStyle,Se.P],styles:["@keyframes rota {\n  0% {\n    transform: rotate(0deg); }\n  100% {\n    transform: rotate(360deg); } }\n\n@keyframes opa {\n  0% {\n    opacity: 1; }\n  50%, 100% {\n    opacity: 0; } }\n\n.green[_nghost-%COMP%]   div[_ngcontent-%COMP%]    > .wrapper-countdown[_ngcontent-%COMP%]   .pie[_ngcontent-%COMP%], .green   [_nghost-%COMP%]   div[_ngcontent-%COMP%]    > .wrapper-countdown[_ngcontent-%COMP%]   .pie[_ngcontent-%COMP%] {\n  border-color: #368031; }\n\n.red[_nghost-%COMP%]   div[_ngcontent-%COMP%]    > .wrapper-countdown[_ngcontent-%COMP%]   .pie[_ngcontent-%COMP%], .red   [_nghost-%COMP%]   div[_ngcontent-%COMP%]    > .wrapper-countdown[_ngcontent-%COMP%]   .pie[_ngcontent-%COMP%] {\n  border-color: #C50D00; }\n\n[_nghost-%COMP%] {\n  background: inherit; }\n\n[_nghost-%COMP%]   .bx-lb-final-countdown[_ngcontent-%COMP%] {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center; }\n\n[_nghost-%COMP%]   .bx-lb-final-countdown[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%] {\n      font-size: 10px;\n      text-transform: uppercase;\n      color: #808080; }\n\n[_nghost-%COMP%]   .bx-lb-final-countdown[_ngcontent-%COMP%]   .wrapper-countdown[_ngcontent-%COMP%] {\n      position: relative;\n      background: inherit;\n      border-radius: 50%;\n      box-sizing: border-box;\n      width: 32px;\n      height: 32px; }\n\n[_nghost-%COMP%]   .bx-lb-final-countdown[_ngcontent-%COMP%]   .wrapper-countdown[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%] {\n        position: absolute;\n        width: 100%;\n        text-align: center;\n        z-index: 6; }\n\n[_nghost-%COMP%]   .bx-lb-final-countdown[_ngcontent-%COMP%]   .wrapper-countdown[_ngcontent-%COMP%]   .pie[_ngcontent-%COMP%] {\n        width: 50%;\n        height: 100%;\n        transform-origin: 100% 50%;\n        position: absolute;\n        border-width: 2px;\n        border-style: solid;\n        background: inherit; }\n\n[_nghost-%COMP%]   .bx-lb-final-countdown[_ngcontent-%COMP%]   .wrapper-countdown[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%] {\n        border-radius: 100% 0 0 100% / 50% 0 0 50%;\n        z-index: 4;\n        border-right: none;\n        animation-name: rota;\n        animation-duration: 5s;\n        animation-timing-function: linear;\n        animation-fill-mode: forwards; }\n\n[_nghost-%COMP%]   .bx-lb-final-countdown[_ngcontent-%COMP%]   .wrapper-countdown[_ngcontent-%COMP%]   .filler[_ngcontent-%COMP%] {\n        border-radius: 0 100% 100% 0 / 0 50% 50% 0;\n        left: 50%;\n        opacity: 0;\n        z-index: 3;\n        border-left: none;\n        animation-name: opa;\n        animation-duration: 5s;\n        animation-timing-function: steps(1, end);\n        animation-fill-mode: forwards;\n        animation-direction: reverse; }\n\n[_nghost-%COMP%]   .bx-lb-final-countdown[_ngcontent-%COMP%]   .wrapper-countdown[_ngcontent-%COMP%]   .mask[_ngcontent-%COMP%] {\n        width: 50%;\n        height: 100%;\n        position: absolute;\n        background: inherit;\n        opacity: 1;\n        z-index: 5;\n        animation-name: opa;\n        animation-duration: 5s;\n        animation-timing-function: steps(1, end);\n        animation-fill-mode: forwards; }"],changeDetection:0}),e})();const Vo=function(e,t){return{"start-pending":e,started:t}};function Go(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lb-watch-countdown",3),i["ɵɵlistener"]("onTimerEnd",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onTimerCountdownEnd()}))("onNotify",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onTimerNotify(t)})),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](4,Vo,"start-pending"===e.countdownStatusObs.value,"started"===e.countdownStatusObs.value))("notifications",e.notifications)("timeMoment",e.timerMoment)("label",e.timerCountLabel)}}function Ho(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lb-clock-countdown",3),i["ɵɵlistener"]("onTimerEnd",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onTimerCountdownEnd()}))("onNotify",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onTimerNotify(t)})),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass","red")("notifications",e.notifications)("timeMoment",e.timerMoment)("label",e.timerCountLabel)}}function zo(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lb-bar-countdown",3),i["ɵɵlistener"]("onTimerEnd",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onTimerCountdownEnd()}))("onNotify",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onTimerNotify(t)})),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass","red")("notifications",e.notifications)("timeMoment",e.timerMoment)("label",e.timerCountLabel)}}const $o=function(e,t){return{green:e,red:t}};function Wo(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lb-final-countdown",4),i["ɵɵlistener"]("onCountdownEnd",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onFinalCountdownEnd()})),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("hidden","bar"===e.mode)("ngClass",i["ɵɵpureFunction2"](4,$o,"start-pending"===e.countdownStatusObs.value,"started"===e.countdownStatusObs.value))("counter",e.finalCounter)("label",e.finalCountLabel)}}let qo=(()=>{class e{constructor(e){this.leaderboardService=e,this.onLBEventStarted=new i.EventEmitter,this.onLBEventEnded=new i.EventEmitter,this.onLBCountEnd=new i.EventEmitter,this.onLBLateJoinEnd=new i.EventEmitter,this.onLBFinalCount=new i.EventEmitter,this.finalCounter=0,this.mode="watch"}ngOnInit(){const e=(0,Vn.Z)();this.startMoment=(0,Vn.Z)(this.startDate),this.endMoment=(0,Vn.Z)(this.endDate),this.endMoment.isBefore(e)||(this.startMoment.isAfter(e)?this.countdownStatusObs=new s.BehaviorSubject("start-pending"):(this.countdownStatusObs=new s.BehaviorSubject("started"),this.onLBEventStarted.emit())),this.countdownSub=this.countdownStatusObs.subscribe(this.countdownStatusControl.bind(this))}onFinalCountdownEnd(){"start-pending"===this.countdownStatusObs.value?(this.onLBEventStarted.emit(),this.countdownStatusObs.next("started")):"started"===this.countdownStatusObs.value&&this.onLBEventEnded.emit()}onTimerCountdownEnd(){this.onLBCountEnd.emit()}onTimerNotify(e){switch(e){case"final-count-start":this.showFinalCountdown=!0,this.onLBFinalCount.emit(),this.finalCounter=this.startMoment.diff((0,Vn.Z)(),"seconds");break;case"final-count-end":this.showFinalCountdown=!0,this.onLBFinalCount.emit(),this.finalCounter=this.endMoment.diff((0,Vn.Z)(),"seconds");break;case"late-join":this.onLBLateJoinEnd.emit()}}ngOnDestroy(){this.countdownSub&&this.countdownSub.unsubscribe()}countdownStatusControl(e){switch(e){case"start-pending":this.showFinalCountdown=!1,this.timerCountLabel="all"!==this.hideLabel&&"watch"!==this.hideLabel?"leaderboardShared.countdown.labels.start":"",this.finalCountLabel="all"!==this.hideLabel&&"countdown"!==this.hideLabel?"leaderboardShared.countdown.labels.start":"",this.notifications=[{time:this.startMoment.diff((0,Vn.Z)(),"seconds")-6,data:"final-count-start"}],this.timerMoment=this.startMoment;break;case"started":if(this.showFinalCountdown=!1,this.timerCountLabel="all"!==this.hideLabel&&"watch"!==this.hideLabel?"leaderboardShared.countdown.labels.remaining":"",this.finalCountLabel="all"!==this.hideLabel&&"countdown"!==this.hideLabel?"leaderboardShared.countdown.labels.end":"",this.notifications=[{time:this.endMoment.diff((0,Vn.Z)(),"seconds")-6,data:"final-count-end"}],!this.leaderboardService.isLateJoinDisabled()){const e=(0,Vn.Z)(this.startMoment).add(120,"seconds").diff((0,Vn.Z)(),"seconds"),t={time:e,data:"late-join"};e>0&&this.notifications.push(t)}this.timerMoment=this.endMoment}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ni))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lpl-lb-countdown"]],inputs:{startDate:"startDate",endDate:"endDate",hideLabel:"hideLabel",mode:"mode"},outputs:{onLBEventStarted:"onLBEventStarted",onLBEventEnded:"onLBEventEnded",onLBCountEnd:"onLBCountEnd",onLBLateJoinEnd:"onLBLateJoinEnd",onLBFinalCount:"onLBFinalCount"},decls:12,vars:4,consts:[[1,"bx-lpl-countdown"],[3,"ngClass","notifications","timeMoment","label","onTimerEnd","onNotify",4,"ngIf"],[3,"hidden","ngClass","counter","label","onCountdownEnd",4,"ngIf"],[3,"ngClass","notifications","timeMoment","label","onTimerEnd","onNotify"],[3,"hidden","ngClass","counter","label","onCountdownEnd"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Go,2,7,"bx-lb-watch-countdown",1),i["ɵɵtext"](4,"\n\n            "),i["ɵɵtemplate"](5,Ho,2,4,"bx-lb-clock-countdown",1),i["ɵɵtext"](6,"\n\n            "),i["ɵɵtemplate"](7,zo,2,4,"bx-lb-bar-countdown",1),i["ɵɵtext"](8,"\n\n            "),i["ɵɵtemplate"](9,Wo,2,7,"bx-lb-final-countdown",2),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf","watch"===t.mode&&!t.showFinalCountdown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf","clock"===t.mode&&!t.showFinalCountdown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf","bar"===t.mode&&!t.showFinalCountdown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.showFinalCountdown))},directives:[r.NgIf,Do,r.NgClass,Lo,Fo,Uo],styles:["[_nghost-%COMP%]   .bx-lpl-countdown[_ngcontent-%COMP%]     .label {\n  text-transform: uppercase;\n  white-space: nowrap; }"],changeDetection:0}),e})();function Ko(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"button",2),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().joinTournament()})),i["ɵɵtext"](3,"\n                        leaderboardShared.status-button.button.join\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n            "),i["ɵɵelementContainerEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.join)}}function Xo(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"button",5),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).joinTournament()})),i["ɵɵtext"](3,"\n                            leaderboardShared.status-button.button.late-join\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementContainerEnd"]()}if(2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.latejoin)}}function Yo(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵtext"](0,"\n                    "),i["ɵɵelementStart"](1,"button",2),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).joinTournament()})),i["ɵɵtext"](2,"\n                            leaderboardShared.status-button.button.join\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                ")}if(2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.join)}}function Jo(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,Xo,5,1,"ng-container",3),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,Yo,4,1,"ng-template",null,4,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n            "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵreference"](5),t=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.leaderboardService.isLateJoinDisabled())("ngIfElse",e)}}function Qo(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"button",6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().launchGame()})),i["ɵɵtext"](3,"\n                        leaderboardShared.status-button.button.launch-game\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"button",7),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().unjoinTournament()})),i["ɵɵtext"](6,"\n                    "),i["ɵɵelement"](7,"i",8),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementContainerEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.launch),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.unjoin),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.close)}}function Zo(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"button",6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().launchGame()})),i["ɵɵtext"](3,"\n                        leaderboardShared.status-button.button.launch-game\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"button",7),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().dismissTournament()})),i["ɵɵtext"](6,"\n                    "),i["ɵɵelement"](7,"i",8),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementContainerEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.launch),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.unjoin),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",null==e.cssConfig.statusButton?null:e.cssConfig.statusButton.close)}}let ea=(()=>{class e{constructor(e,t){this.leaderboardService=e,this.cssConfig=t,this.joinEvent=new i.EventEmitter,this.unjoinEvent=new i.EventEmitter,this.dismissEvent=new i.EventEmitter,this.launchGameEvent=new i.EventEmitter}joinTournament(){this.joinEvent.emit()}unjoinTournament(){this.unjoinEvent.emit()}dismissTournament(){this.dismissEvent.emit()}launchGame(){this.launchGameEvent.emit()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ni),i["ɵɵdirectiveInject"](Kn,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-status-button"]],inputs:{status:"status"},outputs:{joinEvent:"joinEvent",unjoinEvent:"unjoinEvent",dismissEvent:"dismissEvent",launchGameEvent:"launchGameEvent"},decls:12,vars:5,consts:[[1,"bx-lb-status-button",3,"ngSwitch"],[4,"ngSwitchCase"],["type","button",1,"custom-cta","join",3,"ngClass","bxTranslate","click"],[4,"ngIf","ngIfElse"],["no_latejoin",""],["type","button",1,"custom-cta","latejoin",3,"ngClass","bxTranslate","click"],["type","button",1,"custom-cta","launch",3,"ngClass","bxTranslate","click"],["type","button",1,"custom-cta","unjoin",3,"ngClass","click"],[1,"icon",3,"ngClass"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Ko,5,1,"ng-container",1),i["ɵɵtext"](4,"\n\n            "),i["ɵɵtemplate"](5,Jo,7,2,"ng-container",1),i["ɵɵtext"](6,"\n\n            "),i["ɵɵtemplate"](7,Qo,10,3,"ng-container",1),i["ɵɵtext"](8,"\n\n            "),i["ɵɵtemplate"](9,Zo,10,3,"ng-container",1),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngSwitch",t.status),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngSwitchCase","join"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngSwitchCase","late join"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngSwitchCase","joined"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngSwitchCase","inProgress"))},directives:[r.NgSwitch,r.NgSwitchCase,r.NgClass,Se.P,r.NgIf],styles:[".bx-lb-status-button[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: row; }\n  .bx-lb-status-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n    width: 100%; }\n  .bx-lb-status-button[_ngcontent-%COMP%]   button.unjoin[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      margin-left: 8px;\n      min-width: 24px;\n      max-width: 24px;\n      padding: 0px; }\n  .bx-lb-status-button[_ngcontent-%COMP%]   button.unjoin[_ngcontent-%COMP%]   .icon.icon-close[_ngcontent-%COMP%], .bx-lb-status-button[_ngcontent-%COMP%]   button.unjoin[_ngcontent-%COMP%]   .icon.icon-close2[_ngcontent-%COMP%] {\n        display: flex;\n        margin: auto;\n        font-size: 10px; }\n  .bx-lb-status-button[_ngcontent-%COMP%]   button.unjoin[_ngcontent-%COMP%]:before {\n        border: none; }\n  .bx-lb-status-button[_ngcontent-%COMP%]   button.launch[_ngcontent-%COMP%] {\n      min-width: 92px; }\n  .bx-lb-status-button[_ngcontent-%COMP%]   button.join[_ngcontent-%COMP%], .bx-lb-status-button[_ngcontent-%COMP%]   button.latejoin[_ngcontent-%COMP%] {\n      min-width: 124px; }"]}),e})(),ta=(()=>{class e{transform(e){return new Date(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵpipe=i["ɵɵdefinePipe"]({name:"toDatePipe",type:e,pure:!0}),e})(),na=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a,oi,Io,ui,ri,Et.$Q,Eo]]}),e})();i["ɵɵsetComponentScope"](kn,[r.NgIf,To,qo,r.NgTemplateOutlet,ea],[r.AsyncPipe,ta,di]),i["ɵɵsetComponentScope"](Rn,[r.NgIf,To,qo,r.NgTemplateOutlet,ea],[r.AsyncPipe,ta,di]);var ia=n(34207),ra=n(55183);let oa=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a,ri,ui,ia.$,Io,na,Et.$Q,Eo]]}),e})();i["ɵɵsetComponentScope"](Un,[r.NgIf,To,Se.P,Gn,ea],[r.AsyncPipe,ra.a,di]);let aa=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,bt.a,ui,ia.$,oi,ri,yt.M,Et.$Q,Eo]]}),e})(),sa=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[Xi,ui,ri,wo,oi,Hi,$i,Io,na,qi,aa,Ki,oa,zi,Eo],Xi,ui,ri,wo,oi,Hi,$i,Io,na,qi,aa,Ki,oa]}),e})(),ca=(()=>{class e{static withComponents(){return{ngModule:e}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,En.I,bt.a,qi,In.P,sa,Ki,ii]]}),e})();var la=n(37268),da=n(49485);let ua=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.cookieStorageService=t}isLeaderboardsAvailable(){return this.siteConfigService.getSiteConfig().leaderboards.enabled||"true"===this.cookieStorageService.get(e.LEADERBOARDS_COOKIE)}}return e.LEADERBOARDS_COOKIE="LEADERBOARDSENABLED",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](me.G))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),pa=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[ua],imports:[[r.CommonModule]]}),e})(),ha=(()=>{class e{constructor(e,t,n){this.gameService=e,this.contentNotFoundHandler=t,this.clsService=n}resolve(t,n){let i=t.params.slug,r=t.params.subcategory,o=t.params.category,a=t.data.mode;return this.gameService.getGameUrl(o,r,i,a).pipe((0,c.catchError)((t=>t.status===e.CONTENT_NOT_FOUND?this.contentNotFoundHandler.resolveContentNotFoundOrThrow(t):t.status===e.CURRENCY_NOT_SUPPORTED_ERROR?this.clsService.resolveCurrencyNotSupported():this.clsService.resolveCasinoGameUnexpectedError())))}}return e.CONTENT_NOT_FOUND=404,e.CURRENCY_NOT_SUPPORTED_ERROR=412,e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](cn),i["ɵɵinject"](dn.B),i["ɵɵinject"](Cn))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ma=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Qt,Zt,cn,on,ha,wn],imports:[[r.CommonModule,xt.U8,bt.a,da.s,la.z,Ct.d,Le.BrowserTransferStateModule,jt,pa,ca.withComponents(),Nt.L]]}),e})(),ga=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class fa{}var va=n(56914),ba=n(78482);class ya extends va.x{map(e){let t=[];return Array.isArray(e.fields.items)&&(t=e.fields.items.map((e=>this.mapCard(e)))),{data:t}}mapCard(e){let t=new fa;t.cardType=lt(["fields","page_type"],e)||st.G.ARTICLE,t.slug=ba.K.mapLinkUrl(e),t.title=lt(["fields","title"],e),t.category=lt(["fields","category"],e),t.publicationDate=e.publishedAt||e.updatedAt,t.draft="draft"===e.status;let n=lt(["fields","card_image"],e);return t.image=n&&n.url,t.imageAltText=n&&n.alt,t}}var Ca=n(26709),Sa=n(40476),xa=n(32716);function wa(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figcaption",8),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"span",9),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                            "),i["ɵɵelementStart"](5,"span",10),i["ɵɵtext"](6),i["ɵɵpipe"](7,"bxDate"),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](3),i["ɵɵtextInterpolate1"]("\n                                ",e.card.category,"\n                            "),i["ɵɵadvance"](3),i["ɵɵtextInterpolate1"]("\n                                ",i["ɵɵpipeBind2"](7,2,e.card.publicationDate,"mediumDate"),"\n                            ")}}function Ea(e,t){if(1&e&&(i["ɵɵelementStart"](0,"article",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"a",3),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementStart"](6,"figure",4),i["ɵɵtext"](7,"\n                        "),i["ɵɵelement"](8,"img",5),i["ɵɵtext"](9,"\n                        "),i["ɵɵelementStart"](10,"figcaption",6),i["ɵɵtext"](11),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n                        "),i["ɵɵtemplate"](13,wa,9,5,"figcaption",7),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](4),i["ɵɵproperty"]("routerLink",e.card.slug),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxPreviewIndicator",e.card),i["ɵɵadvance"](2),i["ɵɵproperty"]("src",e.card.image,i["ɵɵsanitizeUrl"])("defaultImage",e.defaultImage),i["ɵɵattribute"]("alt",e.card.imageAltText),i["ɵɵadvance"](3),i["ɵɵtextInterpolate1"]("\n                            ",e.card.title,"\n                        "),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.hasFeature(e.card.cardType,"footer"))}}let Ia=(()=>{class e{constructor(e){this.cardsConfig=e,this.cardsConfig=this.cardsConfig||{}}hasFeature(e,t){return this.cardsConfig[t]&&this.cardsConfig[t].indexOf(e)>=0}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ga))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-grid-card"]],inputs:{card:"card",defaultImage:"defaultImage"},decls:3,vars:1,consts:[["class","grid-card-wrapper",4,"ngIf"],[1,"grid-card-wrapper"],[1,"grid-card"],["role","link",3,"routerLink"],[1,"card",3,"bxPreviewIndicator"],["bxImage","",1,"img-responsive",3,"src","defaultImage"],[1,"card-text"],["class","card-text card-footer",4,"ngIf"],[1,"card-text","card-footer"],[1,"card-footer-text","card-category"],[1,"card-footer-text","card-date"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,Ea,18,7,"article",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.card))},directives:[r.NgIf,o.RouterLinkWithHref,xa.Z,Po.t],pipes:[ra.a],styles:[".grid-card-wrapper[_ngcontent-%COMP%] {\n  margin: 0;\n  padding: 0;\n  border: 0;\n  display: inline-block;\n  width: calc((100% / 3) - 2px);\n  vertical-align: middle; }\n  .grid-card-wrapper[_ngcontent-%COMP%]   .grid-card[_ngcontent-%COMP%] {\n    margin: 8px; }\n  .grid-card-wrapper[_ngcontent-%COMP%]   .grid-card[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%] {\n      height: 70px; }\n  .grid-card-wrapper[_ngcontent-%COMP%]   .grid-card[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%]   .card-footer-text[_ngcontent-%COMP%]:first-child {\n        text-align: left; }\n  .grid-card-wrapper[_ngcontent-%COMP%]   .grid-card[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%]   .card-footer-text[_ngcontent-%COMP%]:nth-child(2) {\n        text-align: right; }\n  @media only screen and (orientation: landscape) and (max-width: 767px) {\n  .grid-card-wrapper[_ngcontent-%COMP%] {\n    width: calc(50% - 2px); } }\n  @media only screen and (orientation: portrait) and (max-width: 767px) {\n  .grid-card-wrapper[_ngcontent-%COMP%] {\n    width: 100%;\n    display: inline-block; } }"]}),e})();function Pa(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-grid-card",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵproperty"]("card",e)("defaultImage",n.getDefaultImage())}}let Ta=class{constructor(e,t){this.imageService=e,this.gridCardsConfig=t,t=t||{}}set data(e){this.cards=e}getDefaultImage(){let e=this.gridCardsConfig.defaultImageDimension||{width:224,height:117};return this.imageService.getPlaceholderImage(e.width,e.height)}};Ta.ɵfac=function(e){return new(e||Ta)(i["ɵɵdirectiveInject"](Ca.A),i["ɵɵdirectiveInject"](ga))},Ta.ɵcmp=i["ɵɵdefineComponent"]({type:Ta,selectors:[["bx-grid-cards"]],inputs:{data:"data"},decls:7,vars:3,consts:[[3,"card","defaultImage",4,"ngFor","ngForOf"],[3,"card","defaultImage"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div"),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Pa,2,2,"bx-grid-card",0),i["ɵɵtext"](4,"\n        "),i["ɵɵelementStart"](5,"div"),i["ɵɵtext"](6,"\n    "),i["ɵɵelementEnd"](),i["ɵɵelementEnd"]()),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassProp"]("max-container",t.gridCardsConfig.maxContainer),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",t.cards))},directives:[r.NgForOf,Ia],encapsulation:2}),Ta=(0,a.__decorate)([(0,q.DE)({name:"GridCards",mapper:ya,matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").map((e=>e.trim())).indexOf(Sa.d.GRID_LAYOUT)>=0}),(0,a.__metadata)("design:paramtypes",[Ca.A,ga])],Ta);let _a=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[ga,Et.AJ],imports:[[r.CommonModule,o.RouterModule,Et.$Q,ia.$,It.D,Mt.o,W.J.withComponents([Ta])]]}),e})();var Ma=n(73518);let Oa=class extends at.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t}matcher(e){let t=lt(["fields","page_type"],e);return e.contentType===K.z.CONTENT_PAGE&&t===st.G.PROMOTION}createLink(e){let t=e.slugname||e.slug||lt(["fields","slug"],e),n=lt(["fields","uriSuffix"],e)||t;return n?`/${Ma.X}/${n}`:""}};Oa.ɵfac=function(e){return new(e||Oa)(i["ɵɵinject"](dt.z),i["ɵɵinject"](ut.X))},Oa.ɵprov=i["ɵɵdefineInjectable"]({token:Oa,factory:Oa.ɵfac}),Oa=(0,a.__decorate)([(0,at.ST)(),(0,a.__metadata)("design:paramtypes",[dt.z,ut.X])],Oa);var Aa=n(20734),ka=n(49697),ja=n(89138),Na=n(63325);function Ra(e,t){if(1&e&&(i["ɵɵelementStart"](0,"li",4),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"a",5),i["ɵɵtext"](3,"\n                            "),i["ɵɵelement"](4,"i",6),i["ɵɵtext"](5),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("bxLink","/casino/"+e.linkUrl),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",e.iconClass),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                            ",e.linkText,"\n                        ")}}let Da=class{set data(e){this._data=e.items}};Da.ɵfac=function(e){return new(e||Da)},Da.ɵcmp=i["ɵɵdefineComponent"]({type:Da,selectors:[["bx-casino-categories"]],inputs:{data:"data"},decls:12,vars:1,consts:[[1,"carousel","primary","max-container"],[1,"component-wrapper"],["role","list",1,"custom-tab","primary","max-container"],["role","button",4,"ngFor","ngForOf"],["role","button"],[3,"bxLink"],[1,"icon",3,"ngClass"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"section",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"ul",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,Ra,7,3,"li",3),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n    ")),2&e&&(i["ɵɵadvance"](7),i["ɵɵproperty"]("ngForOf",t._data))},directives:[r.NgForOf,Na.I,r.NgClass],styles:[".carousel.primary[_ngcontent-%COMP%]   .content-slider[_ngcontent-%COMP%] {\n  min-height: 218px; }"]}),Da=(0,a.__decorate)([(0,q.DE)({name:"CasinoCategories",matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Sa.d.TOP_CASINO_CATEGORIES)>=0})],Da);var La=n(80417);let Fa=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[],imports:[[r.CommonModule,La.LO,bt.a,W.J.withComponents([Da])]]}),e})();var Ba=n(76463),Ua=n(57138),Va=n(16393),Ga=n(42680);const Ha=["*"];let za=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-footer"]],inputs:{footerData:"footerData"},ngContentSelectors:Ha,decls:8,vars:1,consts:[[1,"footer-links"],[3,"data"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"footer",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"bx-marketing-page",1),i["ɵɵtext"](4,"\n            "),i["ɵɵprojection"](5),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("data",t.footerData))},directives:[Ga.n],encapsulation:2}),e})();var $a=n(44960);let Wa=(()=>{class e{constructor(e){this.marketingPageService=e,this.CONTENT_SECTION="footer"}getContent(e){return this.marketingPageService.getMarketingPageBySlug(e,this.CONTENT_SECTION,{filter:"navigation"}).pipe((0,c.first)(),(0,c.catchError)((e=>(0,s.throwError)(e))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"]($a.F))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var qa=n(37355);class Ka{map(e){return e.contentType?Ka.mapCmsContent(e):Ka.mapStaticContent(e)}static mapCmsContent(e){return{title:e.fields.menuItemLabel||e.fields.title,url:ba.K.mapLinkUrl(e),newTab:"new_tab"===e.fields.linkTarget}}static mapStaticContent(e){return{title:e.linkText,url:e.linkUrl,newTab:"new_tab"===e.linkTarget}}}class Xa extends va.x{constructor(){super(...arguments),this.menuItemMapper=new Ka}map(e){let t={footerLinks:[]};for(let n of e.fields.items){let e;e=this.menuItemMapper.map(n),t.footerLinks.push(e)}return{content:t}}}let Ya=(()=>{class e{}return e.DEFAULT={},e})();function Ja(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementContainerEnd"]())}function Qa(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                        "),i["ɵɵelementStart"](1,"a",7),i["ɵɵtext"](2),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                    ")),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵadvance"](1),i["ɵɵpropertyInterpolate"]("target",e.newTab?"_blank":"_self"),i["ɵɵpropertyInterpolate"]("title",e.title),i["ɵɵattribute"]("href",e.url,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.title)}}function Za(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                        "),i["ɵɵelementStart"](1,"a",8),i["ɵɵtext"](2),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                    ")),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵadvance"](1),i["ɵɵpropertyInterpolate"]("target",e.newTab?"_blank":"_self"),i["ɵɵpropertyInterpolate"]("title",e.title),i["ɵɵproperty"]("routerLink",e.url),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.title)}}function es(e,t){if(1&e&&(i["ɵɵelementStart"](0,"li",3),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,Ja,2,0,"ng-container",4),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,Qa,4,4,"ng-template",null,5,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,Za,4,4,"ng-template",null,6,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵreference"](5),r=i["ɵɵreference"](8);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.url.startsWith("http"))("ngIfThen",n)("ngIfElse",r)}}let ts=class{constructor(e){this.injector=e}ngOnInit(){if(this.footerConfig=this.injector.get(Ya,Ya.DEFAULT),this.content.footerLinks)for(let e of this.content.footerLinks)e.url=this.multilingualDirective.translateUrl(e.url)}};ts.ɵfac=function(e){return new(e||ts)(i["ɵɵdirectiveInject"](i.Injector))},ts.ɵcmp=i["ɵɵdefineComponent"]({type:ts,selectors:[["bx-footer-menu"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](qa.l,7),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.multilingualDirective=e.first)}},inputs:{content:"content"},decls:9,vars:2,consts:[["bxTranslatePath","",1,"hide-scroll"],["role","list",1,"custom-tab","max-container",3,"ngClass"],["role","link",4,"ngFor","ngForOf"],["role","link"],[4,"ngIf","ngIfThen","ngIfElse"],["externalLink",""],["internalLink",""],["rel","noopener",3,"target","title"],[3,"target","title","routerLink"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"ul",1),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,es,10,3,"li",2),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",(null==t.footerConfig||null==t.footerConfig.menu?null:t.footerConfig.menu.class)||"primary"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",null==t.content?null:t.content.footerLinks))},directives:[qa.l,r.NgClass,r.NgForOf,r.NgIf,o.RouterLinkWithHref],encapsulation:2}),ts=(0,a.__decorate)([(0,q.DE)({name:"FooterMenu",mapper:Xa,matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Sa.d.FOOTER_MENU)>=0}),(0,a.__metadata)("design:paramtypes",[i.Injector])],ts);var ns=n(67197),is=n(72688);let rs=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Wa],imports:[[r.CommonModule,Et.$Q,o.RouterModule,W.J.withComponents([za,ts]),ns.k.withComponents([za,ts]),o.RouterModule.forChild([]),is.l]]}),e})();var os=n(82957),as=n(80218),ss=n(81516);let cs=(()=>{class e{constructor(){this.type="primary"}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-custom-badge"]],inputs:{customBadge:"customBadge",type:"type"},decls:4,vars:2,consts:[[1,"custom-badge",3,"ngClass"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"span",0),i["ɵɵtext"](2),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",t.type),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](t.customBadge))},directives:[r.NgClass],encapsulation:2}),e})();function ls(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span"),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e)}}function ds(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",1),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,ls,2,1,"span",2),i["ɵɵtext"](3,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",e.splittedLabel)}}let us=(()=>{class e{constructor(e,t){this.translateService=e,this.casinoLobbyService=t,this.splittedLabel=[]}ngOnInit(){this.translateService.translate(this.label).pipe((0,c.filter)((e=>this.label!==e))).subscribe((e=>{this.splittedLabel=e.split(/\s+/g),this.casinoLobbyService.hasFreeGames(this.gameId).subscribe((e=>{this.showBadge=e}))}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](Cn))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-free-games-badge"]],inputs:{gameId:"gameId",label:"label"},decls:3,vars:1,consts:[["class","custom-badge tertiary",4,"ngIf"],[1,"custom-badge","tertiary"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,ds,4,1,"span",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.showBadge))},directives:[r.NgIf,r.NgForOf],styles:[".custom-badge.tertiary[_ngcontent-%COMP%] {\n            display: flex;\n            flex-direction: column;\n            width: -moz-fit-content;\n            width: fit-content;\n            width: intrinsic;\n        }"]}),e})();const ps=function(e){return{jackpot:e}},hs=function(e,t){return{tag:"textContent",values:e,label:t}},ms=function(e){return[e]};function gs(e,t){if(1&e&&i["ɵɵelement"](0,"span",1),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](6,ms,i["ɵɵpureFunction2"](3,hs,i["ɵɵpureFunction1"](1,ps,e.jackpotValue),e.jackpotLabel)))}}let fs=(()=>{class e{constructor(e){this.casinoLobbyService=e}get isJackpotDisplayed(){return this.jackpotValue&&+this.jackpotValue>0}ngOnInit(){(0,s.combineLatest)(this.casinoLobbyService.getPlayerCurrency(),this.casinoLobbyService.getJackpotAmount(this.gameId)).pipe((0,c.mergeMap)((e=>(0,s.iif)((()=>"XBT"===e[0]),(0,s.of)(e[1]).pipe(vn,bn),(0,s.of)(e[1]).pipe(yn))))).subscribe((e=>{this.jackpotLabel="gamecard.jackpot.no_k",this.jackpotValue=e.amountDisplay,e.amount>1e6?this.jackpotLabel="gamecard.jackpot.m":e.amount>=1e3&&(this.jackpotLabel="gamecard.jackpot")}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Cn))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-jackpot"]],inputs:{gameId:"gameId"},decls:3,vars:1,consts:[["class","custom-badge secondary",3,"bxTranslate",4,"ngIf"],[1,"custom-badge","secondary",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n            "),i["ɵɵtemplate"](1,gs,1,8,"span",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.isJackpotDisplayed))},directives:[r.NgIf,Se.P],encapsulation:2}),e})();function vs(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",11),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().playCtaLink(!0)})),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"i",12),i["ɵɵelementStart"](3,"span",13),i["ɵɵtext"](4,"gamecard.play_cta"),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("href",e.href,i["ɵɵsanitizeUrl"])}}function bs(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",11),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().playCtaLink(!1)})),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"i",14),i["ɵɵelementStart"](3,"span",13),i["ɵɵtext"](4,"gamecard.more_info"),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("href",e.href,i["ɵɵsanitizeUrl"])}}function ys(e,t){if(1&e&&i["ɵɵelement"](0,"bx-custom-badge",15),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("customBadge",e.card.customBadge)}}function Cs(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-free-games-badge",16),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("gameId",e.card.id)}}function Ss(e,t){if(1&e&&i["ɵɵelement"](0,"bx-jackpot",17),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("gameId",e.card.id)}}function xs(e,t){if(1&e&&i["ɵɵelement"](0,"img",18),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("src",e.thumbnailImage,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.thumbnailAlt)}}function ws(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",19),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                            ",e.card.gamePrice,"\n                        ")}}const Es=function(e){return{"img-game":e}};let Is=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p){this.sessionService=e,this.element=t,this.cardConfig=n,this.cdnService=i,this.analyticsService=r,this.router=o,this.firstTimeVisitorService=a,this.casinoLobbyService=s,this.linkTrackService=c,this.siteConfigService=l,this.languageService=d,this.gameUrlService=u,this.deviceService=p,this.imageType="large",this.contentSource="manual",this.thumbnailImage="/assets/images/thumbnail.png",this.thumbnailAlt="Placeholder image",this.href=""}ngOnInit(){this.isFreeGamesEnabled=this.casinoLobbyService.isFreeGamesEnabled(),this.isJackpotEnabled=this.casinoLobbyService.isJackpotEnabled(),this.cardClass=`game-thumbnail img-${this.imageType}`,this.card.cardImage||(this.card.cardImage=this.defaultImage||""),this.setThumbnailColorImageSrc(this.cardConfig.thumbnailColor),this.thumbnailImage=this.cdnService.getCdnUrlImage(this.thumbnailImage),this.checkURLOutlet(),this.languageService.getLanguage().subscribe((e=>{let t=this.siteConfigService.getSiteConfigProp("defaultLanguage");t||(t="en");const n=e!==t?e:"";this.href=n+this.gameUrlService.getUrl(this.card.category,this.card.slug,this.card.subCategory,this.urlOutlet)}))}onClick(e){e.preventDefault()}getNotInSubdivisionList(){return this.card&&this.card.notInFilter&&this.card.notInFilter.countrySubdivision&&this.card.notInFilter.countrySubdivision.join(",")||""}setThumbnailColorImageSrc(e){const t=this.thumbnailImage.split(".");e&&t.length>1&&(this.thumbnailImage=`${t[0]}_${e}.${t[1]}`)}checkURLOutlet(){if(!this.router.config)return;const e=this.router.config.find((e=>e.path===this.gameUrlService.getPathFormat()));this.urlOutlet=e&&e.outlet?e.outlet:""}trackClick(){const e=this.getAutomatedTrackingData();if(this.gameBlockContext){const t=()=>({33:JSON.stringify({behaviour:"click",parentInternalName:this.gameBlockContext.internalName,parentType:this.gameBlockContext.contentType,game:this.card.id,ftv:this.firstTimeVisitorService.isFirstTime,audiences:this.gameBlockContext.tracking&&this.gameBlockContext.tracking.audiences?this.gameBlockContext.tracking.audiences:[],componentType:"card - "+this.card.categoryName,componentInternalName:this.card.name,position:this.position,...e})});this.analyticsService.trackCardClick("menu_click",!0,t())}else this.analyticsService.trackCardClick("gamecard_click",!0,(()=>{const t=this.cardMatrix?this.cardMatrix.getSurroundingSiblings(this.card.id):[];return this.card.id?{33:JSON.stringify({game:this.card.id,position:this.position,...zt(t)?{}:{halo:t},...e})}:{}})())}getAutomatedTrackingData(){let e={};if("manual"!=this.contentSource&&this.automatedTracking){let t=this.siteConfigService.getSiteConfigProp("brandCode");e={sourceId:this.automatedTracking.sourceId,sourceLabel:this.automatedTracking.sourceLabel,sortOrder:this.automatedTracking.sortOrder,amount:this.automatedTracking.amount,page_name:t+":"+this.router.url,sourceContentType:this.contentSource}}return e}playCtaLink(e){this.card&&this.card.category&&this.card.slug&&(this.linkTrackService.setLinkClicked(!1),this.trackClick(),e?this.router.navigate(this.gameUrlService.getPathList(this.card.category,this.card.slug,this.card.subCategory),{queryParams:this.getQueryParams(),fragment:this.getCtaLinkFragment()}):this.router.navigate(this.gameUrlService.getPathList(this.card.category,this.card.slug,this.card.subCategory)))}getCtaLinkFragment(){return this.cardConfig.quickPlayEnabled?null:this.cardConfig.removeRealPracticeOverlay||this.sessionService.isAuthenticated()?"real":"play"}getQueryParams(){return this.cardConfig.quickPlayEnabled?{quickPlay:"true"}:null}hasCasinoCardInfoIconFeature(){return this.siteConfigService.hasFeature("casino.card.info.icon")}isMobileDevice(){return this.deviceService.isMobile()}playIconShouldBeDisplayed(){return this.cardConfig.playOverlay&&!this.hasCasinoCardInfoIconFeature()}infoIconShouldBeDisplayed(){return this.cardConfig.playOverlay&&this.hasCasinoCardInfoIconFeature()&&this.isMobileDevice()}shouldPlayAsQuickPlay(){return this.hasCasinoCardInfoIconFeature()&&this.deviceService.isMobile()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](et.mj),i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](ft),i["ɵɵdirectiveInject"](as.U),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](ss.HV),i["ɵɵdirectiveInject"](Cn),i["ɵɵdirectiveInject"](Ht.j),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](Gt.T),i["ɵɵdirectiveInject"](ut.X),i["ɵɵdirectiveInject"](Bt.U))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-card"]],hostVars:1,hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.onClick(e)})),2&e&&i["ɵɵattribute"]("class",t.cardClass)},inputs:{imageType:"imageType",card:"card",defaultImage:"defaultImage",cardMatrix:"cardMatrix",gameBlockContext:"gameBlockContext",position:"position",contentSource:"contentSource",automatedTracking:"automatedTracking"},decls:29,vars:17,consts:[[3,"bxPreviewIndicator"],["class","play-btn cursor",3,"href","click",4,"ngIf"],[1,"cursor",3,"href","click"],[1,"thumb-container"],[3,"customBadge",4,"ngIf"],["label","gamecard.freeGames",3,"gameId",4,"ngIf"],[3,"gameId",4,"ngIf"],["class","img-placeholder img-responsive force-height",3,"src",4,"ngIf"],["bxImage","",1,"img-responsive",3,"src","defaultImage","ngClass"],[1,"thumbnail-text"],["class","thumbnail-text-price",4,"ngIf"],[1,"play-btn","cursor",3,"href","click"],[1,"icon","icon-search-play"],[3,"bxTranslate"],[1,"icon","icon-info-inverse"],[3,"customBadge"],["label","gamecard.freeGames",3,"gameId"],[3,"gameId"],[1,"img-placeholder","img-responsive","force-height",3,"src"],[1,"thumbnail-text-price"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"article",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,vs,6,1,"a",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,bs,6,1,"a",1),i["ɵɵtext"](6,"\n            "),i["ɵɵelementStart"](7,"a",2),i["ɵɵlistener"]("click",(function(){return t.shouldPlayAsQuickPlay()?t.playCtaLink(!0):t.playCtaLink(!1)})),i["ɵɵtext"](8,"\n                "),i["ɵɵelementStart"](9,"figure",3),i["ɵɵtext"](10,"\n                    "),i["ɵɵtemplate"](11,ys,1,1,"bx-custom-badge",4),i["ɵɵtext"](12,"\n\n                    "),i["ɵɵtemplate"](13,Cs,2,1,"bx-free-games-badge",5),i["ɵɵtext"](14,"\n\n                    "),i["ɵɵtemplate"](15,Ss,1,1,"bx-jackpot",6),i["ɵɵtext"](16,"\n                    "),i["ɵɵtemplate"](17,xs,1,2,"img",7),i["ɵɵtext"](18,"\n                    "),i["ɵɵelement"](19,"img",8),i["ɵɵtext"](20,"\n                    "),i["ɵɵelementStart"](21,"figcaption",9),i["ɵɵtext"](22,"\n                        "),i["ɵɵtemplate"](23,ws,2,1,"span",10),i["ɵɵtext"](24),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](28,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("bxPreviewIndicator",t.card),i["ɵɵattribute"]("data-notIn-subdivisions",t.getNotInSubdivisionList()),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.playIconShouldBeDisplayed()),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.infoIconShouldBeDisplayed()),i["ɵɵadvance"](2),i["ɵɵproperty"]("href",t.href,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.card.customBadge),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.isFreeGamesEnabled),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.isJackpotEnabled),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.cardConfig.imgGame),i["ɵɵadvance"](2),i["ɵɵproperty"]("src",t.card.cardImage,i["ɵɵsanitizeUrl"])("defaultImage",t.defaultImage)("ngClass",i["ɵɵpureFunction1"](15,Es,t.cardConfig.imgGame)),i["ɵɵattribute"]("alt",t.card.name),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.card.gamePrice&&t.cardConfig.gamePrice),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                        ",t.card.name,"\n                    "))},directives:[xa.Z,r.NgIf,Po.t,r.NgClass,Se.P,cs,us,fs],encapsulation:2}),e})();var Ps=n(96940);const Ts=["gameShortDescritpion"],_s=["cta"],Ms=function(e){return[e]};function Os(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",12,6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().play("practice")})),i["ɵɵtext"](2,"gamecard.play_practice"),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,Ms,(null==e.detailConfig?null:e.detailConfig.practiceCtaClass)||"tertiary inverse"))}}function As(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",13),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().displayLongDescription()})),i["ɵɵtext"](1,"gamecard.showLongDescription"),i["ɵɵelementEnd"]()}}function ks(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",20),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"a",18,6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).play("practice")})),i["ɵɵtext"](4,"gamecard.play_practice_sticky"),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,Ms,(null==e.detailConfig?null:e.detailConfig.stickyPracticeCtaClass)||"tertiary"))}}const js=function(e,t){return{"col-2-3":e,"col-3-3":t}};function Ns(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",14),i["ɵɵtext"](1,"\n\n                "),i["ɵɵelement"](2,"div",15),i["ɵɵpipe"](3,"bxTrustyHtml"),i["ɵɵtext"](4,"\n\n                "),i["ɵɵelementStart"](5,"footer",16),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"div",17),i["ɵɵtext"](8,"\n                        "),i["ɵɵelementStart"](9,"a",18,6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().play("real")})),i["ɵɵtext"](11,"gamecard.play_real_sticky"),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n\n                    "),i["ɵɵtemplate"](14,ks,6,3,"div",19),i["ɵɵtext"](15,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("innerHTML",i["ɵɵpipeBind1"](3,6,null==e.game?null:e.game.longDescription),i["ɵɵsanitizeHtml"]),i["ɵɵadvance"](3),i["ɵɵclassProp"]("sticky-footer-appear",e.stickyCtaAppear),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](8,js,e.showPractice,!e.showPractice)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](11,Ms,(null==e.detailConfig?null:e.detailConfig.stickyRealCtaClass)||"primary")),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",e.showPractice)}}const Rs=["*"];let Ds=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m){this.route=e,this.router=t,this.gameService=n,this.sessionService=i,this.imageService=r,this.document=o,this.meta=a,this.domSanitizer=s,this.cardConfig=c,this.detailConfig=l,this.analyticsService=d,this.windowService=u,this.noDblClickService=p,this.gameUrlService=h,this.platformId=m,this.altText="",this.showPractice=!0,this.realPlayButtonClass="",this.stickyCtaAppear=!1,this.fromUniversal=!1,this.modalOverlay=this.document.querySelector(".modal-overlay")}ngAfterViewInit(){(0,r.isPlatformBrowser)(this.platformId)&&this.setTimeoutForAllButtons()}setTimeoutForAllButtons(){this.ctas.forEach((t=>{this.noDblClickService.setTimeout(t.nativeElement,e.DEFAULT_TIMEOUT)}))}ngOnInit(){this.initTimestamp=Date.now(),this.realPlayButtonClass=this.detailConfig&&this.detailConfig.realCtaClass?this.detailConfig.realCtaClass:"primary",this.route.data.subscribe((e=>{this.game=e.game;let t=document.createElement("div");t.innerHTML=this.game.shortDescription,this.altText=t.innerText,t=null,this.showPractice=(void 0===e.showPractice||"true"===e.showPractice)&&"live-dealer"!=this.game.category,this.showLongDescription="true"===e.showLongDescription,this.realPlayButtonClass+=this.showPractice?" play-real-button":" play-real-button-full",this.setPreloadGameResourcesUrl()})),this.meta.addTag({name:"robots",content:"noindex,nofollow"}),this.modalOverlay&&this.modalOverlay.addEventListener("scroll",this.onScroll.bind(this),!1)}ngOnDestroy(){this.modalOverlay&&this.modalOverlay.removeEventListener("scroll",this.onScroll.bind(this),!1)}onScroll(e){if(!this.gameShortDescription)return;let t=this.gameShortDescription.nativeElement.getBoundingClientRect();this.stickyCtaAppear=-1*t.top>t.height}trackData(){return{33:JSON.stringify({game:this.game.id}),5:((Date.now()-this.initTimestamp)/1e3).toFixed(2)}}refersToIndexHtml(e){return!!e.match(/index\.html/)||!!e.match(/\/\?/)||!!e.match(/\/$/)}play(e){if(this.router.onSameUrlNavigation="reload",this.analyticsService.trackCardClick("gameDescription",!0,this.trackData()),this.cardConfig.quickPlayEnabled)this.router.navigate(this.gameUrlService.getPathList(this.game.category,this.game.slug,this.game.subCategory),{queryParams:{quickPlay:!0}});else if("real"==e){let e={fragment:"real"};this.sessionService.isAuthenticated()||(e.queryParams={closeUrl:this.router.url}),this.router.navigate(this.gameUrlService.getPathList(this.game.category,this.game.slug,this.game.subCategory),e)}else this.router.navigate(this.gameUrlService.getPathList(this.game.category,this.game.slug,this.game.subCategory),{fragment:"practice"})}displayLongDescription(){this.showLongDescription=!0}setPreloadGameResourcesUrl(){const{category:e,subCategory:t,slug:n}=this.game;URL&&this.gameService.getGameUrl(e,t,n,"practice").subscribe((e=>{try{const t=new URL(e),n=t.origin+t.pathname,i=n.substring(0,n.lastIndexOf("/"));let r=this.windowService.location().hostname.replace("www.","").split(".");r.length>=3&&r.shift();let o=r.join(".");if(-1!==t.hostname.indexOf(o))if(this.refersToIndexHtml(e)){const e=`${i}/prefetch.html${t.search}`;this.preloadUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(e)}else{const n=`${e}${t.search?"&":"?"}prefetch=true`;this.preloadUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(n)}else this.preloadUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(e)}catch{}}),(()=>{}))}}return e.DEFAULT_TIMEOUT=1e4,e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](cn),i["ɵɵdirectiveInject"](et.mj),i["ɵɵdirectiveInject"](Et.AJ),i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](Le.Meta),i["ɵɵdirectiveInject"](Le.DomSanitizer),i["ɵɵdirectiveInject"](ft),i["ɵɵdirectiveInject"](vt),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](te),i["ɵɵdirectiveInject"](ut.X),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-game-detail"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](Ts,5),i["ɵɵviewQuery"](_s,5)),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.gameShortDescription=e.first),i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.ctas=e)}},inputs:{game:"game"},ngContentSelectors:Rs,decls:30,vars:11,consts:[[1,"game-detail",3,"bxPreviewIndicator"],[2,"width","0","height","0","border","0","border","none","position","absolute",3,"src"],["bxImage","",1,"responsive",3,"alt","src","defaultImage"],["role","heading",1,"h2-heading","game-title"],[1,"play-buttons"],["type","button",1,"custom-cta",3,"ngClass","bxTranslate","click"],["cta",""],["type","button","class","play-practice-button custom-cta",3,"ngClass","bxTranslate","click",4,"ngIf"],[1,"game-short-description"],["gameShortDescritpion",""],["class","show-long-description",3,"bxTranslate","click",4,"ngIf"],["class","game-full-description-text",4,"ngIf"],["type","button",1,"play-practice-button","custom-cta",3,"ngClass","bxTranslate","click"],[1,"show-long-description",3,"bxTranslate","click"],[1,"game-full-description-text"],[3,"innerHTML"],[1,"sticky-footer","navbar-fixed-bottom","row"],[3,"ngClass"],["role","button",1,"custom-cta",3,"ngClass","bxTranslate","click"],["class","col-1-3",4,"ngIf"],[1,"col-1-3"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n\n            "),i["ɵɵelement"](3,"iframe",1),i["ɵɵtext"](4,"\n\n            "),i["ɵɵprojection"](5),i["ɵɵtext"](6,"\n            "),i["ɵɵelement"](7,"img",2),i["ɵɵtext"](8,"\n\n            "),i["ɵɵelementStart"](9,"h1",3),i["ɵɵtext"](10),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n\n            "),i["ɵɵelementStart"](12,"div",4),i["ɵɵtext"](13,"\n                "),i["ɵɵelementStart"](14,"button",5,6),i["ɵɵlistener"]("click",(function(){return t.play("real")})),i["ɵɵtext"](16,"gamecard.play_real"),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                "),i["ɵɵtemplate"](18,Os,3,3,"button",7),i["ɵɵtext"](19,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n\n            "),i["ɵɵelementStart"](21,"p",8,9),i["ɵɵtext"](23),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n\n            "),i["ɵɵtemplate"](25,As,2,0,"div",10),i["ɵɵtext"](26,"\n\n            "),i["ɵɵtemplate"](27,Ns,17,13,"div",11),i["ɵɵtext"](28,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](29,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("bxPreviewIndicator",t.game),i["ɵɵadvance"](2),i["ɵɵproperty"]("src",t.preloadUrl,i["ɵɵsanitizeResourceUrl"]),i["ɵɵadvance"](4),i["ɵɵpropertyInterpolate"]("alt",t.altText),i["ɵɵproperty"]("src",null==t.game?null:t.game.pageImage,i["ɵɵsanitizeUrl"])("defaultImage",t.imageService.getPlaceholderImage(862,350,"transparent")),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](null==t.game?null:t.game.name),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngClass",t.realPlayButtonClass),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.showPractice),i["ɵɵadvance"](5),i["ɵɵtextInterpolate"](null==t.game?null:t.game.shortDescription),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.showLongDescription),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.showLongDescription))},directives:[xa.Z,Po.t,r.NgClass,Se.P,r.NgIf],pipes:[Ps.d],styles:['.game-detail[_ngcontent-%COMP%] {\n  background: black;\n  color: white;\n  position: relative; }\n\n[_nghost-%COMP%]  .modal-header {\n  position: absolute;\n  right: 0;\n  padding: 0 !important;\n  top: 0; }\n\n.game-detail[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {\n  padding: 2em; }\n\nimg.responsive[_ngcontent-%COMP%] {\n  width: 100%;\n  height: auto; }\n\n.sticky-footer[_ngcontent-%COMP%] {\n  bottom: -60px;\n  margin: 0 auto;\n  max-width: 768px;\n  transition: bottom 0.3s; }\n\n.sticky-footer.sticky-footer-appear[_ngcontent-%COMP%] {\n    bottom: 0; }\n\n.game-title[_ngcontent-%COMP%] {\n  margin-top: -15px;\n  max-width: 100%;\n  z-index: 1;\n  position: relative;\n  line-height: 30px;\n  text-align: center; }\n\n.game-title[_ngcontent-%COMP%]::before {\n  background-image: linear-gradient(transparent, #000);\n  content: "";\n  display: block;\n  height: 30px;\n  position: absolute;\n  top: -15px;\n  width: 100%;\n  z-index: -1;\n  box-sizing: border-box; }\n\n.play-real-button[_ngcontent-%COMP%] {\n  float: left;\n  margin-left: 5%;\n  margin-top: 1em; }\n\n.play-practice-button[_ngcontent-%COMP%] {\n  margin-top: 1em; }\n\n.game-short-description[_ngcontent-%COMP%] {\n  text-align: center; }\n\n.show-long-description[_ngcontent-%COMP%] {\n  text-align: center;\n  padding-bottom: 6px;\n  text-transform: uppercase;\n  cursor: pointer;\n  text-decoration: underline; }\n\n.game-full-description-text[_ngcontent-%COMP%] {\n  text-align: left;\n  background: #e6e6e6;\n  color: #404040;\n  font-size: 1.166em;\n  padding: 40px;\n  padding-bottom: 76px; }\n\n[_nghost-%COMP%]  .game-full-description-text h2 {\n  margin-top: 10px;\n  font-weight: 600;\n  font-size: 1.12em;\n  text-transform: uppercase; }\n\n[_nghost-%COMP%]  .game-full-description-text strong {\n  font-weight: 600;\n  margin-bottom: 10px; }\n\n[_nghost-%COMP%]  .game-full-description-text img.screenshot {\n  float: right;\n  width: 200px;\n  margin: 0 0 10px 10px; }\n\n[_nghost-%COMP%]  .game-full-description-text ul {\n  padding-left: 15px; }\n\n[_nghost-%COMP%]  .game-full-description-text li {\n  list-style-position: outside; }\n\n[_nghost-%COMP%]  .game-full-description-text td {\n  padding: 8px;\n  line-height: 1.42857143;\n  vertical-align: top;\n  border-top: 1px solid #ddd; }\n\n[_nghost-%COMP%]  .game-full-description-text table {\n  margin-top: 10px; }\n\n@media (max-width: 768px) {\n  .play-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n    width: 80%;\n    margin-left: 10%; } }\n\n@media (min-width: 768px) {\n  .game-detail[_ngcontent-%COMP%] {\n    width: 768px; }\n  h2[_ngcontent-%COMP%] {\n    padding-top: 2.0em; }\n  .play-real-button[_ngcontent-%COMP%] {\n    width: 50%;\n    margin-left: 5%; }\n  .play-real-button-full[_ngcontent-%COMP%] {\n    width: 90%;\n    margin-left: 5%;\n    margin-top: 1em; }\n  .play-practice-button[_ngcontent-%COMP%] {\n    margin-left: 4%;\n    width: 35%; }\n  .sticky-footer[_ngcontent-%COMP%] {\n    position: absolute; } }']}),e})();var Ls=n(97637),Fs=n(84853);let Bs=(()=>{class e extends Ds{ngOnInit(){}}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-game-detail-overlay"]],features:[i["ɵɵInheritDefinitionFeature"]],decls:10,vars:0,consts:[["overlayType","large"],["staticNavHeader","true"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay-container",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"bx-game-detail"),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"bx-overlay-header",1),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n    "))},directives:[Ls.l,Ds,Fs.z],styles:['.game-detail[_ngcontent-%COMP%] {\n  background: black;\n  color: white;\n  position: relative; }\n\n[_nghost-%COMP%]  .modal-header {\n  position: absolute;\n  right: 0;\n  padding: 0 !important;\n  top: 0; }\n\n.game-detail[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {\n  padding: 2em; }\n\nimg.responsive[_ngcontent-%COMP%] {\n  width: 100%;\n  height: auto; }\n\n.sticky-footer[_ngcontent-%COMP%] {\n  bottom: -60px;\n  margin: 0 auto;\n  max-width: 768px;\n  transition: bottom 0.3s; }\n\n.sticky-footer.sticky-footer-appear[_ngcontent-%COMP%] {\n    bottom: 0; }\n\n.game-title[_ngcontent-%COMP%] {\n  margin-top: -15px;\n  max-width: 100%;\n  z-index: 1;\n  position: relative;\n  line-height: 30px;\n  text-align: center; }\n\n.game-title[_ngcontent-%COMP%]::before {\n  background-image: linear-gradient(transparent, #000);\n  content: "";\n  display: block;\n  height: 30px;\n  position: absolute;\n  top: -15px;\n  width: 100%;\n  z-index: -1;\n  box-sizing: border-box; }\n\n.play-real-button[_ngcontent-%COMP%] {\n  float: left;\n  margin-left: 5%;\n  margin-top: 1em; }\n\n.play-practice-button[_ngcontent-%COMP%] {\n  margin-top: 1em; }\n\n.game-short-description[_ngcontent-%COMP%] {\n  text-align: center; }\n\n.show-long-description[_ngcontent-%COMP%] {\n  text-align: center;\n  padding-bottom: 6px;\n  text-transform: uppercase;\n  cursor: pointer;\n  text-decoration: underline; }\n\n.game-full-description-text[_ngcontent-%COMP%] {\n  text-align: left;\n  background: #e6e6e6;\n  color: #404040;\n  font-size: 1.166em;\n  padding: 40px;\n  padding-bottom: 76px; }\n\n[_nghost-%COMP%]  .game-full-description-text h2 {\n  margin-top: 10px;\n  font-weight: 600;\n  font-size: 1.12em;\n  text-transform: uppercase; }\n\n[_nghost-%COMP%]  .game-full-description-text strong {\n  font-weight: 600;\n  margin-bottom: 10px; }\n\n[_nghost-%COMP%]  .game-full-description-text img.screenshot {\n  float: right;\n  width: 200px;\n  margin: 0 0 10px 10px; }\n\n[_nghost-%COMP%]  .game-full-description-text ul {\n  padding-left: 15px; }\n\n[_nghost-%COMP%]  .game-full-description-text li {\n  list-style-position: outside; }\n\n[_nghost-%COMP%]  .game-full-description-text td {\n  padding: 8px;\n  line-height: 1.42857143;\n  vertical-align: top;\n  border-top: 1px solid #ddd; }\n\n[_nghost-%COMP%]  .game-full-description-text table {\n  margin-top: 10px; }\n\n@media (max-width: 768px) {\n  .play-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n    width: 80%;\n    margin-left: 10%; } }\n\n@media (min-width: 768px) {\n  .game-detail[_ngcontent-%COMP%] {\n    width: 768px; }\n  h2[_ngcontent-%COMP%] {\n    padding-top: 2.0em; }\n  .play-real-button[_ngcontent-%COMP%] {\n    width: 50%;\n    margin-left: 5%; }\n  .play-real-button-full[_ngcontent-%COMP%] {\n    width: 90%;\n    margin-left: 5%;\n    margin-top: 1em; }\n  .play-practice-button[_ngcontent-%COMP%] {\n    margin-left: 4%;\n    width: 35%; }\n  .sticky-footer[_ngcontent-%COMP%] {\n    position: absolute; } }']}),e})(),Us=(()=>{class e{constructor(e,t,n){this.route=e,this.router=t,this.gameUrlService=n}ngOnInit(){const e=this.route.snapshot.params;this.gameSlug=e.slug,this.gameCategory=e.category,this.gameSubcategory=e.subcategory}play(e){"real"==e?this.router.navigate(this.gameUrlService.getPathList(this.gameCategory,this.gameSlug,this.gameSubcategory),{fragment:"real"}):this.router.navigate(this.gameUrlService.getPathList(this.gameCategory,this.gameSlug,this.gameSubcategory),{fragment:"practice"})}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](ut.X))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-game-mode"]],decls:16,vars:0,consts:[[1,"play-buttons"],["type","button",1,"play-real-button","custom-cta","primary",3,"bxTranslate","click"],["type","button",1,"play-practice-button","custom-cta","tertiary","inverse",3,"bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay-container"),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"bx-overlay-header"),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementStart"](6,"div",0),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"button",1),i["ɵɵlistener"]("click",(function(){return t.play("real")})),i["ɵɵtext"](9,"gamecard.play_real"),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                "),i["ɵɵelementStart"](11,"button",2),i["ɵɵlistener"]("click",(function(){return t.play("practice")})),i["ɵɵtext"](12,"gamecard.play_practice"),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n    "))},directives:[Ls.l,Fs.z,Se.P],styles:[".play-real-button[_ngcontent-%COMP%] {\n  float: left;\n  margin-left: 5%;\n  margin-top: 1em; }\n\n.play-practice-button[_ngcontent-%COMP%] {\n  margin-left: 5%;\n  margin-top: 1em; }\n\n@media (max-width: 768px) {\n  .play-buttons[_ngcontent-%COMP%] {\n    margin: 50% auto auto; }\n  .play-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n    width: 80%;\n    margin-left: 10%; } }\n\n@media (max-width: 768px) and (orientation: landscape) {\n  .play-buttons[_ngcontent-%COMP%] {\n    margin: 20% auto auto; }\n  .play-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n    width: 80%;\n    margin-left: 10%; } }\n\n@media (min-width: 768px) {\n  .play-buttons[_ngcontent-%COMP%] {\n    width: 768px;\n    margin: 10em auto auto; }\n  .play-real-button[_ngcontent-%COMP%] {\n    width: 50%;\n    margin-left: 5%; }\n  .play-practice-button[_ngcontent-%COMP%] {\n    margin-left: 4%;\n    width: 35%; } }"]}),e})();var Vs=n(52344),Gs=n(86958);class Hs{constructor(e,t,n,i,r,o){this.url=e,this.label=t,this.icon=n,this.triggerOverlay=i,this.openNewTab=r,this.activeLinkOptions=o}}class zs{constructor(e,t){this.menuTitle=e,this.navLinks=t}}class $s{constructor(){this.categoryLinks=[],this.secondaryLinks=[]}}class Ws{static createCmsNavMenu(e,t){return Ws.isCmsDataWithSubmenus(e)?Ws.createCmsNavMenuForSubmenusData(e,t):Ws.createCmsNavMenuForMarketingPageData(e,t)}static isCmsDataWithSubmenus(e){try{return e.fields.items[0].contentType===K.z.MENU}catch(e){return!1}}static createCmsNavMenuForMarketingPageData(e,t){let n=new $s;try{n.categoryLinks=Ws.createListOfCmsNavLink(e.fields.items,t)}catch(e){n.categoryLinks=[]}let i=new zs("",n.categoryLinks);return n.secondaryLinks=[i],n}static createCmsNavMenuForSubmenusData(e,t){let n=new $s;return n.categoryLinks=Ws.createCategoryLinks(e,t),n.secondaryLinks=Ws.createSecondaryLinks(e,t),n}static createCategoryLinks(e,t){let n=[];try{let i=e.fields.items[0];n=this.createListOfCmsNavLink(i.fields.items,t);let r=new Hs("",e.fields.items[1].fields.title,"icon-all",!0,!1);return n.push(r),n}catch(e){return n}}static createSecondaryLinks(e,t){try{let n=e.fields.items[1],i=n.fields.items[0].fields.title,r=this.createListOfCmsNavLink(n.fields.items[0].fields.items,t),o=new zs(i,r),a=n.fields.items[1].fields.title,s=this.createListOfCmsNavLink(n.fields.items[1].fields.items,t);return[o,new zs(a,s)]}catch(e){return[]}}static createListOfCmsNavLink(e,t){let n=[];return e.forEach((e=>{let i;i="marketing_page"===e.contentType?this.createCmsNavLinkFromMKP(e,t):this.createCmsNavLinkFromExternalLink(e,t),n.push(i)})),n}static createCmsNavLinkFromMKP(e,t){const n=e.fields;t=this.removeSlashUrlAtTheBeginning(t)===e.uriSuffix?"/":this.addSlashUrlAtTheEnd(t);const i=this.removeSlashUrlAtTheBeginning(e.uriSuffix),r=n.menuItemLabel?n.menuItemLabel:n.title,o={exact:"/casino/"!==t};return new Hs(t+i,r,n.iconClass,!1,!1,o)}static createCmsNavLinkFromExternalLink(e,t){let n="same_window"!==e.linkTarget,i="";return i=e.linkUrl.startsWith("/")||this.isAbsoluteUrl(e.linkUrl)?e.linkUrl:(t=this.removeSlashUrlAtTheBeginning(t)===e.linkUrl?"/":this.addSlashUrlAtTheEnd(t))+e.linkUrl,new Hs(i,e.linkText,e.iconClass,!1,n)}static addSlashUrlAtTheEnd(e){return e&&!e.endsWith("/")?e+"/":e}static removeSlashUrlAtTheBeginning(e){return e&&e.startsWith("/")?e.substr(1):e}static isAbsoluteUrl(e){return/^https?:\/\//i.test(e)}}const qs=new i.InjectionToken("MenuConfig");let Ks=(()=>{class e{}return e.CASINOHOME="casinohome",e.AUTHSTATEFILTERING="authstatefiltering",e.LOGGEDIN="loggedin",e})(),Xs=(()=>{class e{constructor(e,t,n,i,r,o){this.contentService=e,this.contentNotFoundHandler=t,this.marketingPageService=n,this.impressionHelper=i,this.sessionService=r,this.menuConfig=o}fetchContent(e,t){let n=this.contentService.getContentByUri(e,!0).pipe((0,c.first)(),(0,c.map)((e=>this.contentService.removeNotTaggedComponents(e,Ks.CASINOHOME))));return this.processContent(n,t)}fetchHomeContent(e,t,n){let i=this.contentService.getContentBySlug(e,t,{},!0).pipe((0,c.first)(),(0,c.map)((e=>n?e:this.contentService.removeNotTaggedComponents(e,Ks.CASINOHOME))));return this.processContent(i,!0)}fetchSection(e,t){let n=this.contentService.getContentBySlug(e,t,{},!0).pipe((0,c.first)(),(0,c.map)((e=>this.checkAuthenticationFilterTag(e))));return this.processContent(n,!1)}checkAuthenticationFilterTag(e){return(0,Vs.ge)(e,Ks.AUTHSTATEFILTERING)?this.filterChildrenByAuthenticationState(e):e}fetchMenu(e){return this.contentService.getContentBySlug(this.menuConfig.slug,e,this.menuConfig.params,!0).pipe((0,c.first)(),(0,c.tap)((e=>this.impressionHelper.pageView(e,!1))),(0,c.map)((e=>Ws.createCmsNavMenu(e,this.menuConfig.baseUrl))),(0,c.catchError)((()=>(0,s.of)(null))))}processContent(e,t=!0){return e.pipe((0,c.tap)((e=>this.impressionHelper.pageView(e,!1))),(0,c.map)((e=>this.marketingPageService.processPage(e))),(0,c.catchError)((e=>t?this.contentNotFoundHandler.resolveContentNotFoundOrThrow(e):(0,s.of)(null))))}filterChildrenByAuthenticationState(e){return this.sessionService.isAuthenticated()?this.contentService.removeNotTaggedComponents(e,Ks.LOGGEDIN):this.contentService.removeTaggedComponents(e,Ks.LOGGEDIN)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Vs._s),i["ɵɵinject"](Vs.Bo),i["ɵɵinject"]($a.F),i["ɵɵinject"](Gs.P),i["ɵɵinject"](et.mj),i["ɵɵinject"](qs))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Ys=n(91184);class Js{setContent(e){this.content=e}}Js.ɵfac=function(e){return new(e||Js)},Js.ɵprov=i["ɵɵdefineInjectable"]({token:Js,factory:Js.ɵfac}),(0,a.__decorate)([Ys.LO,(0,a.__metadata)("design:type",Object)],Js.prototype,"content",void 0),(0,a.__decorate)([Ys.aD,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],Js.prototype,"setContent",null);let Qs=(()=>{class e{constructor(e,t,n){this.pageService=e,this.cmsFeatureFlagService=t,this.headerStore=n}resolve(e,t){return this.cmsFeatureFlagService.isFeatureEnabled(Ft.u.CASINO_UNIQUE_PAGES_FF)?this.pageService.fetchSection(Vs.lI,Vs.wg).pipe((0,c.tap)((e=>this.headerStore.setContent(e)))):(0,s.of)(null)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Xs),i["ɵɵinject"](Ft.u),i["ɵɵinject"](Js))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class Zs{get title(){return this.content?this.content.title:""}setContent(e){this.content=e}}Zs.ɵfac=function(e){return new(e||Zs)},Zs.ɵprov=i["ɵɵdefineInjectable"]({token:Zs,factory:Zs.ɵfac}),(0,a.__decorate)([Ys.LO,(0,a.__metadata)("design:type",Object)],Zs.prototype,"content",void 0),(0,a.__decorate)([Ys.Fl,(0,a.__metadata)("design:type",String),(0,a.__metadata)("design:paramtypes",[])],Zs.prototype,"title",null),(0,a.__decorate)([Ys.aD,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],Zs.prototype,"setContent",null);class ec{setContent(e){this.content=e}get categoryLinks(){return this.content.categoryLinks}}ec.ɵfac=function(e){return new(e||ec)},ec.ɵprov=i["ɵɵdefineInjectable"]({token:ec,factory:ec.ɵfac}),(0,a.__decorate)([Ys.LO,(0,a.__metadata)("design:type",$s)],ec.prototype,"content",void 0),(0,a.__decorate)([Ys.aD,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[$s]),(0,a.__metadata)("design:returntype",void 0)],ec.prototype,"setContent",null),(0,a.__decorate)([Ys.Fl,(0,a.__metadata)("design:type",Array),(0,a.__metadata)("design:paramtypes",[])],ec.prototype,"categoryLinks",null);const tc=new i.InjectionToken("metadataAlternateContentToken");let nc=(()=>{class e{constructor(e,t,n,i,r){this.pageService=e,this.cmsFeatureFlagService=t,this.cmsPageStore=n,this.metadataAlternateContentService=i,this.contentNotFoundHandler=r}resolve(e,t){return this.cmsFeatureFlagService.isFeatureEnabled(Ft.u.CASINO_UNIQUE_PAGES_FF)?this.metadataAlternateContentService.checkMetadataAlternates(t).pipe((0,c.mergeMap)((n=>n?this.fetchContent(e,t):this.navigateToNotFoundPage())),(0,c.first)()):(0,s.of)(null)}fetchContent(e,t){return this.getContent(e,t).pipe((0,c.tap)((e=>this.cmsPageStore.setContent(e))))}getContent(e,t){return this.pageService.fetchContent(this.getUriSuffix(e,t))}getUriSuffix(e,t){return e.params.subcategory||e.params.category||t.url}navigateToNotFoundPage(){return this.marketingPageSubject=new s.Subject,this.contentNotFoundHandler.navigateToNotFoundPage(),this.resolveObserver({})}resolveObserver(e){return this.marketingPageSubject.next(e),this.marketingPageSubject.complete(),this.marketingPageSubject.asObservable()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Xs),i["ɵɵinject"](Ft.u),i["ɵɵinject"](Zs),i["ɵɵinject"](tc),i["ɵɵinject"](Vs.Bo))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ic=(()=>{class e extends nc{constructor(e,t,n,i,r,o,a,s){super(e,t,n,i,r),this.pageService=e,this.cmsFeatureFlagService=t,this.pageStore=n,this.metadataAlternateContentService=i,this.contentNotFoundHandler=r,this.sessionService=o,this.firstTimeVisitorService=a,this.router=s}getContent(e,t){const n=this.cleanUri(this.getUriSuffix(e,t)),i=this.firstTimeVisitorService.isFirstTime&&"/"===n,r=(0,Vs.vg)(i,this.sessionService.isAuthenticated());return this.pageService.fetchHomeContent(r,Vs.wg,i)}cleanUri(e){e=decodeURIComponent(e);const t=this.router.parseUrl(e);return t.fragment=null,t.queryParams={},this.router.serializeUrl(t)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Xs),i["ɵɵinject"](Ft.u),i["ɵɵinject"](Zs),i["ɵɵinject"](tc),i["ɵɵinject"](Vs.Bo),i["ɵɵinject"](V.m),i["ɵɵinject"](ss.HV),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),rc=(()=>{class e{constructor(e,t,n){this.pageService=e,this.cmsFeatureFlagService=t,this.menuStore=n}resolve(e,t){return this.cmsFeatureFlagService.isFeatureEnabled(Ft.u.CASINO_UNIQUE_PAGES_FF)?this.pageService.fetchMenu(Vs.KI).pipe((0,c.tap)((e=>this.menuStore.setContent(e))),(0,c.catchError)((()=>(0,s.of)(null)))):(0,s.of)(null)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Xs),i["ɵɵinject"](Ft.u),i["ɵɵinject"](ec))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();new i.InjectionToken("leaderboards");var oc=n(50680),ac=n(76053),sc=n(9293);let cc=class{constructor(e,t){this._gameCards=e,this.platformId=t,this.GRANULARITY=5,this.getSurroundingSiblings=e=>(this.buildCardMatrix(),this.surroundingSiblings(this.cardMatrix,e)),this.surroundingSiblings=(e,t)=>{const n=Array(8).fill(null);if((Array.isArray(e)&&t?this.getFromGameID(e,t):void 0)&&(e=>e.every((e=>{return!(!e||(t=[e.top,e.left,e.gameID],!t.every((e=>ac(sc(e))))));var t})))(e)){const i=this.getFromGameID(e,t),r=this.searchLeft(e,i),o=this.searchRight(e,i),a=this.searchTop(e,i),s=this.searchBottom(e,i);return n.map(((t,n)=>{switch(n){case 0:return r?this.searchTop(e,r):null;case 1:return a;case 2:return o?this.searchTop(e,o):null;case 3:return r;case 4:return o;case 5:return r?this.searchBottom(e,r):null;case 6:return s;case 7:return o?this.searchBottom(e,o):null;default:return null}})).map((e=>e?e.gameID:null))}return[]},this.buildCardMatrix()}buildCardMatrix(){let e;(0,r.isPlatformBrowser)(this.platformId)&&(e=this._gameCards&&this._gameCards.map((({card:{id:e,name:t},element:{nativeElement:n}})=>{const{top:i,left:r}=n.getBoundingClientRect();return{left:r,top:i,gameID:e,name:t}}))),this.cardMatrix=e||[]}relaxSearch(e,t){return t-this.GRANULARITY<=e&&e<=t+this.GRANULARITY}getFromGameID(e,t){return e.reduce(((e,n)=>n&&n.gameID===t?n:e),void 0)}horizontal(e){return t=>t.filter((t=>this.relaxSearch(t.top,e)))}vertical(e){return t=>t.filter((t=>this.relaxSearch(t.left,e)))}previous(e){return t=>t.reduce(((t,n)=>t&&t[e]>n[e]?t:n),null)}next(e){return t=>t.reduce(((t,n)=>t&&t[e]<n[e]?t:n),null)}searchLeft(e,t){const{top:n,left:i}=t;return oc(this.horizontal(n),(e=>e.filter((e=>e.left<i))),this.previous("left"))(e)}searchRight(e,t){const{top:n,left:i}=t;return oc(this.horizontal(n),(e=>e.filter((e=>e.left>i))),this.next("left"))(e)}searchTop(e,t){const{top:n,left:i}=t;return oc(this.vertical(i),(e=>e.filter((e=>e.top<n))),this.previous("top"))(e)}searchBottom(e,t){const{top:n,left:i}=t;return oc(this.vertical(i),(e=>e.filter((e=>e.top>n))),this.next("top"))(e)}};cc=(0,a.__decorate)([(0,a.__param)(1,(0,i.Inject)(i.PLATFORM_ID)),(0,a.__metadata)("design:paramtypes",[Object,Object])],cc);let lc=(()=>{class e extends va.x{constructor(e,t){super(),this.gamecardCmsMapper=e,this.trackingService=t}map(e,t){const n=!!e.fields&&!!e.fields.personalized&&!t,i=parseInt(e.automatedNumberOfItems);let r=n?this.gamecardCmsMapper.mapChildGamesAsEmpty(i):this.gamecardCmsMapper.mapChildGames(e),o=!1;return isNaN(i)||(r=r.slice(0,i),o=!0),{gamecardSlider:{games:r,title:e.fields.title,internalName:e.fields.internal_name,contentType:e.contentType,tracking:this.trackingService.getTrackingData(e),slugname:e.slugname,isAutomated:o,hasPersonalizedContent:n,tags:e.fields.tags}}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Qt),i["ɵɵinject"](Jt.e))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var dc=n(84860);let uc=(()=>{class e{constructor(e,t,n,i){this.analyticsService=e,this.firstTimeVisitorService=t,this.siteConfigService=n,this.router=i}trackView(e,t,n,i,r="personalized"){if(this.siteConfigService.isFeaturePresent(dc.L.contentViewTracking)){let o={};if(e){let t=this.siteConfigService.getSiteConfigProp("brandCode");o={sourceId:e.sourceId,sourceLabel:e.sourceLabel,sortOrder:e.sortOrder,amount:e.amount,page_name:t+":"+this.router.url}}const a={33:JSON.stringify({behaviour:"view",parentInternalName:n,parentType:"custom_menu",gamesIds:t,ftv:this.firstTimeVisitorService.isFirstTime,audiences:i,...o})};this.analyticsService.sendEvent("click",`${r}:display`,!0,a)}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](oe.y),i["ɵɵinject"](ss.HV),i["ɵɵinject"](G.r),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();class pc extends class{constructor(e){this._filter=new s.BehaviorSubject(""),this._limit=8,this._data=new s.BehaviorSubject(e)}get data(){return this._data.value}set data(e){this._data.next(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e)}connect(){return(0,s.combineLatest)(this._data,this._filter).pipe((0,c.map)((()=>this.doFilter()))).pipe((0,c.map)((e=>e?e.slice(0,this._limit):null)))}disconnect(){}}{constructor(e){super(e)}doFilter(){return this.filter&&this.data?this.data.filter((e=>!!e.id)).filter((e=>!!this.filter&&e.name.toLowerCase().indexOf(this.filter.trim().toLowerCase())>=0)):null}doSort(){return this.data}}class hc{constructor(e,t,n,i,r,o,a,s){this.categoryTitle=e,this.slugs=t,this.slugnameOfCategory=n,this.internalName=i,this.automatedNumberOfItems=r,this.personalizedContent=o,this.games=a,this.automatedTracking=s}}let mc=(()=>{class e extends va.x{map(e){let t=e.fields.items,n=this.hasSubcategories(t)?this.mapSubcategoriesOfGames(t,e):this.mapOnlyGames(t,e);return{tertiaryCarouselGames:{title:!t&&e.fields.personalized?void 0:e.fields.title,subcategories:n,tags:e.fields.tags,internalName:e.fields.internal_name}}}mapOnlyGames(e,t){if(!t.fields.items&&t.fields.personalized)return[new hc("All",[],t.fields.slugname,t.fields.internal_name,t.automatedNumberOfItems,t.fields.personalized)];const n=this.addPersonalizedTracking(t);return[new hc("All",this.getGamesSlugs(e),t.fields.slugname,t.fields.internal_name,t.automatedNumberOfItems,void 0,void 0,n)]}mapSubcategoriesOfGames(e,t){let n=[];return e.forEach((e=>{let t;if(!e.fields.items&&e.fields.personalized)t=new hc(e.fields.menuItemLabel,[],e.fields.slugname,e.fields.internal_name,e.automatedNumberOfItems,e.fields.personalized);else{const n=this.getGamesSlugs(e.fields.items),i=this.addPersonalizedTracking(e);t=new hc(e.fields.title,n,e.fields.slugname,e.fields.internal_name,e.automatedNumberOfItems,void 0,void 0,i)}n.push(t)})),n}addPersonalizedTracking(e){if(e.fields.sourceId&&e.fields.sourceLabel&&e.fields.sortOrder&&e.fields.amount)return{sourceId:e.fields.sourceId,sourceLabel:e.fields.sourceLabel,sortOrder:e.fields.sortOrder,amount:e.fields.amount}}hasSubcategories(e){return e&&e.length&&e[0].contentType!==K.z.CASINO_GAME_PAGE}getGamesSlugs(e){if(!e)return;const t=[];for(let n of e)t.push(n.fields.slug||n.slug);return t}}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),gc=(()=>{class e{constructor(e,t,n,i){this.gamecardService=e,this.contentService=t,this.mapper=n,this.contentViewTrackingService=i}getGamesBySlug(e){return this.gamecardService.getGamesByCategories(e)}getAllGames(){return this.gamecardService.getAllGames()}getGamesByCategory(t){return 0===t.slugs.length?this.contentService.getContentBySlug(t.slugnameOfCategory,e.CONTENT_SECTION).pipe((0,c.mergeMap)((e=>(t.slugs=this.mapper.getGamesSlugs(e.fields.items),this.gamecardService.getGameList(t.slugs).pipe((0,c.map)((e=>(t.games=e,t)))))))):this.gamecardService.getGameList(t.slugs).pipe((0,c.map)((e=>(t.games=e,t))))}getPersonalizedContent(e,t){return this.contentService.getPersonalizedContentBySlug(e.slugnameOfCategory).pipe((0,c.mergeMap)((n=>{const i=this.mapper.getGamesSlugs(n.fields.items);return this.gamecardService.getGameList(i).pipe((0,c.map)((i=>(t&&(e.categoryTitle=n.fields.title),e.games=i,e.automatedNumberOfItems=n.automatedNumberOfItems,e.automatedTracking=this.retrieveAutomatedTracking(n),this.handleContentViewTracking(e.automatedTracking,i,n.fields.internal_name,"personalized"),e))))})))}handleContentViewTracking(e,t,n,i){let r=t.map((e=>e.id));e&&(r=r.slice(0,parseInt(e.amount))),this.contentViewTrackingService.trackView(e,r,n,[],i)}retrieveAutomatedTracking(e){return{sourceId:e.fields.sourceId,sourceLabel:e.fields.sourceLabel,sortOrder:e.fields.sortOrder,amount:e.fields.amount}}}return e.CONTENT_SECTION="games",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](cn),i["ɵɵinject"](Vs._s),i["ɵɵinject"](mc),i["ɵɵinject"](uc))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),fc=(()=>{class e{constructor(){this.scrollToTopAllowed=!0}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const vc=["searchInput"];function bc(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",11),i["ɵɵtext"](1,"\n                    "),i["ɵɵelement"](2,"bx-search-list",12),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("dataSource",e.dataSourceValues)}}const yc=function(e){return{"search-field-enabled":e}},Cc=function(e,t){return{hidden:e,"has-text":t}},Sc=function(){return{tag:"placeholder",label:"search.input.placeholder"}},xc=function(e){return{"has-text active-field":e}},wc=function(e,t){return{"search-btn":e,"cancel-search":t}};let Ec=(()=>{class e{constructor(e,t,n,o){this.analyticsService=e,this.element=t,this.fb=n,this.platformId=o,this.showResults=!1,this.isDataSourceReady$=new s.Subject,this.state="inactive",this.searchForm=this.fb.group({search:[""]}),this.activated=new i.EventEmitter,this.deactivated=new i.EventEmitter,this.focus=new i.EventEmitter,(0,r.isPlatformBrowser)(this.platformId)&&(this._onclickSub=(0,s.fromEvent)(document,"click").pipe((0,c.filter)((e=>!e.composedPath().includes(this.element.nativeElement)))).subscribe((()=>this.cleanUpSearch())))}set dataSource(e){e&&(this.dataSourceValues=e,this.showResults=!0,this.isDataSourceReady$.next())}isActive(){return"active"===this.state}isInactive(){return"inactive"===this.state}isTyping(){return this.searchForm.dirty}ngOnInit(){(0,s.combineLatest)(this.isDataSourceReady$,this.searchForm.get("search").valueChanges).pipe((0,c.debounceTime)(300)).subscribe((e=>{this.dataSourceValues.filter&&!e&&this.searchForm.reset(),this.dataSourceValues.filter=e[1]})),this.dataSourceValues&&this.isDataSourceReady$.next()}onSearchBtnClick(e){if(this.isActive()&&this.searchForm.pristine)return e.preventDefault();this.isActive()&&this.isTyping()?this.cleanUpSearch():(this.analyticsService.sendEvent("click","casino_search_box_click",!1,{}),this.state="active",setTimeout((()=>{this.activated.emit(),this.onFocusInput()}),0))}onFocusInput(){this._searchInput.nativeElement.focus(),this._searchInput.nativeElement.click(),this.focus.emit()}ngOnDestroy(){this._onclickSub&&(this._onclickSub.unsubscribe(),this._onclickSub=null),this.dataSourceValues&&this.dataSourceValues.disconnect(),this.isDataSourceReady$.unsubscribe()}cleanUpSearch(){this.dataSourceValues&&(this.dataSourceValues.filter=null),this.state="inactive",this.searchForm.reset(),this.deactivated.emit()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](ge.FormBuilder),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-search-bar"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](vc,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t._searchInput=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&i["ɵɵclassMap"](t.state)},inputs:{dataSource:"dataSource"},outputs:{activated:"activated",deactivated:"deactivated",focus:"focus"},decls:31,vars:24,consts:[[1,"search-navbar",3,"ngClass"],[1,"custom-dropdown","custom-dropdown-search","custom-field","small-field","search-input",3,"formGroup","ngClass","keydown.enter"],["type","text","formControlName","search",1,"search-input-dropdown","search-text-input",3,"ngClass","bxTranslate","keydown.esc"],["searchInput",""],["for","small-dropdown-search",1,"search-dropdown-label",3,"ngClass"],["type","button",1,"clear-btn",3,"hidden","click"],[1,"icon","icon-close"],["type","button",3,"ngClass","click"],[1,"icon","icon-search",3,"hidden"],[1,"text",3,"hidden","bxTranslate"],["class","search-results",4,"ngIf"],[1,"search-results"],[3,"dataSource"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"form",1),i["ɵɵlistener"]("keydown.enter",(function(e){return e.preventDefault()})),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"input",2,3),i["ɵɵlistener"]("keydown.esc",(function(){return t.searchForm.reset()})),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"label",4),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n\n                "),i["ɵɵelementStart"](11,"button",5),i["ɵɵlistener"]("click",(function(){return t.searchForm.reset()})),i["ɵɵtext"](12,"\n                    Clear\n                    "),i["ɵɵelement"](13,"i",6),i["ɵɵtext"](14,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n\n                "),i["ɵɵelementStart"](16,"button",7),i["ɵɵlistener"]("click",(function(e){return t.onSearchBtnClick(e)})),i["ɵɵtext"](17,"\n                    "),i["ɵɵelementStart"](18,"span"),i["ɵɵtext"](19,"\n                        "),i["ɵɵelement"](20,"i",8),i["ɵɵtext"](21,"\n                        "),i["ɵɵelementStart"](22,"span",9),i["ɵɵtext"](23,"\n                            search.action.cancel\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n                "),i["ɵɵtemplate"](27,bc,4,1,"div",10),i["ɵɵtext"](28,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](29,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](13,yc,t.isActive())),i["ɵɵadvance"](2),i["ɵɵclassProp"]("has-text",t.isTyping()),i["ɵɵproperty"]("formGroup",t.searchForm)("ngClass",t.state),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](15,Cc,t.isInactive(),t.isTyping()))("bxTranslate",i["ɵɵpureFunction0"](18,Sc)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](19,xc,t.isTyping())),i["ɵɵadvance"](3),i["ɵɵproperty"]("hidden",t.searchForm.pristine),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](21,wc,t.searchForm.pristine,t.isTyping())),i["ɵɵadvance"](4),i["ɵɵproperty"]("hidden",t.isTyping()),i["ɵɵadvance"](2),i["ɵɵproperty"]("hidden",t.searchForm.pristine),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.showResults))},styles:["[_nghost-%COMP%]   form[_ngcontent-%COMP%] { border-radius: 4px; }"]}),e})(),Ic=(()=>{class e{constructor(e,t){this.rendered=e,this.element=t}ngOnInit(){const e=this.element.nativeElement.querySelector(".search-navbar .search-input");this.rendered.addClass(e,"search-slide")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](i.ElementRef))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","searchSlide",""]]}),e})(),Pc=(()=>{class e{constructor(e,t){this.rendered=e,this.element=t}ngOnInit(){const e=this.element.nativeElement.querySelector(".search-navbar .search-input");this.rendered.addClass(e,"search-games-form")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](i.ElementRef))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","searchGame",""]]}),e})();const Tc=["searchBar"],_c=["cardContainer"];function Mc(e,t){if(1&e&&(i["ɵɵelementStart"](0,"h2",17),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.title)}}function Oc(e,t){1&e&&i["ɵɵelement"](0,"div",18)}function Ac(e,t){if(1&e&&(i["ɵɵelementStart"](0,"header",14),i["ɵɵtext"](1,"\n                            "),i["ɵɵtemplate"](2,Mc,2,1,"h2",15),i["ɵɵtext"](3,"\n                            "),i["ɵɵtemplate"](4,Oc,1,0,"div",16),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e.showTitlePlaceholder),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.showTitlePlaceholder)}}function kc(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-search-bar",19,20),i["ɵɵlistener"]("focus",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onFocusSearch()}))("activated",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onSearchActivated()}))("deactivated",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onSearchDeactivated()})),i["ɵɵtext"](2,"\n                        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("dataSource",e.casinoDataSource)}}function jc(e,t){if(1&e&&i["ɵɵelement"](0,"bx-card",21),2&e){const e=t.$implicit,n=t.index,r=i["ɵɵnextContext"]();i["ɵɵproperty"]("card",e)("defaultImage",r.getDefaultImage())("gameBlockContext",r.gameBlockContext)("position",n)("contentSource",r.contentSource)("automatedTracking",r.automatedTracking)}}function Nc(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",22),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().scrollLeft()})),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"button",23),i["ɵɵtext"](3,"\n                                "),i["ɵɵelement"](4,"i",24),i["ɵɵtext"](5,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"]()}}function Rc(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",25),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().scrollRight()})),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"button",26),i["ɵɵtext"](3,"\n                                "),i["ɵɵelement"](4,"i",27),i["ɵɵtext"](5,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"]()}}const Dc=function(e){return{overmenu:e}},Lc=function(e){return{"hidden-xs":e}};let Fc=class{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h){this.imageService=e,this.horizontalScrollServiceFactory=t,this.contentService=n,this.gamecardSliderMapper=i,this.document=r,this.platformId=o,this.contentViewTrackingService=a,this.windowService=s,this.deviceService=c,this.siteConfig=l,this.cookieStorageService=d,this.casinoGameSearchConfig=u,this.cardConfig=p,this.gameTertiaryCarouselService=h,this.CASINO_SEARCH_FEATURE="casino.search_bar",this.CASINO_SEARCH_DATASOURCE="SEARCHBYCATEGORIES",this.scrollRightButtonShown=!0,this.scrollLeftButtonShown=!1,this.games=[],this.contentSource="manual",this.horizontalScrollService=this.horizontalScrollServiceFactory.create()}ngOnInit(){this.isCasinoSearchEnabled()&&(this.casinoDataSource=new pc),this.showTitlePlaceholder=this.gamecardSlider.hasPersonalizedContent,this.title=this.gamecardSlider.title,this.games=this.gamecardSlider.games,this.gameBlockContext={contentType:this.gamecardSlider.contentType,internalName:this.gamecardSlider.internalName,tracking:this.gamecardSlider.tracking},this.gamecardSlider.hasPersonalizedContent?(0,r.isPlatformBrowser)(this.platformId)&&this.requestPersonalizedContentBySlug():(this.contentSource=this.gamecardSlider.isAutomated?"automated":"manual",this.automatedTracking=this.gamecardSlider.tracking.automatedTracking,this.handleContentViewTracking())}requestPersonalizedContentBySlug(){this.contentService.getPersonalizedContentBySlug(this.gamecardSlider.slugname).subscribe((e=>{const t=this.gamecardSliderMapper.map(e,!0);this.games=t.gamecardSlider.games,this.title=t.gamecardSlider.title,this.showTitlePlaceholder=!1,this.contentSource="personalized",this.automatedTracking=t.gamecardSlider.tracking.automatedTracking,this.handleContentViewTracking()}))}handleContentViewTracking(){const e=this.games.map((e=>e.id));this.contentViewTrackingService.trackView(this.automatedTracking,e,this.gameBlockContext.internalName,this.gameBlockContext.tracking.audiences,this.contentSource)}ngAfterViewInit(){this.horizontalScrollService.initScroll(this.cardContainer),this.scrollSubscription=this.horizontalScrollService.getSubject().subscribe((e=>{"left"===e.button?this.scrollLeftButtonShown=e.display:this.scrollRightButtonShown=e.display}))}onFocusSearch(){if(this.deviceService.isMobile()&&this.isCasinoSearchEnabled()&&this.isScrollAllowed()){this.searchBar.nativeElement.scrollIntoView();const e=this.windowService.window().scrollY,t=this.document.querySelector(".navbar-fixed-top");e&&t&&this.windowService.window().scroll(0,e-t.getBoundingClientRect().height-16)}}getDefaultImage(){return this.imageService.getPlaceholderImage(400,304,this.cardConfig.defaultImageColor||void 0)}isScrollAllowed(){return this.casinoGameSearchConfig.scrollToTopAllowed}onSearchActivated(){this.casinoDataSource.data||(this.searchByCategories()?this.gameTertiaryCarouselService.getGamesBySlug("casino-search-menu"):this.gameTertiaryCarouselService.getAllGames()).pipe((0,c.map)((e=>e.filter((e=>"live-dealer"!==e.category))))).subscribe((e=>this.casinoDataSource.data=e)),this.searchBarActive=!0}onSearchDeactivated(){this.searchBarActive=!1}isCasinoSearchEnabled(){return this.siteConfig.hasFeature(this.CASINO_SEARCH_FEATURE)&&(0,r.isPlatformBrowser)(this.platformId)&&this.gamecardSlider.tags&&this.gamecardSlider.tags.includes("casinogamespercategories")}scrollRight(){this.horizontalScrollService.scrollRight()}scrollLeft(){this.horizontalScrollService.scrollLeft()}searchByCategories(){return"true"===this.cookieStorageService.get(this.CASINO_SEARCH_DATASOURCE)}};Fc.ɵfac=function(e){return new(e||Fc)(i["ɵɵdirectiveInject"](Et.AJ),i["ɵɵdirectiveInject"](os.b),i["ɵɵdirectiveInject"](Dt._),i["ɵɵdirectiveInject"](lc),i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](uc),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](Bt.U),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](me.G),i["ɵɵdirectiveInject"](fc),i["ɵɵdirectiveInject"](ft),i["ɵɵdirectiveInject"](gc))},Fc.ɵcmp=i["ɵɵdefineComponent"]({type:Fc,selectors:[["bx-game-card-slider"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](Tc,5,i.ElementRef),i["ɵɵviewQuery"](_c,5)),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.searchBar=e.first),i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.cardContainer=e.first)}},inputs:{gamecardSlider:"gamecardSlider"},decls:36,vars:12,consts:[[1,"carousel","primary",3,"ngClass"],[1,"component-wrapper","max-container"],[1,"top-container"],[1,"component-header-container",3,"ngClass"],["class","component-header",4,"ngIf"],[1,"casino-actions-container",3,"hidden"],["searchSlide","","searchGame","",3,"dataSource","focus","activated","deactivated",4,"ngIf"],[1,"hide-scroll"],[1,"content-slider","max-height-container"],["cardContainer",""],[3,"card","defaultImage","gameBlockContext","position","contentSource","automatedTracking",4,"ngFor","ngForOf"],[1,"carousel-navigation"],["role","button","class","carousel-navigation-back",3,"click",4,"ngIf"],["role","button","class","carousel-navigation-next",3,"click",4,"ngIf"],[1,"component-header"],["class","h2-heading content-title",4,"ngIf"],["class","placeholder-title",4,"ngIf"],[1,"h2-heading","content-title"],[1,"placeholder-title"],["searchSlide","","searchGame","",3,"dataSource","focus","activated","deactivated"],["searchBar",""],[3,"card","defaultImage","gameBlockContext","position","contentSource","automatedTracking"],["role","button",1,"carousel-navigation-back",3,"click"],["aria-label","back",1,"carousel-navigation-btn"],[1,"icon","icon-arrow-back"],["role","button",1,"carousel-navigation-next",3,"click"],["aria-label","next",1,"carousel-navigation-btn"],[1,"icon","icon-arrow-next"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"section",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"div",3),i["ɵɵtext"](8,"\n                        "),i["ɵɵtemplate"](9,Ac,6,2,"header",4),i["ɵɵtext"](10,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                    "),i["ɵɵelementStart"](12,"div",5),i["ɵɵtext"](13,"\n                        "),i["ɵɵtemplate"](14,kc,3,1,"bx-search-bar",6),i["ɵɵtext"](15,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                "),i["ɵɵelementStart"](18,"div",7),i["ɵɵtext"](19,"\n                    "),i["ɵɵelementStart"](20,"div",8,9),i["ɵɵtext"](22,"\n                        "),i["ɵɵtemplate"](23,jc,1,6,"bx-card",10),i["ɵɵtext"](24,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n                    "),i["ɵɵelementStart"](26,"ul",11),i["ɵɵtext"](27,"\n                        "),i["ɵɵtemplate"](28,Nc,7,0,"li",12),i["ɵɵtext"](29,"\n                        "),i["ɵɵtemplate"](30,Rc,7,0,"li",13),i["ɵɵtext"](31,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](32,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](33,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](34,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](35,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](8,Dc,t.searchBarActive)),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](10,Lc,t.searchBarActive)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.title),i["ɵɵadvance"](3),i["ɵɵproperty"]("hidden",!t.isCasinoSearchEnabled()),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.isCasinoSearchEnabled()),i["ɵɵadvance"](9),i["ɵɵproperty"]("ngForOf",t.games),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.scrollLeftButtonShown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.scrollRightButtonShown))},directives:[r.NgClass,r.NgIf,r.NgForOf,Ec,Ic,Pc,Is],encapsulation:2}),Fc=(0,a.__decorate)([(0,q.DE)({name:"GamecardSlider",injectedMapper:lc,matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Sa.d.GAMECARD_SLIDER)>=0}),(0,a.__metadata)("design:paramtypes",[Et.AJ,os.b,Dt._,lc,Object,Object,uc,ee.u,Bt.U,G.r,me.G,fc,ft,gc])],Fc);var Bc=n(89493),Uc=n(6235);const Vc=new i.InjectionToken("SearchConfig");let Gc=(()=>{class e{constructor(e,t,n){this.componentConfig=e,this.viewContainerRef=t,this.cfr=n}ngOnInit(){let e=this.cfr.resolveComponentFactory(this.componentConfig.template);this.viewContainerRef.clear(),this.viewContainerRef.createComponent(e).instance.data=this.data}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Vc),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](i.ComponentFactoryResolver))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bx-dynamic-template",""]],inputs:{data:["bx-dynamic-template","data"]}}),e})();function Hc(e,t){}function zc(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,Hc,0,0,"ng-template",3),i["ɵɵtext"](3,"\n            "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("bx-dynamic-template",e)}}function $c(e,t){1&e&&(i["ɵɵelementStart"](0,"li",4),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"div",5),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"header",6),i["ɵɵtext"](5,"\n                        "),i["ɵɵelement"](6,"i",7),i["ɵɵtext"](7,"\n                        "),i["ɵɵelementStart"](8,"h3",8),i["ɵɵtext"](9,"search.info.notFound.title"),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                        "),i["ɵɵelementStart"](11,"h4",8),i["ɵɵtext"](12,"search.info.notFound.subtitle"),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n            "),i["ɵɵelementEnd"]())}const Wc=function(e){return{active:e}};let qc=(()=>{class e{constructor(e){this._bar=e}ngOnInit(){if(!this._bar)throw Error("Search bar parent component not found!!");this.dataSource.connect().subscribe((e=>this.filtered=e))}displayDroplist(){return this._bar.isActive()&&this._bar.isTyping()&&this.filtered&&this.filtered.length>=0}displayEmptyListRow(){return this._bar.isTyping()&&this.filtered&&0===this.filtered.length}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Ec))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-search-list"]],inputs:{dataSource:"dataSource"},decls:8,vars:5,consts:[["role","list",1,"inner-search-results","custom-droplist",3,"ngClass"],[4,"ngFor","ngForOf"],["role","listitem","class","search-result not-found",4,"ngIf"],[3,"bx-dynamic-template"],["role","listitem",1,"search-result","not-found"],[1,"info-area"],[1,"game-info"],[1,"info","icon-info"],["role","heading",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"ul",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,zc,4,1,"ng-container",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,$c,16,0,"li",2),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](3,Wc,t.displayDroplist())),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",t.filtered),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.displayEmptyListRow()))},directives:[r.NgClass,r.NgForOf,r.NgIf,Gc,Se.P],styles:["[_nghost-%COMP%]   ul.active[_ngcontent-%COMP%] {\n  display: block; }"]}),e})(),Kc=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:Vc,useValue:t},{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:[t.template],multi:!0}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[o.RouterModule,r.CommonModule,bt.a,ge.ReactiveFormsModule,Uc.$]]}),e})();i["ɵɵsetComponentScope"](Ec,[r.NgClass,ge["ɵNgNoValidate"],ge.NgControlStatusGroup,ge.FormGroupDirective,ge.DefaultValueAccessor,ge.NgControlStatus,ge.FormControlName,Se.P,r.NgIf,qc],[]);let Xc=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[lc,me.G],imports:[[r.CommonModule,o.RouterModule,Rt,Et.$Q,bt.a,Bc.E,W.J.withComponents([Fc]),Kc,yt.M]]}),e})();const Yc=function(e){return{tag:"textContent",label:e}},Jc=function(e){return[e]};function Qc(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",3),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e),n=t.$implicit,r=t.index;return i["ɵɵnextContext"](2).buttonClick(n,r)})),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"span",4),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=i["ɵɵnextContext"](2);i["ɵɵclassProp"]("active",e.active)("disabled",e.disabled)("no-background-color",n.noTabBackgroundColor),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](9,Jc,i["ɵɵpureFunction1"](7,Yc,e.title)))}}function Zc(e,t){if(1&e&&(i["ɵɵelementStart"](0,"ul",1),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Qc,4,11,"li",2),i["ɵɵtext"](3,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassMap"](e.listClass),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",e.buttons)}}let el=(()=>{class e{constructor(){this.buttonSelected=new i.EventEmitter,this.listClass=""}buttonClick(e,t){this.buttons.map(((e,n)=>e.active=t==n)),this.buttonSelected.emit({button:e,index:t})}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-button-list"]],inputs:{buttons:"buttons",listClass:"listClass",noTabBackgroundColor:"noTabBackgroundColor"},outputs:{buttonSelected:"buttonSelected"},decls:3,vars:1,consts:[["role","list",3,"class",4,"ngIf"],["role","list"],["role","button",3,"active","disabled","no-background-color","click",4,"ngFor","ngForOf"],["role","button",3,"click"],[3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,Zc,4,3,"ul",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.buttons))},directives:[r.NgIf,r.NgForOf,Se.P],styles:["li.active[_ngcontent-%COMP%], li.disabled[_ngcontent-%COMP%] {\n  pointer-events: none; }\n\nli.disabled[_ngcontent-%COMP%] {\n  opacity: 0.3; }\n\n.custom-tab.tertiary[_ngcontent-%COMP%]   li.active.no-background-color[_ngcontent-%COMP%], .custom-tab.tertiary[_ngcontent-%COMP%]   li.no-background-color[_ngcontent-%COMP%]:hover {\n  background-color: transparent; }"]}),e})();n(11524);var tl=n(13811);const nl="leaderboards";let il=(()=>{class e{constructor(e,t,n){this.leaderboardUiService=e,this.translateService=t,this.toastNotificationService=n}showTournamentMessage(e,t){return this.showToastNotification(e,t)}joinTournament(e){this.leaderboardUiService.isLoggedIn()?this.leaderboardUiService.canJoinTournament(e)?this.leaderboardUiService.joinTournament(e.id).subscribe((()=>{e.joined=!0,this.emitUpdateEvent(e)}),this.onLeaderboardError.bind(this)):this.showTournamentMessage("leaderboardShared.custom-messages.message.cant-join","warning"):this.loginHandler()}unjoinTournament(e){this.leaderboardUiService.isLoggedIn()?this.leaderboardUiService.unJoinTournament(e.id).subscribe((()=>{e.joined=!1,this.leaderboardUiService.canJoinTournament(e)?this.emitUpdateEvent(e):this.emitUpdateEvent()}),this.onLeaderboardError.bind(this)):this.loginHandler()}launchGame(e){this.leaderboardUiService.isLoggedIn()&&e&&e.games&&e.games.length&&this.leaderboardUiService.getRankings(e.id).subscribe((t=>{t&&!t.cancelled?this.openLeaderboardGame(e):this.showTournamentMessage("leaderboardShared.custom-messages.message.cancelled","error")}))}showToastNotification(e,t,n=5e3,i=0){return this.translateService.translate(e).pipe((0,c.map)((e=>({msg:e,modal:!1,type:t,timeout:n,delay:i})))).subscribe((e=>{this.toastNotificationService.add(e),this.emitUpdateEvent()}))}onLeaderboardError(e){412===e.status&&this.showTournamentMessage("leaderboardShared.custom-messages.message.cancelled","error")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ni),i["ɵɵinject"](fe.s),i["ɵɵinject"](ve.i))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const rl=["carousel"],ol=["collapsible"];function al(e,t){1&e&&i["ɵɵelementContainer"](0)}function sl(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",3),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,al,1,0,"ng-container",4),i["ɵɵtext"](3,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngTemplateOutlet",e.template)}}function cl(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-leaderboard-card",12),i["ɵɵlistener"]("leaderboardEnd",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onLeaderboardFinished(t)}))("leaderboardCancelled",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onLeaderboardFinished(t)})),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit;i["ɵɵproperty"]("tournament",e)}}function ll(e,t){if(1&e&&(i["ɵɵtext"](0,"\n            "),i["ɵɵelementStart"](1,"div",5),i["ɵɵtext"](2,"\n                "),i["ɵɵelementStart"](3,"bx-lb-collapsible",6),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementStart"](5,"div",7),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementStart"](7,"ul",8),i["ɵɵtext"](8,"\n                            "),i["ɵɵelementStart"](9,"li",9),i["ɵɵtext"](10,"leaderboardGame.tab.title.next"),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementStart"](14,"div",10),i["ɵɵtext"](15,"\n                        "),i["ɵɵtemplate"](16,cl,2,1,"bx-leaderboard-card",11),i["ɵɵpipe"](17,"slice"),i["ɵɵtext"](18,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n                    "),i["ɵɵelement"](20,"bx-leaderboard-next-actions"),i["ɵɵtext"](21,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n        ")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵproperty"]("opened",!0)("showActions",!1),i["ɵɵadvance"](13),i["ɵɵproperty"]("ngForOf",i["ɵɵpipeBind3"](17,3,e.tournaments,0,3))}}function dl(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"slide",17),i["ɵɵlistener"]("swiperight",(function(){const t=i["ɵɵrestoreView"](e).index;return i["ɵɵnextContext"](2).movePrev(t)}))("swipeleft",(function(){const t=i["ɵɵrestoreView"](e).index;return i["ɵɵnextContext"](2).moveNext(t)})),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"bx-leaderboard-card",12),i["ɵɵlistener"]("leaderboardEnd",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onLeaderboardFinished(t)}))("leaderboardCancelled",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onLeaderboardFinished(t)})),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("tournament",e)}}function ul(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵtext"](0,"\n            "),i["ɵɵelementStart"](1,"div",13),i["ɵɵtext"](2,"\n                "),i["ɵɵelementStart"](3,"h3",14),i["ɵɵtext"](4,"leaderboardGame.tab.title.next"),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n                "),i["ɵɵelementStart"](6,"carousel",15),i["ɵɵlistener"]("activeSlideChange",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().setCurrentSlide(t)})),i["ɵɵtext"](7,"\n                    "),i["ɵɵtemplate"](8,dl,5,1,"slide",16),i["ɵɵpipe"](9,"slice"),i["ɵɵtext"](10,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n        ")}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](6),i["ɵɵproperty"]("interval",e.interval)("activeSlide",e.currentSlide),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",i["ɵɵpipeBind3"](9,3,e.tournaments,0,3))}}let pl=(()=>{class e{constructor(e,t,n){this.appState=e,this.leaderboardUiService=t,this.tournamentService=n,this.currentSlide=0,this.interval=5e3}ngOnInit(){this.template=this.leaderboardUiService.isMobileDevice()?this.carousel:this.collapsible,(0,ce.U5)((()=>this.appState.loginState),(()=>this.leaderboardUiService.getActiveTournaments())),this._activeSubcription=this.tournamentService.active.subscribe((e=>this.tournaments=e)),this.leaderboardUiService.getActiveTournaments()}ngOnDestroy(){this._activeSubcription&&(this._activeSubcription.unsubscribe(),this._activeSubcription=null)}onLeaderboardFinished(e){const t=this.tournaments.findIndex((t=>t.id===e.id));-1!==t&&this.tournaments.splice(t,1),this.tournamentService.refresh.next()}setCurrentSlide(e){this.currentSlide=e}moveNext(e){e+1<this.tournaments.length?this.setCurrentSlide(e+1):this.setCurrentSlide(0)}movePrev(e){e-1<0?this.setCurrentSlide(this.tournaments.length-1):this.setCurrentSlide(e-1)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Jn.X),i["ɵɵdirectiveInject"](ni),i["ɵɵdirectiveInject"](Yn))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-next"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](rl,7,i.TemplateRef),i["ɵɵviewQuery"](ol,7,i.TemplateRef)),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.carousel=e.first),i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.collapsible=e.first)}},decls:9,vars:1,consts:[["class","bx-leaderboard-next",4,"ngIf"],["collapsible",""],["carousel",""],[1,"bx-leaderboard-next"],[4,"ngTemplateOutlet"],[1,"collapsible-container"],[3,"opened","showActions"],[1,"bx-lb-collapsible-header"],[1,"custom-tab","quaternary"],["role","button",1,"active",3,"bxTranslate"],[1,"leaderboard-card-list"],[3,"tournament","leaderboardEnd","leaderboardCancelled",4,"ngFor","ngForOf"],[3,"tournament","leaderboardEnd","leaderboardCancelled"],[1,"carousel-container"],[1,"h3-heading",3,"bxTranslate"],[1,"banner-carousel","carousel","ng-loaded",3,"interval","activeSlide","activeSlideChange"],["class","high-contrast light-text",3,"swiperight","swipeleft",4,"ngFor","ngForOf"],[1,"high-contrast","light-text",3,"swiperight","swipeleft"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,sl,4,1,"div",0),i["ɵɵtext"](2,"\n\n        "),i["ɵɵtemplate"](3,ll,24,7,"ng-template",null,1,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](5,"\n        "),i["ɵɵtemplate"](6,ul,13,7,"ng-template",null,2,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](8,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.tournaments&&t.tournaments.length>0))},styles:["[_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%] {\n  margin-bottom: 24px; }\n  @media screen and (max-width: 768px) {\n    [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%] {\n      margin-top: 24px; } }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]   .collapsible-container[_ngcontent-%COMP%]     .collapsible-header-wrapper {\n    padding: 0px; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]   .collapsible-container[_ngcontent-%COMP%]     .collapsible-header-wrapper .custom-tab.quaternary li {\n      width: 100%;\n      font-size: 16px; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]   .collapsible-container[_ngcontent-%COMP%]   .leaderboard-card-list[_ngcontent-%COMP%]   bx-leaderboard-card[_ngcontent-%COMP%] {\n    display: block;\n    border-bottom: 1px solid #D1D1D1; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]   .collapsible-container[_ngcontent-%COMP%]   .leaderboard-card-list[_ngcontent-%COMP%]   bx-leaderboard-card[_ngcontent-%COMP%]:last-child {\n    border-bottom: none; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]   .carousel-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%] {\n    margin-bottom: 16px;\n    text-transform: uppercase; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]     .bx-leaderboard-card {\n    margin: 0px;\n    padding: 16px 32px; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]     .bx-leaderboard-card .header-wrapper {\n      margin-bottom: 16px; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]     .bx-leaderboard-card .bx-leaderboard-card-content {\n      padding: 0px; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]     .bx-leaderboard-card .bx-leaderboard-card-content .leaderboard-card-time-wrapper {\n        margin-left: 32px; }\n  [_nghost-%COMP%]   .bx-leaderboard-next[_ngcontent-%COMP%]     .bx-leaderboard-card .bx-leaderboard-card-content .leaderboard-card-time-wrapper div.leaderboard-card-time {\n          margin-bottom: 13px; }"]}),e})(),hl=(()=>{class e{constructor(e){this.viewContainerRef=e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ViewContainerRef))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","adHost",""]]}),e})();function ml(e,t){}let gl=(()=>{class e{constructor(e,t){this.config=e,this.cfr=t,this.joinEvent=new i.EventEmitter,this.unjoinEvent=new i.EventEmitter,this.dismissEvent=new i.EventEmitter,this.openGameEvent=new i.EventEmitter,this.endEvent=new i.EventEmitter}ngOnInit(){let e=this.cfr.resolveComponentFactory(this.config.components.leaderboardCard),t=this.adHost.viewContainerRef;t.clear(),this.componentRef=t.createComponent(e),this.componentRef.instance.imgSizeClass=this.imgSizeClass,this.componentRef.instance.tournament=this.tournament;for(const e in this.componentRef.instance)this.componentRef.instance.hasOwnProperty(e)&&this.componentRef.instance[e]instanceof i.EventEmitter&&this.componentRef.instance[e].subscribe((t=>{this[e].emit(t)}))}ngOnChanges(){this.componentRef&&this.componentRef.instance&&(this.componentRef.instance.tournament=this.tournament)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](qn),i["ɵɵdirectiveInject"](i.ComponentFactoryResolver))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["lb-leaderboard-card-content"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](hl,7),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.adHost=e.first)}},inputs:{imgSizeClass:"imgSizeClass",tournament:"tournament"},outputs:{joinEvent:"joinEvent",unjoinEvent:"unjoinEvent",dismissEvent:"dismissEvent",openGameEvent:"openGameEvent",endEvent:"endEvent"},features:[i["ɵɵNgOnChangesFeature"]],decls:1,vars:0,consts:[["adHost",""]],template:function(e,t){1&e&&i["ɵɵtemplate"](0,ml,0,0,"ng-template",0)},directives:[hl],encapsulation:2}),e})();function fl(e,t){1&e&&(i["ɵɵelementStart"](0,"div",10),i["ɵɵtext"](1,"\n                        "),i["ɵɵelement"](2,"i",11),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"]())}function vl(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"lb-leaderboard-card-content",12),i["ɵɵlistener"]("joinEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onJoinLeaderboard()}))("unjoinEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onUnjoinLeaderboad()}))("dismissEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onUnjoinLeaderboad()}))("openGameEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onPlayLeaderboard()}))("endEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onLeaderboardEnd()})),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("imgSizeClass",e.carouselImgSize)("tournament",e.tournament)}}let bl=(()=>{class e extends il{constructor(e,t,n,r,o,a,s,c,l,d){super(e,t,n),this.leaderboardNext=r,this.config=o,this.cssConfig=a,this.tournamentService=s,this.gameUrlService=c,this.router=l,this.platformId=d,this.carouselImgSize="img-xsmall",this.leaderboardEnd=new i.EventEmitter,this.leaderboardCancelled=new i.EventEmitter}ngOnInit(){this.isBrowser=(0,r.isPlatformBrowser)(this.platformId),this.leaderboardNext&&(this.carouselImgSize="img-small"),this._updateSubscription=this.tournamentService.update.pipe((0,c.filter)((e=>e.id===this.tournament.id))).subscribe((e=>{this.tournament=Object.assign({},this.tournament,e)}))}ngOnDestroy(){this._updateSubscription&&(this._updateSubscription.unsubscribe(),this._updateSubscription=null)}showInfo(){this.config.routes&&this.config.routes.prizes?this.router.navigate([this.config.routes.prizes,this.tournament.id]):this.router.navigate(["prizes",this.tournament.id])}onJoinLeaderboard(){this.joinTournament(this.tournament)}onUnjoinLeaderboad(){this.unjoinTournament(this.tournament)}onPlayLeaderboard(){this.launchGame(this.tournament)}onLeaderboardEnd(){this.leaderboardEnd.emit(this.tournament)}emitUpdateEvent(e){e?this.tournamentService.update.next(e):this.leaderboardCancelled.emit(this.tournament)}loginHandler(){this.router.navigate([this.config.routes.login],{queryParams:{closeUrl:this.router.url}})}openLeaderboardGame(e){this.tournamentService.selected.next(e),e.game&&e.game.value&&e.game.value.category&&e.game.value.slug?this.config.options&&this.config.options.forceReal?this.router.navigate(this.gameUrlService.getPathList(e.game.value.category,e.game.value.slug,e.game.value.subCategory,this.config.routes.casino),{fragment:"real"}):this.router.navigate(this.gameUrlService.getPathList(e.game.value.category,e.game.value.slug,e.game.value.subCategory,this.config.routes.casino)):this.router.navigate([this.config.routes.casino,nl,"launch",e.games[0].id])}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ni),i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](fn.il),i["ɵɵdirectiveInject"](pl,8),i["ɵɵdirectiveInject"](Wn),i["ɵɵdirectiveInject"](Kn,8),i["ɵɵdirectiveInject"](Yn),i["ɵɵdirectiveInject"](ut.X),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-card"]],inputs:{tournament:"tournament"},outputs:{leaderboardEnd:"leaderboardEnd",leaderboardCancelled:"leaderboardCancelled"},features:[i["ɵɵInheritDefinitionFeature"]],decls:28,vars:4,consts:[[1,"bx-leaderboard-card"],[1,"header-wrapper"],[1,"title"],[1,"text-ellipsis"],[1,"info"],["class","joined",4,"ngIf"],[1,"action",3,"click"],[1,"icon",3,"ngClass"],[1,"card-content"],[3,"imgSizeClass","tournament","joinEvent","unjoinEvent","dismissEvent","openGameEvent","endEvent",4,"ngIf"],[1,"joined"],[1,"icon","icon-checked"],[3,"imgSizeClass","tournament","joinEvent","unjoinEvent","dismissEvent","openGameEvent","endEvent"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"span",3),i["ɵɵtext"](8),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                "),i["ɵɵelementStart"](11,"div",4),i["ɵɵtext"](12,"\n                    "),i["ɵɵtemplate"](13,fl,4,0,"div",5),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementStart"](15,"div",6),i["ɵɵlistener"]("click",(function(){return t.showInfo()})),i["ɵɵtext"](16,"\n                        "),i["ɵɵelement"](17,"i",7),i["ɵɵtext"](18,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n            "),i["ɵɵelementStart"](22,"div",8),i["ɵɵtext"](23,"\n                "),i["ɵɵtemplate"](24,vl,2,2,"lb-leaderboard-card-content",9),i["ɵɵtext"](25,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n    ")),2&e&&(i["ɵɵadvance"](8),i["ɵɵtextInterpolate"](t.tournament.name),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.tournament.joined),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngClass",null==t.cssConfig.carouselCard?null:t.cssConfig.carouselCard.info),i["ɵɵadvance"](7),i["ɵɵproperty"]("ngIf",t.isBrowser))},directives:[r.NgIf,r.NgClass,gl],styles:["[_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%] {\n  -webkit-user-select: none;\n          user-select: none; }\n  [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%] {\n    display: flex;\n    flex-direction: row;\n    justify-content: space-between; }\n  [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%] {\n      display: flex; }\n  [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%] {\n        display: flex;\n        align-items: center;\n        cursor: pointer; }\n  [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]   .icon-info[_ngcontent-%COMP%], [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]   .icon-info2[_ngcontent-%COMP%] {\n          font-size: 16px;\n          width: 16px;\n          height: 16px; }\n  [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .joined[_ngcontent-%COMP%] {\n        display: flex;\n        align-items: center;\n        color: #FFFFFF;\n        margin-right: 5px; }\n  [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .joined[_ngcontent-%COMP%]   .icon-checked[_ngcontent-%COMP%] {\n          font-size: 12px;\n          width: 16px;\n          height: 16px;\n          background-color: #368031;\n          border-radius: 50%;\n          padding: 2px; }\n  [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n      display: flex;\n      overflow: hidden;\n      align-items: center;\n      flex: 1 1 100%; }\n  [_nghost-%COMP%]   .bx-leaderboard-card[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]   .text-ellipsis[_ngcontent-%COMP%] {\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap; }"]}),e})(),yl=(()=>{class e extends Le.HammerGestureConfig{buildHammer(e){return new Hammer(e,{touchAction:"pan-y"})}}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Cl=(()=>{class e{constructor(e,t){this.config=e,this.router=t}navigateFullSchedule(){this.router.navigate([this.config.routes.casino,nl,"full-schedule"])}navigateHowItWorks(){this.router.navigate([this.config.routes.casino,nl,"how-it-works"])}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Wn),i["ɵɵdirectiveInject"](o.Router))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-carousel-actions"]],decls:26,vars:0,consts:[[1,"bx-leaderboard-carousel-actions"],[1,"action-button",3,"click"],[1,"icon","icon-schedule"],[1,"text",3,"bxTranslate"],[1,"icon","icon-how-it-works"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"button",1),i["ɵɵlistener"]("click",(function(){return t.navigateFullSchedule()})),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"span"),i["ɵɵtext"](6,"\n                    "),i["ɵɵelement"](7,"i",2),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementStart"](9,"span",3),i["ɵɵtext"](10,"\n                        leaderboardCarousel.actions.label.full-schedule\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementStart"](14,"button",1),i["ɵɵlistener"]("click",(function(){return t.navigateHowItWorks()})),i["ɵɵtext"](15,"\n                "),i["ɵɵelementStart"](16,"span"),i["ɵɵtext"](17,"\n                    "),i["ɵɵelement"](18,"i",4),i["ɵɵtext"](19,"\n                    "),i["ɵɵelementStart"](20,"span",3),i["ɵɵtext"](21,"\n                        leaderboardCarousel.actions.label.how-it-works\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n    "))},directives:[Se.P],styles:["[_nghost-%COMP%] {\n  display: flex; }\n  [_nghost-%COMP%]   .bx-leaderboard-carousel-actions[_ngcontent-%COMP%] {\n    display: flex;\n    flex-direction: column; }\n  [_nghost-%COMP%]   .bx-leaderboard-carousel-actions[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%] {\n      color: #F2F2F2; }\n  [_nghost-%COMP%]   .bx-leaderboard-carousel-actions[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%]    > span[_ngcontent-%COMP%] {\n        display: flex;\n        flex-direction: column; }\n  [_nghost-%COMP%]   .bx-leaderboard-carousel-actions[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%]    > span[_ngcontent-%COMP%]   span.text[_ngcontent-%COMP%] {\n          margin-top: 20px;\n          text-transform: uppercase; }\n  @media screen and (max-width: 768px) {\n            [_nghost-%COMP%]   .bx-leaderboard-carousel-actions[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%]    > span[_ngcontent-%COMP%]   span.text[_ngcontent-%COMP%] {\n              display: none; } }"]}),e})(),Sl=(()=>{class e extends Cl{}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-next-actions"]],features:[i["ɵɵInheritDefinitionFeature"]],decls:16,vars:0,consts:[[1,"bx-leaderboard-next-actions"],[1,"custom-link","link",3,"click"],[3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"a",1),i["ɵɵlistener"]("click",(function(){return t.navigateFullSchedule()})),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"span",2),i["ɵɵtext"](6,"\n                    leaderboardCarousel.actions.label.full-schedule\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n            "),i["ɵɵelementStart"](9,"a",1),i["ɵɵlistener"]("click",(function(){return t.navigateHowItWorks()})),i["ɵɵtext"](10,"\n                "),i["ɵɵelementStart"](11,"span",2),i["ɵɵtext"](12,"\n                    leaderboardCarousel.actions.label.how-it-works\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n    "))},directives:[Se.P],styles:["[_nghost-%COMP%]   .bx-leaderboard-next-actions[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: row;\n  padding: 20px; }\n  [_nghost-%COMP%]   .bx-leaderboard-next-actions[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%] {\n    flex: 1 1 100%;\n    text-align: center;\n    cursor: pointer; }"]}),e})();const xl=["*"];let wl=(()=>{class e{constructor(){this.openCloseAllSubscription=new s.Subject,this.openDefaultSubscription=new s.Subject,this.collapsibleSubscription=new s.Subject,this.multi=!1}ngOnInit(){this._subscription=this.collapsibleSubscription.subscribe((e=>{this.multi||(e.expand?this.openCloseAllSubscription.next({open:!1,item:e}):this.openDefaultSubscription.next(!0))}))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-accordion"]],inputs:{multi:"multi"},ngContentSelectors:xl,decls:3,vars:0,template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n        "),i["ɵɵprojection"](1),i["ɵɵtext"](2,"\n    "))},encapsulation:2}),e})();function El(e,t){1&e&&i["ɵɵelement"](0,"i",7)}function Il(e,t){1&e&&i["ɵɵelement"](0,"i",8)}function Pl(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",4),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,El,1,0,"i",5),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,Il,1,0,"i",6),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e._expand),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e._expand)}}function Tl(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",2),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().toggle()})),i["ɵɵtext"](1,"\n            "),i["ɵɵprojection"](2),i["ɵɵtext"](3,"\n            "),i["ɵɵtemplate"](4,Pl,6,2,"div",3),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",e.showActions)}}function _l(e,t){1&e&&(i["ɵɵelementStart"](0,"div",9),i["ɵɵtext"](1,"\n            "),i["ɵɵprojection"](2,1),i["ɵɵtext"](3,"\n        "),i["ɵɵelementEnd"]())}const Ml=[[["",8,"bx-lb-collapsible-header"]],"*"],Ol=[".bx-lb-collapsible-header","*"];let Al=(()=>{class e{constructor(e,t){this.accordion=e,this.collapsible=t,this.opened=!1,this.showActions=!0,this._expand=this.default=!1,this._subscriptions=[],this.expandEvent=new i.EventEmitter}get expand(){return this._expand}ngOnInit(){this.accordion&&!this.collapsible&&!0===this.default?(this._expand=this.default,this.accordion.collapsibleSubscription.next(this)):this.opened&&(this._expand=this.opened,this.accordion&&!this.collapsible&&this.accordion.collapsibleSubscription.next(this)),this.accordion&&!this.collapsible&&(this.default&&this._subscriptions.push(this.accordion.openDefaultSubscription.subscribe((e=>{this._expand=e}))),this._subscriptions.push(this.accordion.openCloseAllSubscription.subscribe((e=>{e.item!==this&&(this._expand=e.open)}))))}ngOnDestroy(){this._subscriptions&&this._subscriptions.length&&this._subscriptions.forEach((e=>e.unsubscribe()))}toggle(){this._expand=!this._expand,this.accordion&&!this.collapsible&&this.accordion.collapsibleSubscription.next(this),this.expandEvent.emit(this._expand)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](wl,8),i["ɵɵdirectiveInject"](e,12))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-collapsible"]],hostVars:2,hostBindings:function(e,t){2&e&&i["ɵɵclassProp"]("expanded",t._expand)},inputs:{default:"default",opened:"opened",showActions:"showActions"},outputs:{expandEvent:"expandEvent"},ngContentSelectors:Ol,decls:5,vars:2,consts:[["class","collapsible-header-wrapper",3,"click",4,"ngIf"],["class","collapsible-container",4,"ngIf"],[1,"collapsible-header-wrapper",3,"click"],["class","collapsible-header-actions",4,"ngIf"],[1,"collapsible-header-actions"],["class","icon icon-arrow-up",4,"ngIf"],["class","icon icon-arrow-down",4,"ngIf"],[1,"icon","icon-arrow-up"],[1,"icon","icon-arrow-down"],[1,"collapsible-container"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](Ml),i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,Tl,6,1,"div",0),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,_l,4,0,"div",1),i["ɵɵtext"](4,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",!t.default),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.expand))},directives:[r.NgIf],styles:[".collapsible-header-wrapper[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  padding: 10px 10px;\n  cursor: pointer;\n  flex: none; }\n  .collapsible-header-wrapper[_ngcontent-%COMP%]     .bx-lb-collapsible-header {\n    flex: 1 1 100%; }"]}),e})(),kl=(()=>{class e{static withComponents(){return{ngModule:e,providers:[{provide:Le.HAMMER_GESTURE_CONFIG,useClass:yl}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,sa,bt.a,o.RouterModule,tl.bB.forRoot()]]}),e})();i["ɵɵsetComponentScope"](pl,[r.NgIf,r.NgTemplateOutlet,Al,Se.P,r.NgForOf,bl,Sl,tl.Fy,tl.o6],[r.SlicePipe]);let jl=(()=>{class e{constructor(){this.noTabBackgroundColor=!1,this.cardImageType="large"}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Nl=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[jl]}),e})();class Rl{}let Dl=(()=>{class e extends va.x{constructor(e,t){super(),this.gamecardCmsMapper=e,this.trackingService=t}map(e,t){const n=!!e.fields&&!!e.fields.personalized&&!t,i=parseInt(e.automatedNumberOfItems);let r=n?this.gamecardCmsMapper.mapGameCategoryFullTreeAsEmpty(e,i):this.gamecardCmsMapper.mapGameCategoryFullTree(e),o=new Rl;return isNaN(i)||(r.games=r.games.slice(0,i),o.isAutomated=!0),r.name=e.fields.title,o.contentType="GAME_CAROUSEL",o.internalName=e.fields.internal_name,o.gameCategory=r,o.hasPersonalizedContent=n,o.automatedTracking=this.trackingService.getAutomatedTracking(e),{featuredGames:o}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Qt),i["ɵɵinject"](Jt.e))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Ll,Fl=n(88391);class Bl{constructor(e){this.games=e.games,this.disabled=0===e.games.length,this.name=e.name}}class Ul{constructor(e){this.games=[],this.disabled=!e.hasGames,this.name=e.name}}const Vl=["cardContainer"];function Gl(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-card",11),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=t.index,r=i["ɵɵnextContext"](2);i["ɵɵproperty"]("card",e)("defaultImage",r.imageService.getPlaceholderImage(400,304))("gameBlockContext",r.gameBlockContext)("imageType",r.gameCarouselConfig.cardImageType)("position",n)("contentSource",0===r.carouselIndex?r.contentSource:"manual")("automatedTracking",0===r.carouselIndex?r.automatedTracking:void 0)}}function Hl(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",12),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).scrollLeft()})),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"button",13),i["ɵɵtext"](3,"\n                            "),i["ɵɵelement"](4,"i",14),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"]()}}function zl(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",15),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).scrollRight()})),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"button",16),i["ɵɵtext"](3,"\n                            "),i["ɵɵelement"](4,"i",17),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"]()}}function $l(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"section",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"bx-button-list",3),i["ɵɵlistener"]("buttonSelected",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().selectCarousel(t.index)})),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n            "),i["ɵɵelementStart"](7,"div",4),i["ɵɵtext"](8,"\n                "),i["ɵɵelementStart"](9,"div",4),i["ɵɵtext"](10,"\n                    "),i["ɵɵelementStart"](11,"div",5,6),i["ɵɵtext"](13,"\n                            "),i["ɵɵtemplate"](14,Gl,2,7,"bx-card",7),i["ɵɵtext"](15,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                    "),i["ɵɵelementStart"](17,"ul",8),i["ɵɵtext"](18,"\n                        "),i["ɵɵtemplate"](19,Hl,7,0,"li",9),i["ɵɵtext"](20,"\n                        "),i["ɵɵtemplate"](21,zl,7,0,"li",10),i["ɵɵtext"](22,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](4),i["ɵɵproperty"]("buttons",e.buttons)("noTabBackgroundColor",e.gameCarouselConfig.noTabBackgroundColor),i["ɵɵadvance"](10),i["ɵɵproperty"]("ngForOf",null==e.gameCarousel[e.carouselIndex]?null:e.gameCarousel[e.carouselIndex].games),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",e.scrollLeftButtonShown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.scrollRightButtonShown)}}let Wl=Ll=class{constructor(e,t,n,i,r,o,a,s,c,l,d){this.gamecardService=e,this.gameMostPlayedService=t,this.loginService=n,this.gameCarouselConfig=i,this.imageService=r,this.horizontalScrollService=o,this.sessionService=a,this.contentService=s,this.gameCarouselCmsMapper=c,this.platformId=l,this.contentViewTrackingService=d,this.buttons=[],this.gameCarousel=[{}],this.carouselIndex=Ll.FEATURED_INDEX,this.scrollRightButtonShown=!0,this.scrollLeftButtonShown=!1,this.lastPlayedClicked=!1,this.contentSource="manual"}ngOnInit(){this.paintGameCarousel(),this.loginSubscription=this.loginService.loginEvent.subscribe((()=>{this.gameCarousel[Ll.MOST_PLAYED_INDEX].disabled&&this.gameCarousel[Ll.LAST_PLAYED_INDEX].disabled&&this.paintGameCarousel()})),this.mostPlayedSubscription=this.gameMostPlayedService.getMostPlayedEvent().subscribe((()=>{this.updateMostLastGames()})),this.featuredGames.hasPersonalizedContent||(this.featuredGames.isAutomated&&(this.contentSource="automated",this.automatedTracking=this.featuredGames.automatedTracking),this.handleContentViewTracking()),this.featuredGames.hasPersonalizedContent&&(0,r.isPlatformBrowser)(this.platformId)&&this.requestPersonalizedContentBySlug(),this.featuredGames&&(this.gameBlockContext={contentType:this.featuredGames.contentType,internalName:this.featuredGames.internalName})}requestPersonalizedContentBySlug(){this.contentService.getPersonalizedContentBySlug(this.featuredGames.gameCategory.slug).subscribe((e=>{this.contentSource="personalized";const t=this.gameCarouselCmsMapper.map(e,!0);this.featuredGames=t.featuredGames,this.automatedTracking=this.featuredGames.automatedTracking;const n=this.gameCarousel[Ll.FEATURED_INDEX].name;this.gameCarousel[Ll.FEATURED_INDEX]=new Bl(this.featuredGames.gameCategory),this.gameCarousel[Ll.FEATURED_INDEX].name=n,this.handleContentViewTracking()}))}handleContentViewTracking(){const e=this.featuredGames.gameCategory.games.map((e=>e.id));this.contentViewTrackingService.trackView(this.featuredGames.automatedTracking,e,this.featuredGames.internalName,[],this.contentSource)}paintGameCarousel(){let e=new Bl(this.featuredGames.gameCategory);this.gameCarousel[Ll.FEATURED_INDEX]=e,this.gameCarousel[Ll.MOST_PLAYED_INDEX]=this.getDefaultMostPlayedFlags(),this.gameCarousel[Ll.LAST_PLAYED_INDEX]=this.getDefaultLastPlayedFlags(),this.setButtons(),this.selectCarousel(this.carouselIndex),(0,r.isPlatformBrowser)(this.platformId)&&this.sessionService.isAuthenticated()&&this.updateMostLastGames()}updateMostLastGames(){(0,s.forkJoin)(this.getMostPlayedUpdated(),this.getLastPlayedUpdated()).subscribe((([e,t])=>{0===e.games.length&&(e.games=[new Wt]),0===t.games.length&&(t.games=[new Wt]),this.gameCarousel[Ll.MOST_PLAYED_INDEX]=e,this.gameCarousel[Ll.LAST_PLAYED_INDEX]=t,this.setButtons()}))}getMostPlayedUpdated(){return Ll.MOST_PLAYED_INDEX===this.carouselIndex?this.gamecardService.getGameMostPlayed().pipe((0,c.map)((e=>new Bl(e)))):this.getMostPlayedFlags()}getMostPlayedFlags(){return this.gamecardService.getGameMostPlayedFlags().pipe((0,c.map)((e=>new Ul(e))))}getDefaultMostPlayedFlags(){return new Ul(this.gamecardService.getDefaultCategoryFlagsForMostPlayed())}getLastPlayedUpdated(){return Ll.LAST_PLAYED_INDEX===this.carouselIndex||this.lastPlayedClicked?this.gamecardService.getGameLastPlayed().pipe((0,c.map)((e=>new Bl(e)))):this.getLastPlayedFlags()}getLastPlayedFlags(){return this.gamecardService.getGameLastPlayedFlags().pipe((0,c.map)((e=>new Ul(e))))}getDefaultLastPlayedFlags(){return new Ul(this.gamecardService.getDefaultCategoryFlagsForLastPlayed())}ngAfterViewInit(){(0,r.isPlatformBrowser)(this.platformId)&&(this.initScroll(),this.horizontalScrollService.initScroll(this.cardContainer),this.scrollSubscription=this.horizontalScrollService.getSubject().subscribe((e=>{"left"===e.button?this.scrollLeftButtonShown=e.display:this.scrollRightButtonShown=e.display})))}scrollRight(){this.horizontalScrollService.scrollRight()}scrollLeft(){this.horizontalScrollService.scrollLeft()}selectCarousel(e){this.carouselIndex=e,(0,r.isPlatformBrowser)(this.platformId)&&(this.initScroll(),setTimeout((()=>this.horizontalScrollService.resetScroll(this.cardContainer)))),this.updateActiveButton(e),e===Ll.MOST_PLAYED_INDEX&&this.setMostPlayedGames(),e!==Ll.LAST_PLAYED_INDEX||this.lastPlayedClicked||(this.lastPlayedClicked=!0,this.setLastPlayedGames())}updateActiveButton(e){this.buttons.forEach((e=>e.active=!1)),this.buttons[e].active=!0}setLastPlayedGames(){this.gamecardService.getGameLastPlayed().pipe((0,c.map)((e=>new Bl(e)))).subscribe((e=>{this.gameCarousel[Ll.LAST_PLAYED_INDEX]=e}))}setMostPlayedGames(){this.gamecardService.getGameMostPlayed().pipe((0,c.map)((e=>new Bl(e)))).subscribe((e=>{this.gameCarousel[Ll.MOST_PLAYED_INDEX]=e}))}setButtons(){this.buttons=[],this.gameCarousel.forEach(((e,t)=>{this.buttons.push({title:e.name,active:t==this.carouselIndex,disabled:e.disabled})}))}initScroll(){let e=document.createEvent("CustomEvent");e.initCustomEvent("scroll",!0,!0,{}),document.dispatchEvent(e)}ngOnDestroy(){this.scrollSubscription&&!this.scrollSubscription.closed&&this.scrollSubscription.unsubscribe(),this.mostPlayedSubscription&&!this.mostPlayedSubscription.closed&&this.mostPlayedSubscription.unsubscribe(),this.loginSubscription&&!this.loginSubscription.closed&&this.loginSubscription.unsubscribe()}};Wl.FEATURED_INDEX=0,Wl.MOST_PLAYED_INDEX=1,Wl.LAST_PLAYED_INDEX=2,Wl.ɵfac=function(e){return new(e||Wl)(i["ɵɵdirectiveInject"](cn),i["ɵɵdirectiveInject"](on),i["ɵɵdirectiveInject"](U.r6),i["ɵɵdirectiveInject"](jl),i["ɵɵdirectiveInject"](Et.AJ),i["ɵɵdirectiveInject"](Fl.c),i["ɵɵdirectiveInject"](et.mj),i["ɵɵdirectiveInject"](Dt._),i["ɵɵdirectiveInject"](Dl),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](uc))},Wl.ɵcmp=i["ɵɵdefineComponent"]({type:Wl,selectors:[["bx-game-carousel"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Vl,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.cardContainer=e.first)}},inputs:{featuredGames:"featuredGames"},decls:3,vars:1,consts:[["class","carousel secondary",4,"ngIf"],[1,"carousel","secondary"],[1,"component-wrapper"],["listClass","custom-tab tertiary max-container",3,"buttons","noTabBackgroundColor","buttonSelected"],[1,"hide-scroll","max-container"],[1,"content-slider","max-container","max-height-container"],["cardContainer",""],["class","max-height-container",3,"card","defaultImage","gameBlockContext","imageType","position","contentSource","automatedTracking",4,"ngFor","ngForOf"],[1,"carousel-navigation"],["role","button","class","carousel-navigation-back",3,"click",4,"ngIf"],["role","button","class","carousel-navigation-next",3,"click",4,"ngIf"],[1,"max-height-container",3,"card","defaultImage","gameBlockContext","imageType","position","contentSource","automatedTracking"],["role","button",1,"carousel-navigation-back",3,"click"],["aria-label","back",1,"carousel-navigation-btn"],[1,"icon","icon-arrow-back"],["role","button",1,"carousel-navigation-next",3,"click"],["aria-label","next",1,"carousel-navigation-btn"],[1,"icon","icon-arrow-next"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,$l,26,5,"section",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.gameCarousel))},directives:[r.NgIf,el,r.NgForOf,Is],styles:[".max-width-container[_ngcontent-%COMP%] {\n  width: 1366px;\n  height: 0; }\n\n.max-height-container[_ngcontent-%COMP%] {\n  max-height: 260px; }"]}),Wl=Ll=(0,a.__decorate)([(0,q.DE)({name:"GameCarousel",injectedMapper:Dl,matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Sa.d.GAMES_CAROUSEL)>=0}),(0,a.__metadata)("design:paramtypes",[cn,on,U.r6,jl,Et.AJ,Fl.c,et.mj,Dt._,Dl,Object,uc])],Wl);let ql=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Dl],imports:[[r.CommonModule,Le.BrowserTransferStateModule,et.ny,Rt,bt.a,Bc.E,Nl,W.J.withComponents([Wl]),kl.withComponents(),pa,da.s]]}),e})();var Kl,Xl=n(43959),Yl=n(20843),Jl=n(42934);const Ql=["searchBar"],Zl=["cardContainer"],ed=["gameCategoryList"];function td(e,t){if(1&e&&(i["ɵɵelementStart"](0,"h2",14),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.name)}}const nd=function(e,t){return{"icon-arrow-down":e,"icon-arrow-next":t}};function id(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span"),i["ɵɵtext"](1,"\n                                        "),i["ɵɵelementStart"](2,"h3",15),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                                        "),i["ɵɵelement"](5,"i",16),i["ɵɵtext"](6,"\n                                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.name),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](2,nd,e.active,!e.active))}}const rd=function(e){return["/casino",e]},od=function(e){return{active:e}};function ad(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",10),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).$implicit;return i["ɵɵnextContext"]().selectedTab=t.slug})),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"li",11),i["ɵɵtext"](3,"\n                                    "),i["ɵɵtemplate"](4,td,2,1,"h2",12),i["ɵɵtext"](5,"\n                                    "),i["ɵɵtemplate"](6,id,7,5,"span",13),i["ɵɵtext"](7,"\n                                "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                            "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxPreviewIndicator",e)("routerLink",i["ɵɵpureFunction1"](5,rd,e.slug)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](7,od,e.active)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!n.gameCategoriesConfigService.showArrowMenu),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",n.gameCategoriesConfigService.showArrowMenu)}}function sd(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-search-bar",17,18),i["ɵɵlistener"]("focus",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onFocusSearch()}))("activated",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onSearchActivated()}))("deactivated",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onSearchDeactivated()})),i["ɵɵtext"](2,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("dataSource",e.casinoDataSource)}}function cd(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-dropdown",29),i["ɵɵlistener"]("change",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).selectSubTab(t)})),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("options",e.subTabs)("selectedValue",e.selectedSubTab.name)}}function ld(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",30),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).$implicit;return i["ɵɵnextContext"](3).selectSubTab(t)})),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"h3",14),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                            "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit;i["ɵɵpropertyInterpolate"]("title",e.name),i["ɵɵproperty"]("bxPreviewIndicator",e)("ngClass",i["ɵɵpureFunction1"](4,od,e.active)),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.name)}}function dd(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",25),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,cd,2,2,"bx-dropdown",26),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementStart"](4,"ul",27),i["ɵɵtext"](5,"\n                            "),i["ɵɵtemplate"](6,ld,5,6,"li",28),i["ɵɵtext"](7,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.gameCategoriesConfigService.showDropdown),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngForOf",e.subTabs)}}function ud(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementContainerEnd"]())}function pd(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                            "),i["ɵɵelementStart"](1,"h2",31),i["ɵɵtext"](2),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                        ")),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵtextInterpolate"](e.selectedSubTab.title)}}function hd(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"h2",31),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                            "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.selectedTab.title)}}function md(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                            "),i["ɵɵtemplate"](1,hd,5,1,"ng-container",13),i["ɵɵtext"](2,"\n                        ")),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",e.selectedTab&&e.selectedTab.title)}}function gd(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-card",32),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵnextContext"](2);i["ɵɵpropertyInterpolate"]("imageType",n.gameCategoriesConfigService.imageType),i["ɵɵproperty"]("card",e)("defaultImage",n.imageService.getPlaceholderImage(n.placeholderImageSize[0],n.placeholderImageSize[1]))("cardMatrix",n.cardMatrix)}}const fd=function(e,t,n){return{"content-slider":!0,"hide-scroll":e,scroll:t,"no-scroll":n}};function vd(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                    "),i["ɵɵtemplate"](1,dd,9,2,"div",19),i["ɵɵtext"](2,"\n                    "),i["ɵɵelementStart"](3,"header",20),i["ɵɵtext"](4,"\n                        "),i["ɵɵtemplate"](5,ud,2,0,"ng-container",9),i["ɵɵtext"](6,"\n                        "),i["ɵɵtemplate"](7,pd,4,1,"ng-template",null,21,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](9,"\n                        "),i["ɵɵtemplate"](10,md,3,1,"ng-template",null,22,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](12,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementStart"](14,"div",1,23),i["ɵɵtext"](16,"\n                        "),i["ɵɵtemplate"](17,gd,2,4,"bx-card",24),i["ɵɵtext"](18,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n                ")),2&e){const e=i["ɵɵreference"](8),t=i["ɵɵreference"](11),n=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",n.getActiveTab().hasSubTab),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",n.getActiveTab().hasSubTab&&n.selectedSubTab&&n.selectedSubTab.title)("ngIfThen",e)("ngIfElse",t),i["ɵɵadvance"](9),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction3"](6,fd,"large"!==n.gameCategoriesConfigService.imageType,"large"!==n.gameCategoriesConfigService.imageType,"large"===n.gameCategoriesConfigService.imageType)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngForOf",n.games)}}function bd(e,t){}function yd(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementContainerEnd"]())}const Cd=function(e){return{"max-container customCarousel":e}},Sd=function(e,t){return{"casino-actions-container":e,"casino-search-enabled":t}},xd=function(e,t){return{"hide-scroll":e,hidden:t}};let wd=Kl=class{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m){this.deviceService=e,this.siteConfig=t,this.leaderboardsAvailableService=n,this.gamecardService=i,this.gamecardMapper=r,this.imageService=o,this.route=a,this.router=s,this.scrollService=c,this.gameCategoriesConfigService=l,this.cookieStorageService=d,this.document=u,this.platformId=p,this.windowService=h,this.casinoGameSearchConfig=m,this.tabs=[],this.subTabs=[],this.games=[new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt],this.placeholderImageSize=[155,118]}ngOnInit(){(0,s.forkJoin)(this.gamecardService.getAllGames(),this.gamecardService.getGameCategories()).subscribe((([e,t])=>{this.gameCategories=t,this.addTabs();let n=this.findTabBySlug(this.getSelectedCategoryFromRoute())||this.tabs[0];this.selectTab(n),this.gameCategoriesConfigService.scrollToTab&&setTimeout((()=>this.scrollToTab()),500)})),this.navigationEndSubscriber=this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd))).subscribe((()=>{let e=this.findTabBySlug(this.getSelectedCategoryFromRoute())||this.tabs[0];e&&(this.selectTab(e),this.gameCategoriesConfigService.scrollToTab&&setTimeout((()=>this.scrollToTab())))})),"large"===this.gameCategoriesConfigService.imageType&&(this.placeholderImageSize=[220,170]),this.isCasinoSearchEnabled()&&(this.casinoDataSource=new pc)}ngOnDestroy(){this.navigationEndSubscriber&&this.navigationEndSubscriber.unsubscribe()}ngAfterViewInit(){this.initScroll(),Promise.resolve().then((()=>this.cardMatrix=new cc(this.gameCards,this.platformId)))}getSelectedCategoryFromRoute(){let e;return this.route.children[0]?(e=this.route.children[0].snapshot.params.category,!e&&this.router.url.includes(Kl.LEADERBOARDS_SLUG)&&this.isLeaderboardsAvailable()&&(e=Kl.LEADERBOARDS_SLUG)):e=this.route.snapshot.params.category,e}selectTab(e){if(this.tabs.forEach((e=>{e.active=!1})),e.active=!0,this.selectedTab=e,this.subTabs=[],!this.isLeaderboardsAvailable()||e.slug!==Kl.LEADERBOARDS_SLUG)if(e.hasSubTab){this.addSubTabs();let e=this.findSubTabBySlug(this.route.snapshot.params.subcategory)||this.subTabs[0];this.selectSubTab(e)}else this.showGames(this.getSelectedCategory(e).games)}selectSubTab(e){this.subTabs.forEach((e=>{e.active=!1})),e.active=!0,this.selectedSubTab=e,this.showGames(this.getSelectedCategory(this.getActiveTab(),e).games)}getActiveTab(){let e=this.tabs.filter((e=>e.active));return e&&e.length>0&&e[0]}onFocusSearch(){if(this.deviceService.isMobile()&&this.isCasinoSearchEnabled()&&this.isScrollAllowed()){this.searchBar.nativeElement.scrollIntoView();const e=this.windowService.window().scrollY,t=this.document.querySelector(".navbar-fixed-top"),n=this.document.querySelector(".tertiary.channel");if(e&&t){let i=e-t.getBoundingClientRect().height;i=n?i-n.getBoundingClientRect().height:i,this.windowService.window().scroll(0,i-16)}}}isScrollAllowed(){return this.casinoGameSearchConfig.scrollToTopAllowed}onSearchActivated(){this.casinoDataSource.data||(this.searchByCategories()?this.gamecardService.getGamesByCategories("casino-search-menu"):this.gamecardService.getAllGames()).pipe((0,c.map)((e=>e.filter((e=>"live-dealer"!==e.category))))).subscribe((e=>this.casinoDataSource.data=e)),this.searchBarActive=!0}onSearchDeactivated(){this.searchBarActive=!1}isCasinoSearchEnabled(){return this.siteConfig.hasFeature(Kl.CASINO_SEARCH_FEATURE)&&(0,r.isPlatformBrowser)(this.platformId)}isLeaderboardsAvailable(){return this.leaderboardsAvailableService.isLeaderboardsAvailable()}addTabs(){this.gameCategories.filter((e=>!(!this.isLeaderboardsAvailable()&&e.slug===Kl.LEADERBOARDS_SLUG))).map((e=>this.addTab(e)))}addTab(e){let t=this.gamecardMapper.mapTab(e);this.tabs.push(t)}addSubTabs(){let e=this.getActiveTab();this.gameCategories.filter((t=>t.slug===e.slug))[0].subCategories.map((e=>{this.addSubTab(e)}))}addSubTab(e){let t=this.gamecardMapper.mapSubTab(e);this.subTabs.push(t)}getSelectedCategory(e,t){let n=this.gameCategories.filter((t=>t.name==e.name))[0];return t&&(n=n.subCategories.filter((e=>e.name===t.name))[0]),n}showGames(e){(0,s.from)(e).pipe((0,c.filter)((e=>null!=e.id)),(0,c.toArray)()).subscribe((e=>this.games=e)),this.initScroll()}initScroll(){if((0,r.isPlatformBrowser)(this.platformId)){let e=document.createEvent("CustomEvent");e.initCustomEvent("scroll",!0,!0,{}),document.dispatchEvent(e)}}findTabBySlug(e){return this.tabs.find((t=>t.slug===e))}findSubTabBySlug(e){return this.subTabs.find((t=>t.slug===e))}scrollToTab(){if(this.scrollService.scrollIntoView(this.gameCategoryList,".active",{behavior:"smooth",block:"end"}),(0,r.isPlatformBrowser)(this.platformId)&&this.windowService){const e=this.windowService.window();e.chrome&&e.chrome.webstore||e.scrollTo(0,0)}}searchByCategories(){return"true"===this.cookieStorageService.get(Kl.CASINO_SEARCH_DATASOURCE)}};wd.LEADERBOARDS_SLUG="leaderboards",wd.CASINO_SEARCH_FEATURE="casino.search_bar",wd.CASINO_SEARCH_DATASOURCE="SEARCHBYCATEGORIES",wd.ɵfac=function(e){return new(e||wd)(i["ɵɵdirectiveInject"](Bt.U),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](ua),i["ɵɵdirectiveInject"](cn),i["ɵɵdirectiveInject"](Zt),i["ɵɵdirectiveInject"](Et.AJ),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](Jl.a),i["ɵɵdirectiveInject"](ln),i["ɵɵdirectiveInject"](me.G),i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](ee.u,8),i["ɵɵdirectiveInject"](fc))},wd.ɵcmp=i["ɵɵdefineComponent"]({type:wd,selectors:[["bx-game-categories"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](Ql,5,i.ElementRef),i["ɵɵviewQuery"](Zl,5),i["ɵɵviewQuery"](ed,5),i["ɵɵviewQuery"](Is,5)),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.searchBar=e.first),i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.cardContainer=e.first),i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.gameCategoryList=e.first),i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.gameCards=e)}},decls:29,vars:20,consts:[[1,"carousel","tertiary"],[3,"ngClass"],[1,"actions-container",3,"ngClass"],["itemscope","","itemtype","http://www.schema.org/SiteNavigationElement","role","list",1,"custom-tab","secondary"],["gameCategoryList",""],["itemprop","url",3,"bxPreviewIndicator","routerLink","click",4,"ngFor","ngForOf"],["searchSlide","","searchGame","",3,"dataSource","focus","activated","deactivated",4,"ngIf"],["content",""],["emptyContent",""],[4,"ngIf","ngIfThen","ngIfElse"],["itemprop","url",3,"bxPreviewIndicator","routerLink","click"],["role","button",3,"ngClass"],["itemprop","name",4,"ngIf"],[4,"ngIf"],["itemprop","name"],["title","popular tab"],[1,"icon",3,"ngClass"],["searchSlide","","searchGame","",3,"dataSource","focus","activated","deactivated"],["searchBar",""],["class","tab-dropdown",4,"ngIf"],[1,"carousel-header"],["subTabTitle",""],["tabTitle",""],["cardContainer",""],[3,"card","defaultImage","cardMatrix","imageType",4,"ngFor","ngForOf"],[1,"tab-dropdown"],["type","small","required","false","valueProperty","name",3,"options","selectedValue","change",4,"ngIf"],["itemscope","","itemtype","http://www.schema.org/SiteNavigationElement",1,"custom-tab","quaternary"],["role","button",3,"bxPreviewIndicator","ngClass","title","click",4,"ngFor","ngForOf"],["type","small","required","false","valueProperty","name",3,"options","selectedValue","change"],["role","button",3,"bxPreviewIndicator","ngClass","title","click"],[1,"h5-heading"],[3,"card","defaultImage","cardMatrix","imageType"]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"section",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"div",1),i["ɵɵtext"](8,"\n                        "),i["ɵɵelementStart"](9,"ul",3,4),i["ɵɵtext"](11,"\n                            "),i["ɵɵtemplate"](12,ad,9,9,"a",5),i["ɵɵtext"](13,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                    "),i["ɵɵtemplate"](16,sd,3,1,"bx-search-bar",6),i["ɵɵtext"](17,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n                "),i["ɵɵtemplate"](19,vd,20,10,"ng-template",null,7,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](21,"\n                "),i["ɵɵtemplate"](22,bd,0,0,"ng-template",null,8,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](24,"\n                "),i["ɵɵtemplate"](25,yd,2,0,"ng-container",9),i["ɵɵtext"](26,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](28,"\n    ")),2&e){const e=i["ɵɵreference"](20),n=i["ɵɵreference"](23);i["ɵɵadvance"](1),i["ɵɵclassProp"]("max-container",t.gameCategoriesConfigService.applyMaxContainer)("custom-carousel",t.gameCategoriesConfigService.customCarousel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](12,Cd,!t.gameCategoriesConfigService.applyMaxContainer)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](14,Sd,t.isCasinoSearchEnabled(),t.searchBarActive)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](17,xd,t.gameCategoriesConfigService.hideAndWrappComponent,t.searchBarActive&&t.deviceService.isMobile())),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngForOf",t.tabs),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.isCasinoSearchEnabled()),i["ɵɵadvance"](9),i["ɵɵproperty"]("ngIf","leaderboards"!==(null==t.selectedTab?null:t.selectedTab.slug))("ngIfThen",e)("ngIfElse",n)}},directives:[r.NgClass,r.NgForOf,r.NgIf,o.RouterLinkWithHref,xa.Z,Ec,Ic,Pc,Yl.J,Is],styles:['.custom-tab.secondary[_ngcontent-%COMP%] {\n  min-height: 36px; }\n\n.custom-tab.secondary[_ngcontent-%COMP%]:empty::before {\n  content: "";\n  min-height: 36px;\n  width: 160px;\n  display: inline-block;\n  border-radius: 20px;\n  background-color: #e6e6e6; }\n\n.custom-tab.quaternary[_ngcontent-%COMP%] {\n  border-right: none;\n  border-left: none;\n  overflow: unset; }\n\n.component-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] {\n  line-height: 0; }\n\n.component-wrapper[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] {\n  display: inherit; }\n\n.custom-carousel[_ngcontent-%COMP%] {\n  padding: 0;\n  position: unset; }\n\n.custom-carousel[_ngcontent-%COMP%]   .custom-tab.secondary[_ngcontent-%COMP%] {\n    overflow-x: auto;\n    overflow-y: hidden; }\n\n.custom-carousel[_ngcontent-%COMP%]   .hide-scroll[_ngcontent-%COMP%]   .custom-tab[_ngcontent-%COMP%] {\n    margin-bottom: 0;\n    padding-bottom: 0; }\n\n.custom-carousel[_ngcontent-%COMP%]   .tab-dropdown[_ngcontent-%COMP%] {\n    overflow-x: auto; }\n\n.actions-container[_ngcontent-%COMP%] {\n  max-height: 43px; }\n\n.casino-actions-container[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: stretch;\n  flex: 1; }\n\n.casino-actions-container[_ngcontent-%COMP%]   .hide-scroll[_ngcontent-%COMP%] {\n    width: 100%; }\n\n.casino-actions-container.casino-search-enabled[_ngcontent-%COMP%]   ul.custom-tab.secondary[_ngcontent-%COMP%] {\n    overflow-x: hidden; }\n\n@media only screen and (max-width: 769px) {\n    .casino-actions-container[_ngcontent-%COMP%] {\n      flex-direction: row-reverse; }\n      .casino-actions-container[_ngcontent-%COMP%]   bx-search-bar.active[_ngcontent-%COMP%] {\n        width: 100%; } }\n\n.casino-actions-container[_ngcontent-%COMP%]     .search-navbar.search-field-enabled {\n    width: 375px; }\n\n@media only screen and (max-width: 769px) {\n      .casino-actions-container[_ngcontent-%COMP%]     .search-navbar.search-field-enabled {\n        width: 100%; } }\n\n.casino-actions-container[_ngcontent-%COMP%]     .search-navbar input, .casino-actions-container[_ngcontent-%COMP%]     .search-navbar label {\n    left: 0px;\n    height: 43px; }\n\n.casino-actions-container[_ngcontent-%COMP%]     .search-navbar .search-btn {\n    width: 43px; }']}),wd=Kl=(0,a.__decorate)([(0,q.DE)({name:"GameCategories",matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Sa.d.CASINO_CATEGORIES)>=0}),(0,a.__metadata)("design:paramtypes",[Bt.U,G.r,ua,cn,Zt,Et.AJ,o.ActivatedRoute,o.Router,Jl.a,ln,me.G,Object,Object,ee.u,fc])],wd);let Ed=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,yt.M,Et.$Q,o.RouterModule,St.d,Bc.E,Mt.o,Rt,wt.k,W.J.withComponents([wd]),Kc,pa]]}),e})();var Id=n(55516);class Pd{}class Td{}let _d=(()=>{class e{constructor(){this.createCardboard=e=>{let t=new Td;if(t.image=e.fields.image.url,t.alt=e.fields.image.alt,t.text=e.fields.content,t.text_color=e.fields.text_color,e.fields.link_url){const n=this.getLink(e.fields.link_url);t.link={url:n,target:e.fields.link_target,isExternal:n.startsWith("http")}}if(e.fields.internal_name&&(t.name=e.fields.internal_name),t.tracking={},e.fields.isABTestingEnabled){const n={study:e.fields.testTitle,sample:e.fields.version};Object.assign(t.tracking,{abtStudy:n})}let n=[];return e.fields.marketingAudiences&&e.fields.marketingAudiences.length&&e.fields.marketingAudiences.map((e=>{let t={audienceName:e.name,audienceCode:e.code};n.push(t)})),Object.assign(t.tracking,{audiences:n}),e.contentType&&Object.assign(t.tracking,{componentType:e.contentType}),e.fields.internal_name&&Object.assign(t.tracking,{componentInternalName:e.fields.internal_name}),e.parentInternalName&&Object.assign(t.tracking,{parentInternalName:e.parentInternalName}),e.parentType&&Object.assign(t.tracking,{parentType:e.parentType}),t}}getLink(e){return e.linkUrl?e.linkUrl:ba.K.mapLinkUrl(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Md=n(54056),Od=n(55298);function Ad(e,t){if(1&e&&(i["ɵɵtext"](0,"\n            "),i["ɵɵelementStart"](1,"figure",5),i["ɵɵtext"](2,"\n                "),i["ɵɵelement"](3,"img",6),i["ɵɵtext"](4,"\n                "),i["ɵɵelement"](5,"img",7),i["ɵɵtext"](6,"\n                "),i["ɵɵelementStart"](7,"figcaption",8),i["ɵɵpipe"](8,"bxTrustyHtml"),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n        ")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵproperty"]("src",e.thumbnailImage,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.thumbnailAlt),i["ɵɵadvance"](2),i["ɵɵproperty"]("src",e.cardProps.image,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.cardProps.alt),i["ɵɵadvance"](2),i["ɵɵstyleProp"]("color",e.cardProps.text_color),i["ɵɵproperty"]("innerHTML",i["ɵɵpipeBind1"](8,7,e.cardProps.text),i["ɵɵsanitizeHtml"])}}function kd(e,t){1&e&&i["ɵɵelementContainer"](0)}function jd(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵtext"](0,"\n            "),i["ɵɵelementStart"](1,"a",9),i["ɵɵlistener"]("click",(function(t){i["ɵɵrestoreView"](e);const n=i["ɵɵnextContext"]();return n.handleClickOnSlide(t,n.cardProps.name,n.cardProps.tracking)})),i["ɵɵtext"](2,"\n                "),i["ɵɵtemplate"](3,kd,1,0,"ng-container",10),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n        ")}if(2&e){const e=i["ɵɵnextContext"](),t=i["ɵɵreference"](4);i["ɵɵadvance"](1),i["ɵɵproperty"]("routerLink",e.cmsLink.uri)("queryParams",e.cmsLink.queryParams),i["ɵɵattribute"]("alt",e.cardProps.text),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngTemplateOutlet",t)}}function Nd(e,t){1&e&&i["ɵɵelementContainer"](0)}function Rd(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵtext"](0,"\n            "),i["ɵɵelementStart"](1,"a",11),i["ɵɵlistener"]("click",(function(t){i["ɵɵrestoreView"](e);const n=i["ɵɵnextContext"]();return n.handleClickOnSlide(t,n.cardProps.name,n.cardProps.tracking)})),i["ɵɵtext"](2,"\n                "),i["ɵɵtemplate"](3,Nd,1,0,"ng-container",10),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n        ")}if(2&e){const e=i["ɵɵnextContext"](),t=i["ɵɵreference"](4);i["ɵɵadvance"](1),i["ɵɵproperty"]("target",e.cardProps.link.target),i["ɵɵattribute"]("alt",e.cardProps.text)("href",e.cardProps.link.url,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngTemplateOutlet",t)}}function Dd(e,t){1&e&&i["ɵɵelementContainer"](0)}function Ld(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Dd,1,0,"ng-container",12),i["ɵɵtext"](3,"\n        "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](),t=i["ɵɵreference"](10),n=i["ɵɵreference"](7);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.cardProps.link.isExternal)("ngIfThen",t)("ngIfElse",n)}}let Fd=(()=>{class e{constructor(e,t,n,i){this.platformId=e,this.cmsExternalLinkService=t,this.clickHandlerService=n,this.windowService=i,this.thumbnailImage="/assets/images/thumbnail.png",this.thumbnailAlt="Placeholder image"}set card(e){this.cmsLink=e.link?this.cmsExternalLinkService.toCmsExternalLink(e.link.url):{uri:"",queryParams:{}},this.cardProps=e}handleClickOnSlide(e,t,n){this.clickHandlerService.handleClick("card_board",!1,t,-1,n),this.openLink(e)}openLink(e){(0,r.isPlatformBrowser)(this.platformId)&&this.windowService&&"popup"===this.cardProps.link.target&&(e.preventDefault(),e.stopPropagation(),this.windowService.window().open(this.cardProps.link.url,null,"width=1000,height=690"))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](at.xG),i["ɵɵdirectiveInject"](Od.M),i["ɵɵdirectiveInject"](ee.u,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-cardboard"]],inputs:{card:"card"},decls:15,vars:2,consts:[[1,"game-thumbnail","img-large"],["cardboard",""],["internalLink",""],["externalLink",""],[4,"ngIf","ngIfElse"],[1,"thumb-container"],[1,"img-placeholder","img-responsive",3,"src"],["bxImage","",1,"img-responsive","img-game",3,"src"],[1,"thumbnail-text",3,"innerHTML"],["role","link",3,"routerLink","queryParams","click"],[4,"ngTemplateOutlet"],["role","link","rel","noopener",3,"target","click"],[4,"ngIf","ngIfThen","ngIfElse"]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n    "),i["ɵɵelementStart"](1,"article",0),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,Ad,12,9,"ng-template",null,1,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](5,"\n\n        "),i["ɵɵtemplate"](6,jd,6,4,"ng-template",null,2,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](8,"\n\n        "),i["ɵɵtemplate"](9,Rd,6,4,"ng-template",null,3,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](11,"\n\n        "),i["ɵɵtemplate"](12,Ld,4,3,"ng-container",4),i["ɵɵtext"](13,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n    ")),2&e){const e=i["ɵɵreference"](4);i["ɵɵadvance"](12),i["ɵɵproperty"]("ngIf",t.cardProps.link)("ngIfElse",e)}},directives:[r.NgIf,Po.t,o.RouterLinkWithHref,r.NgTemplateOutlet],pipes:[Ps.d],encapsulation:2}),e})();var Bd=n(60227);const Ud=["cardContainer"];function Vd(e,t){if(1&e&&(i["ɵɵelementStart"](0,"header",11),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"h2",12),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.title)}}function Gd(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-cardboard",13),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵproperty"]("card",e)}}function Hd(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",14),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"bx-slide-card",15),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("title",e.title)("cardText",e.cardText)("cardTextColor",e.cardTextColor)("imageSrc",e.imageSrc)("linkTo",e.linkTo)("target",e.target)("data",e)}}function zd(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",16),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().scrollLeft()})),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"button",17),i["ɵɵtext"](3,"\n                        "),i["ɵɵelement"](4,"i",18),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"]()}}function $d(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",19),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().scrollRight()})),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"button",20),i["ɵɵtext"](3,"\n                        "),i["ɵɵelement"](4,"i",21),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"]()}}let Wd=(()=>{class e{constructor(e){this.horizontalScrollService=e,this.scrollRightButtonShown=!0,this.scrollLeftButtonShown=!1,this.cards=[new Td],this.slideCards=[new Md.q]}ngOnInit(){this.title=this.cardSlider.title,this.cards=this.cardSlider.cards,this.slideCards=this.cardSlider.slideCards,this.scrollable=this.cardSlider.scrollable,this.scrollable?this.scrollSubscription=this.horizontalScrollService.getSubject().subscribe((e=>{"left"===e.button?this.scrollLeftButtonShown=e.display:this.scrollRightButtonShown=e.display})):this.scrollRightButtonShown=this.scrollLeftButtonShown=!1}ngAfterViewInit(){this.scrollable&&this.horizontalScrollService.initScroll(this.cardContainer)}scrollRight(){this.horizontalScrollService.scrollRight()}scrollLeft(){this.horizontalScrollService.scrollLeft()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Fl.c))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-card-slider"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Ud,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.cardContainer=e.first)}},inputs:{cardSlider:"cardSlider"},features:[i["ɵɵProvidersFeature"]([Fl.c])],decls:27,vars:5,consts:[[1,"carousel","primary"],[1,"component-wrapper","max-container"],["class","component-header",4,"ngIf"],[1,"hide-scroll"],[1,"content-slider","max-height-container"],["cardContainer",""],[3,"card",4,"ngFor","ngForOf"],["class","section-item section-1x1 outertext",4,"ngFor","ngForOf"],[1,"carousel-navigation"],["role","button","class","carousel-navigation-back",3,"click",4,"ngIf"],["role","button","class","carousel-navigation-next",3,"click",4,"ngIf"],[1,"component-header"],[1,"h3-heading","content-title"],[3,"card"],[1,"section-item","section-1x1","outertext"],[3,"title","cardText","cardTextColor","imageSrc","linkTo","target","data"],["role","button",1,"carousel-navigation-back",3,"click"],["aria-label","back",1,"carousel-navigation-btn"],[1,"icon","icon-arrow-back"],["role","button",1,"carousel-navigation-next",3,"click"],["aria-label","next",1,"carousel-navigation-btn"],[1,"icon","icon-arrow-next"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n"),i["ɵɵelementStart"](1,"section",0),i["ɵɵtext"](2,"\n    "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n        "),i["ɵɵtemplate"](5,Vd,5,1,"header",2),i["ɵɵtext"](6,"\n        "),i["ɵɵelementStart"](7,"div",3),i["ɵɵtext"](8,"\n            "),i["ɵɵelementStart"](9,"div",4,5),i["ɵɵtext"](11,"\n                "),i["ɵɵtemplate"](12,Gd,2,1,"bx-cardboard",6),i["ɵɵtext"](13,"\n                "),i["ɵɵtemplate"](14,Hd,5,7,"div",7),i["ɵɵtext"](15,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n            "),i["ɵɵelementStart"](17,"ul",8),i["ɵɵtext"](18,"\n                "),i["ɵɵtemplate"](19,zd,7,0,"li",9),i["ɵɵtext"](20,"\n                "),i["ɵɵtemplate"](21,$d,7,0,"li",10),i["ɵɵtext"](22,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n"),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n    ")),2&e&&(i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.title),i["ɵɵadvance"](7),i["ɵɵproperty"]("ngForOf",t.cards),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",t.slideCards),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.scrollLeftButtonShown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.scrollRightButtonShown))},directives:[r.NgIf,r.NgForOf,Fd,Bd._],encapsulation:2}),e})(),qd=class{constructor(){this.data={},this.cardSlider=new Pd}ngOnInit(){this.data&&this.getMarketingAudiencesData(),this.mapToDataModel(this.data)}ngOnChanges(){this.mapToDataModel(this.data)}mapToDataModel(e={}){this.cardSlider.title=e.title,this.getCards(e),this.cardSlider.scrollable=!0}getCards(e={}){let t=new _d;this.cardSlider.cards=(e.items||[]).map(t.createCardboard)}getMarketingAudiencesData(){this.data.items.forEach((e=>{e.marketingAudiences=this.data.marketingAudiences,e.parentInternalName=this.data.internal_name,e.parentType=this.data.contentType}))}};qd.ɵfac=function(e){return new(e||qd)},qd.ɵcmp=i["ɵɵdefineComponent"]({type:qd,selectors:[["bx-scrollable-section"]],inputs:{data:"data"},features:[i["ɵɵNgOnChangesFeature"]],decls:4,vars:1,consts:[[3,"cardSlider"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-card-slider",0),i["ɵɵtext"](2,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("cardSlider",t.cardSlider))},directives:[Wd],encapsulation:2}),qd=(0,a.__decorate)([(0,q.DE)({name:"Scrollable Section",matcher:e=>{const t=e.fields.tags?e.fields.tags.split(","):[];return e.contentType===K.z.SECTION&&t.indexOf(Sa.d.SCROLLABLE)>=0}}),(0,a.__metadata)("design:paramtypes",[])],qd);var Kd=n(39168);let Xd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[_d,at.xG],imports:[[r.CommonModule,o.RouterModule,It.D,Et.$Q,Kd.g.forRoot()]]}),e})();var Yd=n(82939);let Jd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,o.RouterModule,Bc.E,Xd,Yd.A]]}),e})(),Qd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,o.RouterModule,Xd,Jd,W.J.withComponents([qd])]]}),e})();var Zd,eu=n(34553);let tu=Zd=class{constructor(e,t,n,i,r){this.casinoService=e,this.deviceService=t,this.windowService=n,this.domSanitizer=i,this.platformId=r}ngOnInit(){var e=this;(0,r.isPlatformBrowser)(this.platformId)&&this.casinoService.getGameUrl(Zd.GAME_ID).subscribe(function(){var t=(0,eu.Z)((function*(t){e.domSanitizer.bypassSecurityTrustResourceUrl(t),e.deviceService.isDesktop()?(yield e.appendWidgetIntegrationScript(t),e.appendLauncherScript(t)):e.windowService.location().replace(t)}));return function(e){return t.apply(this,arguments)}}(),(e=>{if(e.status===Zd.CURRENCY_NOT_SUPPORTED_ERROR)return this.casinoService.resolveCurrencyNotSupported()}))}appendWidgetIntegrationScript(e){var t=this;return(0,eu.Z)((function*(){const n=new URL(e);return new Promise(((e,i)=>{const r=`${n.protocol}//${n.hostname}/responsive/js/widgetIntegration.nocache.js`,o=t.windowService.document().createElement("script");o.setAttribute("async",""),o.setAttribute("src",r),o.onload=e,o.onerror=i,t.windowService.document().getElementsByTagName("head")[0].appendChild(o)}))}))()}appendLauncherScript(e){const t=this.windowService.document().createElement("script");t.innerHTML=`widgetAdapter.registerVirtualSports(document.getElementById('globalbet'), '${e}')`,this.windowService.document().getElementsByTagName("head")[0].appendChild(t)}};tu.GAME_ID=1331,tu.CURRENCY_NOT_SUPPORTED_ERROR=412,tu.ɵfac=function(e){return new(e||tu)(i["ɵɵdirectiveInject"](Cn),i["ɵɵdirectiveInject"](Bt.U),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](Le.DomSanitizer),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},tu.ɵcmp=i["ɵɵdefineComponent"]({type:tu,selectors:[["bx-virtual-sports"]],decls:6,vars:0,consts:[["data-dynamic-element","dynamicElement",1,"max-container"],["id","globalbet"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"div",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n    "))},styles:["#globalbet[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%] {\n  min-height: 600px;\n  width: 100%; }"]}),tu=Zd=(0,a.__decorate)([(0,q.DE)({name:"CasinoVirtualSports",matcher:e=>e.contentType===K.z.FUNCTIONAL&&(0,Vs.ge)(e,Sa.d.VIRTUALSPORTS)}),(0,a.__metadata)("design:paramtypes",[Cn,Bt.U,ee.u,Le.DomSanitizer,Object])],tu);let nu=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[tu]}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var iu=n(58859),ru=n(91549),ou=n(11198),au=n(93758),su=n(58548),cu=n(15287),lu=n(4060);let du=(()=>{class e{static forRoot(){return{ngModule:e,providers:[au.S,su.s,{provide:cu.OJ,useExisting:su.s}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[],imports:[[lu.P]]}),e})();var uu=n(94410),pu=n(57685),hu=n(33087);let mu=(()=>{class e{constructor(e,t){this.reactiveComponentLoader=e,this.injector=t,this.extendLibraryFunctionality(this.injector)}getService(e,t){return this.reactiveComponentLoader.getServiceRecipe({moduleId:e,service:t})}getComponent(e){return this.reactiveComponentLoader.getComponentRecipe(e)}extendLibraryFunctionality(e){k.prototype._tryGetServiceType=(e,t)=>{if(e._def){let n=Array.from(e._def.providers).find((e=>e.value&&t===e.value.serviceId));if(!n||!n.value)throw`Service with name '${t}', not found in Module`;return n.value}{const n=Array.from(e.instance.constructor["ɵinj"].providers).find((e=>e.serviceId===t));if(!n)throw`Service with name '${t}', not found in Module`;return n}},k.prototype.getServiceRecipe=function(t){const n=this;return null==t?(0,s.of)(null):(0,s.defer)((function(){return(0,a.__awaiter)(n,void 0,void 0,(function(){let n,i,r,o,s,c;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=t.moduleId,i=t.service,r=this._findModuleInfo(n),[4,this._getModuleFactory(r)];case 1:return o=a.sent(),s=o.create(this._injector),c=this._tryGetServiceType(s,i),[2,{serviceType:c,ngModuleFactory:o,injector:c.ngInjectableDef&&"root"===c.ngInjectableDef.providedIn?e:s.injector}]}}))}))}))}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](k),i["ɵɵinject"](i.Injector))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),gu=(()=>{class e{constructor(e){this.libExtended=e}getService(e,t){return this.libExtended.getService(e,t).pipe((0,c.map)((e=>e.injector.get(e.serviceType)))).pipe((0,c.catchError)((e=>{throw e})))}getComponent(e){return this.libExtended.getComponent(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](mu))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();const fu=()=>{};let vu=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.lazyLoaderService=t}init(){this.isApmRumEnabled()&&this.lazyLoaderService.getService("EUMModule","EUMService").toPromise().then(fu)}isApmRumEnabled(){return this.siteConfigService.isFeaturePresent(dc.L.apmRum)&&!!this.siteConfigService.getSiteConfig().apmUri}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](gu))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),bu=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[gu],imports:[[]]}),e})(),yu=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[vu],imports:[[bu,D.withModule({moduleId:"EUMModule",loadChildren:()=>Promise.all([n.e(883),n.e(793)]).then(n.bind(n,62793)).then((e=>e.EUMModule))})]]}),e})();var Cu=n(86333);let Su=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.windowService=t}init(){this.injectScript()}injectScript(){const{id:e,enabled:t}=this.siteConfigService.getSiteConfigProp("hotjar"),n=this.siteConfigService.isFeaturePresent(dc.L.hotjarDefer);return!!t&&(n&&this.windowService.getIsPlatformBrowser()&&"complete"!==this.windowService.getDocumentReadyState()?(this.windowService.addEventListener("load",(()=>{this.windowService.injectScriptCode(this.generateScript(e))}),{once:!0}),!1):this.windowService.injectScriptCode(this.generateScript(e)))}generateScript(e){return"(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:%hotjar_id%,hjsv:6};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');".replace("%hotjar_id%",e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](ee.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var xu=n(64375),wu=n(72556);let Eu=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.windowService=t}init(){this.injectScript()}injectScript(){const{id:e,enabled:t}=this.siteConfigService.getSiteConfigProp("googleAnalytics");return!!t&&this.windowService.injectScriptCode(this.generateScript(e))}generateScript(e){return`(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', '${e}', 'auto');ga('send', 'pageview');`}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](ee.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Iu={height:"0",width:"0",display:"none",visibility:"hidden"};let Pu=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.windowService=t}init(){this.injectScript()}injectScript(){const e=this.siteConfigService.getSiteConfigProp("googleTagManagerContainerId");e&&""!==e&&(this.windowService.injectScriptCode(this.generateHeaderScript(e)),this.windowService.injectIframe(`https://www.googletagmanager.com/ns.html?id=${e}`,Iu))}generateHeaderScript(e){return`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','${e}');`}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](ee.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Tu=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.cookieStorageService=t}isPWAEnable(){return this.isPWAFeatureEnable()||this.isPWACookieEnable()}areServiceWorkersSupported(e){return"serviceWorker"in e}isPWAFeatureEnable(){return this.siteConfigService.isFeaturePresent(dc.L.pwa)}isPWACookieEnable(){return!!this.cookieStorageService.get(dc.L.pwa)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](me.G))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),_u=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.languageService=t,this.fileName="sw.min.js",this.defaultBucket="default"}calculateURL(){var e=this;return(0,eu.Z)((function*(){const t=yield e.getEffectiveLanguage(),n=e.getBucket();return e.composeServiceWorkerURL(t,n)}))()}getEffectiveLanguage(){var e=this;return(0,eu.Z)((function*(){const t=yield e.getCurrentLanguage();return e.siteConfigService.getSiteConfigProp("defaultLanguage")===t?"":t}))()}getBucket(){return this.siteConfigService.getSiteConfigProp("bucket")||this.defaultBucket}getCurrentLanguage(){var e=this;return(0,eu.Z)((function*(){return e.languageService.getLanguage().pipe((0,c.take)(1)).toPromise()}))()}composeServiceWorkerURL(e,t){return`/${this.fileName}?language=${encodeURIComponent(e)}&bucket=${encodeURIComponent(t)}`}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](Gt.T))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Mu=(()=>{class e{constructor(e,t,n){this.globalRef=e,this.pwaAvailability=t,this.urlCalculatorService=n}init(){var e=this;return(0,eu.Z)((function*(){if(e.pwaAvailability.isPWAEnable()){const t=e.getNavigator();e.pwaAvailability.areServiceWorkersSupported(t)&&(yield e.installServiceWorker(t))}}))()}getNavigator(){return this.globalRef.nativeGlobal.navigator}installServiceWorker(e){var t=this;return(0,eu.Z)((function*(){const n=yield t.urlCalculatorService.calculateURL();yield e.serviceWorker.register(n,{updateViaCache:"none"})}))()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Vt.w),i["ɵɵinject"](Tu),i["ɵɵinject"](_u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ou=(()=>{class e{constructor(e,t,n,i,r,o,a,s){this.eumServiceLoader=e,this.hotjarInjectorService=t,this.googleAnalyticsInjectorService=n,this.googleTagManagerInjectorService=i,this.reCaptchaInjectorService=r,this.pageEventsService=o,this.reactiveChatService=a,this.serviceWorkerRegistrator=s}init(){(0,s.combineLatest)([this.pageEventsService.getEvents(1),this.pageEventsService.getEvents(0)]).pipe((0,c.take)(1)).subscribe((()=>{setTimeout((()=>{this.hotjarInjectorService.init(),this.googleAnalyticsInjectorService.init(),this.googleTagManagerInjectorService.init(),this.eumServiceLoader.init(),this.reactiveChatService.init(),this.serviceWorkerRegistrator.init(),this.reCaptchaInjectorService.init()}),100)}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](vu),i["ɵɵinject"](Su),i["ɵɵinject"](Eu),i["ɵɵinject"](Pu),i["ɵɵinject"](xu.F),i["ɵɵinject"](wu.z),i["ɵɵinject"](ie.R),i["ɵɵinject"](Mu))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Au=n(93744);let ku=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Au.V]}),e})();var ju=n(22311),Nu=n(10560),Ru=n(54075);let Du=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[xu.F,Nu.h,ju.Y,Ru.l]}),e})(),Lu=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Su,Eu,Pu,Mu,Tu,_u,Ou],imports:[[yu,Cu.M,ku,Du,pu.z.forBrowser()]]}),e})();var Fu=n(81736),Bu=n(83521),Uu=n(41931);let Vu=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Uu.w]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Gu=n(77472),Hu=n(5875);class zu{constructor(e,t,n){this.type=e,this.name=t,this.url=n}}var $u=(()=>(function(e){e.PLACE="Place",e.POSTAL_ADDRESS="PostalAddress",e.SPORTS_EVENT="SportsEvent",e.BREADCRUMB_LIST="BreadcrumbList"}($u||($u={})),$u))();class Wu{constructor(e,t){this.id=e,this.name=t}toString(){return`{ "@id": "${this.id}", "name": "${this.name}" }`}}class qu{constructor(e){this.position=e}setItem(e){e&&(this.item=new Wu(e.id,e.name))}toString(){return`{ "@type": "ListItem", "position": ${this.position},\n            "item": ${this.item?this.item.toString():{}} }`}}class Ku extends zu{constructor(){super($u.BREADCRUMB_LIST),this.itemListElement=[]}setItemListElement(e){e.forEach(((e,t)=>{this.itemListElement[t]=new qu(e.position),this.itemListElement[t].setItem(e.item)}))}toString(){return`{ "@context": "http://schema.org", "@type": "${this.type}",\n            "itemListElement": [ ${this.itemListElement.toString()} ] }`}}var Xu=n(16071);class Yu extends zu{constructor(){super($u.POSTAL_ADDRESS)}toString(){return`{"@type": "${this.type}"}`}}class Ju extends zu{constructor(e){super($u.PLACE,e)}setAddress(){this.address=new Yu}toString(){return`{"@type": "${this.type}", "name": "${this.name}",\n        "address": ${this.address?this.address.toString():{}} }`}}class Qu extends zu{constructor(e,t,n){super($u.SPORTS_EVENT,e,t),this.startDate=n}setLocation(e){e&&(this.location=new Ju(e),this.location.setAddress())}toString(){return`{ "@context": "http://schema.org", "@type": "${this.type}", "name": "${this.name}",\n        "url": "${this.url}", "startDate": "${this.startDate}",\n        "location": ${this.location?this.location.toString():{}} }`}}let Zu=(()=>{class e{constructor(e,t,n,i){this.windowService=e,this.bxDatePipe=t,this.languageCookieSupplier=n,this.siteConfigService=i,this.defaultToEmptyString=Xu(""),this.sportEventsReady=new s.Subject}setEventsProvider(e){this.eventsProvider=e}getSportsEventsReady(){return this.eventsProvider&&(0,ce.U5)((()=>this.eventsProvider.data),(e=>{this.initSportsEvents(e)})),this.sportEventsReady}initSportsEvents(e){this.eventSportsList=this.sportsSnippetMapper(e),this.sportEventsReady.next(this.eventSportsList)}sportsSnippetMapper(e){this.domain=this.calculateDomain();let t=[];return e&&e.length>0&&e.forEach((e=>{t=t.concat(this.sportsNonGroupedSnippetsListBuilder(e))})),t}sportsNonGroupedSnippetsListBuilder(e){let t=[];if(e.path&&e.events){const n=e.path.filter((e=>1==e.leaf))[0].description;e.events.forEach((e=>{e&&t.push(this.sportsEventSnippetInfoBuilder(e,n))}))}return t}sportsEventSnippetInfoBuilder(e,t){const n=new Qu;return n.name=this.defaultToEmptyString(e.description),n.url=e.link?`${this.domain}${e.link}`:"",n.startDate=this.getStartTime(e),n.setLocation(t),n}getStartTime(e){return this.bxDatePipe.transform(e.startTime,"YYYY-MM-DDTHH:mm:ssZ")}calculateDomain(){const e=this.siteConfigService.getSiteConfigProp("defaultLanguage"),t=this.languageCookieSupplier.language!==e?`/${this.languageCookieSupplier.language}`:"",{protocol:n,host:i}=this.windowService.location();return`${n}//${i}${t}/sports`}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ee.u),i["ɵɵinject"](ra.a),i["ɵɵinject"](Hu.g),i["ɵɵinject"](G.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ep=(()=>{class e{constructor(e,t,n,i,r,o){this.sportsSnippetsService=e,this.rendererFactory=t,this.languageCookieSupplier=n,this.siteConfigService=i,this.doc=r,this.platformId=o,this.renderer=this.rendererFactory.createRenderer(null,null)}ngOnDestroy(){this.sportsSubscription&&this.sportsSubscription.unsubscribe()}subscribeSportsRichSnippets(){this.sportsSubscription=this.sportsSnippetsService.getSportsEventsReady().subscribe((e=>{this.addSportsEventSnippets(e)}))}addBreadcrumbListRichSnippets(e){const t=this.generateItemListElement(e);if(t.length>0){const e=new Ku;e.setItemListElement(t),this.generateRichSnippet(e)}}addSportsEventSnippets(e){e.forEach((e=>{this.generateRichSnippet(e)}))}generateName(e){return e.charAt(0).toUpperCase()+e.slice(1).replace(/-/g," ")}removeQueryParam(e){return e.split(/[?#]/)[0]}getFinalUrl(e){let t=(e=decodeURIComponent(e)).match(/overlay=([^&\?#]+)/i);return t&&(e=`/${t[1]}`),this.removeQueryParam(e)}generateItemListElement(e){if((0,r.isPlatformServer)(this.platformId))return[];let t=[],n="";return(e=this.getFinalUrl(e)).split("/").slice(1).forEach(((e,i)=>{n+=`/${e}`,t[i]={position:i+1,item:{id:this.composeUrlOrigin()+n,name:this.generateName(e)}}})),t}generateRichSnippet(e){let t=this.doc.head,n=this.renderer.createElement("script");this.renderer.setAttribute(n,"type","application/ld+json"),this.renderer.appendChild(n,this.renderer.createText(e.toString())),this.renderer.appendChild(t,n)}composeUrlOrigin(){const e=this.siteConfigService.getSiteConfigProp("defaultLanguage"),t=this.languageCookieSupplier.language!==e?`/${this.languageCookieSupplier.language}`:"";return this.doc.location.origin+t}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Zu),i["ɵɵinject"](i.RendererFactory2),i["ɵɵinject"](Hu.g),i["ɵɵinject"](G.r),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),tp=(()=>{class e{constructor(e,t){this.richSnippetService=e,this.siteConfigService=t}getMarkupSchemas(){return this.siteConfigService.getSiteConfigProp("markupSchemas")||[]}resolve(e,t){if(this.isAnyMarkupSchemaConfigured()&&e.queryParams.prerender){this.isSportsConfigured()&&function(e){return e.indexOf("sports")>=0}(t.url)&&this.richSnippetService.subscribeSportsRichSnippets();const e=t.url.replace(/(\?|&|%3F)prerender(=|%3D)true/,"");this.isBreadcrumbListConfigured()&&!function(e){return"/"===e||function(e){return/\/pages($|\/.+)/.test(e)}(e)||function(e){return/\(overlay:(.+?)\)/.test(e)}(e)}(e)&&this.richSnippetService.addBreadcrumbListRichSnippets(e)}}isAnyMarkupSchemaConfigured(){return this.getMarkupSchemas().length>0}isSportsConfigured(){return this.getMarkupSchemas().includes($u.SPORTS_EVENT)}isBreadcrumbListConfigured(){return this.getMarkupSchemas().includes($u.BREADCRUMB_LIST)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ep),i["ɵɵinject"](G.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),np=(()=>{class e{static forRoot(){return{ngModule:e,imports:[ia.$,St.d],providers:[tp,ep,Zu]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})(),ip=(()=>{class e{constructor(e){this.router=e,this.history=[]}loadRouting(){this.router.events.subscribe((e=>{e instanceof o.NavigationEnd&&(this.history=[...this.history,e.urlAfterRedirects])}))}getHistory(){return this.history}getPreviousUrl(){return this.history[this.history.length-2]||"/"}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var rp=n(79346),op=n(91691),ap=n(86213),sp=n(71059),cp=n(63576),lp=n(72558),dp=n(28850),up=n(77523),pp=n(22101),hp=(n(3539),n(94708),n(22715),n(51015),n(65180),n(57106)),mp=(n(14969),n(92753)),gp=n(42356),fp=n(58695),vp=n(26918),bp=n(79560),yp=n(81869);let Cp=(()=>{class e{static forRoot(){return{ngModule:e,providers:[pe.K,{provide:bi.r,useExisting:pe.K}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Sp=n(87290),xp=n(21111),wp=n(14867),Ep=n(91377),Ip=n(32866),Pp=n(44236),Tp=n(88323);let _p=(()=>{class e{constructor(e,t,n){this.cookieStorageService=e,this.localStorageService=t,this.router=n}canActivate(e,t){let n=-1!==t.url.indexOf(Oe);if(-1===t.url.indexOf("contact-us")){let e=this.localStorageService.get("sessionId"),i=this.cookieStorageService.get("cf_spc");if(e&&i){if(n)return(0,s.of)(n);this.router.navigate([Oe],{queryParams:{returnUrl:t.url}})}}return(0,s.of)(!n)}canActivateChild(e,t){return this.canActivate(e,t)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](me.G),i["ɵɵinject"](Tp.n),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Mp=n(39211);let Op=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[_p],imports:[[ge.ReactiveFormsModule,xt.U8,bt.a,Pt.x,Mp.N,o.RouterModule]]}),e})();var Ap=n(77194),kp=n(39597);let jp=(()=>{class e{static forRoot(){return{ngModule:e,providers:[kp.e]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Np=n(76580),Rp=n(1272),Dp=n(17505),Lp=n(17443),Fp=n(33814),Bp=n(51013);let Up=(()=>{class e{constructor(e){this.cdnService=e}init(e){this.prepareCdnConfig(e)}prepareCdnConfig(e){this.cdnService.prepareCdnConfig(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](as.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),Vp=(()=>{class e{constructor(e,t,n,i){this.platformId=e,this.servicesRequestConfigService=t,this.cdnConfigService=n,this.timeoutRequestHttpInterceptor=i}init(e){this.cdnConfigService.init(e.cdn),(0,r.isPlatformBrowser)(this.platformId)&&(this.servicesRequestConfigService.init(e.serviceDomain),this.timeoutRequestHttpInterceptor.init(e.httpTimeoutInMilliseconds))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](Bp.F8),i["ɵɵinject"](Up),i["ɵɵinject"](Bp._2))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),Gp=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[Bp.P1,...t,Vp,{provide:Be.XhrFactory,useClass:Bp.ke}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Hp=n(10904),zp=n(13580),$p=n(29815),Wp=n(42312);let qp=class extends at.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t,this.GENERIC_PAGE_BASE_ROUTE="pages"}matcher(e){let t=lt(["fields","page_type"],e);return e.contentType===K.z.CONTENT_PAGE&&t===st.G.GENERIC}createLink(e){let t=e.slugname||e.slug||lt(["fields","slug"],e),n=lt(["fields","uriSuffix"],e)||t;return n?`/${this.GENERIC_PAGE_BASE_ROUTE}/${n}`:""}};qp.ɵfac=function(e){return new(e||qp)(i["ɵɵinject"](dt.z),i["ɵɵinject"](ut.X))},qp.ɵprov=i["ɵɵdefineInjectable"]({token:qp,factory:qp.ɵfac}),qp=(0,a.__decorate)([(0,at.ST)(),(0,a.__metadata)("design:paramtypes",[dt.z,ut.X])],qp);var Kp=n(40556);let Xp=class extends at.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t,this.HELP_PAGE_BASE_ROUTE="help"}matcher(e){const t=lt(["fields","page_type"],e);return e.contentType===K.z.CONTENT_PAGE&&t===st.G.HELP}createLink(e){const t=e.slugname||e.slug||lt(["fields","slug"],e),n=lt(["fields","uriSuffix"],e)||t;if(n){const t=new Kp.Z({uriSuffix:n,paths:e.paths}).paths[0];return`/${this.HELP_PAGE_BASE_ROUTE}/${t}`}return""}};Xp.ɵfac=function(e){return new(e||Xp)(i["ɵɵinject"](dt.z),i["ɵɵinject"](ut.X))},Xp.ɵprov=i["ɵɵdefineInjectable"]({token:Xp,factory:Xp.ɵfac}),Xp=(0,a.__decorate)([(0,at.ST)(),(0,a.__metadata)("design:paramtypes",[dt.z,ut.X])],Xp);var Yp=n(47490);let Jp=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Yp.W]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[yt.M,rp.C,Xe.forRoot(),Lp.S]]}),e})(),Qp=(()=>{class e{constructor(e){this.firstTimeDepositorService=e}resolve(){return this.firstTimeDepositorService.getFirstTimeDepositor().pipe((0,c.map)((e=>void 0!==e&&(!0===e||400===e.status))),(0,c.catchError)((e=>(0,s.of)(!1))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Wp.$))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Zp=(()=>{class e{constructor(){this.headerLevel2=!0}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var eh=n(23696);let th=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[eh.s,Ae],imports:[[Pt.x,o.RouterModule,In.P,bt.a,dp.U,Op]]}),e})();var nh=n(79308);let ih=(()=>{class e{constructor(){}match(e,t,n,i){const r=e.split("|");switch(r.length){case 1:return this.matchBrowserName(r[0],t);case 2:return this.matchBrowserName(r[0],t)&&this.matchDevice(r[1],n);case 3:return this.matchBrowserName(r[0],t)&&this.matchDevice(r[1],n)&&this.matchVersion(r[2],i)}}matchBrowserName(e,t){try{const n=new RegExp(e);return!!t&&n.test(t.toLocaleLowerCase())}catch{return!1}}matchDevice(e,t){return!(!t||e&&e!==t)}matchVersion(e,t){if(!t)return!1;const n=this.compareVersion(t,e);return-1===n||0===n}compareVersion(e,t){const n=e.split(".").map((e=>parseInt(e,10))),i=t.split(".").map((e=>parseInt(e,10))),r=Math.min(n.length,i.length);for(let e=0;e<r;++e){if(n[e]>i[e])return 1;if(n[e]<i[e])return-1}return n.length==i.length?0:n.length<i.length?-1:1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),rh=(()=>{class e{constructor(e,t,n,i,r,o){this.deviceService=e,this.siteConfigService=t,this.windowService=n,this.browserMatcher=i,this.sessionStorageService=r,this.platformId=o,this.BRAND_PROPERTY="browsersNotSupported",this.BROWSER_NOT_SUPPORTED_PATH="/contents/browser-not-supported",this.SKIP_BROWSER_DETECTION_KEY="skipBrowserCompatibility",this.notSupportedBrowsersRegex=[],this.userBrowser=this.deviceService.getBrowserNameExtended(),this.userDevice=this.deviceService.getDeviceType(),"tablet"===this.userDevice&&(this.userDevice="mobile"),this.userBrowserVersion=this.deviceService.getBrowserVersion()}checkBrowserSupported(){if(this.notSupportedBrowsersRegex=this.siteConfigService.getSiteConfigProp(this.BRAND_PROPERTY),this.shouldNavigate()){this.sessionStorageService.set(this.SKIP_BROWSER_DETECTION_KEY,"true");const e=this.siteConfigService.getSiteConfigProp("urlPrefix");let t=e?"/"+e+this.BROWSER_NOT_SUPPORTED_PATH:this.BROWSER_NOT_SUPPORTED_PATH;this.windowService.location().href=t}}shouldNavigate(){return(0,r.isPlatformBrowser)(this.platformId)&&!this.skipBrowserDetection()&&this.isBrowserNotSupported()}skipBrowserDetection(){return"true"===this.sessionStorageService.get(this.SKIP_BROWSER_DETECTION_KEY)}isBrowserNotSupported(){return this.notSupportedBrowsersRegex&&!!this.notSupportedBrowsersRegex.find((e=>this.browserMatcher.match(e,this.userBrowser,this.userDevice,this.userBrowserVersion)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Bt.U),i["ɵɵinject"](G.r),i["ɵɵinject"](ee.u),i["ɵɵinject"](ih),i["ɵɵinject"](nh.u),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),oh=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[nh.u,ih,rh],imports:[[r.CommonModule,yt.M,rp.C]]}),e})();var ah=n(92870),sh=n(30986);class ch{setPlaceholderValues(e){this.placeholderValues=e}}ch.ɵfac=function(e){return new(e||ch)},ch.ɵprov=i["ɵɵdefineInjectable"]({token:ch,factory:ch.ɵfac}),(0,a.__decorate)([Ys.LO,(0,a.__metadata)("design:type",Object)],ch.prototype,"placeholderValues",void 0),(0,a.__decorate)([Ys.aD,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],ch.prototype,"setPlaceholderValues",null);let lh=(()=>{class e{constructor(){this.openPlaceHolderKey="{{",this.closePlaceHolderKey="}}",this.placeHolderExtractor=new RegExp(`\\${this.openPlaceHolderKey}(.*?)\\${this.closePlaceHolderKey}`,"g"),this.placeHolderKeys=new RegExp(`${this.openPlaceHolderKey}|${this.closePlaceHolderKey}`,"g")}hasPlaceHolders(e){return this.placeHolderExtractor.test(e)}resolvePlaceHolders(e,t){if(!e||!t)return e;const n=e.match(this.placeHolderExtractor);if(!n)return e;const i=n.reduce(((e,n)=>(e[n]=this.getDeepValue(this.sanitizeKey(n),t),e)),{});return this.replaceValues(e,i)}replaceValues(e,t){return e.replace(this.placeHolderExtractor,(e=>t[e]||e))}sanitizeKey(e){return this.cleanKey(e).toLocaleLowerCase()}cleanKey(e){return e.replace(this.placeHolderKeys,"")}getDeepValue(e,t){if(!t)return null;if(!e.includes("."))return t[e];const n=e.split("."),i=n.slice(1).join(".");return this.getDeepValue(i,t[n[0]])}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var dh=n(81243);let uh=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.templatingService=t,this.calculatedPlaceholderValues=this.composeCalculatedPlaceHolderValues()}resolvePlaceHolders(e){return this.templatingService.resolvePlaceHolders(e,this.calculatedPlaceholderValues)}composeCalculatedPlaceHolderValues(){return{site:{name:this.siteConfigService.getSiteConfigProp("brandLabel")}}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](lh))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ph=(()=>{class e{constructor(e,t,n,i,r){this.platformId=e,this.store=t,this.templatingService=n,this.urlServer=i,this.placeholderCalculated=r}resolve(e){const t=this.placeholderCalculated.resolvePlaceHolders(e);return this.allPlaceholdersWereResolved(t)?(0,s.of)(t):(0,r.isPlatformServer)(this.platformId)?(0,s.throwError)(t):new s.Observable((e=>{const n=(0,ce.EH)((()=>{const n=this.store.placeholderValues;n&&this.urlServer.getPathIncludingParams()===n.url&&this.completeResolution(e,t,n)}));return{unsubscribe:()=>n()}})).pipe((0,c.timeout)(5e3))}completeResolution(e,t,n){const i=this.templatingService.resolvePlaceHolders(t,n);this.templatingService.hasPlaceHolders(i)?e.error(i):e.next(i),e.complete()}allPlaceholdersWereResolved(e){return!this.templatingService.hasPlaceHolders(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](ch),i["ɵɵinject"](lh),i["ɵɵinject"](dh.j),i["ɵɵinject"](uh))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const hh=[{lang:"zh-hans",replacement:"zh"}];let mh=(()=>{class e{constructor(e){this.metadataPlaceholder=e}set(e,t,n){if(this.isSettableValue(t)){const i=this.calculateValue(t);this.metadataPlaceholder.resolve(i).subscribe({next:this.onPlaceholdersResolved.bind(this,e,n),error:this.onPlaceholdersResolvedWithError.bind(this,e,n,i)})}}isSettableValue(e){return!!e}calculateValue(e){return e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ph))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),gh=(()=>{class e extends mh{constructor(e,t){super(e),this.placeholder=e,this.metaService=t}reset(e,t){this.metaService.removeTag(`name="${e}"`)}onPlaceholdersResolved(e,t,n){this.metaService.addTag({name:e,content:n})}onPlaceholdersResolvedWithError(e,t,n){this.removeCurrentMetadataValue(e,t,n);const i=this.getNextFallbackMetadata(e,t,n);i?this.set(e,i[e],t):this.metaService.addTag({name:e,content:n})}removeCurrentMetadataValue(e,t,n){const i=t.fallbackMetadata.find((t=>t[e]===n));i&&(i[e]=void 0)}getNextFallbackMetadata(e,t,n){return t.fallbackMetadata.find((t=>void 0!==t[e]))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ph),i["ɵɵinject"](Le.Meta))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),fh=(()=>{class e extends gh{constructor(e,t,n){super(e,t),this.placeholder=e,this.metaService=t,this.titleService=n}reset(e,t){this.titleService.setTitle(""),super.reset(e,t)}onPlaceholdersResolved(e,t,n){this.titleService.setTitle(n),super.onPlaceholdersResolved(e,t,n)}onPlaceholdersResolvedWithError(e,t,n){this.titleService.setTitle(n),super.onPlaceholdersResolvedWithError(e,t,n)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ph),i["ɵɵinject"](Le.Meta),i["ɵɵinject"](Le.Title))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),vh=(()=>{class e extends gh{constructor(e,t,n){super(e,t),this.placeholder=e,this.metaService=t,this.urlService=n}calculateValue(e){return this.urlService.calculateURL(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ph),i["ɵɵinject"](Le.Meta),i["ɵɵinject"](dh.j))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),bh=(()=>{class e extends mh{constructor(e,t,n){super(e),this.metadataPlaceholder=e,this.doc=t,this.urlService=n}reset(e,t){this.removeLinkBasedOnRelationship(e)}calculateValue(e){return this.urlService.calculateURL(e)}onPlaceholdersResolved(e,t,n){this.appendLinkToHead(this.createLinkElement(e,n))}onPlaceholdersResolvedWithError(e,t,n){this.appendLinkToHead(this.createLinkElement(e,n))}createLinkElement(e,t){const n=this.doc.createElement("link");return n.setAttribute("rel",e),n.setAttribute("href",t),n}appendLinkToHead(e){this.doc.querySelector("head").appendChild(e)}removeLinkBasedOnRelationship(e){const t=this.doc.querySelector(`head > link[rel="${e}"]`);t&&t.parentNode.removeChild(t)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ph),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](dh.j))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();function yh(e){return e?e.replace(/\/$/,""):""}let Ch=(()=>{class e extends bh{isSettableValue(e){return!0}calculateValue(e){return yh(this.urlService.calculateCanonicalURL(e))}}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Sh=n(77247);let xh=(()=>{class e{constructor(e,t){this.urlService=e,this.translateService=t,this.isCasinoGameOverlay=e=>!!e&&decodeURIComponent(e).includes("overlay=casino/"),this.calculateCasinoGamePath=e=>this.urlService.getPath().split("casino")[0]+decodeURIComponent(e.split("overlay=")[1]).split("#")[0].split("?")[0],this.isHomeWithoutOverlays=(e,t)=>"/"===e.split("?")[0]&&!t.includes("overlay"),this.calculateHomePath=e=>this.addFinalBar(e)+"homepage-firsttimevisitor"}calculatePath(e){const t=this.urlService.purgeQueryParamsOtherThanOverlay(this.urlService.getPathIncludingParams());return this.isCasinoGameOverlay(t)?this.calculateCasinoGamePath(t):this.isHomeWithoutOverlays(e,t)?this.calculateHomePath(t):t}addFinalBar(e){return e.endsWith("/")?e:e+"/"}getMetadataPaths(e,t){const n=new s.ReplaySubject(3);return n.next(e),this.getMarketTypeUrls().subscribe((i=>{const r=e.split("/"),o=[...r],a=o.pop();i.includes(a)&&n.next(o.join("/")),n.next(this.getDefaultFallback(r,t)),n.complete()})),n.asObservable()}getMarketTypeUrls(){return this.translateService.loadTranslations("spMarketTypeFilter").pipe((0,c.filter)((e=>Object.keys(e).length>0)),(0,c.map)((e=>this.getUrlProperties(e))))}getUrlProperties(e){return Object.entries(e).filter((([e,t])=>e.endsWith(".url"))).map((([e,t])=>t))}getDefaultFallback(e,t){const n=e.length>2&&e[1]===t?3:2;return e.slice(0,n).join("/")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](dh.j),i["ɵɵinject"](fe.s))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const wh="x-default";let Eh=(()=>{class e{constructor(e,t,n,i,r,o,a){this.multilingualRoutesService=e,this.metadataPathService=i,this.windowService=o,this.request=a,this.currentLanguage=null,this.defaultLang=t.getSiteConfigProp("defaultLanguage"),this.regionalDeclarations=t.getSiteConfigProp("regionalDeclarations"),n.getAvailableLanguages().subscribe((e=>{this.languages=e,e&&r.getLanguage().pipe((0,c.take)(1)).subscribe((t=>{this.currentLanguage=e.find((e=>e.code===t))}))}))}evaluateAlternates(e){return this.addRegionalDeclarations(this.retagDefaultLang(this.getAlternates(e)))}getAlternates(e){return e&&e.length>0&&e||this.generateAlternates()}generateAlternates(){return this.languages.map((e=>({lang:e.code,path:this.composeLanguageAlternateLink(e)})))}addRegionalDeclarations(e){if(this.isRegionalDeclarationEnable()){let t=[];this.replacedDefaultLang=this.defaultLang,hh.forEach((t=>this.replaceLanguage(t.lang,t.replacement,e))),hh.filter((e=>this.defaultLang===e.lang)).forEach((e=>this.replacedDefaultLang=e.replacement)),this.regionalDeclarations.forEach((n=>{const i=this.getPathByLanguage(this.getLanguageByRegional(n),e);i&&t.push({lang:n,path:i})}));const n=this.getAlternateByLanguage(wh,e);return n&&t.push(n),t}return e}getPathByLanguage(e,t){const n=this.getAlternateByLanguage(this.replacedDefaultLang===e?wh:e,t);return n?n.path:""}replaceLanguage(e,t,n){n.forEach((n=>{n.lang===e&&(n.lang=t)}))}getAlternateByLanguage(e,t){return t.filter((t=>t.lang===e)).pop()}getLanguageByRegional(e){return e.split("-")[0]}isRegionalDeclarationEnable(){return this.regionalDeclarations&&this.regionalDeclarations.length&&""!==this.regionalDeclarations[0]}retagDefaultLang(e){return e.map((e=>(e.lang=e.lang===this.defaultLang?wh:e.lang,e))).sort(((e,t)=>e.lang===wh?-1:t.lang===wh?1:0))}composeLanguageAlternateLink(e){const t=this.multilingualRoutesService.translatePathBetweenLanguages(this.currentLanguage,e,new F.MS(this.getPath()));return this.getBaseURL()+this.cleanSlashes((e.code!==this.defaultLang?`/${e.code}/`:"/")+t.url)}cleanSlashes(e){return e.replace(/\/+/gi,"/").replace(/\/$/gi,"")}getBaseURL(){return this.windowService&&this.windowService.getIsPlatformBrowser()?this.windowService.window().location.origin:"https://"+this.request.headers["x-requested-domain"].toString()}getPath(){const[e,t]=this.metadataPathService.calculatePath("").split("?overlay=");return t||this.purgeLanguage(e)}purgeLanguage(e){const t=e.split("/")[1];if(this.languages.some((e=>e.code===t))){const n=new RegExp(`/${t}($|/)`);return e.replace(n,"/")}return e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](F.JH),i["ɵɵinject"](G.r),i["ɵɵinject"](hu.Fl),i["ɵɵinject"](xh),i["ɵɵinject"](Gt.T),i["ɵɵinject"](ee.u,8),i["ɵɵinject"](Sh.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ih=(()=>{class e{constructor(e,t,n,i){this.metadataPlaceholder=e,this.doc=t,this.urlService=n,this.calculatorService=i}set(e,t,n){this.areAlternatesIncluded(n)&&this.calculatorService.evaluateAlternates(t).forEach((t=>{if(this.isSettableValue(t)){const n=this.calculateValue(t.path);this.metadataPlaceholder.resolve(n).subscribe(this.onPlaceholdersResolved.bind(this,e,t.lang),this.onPlaceholdersResolvedWithError.bind(this,e,t.lang,n))}}))}reset(e,t){this.areAlternatesIncluded(t)&&this.removeLinksBasedOnRelationship(e)}onPlaceholdersResolved(e,t,n){this.appendLinkToHead(this.createLinkElement(e,t,n))}onPlaceholdersResolvedWithError(e,t,n){this.appendLinkToHead(this.createLinkElement(e,t,n))}createLinkElement(e,t,n){const i=this.doc.createElement("link");return i.setAttribute("rel",e),i.setAttribute("href",n),i.setAttribute("hreflang",t),i}appendLinkToHead(e){this.doc.querySelector("head").appendChild(e)}isSettableValue(e){return!!e&&!!e.path&&!!e.lang}calculateValue(e){return yh(this.urlService.calculateURL(e))}areAlternatesIncluded(e){return!e||e.includeAlternates}removeLinksBasedOnRelationship(e){this.doc.querySelectorAll(`head > link[rel="${e}"]`).forEach((e=>e.parentNode.removeChild(e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ph),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](dh.j),i["ɵɵinject"](Eh))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();let Ph=(()=>{class e{constructor(e,t,n,i,r){this.handlers={},this.handlers.title=n,this.handlers.canonical=i,this.handlers["og:url"]=t,this.handlers["twitter:url"]=t,this.handlers.alternate=r,this.handlers.generic=e}set(e,t){Object.keys(e).forEach((n=>{const i=this.getHandler(this.handlers,n);i.reset(n,t),i.set(n,e[n],t)}))}getHandler(e,t){return e[this.getHandlerKey(e,t)]}getHandlerKey(e,t){return e.hasOwnProperty(t)?t:"generic"}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](gh),i["ɵɵinject"](vh),i["ɵɵinject"](fh),i["ɵɵinject"](Ch),i["ɵɵinject"](Ih))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Th="HTML";let _h=(()=>{class e extends mh{constructor(e,t,n,i){super(t),this.siteConfigService=e,this.placeholder=t,this.doc=n,this.platformId=i,this.regionalDeclarations=e.getSiteConfigProp("regionalDeclarations")}reset(e,t){(0,r.isPlatformBrowser)(this.platformId)&&this.removeLanguageValue()}onPlaceholdersResolved(e,t,n){(0,r.isPlatformBrowser)(this.platformId)&&this.setLanguageValue(n)}onPlaceholdersResolvedWithError(e,t,n){(0,r.isPlatformBrowser)(this.platformId)&&this.setLanguageValue(n)}attributes(e){return[{name:"lang",value:e},{name:"xml:lang",value:e},{name:"xmlns",value:"http://www.w3.org/1999/xhtml"}]}removeLanguageValue(){this.removeAttributes(this.getTag(Th),this.attributes(""))}setLanguageValue(e){const t=this.getFullLanguage(e);this.setAttributes(this.getTag(Th),this.attributes(t))}setAttributes(e,t){t.forEach((t=>e.setAttribute(t.name,t.value)))}removeAttributes(e,t){t.forEach((t=>e.removeAttribute(t.name)))}getTag(e){return this.doc.querySelector(e)}getFullLanguage(e){let t=hh.find((t=>t.lang===e));t=t?t.replacement:e;const n=`${t}-${this.siteConfigService.getSiteConfigProp("countryCode")}`;return this.regionalDeclarations.find((e=>e===n))?n:t}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](ph),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Mh=(()=>{class e{constructor(e){this.languageHandler=e}updateMetadata(e,t){this.languageHandler.set("language",e,t)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](_h))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Oh=(()=>{class e{composeCompleteOptions(e){return Object.assign(this.defaultOptions(),e)}defaultOptions(){return{includeAlternates:!0}}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ah=(()=>{class e{constructor(e,t){this.http=e,this.urlPrefixService=t,this.pendingRequest={}}getMetadata(e,t,n){const i=`${e}-${t}-${n}`;return this.pendingRequest[i]||(this.pendingRequest[i]=this.http.get(this.composeMetadataURL(e,t,n))),this.pendingRequest[i]}composeMetadataURL(e,t,n){return`${this.urlPrefixService.addUrlPrefix("/content/content-metadata")}/v2/metadata/buckets/${e}/${t}?path=${n}`}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Be.HttpClient),i["ɵɵinject"](dt.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const kh={title:"title",description:"description",canonicalTag:"canonical",openGraphSiteName:"og:site_name",openGraphURL:"og:url",openGraphTitle:"og:title",openGraphDescription:"og:description",twitterCard:"twitter:card",twitterURL:"twitter:url",twitterTitle:"twitter:title",twitterDescription:"twitter:description",robotsMetadata:"robots",alternates:"alternate",googleSiteVerification:"google-site-verification",seobility:"seobility"};let jh=(()=>{class e{constructor(){this.metadataCahe={}}get(e){return this.metadataCahe[e]}set(e,t){this.metadataCahe[e]=t}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Nh=(()=>{class e{constructor(e,t,n,i,r){this.siteConfigService=e,this.metadataRetrieverService=t,this.metadataHandler=n,this.metadataCacheService=i,this.metadataPathService=r}updateMetadata(e,t,n){const i=this.metadataCacheService.get(t);i?this.metadataHandler.set(i,n):this.metadataPathService.getMetadataPaths(t,e).pipe((0,c.distinct)(),(0,c.mergeMap)(((t,n)=>this.getMetadata(e,t,n))),(0,c.reduce)(((e,t)=>(e.push(t),e)),[])).subscribe({next:e=>this.setBrowserMetadata({...n},e)})}getMetadata(e,t,n){return this.retrieveMetadata(e,t).pipe((0,c.map)((e=>({order:n,metadata:e}))),(0,c.tap)({next:e=>this.cacheMetadata(t,e.metadata)}),(0,c.catchError)((e=>(this.cacheMetadataWithError(t,e),(0,s.of)({order:n,metadata:{}})))))}retrieveMetadata(e,t){const n=this.siteConfigService.getSiteConfigProp("bucket")||"default";return this.metadataRetrieverService.getMetadata(n,e,t)}setBrowserMetadata(e,t){t.sort(((e,t)=>e.order-t.order));const n=t.map((e=>this.createBrowserMetadata(e.metadata))),i=n.shift();e.fallbackMetadata=n,this.metadataHandler.set(i,e)}cacheMetadataWithError(e,t){404==t.status&&this.cacheMetadata(e,{})}cacheMetadata(e,t){const n=this.createBrowserMetadata(t);this.metadataCacheService.set(e,n)}createBrowserMetadata(e){const t={title:"",description:"",canonical:"","og:site_name":"","og:url":"","og:title":"","og:description":"","twitter:card":"","twitter:url":"","twitter:title":"","twitter:description":"",robots:"",alternate:[],"google-site-verification":"",seobility:""};return Object.keys(e).forEach((n=>{const i=kh[n];i&&(t[i]=e[n])})),t}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](Ah),i["ɵɵinject"](Ph),i["ɵɵinject"](jh),i["ɵɵinject"](xh))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Rh=(()=>{class e{constructor(e,t,n,i,r,o){this.languageService=e,this.router=t,this.pathService=n,this.updaterService=i,this.updaterCalculatedService=r,this.updaterOptionsService=o}init(e){const t=this.updaterOptionsService.composeCompleteOptions(e);(0,s.combineLatest)(this.languageService.getLanguage(),this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd)))).subscribe(this.navigationEndCompleted.bind(this,t)),this.languageService.getLanguage().subscribe(this.updateCalculatedMetadata.bind(this,t))}refreshMetadata(e,t,n){const i=this.updaterOptionsService.composeCompleteOptions(n);this.updateMetadata(e,t,i)}navigationEndCompleted(e,[t,n]){this.updateMetadata(t,n.url,e)}updateMetadata(e,t,n){this.updaterService.updateMetadata(e,this.pathService.calculatePath(t),n)}updateCalculatedMetadata(e,t){this.updaterCalculatedService.updateMetadata(t,e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Gt.T),i["ɵɵinject"](o.Router),i["ɵɵinject"](xh),i["ɵɵinject"](Nh),i["ɵɵinject"](Mh),i["ɵɵinject"](Oh))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Dh=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Ph,gh,vh,fh,bh,Ch,Ih,_h,Rh,Nh,Mh,Ah,xh,jh,ph,uh,Oh,Eh,ch,dh.j,lh,hu.Fl],imports:[[r.CommonModule]]}),e})(),Lh=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Fh=(()=>{class e{constructor(e,t){this.cmsFeatureService=e,this.contentService=t,this.CONTENT_SECTION="overlay-pages",this.CONTENT_PAGE_TYPE="generic"}getContentResource(e){return this.fetchContentResource(e).pipe((0,c.take)(1))}processPage(e){return{title:lt(["fields","title"],e)||"",content:lt(["fields","body"],e)||"",style:lt(["fields","style"],e)||"",h1Enabled:!1!==(e.fields&&e.fields.h1Enabled)}}fetchContentResource(e){return this.contentService.getContentByUriSuffix(e,this.CONTENT_SECTION,K.z.CONTENT_PAGE,this.CONTENT_PAGE_TYPE).pipe((0,c.map)((e=>this.cmsFeatureService.isSectionEnabled(this.CONTENT_SECTION)?this.processPage(e):e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Ft.u),i["ɵɵinject"](Vs._s))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Bh=(()=>{class e{constructor(e,t){this.overlayPageService=e,this.contentNotFoundHandler=t}resolve(e,t){let n=e.data.resource||e.params.uriSuffix;return this.overlayPageService.getContentResource(n).pipe((0,c.catchError)((e=>this.contentNotFoundHandler.resolveContentNotFoundOrThrow(e))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Fh),i["ɵɵinject"](dn.B))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Uh=(()=>{class e{constructor(e){this.route=e}ngOnInit(){this.data=this.route.snapshot.data.resourceData}wrapStyleTag(e){return"<style>"+e+"</style>"}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.ActivatedRoute))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-overlay-page"]],decls:16,vars:4,consts:[["overlayType","large"],[1,"legal-pages"],["role","heading",1,"h2-heading"],[1,"overlay-page-content",3,"innerHTML"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay-container",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"bx-overlay-header"),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"h1",2),i["ɵɵtext"](8),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n\n                "),i["ɵɵelement"](11,"div",3),i["ɵɵpipe"](12,"bxTrustyHtml"),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n    ")),2&e&&(i["ɵɵadvance"](8),i["ɵɵtextInterpolate"](null==t.data?null:t.data.title),i["ɵɵadvance"](3),i["ɵɵproperty"]("innerHTML",i["ɵɵpipeBind1"](12,2,t.wrapStyleTag(null==t.data?null:t.data.style)+(null==t.data?null:t.data.content)),i["ɵɵsanitizeHtml"]))},directives:[Ls.l,Fs.z],pipes:[Ps.d],styles:["h2.h2-heading[_ngcontent-%COMP%] {\n  padding: 20px 0;\n  color: #000000; }\n\n.modal-overlay[_ngcontent-%COMP%]   h2.h2-heading[_ngcontent-%COMP%] {\n  padding: 20px 0; }\n\n.modal-text-content[_ngcontent-%COMP%] {\n  padding: 0 20px 20px; }"]}),e})(),Vh=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[dp.U,It.D]]}),e})(),Gh=(()=>{class e{constructor(e,t,n,i,r,o,a){this.routerDataConfig=e,this.marketingPageService=t,this.promotionsMapper=n,this.articlesModelCmsMapper=i,this.contentService=r,this.contentNotFoundHandler=o,this.overlayPageService=a}fetchContentByUri(e){return this.contentService.getContentByUri(e).pipe((0,c.catchError)((e=>this.contentNotFoundHandler.resolveContentNotFoundOrThrow(e))))}enrichRouterData(e){let t={contentType:e.contentType,slugname:e.slugname};if(e.contentType===K.z.MARKETING_PAGE)t={...t,contentType:e.contentType,marketingPage:this.marketingPageService.processPage(e),...this.routerDataConfig.dynamicRoutesConfig[K.z.MARKETING_PAGE]};else if(e.contentType===K.z.CONTENT_PAGE){const n=lt(["fields","page_type"],e);switch(n){case st.G.PROMOTION:t={contentType:e.contentType,slugname:e.slugname,pageType:n,promotion:this.promotionsMapper.mapPromotion(e),...this.routerDataConfig.dynamicRoutesConfig[st.G.PROMOTION]};break;case st.G.ARTICLE:t={...t,contentType:e.contentType,pageType:n,article:this.articlesModelCmsMapper.mapArticle(e),...this.routerDataConfig.dynamicRoutesConfig[st.G.ARTICLE]};break;case st.G.GENERIC:t={...t,contentType:e.contentType,pageType:n,resourceData:this.overlayPageService.processPage(e),...this.routerDataConfig.dynamicRoutesConfig[st.G.GENERIC]}}}return t}getType(e){return e[e.contentType===K.z.MARKETING_PAGE?"contentType":"pageType"]}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Lh),i["ɵɵinject"]($a.F),i["ɵɵinject"](Aa.Q),i["ɵɵinject"](mt.C),i["ɵɵinject"](Vs._s),i["ɵɵinject"](Vs.Bo),i["ɵɵinject"](Fh))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Hh=(()=>{class e{constructor(e,t,n,i){this.dynamicContentService=e,this.impressionHelper=t,this.contentNotFoundHandler=n,this.metadataAlternateContentService=i}resolve(e,t){return this.metadataAlternateContentService.checkMetadataAlternates(t).pipe((0,c.mergeMap)((n=>n?this.fetchContent(t.url,e):this.navigateToNotFoundPage())),(0,c.first)())}fetchContent(e,t){return this.dynamicContentService.fetchContentByUri(e).pipe((0,c.tap)((e=>{t.data={...t.data,...this.dynamicContentService.enrichRouterData(e)},this.impressionHelper.pageView(e)})),(0,c.first)())}navigateToNotFoundPage(){return this.cmsContent$=new s.Subject,this.contentNotFoundHandler.navigateToNotFoundPage(),this.resolveObserver({})}resolveObserver(e){return this.cmsContent$.next(e),this.cmsContent$.complete(),this.cmsContent$.asObservable()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Gh),i["ɵɵinject"](Gs.P),i["ɵɵinject"](dn.B),i["ɵɵinject"](tc))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var zh=n(8566),$h=n(56730),Wh=n(81768);let qh=(()=>{class e{constructor(e,t,n,i,r){this.siteConfigService=e,this.metadataCacheService=t,this.metadataRetrieverService=n,this.urlService=i,this.multilingualRoutesService=r}checkMetadataAlternates(e){if(this.isDefaultRoute(e))return(0,s.of)(!0);const t=new F.MS(this.urlService.getPath()),n=this.multilingualRoutesService.calculateLanguage(t);let i=this.getPathFromUrl(e.url);return this.isDefaultLanguage(n.code)||(i=`/${n.code}${i}`),this.getMetadata(n.code,i).pipe((0,c.map)((e=>this.checkMetadataAlternateMatchesPath(n.code,i,e))))}isDefaultRoute(e){const t=this.getPathArray(e.url.slice(1));return 1===t.length||2===t.length&&["articles","pages","promotions"].includes(t[0])}isDefaultLanguage(e){return this.siteConfigService.getSiteConfigProp("defaultLanguage")===e}getMetadata(e,t){const n=this.metadataCacheService.get(t);if(n)return(0,s.of)(n);const i=this.siteConfigService.getSiteConfigProp("bucket")||"default";return this.metadataRetrieverService.getMetadata(i,e,t)}checkMetadataAlternateMatchesPath(e,t,n){const i=n.alternates||n.alternate;if(!i||!i.length)return!0;const r=this.isDefaultLanguage(e)&&i.find((e=>"x-default"===e.lang))?"x-default":e;return(i.find((e=>r.includes(e.lang)))||{}).path===t}getPathFromUrl(e){return e.split("?")[0].split("#")[0].replace(/\(overlay:(.+?)\)/,"")}getPathArray(e){return this.getPathFromUrl(e).split("/")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](jh),i["ɵɵinject"](Ah),i["ɵɵinject"](dh.j),i["ɵɵinject"](F.JH))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Kh=(()=>{class e{static withComponents(t=[]){return{ngModule:e,providers:[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Hh,Gh,Gs.P,$h.Z,Wh.V,{provide:tc,useClass:qh}],imports:[[r.CommonModule,zh.B,kt.I,o.RouterModule]]}),e})();var Xh=n(59851);let Yh=(()=>{class e{constructor(e,t,n){this.windowService=e,this.platformId=t,this.urlPrefixService=n,this.nonExistingPaths=["/contents","/betting-offers"]}canActivate(e,t){return!(0,r.isPlatformBrowser)(this.platformId)||(this.windowService.location().pathname=this.isNonExistingPath(t.url)?Xh.wF:this.urlPrefixService.addUrlPrefix(t.url),!1)}isNonExistingPath(e){return this.nonExistingPaths.find((t=>t===e))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ee.u),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](dt.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Jh=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Yh],imports:[[o.RouterModule,r.CommonModule]]}),e})();var Qh=n(65353);let Zh=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Xs],imports:[[Qh.gM,Vs.Qh,W.J]]}),e})();var em=n(51029);let tm=(()=>{class e extends va.x{constructor(e){super(),this.gameCardCmsMapper=e}map(e){const t=!!e.fields&&!!e.fields.personalized,n=parseInt(e.automatedNumberOfItems);return{category:t?this.gameCardCmsMapper.mapGameCategoryFullTreeAsEmpty(e,n):this.gameCardCmsMapper.mapGameCategoryFullTree(e)}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Qt))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),nm=(()=>{class e{constructor(){this.gamecardCache={},this.personalizedTitleCache={}}flush(){this.gamecardCache={},this.personalizedTitleCache={}}getGamesMetadata(e){return this.gamecardCache[e]}getPersonalizedTitle(e){return this.personalizedTitleCache[e]}setGamesMetadata(e,t){this.gamecardCache[e]=t}setTitle(e,t){this.personalizedTitleCache[e]=t}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),im=(()=>{class e{constructor(e,t,n,i){this.cache=e,this.contentService=t,this.gamecardCmsMapper=n,this.trackingService=i}resetForCategory(){this.cache.flush()}includeInfoInCache(e){if(!e.hasPersonalizedContent){const t=e.slugname,n=e.title,i={games:e.games,automatedTracking:e.automatedTracking,internalName:e.internalName};this.cache.setGamesMetadata(t,i),this.cache.setTitle(t,n)}}getPersonalizedTitle(e,t){if(t){let t=this.cache.getPersonalizedTitle(e);return t?(0,s.of)(t):this.contentService.getPersonalizedContentBySlug(e).pipe((0,c.tap)((t=>{this.cache.setTitle(e,t.fields.title);const n=this.toGamesMetadata(t);this.cache.setGamesMetadata(e,n)})),(0,c.map)((e=>e.fields.title)))}return s.EMPTY}getPersonalizedGamesMetadata(e,t){if(t){let t=this.cache.getGamesMetadata(e);return t?(0,s.of)(t):this.contentService.getPersonalizedContentBySlug(e).pipe((0,c.tap)((t=>this.cache.setTitle(e,t.fields.title))),(0,c.map)((e=>this.toGamesMetadata(e))),(0,c.tap)((t=>this.cache.setGamesMetadata(e,t))))}return s.EMPTY}getGamesMetadata(t){const n=this.cache.getGamesMetadata(t);return n?(0,s.of)(n):this.contentService.getContentBySlug(t,e.CONTENT_SECTION).pipe((0,c.map)((e=>this.toGamesMetadata(e))),(0,c.tap)((e=>this.cache.setGamesMetadata(t,e))))}toGamesMetadata(e){return{games:this.gamecardCmsMapper.mapChildGames(e),automatedTracking:this.trackingService.getAutomatedTracking(e),internalName:e.fields.internal_name}}}return e.CONTENT_SECTION="games",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](nm),i["ɵɵinject"](Dt._),i["ɵɵinject"](Qt),i["ɵɵinject"](Jt.e))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();function rm(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-dropdown",12),i["ɵɵlistener"]("change",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).selectSubTab(t)})),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](3);i["ɵɵproperty"]("options",e.subTabs)("selectedValue",e.selectedSubTab.name)}}const om=function(e){return{active:e}};function am(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",13),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).$implicit;return i["ɵɵnextContext"](3).selectSubTab(t)})),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"h2",14),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit;i["ɵɵpropertyInterpolate"]("title",e.name),i["ɵɵproperty"]("bxPreviewIndicator",e)("ngClass",i["ɵɵpureFunction1"](4,om,e.active)),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.name)}}function sm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",8),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,rm,2,2,"bx-dropdown",9),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"ul",10),i["ɵɵtext"](5,"\n                        "),i["ɵɵtemplate"](6,am,5,6,"li",11),i["ɵɵtext"](7,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.gameCategoriesConfigService.showDropdown),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngForOf",e.subTabs)}}function cm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"header"),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"div",15),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵclassProp"]("placeholder-title",e.showTitlePlaceholder),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                        ",e.selectedSubTab.title,"\n                    ")}}function lm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-card",16),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=t.index,r=i["ɵɵnextContext"](2);i["ɵɵpropertyInterpolate"]("imageType",r.gameCategoriesConfigService.imageType),i["ɵɵproperty"]("card",e)("defaultImage",r.imageService.getPlaceholderImage(r.placeholderImageSize[0],r.placeholderImageSize[1]))("cardMatrix",r.cardMatrix)("position",n)("contentSource",r.contentSource)("automatedTracking",r.automatedTracking)}}const dm=function(e){return{"max-container customCarousel":e}},um=function(e,t,n){return{"content-slider":!0,"hide-scroll":e,scroll:t,"no-scroll":n}};function pm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"section",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,sm,9,2,"div",3),i["ɵɵtext"](5,"\n                "),i["ɵɵtemplate"](6,cm,5,3,"header",4),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"div",5,6),i["ɵɵtext"](10,"\n                    "),i["ɵɵtemplate"](11,lm,2,7,"bx-card",7),i["ɵɵtext"](12,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("max-container",e.gameCategoriesConfigService.applyMaxContainer)("custom-carousel",e.gameCategoriesConfigService.customCarousel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](9,dm,!e.gameCategoriesConfigService.applyMaxContainer)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.categoryTab.hasSubTab),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.gameCategoriesConfigService.showSubcategoryTitle&&e.categoryTab.hasSubTab&&e.selectedSubTab&&e.selectedSubTab.title),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction3"](11,um,"large"!==e.gameCategoriesConfigService.imageType,"large"!==e.gameCategoriesConfigService.imageType,"large"===e.gameCategoriesConfigService.imageType)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngForOf",e.games)}}let hm=class{constructor(e,t,n,i,r,o){this.gameCardCmsMapper=e,this.gameCategoryService=t,this.imageService=n,this.gameCategoriesConfigService=i,this.platformId=r,this.contentViewTrackingService=o,this.dataLoaded=!1,this.subTabs=[],this.contentSource="manual",this.games=[new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt,new Wt],this.placeholderImageSize=[155,118],this.cardMatrix=[],this.showTitlePlaceholder=!1,"large"===this.gameCategoriesConfigService.imageType&&(this.placeholderImageSize=[220,170])}set category(e){this.initCategoryData(e)}initCategoryData(e){this.gameCategory=e,this.categoryTab=this.gameCardCmsMapper.mapTab(e),this.addSubTabs(),this.setupSubcategoryGames(e),this.subTabs.length>0?this.selectSubTab(this.subTabs[0],!0):(this.contentSource=e.isAutomated?"automated":"manual",this.automatedTracking=e.automatedTracking,this.showGames(e.automatedNumberOfItems,e.games),e.hasPersonalizedContent?this.gameCategoryService.getPersonalizedGamesMetadata(e.slug,e.hasPersonalizedContent).subscribe((t=>{this.contentSource="personalized",this.handleContentViewTracking(t),this.showGames(e.automatedNumberOfItems,t.games)})):this.handleContentViewTracking(e)),this.dataLoaded=!0}ngAfterViewInit(){this.initScroll(),Promise.resolve().then((()=>this.cardMatrix=new cc(this.gameCards,this.platformId)))}setupSubcategoryGames(e){this.gameCategoryService.resetForCategory(),e.subCategories&&e.subCategories.filter((e=>e.games.length)).forEach((e=>this.gameCategoryService.includeInfoInCache(e)))}addSubTabs(){this.gameCategory.subCategories.map((e=>{this.addSubTab(e)}))}addSubTab(e){let t=this.gameCardCmsMapper.mapSubTab(e);this.subTabs.push(t)}selectSubTab(e,t){this.subTabs.forEach((e=>{e.active=!1})),e.active=!0,this.selectedSubTab=e;let n=this.gameCategory.subCategories.filter((t=>t.name===e.name))[0];this.showTitlePlaceholder=t&&n.hasPersonalizedContent,this.contentSource=n.isAutomated?"automated":"manual",this.automatedTracking=n.automatedTracking,n.hasPersonalizedContent?(0,r.isPlatformBrowser)(this.platformId)&&(this.gameCategoryService.getPersonalizedTitle(n.slugname,n.hasPersonalizedContent).subscribe((e=>{this.selectedSubTab.title=e,this.showTitlePlaceholder=!1})),this.gameCategoryService.getPersonalizedGamesMetadata(n.slugname,n.hasPersonalizedContent).subscribe((e=>{this.contentSource="personalized",this.handleContentViewTracking(e),this.showGames(n.automatedNumberOfItems,e.games)}))):this.gameCategoryService.getGamesMetadata(n.slugname).subscribe((e=>{this.handleContentViewTracking(e),this.showGames(n.automatedNumberOfItems,e.games)}))}showGames(e,t){this.games=t.filter((e=>null!=e.id));const n=parseInt(e);isNaN(n)||(this.games=this.games.slice(0,n)),this.initScroll()}initScroll(){if((0,r.isPlatformBrowser)(this.platformId)){let e=document.createEvent("CustomEvent");e.initCustomEvent("scroll",!0,!0,{}),document.dispatchEvent(e)}}handleContentViewTracking(e){const t=e.games.map((e=>e.id));this.contentViewTrackingService.trackView(e.automatedTracking,t,e.internalName,[],this.contentSource)}};hm.ɵfac=function(e){return new(e||hm)(i["ɵɵdirectiveInject"](Qt),i["ɵɵdirectiveInject"](im),i["ɵɵdirectiveInject"](Et.AJ),i["ɵɵdirectiveInject"](ln),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](uc))},hm.ɵcmp=i["ɵɵdefineComponent"]({type:hm,selectors:[["bx-game-category"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Is,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.gameCards=e)}},inputs:{category:"category"},decls:3,vars:1,consts:[["class","carousel tertiary",3,"max-container","custom-carousel",4,"ngIf"],[1,"carousel","tertiary"],["data-dynamic-element","dynamicElement",3,"ngClass"],["class","tab-dropdown",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["cardContainer",""],[3,"card","defaultImage","cardMatrix","position","contentSource","automatedTracking","imageType",4,"ngFor","ngForOf"],[1,"tab-dropdown"],["type","small","required","false","valueProperty","name",3,"options","selectedValue","change",4,"ngIf"],["itemscope","","itemtype","http://www.schema.org/SiteNavigationElement",1,"custom-tab","quaternary"],["role","button",3,"bxPreviewIndicator","ngClass","title","click",4,"ngFor","ngForOf"],["type","small","required","false","valueProperty","name",3,"options","selectedValue","change"],["role","button",3,"bxPreviewIndicator","ngClass","title","click"],["itemprop","name"],[1,"game-subcategory-header"],[3,"card","defaultImage","cardMatrix","position","contentSource","automatedTracking","imageType"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,pm,15,15,"section",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.dataLoaded))},directives:[r.NgIf,r.NgClass,r.NgForOf,Yl.J,xa.Z,Is],styles:["section.carousel[_ngcontent-%COMP%] {\n  padding-top: 0px; }\n\n.custom-tab.quaternary[_ngcontent-%COMP%] {\n  border-right: none;\n  border-left: none;\n  overflow: unset; }\n\n.component-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] {\n  line-height: 0; }\n\n.component-wrapper[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] {\n  display: inherit; }\n\n.custom-carousel[_ngcontent-%COMP%] {\n  padding: 0;\n  position: unset; }\n\n.custom-carousel[_ngcontent-%COMP%]   .hide-scroll[_ngcontent-%COMP%]   .custom-tab[_ngcontent-%COMP%] {\n    padding: 0;\n    margin-bottom: 0; }\n\n.custom-carousel[_ngcontent-%COMP%]   .tab-dropdown[_ngcontent-%COMP%] {\n    overflow-x: auto; }\n\n.casino-actions-container[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  flex: 1; }\n\n.casino-actions-container[_ngcontent-%COMP%]   .hide-scroll[_ngcontent-%COMP%] {\n    width: 100%; }"]}),hm=(0,a.__decorate)([(0,q.DE)({name:"GameCategory",injectedMapper:tm,matcher:e=>e.contentType===K.z.MENU&&(0,Vs.ge)(e,Sa.d.CASINO_GAMES_PER_CATEGORIES)}),(0,a.__metadata)("design:paramtypes",[Qt,im,Et.AJ,ln,Object,uc])],hm);let mm=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[tm,im,nm],imports:[[r.CommonModule,Et.$Q,o.RouterModule,Mt.o,Rt,W.J.withComponents([hm]),wt.k]]}),e})();const gm=new i.InjectionToken("CASINO_HOME_INJECTION_TOKEN",{factory:()=>"/casino"});let fm=(()=>{class e{constructor(e,t,n){this.langCookieSuplier=e,this.languageService=t,this.casinoHome=n,this.builders=[{matches:this.isExternalLinkSubcategory,buildLink:this.buildExternalLinkSubcategoryLink},{matches:this.isDefaultSubcategoryLink,buildLink:this.buildDefaultSubcategoryLink.bind(this)},{matches:()=>!0,buildLink:this.buildGenericSubcategoryLink.bind(this)}]}buildLink(e,t){const n=this.builders.find((n=>n.matches(e,t))).buildLink(e,t),i=this.getLanguagePrefix();return{path:i.length?n.split(i).pop():n,langPrefix:i}}isExternalLinkSubcategory(e){return void 0!==e.linkUrl}isDefaultSubcategoryLink(e,t){return t.fields.items[0].contentId==e.contentId}buildGenericSubcategoryLink(e,t){return`${this.casinoHome}/${t.fields.uriSuffix}/${e.fields.uriSuffix}`}buildDefaultSubcategoryLink(e){return`${this.casinoHome}/${e.fields.uriSuffix}`}buildExternalLinkSubcategoryLink(e){return e.linkUrl}getLanguagePrefix(){const e=this.langCookieSuplier.language;return e===this.languageService.defaultLanguage?"":`/${e}`}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](hu.gz),i["ɵɵinject"](hu.TS),i["ɵɵinject"](gm))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),vm=(()=>{class e extends va.x{constructor(e,t){super(),this.router=e,this.linkBuilder=t}map(e){return{subcategories:e.fields.items.map((t=>{const n=this.linkBuilder.buildLink(t,e);return{title:t.linkText||t.fields.menuItemLabel||t.fields.title,pageTitle:t.linkText||t.fields.title,link:n,active:this.isActiveLink(n.path),draft:"draft"===t.status}}))}}isActiveLink(e){return this.router.getCurrentNavigation()?this.router.getCurrentNavigation().finalUrl.toString()===e:this.router.url===e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](fm))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();function bm(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-dropdown",6),i["ɵɵlistener"]("change",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().subcategoryChanged(t)})),i["ɵɵtext"](1,"\n\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("options",e.subcategories)("hrefValues",e.buildDropdownHrefValues())("selectedValue",e.getDropdownSelectedValue().title)}}const ym=function(e){return{active:e}};function Cm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"li",7),i["ɵɵtext"](1,"\n\n                            "),i["ɵɵelementStart"](2,"a",8),i["ɵɵtext"](3,"\n                                "),i["ɵɵelementStart"](4,"h2",9),i["ɵɵtext"](5),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n\n                        "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵpropertyInterpolate"]("title",e.title),i["ɵɵproperty"]("bxPreviewIndicator",e)("ngClass",i["ɵɵpureFunction1"](5,ym,e.active)),i["ɵɵadvance"](2),i["ɵɵproperty"]("routerLink",e.link.path),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.title)}}const Sm=function(e){return{"max-container customCarousel":e}};let xm=class extends class{constructor(e){this.router=e,this.subcategories=[]}buildDropdownHrefValues(){return this.subcategories.reduce(((e,t)=>{const{path:n,langPrefix:i}=t.link;return e[t.title]=i+n,e}),{})}getDropdownSelectedValue(){return this.subcategories.find((e=>e.active))||{}}subcategoryChanged(e){this.router.navigateByUrl(e.link.path)}}{constructor(e,t){super(t),this.gameCategoriesConfigService=e}};xm.ɵfac=function(e){return new(e||xm)(i["ɵɵdirectiveInject"](ln),i["ɵɵdirectiveInject"](o.Router))},xm.ɵcmp=i["ɵɵdefineComponent"]({type:xm,selectors:[["bx-casino-subcategories-tab-menu"]],features:[i["ɵɵInheritDefinitionFeature"]],decls:17,vars:9,consts:[[1,"carousel","tertiary"],[3,"ngClass"],[1,"tab-dropdown"],["type","small","required","false","valueProperty","title","displayProperty","title",3,"options","hrefValues","selectedValue","change",4,"ngIf"],["itemscope","","itemtype","http://www.schema.org/SiteNavigationElement",1,"custom-tab","quaternary"],["role","button",3,"bxPreviewIndicator","ngClass","title",4,"ngFor","ngForOf"],["type","small","required","false","valueProperty","title","displayProperty","title",3,"options","hrefValues","selectedValue","change"],["role","button",3,"bxPreviewIndicator","ngClass","title"],[3,"routerLink"],["itemprop","name"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"section",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,bm,2,3,"bx-dropdown",3),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementStart"](9,"ul",4),i["ɵɵtext"](10,"\n                        "),i["ɵɵtemplate"](11,Cm,8,7,"li",5),i["ɵɵtext"](12,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassProp"]("max-container",t.gameCategoriesConfigService.applyMaxContainer)("custom-carousel",t.gameCategoriesConfigService.customCarousel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](7,Sm,!t.gameCategoriesConfigService.applyMaxContainer)),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.gameCategoriesConfigService.showDropdown),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngForOf",t.subcategories))},directives:[r.NgClass,r.NgIf,r.NgForOf,Yl.J,xa.Z,o.RouterLinkWithHref],styles:["[_nghost-%COMP%]   section.carousel[_ngcontent-%COMP%] {\n  padding-top: 0px; }\n\n[_nghost-%COMP%]     bx-dropdown .custom-dropdown ul > li > a {\n  color: #404040; }\n\n[_nghost-%COMP%]   .custom-tab.quaternary[_ngcontent-%COMP%] {\n  border-right: none;\n  border-left: none;\n  overflow: unset; }\n\n[_nghost-%COMP%]   .carousel.tertiary[_ngcontent-%COMP%] {\n  z-index: 1; }\n\n[_nghost-%COMP%]   .custom-carousel[_ngcontent-%COMP%] {\n  padding: 0;\n  position: unset; }\n\n[_nghost-%COMP%]   .custom-carousel[_ngcontent-%COMP%]   .tab-dropdown[_ngcontent-%COMP%] {\n    overflow-x: auto; }"]}),xm=(0,a.__decorate)([(0,q.DE)({name:"CasinoSubcategoriesTabMenu",injectedMapper:vm,matcher:e=>e.contentType===K.z.MENU&&(0,Vs.ge)(e,Sa.d.CASINO_SUBCATEGORIES_MENU)}),(0,a.__metadata)("design:paramtypes",[ln,o.Router])],xm);let wm=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[vm,fm],imports:[[r.CommonModule,o.RouterModule,W.J.withComponents([xm]),wt.k,Rt,Mt.o,hu.jH]]}),e})();var Em=n(50536);const Im=["groupItemMenu"],Pm=["tabsRef"];function Tm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span"),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"](" ",e.label,"")}}function _m(e,t){if(1&e&&(i["ɵɵelementStart"](0,"h2",15),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2).$implicit;i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.label)}}const Mm=function(e,t){return{"icon-arrow-down":e,"icon-arrow-next":t}};function Om(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span"),i["ɵɵtext"](1,"\n                                            "),i["ɵɵelementStart"](2,"h2",16),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                                            "),i["ɵɵelement"](5,"i",17),i["ɵɵtext"](6,"\n                                        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2).$implicit;i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.label),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](2,Mm,e.active,!e.active))}}function Am(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                                        "),i["ɵɵtemplate"](1,_m,2,1,"h2",13),i["ɵɵtext"](2,"\n                                        "),i["ɵɵtemplate"](3,Om,7,5,"span",14),i["ɵɵtext"](4,"\n                                    ")),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",!e.menuConfig.showArrowMenu),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.menuConfig.showArrowMenu)}}function km(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",9),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).$implicit;return i["ɵɵnextContext"](2).selectTab(t)})),i["ɵɵtext"](1,"\n                                "),i["ɵɵelementStart"](2,"li",10),i["ɵɵtext"](3,"\n                                    "),i["ɵɵtemplate"](4,Tm,2,1,"span",11),i["ɵɵtext"](5,"\n                                    "),i["ɵɵtemplate"](6,Am,5,2,"ng-template",null,12,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](8,"\n                                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                            "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=i["ɵɵreference"](7),r=i["ɵɵnextContext"](2);i["ɵɵpropertyInterpolate"]("title",e.label),i["ɵɵproperty"]("bxPreviewIndicator",e)("routerLink",e.url),i["ɵɵadvance"](2),i["ɵɵclassProp"]("active",e.active),i["ɵɵpropertyInterpolate"]("title",e.label),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!r.menuConfig.showArrowMenu)("ngIfElse",n)}}function jm(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",18,19),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).toggleGroupTab()})),i["ɵɵtext"](2,"\n                                "),i["ɵɵelement"](3,"bx-group-menu-navigation",20),i["ɵɵtext"](4,"\n                            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("bxPreviewIndicator",e.tab),i["ɵɵadvance"](3),i["ɵɵproperty"]("tabActive",e.subItemTabActive)("categoryGroupSlug",e.categoryGroupSlug)}}const Nm=function(e){return{"max-container customCarousel":e}},Rm=function(e,t){return{"casino-actions-container":e,"casino-search-enabled":t}},Dm=function(e,t){return{"hide-scroll":e,hidden:t}},Lm=function(e,t){return{overflow:e,"z-index":t}},Fm=function(e){return{overflow:e}};function Bm(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"section",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"div",2),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementStart"](6,"div",3),i["ɵɵtext"](7,"\n                        "),i["ɵɵelementStart"](8,"ul",4,5),i["ɵɵtext"](10,"\n                            "),i["ɵɵtemplate"](11,km,10,8,"a",6),i["ɵɵtext"](12,"\n                            "),i["ɵɵtemplate"](13,jm,5,3,"a",7),i["ɵɵtext"](14,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                    "),i["ɵɵelementStart"](17,"bx-game-search",8),i["ɵɵlistener"]("isSearchEnabled",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onCasinoSearchEnabled(t)}))("searchBarActive",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onSearchBarActive(t)})),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("max-container",e.menuConfig.applyMaxContainer)("custom-carousel",e.menuConfig.customCarousel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](11,Nm,!e.menuConfig.applyMaxContainer)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](13,Rm,e.casinoSearchEnabled,e.searchBarActive)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](16,Dm,e.menuConfig.hideAndWrappComponent,e.searchBarActive&&e.deviceService.isMobile()))("ngStyle",i["ɵɵpureFunction2"](19,Lm,e.categoryGroupSlug&&e.subItemTabActive?"visible":"hidden",e.categoryGroupSlug&&5)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngStyle",i["ɵɵpureFunction1"](22,Fm,e.categoryGroupSlug&&"visible")),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngForOf",e.tabs),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.categoryGroupSlug)}}class Um{constructor(e,t){this.label=e,this.url=t}}let Vm=(()=>{class e{constructor(e,t,n,i,r){this.deviceService=e,this.router=t,this.menuConfig=n,this.sessionStorageService=i,this.platformId=r,this.tabs=[],this.searchBarActive=!1,this.applyMaxContainer=this.applyMaxContainer?this.applyMaxContainer:!!this.menuConfig.applyMaxContainer,this.customCarousel=this.customCarousel?this.customCarousel:!!this.menuConfig.customCarousel,this.hideAndWrappComponent=this.hideAndWrappComponent?this.hideAndWrappComponent:!!this.menuConfig.hideAndWrappComponent,this.showArrowMenu=this.showArrowMenu?this.showArrowMenu:!!this.menuConfig.showArrowMenu,this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd))).subscribe((()=>{this.updateActiveTab()}))}set data(e){e&&e.categoryLinks?this.tabs=e.categoryLinks.map((e=>new Um(e.label,e.url))):this.tabs=[],this.updateActiveTab()}selectTab(e){this.setActiveTab(e),this.sessionStorageService.set(nh.O,e.url)}centerTab(){const e=e=>{const t=this.tabs.findIndex((e=>e.active));t>=0&&e.nativeElement.children[t].scrollIntoView({block:"nearest",inline:"center"})};this.tabsRef&&(this.tabsRef.first?e(this.tabsRef.first):this.tabsRef.changes.subscribe((t=>e(t.first))))}setActiveTab(e){this.tabs.forEach((t=>{t.active=t==e})),this.subItemTabActive=!1,(0,r.isPlatformBrowser)(this.platformId)&&this.centerTab()}toggleGroupTab(){this.subItemTabActive=!0,this.tabs.forEach((e=>{e.active=!1}))}clickOutsideGroupItemMenu(e){e&&this.subItemTabActive&&!this._groupItemMenu.nativeElement.contains(e)&&(this.subItemTabActive=!1)}updateActiveTab(){this.tabs.forEach((e=>{const t=this.removeBaseUrl(e.url),n=this.removeBaseUrl(this.router.url);(e.active||t===n||t&&n.startsWith(t))&&this.setActiveTab(e)}))}removeBaseUrl(e){return this.removeSlashUrlAtTheBeginning(e.replace(new RegExp("^"+this.menuConfig.baseUrl),""))}removeSlashUrlAtTheBeginning(e){return e&&e.startsWith("/")?e.substr(1):e}onCasinoSearchEnabled(e){this.casinoSearchEnabled=e}onSearchBarActive(e){this.searchBarActive=e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Bt.U),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](qs),i["ɵɵdirectiveInject"](nh.u),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-marketing-page-secondary-menu-navigation"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](Im,5),i["ɵɵviewQuery"](Pm,5,i.ElementRef)),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t._groupItemMenu=e.first),i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.tabsRef=e)}},hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.clickOutsideGroupItemMenu(e.target)}),!1,i["ɵɵresolveDocument"])},inputs:{applyMaxContainer:"applyMaxContainer",customCarousel:"customCarousel",hideAndWrappComponent:"hideAndWrappComponent",showArrowMenu:"showArrowMenu",data:"data",categoryGroupSlug:"categoryGroupSlug"},decls:3,vars:1,consts:[["class","carousel tertiary",3,"max-container","custom-carousel",4,"ngIf"],[1,"carousel","tertiary"],[3,"ngClass"],[3,"ngClass","ngStyle"],["itemscope","","itemtype","http://www.schema.org/SiteNavigationElement","role","list",1,"custom-tab","secondary",3,"ngStyle"],["tabsRef",""],["itemprop","url",3,"title","bxPreviewIndicator","routerLink","click",4,"ngFor","ngForOf"],[3,"bxPreviewIndicator","click",4,"ngIf"],[3,"isSearchEnabled","searchBarActive"],["itemprop","url",3,"title","bxPreviewIndicator","routerLink","click"],["role","button",3,"title"],[4,"ngIf","ngIfElse"],["withArrow",""],["itemprop","name",4,"ngIf"],[4,"ngIf"],["itemprop","name"],["title","popular tab"],[1,"icon",3,"ngClass"],[3,"bxPreviewIndicator","click"],["groupItemMenu",""],[3,"tabActive","categoryGroupSlug"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,Bm,21,24,"section",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.tabs.length))},styles:['.custom-tab.secondary[_ngcontent-%COMP%] {\n  min-height: 36px; }\n\n.custom-tab.secondary[_ngcontent-%COMP%]:empty::before {\n  content: "";\n  min-height: 36px;\n  width: 160px;\n  display: inline-block;\n  border-radius: 20px;\n  background-color: #e6e6e6; }\n\n.custom-carousel[_ngcontent-%COMP%] {\n  padding: 0;\n  position: unset; }\n\n.custom-carousel[_ngcontent-%COMP%]   .custom-tab.secondary[_ngcontent-%COMP%] {\n    height: 43px;\n    overflow-x: auto;\n    overflow-y: hidden; }\n\n.custom-carousel[_ngcontent-%COMP%]   .hide-scroll[_ngcontent-%COMP%]   .custom-tab[_ngcontent-%COMP%] {\n    margin-bottom: 0; }\n\n.custom-carousel[_ngcontent-%COMP%]   .tab-dropdown[_ngcontent-%COMP%] {\n    overflow-x: auto; }\n\n.casino-actions-container[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  flex: 1; }\n\n.casino-actions-container[_ngcontent-%COMP%]   .hide-scroll[_ngcontent-%COMP%] {\n    width: 100%; }\n\n.casino-actions-container.casino-search-enabled[_ngcontent-%COMP%]   ul.custom-tab.secondary[_ngcontent-%COMP%] {\n    overflow-x: hidden; }\n\n@media only screen and (max-width: 769px) {\n    .casino-actions-container[_ngcontent-%COMP%] {\n      flex-direction: row-reverse; }\n      .casino-actions-container[_ngcontent-%COMP%]   bx-search-bar.active[_ngcontent-%COMP%], .casino-actions-container[_ngcontent-%COMP%]   bx-game-search.active[_ngcontent-%COMP%] {\n        width: 100%; } }\n\n.casino-actions-container[_ngcontent-%COMP%]     .search-navbar {\n    min-width: 43px; }\n\n.casino-actions-container[_ngcontent-%COMP%]     .search-navbar.search-field-enabled {\n      width: 375px; }\n\n@media only screen and (max-width: 769px) {\n        .casino-actions-container[_ngcontent-%COMP%]     .search-navbar.search-field-enabled {\n          width: 100%; } }\n\n.casino-actions-container[_ngcontent-%COMP%]     .search-navbar input, .casino-actions-container[_ngcontent-%COMP%]     .search-navbar label {\n      left: 0px;\n      height: 43px; }\n\n.casino-actions-container[_ngcontent-%COMP%]     .search-navbar .search-btn {\n      width: 43px; }']}),e})(),Gm=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,yt.M,o.RouterModule,Rt,Kc]]}),e})();const Hm=function(e,t){return{"icon-arrow-down":e,"icon-arrow-next":t}};function zm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",7),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"span"),i["ɵɵtext"](3,"\n                            "),i["ɵɵelementStart"](4,"h3",8),i["ɵɵtext"](5),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                            "),i["ɵɵelement"](7,"i",9),i["ɵɵtext"](8,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3).ngIf,t=i["ɵɵnextContext"]();i["ɵɵadvance"](5),i["ɵɵtextInterpolate"](null==e.fields?null:e.fields.title),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](2,Hm,t.tabActive,!t.tabActive))}}const $m=function(e){return{itemActivated:e}};function Wm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"li",5),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,zm,10,5,"div",6),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().ngIf,t=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,$m,t.tabActive)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.length)}}function qm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a",14),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"li",15),i["ɵɵtext"](3,"\n                                "),i["ɵɵelementStart"](4,"label",16),i["ɵɵtext"](5),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                                "),i["ɵɵelement"](7,"i",17),i["ɵɵtext"](8,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                        "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵproperty"]("routerLink",e.url),i["ɵɵadvance"](5),i["ɵɵtextInterpolate1"]("\n                                    ",e.label,"\n                                ")}}function Km(e,t){if(1&e&&(i["ɵɵelementStart"](0,"ul",12),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,qm,10,2,"a",13),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2).ngIf,t=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",e)("ngForTrackBy",t.trackElement)}}function Xm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",10),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,Km,4,2,"ul",11),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().ngIf;i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.length)}}function Ym(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",2),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,Wm,4,4,"li",3),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,Xm,4,1,"div",4),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=t.ngIf,n=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",n.tabActive)}}function Jm(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Ym,6,2,"div",1),i["ɵɵtext"](3,"\n        "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.ngIf,n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",n.parseMenu(e))}}let Qm=(()=>{class e{constructor(e,t,n){this.router=e,this.contentService=t,this.menuConfig=n}ngOnInit(){this.content$=this.categoryGroupSlug&&this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd)),(0,c.startWith)({}),(0,c.switchMap)((()=>this.contentService.getContentBySlug(this.categoryGroupSlug,"section",this.menuConfig.params))))}parseMenu(e){return(Ws.createCmsNavMenu(e,this.menuConfig.baseUrl).categoryLinks||[]).map((e=>new Um(e.label,e.url)))}trackElement(e,t){return t?t.url:null}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](Vs._s),i["ɵɵdirectiveInject"](qs))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-group-menu-navigation"]],inputs:{tabActive:"tabActive",categoryGroupSlug:"categoryGroupSlug"},decls:4,vars:3,consts:[[4,"ngIf"],["class","groupMenuContent",4,"ngIf"],[1,"groupMenuContent"],[3,"ngClass",4,"ngIf"],["class","contentTabs",4,"ngIf"],[3,"ngClass"],["class","item",4,"ngIf"],[1,"item"],[1,"secondaryTabGroup"],[1,"icon",3,"ngClass"],[1,"contentTabs"],["class","moreMenu",4,"ngIf"],[1,"moreMenu"],["class","itemLinkLabel",3,"routerLink",4,"ngFor","ngForOf","ngForTrackBy"],[1,"itemLinkLabel",3,"routerLink"],[1,"moreItem"],[1,"label"],[1,"icon","icon-arrow-next"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,Jm,4,1,"ng-container",0),i["ɵɵpipe"](2,"async"),i["ɵɵtext"](3,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](2,1,t.content$)))},directives:[r.NgIf,r.NgClass,r.NgForOf,o.RouterLinkWithHref],pipes:[r.AsyncPipe],styles:['.groupMenuContent[_ngcontent-%COMP%] {\n  position: absolute; }\n\n.itemActivated[_ngcontent-%COMP%] {\n  background-color: #2b2b2b !important; }\n\n.item[_ngcontent-%COMP%] {\n  white-space: nowrap;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  cursor: pointer; }\n\n.item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%] {\n    right: 16 !important; }\n\n.contentTabs[_ngcontent-%COMP%] {\n  width: 160px;\n  position: absolute;\n  right: 0; }\n\n.contentTabs[_ngcontent-%COMP%]   .moreMenu[_ngcontent-%COMP%] {\n    display: flex;\n    flex-direction: column; }\n\n.contentTabs[_ngcontent-%COMP%]   .moreMenu[_ngcontent-%COMP%]   .itemLinkLabel[_ngcontent-%COMP%]   .moreItem[_ngcontent-%COMP%] {\n      display: flex !important;\n      justify-content: space-between !important;\n      border-right: none !important; }\n\n.contentTabs[_ngcontent-%COMP%]   .moreMenu[_ngcontent-%COMP%]   .itemLinkLabel[_ngcontent-%COMP%]   .moreItem[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%] {\n        font: 100 12px Roboto, "roboto", "rubik", sans-serif;\n        margin-right: 34px; }']}),e})();const Zm=["searchBar"];function eg(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-search-bar",1,2),i["ɵɵlistener"]("focus",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onFocusSearch()}))("activated",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onSearchActivated()}))("deactivated",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onSearchDeactivated()})),i["ɵɵtext"](2,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("dataSource",e.casinoDataSource)}}let tg=(()=>{class e{constructor(e,t,n,r,o,a,s,c){this.deviceService=e,this.siteConfig=t,this.gamecardService=n,this.cookieStorageService=r,this.document=o,this.platformId=a,this.windowService=s,this.casinoGameSearchConfig=c,this.isSearchEnabled=new i.EventEmitter,this.searchBarActive=new i.EventEmitter,this.searchBarState="inactive"}ngOnInit(){this.isSearchEnabled.emit(this.isCasinoSearchEnabled())}onFocusSearch(){if(this.deviceService.isMobile()&&this.isCasinoSearchEnabled()&&this.isScrollAllowed()){this.searchBar.nativeElement.scrollIntoView();const e=this.windowService.window().scrollY,t=this.document.querySelector(".navbar-fixed-top"),n=this.document.querySelector(".tertiary.channel");if(e&&t){let i=e-t.getBoundingClientRect().height;i=n?i-n.getBoundingClientRect().height:i,this.windowService.window().scroll(0,i-16)}}}isScrollAllowed(){return this.casinoGameSearchConfig.scrollToTopAllowed}onSearchActivated(){this.casinoDataSource||(this.casinoDataSource=new pc),this.casinoDataSource.data||(this.searchByCategories()?this.gamecardService.getGamesByCategories("casino-search-menu"):this.gamecardService.getAllGames()).pipe((0,c.map)((e=>e.filter((e=>"live-dealer"!==e.category))))).subscribe((e=>this.casinoDataSource.data=e)),this.searchBarState="active",this.searchBarActive.emit(!0)}onSearchDeactivated(){this.searchBarState="inactive",this.searchBarActive.emit(!1)}isCasinoSearchEnabled(){return this.siteConfig.hasFeature(e.CASINO_SEARCH_FEATURE)&&(0,r.isPlatformBrowser)(this.platformId)}searchByCategories(){return"true"===this.cookieStorageService.get(e.CASINO_SEARCH_DATASOURCE)}}return e.CASINO_SEARCH_FEATURE="casino.search_bar",e.CASINO_SEARCH_DATASOURCE="SEARCHBYCATEGORIES",e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Bt.U),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](cn),i["ɵɵdirectiveInject"](me.G),i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](ee.u,8),i["ɵɵdirectiveInject"](fc))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-game-search"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Zm,5,i.ElementRef),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.searchBar=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&i["ɵɵclassMap"](t.searchBarState)},outputs:{isSearchEnabled:"isSearchEnabled",searchBarActive:"searchBarActive"},decls:3,vars:1,consts:[["searchSlide","","searchGame","",3,"dataSource","focus","activated","deactivated",4,"ngIf"],["searchSlide","","searchGame","",3,"dataSource","focus","activated","deactivated"],["searchBar",""]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,eg,3,1,"bx-search-bar",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.isCasinoSearchEnabled()))},directives:[r.NgIf,Ec,Ic,Pc],encapsulation:2}),e})(),ng=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[nh.u],imports:[[r.CommonModule,bt.a,o.RouterModule.forChild([]),St.d,Em.j,Mt.o,Gm]]}),e})();i["ɵɵsetComponentScope"](Vm,[r.NgIf,r.NgClass,r.NgStyle,r.NgForOf,o.RouterLinkWithHref,xa.Z,Qm,tg],[]);let ig=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})(),rg=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Zs,Js,ec],imports:[[r.CommonModule,o.RouterModule,Ys.nA,W.J,em.F,Zh,mm,wm,ng,op.C,ig]]}),e})();var og=n(42974);let ag=(()=>{class e{constructor(){this.isOverlayDisplayed=new s.Subject}setOverlayDisplayed(e){this.isOverlayDisplayed.next(!!e)}getOverlayDisplayed(){return this.isOverlayDisplayed.asObservable()}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),sg=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[ag,nh.u],imports:[[uu.n,og.n,W.J,In.P.forRoot(),dp.U,kt.I,o.RouterModule.forChild([]),ig]]}),e})(),cg=(()=>{class e{constructor(e,t,n){this.marketingPageService=e,this.contentNotFoundHandler=t,this.impressionHelper=n}resolve(e,t){let n=this.getSlug(e);const i=this.getPresetFilter();return this.marketingPageService.getMarketingPageByUriSuffix(n,null,{filter:i}).pipe((0,c.tap)((e=>this.impressionHelper.pageView(e))),(0,c.first)(),(0,c.catchError)((e=>this.contentNotFoundHandler.resolveContentNotFoundOrThrow(e))))}getSlug(e){return e.params.slug}getPresetFilter(){}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"]($a.F),i["ɵɵinject"](dn.B),i["ɵɵinject"](Gs.P))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var lg=n(7294);let dg=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[cg],imports:[[W.J,dp.U,r.CommonModule,lg.w,em.F]]}),e})();var ug=n(96532);const pg=function(){return["/contact-us"]};function hg(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",13),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"span"),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementStart"](5,"a",14),i["ɵɵtext"](6,"notFoundPage.contactUs"),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.secondaryDescription),i["ɵɵadvance"](2),i["ɵɵproperty"]("routerLink",i["ɵɵpureFunction0"](2,pg))}}const mg=function(){return["/login"]},gg=function(){return["/join"]};function fg(e,t){1&e&&(i["ɵɵelementStart"](0,"h3",15),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"a",14),i["ɵɵtext"](3,"notFoundPage.signIn"),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementStart"](5,"span",16),i["ɵɵtext"](6,"notFoundPage.or"),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                    "),i["ɵɵelementStart"](8,"a",14),i["ɵɵtext"](9,"notFoundPage.createAccount"),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                "),i["ɵɵelementEnd"]()),2&e&&(i["ɵɵadvance"](2),i["ɵɵproperty"]("routerLink",i["ɵɵpureFunction0"](2,mg)),i["ɵɵadvance"](6),i["ɵɵproperty"]("routerLink",i["ɵɵpureFunction0"](3,gg)))}let vg=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.translationService=t}ngOnInit(){this.mainLogo=this.siteConfigService.getSiteConfigProp("mainLogo"),this.translationService.translate("notFoundPage.error").subscribe((e=>this.imgAltText=e)),this.translationService.translate("notFoundPage.secondaryDescription").pipe((0,c.filter)((e=>"notFoundPage.secondaryDescription"!==e))).subscribe((e=>{this.secondaryDescription=e}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](fe.s))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-not-found-page"]],decls:36,vars:3,consts:[[1,"navbar-wrapper","navbar-fixed-top"],[1,"navbar"],["routerLink","/",1,"brand-logo"],[3,"src"],["id","page-404","role","group"],[1,"banner-content"],[1,"banner-text"],["role","heading",3,"bxTranslate"],["src","/content/images/404.png",1,"img-responsive",3,"alt"],["class","not-found-secondary-description",4,"ngIf"],[1,"banner-button-main","navbar-fixed-bottom","navbar-fixed-width","full-width-ctas"],["routerLink","/",1,"custom-cta","tertiary","inverse","help-cta",3,"bxTranslate"],["class","h3-heading",4,"bxHideAuth"],[1,"not-found-secondary-description"],[3,"routerLink","bxTranslate"],[1,"h3-heading"],[3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"nav",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"a",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelement"](7,"img",3),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n        "),i["ɵɵelementStart"](12,"section",4),i["ɵɵtext"](13,"\n            "),i["ɵɵelementStart"](14,"figure",5),i["ɵɵtext"](15,"\n                "),i["ɵɵelementStart"](16,"figcaption",6),i["ɵɵtext"](17,"\n                    "),i["ɵɵelementStart"](18,"h2",7),i["ɵɵtext"](19,"notFoundPage.description"),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n                "),i["ɵɵelement"](22,"img",8),i["ɵɵtext"](23,"\n                "),i["ɵɵtemplate"](24,hg,8,3,"div",9),i["ɵɵtext"](25,"\n                "),i["ɵɵelementStart"](26,"div",10),i["ɵɵtext"](27,"\n                    "),i["ɵɵelementStart"](28,"a",11),i["ɵɵtext"](29,"notFoundPage.buttonText"),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n                "),i["ɵɵtemplate"](32,fg,11,4,"h3",12),i["ɵɵtext"](33,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](34,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](35,"\n    ")),2&e&&(i["ɵɵadvance"](7),i["ɵɵproperty"]("src",t.mainLogo,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](15),i["ɵɵpropertyInterpolate"]("alt",t.imgAltText),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.secondaryDescription))},directives:[o.RouterLinkWithHref,Se.P,r.NgIf,ug.v],encapsulation:2}),e})(),bg=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[],imports:[[o.RouterModule,r.CommonModule,It.D,bt.a,et.ny]]}),e})();var yg=n(29862);let Cg=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Sg=n(12744);let xg=(()=>{class e extends va.x{constructor(){super(...arguments),this.abtFieldsMapper=new Qh.u1}map(e){return{bannerWelcomeModel:{backgroundColor:e.fields.background_color,backgroundImage:e.fields.background_image?e.fields.background_image.url:null,image:e.fields.image.url,subText:e.fields.title,text:e.fields.content,name:e.fields.internal_name,linkUrl:ba.K.mapLinkUrl(e.fields.link_url),linkTarget:e.fields.link_target||Sg.e.NONE,tracking:{abtStudy:this.abtFieldsMapper.map(e)}}}}}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),wg=(()=>{class e{constructor(e){this.firstTimeVisitorService=e,this.headerSlidedDown=!0,this.headerVisible=!1,this.firstTimeVisitorService.getFirstTimeVisited().subscribe((e=>{this.headerVisible=!e,this.headerSlidedDown=!e}))}showHeader(){this.headerVisible=!0,this.headerSlidedDown=!0}hideHeader(){this.firstTimeVisitorService.isFirstTime&&(this.headerSlidedDown=!1)}get isHeaderVisible(){return this.headerVisible}get isHeaderSlidedDown(){return this.headerSlidedDown}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ss.HV))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Eg=n(88401),Ig=n(7006);const Pg=["banner"],Tg=["buttons"];function _g(e,t){if(1&e&&i["ɵɵelement"](0,"p",15),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("innerHTML",e.textHtml,i["ɵɵsanitizeHtml"])}}function Mg(e,t){if(1&e&&i["ɵɵelement"](0,"span",16),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("innerHTML",e.subTextHtml,i["ɵɵsanitizeHtml"])}}const Og=function(e){return[e]};let Ag=class{constructor(e,t,n,i,r,o,a,s,c){this.bannerWelcomeConfig=e,this.windowService=t,this.imageService=n,this.firstTimeVisitorService=i,this.headerService=r,this.sanitizer=o,this.platformId=a,this.transferStateServiceCache=s,this.clickHandlerService=c,this.hideHeader=!0,this.buttonsBehindBanner=!1,this.fromUniversal=!1}set bannerWelcomeModel(e){this.model=e,this.model.linkUrl||(this.model.linkUrl="/join"),this.textHtml=this.getSafeHtml(this.model.text),this.subTextHtml=this.getSafeHtml(this.model.subText),this.backgroundStyle=this.model.backgroundImage?{"background-image":'url("'+this.model.backgroundImage+'")',"background-repeat":"no-repeat","background-size":"cover","background-position-x":"center","background-position-y":"center"}:{"background-color":this.model.backgroundColor}}handleClickOnSlide(e,t){this.firstTimeVisitorService.setVisited(),this.clickHandlerService.handleClick("banner_promo",!1,e,-1,t)}handleClickOnSlideCTA(e,t,n){this.clickHandlerService.handleClick(`banner_promo_${n}`,!1,e,-1,t)}ngOnInit(){this.logoLazyLoadImage=this.imageService.getPlaceholderImage(1080,1440,"transparent"),this.fromUniversal=this.transferStateServiceCache.isFromUniversal()}ngAfterViewInit(){(0,r.isPlatformBrowser)(this.platformId)&&(this.scrollSubscription=(0,s.fromEvent)(this.windowService.window(),"scroll").pipe((0,c.debounceTime)(5)).subscribe((()=>{this.onScroll()})))}onScroll(){this.isBannerHidden()?this.headerService.showHeader():this.headerService.hideHeader(),this.buttonsBehindBanner=this.areButtonsBehindBanner()}ngOnDestroy(){this.scrollSubscription&&!this.scrollSubscription.closed&&this.scrollSubscription.unsubscribe()}isBannerHidden(){return this.windowService.window().pageYOffset>=this.banner.nativeElement.offsetTop+this.banner.nativeElement.offsetHeight}areButtonsBehindBanner(){return this.windowService.window().pageYOffset>=this.banner.nativeElement.offsetTop}getSafeHtml(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):""}};Ag.ɵfac=function(e){return new(e||Ag)(i["ɵɵdirectiveInject"](Cg),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](Et.AJ),i["ɵɵdirectiveInject"](ss.HV),i["ɵɵdirectiveInject"](wg),i["ɵɵdirectiveInject"](Le.DomSanitizer),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](re.m),i["ɵɵdirectiveInject"](Od.M))},Ag.ɵcmp=i["ɵɵdefineComponent"]({type:Ag,selectors:[["bx-banner-welcome"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](Pg,5),i["ɵɵviewQuery"](Tg,5)),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.banner=e.first),i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.buttons=e.first)}},inputs:{bannerWelcomeModel:"bannerWelcomeModel"},decls:40,vars:19,consts:[["role","group",1,"marketing-banner",3,"ngStyle"],["role","link",3,"bxLink","bxLinkTarget","click"],[1,"slots-banner"],["banner",""],["alt","logo",1,"img-responsive",3,"src"],[1,"ftv-banner","max-container"],["bxImage","","attr","welcome","alt","logo",1,"img-responsive",3,"src","defaultImage"],[1,"ftv-text"],["class","banner-welcome-text","anchorLinksHandler","",3,"innerHTML",4,"ngIf"],["class","banner-welcome-subtext","anchorLinksHandler","",3,"innerHTML",4,"ngIf"],[1,"login-container"],["buttons",""],["routerLink","/join","role","button",1,"custom-cta",3,"bxTranslate","ngClass","click"],["routerLink","/login","role","button",1,"custom-cta",3,"bxTranslate","ngClass","click"],[1,"lang-selector"],["anchorLinksHandler","",1,"banner-welcome-text",3,"innerHTML"],["anchorLinksHandler","",1,"banner-welcome-subtext",3,"innerHTML"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"section",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"a",1),i["ɵɵlistener"]("click",(function(){return t.handleClickOnSlide(t.model.name,t.model.tracking)})),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"figure",2,3),i["ɵɵtext"](7,"\n                    "),i["ɵɵelement"](8,"img",4),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                "),i["ɵɵelementStart"](11,"figure",5),i["ɵɵtext"](12,"\n                    "),i["ɵɵelement"](13,"img",6),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementStart"](15,"figcaption",7),i["ɵɵtext"](16,"\n                        "),i["ɵɵtemplate"](17,_g,1,1,"p",8),i["ɵɵtext"](18,"\n                        "),i["ɵɵtemplate"](19,Mg,1,1,"span",9),i["ɵɵtext"](20,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n            "),i["ɵɵelementStart"](24,"div",5),i["ɵɵtext"](25,"\n                "),i["ɵɵelementStart"](26,"div",10,11),i["ɵɵtext"](28,"\n                    "),i["ɵɵelementStart"](29,"a",12),i["ɵɵlistener"]("click",(function(){return t.handleClickOnSlideCTA(t.model.name,t.model.tracking,"join")})),i["ɵɵtext"](30,"bannerWelcome.join"),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n                    "),i["ɵɵelementStart"](32,"a",13),i["ɵɵlistener"]("click",(function(){return t.handleClickOnSlideCTA(t.model.name,t.model.tracking,"login")})),i["ɵɵtext"](33,"bannerWelcome.login"),i["ɵɵelementEnd"](),i["ɵɵtext"](34,"\n                    "),i["ɵɵelement"](35,"bx-lang-select",14),i["ɵɵtext"](36,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](37,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](38,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](39,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngStyle",t.backgroundStyle),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxLink",t.model.linkUrl)("bxLinkTarget",t.model.linkTarget),i["ɵɵadvance"](5),i["ɵɵproperty"]("src",t.bannerWelcomeConfig.brandLogo,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](5),i["ɵɵstyleProp"]("display",t.model.backgroundImage?"none":"block"),i["ɵɵproperty"]("src",null==t.model?null:t.model.image,i["ɵɵsanitizeUrl"])("defaultImage",t.logoLazyLoadImage),i["ɵɵattribute"]("src",t.fromUniversal?null==t.model?null:t.model.image:null,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.model.text),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.model.subText),i["ɵɵadvance"](7),i["ɵɵclassProp"]("hide",t.buttonsBehindBanner),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](15,Og,(null==t.bannerWelcomeConfig.cta.join?null:t.bannerWelcomeConfig.cta.join.class)||"primary")),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](17,Og,(null==t.bannerWelcomeConfig.cta.login?null:t.bannerWelcomeConfig.cta.login.class)||"tertiary")))},directives:[r.NgStyle,Na.I,Po.t,r.NgIf,o.RouterLinkWithHref,Se.P,r.NgClass,Eg.S,Ig.$],styles:["@media screen and (max-width: 768px) and (orientation: landscape) {\n  .login-container[_ngcontent-%COMP%]   bx-lang-select[_ngcontent-%COMP%] {\n    display: none; } }\n\n[_nghost-%COMP%] {\n  display: block; }\n\n.marketing-banner[_ngcontent-%COMP%] {\n  background-color: #e0e0e0; }\n\n.slots-banner[_ngcontent-%COMP%] {\n  min-height: 70px; }"]}),Ag=(0,a.__decorate)([(0,q.DE)({name:"BannerWelcome",mapper:xg,matcher:e=>e.contentType===K.z.SLIDE&&e.fields.tags&&e.fields.tags.split(",").indexOf(Sa.d.BANNER_WELCOME)>=0,contentMapper:{featureFlag:Ft.u.CMS_SLIDE_MOBILE_IMAGES,mapper:(e,t)=>("mobile"===t.deviceType&&(e.fields.image_mobile&&e.fields.image_mobile.url&&(e.fields.image=e.fields.image_mobile),e.fields.background_image_mobile&&e.fields.background_image_mobile.url&&(e.fields.background_image=e.fields.background_image_mobile)),e)}}),(0,a.__metadata)("design:paramtypes",[Cg,ee.u,Et.AJ,ss.HV,wg,Le.DomSanitizer,Object,re.m,Od.M])],Ag);var kg=n(75468);let jg=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[xg],imports:[[r.CommonModule,o.RouterModule,da.s,bt.a,St.d,Et.$Q,W.J.withComponents([Ag]),kg.$,La.LO]]}),e})();var Ng=n(80953),Rg=n(71710);function Dg(e,t){if(1&e&&i["ɵɵelement"](0,"wt-lazy",1),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("location",e.location)("inputs",e.inputs)}}const Lg="RAFLinksModule";let Fg=class{constructor(e,t,n){this.rafLinksService=e,this.sessionService=t,this.urlPrefixService=n,this.location={moduleId:Lg,selector:"bx-raf-links"}}ngOnInit(){this.sessionService.sessionObserver.subscribe((e=>{e.isAuthenticated&&!this.rafUrl&&this.getReferral()}))}getReferral(){this.rafUrl||this.rafLinksService.getReferralProfile().subscribe((e=>{this.rafUrl=(0,Rg.EG)(this.rafLinksService.getReferralDomain(),this.urlPrefixService.getUrlPrefix(),e.trackingCode),this.inputs={rafUrl:this.rafUrl,theme:"light"}}))}};Fg.ɵfac=function(e){return new(e||Fg)(i["ɵɵdirectiveInject"](Ng.p),i["ɵɵdirectiveInject"](V.m),i["ɵɵdirectiveInject"](dt.z))},Fg.ɵcmp=i["ɵɵdefineComponent"]({type:Fg,selectors:[["bx-raf"]],decls:3,vars:1,consts:[[3,"location","inputs",4,"ngIf"],[3,"location","inputs"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,Dg,1,2,"wt-lazy",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.rafUrl))},directives:[r.NgIf,j],encapsulation:2}),Fg=(0,a.__decorate)([(0,q.DE)({name:"RAF Functional Placeholder",matcher:e=>e.contentType===K.z.FUNCTIONAL&&e.fields.tags&&e.fields.tags.split(",").indexOf("RAF")>=0}),(0,a.__metadata)("design:paramtypes",[Ng.p,V.m,dt.z])],Fg);var Bg=n(59677);let Ug=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Bg.pt],imports:[[r.CommonModule,o.RouterModule,It.D,et.ny,bt.a,D.withModule({moduleId:Lg,loadChildren:()=>Promise.resolve().then(n.bind(n,75025)).then((e=>e.RAFLinksModule))}),fn.U8,W.J.withComponents([Fg])]]}),e})();var Vg=n(80445),Gg=n(52652);let Hg=(()=>{class e{constructor(e){this.routingStateService=e}resolve(e){if(e.data&&e.data.postCFUrl)return(0,s.of)(e.data.postCFUrl);if(e.queryParams&&e.queryParams.postCFUrl)return(0,s.of)(e.queryParams.postCFUrl);const t=this.routingStateService.getHistory();if(t.length>0){let e=this.getPreviousUrl(t,1);return e.indexOf("?")>0&&(e=e.substring(0,e.indexOf("?"))),(0,s.of)(e)}return(0,s.of)(null)}getPreviousUrl(e,t){return e[e.length-t]}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ip))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),zg=(()=>{class e{getPostCFUrl(){return this.postCFUrl}setPostCFUrl(e){this.postCFUrl=e}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),$g=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Hg,zg]}),e})();var Wg=n(90566);let qg=(()=>{class e{constructor(e){this.document=e,this.close=new i.EventEmitter}ngOnInit(){this.removeScrollIfNeeded()}ngOnDestroy(){this.restoreScrollIfNeeded()}removeScrollIfNeeded(){this.hasScroll=!this.document.querySelectorAll("body.non-scroll").length,this.hasScroll&&this.document.querySelector("body").classList.add("non-scroll")}restoreScrollIfNeeded(){this.hasScroll&&this.document.querySelector("body").classList.remove("non-scroll")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.DOCUMENT))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-notification-overlay"]],inputs:{notification:"notification",context:"context"},outputs:{close:"close"},decls:10,vars:11,consts:[["tabindex","-1","role","dialog","aria-labelledby","modal",1,"modal-overlay",3,"ngClass"],[1,"modal-content",3,"ngClass"],["outputName","result",3,"component","context","output"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"bx-dynamic-loader-component",2),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassProp"]("dark-overlay",t.notification.dark),i["ɵɵproperty"]("ngClass",t.notification.containerClassName),i["ɵɵadvance"](2),i["ɵɵclassProp"]("screen-center",t.notification.centered)("no-scroll-overlay",t.notification.noScroll),i["ɵɵproperty"]("ngClass",t.notification.className),i["ɵɵadvance"](2),i["ɵɵproperty"]("component",t.notification.content)("context",t.context)("output",t.close))},directives:[r.NgClass,Wg.W],styles:[".modal-overlay[_ngcontent-%COMP%] {\n            outline: none;\n        }\n        .modal-overlay[_ngcontent-%COMP%]   .modal-content.no-scroll-overlay[_ngcontent-%COMP%] {\n            overflow-x: hidden;\n            overflow-y: auto;\n        }\n        .modal-overlay[_ngcontent-%COMP%]   .modal-content[_ngcontent-%COMP%] {\n            margin-bottom: 0;\n        }"]}),e})();var Kg=n(42767),Xg=(()=>(function(e){e.withdraw="withdraw",e.updateProfile="updateProfile",e.login="login",e.enable2fa="enable2fa"}(Xg||(Xg={})),Xg))(),Yg=n(85443),Jg=n(14186);let Qg=(()=>{class e{constructor(e){this.analyticsService=e}sendClickEvent(e,t=null){this.sendEvent("click",e,t)}sendPageUpdateEvent(e,t=null){this.sendEvent("pageUpdate",e,t)}sendEvent(e,t,n){this.analyticsService.sendEvent(e,t,!0,n)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](oe.y))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Zg=function(e){return{tag:"textContent",label:e}};let ef=(()=>{class e{constructor(){this.close=new i.EventEmitter}closeButtonClicked(){this.close.emit(!0)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["mfa-verification-title"]],inputs:{titleKey:"titleKey"},outputs:{close:"close"},decls:7,vars:4,consts:[[3,"defaultCloseHandling","close"],[1,"h3-heading",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay-header",0),i["ɵɵlistener"]("close",(function(){return t.closeButtonClicked()})),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"h3",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("defaultCloseHandling",!1),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](2,Zg,t.titleKey)))},directives:[Fs.z,Se.P],encapsulation:2,changeDetection:0}),e})();const tf=function(e){return{"error-message":e}},nf=function(e){return{tag:"textContent",label:e}};function rf(e,t){if(1&e&&i["ɵɵelement"](0,"p",3),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,tf,e.isInformationMessageAnError))("bxTranslate",i["ɵɵpureFunction1"](4,nf,e.informationMessage))}}function of(e,t){if(1&e&&i["ɵɵelement"](0,"p",3),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,tf,e.isComplementaryMessageAnError))("bxTranslate",i["ɵɵpureFunction1"](4,nf,e.complementaryMessage))}}function af(e,t){if(1&e&&(i["ɵɵelementStart"](0,"p"),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"](" ",e.phoneInfo," ")}}let sf=(()=>{class e{getTitleText(){return this.errorKey?this.errorKey:this.titleKey}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["mfa-verification-info"]],inputs:{titleKey:"titleKey",errorKey:"errorKey",informationMessage:"informationMessage",isInformationMessageAnError:"isInformationMessageAnError",complementaryMessage:"complementaryMessage",isComplementaryMessageAnError:"isComplementaryMessageAnError",phoneInfo:"phoneInfo"},decls:10,vars:9,consts:[[1,"h5-heading",3,"ngClass","bxTranslate"],[3,"ngClass","bxTranslate",4,"ngIf"],[4,"ngIf"],[3,"ngClass","bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"h5",0),i["ɵɵtext"](2,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n        "),i["ɵɵtemplate"](4,rf,1,6,"p",1),i["ɵɵtext"](5,"\n        "),i["ɵɵtemplate"](6,of,1,6,"p",1),i["ɵɵtext"](7,"\n        "),i["ɵɵtemplate"](8,af,2,1,"p",2),i["ɵɵtext"](9,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](5,tf,t.errorKey))("bxTranslate",i["ɵɵpureFunction1"](7,nf,t.getTitleText())),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",""!==t.informationMessage),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",""!==t.complementaryMessage),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",""!==t.phoneInfo))},directives:[r.NgClass,Se.P,r.NgIf],encapsulation:2,changeDetection:0}),e})();var cf=n(93144),lf=n(82319),df=n(84245),uf=n(58447),pf=n(74195),hf=n(97241);const mf=function(e){return{tag:"textContent",label:e}};function gf(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",7),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onResendClicked()})),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](1,mf,e.texts.resend))}}let ff=(()=>{class e{constructor(e){this.formService=e,this.proceed=new i.EventEmitter,this.resend=new i.EventEmitter,this.webtrekkPageEvent=new i.EventEmitter}ngOnInit(){this.initTextKeys(),this.formModel=new cf.f({id:`${this.idFormPreffix}`,elements:{code:new lf.b({id:`${this.idFormPreffix}-code`,type:"password",validators:{required:null,maxLength:20}})}}),this.formGroup=this.formService.createFormControl(this.formModel),this.webtrekkPageEvent.emit("sms_verification:form_view"),this.formGroup.valueChanges.pipe((0,c.take)(1)).subscribe((()=>{this.webtrekkPageEvent.emit("sms_verification:form_interaction")}))}initTextKeys(){this.texts={resend:`${this.keyText}.button.resendCode`,continue:`${this.keyText}.button.continue`}}onSubmit(){this.proceed.emit(this.formGroup.value)}onResendClicked(){this.resend.emit(!0)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](df.o))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["input-code-form"]],inputs:{idFormPreffix:"idFormPreffix",keyText:"keyText",canResend:"canResend"},outputs:{proceed:"proceed",resend:"resend",webtrekkPageEvent:"webtrekkPageEvent"},decls:22,vars:10,consts:[[3,"formGroup","ngSubmit"],[1,"form-body"],[3,"model","controlGroup"],[1,"after-link"],["class","custom-link",3,"bxTranslate","click",4,"ngIf"],[1,"buttons","full-width-ctas"],["type","submit","id","verification-code-submit",1,"custom-cta","cta-large","primary",3,"bxTranslate"],[1,"custom-link",3,"bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-form",0),i["ɵɵlistener"]("ngSubmit",(function(){return t.onSubmit()})),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"bx-form-group",2),i["ɵɵpipe"](6,"bxTranslationKeys"),i["ɵɵtext"](7,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                "),i["ɵɵelementStart"](9,"p",3),i["ɵɵtext"](10,"\n                    "),i["ɵɵtemplate"](11,gf,2,3,"a",4),i["ɵɵtext"](12,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n            "),i["ɵɵelementStart"](15,"div",5),i["ɵɵtext"](16,"\n                "),i["ɵɵelementStart"](17,"button",6),i["ɵɵtext"](18,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("formGroup",t.formGroup),i["ɵɵadvance"](4),i["ɵɵproperty"]("model",i["ɵɵpipeBind2"](6,5,t.formModel,t.idFormPreffix))("controlGroup",t.formGroup),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",t.canResend),i["ɵɵadvance"](6),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](8,mf,t.texts.continue)))},directives:[uf.U,ge.NgControlStatusGroup,ge.FormGroupDirective,pf.E,r.NgIf,Se.P],pipes:[hf.o],encapsulation:2,changeDetection:0}),e})(),vf=(()=>{class e{constructor(){this.close=new i.EventEmitter,this.proceed=new i.EventEmitter,this.resend=new i.EventEmitter,this.webtrekkPageEvent=new i.EventEmitter}onClose(){this.close.emit()}onProceed(e){this.proceed.emit(e)}onResend(){this.resend.emit()}onWebtrekkPageEvent(e){this.webtrekkPageEvent.emit(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["verification-code-root"]],inputs:{headerKey:"headerKey",titleKey:"titleKey",errorKey:"errorKey",informationMessage:"informationMessage",isInformationMessageAnError:"isInformationMessageAnError",complementaryMessage:"complementaryMessage",isComplementaryMessageAnError:"isComplementaryMessageAnError",phoneInfo:"phoneInfo",keyText:"keyText",canResend:"canResend"},outputs:{close:"close",proceed:"proceed",resend:"resend",webtrekkPageEvent:"webtrekkPageEvent"},decls:16,vars:11,consts:[[1,"verification-code-content"],[3,"titleKey","close"],[1,"modal-body"],[3,"titleKey","errorKey","informationMessage","isInformationMessageAnError","complementaryMessage","isComplementaryMessageAnError","phoneInfo"],[3,"keyText","idFormPreffix","canResend","proceed","resend","webtrekkPageEvent"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"mfa-verification-title",1),i["ɵɵlistener"]("close",(function(){return t.onClose()})),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementStart"](6,"section",2),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"mfa-verification-info",3),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                "),i["ɵɵelementStart"](11,"input-code-form",4),i["ɵɵlistener"]("proceed",(function(e){return t.onProceed(e)}))("resend",(function(){return t.onResend()}))("webtrekkPageEvent",(function(e){return t.onWebtrekkPageEvent(e)})),i["ɵɵtext"](12,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("titleKey",t.headerKey),i["ɵɵadvance"](5),i["ɵɵproperty"]("titleKey",t.titleKey)("errorKey",t.errorKey)("informationMessage",t.informationMessage)("isInformationMessageAnError",t.isInformationMessageAnError)("complementaryMessage",t.complementaryMessage)("isComplementaryMessageAnError",t.isComplementaryMessageAnError)("phoneInfo",t.phoneInfo),i["ɵɵadvance"](3),i["ɵɵproperty"]("keyText",t.keyText)("idFormPreffix","verificationCode")("canResend",t.canResend))},directives:[ef,sf,ff],encapsulation:2,changeDetection:0}),e})(),bf=(()=>{class e{constructor(e,t,n,r,o){this.validationCodeService=e,this.profileStore=t,this.translateService=n,this.windowService=r,this.verificationAnalyticsService=o,this.blocked=!1,this.canResend=!0,this.componentAlive=!0,this.canReload=!0,this.result=new i.EventEmitter,this.profileStore.profile.phones.length||this.profileStore.refresh()}ngOnInit(){this.operation=this.context.operation,this.headerKey=`verification.${this.operation}.title`,this.shallWeSendSubmitEvent=!this.context.error,this.translateService.translate("validationCode.overlay.content.message.phoneNumber",{phoneNumber:""}).pipe((0,c.takeWhile)((()=>this.componentAlive))).subscribe((e=>this.phoneInfoValue=e)),this.context.error?this.getRemainingAttemptsMessage():this.requestConfirmationCode(),this.canResend="login"!==this.operation,this.canReload="enable2fa"!==this.operation}ngOnDestroy(){this.componentAlive=!1}getRemainingAttemptsMessage(){this.clearErrorsInformation(!0);let e=this.context.error.remainingAttempts;if(e){let t="verificationCode.overlay.error.invalidCode",n="";1===e?(this.sendLastAttemptEvent(),n="verificationCode.overlay.error.lastAttempt"):(this.sendCodeDoesNotMatchEvent(),n="verificationCode.overlay.error.remainingAttempts"),this.translateService.translate(t).pipe((0,c.takeWhile)((()=>this.componentAlive))).subscribe((e=>{this.informationMessage=e,this.isInformationMessageAnError=!0})),this.translateService.translate(n,{remainingAttempts:e}).pipe((0,c.takeWhile)((()=>this.componentAlive))).subscribe((e=>{this.complementaryMessage=e,this.isComplementaryMessageAnError=!0}))}}phoneInfo(){const e=this.profileStore.profile.phones[0];return e&&this.phoneInfoValue?this.phoneInfoValue+this.getMaskedPhone(e):""}getMaskedPhone(e){return e.length>2?Array(e.length-3).join("*")+e.substring(e.length-4):e}onCancel(){this.result.next({cancel:!0}),this.canReload&&this.windowService.window().location.reload()}onProceed(e){e&&(this.result.next({cancel:!1,code:e.code}),this.sendClickOnSubmitEvent())}onResend(){this.requestConfirmationCode(),this.verificationAnalyticsService.sendClickEvent("sms_verification:resend_code:"+this.operation)}requestConfirmationCode(){this.validationCodeService.requestConfirmationCode(this.operation).pipe((0,c.finalize)((()=>{this.clearErrorsInformation(!1)}))).subscribe((e=>{this.updateRequestConfirmationCodeMessagesSuccess(e.remainingSendAttempts),this.updateResendButton(e.remainingSendAttempts)}),(e=>{const t=e.error||{};this.handleRequestConfirmationCodeErrors(e.status,t.errorCode)}))}onWebtrekkPageEvent(e){this.context.error||this.verificationAnalyticsService.sendPageUpdateEvent(e+":"+this.operation)}updateRequestConfirmationCodeMessagesSuccess(e){this.errorKey="",this.informationMessage=0===e?"verificationCode.overlay.content.message.resend.lastCode":"verificationCode.overlay.content.message.pleaseEnterCode"}clearErrorsInformation(e){this.isInformationMessageAnError=!1,this.isComplementaryMessageAnError=!1,this.complementaryMessage="",e&&(this.informationMessage="")}updateResendButton(e){this.canResend=e>=1}handleRequestConfirmationCodeErrors(e,t){423===e?"ACCOUNT_BLOCKED"===t?this.blocked=!0:"NO_REMAINING_SEND_CODE_ATTEMPT"===t?this.canResend=!1:this.errorKey="verificationCode.overlay.error.errorValidatingPhone":this.errorKey="verificationCode.overlay.error.errorValidatingPhone"}sendClickOnSubmitEvent(){this.shallWeSendSubmitEvent&&(this.verificationAnalyticsService.sendPageUpdateEvent("sms_verification:user_click_submit:"+this.operation),this.shallWeSendSubmitEvent=!1)}sendLastAttemptEvent(){this.verificationAnalyticsService.sendClickEvent("sms_verification_error",{1:"one_more_fail_warning:"+this.operation})}sendCodeDoesNotMatchEvent(){this.verificationAnalyticsService.sendClickEvent("sms_verification_error",{1:"code_doesnt_match:"+this.operation})}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Jg.o),i["ɵɵdirectiveInject"](he.s),i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](Qg))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-verification-code"]],inputs:{context:"context"},outputs:{result:"result"},decls:7,vars:10,consts:[[1,"wrapper","verification-code-confirmation"],[3,"headerKey","titleKey","keyText","errorKey","informationMessage","isInformationMessageAnError","complementaryMessage","isComplementaryMessageAnError","phoneInfo","canResend","close","proceed","resend","webtrekkPageEvent"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"verification-code-root",1),i["ɵɵlistener"]("close",(function(){return t.onCancel()}))("proceed",(function(e){return t.onProceed(e)}))("resend",(function(){return t.onResend()}))("webtrekkPageEvent",(function(e){return t.onWebtrekkPageEvent(e)})),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("headerKey",t.headerKey)("titleKey","verificationCode.overlay.content.title.weHaveJustSentYouACode")("keyText","verificationCode.overlay.content")("errorKey",t.errorKey)("informationMessage",t.informationMessage)("isInformationMessageAnError",t.isInformationMessageAnError)("complementaryMessage",t.complementaryMessage)("isComplementaryMessageAnError",t.isComplementaryMessageAnError)("phoneInfo",t.phoneInfo())("canResend",t.canResend))},directives:[vf],encapsulation:2}),e})();var yf=n(79611);function Cf(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",6),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"p",7),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵtextInterpolate1"](" ",e.errorMsg,"\n                ")}}function Sf(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"a",8),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onForgotPincode()})),i["ɵɵtext"](3),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵtextInterpolate1"](" ",e.texts.forgot,"")}}const xf=function(e){return{tag:"textContent",label:e}};let wf=(()=>{class e{constructor(e){this.formBuilder=e,this.pinCodeDigitsEntered=0,this.proceed=new i.EventEmitter,this.forgotPinCode=new i.EventEmitter,this.webtrekkPageEvent=new i.EventEmitter}ngOnInit(){this.initTextKeys(),this.pinCodeForm=this.formBuilder.group({pinCode:this.formBuilder.control("",[ge.Validators.required,ge.Validators.minLength(4),ge.Validators.maxLength(4)])}),this.webtrekkPageEvent.emit("pin_verification:form_view"),this.pinCodeForm.valueChanges.pipe((0,c.take)(1)).subscribe((()=>{this.webtrekkPageEvent.emit("pin_verification:form_interaction")}))}initTextKeys(){this.texts={label:`${this.keyText}.actual.pin`,forgot:`${this.keyText}.forgot.pincode`,continue:`${this.keyText}.button.continue`}}onPinCodeInputChanged(e){this.pinCodeDigitsEntered=e}submitButtonDisabled(){return this.pinCodeDigitsEntered!==Ce.b.PIN_DIGITS}onSubmit(){this.proceed.emit(this.pinCodeForm.value)}onForgotPincode(){this.forgotPinCode.emit()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ge.FormBuilder))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["input-pin-code-form"]],inputs:{keyText:"keyText",isForgotPinEnabled:"isForgotPinEnabled",errorMsg:"errorMsg"},outputs:{proceed:"proceed",forgotPinCode:"forgotPinCode",webtrekkPageEvent:"webtrekkPageEvent"},decls:17,vars:9,consts:[[3,"formGroup","ngSubmit"],["formControlName","pinCode",3,"fieldLabel","showPinCodeLegend","amountOfDigitsEntered"],["class","custom-field invalid-field",4,"ngIf"],[4,"ngIf"],[1,"buttons","full-width-ctas"],["type","submit","id","verification-pin-code-submit",1,"custom-cta","cta-large","primary",3,"disabled","bxTranslate"],[1,"custom-field","invalid-field"],[1,"error-msg"],["id","forgot-pincode",1,"custom-link",3,"bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-form",0),i["ɵɵlistener"]("ngSubmit",(function(){return t.onSubmit()})),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"bx-pin-code",1),i["ɵɵlistener"]("amountOfDigitsEntered",(function(e){return t.onPinCodeInputChanged(e)})),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n\n            "),i["ɵɵtemplate"](6,Cf,5,1,"div",2),i["ɵɵtext"](7,"\n\n            "),i["ɵɵtemplate"](8,Sf,5,1,"div",3),i["ɵɵtext"](9,"\n\n            "),i["ɵɵelementStart"](10,"div",4),i["ɵɵtext"](11,"\n                "),i["ɵɵelementStart"](12,"button",5),i["ɵɵtext"](13,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("formGroup",t.pinCodeForm),i["ɵɵadvance"](2),i["ɵɵproperty"]("fieldLabel",t.texts.label)("showPinCodeLegend",!0),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.errorMsg),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.isForgotPinEnabled),i["ɵɵadvance"](4),i["ɵɵproperty"]("disabled",t.submitButtonDisabled())("bxTranslate",i["ɵɵpureFunction1"](7,xf,t.texts.continue)))},directives:[uf.U,ge.NgControlStatusGroup,ge.FormGroupDirective,Ce.b,ge.NgControlStatus,ge.FormControlName,r.NgIf,Se.P],encapsulation:2,changeDetection:0}),e})(),Ef=(()=>{class e{constructor(){this.close=new i.EventEmitter,this.proceed=new i.EventEmitter,this.forgotPinCode=new i.EventEmitter,this.webtrekkPageEvent=new i.EventEmitter}onClose(){this.close.emit()}onProceed(e){this.proceed.emit(e)}onForgotPincode(){this.forgotPinCode.emit()}onWebtrekkPageEvent(e){this.webtrekkPageEvent.emit(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["verification-pin-code-root"]],inputs:{headerKey:"headerKey",titleKey:"titleKey",informationMessage:"informationMessage",keyText:"keyText",isForgotPinEnabled:"isForgotPinEnabled"},outputs:{close:"close",proceed:"proceed",forgotPinCode:"forgotPinCode",webtrekkPageEvent:"webtrekkPageEvent"},decls:16,vars:5,consts:[[1,"verification-pin-code-content"],[3,"titleKey","close"],[1,"modal-body"],[3,"titleKey"],[3,"keyText","isForgotPinEnabled","errorMsg","proceed","forgotPinCode","webtrekkPageEvent"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"mfa-verification-title",1),i["ɵɵlistener"]("close",(function(){return t.onClose()})),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementStart"](6,"section",2),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"mfa-verification-info",3),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                "),i["ɵɵelementStart"](11,"input-pin-code-form",4),i["ɵɵlistener"]("proceed",(function(e){return t.onProceed(e)}))("forgotPinCode",(function(){return t.onForgotPincode()}))("webtrekkPageEvent",(function(e){return t.onWebtrekkPageEvent(e)})),i["ɵɵtext"](12,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("titleKey",t.headerKey),i["ɵɵadvance"](5),i["ɵɵproperty"]("titleKey",t.titleKey),i["ɵɵadvance"](3),i["ɵɵproperty"]("keyText",t.keyText)("isForgotPinEnabled",t.isForgotPinEnabled)("errorMsg",t.informationMessage))},directives:[ef,sf,wf],encapsulation:2,changeDetection:0}),e})(),If=(()=>{class e{constructor(e,t,n,r,o,a){this.forgotPinService=e,this.siteConfigService=t,this.translateService=n,this.toastNotificationService=r,this.windowService=o,this.verificationAnalyticsService=a,this.componentAlive=!0,this.result=new i.EventEmitter}ngOnInit(){this.operation=this.context.operation,this.isForgotPinEnabled=this.siteConfigService.evalFeature("site.config.forgot.pincode.enabled")&&"login"!==this.operation,this.headerKey=`verification.${this.context.operation}.title`,this.shallWeSendSubmitEvent=!this.context.error,this.getRemainingAttemptsMessage(),this.translateService.translate("verificationPinCode.overlay.email.sent").pipe((0,c.takeWhile)((()=>this.componentAlive))).subscribe((e=>this.successForgotPinMessage=e)),this.canReload="enable2fa"!==this.operation}ngOnDestroy(){this.componentAlive=!1}getRemainingAttemptsMessage(){if(this.context.error){let e=this.context.error.remainingAttempts,t="";e&&1===e?(this.sendLastAttemptEvent(),t="verificationPinCode.overlay.content.message.lastAttempt"):e&&(this.sendCodeDoesNotMatchEvent(),t="verificationPinCode.overlay.content.message.failmessage"),t&&this.translateService.translate(t,{attempts:e}).pipe((0,c.takeWhile)((()=>this.componentAlive))).subscribe((e=>this.messageInfo=e))}}onCancel(){this.result.next({cancel:!0}),this.canReload&&this.windowService.window().location.reload()}onProceed(e){e&&(this.result.next({cancel:!1,code:e.pinCode}),this.sendClickOnSubmitEvent())}onForgotPincode(){this.forgotPinService.requestForgotPin().subscribe((()=>{this.toastNotificationService.add({msg:this.successForgotPinMessage,onRemove:()=>{this.onCancel()}})}),(()=>{this.messageInfo="verificationPinCode.overlay.error"}))}onWebtrekkPageEvent(e){this.context.error||this.verificationAnalyticsService.sendPageUpdateEvent(e+":"+this.operation)}sendClickOnSubmitEvent(){this.shallWeSendSubmitEvent&&(this.verificationAnalyticsService.sendPageUpdateEvent("pin_verification:user_click_submit:"+this.operation),this.shallWeSendSubmitEvent=!1)}sendLastAttemptEvent(){this.verificationAnalyticsService.sendClickEvent("pin_verification_error",{1:"one_more_fail_warning:"+this.operation})}sendCodeDoesNotMatchEvent(){this.verificationAnalyticsService.sendClickEvent("pin_verification_error",{1:"code_doesnt_match:"+this.operation})}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](yf.k),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](lp.il),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](Qg))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-verification-pin-code"]],inputs:{context:"context"},outputs:{result:"result"},decls:7,vars:5,consts:[[1,"wrapper","verification-pin-code-confirmation"],[3,"headerKey","titleKey","keyText","informationMessage","isForgotPinEnabled","close","proceed","forgotPinCode","webtrekkPageEvent"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"verification-pin-code-root",1),i["ɵɵlistener"]("close",(function(){return t.onCancel()}))("proceed",(function(e){return t.onProceed(e)}))("forgotPinCode",(function(){return t.onForgotPincode()}))("webtrekkPageEvent",(function(e){return t.onWebtrekkPageEvent(e)})),i["ɵɵtext"](4,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("headerKey",t.headerKey)("titleKey","verificationPinCode.overlay.content.title")("keyText","verificationPinCode.overlay.content")("informationMessage",t.messageInfo)("isForgotPinEnabled",t.isForgotPinEnabled))},directives:[Ef],encapsulation:2}),e})(),Pf=(()=>{class e{constructor(e,t,n,i,r,o){this.injector=e,this.mfaCommunicationService=t,this.toastNotificationService=n,this.translateService=i,this.windowService=r,this.analyticsService=o}init(){this.translateService.translate("verification.accountBlocked.label").subscribe((e=>this.accountBlockedTranslated=e)),this.injectionService=this.injector.get(Kg.Y),this.mfaCommunicationService.codeRequest.subscribe((e=>{this.open(e).subscribe((e=>{this.mfaCommunicationService.emitCode(e)}))})),this.mfaCommunicationService.closePopup.subscribe((e=>{this.error=void 0,e&&e.success&&this.sendSuccessPageViewEvent(e.communicationMethod,e.operation),this.close()})),this.mfaCommunicationService.errorEvent.subscribe((e=>{this.close(),this.error=e})),this.mfaCommunicationService.accountBlockedEvent.subscribe((e=>{this.sendBlockedAnalyticEvent(e.communicationMethod,e.operation),this.toastNotificationService.add({msg:this.accountBlockedTranslated,type:"error",onRemove:()=>this.windowService.window().location.reload()})}))}getComponentFromCommunicationMethod(e){return"SMS"===e?bf:"PIN_CODE"===e?If:null}getContext(e){return{content:this.getComponentFromCommunicationMethod(e),dark:!0,noScroll:!0,className:"modal-medium"}}open(e){let t=this.getContext(e.communicationMethod);const n={operation:Xg[e.operation],error:this.error};return this.component=this.injectionService.appendComponent(qg,{notification:t,context:n},null),this.component.instance.close}close(){this.component.destroy()}sendSuccessPageViewEvent(e,t){let n;"PIN_CODE"===e?n="pin_verification":"SMS"===e&&(n="sms_verification"),n&&this.analyticsService.sendEvent("pageUpdate",n+":success_pageview:"+t,!0,null)}sendBlockedAnalyticEvent(e,t){let n;"PIN_CODE"===e?n="pin_verification_error":"SMS"===e&&(n="sms_verification_error"),n&&this.analyticsService.sendEvent("click",n+":"+t,!0,{1:"temporary_block:"+t})}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.Injector),i["ɵɵinject"](Yg.g),i["ɵɵinject"](fn.il),i["ɵɵinject"](fe.s),i["ɵɵinject"](ee.u),i["ɵɵinject"](oe.y))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Tf=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[qg]}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,zh.B],zh.B]}),e})();var _f=n(8807),Mf=n(92969);let Of=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[bf,If]}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Jg.o,df.o,Pf,Qg],imports:[[r.CommonModule,zh.B,bt.a,_f.E,fn.U8,Tf,Mp.N,kt.I,Mf.U]]}),e})();var Af=n(64076),kf=n(58710);const jf=new i.InjectionToken("BalanceStoreToken");let Nf=(()=>{class e{static forRoot(){return{ngModule:e,providers:[kf.r,{provide:jf,useExisting:kf.r}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Rf=n(9886);let Df=(()=>{class e{constructor(e){this.accountMenuConfig=e}resolve(){let e=this.accountMenuConfig&&this.accountMenuConfig.overlayStyle?this.accountMenuConfig.overlayStyle:"";return(0,s.of)(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Rf.Y_))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Lf=n(94224),Ff=n(37424),Bf=n(99604),Uf=n(97815),Vf=n(55057);const Gf="bonusSelectionCfEnabled",Hf="BONUS";let zf=(()=>{class e extends ah.ib{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m,g,f,v,b,y,C,S,x){super(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m,g,f,v,y,C,S),this.phoneBlockingSectionsService=b,this.postConversionFunnelStoreService=x}onRegistration(e){e instanceof H.Yc&&(this.postCFUrl=e.postCFUrl,e.postCFUrl&&this.postConversionFunnelStoreService.setPostCFUrl(e.postCFUrl),this.sessionService.session=e.sessionId,this.enabledValidationCode=this.siteConfigService.getSiteConfigProp("phoneValidationEnabled"),this.enabledValidationCodeCF=this.siteConfigService.getSiteConfigProp("phoneValidationInJoinEnabled"),this.enabledBonusSelection=this.siteConfigService.getSiteConfigProp(Gf),this.isBonusBlockedByPhoneTypeValidation=this.phoneBlockingSectionsService.shouldSectionBeBlockedByPhoneTypeValidation(Hf),this.enabledValidationCode&&this.enabledValidationCodeCF?this.navigateToValidationCode():this.enabledBonusSelection&&!this.isBonusBlockedByPhoneTypeValidation?this.navigateToBonusSelection():this.navigateToCashier())}onValidationCode(e){(e instanceof sh.N$||e instanceof sh.aj)&&(this.enabledBonusSelection=this.siteConfigService.getSiteConfigProp(Gf),this.isBonusBlockedByPhoneValidation=this.phoneBlockingSectionsService.shouldSectionBeBlockedByPhoneValidation(Hf),this.isBonusBlockedByPhoneTypeValidation=this.phoneBlockingSectionsService.shouldSectionBeBlockedByPhoneTypeValidation(Hf),!this.enabledBonusSelection||this.isBonusBlockedByPhoneValidation||this.isBonusBlockedByPhoneTypeValidation?this.navigateToCashier():this.navigateToBonusSelection())}navigateToCashier(){this.postCFUrl?this.router.navigate([Vf.dU],{queryParams:{destination:this.postCFUrl}}):this.router.navigate([Vf.dU])}navigateToBonusSelection(){this.postCFUrl?this.router.navigate([Vf.jA],{queryParams:{postCFUrl:this.postCFUrl}}):this.router.navigate([Vf.jA])}navigateToValidationCode(){this.router.navigate([Vf.To])}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](o.ActivatedRoute),i["ɵɵinject"](U.r6),i["ɵɵinject"](Ff.P),i["ɵɵinject"](H.H8),i["ɵɵinject"](kp.e),i["ɵɵinject"](sh.Kx),i["ɵɵinject"](V.m),i["ɵɵinject"](tn.z),i["ɵɵinject"](Ut.T),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](me.G),i["ɵɵinject"](ee.u),i["ɵɵinject"](ie.R),i["ɵɵinject"](Wp.$),i["ɵɵinject"](Uu.w),i["ɵɵinject"](G.r),i["ɵɵinject"](Bf.p),i["ɵɵinject"](Uf.r),i["ɵɵinject"](Lf.G),i["ɵɵinject"](Yp.W),i["ɵɵinject"](Ke.B),i["ɵɵinject"](zg))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),$f=(()=>{class e{constructor(e){this.platformId=e}declareCustomElements(t){if((0,r.isPlatformBrowser)(this.platformId)){const{createCustomElement:i}=n(61139);e.defineElement(i,Ge.U,Ge.G,t)}}static defineElement(e,t,n,i){const r=e(n,{injector:i});customElements.define(t,r)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Wf=n(31090);let qf=(()=>{class e{getStore(e,t){const n=(0,Wf.eventStore)(e,t),{eventName:i,eventTarget:r}=n.toEvent();return n.asObservable=()=>(0,s.fromEvent)(r,i),n}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),Kf=(()=>{class e{constructor(e,t,n){this.mfeStoreService=e,this.siteConfigService=t,this.deviceService=n,this.siteConfigStoreName="siteConfig",this.siteConfigStore=this.mfeStoreService.getStore(this.siteConfigStoreName,G.r.buildDefaultConfiguration())}init(){const e=this.siteConfigService.getSiteConfig(),t={type:this.deviceService.getDeviceType(),browser:this.deviceService.getBrowser(),isMobile:this.deviceService.isMobile(),isDesktop:this.deviceService.isDesktop()};this.siteConfigStore.set({...e,device:t})}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](qf),i["ɵɵinject"](G.r),i["ɵɵinject"](Bt.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();function Xf(e,t,n,i,o,a,c,l,d,u,p,h,m,g,f,v,b,y,C,S,x,w,E,I,P,T){return()=>n.initSiteConfig$().toPromise().then((()=>((()=>{const t=n.getSiteConfigProp("defaultLanguage");d.init(t),e.init(t)})(),i.init(n.getSiteConfig()),v.init(),a.setBucket(n.getSiteConfigProp("bucket")),a.injectContent(t.nativeGlobal.contentItems),c.injectCategory(t.nativeGlobal.translations),e.load()))).then((()=>T.initIframe({...n.getSiteConfig(),protocol:o.getProtocolOrDefault()}))).then((()=>{x.init(),w.setMfaConfig(n.getSiteConfigProp("mfaOperations"));const e=S.getBrowser()?S.getBrowser().toLocaleLowerCase():"";if(C.checkBrowserSupported(),g.get(Rh).init(),g.get(ip).loadRouting(),g.get(ah.ib).init(),E.init(),I.init(),P.init(),(0,r.isPlatformBrowser)(l)){u.init(Vf.Uc),g.get(At).init(Vf.WT);let t=new s.Subject;"ie"!==e&&"ms-edge"!==e&&p.init(t),h.sessionObserver.subscribe((e=>t.next(e.isAuthenticated))),(0,ce.EH)((()=>{u.updateProfileInfo(m.profile?m.profile.accountNumber:null,m.profile?m.profile.address.countryCode:null)})),b.init()}"ie"!==e&&"ms-edge"!==e&&(y.declareCustomElements(g),f.init(n.getSiteConfigProp("locale"))),g.get(Kf).init()}))}let Yf=(()=>{class e{constructor(e,t){this.cmsFeatureFlagService=e,this.router=t}canActivate(){return!this.cmsFeatureFlagService.isFeatureEnabled(Ft.u.SMART_CONTACTS_BM)||(this.router.navigate([Vf.Gl]),!1)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Ft.u),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Jf=(()=>{class e{constructor(e,t){this.cmsFeatureFlagService=e,this.router=t}canActivate(){return!this.cmsFeatureFlagService.isFeatureEnabled(Ft.u.SMART_CONTACTS_BM)||(this.router.navigate([Vf.Z0]),!1)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Ft.u),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Qf=(()=>{class e{constructor(e,t){this.cmsFeatureFlagService=e,this.router=t}canActivate(){return!!this.cmsFeatureFlagService.isFeatureEnabled(Ft.u.SMART_CONTACTS_BM)||(this.router.navigate([Vf.A1]),!1)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Ft.u),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class Zf{constructor(e){this.active=!1,this.question=e.question||"",this.answer=e.answer||""}}class ev{constructor(e){this.title=e.title||"",this.icon=e.icon||"",this.questions=[],e.questions.forEach((e=>{let t=new Zf(e);this.questions.push(t)}))}}class tv{constructor(e){this.title=e.title||"",this.subtitle=e.subtitle||"",this.contact=e.link||"";let t=e.topics||[];this.topics=[],t.forEach((e=>{let t=new ev(e);this.topics.push(t)}))}}let nv=(()=>{class e{constructor(e,t){this.http=e,this.urlPrefixService=t}getFrequentlyAskedQuestions(t){const n={headers:{"X-Language":t}},i=this.urlPrefixService.addUrlPrefix(e.url(t));return this.http.get(i,n).pipe((0,c.map)((e=>new tv(e))))}}return e.url=e=>`/content/${e}/faq-content.json`,e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Be.HttpClient),i["ɵɵinject"](dt.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();function iv(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",13),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"header",14),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).$implicit;return i["ɵɵnextContext"](3).onQuestionClick(t)})),i["ɵɵtext"](3,"\n                                "),i["ɵɵelementStart"](4,"h2",15),i["ɵɵtext"](5),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                                "),i["ɵɵelement"](7,"i",16),i["ɵɵtext"](8,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                            "),i["ɵɵelementStart"](10,"section",17),i["ɵɵtext"](11,"\n                                "),i["ɵɵelement"](12,"p",18),i["ɵɵtext"](13,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                        "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵclassProp"]("active",e.active),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.question),i["ɵɵadvance"](2),i["ɵɵclassProp"]("icon-arrow-next",!e.active)("icon-arrow-down",e.active),i["ɵɵadvance"](5),i["ɵɵproperty"]("innerHTML",e.answer,i["ɵɵsanitizeHtml"])}}function rv(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",8),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"div",9),i["ɵɵtext"](3,"\n                        "),i["ɵɵelement"](4,"i",10),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementStart"](6,"span",5),i["ɵɵtext"](7),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementStart"](10,"ul",11),i["ɵɵtext"](11,"\n                        "),i["ɵɵtemplate"](12,iv,15,8,"li",12),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](4),i["ɵɵproperty"]("ngClass",e.icon),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.title),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngForOf",e.questions)}}function ov(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"bx-overlay-header"),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"h1",2),i["ɵɵtext"](5),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"div",3),i["ɵɵtext"](9,"\n                    "),i["ɵɵelement"](10,"i",4),i["ɵɵtext"](11,"\n                    "),i["ɵɵelementStart"](12,"span",5),i["ɵɵtext"](13),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementStart"](15,"a",6),i["ɵɵtext"](16),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n                "),i["ɵɵtemplate"](19,rv,15,3,"div",7),i["ɵɵtext"](20,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](5),i["ɵɵtextInterpolate"](e.data.title),i["ɵɵadvance"](8),i["ɵɵtextInterpolate"](e.data.subtitle),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.data.contact),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngForOf",e.data.topics)}}let av=(()=>{class e{constructor(e,t){this.faqService=e,this.languageService=t}ngOnInit(){this.languageService.getLanguage().pipe((0,c.switchMap)((e=>this.faqService.getFrequentlyAskedQuestions(e)))).subscribe((e=>{this.data=e}))}onQuestionClick(e){this.data.topics.forEach((t=>{t.questions.forEach((t=>{t.active=t===e&&!t.active}))}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](nv),i["ɵɵdirectiveInject"](hu.TS))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-faq"]],decls:6,vars:1,consts:[["overlayType","large"],[4,"ngIf"],["role","heading",1,"h2-heading"],[1,"faq-contact"],[1,"icon","icon-contact"],[1,"icon-subtitle"],["routerLink","/contact-us",1,"custom-link"],["class","topic-section",4,"ngFor","ngForOf"],[1,"topic-section"],[1,"topic-header"],[1,"icon",3,"ngClass"],["role","list",1,"accordion","primary"],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["role","button",1,"subject-heading",3,"click"],[1,"title"],[1,"icon"],[1,"more-info"],[3,"innerHTML"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay-container",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,ov,21,4,"div",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.data))},directives:[Ls.l,r.NgIf,Fs.z,o.RouterLinkWithHref,r.NgForOf,r.NgClass],styles:[".accordion[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  color: #3E3E3E;\n}\n\n.topic-header[_ngcontent-%COMP%] {\n  padding: 20px;\n  font-size: 1.2em;\n  vertical-align: middle;\n  font-weight: 600;\n  text-transform: uppercase;\n}\n\n.topic-header[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%] {\n  color: #000;\n  font-size: 20px;\n  float: left;\n  line-height: 18px;\n}\n\n.faq-contact[_ngcontent-%COMP%] {\n  font-size: 1.2em;\n  font-weight: 600;\n  padding: 20px;\n  border-bottom: 1px solid #bfbfbf;\n  vertical-align: middle;\n}\n\n.faq-contact[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%] {\n  font-size: 20px;\n  line-height: 18px;\n  float: left;\n}\n\n.icon-subtitle[_ngcontent-%COMP%] {\n  padding-left: 8px;\n}\n\n.h2-heading[_ngcontent-%COMP%] {\n  padding: 20px;\n  color: #000;\n}"]}),e})(),sv=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[nv],imports:[[r.CommonModule,o.RouterModule,xt.U8,St.d]]}),e})(),cv=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),lv=(()=>{class e{constructor(){}mapMenus(e){let t=[],n=[],i=this.getContentFieldValue(e,"items")||[],r=!1,o=!1;if(Array.isArray(i)){let e=this.getMenusByTag(i,"primaryNavMenu"),a=this.getMenusByTag(i,"secondaryNavMenu");t=e?this.getMenuItems(e):t,n=a?this.getMenuItems(a):n,r=e&&"draft"===e.status,o=a&&"draft"===a.status}return{contentType:"MENU",fields:{primaryElements:{value:t,draft:r},secondaryElements:{value:n,draft:o}},slug:this.getContentFieldValue(e,"slug")||"",draft:"draft"===e.status}}getContentFieldValue(e,t){return e.fields&&e.fields[t]}getMenuItems(e){let t=this.getContentFieldValue(e,"items");return Array.isArray(t)?t.map((e=>this.mapMenuItem(e))):[]}mapMenuItem(e){let t,n,i,r;if(e.contentType){let n=this.getContentFieldValue(e,"menuItemLabel"),r=this.getContentFieldValue(e,"title");t=n||r,i=this.getContentFieldValue(e,"iconClass")}else t=e.linkText,i=e.iconClass,r=e.linkTarget;return n=ba.K.mapLinkUrl(e),{label:t||"",link:n||"",icon:i||"",target:r||Sg.e.NONE,draft:e&&"draft"===e.status}}getMenusByTag(e,t){return e.filter((e=>{let n=-1!==(this.getContentFieldValue(e,"tags")||"").split(",").indexOf(t);return e.contentType===K.z.MENU&&n}))[0]}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),dv=(()=>{class e{constructor(e,t,n,i){this.contentService=e,this.cmsFeatureFlagService=t,this.navMenuCmsMapper=n,this.SECONDARY_ELEMENTS="secondaryElements",this.PRIMARY_ELEMENTS="primaryElements",this.SECTION_FLAG="nav-menus",this.navMenuData=i.nativeGlobal.navMenu}getNavMenuData(){if(this.cmsFeatureFlagService.isSectionEnabled(this.SECTION_FLAG)){let e={filter:"navigation"};return this.contentService.getContentBySlug("nav-menu",this.SECTION_FLAG,e).pipe((0,c.map)((e=>this.navMenuCmsMapper.mapMenus(e))))}return this.navMenuData&&!zt(this.navMenuData)?(0,s.of)(this.navMenuData):this.contentService.getContent("nav-menu")}getNavBarItems(e,t){return this.getNavBarMenu(e,t).value||[]}getNavBarMenu(e,t){return e&&e.fields&&e.fields[t]||[]}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Vs._s),i["ɵɵinject"](Ft.u),i["ɵɵinject"](lv),i["ɵɵinject"](Vt.w))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var uv=n(65340),pv=n(73917);let hv=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,o.RouterModule,pv.L,Mt.o]]}),e})();var mv=n(72855),gv=n(19799);let fv=(()=>{class e{constructor(e,t){this.gameCardService=e,this.document=t,this.isActive=!1}setActive(e){this.isActive=e,e?this.document.querySelector("body").classList.add("position-initial"):this.document.querySelector("body").classList.remove("position-initial")}search(e,t=50,n=!1){const i=e.pipe((0,c.debounceTime)(t),(0,c.distinctUntilChanged)(),(0,c.switchMap)((e=>this.getGamesByTerm(e,void 0,n))));return this.results=(0,s.from)(i)}getGamesByTerm(e,t=8,n=!1){const i=new RegExp(`(${e.trim()})`,"gi");return this.gameCardService.getGameCategories().pipe((0,c.concatMap)((e=>(0,s.from)(e))),(0,c.filter)((e=>"all-games"!==e.slug)),(0,c.reduce)(((e,t)=>[...e,...(t.games||this.flattenGames(t.subCategories)).filter((e=>e.name.match(i))).map((e=>Object.assign({categoryName:e.categoryName||t.name.toLowerCase(),term:e.name.replace(i,"<strong>$1</strong>")},e)))]),[]),(0,c.map)((e=>n?e:e.filter(((e,t,n)=>n.findIndex((t=>t.id===e.id))===t)))),(0,c.map)((n=>""!==e?n.slice(0,t):null)))}flattenGames(e){let t=[];return e&&e.forEach((e=>{e.games&&e.games.forEach((e=>{t.find((t=>t.name===e.name))||t.push(e)}))})),t}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](cn),i["ɵɵinject"](r.DOCUMENT))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),vv=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[cv,cn,fv,dv,lv,wg,te,uv.v],imports:[[r.CommonModule,bt.a,kt.I,da.s,Af.Q,og.n,o.RouterModule,St.d,mv.k,hv,Vs.Qh,gv.R,Mt.o,Gg.g,Sp.q]]}),e})();const bv=["cta"];function yv(e,t){1&e&&(i["ɵɵelementStart"](0,"div",5),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"a",6,4),i["ɵɵtext"](4,"\n                    stickyCta.join\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"]())}const Cv=function(e){return[e]};let Sv=(()=>{class e{constructor(e,t,n,i,r,o){this.sessionService=e,this.overlayNotificationsService=t,this.noDblClickService=n,this.siteConfigService=i,this.platformId=r,this.document=o}ngAfterViewInit(){(0,r.isPlatformBrowser)(this.platformId)&&this.setTimeoutForAllButtons()}ngOnInit(){this.sessionService.sessionObserver.subscribe((e=>{const t=this.document.body,n="sticky-cta";e.isAuthenticated?t.classList.contains(n)&&t.classList.remove(n):t.classList.contains(n)||t.classList.add(n)})),(0,r.isPlatformBrowser)(this.platformId)&&(this.overlayOpenNotificationSubscription=this.overlayNotificationsService.getOverlayOpenNotifications().subscribe((()=>{this.releaseAllButtons()})))}ngOnDestroy(){(0,r.isPlatformBrowser)(this.platformId)&&this.overlayOpenNotificationSubscription&&this.overlayOpenNotificationSubscription.unsubscribe()}showJoinCta(){return this.siteConfigService.getSiteConfigProp("joinEnabled")}setTimeoutForAllButtons(){this.ctas.forEach((t=>{this.noDblClickService.setTimeout(t.nativeElement,e.DEFAULT_TIMEOUT)}))}releaseAllButtons(){this.ctas.forEach((e=>{this.noDblClickService.release(e.nativeElement)}))}}return e.DEFAULT_TIMEOUT=2e4,e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](et.mj),i["ɵɵdirectiveInject"](uv.v),i["ɵɵdirectiveInject"](te),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](r.DOCUMENT))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-sticky-cta"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](bv,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.ctas=e)}},decls:13,vars:4,consts:[[1,"sticky-footer","navbar-fixed-bottom","row"],["class","col-2-3",4,"ngIf"],[1,"col-3-3",3,"ngClass"],["role","button","routerLink","/login",1,"custom-cta","tertiary","inverse",3,"bxTranslate"],["cta",""],[1,"col-2-3"],["role","button","routerLink","/join",1,"custom-cta","primary",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"footer",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,yv,6,0,"div",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                "),i["ɵɵelementStart"](7,"a",3,4),i["ɵɵtext"](9,"\n                    stickyCta.login\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.showJoinCta()),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,Cv,t.showJoinCta()?"col-1-3":"col-3-3")))},directives:[r.NgIf,r.NgClass,o.RouterLinkWithHref,Se.P],styles:[".sticky-footer[_ngcontent-%COMP%] {\n  height: 60px;\n}\n\n@media (max-width: 768px) {\n    .sticky-cta #MoxieFlyoutTab {\n    bottom: 60px !important;\n  }\n}"]}),e})();const xv=[Vf.RC];let wv=(()=>{class e{constructor(e){this.routingStateService=e}resolve(){const e=this.routingStateService.getHistory();if(e)for(let t=0;t<2;t++){const n=this.getPreviousUrl(e,t+1);if(this.matchesUrlSearchCriteria(n))return(0,s.of)(n)}return(0,s.of)(null)}getPreviousUrl(e,t){return e[e.length-t]}matchesUrlSearchCriteria(e){return xv.some((t=>e&&e.includes(t)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ip))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ev=(()=>{class e{constructor(e,t){this.transferStateServiceCache=e,this.platformId=t}intercept(e,t){if((0,r.isPlatformBrowser)(this.platformId)&&this.transferStateServiceCache&&!this.hasAudiencesHeader(e)){const t=this.transferStateServiceCache.getData(e.url);if(t)return(0,s.of)(new Be.HttpResponse({body:t,status:200}))}return t.handle(e).pipe((0,c.tap)((t=>(t instanceof Be.HttpResponse&&this.transferStateServiceCache&&this.platformId&&(0,r.isPlatformServer)(this.platformId)&&this.transferStateServiceCache.saveData(e.url,t.body),t))))}hasAudiencesHeader(t){return null!=t.headers.get(e.X_AUDIENCES)||null!=t.headers.get(e.X_AUDIENCE_IDS)}}return e.X_AUDIENCES="X-Audiences",e.X_AUDIENCE_IDS="X-Audience-Ids",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](re.m,8),i["ɵɵinject"](i.PLATFORM_ID,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Iv=n(23444);let Pv=(()=>{class e{constructor(e,t,n,i){this.platformId=e,this.languageCookieSupplier=t,this.universalConfig=n,this.requestedDomain="",this.countryHeader="",this.territoryHeader="",this.mockApiCookie="",i&&i.headers&&(this.requestedDomain=i.headers["x-requested-domain"],this.countryHeader=i.headers["x-geoip-country"],this.territoryHeader=i.headers["x-territory"]),i&&i.cookies&&(this.mockApiCookie=i.cookies.Mock)}intercept(e,t){if((0,r.isPlatformServer)(this.platformId)){this.universalConfig&&-1===e.url.indexOf("http://")&&-1===e.url.indexOf("https://")&&(e=e.clone({url:this.universalConfig.backendHost+(0!==e.url.indexOf("/")?"/":"")+e.url})),this.requestedDomain&&(e=e.clone({setHeaders:{"x-host":this.requestedDomain}})),this.countryHeader&&(e=e.clone({setHeaders:{"x-country":this.countryHeader}})),this.territoryHeader&&(e=e.clone({setHeaders:{"x-universal-territory":this.territoryHeader}}));let t="";this.languageCookieSupplier.language&&(t+=Hu.g.COOKIE_NAME+"="+this.languageCookieSupplier.language),this.mockApiCookie&&(t+="; Mock="+this.mockApiCookie),t&&(e=e.clone({setHeaders:{cookie:t}}))}return t.handle(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](Hu.g),i["ɵɵinject"](Iv.c,8),i["ɵɵinject"](Sh.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Tv=(()=>{class e{constructor(e,t){this.platformId=e,this.cdnService=t}intercept(e,t){return(0,r.isPlatformBrowser)(this.platformId)&&this.cdnService.isCdnAvailable()&&e.url.includes("i18n/")&&(e=e.clone({url:this.cdnService.getCdnUrlAjaxRequest(e.url)})),t.handle(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](as.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),_v=(()=>{class e{constructor(e,t){this.sessionService=e,this.platformId=t}intercept(e,t){return(0,r.isPlatformBrowser)(this.platformId)&&(e.url.indexOf("services/")>=0||e.url.indexOf("api/")>=0||e.url.indexOf("zuul/")>=0)&&(this.sessionService.isAuthenticated()&&(e=e.clone({setHeaders:{Authorization:`Bearer ${this.sessionService.session}`}})),e=e.clone({withCredentials:!0})),t.handle(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](V.m),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var Mv=n(58132);let Ov=(()=>{class e{constructor(e){this.cookieStorageService=e}intercept(e,t){if(this.cookieStorageService.get("Beatrix-Tests")&&this.cookieStorageService.get("e2e.traceId")){let t=this.cookieStorageService.get("e2e.traceId");e=e.clone({setHeaders:{b3:`${t}-${t}`}})}return t.handle(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](me.G))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var Av=n(20756);let kv=(()=>{class e{constructor(e,t){this.sessionService=e,this.platformId=t}intercept(e,t){return(0,r.isPlatformBrowser)(this.platformId)?t.handle(e).pipe((0,c.tap)((e=>e),(e=>{401!=e.status&&403!=e.status||this.sessionService.unauthorizedEvent.next(new Av.b(e.status,this.sessionService.isAuthenticated()))}))):t.handle(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](V.m),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var jv=n(42497);const Nv="X-MFA-OPERATION",Rv="X-CAPTCHA-ENFORCEMENT-OPERATION",Dv="X-CAPTCHA-ENFORCEMENT-METHOD";let Lv=(()=>{class e{constructor(e,t,n){this.mfaCommunicationService=e,this.mfaVerificationPropertiesService=t,this.platformId=n}intercept(e,t){let n=null,i=null;return this.isCaptchaEnforcementRequest(e)?(n=this.getOperation(e,!0),i="SMS"===e.headers.get(Dv)?"SMS":"PIN_CODE"):(n=this.getOperation(e),i=this.mfaVerificationPropertiesService.getCommunicationMethod(n)),n&&i&&this.mfaCommunicationService&&(0,r.isPlatformBrowser)(this.platformId)?this.requestMfaCode(e,t,n,i):t.handle(e)}getOperation(e,t){const n=t?Rv:Nv;return e.headers.get(n)||e.headers.get(n.toLowerCase())}requestMfaCode(e,t,n,i){const r=this.isCaptchaEnforcementRequest(e)?Rv:Nv,o=e.clone();return this.mfaCommunicationService.requestForCode(n,i).pipe((0,c.first)(),(0,c.concatMap)((n=>n.cancel?this.cancelRequest():(e=(e=e.clone({setHeaders:{"X-MFA-CODE":n.code}})).clone({headers:e.headers.delete(r)}),t.handle(e)))),(0,c.tap)((e=>this.handleResponse(e,i,n))),(0,c.catchError)((e=>this.handleResponseError(e,o,t,n,i))))}handleResponse(e,t,n){e instanceof Be.HttpResponse&&this.mfaCommunicationService.requestFinished({success:!0,communicationMethod:t,operation:n})}handleResponseError(e,t,n,i,r){const o=e.error;return 403===e.status&&"MFA_INVALID_CONFIRMATION_CODE"===o.errorCode?(this.mfaCommunicationService.error(o),this.requestMfaCode(t,n,i,r)):(423===e.status&&"MFA_ACCOUNT_BLOCKED"===o.errorCode?this.mfaCommunicationService.accountBlocked({communicationMethod:r,operation:i}):this.isCaptchaEnforcementRequest(t)&&401===e.status&&(e.error=JSON.parse(JSON.stringify(e.error).replace("invalid_grant","invalid_grant_captcha_enforcement"))),this.cancelRequestAndEmitError(e))}cancelRequest(){return this.mfaCommunicationService.requestFinished(null),s.EMPTY}cancelRequestAndEmitError(e){return this.mfaCommunicationService.requestFinished(null),(0,s.throwError)(e)}isCaptchaEnforcementRequest(e){return e.headers.has(Rv)||e.headers.has(Dv)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Yg.g),i["ɵɵinject"](ru.K),i["ɵɵinject"](i.PLATFORM_ID,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();const Fv=[{provide:Be.HTTP_INTERCEPTORS,useClass:Ev,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useClass:Pv,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Bp.Gc,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Bp.Wp,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Tv,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Bp.iR,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:_v,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Mv.Y,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Nu.h,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Ov,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:kv,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:jv.a,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Lv,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Bp.cS,multi:!0},{provide:Be.HTTP_INTERCEPTORS,useExisting:Bp._2,multi:!0}];var Bv=n(90895),Uv=n(67793),Vv=n(80469),Gv=n(8995),Hv=(()=>(function(e){e.ALLOWED="ALLOWED",e.BLOCKED="BLOCKED",e.SOFTBLOCKED="SOFTBLOCKED",e.ALLOWED_WITH_BLOCKED_SUBDIVISIONS="ALLOWED_WITH_BLOCKED_SUBDIVISIONS"}(Hv||(Hv={})),Hv))();let zv=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c){this.http=e,this.router=t,this.route=n,this.global=i,this.sessionStorage=r,this.sessionService=o,this.windowService=a,this.siteConfigService=s,this.platformId=c,this.accessStatusHandlers=this.buildAccessStatusHandlers()}buildAccessStatusHandlers(){const e=new Array;return e[Hv.ALLOWED]=this.manageAllowedAccess,e[Hv.BLOCKED]=this.manageBlockedAccess,e[Hv.SOFTBLOCKED]=this.manageSoftBlockedAccess,e[Hv.ALLOWED_WITH_BLOCKED_SUBDIVISIONS]=this.manageAllowedAccess,e}checkAccess(){if((0,r.isPlatformBrowser)(this.platformId)){let t=this.siteConfigService.getSiteConfig().countryAccessPolicy;if(!0===this.global.nativeGlobal.isJurisdictionBlocked)return void this.goToBlocked(this.global.nativeGlobal.alternativeSite);if(void 0===this.global.nativeGlobal.isJurisdictionBlocked){if("ALLOWED"===t)return void this.manageAllowedAccess();const n=this.global.nativeGlobal.preloadedAccessByJurisdiction;if(n&&n.status)this.handleAccessStatus(n.status,n.alternativeSite);else{const n={headers:{[Gv.X]:e.JURISDICTION_ACCESS_TIMEOUT.toString()}};this.http.get(e.JURISDICTION_ACCESS_URL,n).subscribe((e=>{this.handleAccessStatus(Hv[e.status],e.alternativeSite,e.customBlockMessage)}),(()=>{this.validateStatus(t)&&this.handleAccessStatus(Hv[t])}))}}}}handleAccessStatus(e,t,n){const i=this.accessStatusHandlers[e];i?i.apply(this,[t,n]):this.goToOutage()}manageAllowedAccess(){this.clearSoftBlockedSessionStorage(),this.global.nativeGlobal.isJurisdictionBlocked=!1}manageBlockedAccess(e){this.clearSoftBlockedSessionStorage(),this.global.nativeGlobal.isJurisdictionBlocked=!0,this.global.nativeGlobal.alternativeSite=e,this.goToBlocked(e)}manageSoftBlockedAccess(e,t){this.sessionService.isAuthenticated()||(this.global.nativeGlobal.isJurisdictionBlocked=!1,t&&this.sessionStorage.set("customBlockMessage","true"),null!=e&&this.sessionStorage.set("alternativeSite",e),this.sessionStorage.set("softBlocked","true"),"login"!==this.route.snapshot.queryParams.overlay&&this.router.navigate(["/login"],this.route.snapshot.queryParams))}checkStatus(){if((0,r.isPlatformBrowser)(this.platformId)){let t="https://"+this.windowService.getHostname()+"/";this.http.get(e.JURISDICTION_ACCESS_URL).subscribe((e=>{this.validateStatus(e.status)&&this.goToHome(t)}),(()=>{}))}}validateStatus(e){return Object.values(Hv).includes(Hv[e])}goToBlocked(e){let t={};e&&Object.keys(e).length>0&&(t.altSite=e),this.router.navigate(["/blocked"],{queryParams:t})}goToOutage(){this.router.navigate(["/outage"])}goToHome(e){this.windowService.location().href=e}clearSoftBlockedSessionStorage(){this.sessionStorage.get("softBlocked")&&(this.sessionStorage.remove("softBlocked"),this.sessionStorage.remove("alternativeSite"),this.sessionStorage.remove("customBlockMessage"))}}return e.JURISDICTION_ACCESS_URL="/services/jurisdiction/v2/access",e.JURISDICTION_ACCESS_TIMEOUT=1e4,e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Be.HttpClient),i["ɵɵinject"](o.Router),i["ɵɵinject"](o.ActivatedRoute),i["ɵɵinject"](Vt.w),i["ɵɵinject"](nh.u),i["ɵɵinject"](V.m),i["ɵɵinject"](ee.u),i["ɵɵinject"](G.r),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),$v=(()=>{class e{canDeactivate(){return!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Wv=(()=>{class e{constructor(e,t,n,i,r){this.jurisdictionService=e,this.sessionStorage=t,this.sessionService=n,this.global=i,this.router=r,r.events.pipe((0,c.filter)((e=>e instanceof o.NavigationStart))).subscribe((e=>this.routingDestination=e.url))}canActivate(){return this.isJurisdictionBlocked()}canActivateChild(){return this.isJurisdictionBlocked()}canDeactivate(){return this.isLoginBlocked()}isJurisdictionBlocked(){return void 0===this.global.nativeGlobal.isJurisdictionBlocked?(this.jurisdictionService.checkAccess(),(0,s.of)(!0)):"/404"==this.routingDestination&&!this.sessionService.isAuthenticated()&&this.sessionStorage.get("softBlocked")?(this.router.navigate(["/login"]),(0,s.of)(!0)):"/404"!=this.routingDestination||this.sessionService.isAuthenticated()||this.sessionStorage.get("softBlocked")?(0,s.of)(!this.global.nativeGlobal.isJurisdictionBlocked):(0,s.of)(!0)}isLoginBlocked(){return!this.sessionStorage.get("softBlocked")||!!this.sessionStorage.get("requiredAction")||this.sessionService.isAuthenticated()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](zv),i["ɵɵinject"](nh.u),i["ɵɵinject"](V.m),i["ɵɵinject"](Vt.w),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),qv=(()=>{class e{constructor(e,t){this.router=e,this.siteConfigService=t}canLoad(e){return this.canActivate(null,{url:`/${e.path}`})}canActivate(e,t){return!!this.isAllowed(t.url)||(this.isInMaintenance(t.url)?(this.redirectToMaintenancePage(),!1):(this.redirectToNotFoundPage(),!1))}isAllowed(e){return!this.siteConfigService.getSiteConfigProp("disabledMultiproducts").some((t=>this.asUrlRegex(t).test(e.toLowerCase())))}isInMaintenance(e){return this.siteConfigService.getSiteConfigProp("multiProductMaintenance").some((t=>this.asUrlRegex(t).test(e.toLowerCase())))}redirectToNotFoundPage(){this.router.navigate([Xh.wF])}redirectToMaintenancePage(){this.router.navigate([Xh.Wq])}asUrlRegex(e){return new RegExp("^/"+e.toLowerCase()+"(%3f|/|$)")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](G.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Kv=(()=>{class e{constructor(e,t){this.translateService=e,this.siteConfigService=t}buildTranslatedMessage(e){return this.brandLabel=this.siteConfigService.getSiteConfigProp("brandLabel")||"site",this.translateService.translate(e,{brandName:this.brandLabel}).pipe((0,c.filter)((t=>t!=e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](fe.s),i["ɵɵinject"](G.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Xv=(()=>{class e{canActivate(){return!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Yv=n(61493);let Jv=(()=>{class e{constructor(e){this.http=e}isValidRegistrationToken(t){return this.http.get(e.validateTokenUrl+t)}}return e.validateTokenUrl="/services/signup-service/v1/invitation/validate/",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Be.HttpClient))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Qv=(()=>{class e{constructor(e,t,n,i,r,o){this.router=e,this.siteConfigService=t,this.sessionService=n,this.invitationService=i,this.cookieStorageService=r,this.validationTokenService=o,this.INVITATION_URL_PARTS_WITHOUT_TOKEN=2,this.TOKEN_PART=2}canActivate(e,t){return!this.isAVIPInvitationRequest(t)||(this.isUserAuthenticated()||this.doesUserHaveCookieJoined()?this.redirectToHome():this.processTokenAndRedirect(t))}isAVIPInvitationRequest(e){return this.isVIPFeatureFlagEnabled()&&this.doesPathContainInvitation(e)}isUserAuthenticated(){return this.sessionService.isAuthenticated()}isVIPFeatureFlagEnabled(){return this.siteConfigService.evalFeature(Yv.A.vipInvitationEnabled)}doesPathContainInvitation(t){return t.url.startsWith(e.ROUTE_INVITATION)}doesUserHaveCookieJoined(){return"true"===this.cookieStorageService.get(e.COOKIE_JOINED)}isValidUUIDTokenFormat(t){return t.match(e.TOKEN_REGEX)}isValidToken(e){var t=this;return this.validationTokenService.isValidRegistrationToken(e).pipe((0,c.map)((()=>this.redirectToInvitation())),(0,c.catchError)((0,eu.Z)((function*(){return t.redirectToHome()}))))}redirectToHome(){return this.router.parseUrl(Xh.ft)}redirectToInvitation(){return this.router.parseUrl(e.ROUTE_INVITATION)}extractToken(e){let t="";const n=e.url.split("/");return n.length>this.INVITATION_URL_PARTS_WITHOUT_TOKEN&&(t=n[this.TOKEN_PART]),t}processTokenAndRedirect(e){let t=!1;const n=this.extractToken(e);return!this.invitationService.getRegistrationToken()&&this.isValidUUIDTokenFormat(n)&&(this.invitationService.publishRegistrationToken(n),t=!0),this.invitationService.getRegistrationToken()?!t||this.isValidToken(this.invitationService.getRegistrationToken()):this.redirectToHome()}}return e.TOKEN_REGEX=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi,e.ROUTE_INVITATION="/usp-bvx",e.COOKIE_JOINED="JOINED",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](G.r),i["ɵɵinject"](V.m),i["ɵɵinject"](kp.e),i["ɵɵinject"](me.G),i["ɵɵinject"](Jv))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Zv=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[zv,$v,Wv,qv,Kv,ee.u,Xv,Qv,Jv],imports:[[r.CommonModule,bt.a,o.RouterModule.forChild([])],o.RouterModule]}),e})();var eb=n(92116);function tb(e,t){1&e&&(i["ɵɵelementStart"](0,"figcaption",10),i["ɵɵtext"](1,"block.site_not_available"),i["ɵɵelementEnd"]())}const nb=function(e){return{value:e}},ib=function(e){return{tag:"textContent",label:"block.site_not_available_alt_site",values:e}},rb=function(e){return[e]};function ob(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"figcaption",10),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                        "),i["ɵɵelement"](5,"br"),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementStart"](7,"figcaption"),i["ɵɵtext"](8,"\n                            "),i["ɵɵelementStart"](9,"a",11),i["ɵɵtext"](10),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](7,rb,i["ɵɵpureFunction1"](5,ib,i["ɵɵpureFunction1"](3,nb,e.altSiteText)))),i["ɵɵadvance"](7),i["ɵɵproperty"]("href",e.altSiteLink,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.altSiteText)}}let ab=(()=>{class e{constructor(e,t,n){this.route=e,this.storageService=t,this.siteConfigService=n}ngOnInit(){if(this.mainLogo=this.siteConfigService.getSiteConfigProp("mainLogo"),this.altSiteParam=this.route.snapshot.queryParams.altSite,this.altSiteParam){this.altSiteText=this.altSiteParam.replace(/https?:\/\//,""),this.altSiteLink=this.altSiteParam;let e=this.storageService.get(eb.EI);e&&(this.altSiteLink+="?myafftoken="+e)}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](tn.z),i["ɵɵdirectiveInject"](G.r))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-hard-block"]],decls:27,vars:3,consts:[[1,"navbar-wrapper","blocked","navbar-fixed-top"],[1,"navbar"],["href","/",1,"brand-logo"],["alt","logo",3,"src"],[1,"background"],[1,"content"],[1,"custom-notification","alert","info"],[1,"icon","icon-info"],[3,"bxTranslate",4,"ngIf"],[4,"ngIf"],[3,"bxTranslate"],[1,"altSiteLink",3,"href"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n    "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n      "),i["ɵɵelementStart"](3,"nav",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelementStart"](5,"a",2),i["ɵɵtext"](6,"\n          "),i["ɵɵelement"](7,"img",3),i["ɵɵtext"](8,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n      "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n        "),i["ɵɵelementStart"](12,"div",4),i["ɵɵtext"](13,"\n            "),i["ɵɵelementStart"](14,"div",5),i["ɵɵtext"](15,"\n                "),i["ɵɵelementStart"](16,"figure",6),i["ɵɵtext"](17,"\n                    "),i["ɵɵelement"](18,"i",7),i["ɵɵtext"](19,"\n                    "),i["ɵɵtemplate"](20,tb,2,0,"figcaption",8),i["ɵɵtext"](21,"\n                    "),i["ɵɵtemplate"](22,ob,13,9,"div",9),i["ɵɵtext"](23,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n    ")),2&e&&(i["ɵɵadvance"](7),i["ɵɵproperty"]("src",t.mainLogo,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](13),i["ɵɵproperty"]("ngIf",!t.altSiteParam),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.altSiteParam))},directives:[r.NgIf,Se.P],encapsulation:2}),e})();const sb=[{path:"outage",component:(()=>{class e{constructor(e,t,n){this.siteConfigService=e,this.brandNameResolverService=t,this.jurisdictionService=n}ngOnInit(){this.mainLogo=this.siteConfigService.getSiteConfigProp("mainLogo"),this.brandCode=this.siteConfigService.getSiteConfigProp("brandCode"),this.brandNameResolverService.buildTranslatedMessage("outage.somethingWentWrong").subscribe((e=>{this.outageTopLabel=e})),this.jurisdictionTimer=setInterval((()=>{this.jurisdictionService.checkStatus()}),2e4)}ngOnDestroy(){null!=this.jurisdictionTimer&&clearInterval(this.jurisdictionTimer)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](Kv),i["ɵɵdirectiveInject"](zv))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-outage"]],decls:26,vars:2,consts:[[1,"navbar-wrapper","outage","navbar-fixed-top"],[1,"navbar"],["href","/",1,"brand-logo"],["alt","logo",3,"src"],["id","page-outage","role","group"],[1,"banner-content"],[1,"upper-outage-label"],["src","/content/images/outage.png","alt","outage",1,"img-responsive"],[1,"lower-outage-label",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n\n    "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n      "),i["ɵɵelementStart"](3,"nav",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelementStart"](5,"a",2),i["ɵɵtext"](6,"\n          "),i["ɵɵelement"](7,"img",3),i["ɵɵtext"](8,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n      "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n    "),i["ɵɵelementStart"](12,"section",4),i["ɵɵtext"](13,"\n        "),i["ɵɵelementStart"](14,"figure",5),i["ɵɵtext"](15,"\n            "),i["ɵɵelementStart"](16,"figcaption",6),i["ɵɵtext"](17),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n            "),i["ɵɵelement"](19,"img",7),i["ɵɵtext"](20,"\n            "),i["ɵɵelementStart"](21,"figcaption",8),i["ɵɵtext"](22,"outage.workingHard"),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n    ")),2&e&&(i["ɵɵadvance"](7),i["ɵɵproperty"]("src",t.mainLogo,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](10),i["ɵɵtextInterpolate"](t.outageTopLabel))},directives:[Se.P],encapsulation:2}),e})(),canDeactivate:[$v]},{path:"blocked",component:ab,canDeactivate:[$v]}];Xh.Uc;let cb=(()=>{class e extends va.x{map(e){return{networkJackpotBannerFunctionalPlaceHolderModel:{title:e.fields&&e.fields.title}}}}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),lb=(()=>{class e{constructor(){this.enableRouteReuseStrategy=!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const db=["bannerContainer"];let ub=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c){this.router=e,this.renderer=t,this.languageService=n,this.siteConfigService=i,this.profileService=r,this.currencyService=o,this.windowService=a,this.platformId=s,this.networkJackpotBannerConfig=c,this.networkJackpotBannerScriptId="network-jackpot-banner-script-id",this.enableRouteReuseStrategy=!1,this.enableRouteReuseStrategy=this.networkJackpotBannerConfig&&this.networkJackpotBannerConfig.enableRouteReuseStrategy,this.enableRouteReuseStrategy&&(this.defaultShouldReuseRoute=this.router.routeReuseStrategy.shouldReuseRoute,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1)}ngAfterViewInit(){(0,r.isPlatformBrowser)(this.platformId)&&(this.languageAndProfileSubscription=(0,s.forkJoin)([this.languageService.getLanguage().pipe((0,c.first)()),this.profileService.getProfileDetailsPlayer().pipe((0,c.defaultIfEmpty)(null)).pipe((0,c.first)())]).subscribe((([e,t])=>this.loadAndRenderCustomElement(e,t))))}ngOnDestroy(){this.languageAndProfileSubscription&&(this.languageAndProfileSubscription.unsubscribe(),this.languageAndProfileSubscription=null),this.enableRouteReuseStrategy&&(this.router.routeReuseStrategy.shouldReuseRoute=this.defaultShouldReuseRoute)}loadAndRenderCustomElement(e,t){const n=this.siteConfigService.getSiteConfig();this.ensureScriptElementLoaded(n),this.renderCustomElement(e,t,n)}ensureScriptElementLoaded(e){if(this.windowService.document().getElementById(this.networkJackpotBannerScriptId))return;const t=this.renderer.createElement("script");t.id=this.networkJackpotBannerScriptId,t.src=e.networkJackpotBannerHostname+"/static/casino/network-jackpot-banner/network-jackpot-banner.js",t.type="module",t.async=!0,this.renderer.appendChild(this.windowService.document().head,t)}renderCustomElement(e,t,n){var i;const r=(null===(i=null==t?void 0:t.attributes)||void 0===i?void 0:i.currency)||n.defaultCurrency,o=this.currencyService.getCurrencySymbol(r),a=n.networkJackpotBannerLogoUrl,s=n.networkJackpotBannerRedirectionUrl,c=this.renderer.createElement("network-jackpot-banner");c.setAttribute("language",e),c.setAttribute("currency",r),c.setAttribute("currency-symbol",o),c.setAttribute("site-code",n.casinoB2bBrandCode),a&&c.setAttribute("logo-url",a),s&&!this.router.url.endsWith(s)&&c.setAttribute("redirection-url",s),this.bannerContainerRef.nativeElement.appendChild(c)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](Gt.T),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](be.H),i["ɵɵdirectiveInject"](gn.i),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](lb,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-network-jackpot-banner"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](db,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.bannerContainerRef=e.first)}},decls:3,vars:0,consts:[[1,"max-container"],["bannerContainer",""]],template:function(e,t){1&e&&(i["ɵɵelement"](0,"div",0,1),i["ɵɵtext"](2,"\n"))},styles:["div.max-container[_ngcontent-%COMP%] {\n            isolation: isolate\n        }"]}),e})(),pb=class{set networkJackpotBannerFunctionalPlaceholderModel(e){this.model=e}};pb.ɵfac=function(e){return new(e||pb)},pb.ɵcmp=i["ɵɵdefineComponent"]({type:pb,selectors:[["bx-network-jackpot-banner-placeholder"]],inputs:{networkJackpotBannerFunctionalPlaceholderModel:"networkJackpotBannerFunctionalPlaceholderModel"},decls:1,vars:0,template:function(e,t){1&e&&i["ɵɵelement"](0,"bx-network-jackpot-banner")},directives:[ub],encapsulation:2}),pb=(0,a.__decorate)([(0,q.DE)({name:"Network Jackpot Banner Functional Placeholder",mapper:cb,matcher:e=>e.contentType===K.z.FUNCTIONAL&&e.fields.tags&&e.fields.tags.split(",").indexOf("hot-drop-jackpot-banner")>=0})],pb);let hb=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[St.d,lu.P]]}),e})(),mb=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[hb,W.J.withComponents([pb])]]}),e})();var gb=n(3317);const fb=new i.InjectionToken("IframeHttpUrlMatchToken");let vb=(()=>{class e{constructor(e,t){this.platformId=e,this.iframeHttpUrlMatch=t,this.crossMessaging={},this.crossMessagingIframeEnabled=!1,this.matchesUrl=!1,this.crossMessagingReady=!0,this.iframeHttpUrlMatch=this.iframeHttpUrlMatch||{include:/.*/,exclude:/(?!)/}}init(e){return this.crossMessagingIframeEnabled=e.crossMessagingIframeEnabled,this.crossMessagingIframeEnabled?(this.crossMessaging=new gb.CrossMessaging,this.crossMessaging.init({domain:`${e.protocol}${e.serviceDomain}`,pathSegments:["assets","apps","cross-messaging-app"],fileName:""}).catch((()=>{this.crossMessagingReady=!1,this.crossMessaging.executePendingRequests()}))):Promise.resolve()}intercept(e,t){return this.matchesUrl=!!e.url.match(this.iframeHttpUrlMatch.include)&&!e.url.match(this.iframeHttpUrlMatch.exclude),this.isIFrameInterceptorActive()?(0,s.from)(this.crossMessaging.request(this.parseRequest(e)).then((e=>e)).catch((e=>{throw Error(JSON.stringify(e))}))).pipe((0,c.catchError)((e=>(0,s.throwError)(this.parseHttpErrorResponse(e)))),(0,c.map)((e=>this.parseHttpResponse(e)))):t.handle(e)}parseRequest(e){const t={};return t.url=e.url,t.body=e.body,t.reportProgress=e.reportProgress,t.withCredentials=e.withCredentials,t.responseType=e.responseType,t.method=e.method,t.urlWithParams=e.urlWithParams,t.headers=this.parseRequestMap(e.headers),t.params=this.parseRequestMap(e.params),t}parseRequestMap(e){const t={};return e.keys().forEach((n=>{t[n]=e.get(n)})),t}parseHttpResponse(e){return new Be.HttpResponse({body:e.body,url:e.url,headers:this.parseHttpHeaders(e.headers),status:e.status,statusText:e.message})}parseHttpErrorResponse(e){const t=JSON.parse(e.message);return new Be.HttpErrorResponse({error:t.body,url:t.url,headers:this.parseHttpHeaders(t.headers),status:t.status,statusText:t.message})}parseHttpHeaders(e){return new Be.HttpHeaders(e)}isIFrameInterceptorActive(){return this.crossMessagingIframeEnabled&&(0,r.isPlatformBrowser)(this.platformId)&&this.matchesUrl&&this.crossMessagingReady}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](fb,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();"undefined"==typeof ngDevMode||ngDevMode;let bb=(()=>{class e{constructor(e,t){this.platformId=e,this.ngCrossMessagingInterceptor=t}initIframe(e){return(0,a.__awaiter)(this,void 0,void 0,(function*(){(0,r.isPlatformServer)(this.platformId)||e.crossMessagingIframeEnabled&&(yield this.ngCrossMessagingInterceptor.init(e))}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](vb))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();"undefined"==typeof ngDevMode||ngDevMode;var yb=n(94966),Cb=n(37307),Sb=n(45242);let xb=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[o.RouterModule]]}),e})(),wb=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();n(50474),n(58892);let Eb=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[De]}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Vv.j,ip,Qf,Jf,Yf,Je.M,te,zp.C,ah.a1,F.JH,Fu.l,F.dT,Bt.U,Np.M,sh.Kx,Zp,ye,vp.e,bp.t,{provide:lp.EO,useFactory:(0,sp.Y)(ap.m,"notificationComponent"),deps:[G.r]},{provide:cv,useFactory:(0,sp.Y)(ap.m,"header"),deps:[G.r]},{provide:hu.yl,useValue:(0,sp.Y)(ap.m,"languageSelector")},{provide:$e.$,useFactory:(0,sp.Y)(ap.m,"login"),deps:[G.r]},{provide:Cg,useFactory:(0,sp.Y)(ap.m,"bannerWelcome"),deps:[G.r]},{provide:ka.Y,useFactory:(0,sp.Y)(ap.m,"bannerCarousel"),deps:[G.r]},{provide:pp.Z,useFactory:(0,sp.Y)(ap.m,"contactUs"),deps:[G.r]},{provide:Ze.U,useFactory:(0,sp.Y)(ap.m,"resetPassword"),deps:[G.r]},{provide:ze.H,useFactory:(0,sp.Y)(ap.m,"forgotPassword"),deps:[G.r]},{provide:Sb.Y,useFactory:(0,sp.Y)(ap.m,"validationCodeBonus"),deps:[G.r]},{provide:hp.r,useFactory:(0,sp.Y)(ap.m,"communicationPlayer"),deps:[G.r]},{provide:tt.L,useFactory:(0,sp.Y)(ap.m,"bonusSelection"),deps:[G.r]},{provide:it.j,useFactory:(0,sp.Y)(ap.m,"bonusWidget"),deps:[G.r]},{provide:ga,useFactory:(0,sp.Y)(ap.m,"gridCards"),deps:[G.r]},{provide:ft,useFactory:(0,sp.Y)(ap.m,"card"),deps:[G.r]},{provide:Rf.Y_,useFactory:(0,sp.Y)(ap.m,"account"),deps:[G.r]},{provide:vt,useFactory:(0,sp.Y)(ap.m,"gamecardDetail"),deps:[G.r]},{provide:wn,useFactory:(0,sp.Y)(ap.m,"gamecardPlayConfig"),deps:[G.r]},{provide:Vg.$,useFactory:(0,sp.Y)(ap.m,"rafLinks"),deps:[G.r]},{provide:Ye.P,useFactory:(0,sp.Y)(ap.m,"pinCodeForceUpdate"),deps:[G.r]},{provide:Qe.d,useFactory:(0,sp.Y)(ap.m,"pinCodeReset"),deps:[G.r]},{provide:Dp.S,useFactory:(0,sp.Y)(ap.m,"pinCodeUpdateProfile"),deps:[G.r]},{provide:fp.e,useFactory:(0,sp.Y)(ap.m,"loyalty"),deps:[G.r]},{provide:Rp.s,useFactory:(0,sp.Y)(ap.m,"profileUpdate"),deps:[G.r]},{provide:Xl.k,useFactory:(0,sp.Y)(ap.m,"dropdown"),deps:[G.r]},{provide:ln,useFactory:(0,sp.Y)(ap.m,"gameCategories"),deps:[G.r]},{provide:Id.p,useFactory:(0,sp.Y)(ap.m,"helpUI"),deps:[G.r]},{provide:fc,useFactory:(0,sp.Y)(ap.m,"casinoGameSearchConfig"),deps:[G.r]},{provide:lb,useFactory:(0,sp.Y)(ap.m,"networkJackpotBanner"),deps:[G.r]},{provide:i.APP_INITIALIZER,useFactory:Xf,deps:[F.JH,Vt.w,G.r,Vp,ee.u,Dt._,fe.s,i.PLATFORM_ID,hu.TS,oe.y,Uu.w,et.mj,he.s,i.Injector,au.S,at.Kt,Ou,$f,rh,Bt.U,Pf,ru.K,xp.G,Ep.E,Bv.l,bb],multi:!0},Qp,$p.x,Wp.$,Hp.K,Le.Title,Le.Meta,Fh,Bh,Df,Oa,pt,Xp,qp,me.G,{provide:ot.L,useValue:{component:ht.T}},Vs.yG,nc,ic,Qs,rc,Lh,Aa.Q,gt.I,mt.C,{provide:qs,useValue:{baseUrl:"/casino",slug:"casinochannelmenu",params:{filter:"navigation2"},applyMaxContainer:!0}},wv,yg.Z,$f,{provide:fb,useValue:{include:yb.J.include,exclude:yb.J.exclude}},Cb.S],imports:[[xb,wb,Of,pa,Lu,Le.BrowserModule.withServerTransition({appId:"server-side-render"}),Be.HttpClientModule,up.s.forRoot(),ou.$,Gp.forRoot([...Fv,{provide:Be.HTTP_INTERCEPTORS,useExisting:vb,multi:!0}]),Fe.BrowserAnimationsModule,It.D,Le.BrowserModule,St.d,Af.Q,Nf.forRoot(),op.C.forRoot(),Rt,ma,Ed,xn.forRoot(),_a,da.s,iu.Q.forRoot(),dg,W.J,bt.a,dp.U.forRoot(),Op,vv,ja.R,ql,rs,sv,pu.z.forBrowser(),rp.C.forRoot(),Et.$Q,mp.v,uu.n,cp.Q.forRoot(),kt.I.forRoot(),Vu.forRoot(),jg,Gu.L.forRoot(),_t.forRoot(),bg,rt._.forRoot(Vf.d4),nt.G.forRoot(),ah.D2.forRoot(zf),jt,We.y.forRoot(),et.ny.forRoot(),lp.PQ.forRoot(),qe.Ix.forRoot(),Lp.S.forRoot(),jp.forRoot(),Fp.o.forRoot(),Cp.forRoot(),wp.b.forRoot(),Ip.g.forRoot(),Pp.S.forRoot(),Ap.P.forRoot(),th,Ue.G,Ba.s,Zv,Ua.k,Fa,Xc,Va.a,sg,Le.BrowserTransferStateModule,Vh,Jh,yp.E,Sp.q,Mt.o,Dh,du.forRoot(),rg,Kh,Ug,np.forRoot(),Gg.g.forRoot(),ig,hu.jH.forRoot(),Qd,nu,oh,He.y.forRoot(),Jp.forRoot(),Xe.forRoot(),$g,gp.M.forRoot(),Bu.U,Uv.M,mb]]}),e})();var Ib=n(16339),Pb=n(46268),Tb=n(33098),_b=n(61893),Mb=n(38458);function Ob(e,t){1&e&&(i["ɵɵelementStart"](0,"h2",5),i["ɵɵtext"](1,"\n                    pinCode.overlay.update.title\n                "),i["ɵɵelementEnd"]())}function Ab(e,t){1&e&&(i["ɵɵelementStart"](0,"h3",6),i["ɵɵtext"](1,"\n                    pinCode.overlay.update.title\n                "),i["ɵɵelementEnd"]())}const kb="cf_spc";let jb=(()=>{class e{constructor(e,t,n,i,r,o,a){this.profileService=e,this.router=t,this.route=n,this.toastNotificationService=i,this.translateService=r,this.cookieStorageService=o,this.pinCodeUpdateConfig=a,this.translateService.translate("pinCode.overlay.update.success.message").subscribe((e=>this.successMessage=e)),this.route.queryParams.subscribe((e=>{this.returnUrl=e.returnUrl})),this.profileService.getPinCodeUpdated().subscribe((()=>{this.cookieStorageService.remove(kb),this.toastNotificationService.add({msg:this.successMessage,onRemove:()=>{this.router.navigateByUrl(this.returnUrl||"/")}},"messageOverlay")})),this.profileService.getProfileDetailsPlayer().subscribe((e=>(e.hasPinCode&&(this.cookieStorageService.remove(kb),this.router.navigateByUrl(this.returnUrl||"/")),(0,s.of)(!0))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](be.H),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](lp.il),i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](me.G),i["ɵɵdirectiveInject"](ye))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-pin-code-update-overlay"]],decls:16,vars:5,consts:[["overlayType","medium"],[3,"closeButton","invisibleCloseButton"],["role","heading","class","h2-heading",3,"bxTranslate",4,"ngIf"],["role","heading","class","h4-heading",3,"bxTranslate",4,"ngIf"],[3,"isForceUpdatePinCode"],["role","heading",1,"h2-heading",3,"bxTranslate"],["role","heading",1,"h4-heading",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay-container",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"bx-overlay-header",1),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,Ob,2,0,"h2",2),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,Ab,2,0,"h3",3),i["ɵɵtext"](8,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementStart"](10,"bx-overlay-body"),i["ɵɵtext"](11,"\n                "),i["ɵɵelement"](12,"bx-pin-code-update-form",4),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("closeButton",t.pinCodeUpdateConfig.alwaysKeepCloseButtonHidden)("invisibleCloseButton",t.pinCodeUpdateConfig.alwaysKeepCloseButtonHidden),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.pinCodeUpdateConfig.headerLevel2),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.pinCodeUpdateConfig.headerLevel2),i["ɵɵadvance"](5),i["ɵɵproperty"]("isForceUpdatePinCode",!0))},directives:[Ls.l,Fs.z,r.NgIf,Mb.l,Me,Se.P],encapsulation:2}),e})();function Nb(e,t){1&e&&(i["ɵɵelementStart"](0,"h2",3),i["ɵɵtext"](1,"\n                    pinCode.overlay.title\n                "),i["ɵɵelementEnd"]())}function Rb(e,t){1&e&&(i["ɵɵelementStart"](0,"h3",4),i["ɵɵtext"](1,"\n                    pinCode.overlay.title\n                "),i["ɵɵelementEnd"]())}class Db{constructor(e,t,n,i,r,o,a,s,c){this.profileService=e,this.router=t,this.route=n,this.toastNotificationService=i,this.translateService=r,this.overlay=o,this.pinCodeConfig=a,this.analyticsService=s,this.postConversionFunnelStoreService=c,this.translateService.translate("pinCode.success.message").subscribe((e=>this.successMessage=e)),this.overlay.close.subscribe((()=>this.onCloseOverlay())),this.route.queryParams.subscribe((e=>{this.returnUrl=e.returnUrl})),this.profileService.getPinCodeUpdated().subscribe((()=>{this.toastNotificationService.add({msg:this.successMessage,onRemove:()=>{this.router.navigateByUrl(this.returnUrl||"/")}},"messageOverlay")}))}onCloseOverlay(){this.analyticsService.sendEvent("click",Db.CLOSE_PIN_CODE_OVERLAY_NAME,!0,Db.CLOSE_OVERLAY_CUSTOM_VALUE,Db.OVERRIDE_CONTEXT),this.postConversionFunnelStoreService.getPostCFUrl()&&(this.router.navigateByUrl(this.postConversionFunnelStoreService.getPostCFUrl()),this.postConversionFunnelStoreService.setPostCFUrl(null))}}Db.CLOSE_PIN_CODE_OVERLAY_NAME="close_pinCodeOverlay",Db.CLOSE_OVERLAY_CUSTOM_VALUE={1:Db.CLOSE_PIN_CODE_OVERLAY_NAME},Db.OVERRIDE_CONTEXT={contentId:"pin_code"},Db.ɵfac=function(e){return new(e||Db)(i["ɵɵdirectiveInject"](be.H),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](lp.il),i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](xt.Bs),i["ɵɵdirectiveInject"](Zp),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](zg))},Db.ɵcmp=i["ɵɵdefineComponent"]({type:Db,selectors:[["bx-pin-code-overlay"]],decls:16,vars:2,consts:[["overlayType","medium"],["role","heading","class","h2-heading",3,"bxTranslate",4,"ngIf"],["role","heading","class","h4-heading",3,"bxTranslate",4,"ngIf"],["role","heading",1,"h2-heading",3,"bxTranslate"],["role","heading",1,"h4-heading",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay-container",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"bx-overlay-header"),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,Nb,2,0,"h2",1),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,Rb,2,0,"h3",2),i["ɵɵtext"](8,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementStart"](10,"bx-overlay-body"),i["ɵɵtext"](11,"\n                "),i["ɵɵelement"](12,"bx-pin-code-update-form"),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n    ")),2&e&&(i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.pinCodeConfig.headerLevel2),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.pinCodeConfig.headerLevel2))},directives:[Ls.l,Fs.z,r.NgIf,Mb.l,Me,Se.P],encapsulation:2});let Lb=(()=>{class e{constructor(e,t,n){this.siteConfigService=e,this.sessionService=t,this.router=n}canActivate(){return!this.sessionService.isAuthenticated()||!this.siteConfigService.getSiteConfigProp("site.config.mfe.enabled").includes("forgot-password")||(this.router.navigate(["/"]),!1)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](G.r),i["ɵɵinject"](V.m),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Fb=["contents","betting-offers","poker-lobby"],Bb=[{matcher:function(e){return e[0]&&function(e){return Fb.find((t=>t==e[0].path))}(e)?{consumed:e}:null},canActivate:[Yh],component:(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-external-pages"]],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})()}];let Ub=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-hidden-overlay"]],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();var Vb=n(2986),Gb=n(84285),Hb=n(24426),zb=n(98645),$b=n(27726);function Wb(e,t){if(1&e&&(i["ɵɵelementStart"](0,"h1",6),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                ",e.marketingPage.title,"\n            ")}}function qb(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",3),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Wb,2,1,"h1",4),i["ɵɵtext"](3,"\n            "),i["ɵɵelement"](4,"bx-marketing-page",5),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!1!==e.marketingPage.h1Enabled),i["ɵɵadvance"](2),i["ɵɵproperty"]("data",e.marketingPage)}}function Kb(e,t){if(1&e&&(i["ɵɵelementStart"](0,"h1",11),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                ",e.marketingPage.title,"\n            ")}}function Xb(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",7),i["ɵɵtext"](1,"\n            "),i["ɵɵelement"](2,"bx-breadcrumb",8),i["ɵɵtext"](3,"\n            "),i["ɵɵtemplate"](4,Kb,2,1,"h1",9),i["ɵɵtext"](5,"\n            "),i["ɵɵelementStart"](6,"div",10),i["ɵɵtext"](7,"\n                "),i["ɵɵelement"](8,"bx-marketing-page",5),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("breadcrumb",e.breadcrumb),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.marketingPage.title&&!1!==e.marketingPage.h1Enabled),i["ɵɵadvance"](4),i["ɵɵproperty"]("data",e.marketingPage)}}function Yb(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-marketing-page-menu",5),i["ɵɵtext"](1,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("data",e.marketingPage)}}let Jb=(()=>{class e{constructor(e,t,n,i){this.route=e,this.translateService=t,this.loginService=n,this.dynamicContentService=i,this.MARKETING_PAGE_FULL_WIDTH_TAG="mkFullWidth",this.MARKETING_PAGE_FRAME_TAG="mkFrame",this.MARKETING_PAGE_MENU="mkMenu",this.inputData=!1,this.breadcrumb=[]}set data(e){this.inputData=!0;const t=e.breadcrumb?e.breadcrumb[0].text:void 0;this.setMarketingPage([e.pageData.marketingPage,t])}ngOnInit(){this.inputData||(this.subscription=this.route.data.pipe((0,c.filter)((e=>e.marketingPage)),(0,c.map)((e=>[e.marketingPage,e.breadcrumbText]))).subscribe((e=>{this.setMarketingPage(e)}))),this.loginSubscription=this.loginService.loginEvent.pipe((0,c.mergeMap)((()=>this.dynamicContentService.fetchContentByUri(`/${this.getCurrentUrl()}`)))).subscribe((e=>{let t;t=this.dynamicContentService.enrichRouterData(e),this.setMarketingPage([t.marketingPage,t.breadcrumbText])}))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.loginSubscription&&this.loginSubscription.unsubscribe()}generateContentBlockFromMarketingData(e){if(e.img||e.body){let t="";return e.img&&(t+=`\n                    <img class="img-responsive marketing-page-image" src="${e.img.url}" alt="${e.img.alt}"/>`),e.body&&(t+='<div class="marketing-page-content-block-body">'+e.body+"<div>"),{component:Vb.T,data:{data:{body:t}}}}}getCurrentUrl(){return this.route.pathFromRoot.filter((e=>e.snapshot.url.length)).map((e=>e.snapshot.url.toString())).reduce(((e,t)=>e+`/${t}`),"")}setMarketingPage(e){let t=e[0];this.breadcrumbText=e[1],this.marketingPage=Hb(t);let n=this.generateContentBlockFromMarketingData(t);n&&(this.marketingPage.components=this.marketingPage.components||[],this.marketingPage.components.unshift(n)),this.marketingPageType=this.checkMarketingPageType()}checkMarketingPageType(){return!this.marketingPage.tags||this.containTag(this.MARKETING_PAGE_FULL_WIDTH_TAG)?this.MARKETING_PAGE_FULL_WIDTH_TAG:this.containTag(this.MARKETING_PAGE_FRAME_TAG)?(this.generateBreadcrumb(),this.MARKETING_PAGE_FRAME_TAG):this.containTag(this.MARKETING_PAGE_MENU)?this.MARKETING_PAGE_MENU:void 0}containTag(e){return-1!=this.marketingPage.tags.indexOf(e)}generateBreadcrumb(){if(this.breadcrumbText){let e=new Gb.g(this.breadcrumbText,"..");this.breadcrumb.push(e),this.breadcrumb.push(new Gb.g(this.marketingPage.title,".")),this.translateService.translate(e.text).subscribe((t=>{e.text=t}))}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](U.r6),i["ɵɵdirectiveInject"](Gh))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["ng-component"]],inputs:{data:"data"},decls:7,vars:3,consts:[["class","marketing-page-container",4,"ngIf"],["class","marketing-page-frame-container max-container",4,"ngIf"],[3,"data",4,"ngIf"],[1,"marketing-page-container"],["role","heading","class","h2-heading marketing-page-title",4,"ngIf"],[3,"data"],["role","heading",1,"h2-heading","marketing-page-title"],[1,"marketing-page-frame-container","max-container"],[1,"breadcrumbContainer",3,"breadcrumb"],["role","heading","class","h3-heading marketing-page-frame-title",4,"ngIf"],["data-dynamic-element","dynamicElement",1,"marketing-page-frame-content"],["role","heading",1,"h3-heading","marketing-page-frame-title"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,qb,6,2,"div",0),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,Xb,11,3,"div",1),i["ɵɵtext"](4,"\n        "),i["ɵɵtemplate"](5,Yb,2,1,"bx-marketing-page-menu",2),i["ɵɵtext"](6,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.marketingPageType===t.MARKETING_PAGE_FULL_WIDTH_TAG),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.marketingPageType===t.MARKETING_PAGE_FRAME_TAG),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.marketingPageType===t.MARKETING_PAGE_MENU))},directives:[r.NgIf,Ga.n,zb.L,$b.v],styles:["h1.marketing-page-title[_ngcontent-%COMP%] {\n  display: none; }\n\ndiv.marketing-page-frame[_ngcontent-%COMP%] {\n  background-color: white;\n  color: #855f5f;\n  border: 0;\n  margin-top: 16px; }"]}),e})(),Qb=(()=>{class e extends Jb{}return e.ɵfac=function(){let t;return function(n){return(t||(t=i["ɵɵgetInheritedFactory"](e)))(n||e)}}(),e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["ng-component"]],features:[i["ɵɵInheritDefinitionFeature"]],decls:15,vars:2,consts:[["overlayType","large"],["role","heading",1,"h2-heading"],[3,"data"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay-container",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"bx-overlay-header"),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"h2",1),i["ɵɵtext"](6),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n            "),i["ɵɵelementStart"](9,"bx-overlay-body"),i["ɵɵtext"](10,"\n                "),i["ɵɵelement"](11,"bx-marketing-page",2),i["ɵɵtext"](12,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n    ")),2&e&&(i["ɵɵadvance"](6),i["ɵɵtextInterpolate1"]("\n                   ",t.marketingPage.title,"\n                "),i["ɵɵadvance"](5),i["ɵɵproperty"]("data",t.marketingPage))},directives:[Ls.l,Fs.z,Mb.l,Ga.n],styles:["h2.h2-heading[_ngcontent-%COMP%] {\n  color: #000000; }"]}),e})();var Zb=n(34033),ey=n(54474);let ty=(()=>{class e{constructor(e,t,n){this.overlayComponent=e,this.route=t,this.closeValidationCodeOverlayHandler=n}closeLinkClicked(){this.closeValidationCodeOverlayHandler.handleClose((()=>this.overlayComponent.closeOverlay()),this.route.snapshot.data.previousUrl)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](fn.Bs),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](ey.a))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-validate-profile-blocked-overlay"]],decls:36,vars:0,consts:[[1,"dark-overlay","modal-overlay"],[1,"modal-content","modal-medium","screen-center"],["overlayType","medium"],["backButton","true",1,"modal-header"],["role","heading",1,"h4-heading",3,"bxTranslate"],[1,"close-link","custom-link",3,"click"],[1,"icon-close"],[1,"modal-body"],[1,"subtitle-info",3,"bxTranslate"],[1,"content-body",3,"bxTranslate"],[1,"modal-button"],["type","button",1,"custom-cta","primary","button-submit",3,"bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"bx-overlay-container",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"bx-overlay-header",3),i["ɵɵtext"](8,"\n                        "),i["ɵɵelementStart"](9,"h4",4),i["ɵɵtext"](10,"\n                            blockedDocumentStatus.overlay.content.title\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                        "),i["ɵɵelementStart"](12,"a",5),i["ɵɵlistener"]("click",(function(){return t.closeLinkClicked()})),i["ɵɵtext"](13,"\n                            "),i["ɵɵelement"](14,"i",6),i["ɵɵtext"](15,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                    "),i["ɵɵelementStart"](18,"bx-overlay-body",7),i["ɵɵtext"](19,"\n                        "),i["ɵɵelementStart"](20,"p",8),i["ɵɵtext"](21,"validationCode.notification.unableVerifyIdentity.warning"),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                        "),i["ɵɵelementStart"](23,"p",9),i["ɵɵtext"](24,"validationCode.notification.verificationUnsuccessful.explanation"),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n                        "),i["ɵɵelementStart"](26,"div",10),i["ɵɵtext"](27,"\n                            "),i["ɵɵelementStart"](28,"button",11),i["ɵɵlistener"]("click",(function(){return t.closeLinkClicked()})),i["ɵɵtext"](29,"transactionDetails.close\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](32,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](33,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](34,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](35,"\n    "))},directives:[Se.P],encapsulation:2}),e})();var ny=n(25394);let iy=(()=>{class e{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Le.DomSanitizer,16))},e.ɵpipe=i["ɵɵdefinePipe"]({name:"bxTrustyResourceUrl",type:e,pure:!0}),e})();function ry(e,t){if(1&e&&(i["ɵɵelementStart"](0,"iframe",2),i["ɵɵpipe"](1,"bxTrustyResourceUrl"),i["ɵɵtext"](2,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("src",i["ɵɵpipeBind1"](1,1,e.endpoint),i["ɵɵsanitizeResourceUrl"])}}let oy=(()=>{class e{constructor(e,t,n){this.profileService=e,this.loadingService=t,this.elementRef=n,this.endpoint=""}ngOnInit(){const e=this.startLoading();this.profileService.getIdentityVerificationUrl().subscribe((t=>{this.endpoint=t.url,e&&e.close.next(!0)}),(()=>{e&&e.close.next(!0)}))}startLoading(){return this.loadingService.start({content:"Loading...",modal:!0},this.elementRef.nativeElement.querySelector(".embed-container"))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](be.H),i["ɵɵdirectiveInject"](ny.b),i["ɵɵdirectiveInject"](i.ElementRef))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-identity-verification-iframe"]],decls:6,vars:1,consts:[[1,"embed-container"],["sandbox","allow-scripts allow-same-origin","allow","camera;fullscreen;accelerometer;gyroscope;magnetometer",3,"src",4,"ngIf"],["sandbox","allow-scripts allow-same-origin","allow","camera;fullscreen;accelerometer;gyroscope;magnetometer",3,"src"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,ry,3,3,"iframe",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.endpoint))},directives:[r.NgIf],pipes:[iy],encapsulation:2}),e})(),ay=(()=>{class e{constructor(e,t,n,i){this.overlayComponent=e,this.route=t,this.closeValidationCodeOverlayHandler=n,this.documentStatusStore=i}closeLinkClicked(){this.closeValidationCodeOverlayHandler.handleClose((()=>this.overlayComponent.closeOverlay()),this.route.snapshot.data.previousUrl),this.documentStatusStore.refresh()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](fn.Bs),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](ey.a),i["ɵɵdirectiveInject"](Ep.E))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-validate-profile-overlay"]],decls:26,vars:0,consts:[[1,"dark-overlay","modal-overlay"],[1,"modal-content","modal-medium","screen-center"],["overlayType","medium"],["backButton","true",1,"modal-header"],["role","heading",1,"h4-heading",3,"bxTranslate"],[1,"close-link","custom-link",3,"click"],[1,"icon-close"],[1,"modal-body"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"bx-overlay-container",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"bx-overlay-header",3),i["ɵɵtext"](8,"\n                        "),i["ɵɵelementStart"](9,"h4",4),i["ɵɵtext"](10,"\n                            validateDocumentIframe.overlay.content.title\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                        "),i["ɵɵelementStart"](12,"a",5),i["ɵɵlistener"]("click",(function(){return t.closeLinkClicked()})),i["ɵɵtext"](13,"\n                            "),i["ɵɵelement"](14,"i",6),i["ɵɵtext"](15,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                    "),i["ɵɵelementStart"](18,"bx-overlay-body",7),i["ɵɵtext"](19,"\n                        "),i["ɵɵelement"](20,"bx-identity-verification-iframe"),i["ɵɵtext"](21,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n    "))},directives:[Se.P,oy],encapsulation:2}),e})();var sy=n(99199),cy=n(87887),ly=n(11607),dy=n(75934),uy=n(83798),py=n(15480);let hy=(()=>{class e{constructor(e){this.tournamentService=e}ngOnInit(){this._fromEventSubscription=(0,s.fromEvent)(window,"message").pipe((0,c.filter)((e=>"animation-start"===e.data.action||"animation-end"===e.data.action)),(0,c.map)((e=>"animation-start"===e.data.action?"stop":"resume"))).subscribe((e=>this.tournamentService.resume.next(e)))}ngOnDestroy(){this._fromEventSubscription&&(this._fromEventSubscription.unsubscribe(),this._fromEventSubscription=null)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Yn))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","gameMessages",""]]}),e})(),my=(()=>{class e{constructor(e,t,n){this.leaderboardService=e,this.prizesService=t,this.howtoearnService=n,this.earnList=[],this.tournamentStart=new i.EventEmitter,this.tournamentEnd=new i.EventEmitter,this.onPlayerMoveUp=new i.EventEmitter(!0),this.onPlayerRank=new i.EventEmitter(!0),this.onMinBet=new i.EventEmitter(!0),this.showMinBetMessage=!1}ngOnInit(){this.currencyInfo=this.leaderboardService.getCurrencyInfo(),this.getTournamentInfo(this.tournament)}ngOnChanges(e){e.rankings&&e.rankings.currentValue&&this.checkMinBet(e.rankings.currentValue)}closeMinBetMessage(){this.showMinBetMessage=!1,this.closedMessageManually=!0}onLBEventEnded(e){this.tournamentEnd.emit(this.tournament.id)}getTournamentInfo(e){if(e.engines&&e.engines.length&&e.games&&e.games.length){const t=e.engines.find((t=>+t.gameId===e.games[0].id));this.minBetAmount=this.parseSpecialCurrenciesAmount(this.currencyInfo.currency,+t.minBet[this.currencyInfo.currency]).toString()||""}this.earnList=this.howtoearnService.getHowToEarnPoints(this.tournament),this.prizesInfo=this.prizesService.getPrizesPole(e.prizes)}checkMinBet(e){e&&(e.lastBetAmountLessThanMin?(this.showMinBetMessage=!this.closedMessageManually&&e.lastBetAmountLessThanMin,this.showMinBetMessage&&(this.currencyInfo=this.currencyInfo?this.currencyInfo:this.leaderboardService.getCurrencyInfo(),this.onMinBet.emit({amount:this.minBetAmount,currency:this.currencyInfo.symbol}))):(this.showMinBetMessage=!1,this.closedMessageManually=!1,this.onMinBet.emit()))}parseSpecialCurrenciesAmount(e,t){let n=t;return e===gi.BITCOIN&&(n=1e3*t),n}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ni),i["ɵɵinject"](fi),i["ɵɵinject"](Wi))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const gy=function(e,t){return{tag:"textContent",values:e,label:t}},fy=function(e){return[e]};function vy(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",8),i["ɵɵtext"](1,"\n                    "),i["ɵɵelement"](2,"img",9),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"span",10),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementStart"](7,"span",11),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("src",n.imgPath+"/"+e.imgUrl,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](6,fy,i["ɵɵpureFunction2"](3,gy,e.data,e.desc))),i["ɵɵadvance"](3),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](11,fy,i["ɵɵpureFunction2"](8,gy,e.data,e.points)))}}const by=function(e,t){return{symbol:e,amount:t}},yy=function(e){return{tag:"textContent",values:e,label:"leaderboardLeaderboardMode.how-to-earn.label.min-bet"}};let Cy=(()=>{class e{constructor(e){this.imgPath=this.currencySymbol="",e&&e.imgPath&&(this.imgPath=e.imgPath)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Wn,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-widget-how-to-earn"]],inputs:{earnList:"earnList",amount:"amount",currencySymbol:"currencySymbol"},decls:23,vars:9,consts:[[1,"bx-lbi-widget-how-to-earn"],[1,"min-bet-container"],[1,"min-bet"],[1,"icon","icon-min-bet"],[3,"bxTranslate"],[1,"how-to-earn",3,"bxTranslate"],[1,"earn-points-container"],["class","earn-points-item",4,"ngFor","ngForOf"],[1,"earn-points-item"],[1,"earn-img",3,"src"],[1,"earn-desc",3,"bxTranslate"],[1,"earn-pts",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelement"](7,"i",3),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                "),i["ɵɵelementStart"](10,"span",4),i["ɵɵtext"](11,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementStart"](14,"span",5),i["ɵɵtext"](15,"leaderboardLeaderboardMode.how-to-earn.title.how-to-earn"),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n            "),i["ɵɵelementStart"](17,"div",6),i["ɵɵtext"](18,"\n                "),i["ɵɵtemplate"](19,vy,10,13,"div",7),i["ɵɵtext"](20,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n    ")),2&e&&(i["ɵɵadvance"](10),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](7,fy,i["ɵɵpureFunction1"](5,yy,i["ɵɵpureFunction2"](2,by,t.currencySymbol,t.amount)))),i["ɵɵadvance"](9),i["ɵɵproperty"]("ngForOf",t.earnList))},directives:[Se.P,r.NgForOf],styles:[".bx-lbi-widget-how-to-earn[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  align-items: center; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .how-to-earn[_ngcontent-%COMP%] {\n    margin-bottom: 16px; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .earn-points-container[_ngcontent-%COMP%] {\n    display: flex;\n    justify-content: center; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .earn-points-container[_ngcontent-%COMP%]   .earn-points-item[_ngcontent-%COMP%] {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      margin: 0px 20px;\n      justify-content: center; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .earn-points-container[_ngcontent-%COMP%]   .earn-points-item[_ngcontent-%COMP%]:first-child {\n        margin-left: 0px; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .earn-points-container[_ngcontent-%COMP%]   .earn-points-item[_ngcontent-%COMP%]:last-child {\n        margin-right: 0px; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .earn-points-container[_ngcontent-%COMP%]   .earn-points-item[_ngcontent-%COMP%]   .earn-img[_ngcontent-%COMP%] {\n        border-radius: 50%;\n        width: 50px; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .earn-points-container[_ngcontent-%COMP%]   .earn-points-item[_ngcontent-%COMP%]   .earn-desc[_ngcontent-%COMP%] {\n        white-space: nowrap; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .earn-points-container[_ngcontent-%COMP%]   .earn-points-item[_ngcontent-%COMP%]   .earn-pts[_ngcontent-%COMP%] {\n        text-transform: uppercase; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .min-bet-container[_ngcontent-%COMP%] {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    margin-bottom: 16px; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .min-bet-container[_ngcontent-%COMP%]   .min-bet[_ngcontent-%COMP%] {\n      border: 1px solid #E3E3E3;\n      width: 50px;\n      height: 50px;\n      border-radius: 50%;\n      background: #FFFFFF;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      font-size: 18px; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .min-bet-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n      margin-left: 10px; }\n  .bx-lbi-widget-how-to-earn[_ngcontent-%COMP%]   .min-bet-container[_ngcontent-%COMP%]   .img-min-bet[_ngcontent-%COMP%] {\n      width: 50px; }"],changeDetection:0}),e})();const Sy=function(e,t){return{amount:e,currency:t}},xy=function(e){return{tag:"textContent",values:e,label:"leaderboardLeaderboardMode.min-bet.label.min-bet"}},wy=function(e){return[e]};let Ey=(()=>{class e{constructor(e,t){this.cssConfig=t,this.gotItEvent=new i.EventEmitter,this.imgPath=this.currencySymbol="",e&&e.imgPath&&(this.imgPath=e.imgPath)}gotItFunction(){this.gotItEvent.emit()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Wn,8),i["ɵɵdirectiveInject"](Kn,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lbi-widget-min-bet"]],inputs:{amount:"amount",currencySymbol:"currencySymbol"},outputs:{gotItEvent:"gotItEvent"},decls:18,vars:9,consts:[[1,"bx-lbi-widget-min-bet"],[1,"min-bet"],[1,"icon","icon-min-bet"],[1,"title",3,"bxTranslate"],[1,"info",3,"bxTranslate"],["type","button",1,"custom-cta","tertiary",3,"ngClass","bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelement"](5,"i",2),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelementStart"](8,"span",3),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n            "),i["ɵɵelementStart"](11,"span",4),i["ɵɵtext"](12,"leaderboardLeaderboardMode.min-bet.label.increase"),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementStart"](14,"button",5),i["ɵɵlistener"]("click",(function(){return t.gotItFunction()})),i["ɵɵtext"](15,"\n                leaderboardLeaderboardMode.min-bet.button.got-it\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n    ")),2&e&&(i["ɵɵadvance"](8),i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](7,wy,i["ɵɵpureFunction1"](5,xy,i["ɵɵpureFunction2"](2,Sy,t.amount,t.currencySymbol)))),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngClass",null==t.cssConfig.minBet?null:t.cssConfig.minBet.button))},directives:[Se.P,r.NgClass],styles:["[_nghost-%COMP%] {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  z-index: 3; }\n  [_nghost-%COMP%]   .bx-lbi-widget-min-bet[_ngcontent-%COMP%] {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    background: rgba(0, 0, 0, 0.85);\n    color: #FFFFFF;\n    padding: 38px 54px; }\n  [_nghost-%COMP%]   .bx-lbi-widget-min-bet[_ngcontent-%COMP%]   .min-bet[_ngcontent-%COMP%] {\n      width: 50px;\n      height: 50px;\n      border-radius: 50%;\n      background: #FFFFFF;\n      color: #000000;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      font-size: 18px; }\n  [_nghost-%COMP%]   .bx-lbi-widget-min-bet[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n      width: 50px; }\n  [_nghost-%COMP%]   .bx-lbi-widget-min-bet[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n      font-size: 16px;\n      font-weight: bold; }\n  [_nghost-%COMP%]   .bx-lbi-widget-min-bet[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%] {\n      font-size: 14px;\n      text-align: center; }\n  [_nghost-%COMP%]   .bx-lbi-widget-min-bet[_ngcontent-%COMP%]   .custom-cta.tertiary[_ngcontent-%COMP%] {\n      color: inherit; }"],changeDetection:0}),e})();function Iy(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lbi-widget-min-bet",9),i["ɵɵlistener"]("gotItEvent",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().closeMinBetMessage()})),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("currencySymbol",e.currencyInfo.symbol)("amount",e.minBetAmount)}}function Py(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lbi-ranking-table",10),i["ɵɵlistener"]("onPlayerMoveUp",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onPlayerMoveUp.emit(t)}))("onPlayerRank",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onPlayerRank.emit(t)})),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ranking",e.rankings.ranking)("prizesInfo",e.prizesInfo)("modal",!1)}}let Ty=(()=>{class e extends my{constructor(e,t,n){super(e,t,n)}onLBEventStarted(){this.tournamentStart.emit()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ni),i["ɵɵdirectiveInject"](fi),i["ɵɵdirectiveInject"](Wi))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-widget-leaderboard-mode"]],inputs:{rankings:"rankings",tournament:"tournament"},outputs:{tournamentStart:"tournamentStart",tournamentEnd:"tournamentEnd",onMinBet:"onMinBet",onPlayerMoveUp:"onPlayerMoveUp",onPlayerRank:"onPlayerRank"},features:[i["ɵɵInheritDefinitionFeature"]],decls:26,vars:7,consts:[[1,"bx-lbi-widget-leaderboard-mode"],[1,"leaderboard-countdown-container"],[3,"startDate","endDate","onLBEventStarted","onLBEventEnded"],[1,"leaderboard-info-container"],[1,"ranking-container"],[3,"currencySymbol","amount","gotItEvent",4,"ngIf"],[3,"ranking","prizesInfo","modal","onPlayerMoveUp","onPlayerRank",4,"ngIf"],[1,"how-to-earn-container"],[3,"currencySymbol","earnList","amount"],[3,"currencySymbol","amount","gotItEvent"],[3,"ranking","prizesInfo","modal","onPlayerMoveUp","onPlayerRank"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"bx-lpl-lb-countdown",2),i["ɵɵlistener"]("onLBEventStarted",(function(){return t.onLBEventStarted()}))("onLBEventEnded",(function(e){return t.onLBEventEnded(e)})),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n\n            "),i["ɵɵelementStart"](9,"div",3),i["ɵɵtext"](10,"\n                "),i["ɵɵelementStart"](11,"div",4),i["ɵɵtext"](12,"\n                    "),i["ɵɵtemplate"](13,Iy,2,2,"bx-lbi-widget-min-bet",5),i["ɵɵtext"](14,"\n\n                    "),i["ɵɵtemplate"](15,Py,2,3,"bx-lbi-ranking-table",6),i["ɵɵtext"](16,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                "),i["ɵɵelementStart"](18,"div",7),i["ɵɵtext"](19,"\n                    "),i["ɵɵelementStart"](20,"bx-lbi-widget-how-to-earn",8),i["ɵɵtext"](21,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](23,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n    ")),2&e&&(i["ɵɵadvance"](5),i["ɵɵproperty"]("startDate",t.tournament.validFrom)("endDate",t.tournament.validTo),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngIf",t.showMinBetMessage),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.rankings&&t.rankings.ranking&&t.rankings.ranking.length>0),i["ɵɵadvance"](5),i["ɵɵproperty"]("currencySymbol",t.currencyInfo.symbol)("earnList",t.earnList)("amount",t.minBetAmount))},directives:[qo,r.NgIf,Cy,Ey,oo],styles:[".bx-lbi-widget-leaderboard-mode[_ngcontent-%COMP%] {\n  height: 100%;\n  display: flex;\n  flex-direction: column; }\n  .bx-lbi-widget-leaderboard-mode[_ngcontent-%COMP%]   .leaderboard-countdown-container[_ngcontent-%COMP%] {\n    padding: 16px 0px;\n    min-height: 86px;\n    display: flex;\n    align-items: center;\n    justify-content: center; }\n  .bx-lbi-widget-leaderboard-mode[_ngcontent-%COMP%]   .leaderboard-info-container[_ngcontent-%COMP%] {\n    flex: 1 1 100%; }\n  .bx-lbi-widget-leaderboard-mode[_ngcontent-%COMP%]   .leaderboard-info-container[_ngcontent-%COMP%]   .ranking-container[_ngcontent-%COMP%] {\n      position: relative; }\n  .bx-lbi-widget-leaderboard-mode[_ngcontent-%COMP%]   .leaderboard-info-container[_ngcontent-%COMP%]   .how-to-earn-container[_ngcontent-%COMP%] {\n      padding: 16px 42px;\n      height: 100%; }"],changeDetection:0}),e})(),_y=(()=>{class e{constructor(e,t){this.route=e,this.sanitizer=t}ngOnInit(){const e=this.route.snapshot.data.tournament;e&&(this.tac=e.termsAndConditions),this.termsAndConditions=this.sanitizer.bypassSecurityTrustHtml(this.tac)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](Le.DomSanitizer))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-terms-and-conditions"]],inputs:{tac:"tac"},decls:4,vars:1,consts:[[1,"lb-terms-and-conditions",3,"innerHTML"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("innerHTML",t.termsAndConditions,i["ɵɵsanitizeHtml"]))},styles:[".lb-terms-and-conditions[_ngcontent-%COMP%] {\n  overflow: auto;\n  -webkit-overflow-scrolling: touch;\n  max-height: 100%; }"]}),e})(),My=(()=>{class e{constructor(){this.finalRankingFullList=new i.EventEmitter}onFullRankingList(){this.finalRankingFullList.emit()}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-lb-final-ranking-header"]],outputs:{finalRankingFullList:"finalRankingFullList"},decls:18,vars:0,consts:[[1,"bx-lb-final-ranking-header","box-ranking-table"],[1,"header-ranking"],[1,"title-container"],[1,"icon","icon-trophy"],[1,"label-title",3,"bxTranslate"],[1,"custom-link",3,"bxTranslate","click"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                    "),i["ɵɵelement"](7,"i",3),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementStart"](9,"p",4),i["ɵɵtext"](10,"\n                        leaderboardFinalRanking.title.final-ranking\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n\n                "),i["ɵɵelementStart"](13,"span",5),i["ɵɵlistener"]("click",(function(){return t.onFullRankingList()})),i["ɵɵtext"](14,"\n                    leaderboardFinalRanking.link.fullList\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n    "))},directives:[Se.P],styles:[".bx-lb-final-ranking-header[_ngcontent-%COMP%]   .header-ranking[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center; }\n  .bx-lb-final-ranking-header[_ngcontent-%COMP%]   .header-ranking[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%] {\n    display: flex;\n    flex: 1 1 100%;\n    align-items: center; }\n  .bx-lb-final-ranking-header[_ngcontent-%COMP%]   .header-ranking[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .icon-trophy[_ngcontent-%COMP%] {\n      margin-right: 10px; }\n  .bx-lb-final-ranking-header[_ngcontent-%COMP%]   .header-ranking[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]   .label-title[_ngcontent-%COMP%] {\n      font-weight: 800; }\n  .bx-lb-final-ranking-header[_ngcontent-%COMP%]   .header-ranking[_ngcontent-%COMP%]   .custom-link[_ngcontent-%COMP%] {\n    font-size: 12px;\n    white-space: nowrap; }"],changeDetection:0}),e})();function Oy(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a"),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"bx-leaderboard-picture",17),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit;i["ɵɵadvance"](2),i["ɵɵproperty"]("imageUrl",e.cardImage)("imageTooltip",e.cardImageAltText)("imgSizeClass","xsmall")}}const Ay=function(e){return{date:e}},ky=function(e){return{tag:"textContent",values:e,label:"leaderboardList.date.today"}},jy=function(e){return[e]};function Ny(e,t){if(1&e&&(i["ɵɵelement"](0,"span",18),i["ɵɵpipe"](1,"bxDate")),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](8,jy,i["ɵɵpureFunction1"](6,ky,i["ɵɵpureFunction1"](4,Ay,i["ɵɵpipeBind2"](1,1,e.displayDate,"hh:mm a")))))}}function Ry(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span"),i["ɵɵtext"](1),i["ɵɵpipe"](2,"bxDate"),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("\n                    ",i["ɵɵpipeBind2"](2,1,e.displayDate,"MMM D, h:mm a"),"\n                ")}}function Dy(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",19),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("lbDuration",e.tournament)}}function Ly(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lpl-lb-countdown",20),i["ɵɵlistener"]("onLBEventStarted",(function(){i["ɵɵrestoreView"](e);const t=i["ɵɵnextContext"]();return t.onLBEventStarted(t.tournament)}))("onLBEventEnded",(function(){i["ɵɵrestoreView"](e);const t=i["ɵɵnextContext"]();return t.onLBEventEnded(t.tournament)}))("onLBLateJoinEnd",(function(){i["ɵɵrestoreView"](e);const t=i["ɵɵnextContext"]();return t.onLBLateJoinEnd(t.tournament)})),i["ɵɵpipe"](1,"toDatePipe"),i["ɵɵpipe"](2,"toDatePipe"),i["ɵɵtext"](3,"\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("startDate",i["ɵɵpipeBind1"](1,2,e.tournament.validFrom))("endDate",i["ɵɵpipeBind1"](2,4,e.tournament.validTo))}}function Fy(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",21),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",22),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"div",23),i["ɵɵtext"](5,"\n                    "),i["ɵɵelement"](6,"i",24),i["ɵɵtext"](7,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngStyle",e.checkVisibilityByDevice())}}function By(e,t){if(1&e&&i["ɵɵelement"](0,"i",25),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",e.tournament.showInfo?"icon-arrow-up":"icon-arrow-down")}}const Uy=["*"];let Vy=(()=>{class e extends _n{constructor(e,t,n,r){super(e),this.deviceService=t,this.cssConfig=n,this.isAfterPipe=r,this.onLateJoinLB=new i.EventEmitter,this.onEndedLB=new i.EventEmitter,this.onStartedLB=new i.EventEmitter,this.onInfoLB=new i.EventEmitter,this.onActionsLB=new i.EventEmitter}ngOnInit(){super.ngOnInit(),this.checkDisplayDate()}ngOnDestroy(){this._updateSubscription&&(this._updateSubscription.unsubscribe(),this._updateSubscription=null)}onLBLateJoinEnd(e){this.onLateJoinLB.emit(e)}onLBEventEnded(e){this.onEndedLB.emit(e)}onLBEventStarted(e){this.onStartedLB.emit(e)}onArrowActionsClick(){this.onActionsLB.emit(this.tournament)}onTournamentDetailClick(){this.onInfoLB.emit(this.tournament)}checkVisibilityByDevice(){let e={};return this.deviceService.isMobile()?e.display=this.tournament.joined?"flex":"none":e.visibility=this.tournament.joined?"inherit":"hidden",e}checkDisplayDate(){this.isAfterPipe.transform(this.tournament.validFrom)||this.isAfterPipe.transform(this.tournament.validTo)?this.displayDate=this.tournament.validFrom:this.displayDate=this.tournament.validTo}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Tn),i["ɵɵdirectiveInject"](Bt.U),i["ɵɵdirectiveInject"](Kn,8),i["ɵɵdirectiveInject"](si))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-list-item"]],inputs:{tournament:"tournament"},outputs:{onLateJoinLB:"onLateJoinLB",onEndedLB:"onEndedLB",onStartedLB:"onStartedLB",onInfoLB:"onInfoLB",onActionsLB:"onActionsLB"},features:[i["ɵɵInheritDefinitionFeature"]],ngContentSelectors:Uy,decls:57,vars:27,consts:[[1,"lb-list-body-row"],[1,"lb-list-body-column","img-container","no-flex",3,"click"],[1,"game-thumbnail",3,"ngClass"],[4,"ngIf"],[1,"lb-list-body-column","layout-column-xs","info-container",3,"click"],[1,"lb-list-body-column-item","title-item","text-ellipsis"],[1,"title"],[1,"lb-list-body-column-item","date-item"],[3,"bxTranslate",4,"ngIf"],[1,"lb-list-body-column-item","duration-item"],[3,"lbDuration",4,"ngIf"],["hideLabel","all",3,"startDate","endDate","onLBEventStarted","onLBEventEnded","onLBLateJoinEnd",4,"ngIf"],["class","lb-list-body-column no-flex join-container",3,"ngStyle",4,"ngIf"],[1,"lb-list-body-column","hidden-xs","actions-content","no-flex"],[1,"lb-list-body-column","no-flex","arrows",3,"click"],["class","icon hidden-xs",3,"ngClass",4,"ngIf"],[1,"icon","icon-arrow-next","visible-xs"],[3,"imageUrl","imageTooltip","imgSizeClass"],[3,"bxTranslate"],[3,"lbDuration"],["hideLabel","all",3,"startDate","endDate","onLBEventStarted","onLBEventEnded","onLBLateJoinEnd"],[1,"lb-list-body-column","no-flex","join-container",3,"ngStyle"],[1,"lb-list-body-column-item"],[1,"joined"],[1,"icon","icon-checked"],[1,"icon","hidden-xs",3,"ngClass"]],template:function(e,t){1&e&&(i["ɵɵprojectionDef"](),i["ɵɵtext"](0,"\n    "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n        "),i["ɵɵelementStart"](3,"div",1),i["ɵɵlistener"]("click",(function(){return t.onTournamentDetailClick()})),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"article",2),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,Oy,5,3,"a",3),i["ɵɵpipe"](8,"async"),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n\n        "),i["ɵɵelementStart"](12,"div",4),i["ɵɵlistener"]("click",(function(){return t.onTournamentDetailClick()})),i["ɵɵtext"](13,"\n            "),i["ɵɵelementStart"](14,"div",5),i["ɵɵtext"](15,"\n                "),i["ɵɵelementStart"](16,"span",6),i["ɵɵtext"](17),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n\n            "),i["ɵɵelementStart"](20,"div",7),i["ɵɵtext"](21,"\n                "),i["ɵɵtemplate"](22,Ny,2,10,"span",8),i["ɵɵpipe"](23,"isSamePipe"),i["ɵɵtext"](24,"\n\n                "),i["ɵɵtemplate"](25,Ry,3,4,"span",3),i["ɵɵpipe"](26,"isSamePipe"),i["ɵɵtext"](27,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](28,"\n\n            "),i["ɵɵelementStart"](29,"div",9),i["ɵɵtext"](30,"\n                "),i["ɵɵtemplate"](31,Dy,2,1,"span",10),i["ɵɵpipe"](32,"isBeforePipe"),i["ɵɵpipe"](33,"isAfterPipe"),i["ɵɵtext"](34,"\n                "),i["ɵɵtemplate"](35,Ly,4,6,"bx-lpl-lb-countdown",11),i["ɵɵpipe"](36,"isBeforePipe"),i["ɵɵpipe"](37,"isAfterPipe"),i["ɵɵtext"](38,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](39,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](40,"\n\n        "),i["ɵɵtemplate"](41,Fy,10,1,"div",12),i["ɵɵpipe"](42,"isAfterPipe"),i["ɵɵtext"](43,"\n\n        "),i["ɵɵelementStart"](44,"div",13),i["ɵɵtext"](45,"\n            "),i["ɵɵprojection"](46),i["ɵɵtext"](47,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](48,"\n\n        "),i["ɵɵelementStart"](49,"div",14),i["ɵɵlistener"]("click",(function(){return t.onArrowActionsClick()})),i["ɵɵtext"](50,"\n            "),i["ɵɵtemplate"](51,By,1,1,"i",15),i["ɵɵpipe"](52,"isAfterPipe"),i["ɵɵtext"](53,"\n            "),i["ɵɵelement"](54,"i",16),i["ɵɵtext"](55,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](56,"\n    "),i["ɵɵelementEnd"]()),2&e&&(i["ɵɵadvance"](5),i["ɵɵproperty"]("ngClass",null==t.cssConfig.listItem?null:t.cssConfig.listItem.img),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](8,9,t.tournament.game)),i["ɵɵadvance"](10),i["ɵɵtextInterpolate"](t.tournament.name),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](23,11,t.displayDate)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",!i["ɵɵpipeBind1"](26,13,t.displayDate)),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",!(i["ɵɵpipeBind1"](32,15,t.tournament.validFrom)&&i["ɵɵpipeBind1"](33,17,t.tournament.validTo))),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](36,19,t.tournament.validFrom)&&i["ɵɵpipeBind1"](37,21,t.tournament.validTo)),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](42,23,t.tournament.validTo)),i["ɵɵadvance"](10),i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](52,25,t.tournament.validTo)))},directives:[r.NgClass,r.NgIf,To,Se.P,Gn,qo,r.NgStyle],pipes:[r.AsyncPipe,li,ci,si,ra.a,ta],styles:["[_nghost-%COMP%]   .joined[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  color: #FFFFFF; }\n  [_nghost-%COMP%]   .joined[_ngcontent-%COMP%]   .icon-checked[_ngcontent-%COMP%] {\n    font-size: 12px;\n    background-color: #368031;\n    border-radius: 50%;\n    padding: 2px;\n    width: 16px;\n    height: 16px; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column[_ngcontent-%COMP%] {\n  padding: 0px 12px; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.actions-content[_ngcontent-%COMP%] {\n    flex: 0 3 100%; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.arrows[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%] {\n    cursor: pointer;\n    color: #808080; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.img-container[_ngcontent-%COMP%] {\n    flex: 1 1 18%; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.img-container[_ngcontent-%COMP%]   .game-thumbnail[_ngcontent-%COMP%] {\n      padding-bottom: 0px; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.img-container[_ngcontent-%COMP%]   .game-thumbnail[_ngcontent-%COMP%]   .img-responsive[_ngcontent-%COMP%] {\n        z-index: 0; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.info-container[_ngcontent-%COMP%] {\n    overflow: hidden; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.no-flex[_ngcontent-%COMP%] {\n    flex: none; }\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.lb-visible-xs[_ngcontent-%COMP%] {\n    display: none; }\n  @media screen and (min-width: 769px) {\n    [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column[_ngcontent-%COMP%]   .lb-list-body-column-item.date-item[_ngcontent-%COMP%] {\n      flex: 1 1 35%; }\n    [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column[_ngcontent-%COMP%]   .lb-list-body-column-item.title-item[_ngcontent-%COMP%] {\n      flex: 1 1 55%; }\n    [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column[_ngcontent-%COMP%]   .lb-list-body-column-item.duration-item[_ngcontent-%COMP%] {\n      display: flex;\n      flex: 1 1 10%; } }\n  @media screen and (max-width: 768px) {\n  [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column[_ngcontent-%COMP%] {\n    padding: 0px 8px; }\n    [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.layout-column-xs[_ngcontent-%COMP%] {\n      flex-direction: column;\n      justify-content: center;\n      align-items: baseline; }\n    [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column.lb-visible-xs[_ngcontent-%COMP%] {\n      display: flex; }\n    [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column[_ngcontent-%COMP%]   .lb-list-body-column-item[_ngcontent-%COMP%] {\n      flex: none; }\n      [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column[_ngcontent-%COMP%]   .lb-list-body-column-item.title-item[_ngcontent-%COMP%] {\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        max-width: 100%; }\n      [_nghost-%COMP%]   .lb-list-body-row[_ngcontent-%COMP%]   .lb-list-body-column[_ngcontent-%COMP%]   .lb-list-body-column-item.duration-item[_ngcontent-%COMP%]   bx-lpl-lb-countdown[_ngcontent-%COMP%]     .bx-lpl-final-countdown .wrapper-countdown {\n        width: 28px;\n        height: 28px; } }\n  [_nghost-%COMP%]   .text-ellipsis[_ngcontent-%COMP%] {\n  overflow: hidden;\n  text-overflow: ellipsis; }"]}),e})();const Gy=["descriptionRef"],Hy=["ref"],zy=function(e){return{active:e}};function $y(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",9),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onNavigationTab("description")})),i["ɵɵtext"](1,"\n                    leaderboardGame.tab.title.description\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,zy,"description"===e.activeTab))}}function Wy(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementContainer"](2,10),i["ɵɵtext"](3,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngTemplateOutlet",e.template)}}function qy(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-lb-terms-and-conditions",22),i["ɵɵtext"](1,"\n                                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](4);i["ɵɵproperty"]("tac",e.termsAndConditions)}}function Ky(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-lb-accordion"),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"bx-lb-collapsible",13),i["ɵɵtext"](3,"\n                            "),i["ɵɵelementStart"](4,"bx-lb-widget-leaderboard-mode",14),i["ɵɵlistener"]("tournamentStart",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).onLeaderboardStarted()}))("tournamentEnd",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).onLeaderboardEnded()})),i["ɵɵtext"](5,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                        "),i["ɵɵelementStart"](8,"bx-lb-collapsible"),i["ɵɵtext"](9,"\n                            "),i["ɵɵelementStart"](10,"div",15),i["ɵɵtext"](11,"\n                                "),i["ɵɵelement"](12,"i",16),i["ɵɵtext"](13,"\n                                "),i["ɵɵelementStart"](14,"span",17),i["ɵɵtext"](15,"leaderboardGame.accordion.header.detail"),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                            "),i["ɵɵelementStart"](18,"div",18),i["ɵɵtext"](19,"\n                                "),i["ɵɵelementStart"](20,"bx-lpl-prizes-and-details",19),i["ɵɵtext"](21,"\n                                "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                                "),i["ɵɵelementStart"](23,"bx-lb-collapsible",20),i["ɵɵlistener"]("expandEvent",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).onExpandTAC(t)})),i["ɵɵtext"](24,"\n                                    "),i["ɵɵelementStart"](25,"div",15),i["ɵɵtext"](26,"\n                                        "),i["ɵɵelementStart"](27,"span",17),i["ɵɵtext"](28,"\n                                            leaderboardPrizesAndDetails.links.terms-and-conditions\n                                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](29,"\n                                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\n                                    "),i["ɵɵtemplate"](31,qy,2,1,"bx-lb-terms-and-conditions",21),i["ɵɵtext"](32,"\n                                "),i["ɵɵelementEnd"](),i["ɵɵtext"](33,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](34,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](35,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](2),i["ɵɵproperty"]("default",!0),i["ɵɵadvance"](2),i["ɵɵproperty"]("tournament",e.leaderboard)("rankings",e.ranking),i["ɵɵadvance"](16),i["ɵɵproperty"]("tournament",e.leaderboard),i["ɵɵadvance"](3),i["ɵɵproperty"]("opened",!1),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngIf",e.termsAndConditions)}}function Xy(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",23),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"bx-lbi-final-ranking",24),i["ɵɵlistener"]("onYourPrizeClick",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).onFinalRankingYourPrize(t)})),i["ɵɵtext"](3,"\n                            "),i["ɵɵelementStart"](4,"bx-lb-final-ranking-header",25),i["ɵɵlistener"]("finalRankingFullList",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).onFinalRankLink()})),i["ɵɵtext"](5,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](2),i["ɵɵproperty"]("tournament",e.leaderboard)("ranking",e.ranking)}}function Yy(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,Ky,36,6,"bx-lb-accordion",11),i["ɵɵtext"](3,"\n\n                    "),i["ɵɵtemplate"](4,Xy,8,2,"div",12),i["ɵɵtext"](5,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e.ranking||e.ranking&&!e.ranking.finished&&!e.ranking.cancelled),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.ranking&&e.ranking.finished&&!e.ranking.cancelled)}}const Jy=function(e){return{odd:e}};function Qy(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"bx-leaderboard-list-item",28),i["ɵɵtext"](3,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                        "),i["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit,n=t.odd;i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,Jy,n))("tournament",e)}}function Zy(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"div",26),i["ɵɵtext"](3,"\n                        "),i["ɵɵtemplate"](4,Qy,5,4,"ng-container",27),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                "),i["ɵɵelementContainerEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](4),i["ɵɵproperty"]("ngForOf",e.tournaments)}}function eC(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",1,2),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"ul",3),i["ɵɵtext"](4,"\n                "),i["ɵɵtemplate"](5,$y,2,3,"li",4),i["ɵɵtext"](6,"\n                "),i["ɵɵelementStart"](7,"li",5),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onNavigationTab("leaderboard")})),i["ɵɵtext"](8,"\n                    leaderboardGame.tab.title.leaderboard\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n                "),i["ɵɵelementStart"](10,"li",6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onNavigationTab("next")})),i["ɵɵtext"](11,"\n                    leaderboardGame.tab.title.next\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n\n            "),i["ɵɵelementStart"](14,"div",7),i["ɵɵtext"](15,"\n                "),i["ɵɵtemplate"](16,Wy,4,1,"ng-container",8),i["ɵɵtext"](17,"\n                "),i["ɵɵtemplate"](18,Yy,6,2,"ng-container",8),i["ɵɵtext"](19,"\n                "),i["ɵɵtemplate"](20,Zy,7,1,"ng-container",8),i["ɵɵtext"](21,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",null==e.cssConfig.leaderboardGame?null:e.cssConfig.leaderboardGame.tab),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.template),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](8,zy,"leaderboard"===e.activeTab)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](10,zy,"next"===e.activeTab)),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngSwitch",e.activeTab),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngSwitchCase","description"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngSwitchCase","leaderboard"),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngSwitchCase","next")}}let tC=(()=>{class e{constructor(e,t,n,r,o,a,s,c){this.leaderboardService=e,this.translateService=t,this.toastNotificationService=n,this.tournamentService=r,this.loader=o,this.router=a,this.config=s,this.cssConfig=c,this.noLeaderboard=new i.EventEmitter,this.onLeaderboard=new i.EventEmitter}ngOnInit(){const e=this.tournamentService.selected.value;!e&&this.gameInfo&&this.gameInfo.id?this.obtainTournamentByGame(+this.gameInfo.id):e&&this.gameInfo&&this.gameInfo.id?+e.games[0].id!=+this.gameInfo.id?(this.leaderboard=null,this.tournamentService.selected.next(null),this.obtainTournamentByGame(+this.gameInfo.id)):(this.leaderboard=e,this.activeTab="leaderboard",this.onLeaderboard.emit()):this.noLeaderboard.emit()}ngOnDestroy(){this.tournamentService.selected.next(null),this._rankSubscription&&(this._rankSubscription.unsubscribe(),this._rankSubscription=null),this._activeSubscription&&(this._activeSubscription.unsubscribe(),this._activeSubscription=null),this.leaderboardService.cleanRankSubscription(),this._leaderboardSubscription&&(this._leaderboardSubscription.unsubscribe(),this._leaderboardSubscription=null)}onExpandTAC(e){e&&this.leaderboard&&!this.termsAndConditions&&(this._leaderboardSubscription=this.leaderboardService.getTournament(this.leaderboard.id).subscribe((e=>{this.termsAndConditions=e.termsAndConditions})))}onLeaderboardStarted(){this.leaderboardService.getTournament(this.leaderboard.id).subscribe((e=>this.leaderboard=Object.assign({},this.leaderboard,e))),this.getRankingInfo(this.leaderboard.id)}onLeaderboardEnded(){this._loader=this.loader.start({modal:!0},this.vch)}onNavigationTab(e){this.activeTab=e,"next"===e&&(this._loader=this.loader.start({modal:!0},this.vch),this._activeSubscription=this.leaderboardService.getActiveTournaments().subscribe((e=>{this.tournaments=e.filter((e=>e.id!==this.leaderboard.id)),this._loader.close.emit()}))),this.leaderboard&&this.tournamentService.selected.next(this.leaderboard)}onFinalRankLink(){this.router.navigate([this.config.routes.casino,nl,"today-results"])}onFinalRankingYourPrize(e){switch(e){case"BONUS":case"LOYALTY":this.router.navigateByUrl(this.config.routes.bonuses);break;case"MANUAL":this.router.navigateByUrl(this.config.routes.messages)}}getRankingInfo(e){this._rankSubscription||(this._rankSubscription=this.leaderboardService.resumableRanking(e).subscribe((e=>{this.ranking=e,(e.cancelled||e.finished)&&(this._rankSubscription&&this._rankSubscription.unsubscribe(),this._loader&&this._loader.close.emit(),e.cancelled&&this.showMessage("leaderboardShared.custom-messages.message.cancelled","error"))})))}showMessage(e,t,n=5e3,i=0){return this.translateService.translate(e).pipe((0,c.map)((e=>({msg:e,modal:!1,type:t,timeout:n,delay:i})))).subscribe((e=>{this.toastNotificationService.add(e)}))}obtainTournamentByGame(e){this.leaderboardService.getUserTournament(e).subscribe((e=>{this.leaderboard=e,this.leaderboard?(this.activeTab="leaderboard",this.onLeaderboard.emit()):this.noLeaderboard.emit()}),(()=>this.noLeaderboard.emit()))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ni),i["ɵɵdirectiveInject"](fe.s),i["ɵɵdirectiveInject"](ve.i),i["ɵɵdirectiveInject"](Yn),i["ɵɵdirectiveInject"](ny.b),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](Wn),i["ɵɵdirectiveInject"](Kn,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-leaderboard-game"]],contentQueries:function(e,t,n){if(1&e&&i["ɵɵcontentQuery"](n,Gy,5,i.TemplateRef),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.template=e.first)}},viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Hy,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.vch=e.first)}},inputs:{gameInfo:"gameInfo"},outputs:{noLeaderboard:"noLeaderboard",onLeaderboard:"onLeaderboard"},decls:3,vars:1,consts:[["class","bx-lb-game","gameMessages","",4,"ngIf"],["gameMessages","",1,"bx-lb-game"],["ref",""],[1,"custom-tab",3,"ngClass"],["role","button","title","Description",3,"ngClass","bxTranslate","click",4,"ngIf"],["role","button","title","Leaderboard",3,"ngClass","bxTranslate","click"],["role","button","title","Next Leaderboards",3,"ngClass","bxTranslate","click"],[1,"content","content-overflow",3,"ngSwitch"],[4,"ngSwitchCase"],["role","button","title","Description",3,"ngClass","bxTranslate","click"],[3,"ngTemplateOutlet"],[4,"ngIf"],["class","final-rank-wrapper",4,"ngIf"],[3,"default"],[3,"tournament","rankings","tournamentStart","tournamentEnd"],[1,"bx-lb-collapsible-header"],[1,"icon","icon-conditions"],[3,"bxTranslate"],[1,"prize-details-container"],[1,"column-layout",3,"tournament"],[3,"opened","expandEvent"],[3,"tac",4,"ngIf"],[3,"tac"],[1,"final-rank-wrapper"],[3,"tournament","ranking","onYourPrizeClick"],[3,"finalRankingFullList"],[1,"lb-next-leaderboards"],[4,"ngFor","ngForOf"],[3,"ngClass","tournament"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,eC,23,12,"div",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.leaderboard))},directives:[r.NgIf,hy,r.NgClass,Se.P,r.NgSwitch,r.NgSwitchCase,r.NgTemplateOutlet,wl,Al,Ty,Ci,_y,nr,My,r.NgForOf,Vy],styles:["[_nghost-%COMP%] {\n  height: 100%; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%] {\n    position: relative;\n    height: 100%;\n    display: flex;\n    flex-direction: column; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   ul.custom-tab.quaternary[_ngcontent-%COMP%] {\n      flex: none; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] {\n      flex: 1 1 100%;\n      display: flex;\n      flex-direction: column; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content.content-overflow[_ngcontent-%COMP%] {\n        overflow: hidden; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .final-rank-wrapper[_ngcontent-%COMP%]     {\n        height: 100%; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .final-rank-wrapper[_ngcontent-%COMP%]     .bx-lbi-final-ranking {\n          height: 100%; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .final-rank-wrapper[_ngcontent-%COMP%]     .header-ranking {\n          margin: 0px;\n          padding: 16px 16px 8px;\n          font-size: 12px; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .final-rank-wrapper[_ngcontent-%COMP%]     .bx-lbi-final-ranking-position {\n          padding: 80px 48px; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   bx-lb-accordion[_ngcontent-%COMP%]     {\n        display: flex;\n        height: 100%;\n        flex-direction: column; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   bx-lb-accordion[_ngcontent-%COMP%]     bx-lb-collapsible {\n          display: flex;\n          flex-direction: column; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   bx-lb-accordion[_ngcontent-%COMP%]     bx-lb-collapsible.expanded {\n            flex: 0 1 100%; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   bx-lb-accordion[_ngcontent-%COMP%]     bx-lb-collapsible .collapsible-container {\n            flex: 1 1 100%;\n            overflow: hidden; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .prize-details-container[_ngcontent-%COMP%] {\n        padding: 0px 16px 16px;\n        height: 100%;\n        display: flex;\n        flex-direction: column; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .prize-details-container[_ngcontent-%COMP%]     h4 {\n          text-align: left; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .prize-details-container[_ngcontent-%COMP%]     h4:first-child {\n            display: none; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .prize-details-container[_ngcontent-%COMP%]     .lb-terms-and-conditions {\n          padding: 1px 0; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%] {\n      height: 100%;\n      display: flex;\n      flex-direction: column;\n      overflow-y: auto; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     .bx-leaderboard-list-item .game-thumbnail.img-small .img-responsive {\n        height: 58px;\n        min-width: 100%; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row {\n        padding: 8px 8px;\n        display: flex;\n        flex-direction: row;\n        border-bottom: solid 1px #CECECE;\n        overflow: hidden; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column {\n          display: flex;\n          flex-direction: column;\n          align-items: flex-start;\n          justify-content: center;\n          flex: 1 1 100%; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column .game-thumbnail.img-small .img-responsive {\n            height: 58px;\n            min-width: 100%; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column.info-container {\n            max-width: 50%;\n            overflow: hidden; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column.no-flex {\n            flex: none; }\n  [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column.arrows {\n            display: none; }\n  @media screen and (min-width: 769px) {\n            [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column .lb-list-body-column-item {\n              justify-content: center; }\n              [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column .lb-list-body-column-item.date-item, [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column .lb-list-body-column-item.title-item, [_nghost-%COMP%]   .bx-lb-game[_ngcontent-%COMP%]   .lb-next-leaderboards[_ngcontent-%COMP%]     bx-leaderboard-list-item .lb-list-body-row .lb-list-body-column .lb-list-body-column-item.duration-item {\n                flex: none; } }"]}),e})();const nC=["gameIframe"];function iC(e,t){if(1&e&&(i["ɵɵelementStart"](0,"label",10),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("gamecardplay.",e.data.mode,"")}}function rC(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",11),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).playReal()})),i["ɵɵtext"](1,"\n                        gamecardplay.button\n                    "),i["ɵɵelementEnd"]()}}function oC(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",12),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"bx-leaderboard-game",13),i["ɵɵlistener"]("noLeaderboard",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).hideLeaderboardGame=!0})),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("gameInfo",e.data.game)}}function aC(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-overlay-container",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"bx-overlay-header"),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementStart"](6,"h1",3),i["ɵɵtext"](7),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                    "),i["ɵɵtemplate"](9,iC,2,1,"label",4),i["ɵɵtext"](10,"\n                    "),i["ɵɵtemplate"](11,rC,2,0,"button",5),i["ɵɵtext"](12,"\n                    "),i["ɵɵelementStart"](13,"button",6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().fullScreenService.toggleFullScreen()})),i["ɵɵtext"](14,"\n                        "),i["ɵɵelement"](15,"i"),i["ɵɵtext"](16,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n                "),i["ɵɵelementStart"](19,"bx-overlay-body"),i["ɵɵtext"](20,"\n                    "),i["ɵɵtemplate"](21,oC,5,1,"div",7),i["ɵɵtext"](22,"\n                    "),i["ɵɵelementStart"](23,"iframe",8,9),i["ɵɵtext"](25,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](28,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](7),i["ɵɵtextInterpolate"](e.data.game.name),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!(null!=e.gamecardPlayConfig&&e.gamecardPlayConfig.hideGameMode)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf","practice"==e.data.mode),i["ɵɵadvance"](4),i["ɵɵclassMapInterpolate1"]("icon icon-",e.getIsFullScreen()?"minimise":"maximise",""),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",e.isLeaderboardsAvailable()),i["ɵɵadvance"](2),i["ɵɵproperty"]("src",e.safeGameUrl,i["ɵɵsanitizeResourceUrl"])}}let sC=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m,g,f){this.leaderboardsAvailableService=e,this.router=t,this.route=n,this.domSanitizer=i,this.windowService=r,this.userInfoService=o,this.gameMostPlayedService=a,this.fullScreenService=s,this.deviceService=c,this.siteConfigService=l,this.gamecardPlayConfig=d,this.urlMatchedAnalyticsHandler=u,this.gamecardService=p,this.analyticsService=h,this.linkTrackService=m,this.gameUrlService=g,this.platformId=f,this.isFullScreen=!1,this.showWrapper=!1,this.hideLeaderboardGame=!1,this.crossMessage=e=>{const{data:t,source:n}=e;if(n===lt(["nativeElement","contentWindow"])(this.iframeRef)){const{action:e,option:{destination:n}={destination:void 0}}=t;"navigation"===e&&n&&this.userInfoEvents(new sy.X(n))}}}ngOnInit(){this.data=this.route.snapshot.data,this.data.game&&this.gameMostPlayedService.setPlayed(+this.data.game.id),this.deviceService.isDesktop()&&this.data.game?this.setupGameWrapper():this.windowService.location().replace(this.data.gameUrl),this.casinoGameLinkClickAnalyticsListener()}ngAfterViewInit(){this.showWrapper&&this.setupWrapperCommunication(),this.urlMatchedAnalyticsHandler.trackComponentLoad(this.data.game.slug+":game_overlay")}ngOnDestroy(){this.userInfo$&&this.userInfo$.unsubscribe(),this.fullScreen$&&this.fullScreen$.unsubscribe(),this.gameLinkCmsContentEvents$&&this.gameLinkCmsContentEvents$.unsubscribe(),this.windowService.window().removeEventListener("message",this.crossMessage,!1)}playReal(){let e=this.getPlayRealCommands();this.router.navigate(e.url,e.extra)}isLeaderboardsAvailable(){return!this.hideLeaderboardGame&&this.leaderboardsAvailableService.isLeaderboardsAvailable()&&"real"===this.data.mode}getIsFullScreen(){return this.isFullScreen}setupWrapperCommunication(){(0,r.isPlatformBrowser)(this.platformId)&&this.windowService.window().addEventListener("message",this.crossMessage,!1),this.userInfo$=this.userInfoService.events.subscribe((e=>this.userInfoEvents(e)))}setupGameWrapper(){const e=this.data.gameUrl;this.safeGameUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(e),this.fullScreen$=this.fullScreenService.getFullScreenChange().subscribe((e=>this.isFullScreen=e)),this.showWrapper=!0}userInfoEvents(e){if(e instanceof sy.X)switch(e.action){case sy.X.SHOW_LOBBY:this.router.navigate(["/"]);break;case sy.X.SHOW_DEPOSIT:this.depositEnabled()?this.router.navigate(["/account/cashier/deposit"],{queryParams:{destination:this.getMultilingualPlayRealUrl()}}):this.goToConfiguredDepositRedirectUrl();break;case sy.X.SHOW_LOGIN:this.playReal();break;case sy.X.SHOW_JOIN:this.joinEnabled()?this.router.navigate(["/join"]):this.router.navigate(["/404"])}}depositEnabled(){return this.siteConfigService.evalFeature("site.config.cashier.deposit.enabled")}goToConfiguredDepositRedirectUrl(){let e=this.siteConfigService.getSiteConfigProp("depositRedirect")||"/404";/^https?/.test(e)||(e=`${this.windowService.window().top.location.origin}${e}`),this.windowService.location().href=e}joinEnabled(){return this.siteConfigService.getSiteConfigProp("joinEnabled")}getMultilingualPlayRealUrl(){if((0,r.isPlatformBrowser)(this.platformId)){const e=this.windowService.location();return this.windowService.window().encodeURIComponent(e.pathname+e.search+e.hash)}return""}getPlayRealCommands(){let e=this.data.game;return{url:this.gameUrlService.getPathList(e.category,e.slug,e.subCategory),extra:{fragment:"real"}}}casinoGameLinkClickAnalyticsListener(){const e=ly(dy(py),uy);this.gameLinkCmsContentEvents$=this.gamecardService.gameLinkCmsContentEvents.pipe((0,c.filter)(Boolean),(0,c.filter)((t=>e(["fields","game_id",0,"id"])(t)===this.data.game.id)),(0,c.map)((t=>{const{gameId:n,internalName:i,contentType:r}=cy({gameId:e(["fields","game_id",0,"id"]),contentType:e(["contentType"]),internalName:e(["fields","internal_name"])})(t);if(n){const e={33:JSON.stringify({game:n,...i?{parentInternalName:i}:{},...r?{parentType:r}:{}})};this.analyticsService.sendEvent("click","link_clicked",!0,e),this.linkTrackService.setLinkClicked(!1)}}))).subscribe()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ua),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](Le.DomSanitizer),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](sy.$),i["ɵɵdirectiveInject"](on),i["ɵɵdirectiveInject"](Tt),i["ɵɵdirectiveInject"](Bt.U),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](wn),i["ɵɵdirectiveInject"](At),i["ɵɵdirectiveInject"](cn),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](Ht.j),i["ɵɵdirectiveInject"](ut.X),i["ɵɵdirectiveInject"](i.PLATFORM_ID,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-card-play"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](nC,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.iframeRef=e.first)}},decls:3,vars:1,consts:[["class","game-wrapper-overlay-container",4,"ngIf"],[1,"game-wrapper-overlay-container"],[1,"in-content-container"],["role","heading",1,"h2-heading"],["class","header-label",3,"bxTranslate",4,"ngIf"],["role","button","class","custom-cta primary",3,"bxTranslate","click",4,"ngIf"],["type","button",1,"maximise-btn",3,"click"],["class","leaderboard-fixed-width",4,"ngIf"],["width","100%","height","100%","scrolling","no",1,"game-iframe",3,"src"],["gameIframe",""],[1,"header-label",3,"bxTranslate"],["role","button",1,"custom-cta","primary",3,"bxTranslate","click"],[1,"leaderboard-fixed-width"],[3,"gameInfo","noLeaderboard"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,aC,29,8,"bx-overlay-container",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.showWrapper))},directives:[r.NgIf,Ls.l,Fs.z,Mb.l,Se.P,tC],encapsulation:2}),e})();const cC=new ee.u;function lC(e,t){if(cC.getLocationUrl()){const n=cC.getLocationUrl().split("#")[1];if(4===e.length&&n===t&&e[0].path.includes("casino"))return{consumed:e,posParams:{category:e[1],slug:e[3],subcategory:e[2]}}}return null}const dC=[{matcher:function(e){return lC(e,"real")},component:sC,data:{mode:"real",overlayComponentPosition:"centered"},canActivate:[ah.a1],resolve:{gameUrl:ha,game:un}},{matcher:function(e){return lC(e,"practice")},component:sC,data:{mode:"practice",overlayComponentPosition:"centered"},resolve:{gameUrl:ha,game:un}},{matcher:function(e){return lC(e,"play")},data:{mode:"play"},component:Us},{path:"casino/:category/:subcategory/:slug",component:Bs,data:{overlayComponentPosition:"top"},resolve:{game:un,showPractice:Sn}}];var uC=n(34581);let pC=(()=>{class e{constructor(e){this.componentNotificationEventDispatcher=e,this.overlayDisplayedState=!1}handleBlackmambaBlockage(e,t){e||this.executeNotificationControl(t)}handleBlockage(e){this.executeNotificationControl(e)}executeNotificationControl(e){this.hasChangedOverlayVisibility(e)&&(e?this.componentNotificationEventDispatcher.block():this.componentNotificationEventDispatcher.unblock(),this.overlayDisplayedState=e)}hasChangedOverlayVisibility(e){return this.overlayDisplayedState!==e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](uC.K))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),hC=(()=>{class e{constructor(e,t,n,i,r,a,s,l,d,u,p,h){this.firstTimeVisitorService=e,this.marketingPageService=t,this.sessionService=n,this.analyticsService=i,this.impressionHelper=r,this.cookieStorageService=a,this.transferStateServiceCache=s,this.platformId=l,this.homepageService=d,this.homepageOverlayNotificationBlocker=u,this.router=p,this.location=h,this.CONTENT_SECTION="homepage",this.BASE_SLUG="homepage-",this.PAGE_VARIANTS={FIRST_TIME:"firsttimevisitor",UNLOGGED:"unlogged",LOGGED:"logged"},this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd))).subscribe((e=>{"/?sessionExpired=true"===e.url&&(this.sessionService.isAuthenticated()?this.location.replaceState("/"):this.router.navigate(["/login"],{queryParams:{sessionExpired:!0}}))}))}ngOnInit(){this.overlaySubscription=this.homepageService.getOverlayDisplayed().subscribe((e=>this.handleOverlayTransition(e))),this.initAudiencesVariables(),this.loadData(),this.firstTimeVisitorSubscription=this.firstTimeVisitorService.getFirstTimeVisited().subscribe(this.loadData.bind(this)),this.sessionSubscription=this.sessionService.sessionObserver.subscribe(this.loadData.bind(this))}handleOverlayTransition(e){this.homepageOverlayNotificationBlocker.handleBlockage(e)}initAudiencesVariables(){this.fromUniversal=this.transferStateServiceCache.isFromUniversal(),this.audiencesValue=this.cookieStorageService.get(Vs._s.AUDIENCES_PARAM),this.homepageHidden=null!==this.audiencesValue&&!this.personalizedDataRetrieved,this.hasPersonalizedEffect=null!==this.audiencesValue&&this.fromUniversal}ngOnDestroy(){this.firstTimeVisitorSubscription&&this.firstTimeVisitorSubscription.unsubscribe(),this.sessionSubscription&&this.sessionSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}loadData(){let e;if(e=this.firstTimeVisitorService.isFirstTime?this.PAGE_VARIANTS.FIRST_TIME:this.sessionService.isAuthenticated()?this.PAGE_VARIANTS.LOGGED:this.PAGE_VARIANTS.UNLOGGED,this.currentVariant!=e){this.currentVariant=e;let t=this.BASE_SLUG+e;this.marketingPageService.getMarketingPageBySlug(t,this.CONTENT_SECTION).pipe((0,c.tap)((e=>this.impressionHelper.pageView(e)))).subscribe((e=>{this.pageData=e,this.isPersonalizedContentNeeded()&&(this.personalizedDataRetrieved=!0),this.trackChannelView()}))}}isPersonalizedContentNeeded(){return(0,r.isPlatformBrowser)(this.platformId)&&null!==this.audiencesValue}trackChannelView(){const e=this.router.url;let t=e.split("/").length>2?"home":e.replace("/","home");this.analyticsService.trackComponentLoad(t,!0)}}return e.SELECTOR="bx-homepage",e.TEMPLATE='\n        <bx-homepage-overlay></bx-homepage-overlay>\n        <main class="content" [ngClass]="{ \'first-time-visitor\': firstTimeVisitorService.isFirstTime }">\n            <bx-marketing-page [data]="pageData"></bx-marketing-page>\n        </main>\n        <bx-sticky-cta class="visible-xs" *bxHideAuth></bx-sticky-cta>\n    ',e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ss.HV),i["ɵɵdirectiveInject"]($a.F),i["ɵɵdirectiveInject"](V.m),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](Gs.P),i["ɵɵdirectiveInject"](me.G),i["ɵɵdirectiveInject"](re.m),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](ag),i["ɵɵdirectiveInject"](pC),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](r.Location))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();var mC=n(22646);let gC=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.route=t,this.homepageService=n,this.sessionStoraService=i,this.document=r}onClose(){const e=this.sessionStoraService.get(nh.O);this.router.navigate([this.route.snapshot.queryParams.closeUrl||e||`/${Xh.ft}`])}ngOnDestroy(){this.sessionStoraService.remove(nh.O)}isHiddenHiddenOverlay(e){return e instanceof Ub}setDisplayOverlay(e){this.homepageService.setOverlayDisplayed(e),e?this.document.querySelector("body").classList.add("non-scroll"):this.document.querySelector("body").classList.remove("non-scroll"),this.displayOverlay=e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](ag),i["ɵɵdirectiveInject"](nh.u),i["ɵɵdirectiveInject"](r.DOCUMENT))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-homepage-overlay"]],decls:8,vars:2,consts:[[3,"hidden","sendNotificationEvent","close"],["name","messageOverlay"],[3,"activate","deactivate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"bx-overlay",0),i["ɵɵlistener"]("close",(function(){return t.onClose()})),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"bx-toast-notification",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"router-outlet",2),i["ɵɵlistener"]("activate",(function(e){return t.setDisplayOverlay(!t.isHiddenHiddenOverlay(e))}))("deactivate",(function(){return t.setDisplayOverlay(!1)})),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("hidden",!t.displayOverlay)("sendNotificationEvent",!1))},directives:[mC.B,Re.f,o.RouterOutlet],encapsulation:2}),e})();var fC=n(84581),vC=n(65299);const bC=new i.InjectionToken("HeaderAndMenuPageConfig"),yC=new i.InjectionToken("DISPLAY_ROUTER_OUTLET");let CC=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-placeholder"]],decls:12,vars:0,consts:[[1,"placeholder-wrapper"],[1,"placeholder-box"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n    "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n        "),i["ɵɵelement"](3,"div",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelement"](5,"div",1),i["ɵɵtext"](6,"\n        "),i["ɵɵelement"](7,"div",1),i["ɵɵtext"](8,"\n        "),i["ɵɵelement"](9,"div",1),i["ɵɵtext"](10,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n    "))},encapsulation:2}),e})();const SC=["title"];function xC(e,t){1&e&&i["ɵɵelement"](0,"router-outlet")}function wC(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",2),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",3),i["ɵɵtext"](3,"\n                "),i["ɵɵelement"](4,"bx-marketing-page",4),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n            "),i["ɵɵelementStart"](7,"div",5),i["ɵɵelementStart"](8,"h1",6,7),i["ɵɵtext"](10),i["ɵɵelementEnd"](),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n            "),i["ɵɵelementStart"](12,"bx-marketing-page-secondary-menu-navigation",4),i["ɵɵtext"](13,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n            "),i["ɵɵelement"](15,"bx-marketing-page",4),i["ɵɵtext"](16,"\n            "),i["ɵɵtemplate"](17,xC,1,0,"router-outlet",8),i["ɵɵtext"](18,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("invisible",e.mainContentHidden)("fadein",e.hasAudiencesValue&&!e.mainContentHidden),i["ɵɵadvance"](4),i["ɵɵproperty"]("data",e.headerStore.content),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngClass",e.titleClass),i["ɵɵadvance"](2),i["ɵɵtextInterpolate"](e.pageStore.title),i["ɵɵadvance"](2),i["ɵɵproperty"]("data",e.menuStore.content),i["ɵɵadvance"](3),i["ɵɵproperty"]("data",e.pageStore.content),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.displayRouterOutlet)}}function EC(e,t){1&e&&(i["ɵɵelementStart"](0,"div",9),i["ɵɵtext"](1,"\n            "),i["ɵɵelement"](2,"bx-placeholder"),i["ɵɵtext"](3,"\n        "),i["ɵɵelementEnd"]())}let IC=(()=>{class e{constructor(e,t,n,i,r,o,a,c,l,d,u,p,h,m,g){this.pageStore=e,this.headerStore=t,this.menuStore=n,this.userCriteriaStore=i,this.router=r,this.pageService=o,this.overlayNotificationService=a,this.analyticsService=c,this.sessionService=l,this.cookieStorageService=d,this.platformId=u,this.displayRouterOutlet=p,this.headerAndMenuPageConfig=h,this.activatedRoute=m,this.windowService=g,this.titleClass="h2-heading",this.componentDestroyed$=new s.Subject,this.displayRouterOutlet=!!this.displayRouterOutlet,this.headerAndMenuPageConfig&&(this.titleClass=this.headerAndMenuPageConfig.titleClass)}ngOnInit(){this.loggedIn=this.sessionService.isAuthenticated(),this.initAudiencesVariables(),(0,ce.U5)((()=>this.userCriteriaStore.loggedIn),(e=>{this.loggedIn!==e&&(e?this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd)),(0,c.take)(1)).subscribe((()=>{this.reloadContent(e)})):this.reloadContent(e))})),this.routerSubscription$=this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd))).subscribe((()=>{this.reloadMenuContent(),this.trackComponentLoad(),this.previousUrl=this.router.url,this.scrollOnMarketingPageWrapperHeaderLoad()})),this.overlayNotificationService.getOverlayClosedNotifications().pipe((0,c.takeUntil)(this.componentDestroyed$)).subscribe((()=>{this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationEnd)),(0,c.take)(1)).subscribe((()=>{this.reloadContent(this.loggedIn)}))}))}initAudiencesVariables(){this.hasAudiencesValue=null!=this.cookieStorageService.get(Vs._s.AUDIENCES_PARAM),this.mainContentHidden=this.hasAudiencesValue&&(0,r.isPlatformServer)(this.platformId)}scrollOnMarketingPageWrapperHeaderLoad(){if(!(0,r.isPlatformBrowser)(this.platformId))return;const e=this.windowService.window();if(this.activatedRoute.firstChild&&"casino/:category"==this.activatedRoute.firstChild.snapshot.routeConfig.path){const t=()=>{const t=this;setTimeout((()=>{const n=t.titleRef.nativeElement,i=e.document.querySelector("bx-header > div"),r=i?i.offsetHeight+10:10,o=n.getBoundingClientRect().top-r;e.scrollTo({top:document.documentElement.scrollTop+o})}),0)};if(this.headerStore.content)t();else{const e=(0,ce.U5)((()=>this.headerStore.content),(()=>{t(),e()}))}}}ngAfterViewInit(){this.trackComponentLoad(),this.scrollOnMarketingPageWrapperHeaderLoad()}trackComponentLoad(){this.isInMainChannel()&&!this.comesFromOverlay()&&this.analyticsService.trackComponentLoad(this.wtEventName,!0)}isInMainChannel(){if(this.wtEventName&&this.wtEventName.startsWith(":")){const e="/"+this.wtEventName.substring(1);return this.router.url===e}return!1}comesFromOverlay(){return this.previousUrl&&this.previousUrl.includes("overlay=")}ngOnDestroy(){this.componentDestroyed$.next(),this.componentDestroyed$.unsubscribe(),this.routerSubscription$&&this.routerSubscription$.unsubscribe()}reloadContent(e){this.reloadHeaderContent(),this.reloadMenuContent(),this.reloadPageContent(e),this.loggedIn=e}reloadHeaderContent(){this.pageService.fetchSection(Vs.lI,Vs.wg).subscribe((e=>this.headerStore.setContent(e)))}reloadMenuContent(){this.pageService.fetchMenu(Vs.KI).pipe((0,c.filter)((e=>this.distinctCategoryLinks(e)))).subscribe((e=>this.menuStore.setContent(e)))}distinctCategoryLinks(e){return!vC(e.categoryLinks,this.menuStore.categoryLinks)}reloadPageContent(e){(0,Vs.Hk)(this.router.url)||(0,Vs.gd)(this.router.url)||((0,Vs.dq)(this.router.url)?this.pageService.fetchContent(this.router.url):this.pageService.fetchHomeContent((0,Vs.vg)(!1,e),Vs.wg,!1)).subscribe((e=>this.pageStore.setContent(e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](Zs),i["ɵɵdirectiveInject"](Js),i["ɵɵdirectiveInject"](ec),i["ɵɵdirectiveInject"](fC.e),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](Xs),i["ɵɵdirectiveInject"](uv.v),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](et.mj),i["ɵɵdirectiveInject"](me.G),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](yC,8),i["ɵɵdirectiveInject"](bC,8),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](ee.u))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-menu-page"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](SC,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.titleRef=e.first)}},inputs:{wtEventName:"wtEventName"},decls:5,vars:1,consts:[["class","marketing-page-container",3,"invisible","fadein",4,"mobxAutorun"],["class","placeholder-container",4,"ngIf"],[1,"marketing-page-container"],[1,"marketing-page-wrapper"],[3,"data"],[1,"max-container"],["role","heading",3,"ngClass"],["title",""],[4,"ngIf"],[1,"placeholder-container"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,wC,19,10,"div",0),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,EC,4,0,"div",1),i["ɵɵtext"](4,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.mainContentHidden))},directives:[Ys.fF,r.NgIf,Ga.n,r.NgClass,Vm,o.RouterOutlet,CC],styles:['.marketing-page-container[_ngcontent-%COMP%]   h1[class*="-heading"][_ngcontent-%COMP%] {\n  margin-top: 15px; }\n\n@media screen and (max-width: 769px) {\n  .marketing-page-container[_ngcontent-%COMP%]   h1[class*="-heading"][_ngcontent-%COMP%] {\n    padding: 0 20px; } }\n\n.marketing-page-wrapper[_ngcontent-%COMP%] {\n  min-height: 1px; }\n\n.invisible[_ngcontent-%COMP%] {\n  opacity: 0; }\n\n.placeholder-container[_ngcontent-%COMP%] {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 1;\n  height: 5000px;\n  width: 100%;\n  background-color: transparent; }\n\n@keyframes fadein {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n.fadein[_ngcontent-%COMP%] {\n  animation: fadein 0.5s;\n  animation-fill-mode: forwards; }']}),e})();function PC(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-marketing-page",5),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("data",e.pageData)}}function TC(e,t){1&e&&(i["ɵɵtext"](0,"\n                "),i["ɵɵelement"](1,"bx-header-menu-page"),i["ɵɵtext"](2,"\n            "))}const _C=function(e){return{"first-time-visitor":e}};function MC(e,t){if(1&e&&(i["ɵɵelementStart"](0,"main",2),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,PC,2,1,"bx-marketing-page",3),i["ɵɵtext"](3,"\n            "),i["ɵɵtemplate"](4,TC,3,0,"ng-template",null,4,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵreference"](5),t=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](3,_C,t.isFirstTime)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.casinoUniquePagesFF||t.isFirstTime)("ngIfElse",e)}}function OC(e,t){1&e&&i["ɵɵelement"](0,"bx-sticky-cta",6)}let AC=(()=>{class e{constructor(e){this.sessionService=e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](V.m))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-homepage-content"]],inputs:{isFirstTime:"isFirstTime",casinoUniquePagesFF:"casinoUniquePagesFF",pageData:"pageData",needsMainHidden:"needsMainHidden"},decls:7,vars:1,consts:[["class","content",3,"ngClass",4,"ngIf"],["class","visible-xs",4,"bxHideAuth"],[1,"content",3,"ngClass"],[3,"data",4,"ngIf","ngIfElse"],["headerAndMenuPage",""],[3,"data"],[1,"visible-xs"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelement"](1,"bx-homepage-overlay"),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,MC,7,5,"main",0),i["ɵɵtext"](4,"\n\n        "),i["ɵɵtemplate"](5,OC,1,0,"bx-sticky-cta",1),i["ɵɵtext"](6,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",!t.needsMainHidden))},directives:[gC,r.NgIf,ug.v,r.NgClass,Ga.n,IC,Sv],styles:['.preview-notification main.content:not(.first-time-visitor) {\n  margin-top: 106px;\n}\n\n.marketing-page-container[_ngcontent-%COMP%]   h1[class*="-heading"][_ngcontent-%COMP%] {\n  margin-top: 15px;\n}\n\n@media screen and (max-width: 769px) {\n  .marketing-page-container[_ngcontent-%COMP%]   h1[class*="-heading"][_ngcontent-%COMP%] {\n    padding: 0 20px;\n  }\n}']}),e})();function kC(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-homepage-content",2),i["ɵɵtext"](1,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("isFirstTime",e.firstTimeVisitorService.isFirstTime)("casinoUniquePagesFF",e.casinoUniquePagesFF)("needsMainHidden",e.needsMainHidden)("pageData",e.pageData)}}function jC(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",6),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"bx-placeholder"),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵclassProp"]("fadeout",e.personalizedDataRetrieved)}}function NC(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",3),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div"),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"bx-homepage-content",4),i["ɵɵtext"](5,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n            "),i["ɵɵtemplate"](8,jC,4,2,"div",5),i["ɵɵtext"](9,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("fix-height",!e.personalizedDataRetrieved),i["ɵɵadvance"](2),i["ɵɵclassProp"]("invisible",e.homepageHidden)("fadein",e.personalizedDataRetrieved),i["ɵɵadvance"](2),i["ɵɵproperty"]("isFirstTime",e.firstTimeVisitorService.isFirstTime)("casinoUniquePagesFF",e.casinoUniquePagesFF)("pageData",e.pageData)("needsMainHidden",e.needsMainHidden),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",e.hasPersonalizedEffect)}}let RC=(()=>{class e extends hC{constructor(e,t,n,i,r,o,a,s,c,l,d,u,p,h,m,g,f,v,b){super(e,t,n,i,r,h,m,g,o,f,v,b),this.firstTimeVisitorService=e,this.marketingPageService=t,this.sessionService=n,this.analyticsService=i,this.impressionHelper=r,this.homepageService=o,this.pageService=a,this.route=s,this.cmsFeatureFlagService=c,this.pageStore=l,this.headerStore=d,this.menuStore=u,this.contentService=p,this.cookieStorageService=h,this.transferStateServiceCache=m,this.platformId=g,this.homepageOverlayNotificationBlocker=f,this.router=v,this.location=b,this.needsMainHidden=!1,this.casinoUniquePagesFF=!1,this.isHeaderAndMenuInitialized=!1,this.isPageInitialized=!0,this.casinoUniquePagesFF=this.cmsFeatureFlagService.isFeatureEnabled(Ft.u.CASINO_UNIQUE_PAGES_FF)}handleOverlayTransition(e){setTimeout((()=>{const t=this.isOverlayMainHidden();this.homepageOverlayNotificationBlocker.handleBlackmambaBlockage(t,e),this.needsMainHidden=e&&t}))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}getThirdLevelRouteChild(){try{return this.route.firstChild.firstChild}catch(e){return}}isOverlayMainHidden(){const e=this.getThirdLevelRouteChild();return e?e.snapshot&&!!e.snapshot.data.overlayMainHidden:!!this.route.snapshot.data.overlayMainHidden}loadData(){if(this.casinoUniquePagesFF)this.firstTimeVisitorService.isFirstTime?(this.pageData=this.pageStore.content,this.isPageInitialized=!1):this.isHeaderAndMenuInitialized||(this.isPageInitialized||this.pageStore.setContent({}),this.loadHeaderContent(),this.loadMenuContent(),this.isHeaderAndMenuInitialized=!0,this.isPageInitialized=!0);else{let e;if(e=this.firstTimeVisitorService.isFirstTime?this.PAGE_VARIANTS.FIRST_TIME:this.sessionService.isAuthenticated()?this.PAGE_VARIANTS.LOGGED:this.PAGE_VARIANTS.UNLOGGED,this.currentVariant!=e){this.currentVariant=e;let t=this.BASE_SLUG+e;this.contentService.getContentBySlug(t,this.CONTENT_SECTION).pipe((0,c.map)((e=>this.removeTaggedComponents(e,"casinohome"))),(0,c.map)((e=>this.marketingPageService.processPage(e))),(0,c.tap)((e=>this.impressionHelper.pageView(e)))).subscribe((e=>{this.pageData=e}))}}}removeTaggedComponents(e,t){return e.fields.items=e.fields.items.filter((e=>this.isNotTaggedAs(e,t))),e}isNotTaggedAs(e,t){return!e.fields||!e.fields.tags||e.fields.tags.indexOf(t)<0}loadHeaderContent(){this.pageService.fetchSection(Vs.lI,Vs.wg).subscribe((e=>{this.headerStore.setContent(e),this.isPersonalizedContentNeeded()&&(this.personalizedDataRetrieved=!0)}))}loadMenuContent(){this.pageService.fetchMenu(Vs.KI).subscribe((e=>this.menuStore.setContent(e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ss.HV),i["ɵɵdirectiveInject"]($a.F),i["ɵɵdirectiveInject"](V.m),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](Gs.P),i["ɵɵdirectiveInject"](ag),i["ɵɵdirectiveInject"](Xs),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](Ft.u),i["ɵɵdirectiveInject"](Zs),i["ɵɵdirectiveInject"](Js),i["ɵɵdirectiveInject"](ec),i["ɵɵdirectiveInject"](Dt._),i["ɵɵdirectiveInject"](me.G),i["ɵɵdirectiveInject"](re.m),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](pC),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](r.Location))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-homepage"]],features:[i["ɵɵInheritDefinitionFeature"]],decls:5,vars:2,consts:[[3,"isFirstTime","casinoUniquePagesFF","needsMainHidden","pageData",4,"ngIf"],["class","content-personalized",3,"fix-height",4,"ngIf"],[3,"isFirstTime","casinoUniquePagesFF","needsMainHidden","pageData"],[1,"content-personalized"],[3,"isFirstTime","casinoUniquePagesFF","pageData","needsMainHidden"],["class","placeholder-container",3,"fadeout",4,"ngIf"],[1,"placeholder-container"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,kC,2,4,"bx-homepage-content",0),i["ɵɵtext"](2,"\n\n        "),i["ɵɵtemplate"](3,NC,10,11,"div",1),i["ɵɵtext"](4,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",!t.hasPersonalizedEffect),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.hasPersonalizedEffect))},directives:[r.NgIf,AC,CC],styles:[".invisible[_ngcontent-%COMP%] {\n  opacity: 0;\n}\n\n.content-personalized[_ngcontent-%COMP%] {\n  position: relative;\n}\n\n.placeholder-container[_ngcontent-%COMP%] {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 1;\n  height: 5000px;\n  width: 100%;\n  background-color: transparent;\n}\n\n.fix-height[_ngcontent-%COMP%] {\n  height: 5000px;\n}\n\n@keyframes fadein {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n\n@keyframes fadeout {\n  from {\n    opacity: 1;\n  }\n  to {\n    opacity: 0;\n    z-index: -1;\n    height: auto;\n  }\n}\n\n.fadeout[_ngcontent-%COMP%] {\n  animation: fadeout 0.5s;\n  animation-fill-mode: forwards;\n}\n\n.fadein[_ngcontent-%COMP%] {\n  animation: fadein 0.5s;\n  animation-fill-mode: forwards;\n}"]}),e})(),DC=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-tertiary"]],decls:6,vars:0,consts:[[1,"content"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"main",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"router-outlet"),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n    "))},directives:[o.RouterOutlet],encapsulation:2}),e})();function LC(e,t){if(1&e&&i["ɵɵelement"](0,"img",3),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("alt",e.brandLabel)("src",e.logoUser,i["ɵɵsanitizeUrl"])}}let FC=(()=>{class e{constructor(e,t){this.headerConfig=e,this.siteConfigService=t}ngOnInit(){this.logoMain=this.siteConfigService.getSiteConfigProp("mainLogo"),this.logoUser="/content/images/logo_user.svg",this.brandLabel=this.siteConfigService.getSiteConfigProp("brandLabel")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](cv),i["ɵɵdirectiveInject"](G.r))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-logo"]],decls:8,vars:3,consts:[["routerLink","/"],["bxCdnImage","",1,"img-large",3,"alt","src"],["bxCdnImage","","class","img-default",3,"alt","src",4,"ngIf"],["bxCdnImage","",1,"img-default",3,"alt","src"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"a",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"img",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,LC,1,2,"img",2),i["ɵɵtext"](6,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("alt",t.brandLabel)("src",t.logoMain,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.headerConfig.logo.small))},directives:[o.RouterLinkWithHref,r.NgIf],encapsulation:2}),e})();var BC=n(86655);const UC=["term"];function VC(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",6),i["ɵɵlistener"]("click",(function(){i["ɵɵrestoreView"](e);const t=i["ɵɵnextContext"](),n=i["ɵɵreference"](6);return t.searchTerm$.next(n.value=""),n.focus()})),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"span",7),i["ɵɵtext"](3,"header.searchClear"),i["ɵɵelementEnd"](),i["ɵɵtext"](4," "),i["ɵɵelement"](5,"i",8),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"]()}}let GC=(()=>{class e{constructor(e,t){this.headerSearch=e,this.translateService=t,this.searchTerm$=new s.Subject}ngOnInit(){this.term.nativeElement.focus(),this.headerSearch.search(this.searchTerm$)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](fv),i["ɵɵdirectiveInject"](fe.s))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-search-form"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](UC,7),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.term=e.first)}},decls:17,vars:6,consts:[["name","searchGamesForm",1,"search-games-form"],[1,"search-form-container"],["autocomplete","off","type","text",1,"search-text-input",3,"placeholder","input"],["term",""],["class","clear-btn",3,"click",4,"ngIf"],["role","button",1,"cancel-search",3,"bxTranslate","click"],[1,"clear-btn",3,"click"],[3,"bxTranslate"],[1,"icon","icon-delete-text"]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"form",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"div",1),i["ɵɵtext"](4,"\n                "),i["ɵɵelementStart"](5,"input",2,3),i["ɵɵlistener"]("input",(function(e){return t.searchTerm$.next(e.target.value)})),i["ɵɵpipe"](7,"async"),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵtemplate"](10,VC,7,0,"button",4),i["ɵɵpipe"](11,"async"),i["ɵɵtext"](12,"\n            "),i["ɵɵelementStart"](13,"button",5),i["ɵɵlistener"]("click",(function(){return t.headerSearch.setActive(!1)})),i["ɵɵtext"](14,"\n                header.searchCancel\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n    ")),2&e){let e;i["ɵɵadvance"](5),i["ɵɵpropertyInterpolate"]("placeholder",i["ɵɵpipeBind1"](7,2,t.translateService.translate("header.searchPlaceholder"))),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",(null==(e=i["ɵɵpipeBind1"](11,4,t.searchTerm$))?null:e.length)>0)}},directives:[r.NgIf,Se.P],pipes:[r.AsyncPipe],styles:[".search-text-input[_ngcontent-%COMP%]::-ms-clear {\n            display: none;\n        }"]}),e})();var HC=n(59386);const zC=["cta"];function $C(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a",3,2),i["ɵɵtext"](2,"header.join"),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTrackClick","join:click")("ngClass",e.headerConfig.cta.join.class+(e.largeButtons?" cta-large":""))}}let WC=(()=>{class e{constructor(e,t,n,i,r){this.headerConfig=e,this.overlayNotificationsService=t,this.noDblClickService=n,this.siteConfigService=i,this.platformId=r}ngAfterViewInit(){(0,r.isPlatformBrowser)(this.platformId)&&this.setTimeoutForAllButtons()}ngOnInit(){(0,r.isPlatformBrowser)(this.platformId)&&(this.overlayOpenNotificationSubscription=this.overlayNotificationsService.getOverlayOpenNotifications().subscribe((()=>{this.releaseAllButtons()})))}ngOnDestroy(){(0,r.isPlatformBrowser)(this.platformId)&&this.overlayOpenNotificationSubscription&&this.overlayOpenNotificationSubscription.unsubscribe()}showJoinCta(){return this.siteConfigService.getSiteConfigProp("joinEnabled")}setTimeoutForAllButtons(){this.ctas.forEach((t=>{this.noDblClickService.setTimeout(t.nativeElement,e.DEFAULT_TIMEOUT)}))}releaseAllButtons(){this.ctas.forEach((e=>{this.noDblClickService.release(e.nativeElement)}))}}return e.DEFAULT_TIMEOUT=2e4,e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](cv),i["ɵɵdirectiveInject"](uv.v),i["ɵɵdirectiveInject"](te),i["ɵɵdirectiveInject"](G.r),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-unlogged-actions"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](zC,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.ctas=e)}},inputs:{largeButtons:"largeButtons"},decls:7,vars:3,consts:[["role","button","routerLink","/join","class","custom-cta","id","headerUnloggedJoin",3,"bxTrackClick","ngClass","bxTranslate",4,"ngIf"],["role","button","routerLink","/login","id","headerUnloggedLogin",1,"custom-cta",3,"bxTrackClick","ngClass","bxTranslate"],["cta",""],["role","button","routerLink","/join","id","headerUnloggedJoin",1,"custom-cta",3,"bxTrackClick","ngClass","bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,$C,3,2,"a",0),i["ɵɵtext"](2,"\n        "),i["ɵɵelementStart"](3,"a",1,2),i["ɵɵtext"](5,"header.login"),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.showJoinCta()),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxTrackClick","login:click")("ngClass",t.headerConfig.cta.login.class+(t.largeButtons?" cta-large":"")))},directives:[r.NgIf,o.RouterLinkWithHref,HC.X,r.NgClass,Se.P],encapsulation:2}),e})();function qC(e,t){if(1&e&&i["ɵɵelement"](0,"i",5),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵproperty"]("ngClass",e.icon)}}function KC(e,t){if(1&e&&(i["ɵɵelementStart"](0,"li",2),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"a",3),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,qC,1,1,"i",4),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementStart"](6,"span"),i["ɵɵtext"](7),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxPreviewIndicator",e),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxLink",e.link)("bxLinkTarget",e.target)("ngClass",n.nameLink(e.link)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.icon),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.label)}}let XC=(()=>{class e{constructor(){this.items=[],this.additionalStyle=""}nameLink(e){return"link"+e.replace(/\//g,"-")}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-linkbar"]],inputs:{items:"items",additionalStyle:"additionalStyle"},decls:6,vars:2,consts:[[1,"custom-menu",3,"ngClass"],["role","button",3,"bxPreviewIndicator",4,"ngFor","ngForOf"],["role","button",3,"bxPreviewIndicator"],[3,"bxLink","bxLinkTarget","ngClass"],["class","icon",3,"ngClass",4,"ngIf"],[1,"icon",3,"ngClass"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"ul",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,KC,10,6,"li",1),i["ɵɵtext"](4,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",t.additionalStyle),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",t.items))},directives:[r.NgClass,r.NgForOf,xa.Z,Na.I,r.NgIf],encapsulation:2}),e})();const YC=["toogleButton"];let JC=(()=>{class e{constructor(e,t){this.navMenuService=e,this.router=t,this.isDisplaying=!1,this.navLinksPrimaryMenu={},this.navLinksSecondaryMenu={}}toggle(){this.isDisplaying=!this.isDisplaying}hide(){this.isDisplaying=!1}menuIcon(){return this.isDisplaying?"icon-close2":"icon-menu"}get isDisplayed(){return this.isDisplaying}menuDisplayed(){return this.isDisplaying?"nav-menu-displayed":"nav-menu-hidden"}menuButton(){return this.isDisplaying?"nav-menu-button, active":""}ngOnInit(){this.loadComponent(),this.routerEventsSub=this.router.events.subscribe((e=>{this.isDisplaying&&(this.isDisplaying=!1),e instanceof o.NavigationEnd&&this.loadComponent()}))}ngOnDestroy(){this.routerEventsSub&&this.routerEventsSub.unsubscribe()}loadComponent(){this.navMenuService.getNavMenuData().pipe((0,c.take)(1)).subscribe((e=>{this.navMenu=e,this.navLinksPrimary=this.getNavBarItems(e,"primaryElements"),this.navLinksSecondary=this.getNavBarItems(e,"secondaryElements"),this.navLinksPrimaryMenu=this.navMenuService.getNavBarMenu(e,"primaryElements"),this.navLinksSecondaryMenu=this.navMenuService.getNavBarMenu(e,"secondaryElements")}))}click(e){e&&(this.toogleButton.nativeElement.contains(e)?this.toggle():this.isDisplaying&&this.hide())}getNavBarItems(e,t){return e&&e.fields&&e.fields[t]?e.fields[t].value:[]}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](dv),i["ɵɵdirectiveInject"](o.Router))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-nav-menu"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](YC,7),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.toogleButton=e.first)}},hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.click(e.target)}),!1,i["ɵɵresolveDocument"])},decls:24,vars:9,consts:[[1,"nav-menu-container"],["type","button","aria-pressed","false",1,"menu-btn",3,"ngClass"],["toogleButton",""],[1,"icon",3,"ngClass"],[3,"bxTranslate"],[1,"nav-menu-elements",3,"ngClass","bxPreviewIndicator"],["additionalStyle","primary",1,"primaryLinkBar",3,"items","bxPreviewIndicator"],["additionalStyle","secondary",1,"secondaryLinkBar",3,"items","bxPreviewIndicator"],[1,"nav-menu-overlay",3,"ngClass"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"button",1,2),i["ɵɵtext"](5,"\n                "),i["ɵɵelement"](6,"i",3),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"span",4),i["ɵɵtext"](9,"header.navmenu"),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n            "),i["ɵɵelementStart"](12,"div",5),i["ɵɵtext"](13,"\n                "),i["ɵɵelementStart"](14,"bx-linkbar",6),i["ɵɵtext"](15,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                "),i["ɵɵelementStart"](17,"bx-linkbar",7),i["ɵɵtext"](18,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n        "),i["ɵɵelement"](22,"div",8),i["ɵɵtext"](23,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",t.menuButton()),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",t.menuIcon()),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngClass",t.menuDisplayed())("bxPreviewIndicator",t.navMenu),i["ɵɵadvance"](2),i["ɵɵproperty"]("items",t.navLinksPrimary)("bxPreviewIndicator",t.navLinksPrimaryMenu),i["ɵɵadvance"](3),i["ɵɵproperty"]("items",t.navLinksSecondary)("bxPreviewIndicator",t.navLinksSecondaryMenu),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngClass",t.menuDisplayed()))},directives:[r.NgClass,Se.P,xa.Z,XC],encapsulation:2}),e})();class QC{constructor(e,t,n){this.templateRef=e,this.viewContainer=t,this.store=n,this.activated=!0,this.hasView=!1}setVisible(e){e&&!this.hasView?(this.viewContainer.createEmbeddedView(this.templateRef),this.hasView=!0):!e&&this.hasView&&(this.viewContainer.clear(),this.hasView=!1)}setActivated(e){this.activated=e}onInit(){this.activated?(0,ce.EH)((()=>{this.onBalanceChanged(this.store.playable)})):this.setVisible(!0)}}let ZC=(()=>{class e extends QC{constructor(e,t,n){super(e,t,n)}set bxShowWithoutBalance(e){this.setActivated(e)}ngOnInit(){super.onInit()}onBalanceChanged(e){e=e||0,this.setVisible(e<.01)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.TemplateRef),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](kf.r))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxShowWithoutBalance",""]],inputs:{bxShowWithoutBalance:"bxShowWithoutBalance"},features:[i["ɵɵInheritDefinitionFeature"]]}),e})();function eS(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",4),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().navigateToCashier()})),i["ɵɵtext"](1,"header.deposit\n            "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",e.headerConfig.cta.deposit.class+(e.largeButtons?" cta-large":""))("bxTrackClick","account.deposit:click")}}function tS(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",6),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).navigateToCashier()})),i["ɵɵtext"](1,"header.deposit\n                    "),i["ɵɵelementEnd"]()}2&e&&i["ɵɵproperty"]("bxTrackClick","account.deposit:click")}function nS(e,t){1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"div",0),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,tS,2,1,"a",5),i["ɵɵtext"](5,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"]()),2&e&&(i["ɵɵadvance"](4),i["ɵɵproperty"]("bxShowWithoutBalance",!0))}function iS(e,t){1&e&&(i["ɵɵelementStart"](0,"figure",7),i["ɵɵtext"](1,"\n                "),i["ɵɵelement"](2,"i",8),i["ɵɵtext"](3,"\n            "),i["ɵɵelementEnd"]())}let rS=(()=>{class e{constructor(e,t,n,i){this.headerConfig=e,this.router=t,this.cashierLoadingService=n,this.browserStorageService=i,this.depositUrl=`/${Vf.RC}/${Vf.dU}`,this.loading=!1}navigateToCashier(){this.loading=!0,this.cashierLoadingService.finishedLoading.subscribe((()=>this.loading=!1)),this.browserStorageService.set("previousUrl",this.router.url),this.router.navigateByUrl(this.depositUrl)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](cv),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](zp.C),i["ɵɵdirectiveInject"](tn.z))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-logged-actions"]],inputs:{largeButtons:"largeButtons"},decls:10,vars:3,consts:[[1,"deposit-button-area"],["role","button","class","custom-cta deposit inverse",3,"ngClass","bxTrackClick","bxTranslate","click",4,"bxShowWithoutBalance"],[4,"ngIf"],["class","loading-spinner","id","cashier-loading",4,"ngIf"],["role","button",1,"custom-cta","deposit","inverse",3,"ngClass","bxTrackClick","bxTranslate","click"],["class","deposit",3,"bxTrackClick","bxTranslate","click",4,"bxShowWithoutBalance"],[1,"deposit",3,"bxTrackClick","bxTranslate","click"],["id","cashier-loading",1,"loading-spinner"],[1,"icon","icon-loading"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,eS,2,2,"a",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,nS,7,1,"div",2),i["ɵɵtext"](6,"\n            "),i["ɵɵtemplate"](7,iS,4,0,"figure",3),i["ɵɵtext"](8,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("bxShowWithoutBalance",!t.headerConfig.cta.deposit.showAlways),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.headerConfig.cta.overflow),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.loading))},directives:[ZC,r.NgIf,r.NgClass,HC.X,Se.P],styles:[".deposit-button-area[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n}\n\n.deposit-button-area[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%] {\n  margin-left: 5px;\n  margin-right: 10px;\n}\n\n.deposit-button-area[_ngcontent-%COMP%]   .icon-loading[_ngcontent-%COMP%] {\n  transform: scale(0.7);\n}\n\n@media only screen and (max-width: 768px) {\n  .deposit-button-area[_ngcontent-%COMP%]   .icon-loading[_ngcontent-%COMP%] {\n    transform: scale(0.5);\n  }\n  .deposit-button-area[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%] {\n    margin-right: 15px;\n  }\n  .deposit-button-area[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] {\n    margin-right: 10px;\n  }\n}"]}),e})(),oS=(()=>{class e extends QC{constructor(e,t,n){super(e,t,n)}set bxHideWithoutBalance(e){this.setActivated(e)}ngOnInit(){super.onInit()}onBalanceChanged(e){e=e||0,super.setVisible(e>=.01)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.TemplateRef),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](kf.r))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxHideWithoutBalance",""]],inputs:{bxHideWithoutBalance:"bxHideWithoutBalance"},features:[i["ɵɵInheritDefinitionFeature"]]}),e})();var aS=n(56479),sS=n(40606);function cS(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",1),i["ɵɵtext"](1),i["ɵɵpipe"](2,"bxMonetaryAmount"),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("id",e.getIdBalance())("ngClass",e.product),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](i["ɵɵpipeBind1"](2,3,e.getAmount()))}}let lS=(()=>{class e{constructor(e){this.store=e}getIdBalance(){return"balance"+(this.product?`-${this.product}`:"")}getAmount(){if(this.product){let e=`playable${this.getFormattedProduct()}`;return this.store[e]}return this.store.totalWithExternalWallets}getFormattedProduct(){return`${this.product.substr(0,1).toUpperCase()}${this.product.substr(1).toLowerCase()}`}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](kf.r))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-balance"]],inputs:{product:"product"},decls:3,vars:0,consts:[["class","balance-value",3,"id","ngClass",4,"mobxAutorun"],[1,"balance-value",3,"id","ngClass"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,cS,3,5,"span",0),i["ɵɵtext"](2,"\n    "))},directives:[Ys.fF,r.NgClass],pipes:[sS.W],encapsulation:2,changeDetection:0}),e})();var dS=n(65502);function uS(e,t){1&e&&i["ɵɵelement"](0,"bx-balance")}function pS(e,t){1&e&&i["ɵɵelement"](0,"i",8)}function hS(e,t){1&e&&i["ɵɵelement"](0,"bx-loyalty-user-icon")}function mS(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a",1),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,uS,1,0,"bx-balance",2),i["ɵɵtext"](3,"\n            "),i["ɵɵelementStart"](4,"button",3),i["ɵɵtext"](5,"\n                "),i["ɵɵtemplate"](6,pS,1,0,"i",4),i["ɵɵtext"](7,"\n                "),i["ɵɵtemplate"](8,hS,1,0,"bx-loyalty-user-icon",5),i["ɵɵtext"](9,"\n                "),i["ɵɵelementStart"](10,"span",6),i["ɵɵtext"](11,"header.myaccount"),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n            "),i["ɵɵelementStart"](14,"bx-communications-counter",7),i["ɵɵtext"](15,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("bxHideWithoutBalance",!0),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",!e.showLoyalty),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.showLoyalty),i["ɵɵadvance"](6),i["ɵɵproperty"]("backgroundStyle",e.headerConfig.badge.class)}}let gS=(()=>{class e{constructor(e,t,n){this.loyaltyFeatureFlagService=e,this.platformId=t,this.headerConfig=n,this.isBrowser=!1,this.isBrowser=(0,r.isPlatformBrowser)(this.platformId)}ngOnInit(){this.showLoyalty=this.loyaltyFeatureFlagService.loyaltyEnabled()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ue.e),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](cv))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-user-menu"]],decls:3,vars:1,consts:[["routerLink","/account","class","user-menu-cta",4,"ngIf"],["routerLink","/account",1,"user-menu-cta"],[4,"bxHideWithoutBalance"],["type","button",1,"user-btn"],["class","icon icon-user",4,"ngIf"],[4,"ngIf"],[3,"bxTranslate"],[1,"message-number",3,"backgroundStyle"],[1,"icon","icon-user"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,mS,17,4,"a",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.isBrowser))},directives:[r.NgIf,o.RouterLinkWithHref,oS,Se.P,aS.V,lS,dS.l],encapsulation:2}),e})();function fS(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",4),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"div",5),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().headerSearch.setActive(!1)})),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementStart"](4,"figure",6),i["ɵɵtext"](5,"\n                            "),i["ɵɵelement"](6,"img",7),i["ɵɵtext"](7,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n                        "),i["ɵɵelementStart"](9,"header",8),i["ɵɵtext"](10,"\n                            "),i["ɵɵelement"](11,"h3",9),i["ɵɵtext"](12,"\n                            "),i["ɵɵelementStart"](13,"h4",10),i["ɵɵtext"](14),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](17,"\n                    "),i["ɵɵelementStart"](18,"button",11),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().headerSearch.setActive(!1)})),i["ɵɵtext"](19,"\n                        "),i["ɵɵelementStart"](20,"span",12),i["ɵɵtext"](21,"header.searchPlay"),i["ɵɵelementEnd"](),i["ɵɵtext"](22," "),i["ɵɵelement"](23,"i",13),i["ɵɵtext"](24,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("routerLink",n.buildPathUrl(e)),i["ɵɵadvance"](4),i["ɵɵproperty"]("src",e.cardImage,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](5),i["ɵɵproperty"]("innerHTML",e.term,i["ɵɵsanitizeHtml"]),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.categoryName),i["ɵɵadvance"](4),i["ɵɵproperty"]("routerLink",n.buildPathUrl(e))("fragment",n.getCtaLinkFragment())}}function vS(e,t){1&e&&(i["ɵɵelementStart"](0,"li",14),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"div",15),i["ɵɵtext"](3,"\n                        "),i["ɵɵelement"](4,"i",16),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementStart"](6,"header",8),i["ɵɵtext"](7,"\n                            "),i["ɵɵelementStart"](8,"h3",17),i["ɵɵtext"](9,"header.searchNoGameFound"),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                            "),i["ɵɵelementStart"](11,"h4",17),i["ɵɵtext"](12,"header.searchCorrectSpelled"),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                "),i["ɵɵelementEnd"]())}let bS=(()=>{class e{constructor(e,t,n,i,r){this.document=e,this.headerSearch=t,this.sessionService=n,this.gameUrlService=i,this.cardConfig=r}playCtaLink(e){return["/casino",e.category,e.slug]}ngOnInit(){this.setScrollable(!1)}ngOnDestroy(){this.setScrollable(!0)}setScrollable(e){let t=this.document.querySelector("body").classList;e?t.remove("non-scroll"):t.add("non-scroll")}getCtaLinkFragment(){return this.cardConfig.removeRealPracticeOverlay||this.sessionService.isAuthenticated()?"real":"play"}buildPathUrl(e){return this.gameUrlService.getPathList(e.category,e.slug,e.subCategory)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](fv),i["ɵɵdirectiveInject"](et.mj),i["ɵɵdirectiveInject"](ut.X),i["ɵɵdirectiveInject"](ft))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-search-results"]],decls:13,vars:6,consts:[[1,"search-results",3,"click"],["role","list",1,"inner-search-results","max-container"],["class","search-result","role","listitem",4,"ngFor","ngForOf"],["role","listitem","class","search-result not-found",4,"ngIf"],["role","listitem",1,"search-result"],[1,"info-area",3,"routerLink","click"],[1,"thumb-container","game-thumbnail","img-xsmall"],[1,"img-responsive",3,"src"],[1,"game-info"],["role","heading",3,"innerHTML"],["role","heading"],["role","button",1,"play-btn",3,"routerLink","fragment","click"],[3,"bxTranslate"],[1,"icon","icon-search-play"],["role","listitem",1,"search-result","not-found"],[1,"info-area"],[1,"icon","icon-no-results"],["role","heading",3,"bxTranslate"]],template:function(e,t){if(1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵlistener"]("click",(function(){return t.headerSearch.setActive(!1)})),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"ul",1),i["ɵɵtext"](4,"\n\n                "),i["ɵɵtemplate"](5,fS,26,6,"li",2),i["ɵɵpipe"](6,"async"),i["ɵɵtext"](7,"\n\n                "),i["ɵɵtemplate"](8,vS,16,0,"li",3),i["ɵɵpipe"](9,"async"),i["ɵɵtext"](10,"\n\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n    ")),2&e){let e;i["ɵɵadvance"](5),i["ɵɵproperty"]("ngForOf",i["ɵɵpipeBind1"](6,2,t.headerSearch.results)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",0===(null==(e=i["ɵɵpipeBind1"](9,4,t.headerSearch.results))?null:e.length))}},directives:[r.NgForOf,r.NgIf,o.RouterLink,Se.P],pipes:[r.AsyncPipe],styles:[".info-area[_ngcontent-%COMP%] {\n  cursor: pointer; }\n\n.game-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]     strong {\n  font-weight: 600; }\n\n.game-info[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%] {\n  text-transform: capitalize; }"]}),e})();function yS(e,t){1&e&&i["ɵɵelement"](0,"bx-lang-select",15)}function CS(e,t){1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                            "),i["ɵɵtemplate"](2,yS,1,0,"bx-lang-select",14),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementEnd"]())}function SS(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-header-search-form",16),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]())}function xS(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-lang-select",15),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementEnd"]())}function wS(e,t){1&e&&i["ɵɵelement"](0,"bx-header-nav-menu")}function ES(e,t){if(1&e&&(i["ɵɵelementStart"](0,"aside",17),i["ɵɵtext"](1,"\n                        "),i["ɵɵelement"](2,"bx-header-unlogged-actions",18),i["ɵɵtext"](3,"\n                        "),i["ɵɵtemplate"](4,xS,2,0,"bx-lang-select",19),i["ɵɵtext"](5,"\n                        "),i["ɵɵtemplate"](6,wS,1,0,"bx-header-nav-menu",5),i["ɵɵtext"](7,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("hidden",e.headerSearch.isActive),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",e.headerConfig.langselect.position.right),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.headerConfig.navmenu.show)}}function IS(e,t){1&e&&(i["ɵɵelementStart"](0,"figure",21),i["ɵɵtext"](1,"\n                            "),i["ɵɵelement"](2,"bx-header-logged-actions",22),i["ɵɵtext"](3,"\n                            "),i["ɵɵelement"](4,"span",23),i["ɵɵtext"](5,"\n                            "),i["ɵɵelement"](6,"bx-header-user-menu",24),i["ɵɵtext"](7,"\n                        "),i["ɵɵelementEnd"]())}function PS(e,t){1&e&&i["ɵɵelement"](0,"bx-header-nav-menu")}function TS(e,t){if(1&e&&(i["ɵɵelementStart"](0,"aside",17),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,IS,8,0,"figure",20),i["ɵɵtext"](3,"\n                        "),i["ɵɵtemplate"](4,PS,1,0,"bx-header-nav-menu",5),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("hidden",e.headerSearch.isActive),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.isBrowser),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.headerConfig.navmenu.show&&e.isBrowser)}}function _S(e,t){1&e&&i["ɵɵelement"](0,"bx-header-search-results")}function MS(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-header-unlogged-actions",28),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]())}function OS(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-header-logged-actions",29),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]())}function AS(e,t){1&e&&(i["ɵɵelementStart"](0,"div",25),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,MS,2,0,"bx-header-unlogged-actions",26),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,OS,2,0,"bx-header-logged-actions",27),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"]())}const kS=function(e){return{hidden:e}};let jS=(()=>{class e{constructor(e,t,n,i){this.headerConfig=e,this.headerSearch=t,this.headerService=n,this.platformId=i,this.isBrowser=!1,this.isBrowser=(0,r.isPlatformBrowser)(this.platformId)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](cv),i["ɵɵdirectiveInject"](fv),i["ɵɵdirectiveInject"](wg),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header"]],decls:37,vars:14,consts:[[1,"navbar-wrapper","navbar-fixed-top","navbar-fixed-width","search-navbar","search-showcase",3,"hidden"],[1,"overlay",3,"ngClass"],[1,"navbar-container"],[1,"navbar","max-container"],[1,"search-container"],[4,"ngIf"],["type","button",1,"search-btn",3,"click"],[1,"icon","icon-search"],[3,"bxTranslate"],["class","search-games-form",4,"ngIf"],[1,"brand-logo"],["class","user-info",3,"hidden",4,"bxHideAuth"],["class","user-info",3,"hidden",4,"bxShowAuth"],["class","cta-container-small-screen",4,"ngIf"],["class","lang-selector",4,"bxHideAuth"],[1,"lang-selector"],[1,"search-games-form"],[1,"user-info"],[1,"login-container"],["class","lang-selector",4,"ngIf"],["class","account-balance",4,"ngIf"],[1,"account-balance"],[1,"deposit-container"],[1,"custom-separator","vertical"],[1,"user-menu-cta"],[1,"cta-container-small-screen"],["class","login-container inline-ctas","largeButtons","true",4,"bxHideAuth"],["class","deposit-container full-width-ctas","largeButtons","true",4,"bxShowAuth"],["largeButtons","true",1,"login-container","inline-ctas"],["largeButtons","true",1,"deposit-container","full-width-ctas"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelement"](3,"div",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"div",2),i["ɵɵtext"](6,"\n                "),i["ɵɵelementStart"](7,"nav",3),i["ɵɵtext"](8,"\n\n                    "),i["ɵɵelementStart"](9,"aside",4),i["ɵɵtext"](10,"\n                        "),i["ɵɵtemplate"](11,CS,4,0,"div",5),i["ɵɵtext"](12,"\n                        "),i["ɵɵelementStart"](13,"button",6),i["ɵɵlistener"]("click",(function(){return t.headerSearch.setActive(!0)})),i["ɵɵtext"](14,"\n                            "),i["ɵɵelement"](15,"i",7),i["ɵɵtext"](16,"\n                            "),i["ɵɵelementStart"](17,"span",8),i["ɵɵtext"](18,"header.search"),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](21,"\n                    "),i["ɵɵtemplate"](22,SS,2,0,"bx-header-search-form",9),i["ɵɵtext"](23,"\n\n                    "),i["ɵɵelement"](24,"bx-header-logo",10),i["ɵɵtext"](25,"\n                    "),i["ɵɵtemplate"](26,ES,8,4,"aside",11),i["ɵɵtext"](27,"\n                    "),i["ɵɵtemplate"](28,TS,6,4,"aside",12),i["ɵɵtext"](29,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n            "),i["ɵɵtemplate"](32,_S,1,0,"bx-header-search-results",5),i["ɵɵtext"](33,"\n            "),i["ɵɵtemplate"](34,AS,6,0,"div",13),i["ɵɵtext"](35,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](36,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵclassProp"]("search-field-enabled",t.headerSearch.isActive)("hidden-header",!t.headerService.isHeaderSlidedDown),i["ɵɵproperty"]("hidden",!t.headerService.isHeaderVisible),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](12,kS,!t.headerSearch.isActive)),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngIf",t.headerConfig.langselect.position.left),i["ɵɵadvance"](11),i["ɵɵproperty"]("ngIf",t.headerSearch.isActive),i["ɵɵadvance"](2),i["ɵɵclassProp"]("hidden",t.headerSearch.isActive),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngIf",t.headerSearch.isActive),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.headerConfig.cta.overflow))},directives:[r.NgClass,r.NgIf,Se.P,FC,ug.v,BC.d,Eg.S,GC,WC,JC,rS,gS,bS],styles:[".navbar-fixed-top[_ngcontent-%COMP%] {\n  animation: none;\n}\n\n.navbar-fixed-top.hidden-header[_ngcontent-%COMP%] {\n  animation: none;\n  top: -100%;\n}\n\n.navbar-fixed-top.search-field-enabled[_ngcontent-%COMP%]     .search-results {\n  background-color: transparent !important;\n  \n}\n\n.navbar-fixed-top[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%] {\n  position: fixed;\n  left: 0;\n  right: 0;\n  top: 0;\n  bottom: -50vh;\n  background-color: rgba(0, 0, 0, 0.6);\n  z-index: -2;\n}\n\n.navbar-fixed-top[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%] {\n  height: 100%;\n}\n\n  button {\n  cursor: pointer;\n}"]}),e})(),NS=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.platformId=t,this.router=n,this.isBrowser=!0,this.ignoreMutations=!1,this.dataLoaded=new i.EventEmitter,this.intersectionObserverCallback=e=>{const t=this.elementRef.nativeElement.querySelector("[data-dynamic-element='dynamicElement']");e[0].isIntersecting&&t&&(this.dataLoaded.emit(),this.intersectionObserver.disconnect())},this.mutationCallback=()=>{const e=this.elementRef.nativeElement.querySelector('[data-dynamic-element="dynamicElement"]');this.ignoreMutations?this.mutationObserver.disconnect():e&&this.dataLoaded.emit()},this.isBrowser=(0,r.isPlatformBrowser)(this.platformId)}ngOnInit(){this.isBrowser&&(this.mutationObserver=new MutationObserver(this.mutationCallback),this.mutationObserver.observe(this.elementRef.nativeElement,{childList:!0,subtree:!0}),this.intersectionObserver=new IntersectionObserver(this.intersectionObserverCallback),this.intersectionObserver.observe(this.elementRef.nativeElement),this.router.events.forEach((e=>{e instanceof o.NavigationEnd&&this.mutationObserver.observe(this.elementRef.nativeElement,{childList:!0,subtree:!0})})))}ngOnDestroy(){this.isBrowser&&this.mutationObserver&&this.mutationObserver.disconnect(),this.intersectionObserver&&this.intersectionObserver.disconnect()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](o.Router))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxDynamicDataLoad",""]],inputs:{ignoreMutations:"ignoreMutations"},outputs:{dataLoaded:"dataLoaded"}}),e})(),RS=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.renderer=t,this.platformId=n,this.allowedToRender=!1,this.footerVisible=new i.EventEmitter,this.isBrowser=!1,this.intersectionObserverCallback=e=>{this.renderer.setStyle(this.elementRef.nativeElement,"visibility","visible"),this.allowedToRender&&e[0].isIntersecting&&this.footerVisible.emit()},this.isBrowser=(0,r.isPlatformBrowser)(n)}ngOnInit(){this.isBrowser&&(this.renderer.setStyle(this.elementRef.nativeElement,"visibility",this.allowedToRender?"visible":"hidden"),this.intersectionObserver=new IntersectionObserver(this.intersectionObserverCallback),this.intersectionObserver.observe(this.elementRef.nativeElement))}ngOnDestroy(){this.isBrowser&&this.intersectionObserver.disconnect()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxFooterVisible",""]],inputs:{allowedToRender:"allowedToRender"},outputs:{footerVisible:"footerVisible"}}),e})();const DS=["topContainer"];function LS(e,t){if(1&e&&i["ɵɵelement"](0,"bx-footer",5),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("footerData",e.footerMarketingPage)}}function FS(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",3),i["ɵɵlistener"]("footerVisible",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().onFooterVisible()})),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,LS,1,1,"bx-footer",4),i["ɵɵtext"](3,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("allowedToRender",e.isDynamicDataLoaded),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.isDynamicDataLoaded)}}let BS=(()=>{class e{constructor(e,t,n){this.router=e,this.footerContentService=t,this.platformId=n,this.isBrowser=!1,this.isDynamicDataLoaded=!1,this.hasFooterRendered=!1,this.isBrowser=(0,r.isPlatformBrowser)(this.platformId)}ngOnInit(){this.router.events.forEach((e=>{e instanceof o.NavigationStart&&(this.hasFooterRendered=!1,this.isDynamicDataLoaded=!1)}))}ngOnDestroy(){this.contentSubscription&&this.contentSubscription.unsubscribe()}onFooterVisible(){this.hasFooterRendered||this.renderFooter()}hasMarketingDataLoaded(){const e=this.child.nativeElement.querySelector("bx-marketing-page div");if(e&&e.children)return e.children.length>0}canRenderFooter(){const{url:e}=this.router;return!("/"===e.split("?")[0]&&!this.hasMarketingDataLoaded())}onDynamicDataLoaded(){!this.isDynamicDataLoaded&&this.canRenderFooter()&&(this.isDynamicDataLoaded=!0,this.renderFooter())}setFooter(){return!!this.isBrowser&&(this.contentSubscription=this.footerContentService.getContent("footer").subscribe((e=>{this.footerMarketingPage=e})),!0)}renderFooter(){this.hasFooterRendered=this.setFooter()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](Wa),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-root-component"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](DS,7),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.child=e.first)}},decls:11,vars:2,consts:[["bxDynamicDataLoad","",3,"ignoreMutations","dataLoaded"],["topContainer",""],["bxFooterVisible","",3,"allowedToRender","footerVisible",4,"ngIf"],["bxFooterVisible","",3,"allowedToRender","footerVisible"],[3,"footerData",4,"ngIf"],[3,"footerData"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelement"](1,"bx-header"),i["ɵɵtext"](2,"\n        "),i["ɵɵelementStart"](3,"div",0,1),i["ɵɵlistener"]("dataLoaded",(function(){return t.onDynamicDataLoaded()})),i["ɵɵtext"](5,"\n            "),i["ɵɵelement"](6,"router-outlet"),i["ɵɵtext"](7,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n        "),i["ɵɵtemplate"](9,FS,4,2,"div",2),i["ɵɵtext"](10,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ignoreMutations",t.isDynamicDataLoaded),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",t.isBrowser))},directives:[jS,NS,o.RouterOutlet,r.NgIf,RS,za],encapsulation:2}),e})();function US(){return globalThis.config["site.config.mfe.enabled"].includes("forgot-password")||"undefined"!=typeof window&&(null===document||void 0===document?void 0:document.cookie.includes("_site.config.mfe.enabled"))?n.e(755).then(n.bind(n,18755)).then((e=>e.ForgotPasswordIntegrationModule)):Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(735)]).then(n.bind(n,99735)).then((e=>e.LazyForgotPasswordPlayerModule))}const VS=[{path:Vf.sz,component:Uh,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0,resource:"terms-of-service"},resolve:{resourceData:Bh}},{path:Vf.iS,component:Uh,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0,resource:"responsible-gambling-page"},resolve:{resourceData:Bh}},{path:Vf.Bz,component:Uh,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0,resource:"privacy-policy-page"},resolve:{resourceData:Bh}},{path:Vf.$P,component:Uh,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0,resource:"about-us-page"},resolve:{resourceData:Bh}},{path:Vf.HB,component:Uh,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0},resolve:{resourceData:Bh}},{path:Vf.Jp,loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(551),n.e(590)]).then(n.bind(n,94590)).then((e=>e.LazyContactUsModule)),canActivate:[Yf]},{path:Vf.A1,component:av,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0},canActivate:[Jf]}],GS=[{path:Xh.wF,component:vg},...Bb,...sb,{path:"",component:BS,canActivate:[Wv],resolve:[tp],children:[{path:Vf.Z0,component:DC,loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(551),n.e(741),n.e(77),n.e(48)]).then(n.bind(n,87048)).then((e=>e.LazyHelpMenuModule)),canActivate:[Qf]},{path:Vf.Gl,loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(551),n.e(741),n.e(402)]).then(n.bind(n,68402)).then((e=>e.LazyContactUsPageModule))},{path:Vf.ft,component:RC,canActivate:[_p,_b.S],canActivateChild:[_p],resolve:{isAffiliate:Ve.a},children:[{path:"",resolve:{content:ic},children:[{path:Vf.ZE,loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(229),n.e(484)]).then(n.bind(n,95484)).then((e=>e.LazyLoginModule))},{path:Vf.ts,canActivate:[Cb.S],resolve:{postCFUrl:Hg},loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(163)]).then(n.bind(n,90163)).then((e=>e.ProfileRegistrationModule))},{path:Vf.Gq,loadChildren:()=>n.e(331).then(n.bind(n,70331)).then((e=>e.LazyGratificationModule))},{path:Vf.uz,canActivate:[ah.a1,L.T],loadChildren:()=>n.e(305).then(n.bind(n,33057)).then((e=>e.LazyTwoFactorAuthenticatorModule))},{path:Vf.To,canActivate:[ah.a1],data:{conversionFunnel:!0},loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(186),n.e(102)]).then(n.bind(n,102)).then((e=>e.LazyValidationCodeModule))},{path:Vf.To+"/:operation",canActivate:[ah.a1],resolve:{previousUrl:wv},loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(186),n.e(102)]).then(n.bind(n,102)).then((e=>e.LazyValidationCodeModule))},{path:Vf.t5,children:[{path:"",canActivate:[ah.a1],resolve:{previousUrl:wv},loadChildren:()=>n.e(862).then(n.bind(n,28862)).then((e=>e.LazySendValidationCodeModule))}]},{path:Vf.jA,loadChildren:()=>Promise.all([n.e(174),n.e(123)]).then(n.bind(n,37123)).then((e=>e.LazyBonusSelectorFirstTimeModule)),canActivate:[ah.a1,eh.s],resolve:{firstTimeDepositor:Qp},data:{continueNavigationUrl:Vf.dU,header:"first-bonus-selection-slideshow",footer:"first-bonus-selection-section"}},{path:Vf.If,canActivate:[Lb],loadChildren:US},{path:Ib.b,canActivate:[Lb],loadChildren:US,data:{force:!0}},{path:Vf.FJ,loadChildren:()=>n.e(539).then(n.bind(n,29539)).then((e=>e.LazyResetPasswordModule)),data:{trackingUrl:"reset-password"}},...VS,{path:Vf.Lb,canActivate:[ah.a1,eh.s],component:Db,data:{overlayComponentStyle:"noHorizontalScroll"}},{path:Oe,component:jb,data:{overlayComponentStyle:"noHorizontalScroll"}},{path:Vf.HY,component:ty,data:{overlayComponentStyle:"noHorizontalScroll"}},{path:Vf.MD,component:ay,data:{overlayComponentStyle:"noHorizontalScroll"}},{path:Tb.S,loadChildren:()=>n.e(745).then(n.bind(n,72745)).then((e=>e.LazyResetPinModule)),data:{overlayComponentStyle:"noHorizontalScroll",pinCodeOperationType:"FORCE_UPDATE"}},{path:Tb.d,canActivate:[ah.a1],loadChildren:()=>n.e(745).then(n.bind(n,72745)).then((e=>e.LazyResetPinModule)),data:{overlayComponentStyle:"noHorizontalScroll",pinCodeOperationType:"RESET"}},{path:Pb.O,loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(155)]).then(n.bind(n,48155)).then((e=>e.LazyPhoneNumberResetModule)),data:{overlayComponentStyle:"noHorizontalScroll"}},{path:Vf.Px,canActivate:[ah.a1,eh.s,Zb.J],canDeactivate:[Zb.J],resolve:{StylesheetResolver:yg.Z},data:{channel:"cashier"},loadChildren:()=>Promise.all([n.e(174),n.e(668)]).then(n.bind(n,22668)).then((e=>e.LazyCashierModule))},{path:Xh.RC,loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(174),n.e(823),n.e(306),n.e(596)]).then(n.bind(n,87596)).then((e=>e.AccountMenuModule)),resolve:{className:Df}},{path:"articles",loadChildren:()=>n.e(210).then(n.bind(n,50210)).then((e=>e.LazyArticlesModule)),data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0}},{path:"promotions",loadChildren:()=>n.e(974).then(n.bind(n,33974)).then((e=>e.LazyPromotionsModule)),data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0}},{path:Vf.TV,loadChildren:()=>n.e(366).then(n.bind(n,96366)).then((e=>e.LazyForumUsernameModule))},{path:":slug",component:Qb,resolve:{marketingPage:cg},data:{overlayComponentPosition:"top",overlayComponentTint:"light",isMarketingPage:!0}},...dC]},...(HS=Ub,[{path:"casino/:category",resolve:{category:pn,content:nc},component:HS},{path:"casino/:category/:subcategory",resolve:{category:pn,content:nc},component:HS}])]}]},{path:"**",redirectTo:Xh.wF}];var HS,zS=n(1028);n(7011);let $S=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[De]}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[$,z,{provide:r.LocationStrategy,useClass:F.Uo},Lb,L.T],imports:[[Eb,D.forRoot(),B.L1.forRoot(),zS.Qs.configure({shared:!0,fetchUrl:"/assets/apps/manifest.json"}),o.RouterModule.forRoot(GS,{preloadingStrategy:$,initialNavigation:"enabled",anchorScrolling:"enabled",enableTracing:!1}),Q]]}),e})();function WS(){(function(e,t){var n;t.platformFactory||(t.platformFactory=()=>(0,Le.platformBrowser)()),(null===(n=t.compilerOptions)||void 0===n?void 0:n.ngZone)||(t.compilerOptions=t.compilerOptions||{},t.compilerOptions.ngZone=window.ngZone);const r=function(){const e=window;return e.platform=e.platform||new Map,e}();let o=r.platform.get(i.VERSION);return o||(o=t.platformFactory(),r.platform.set(i.VERSION,o),t.production&&(0,i.enableProdMode)()),o.bootstrapModule(e,t.compilerOptions)})($S,{production:true}).catch((e=>console.log(e)))}"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode,n.p=(window.config["site.config.cdn.sharding_enabled"]&&"true"===window.config["site.config.cdn.sharding_enabled"][0]&&window.config["site.config.cdn.domains"]&&window.config["site.config.cdn.domains"][0]?window.config["site.config.cdn.domains"][0]:"")+(window.isDev?"":(window.config["site.config.url_prefix"]&&window.config["site.config.url_prefix"][0]?"/"+window.config["site.config.url_prefix"][0]:"")+"/assets/js/"),(0,i.enableProdMode)(),"complete"===document.readyState||"interactive"===document.readyState?WS():document.addEventListener("DOMContentLoaded",(()=>{WS()})),window.wtrackLoaded$=new Promise((e=>{let t;Object.defineProperty(window,"wtrack",{set:n=>{t||(t=n,e({}))},get:function(){return t}})})),window.global=window},35697:(e,t,n)=>{n(66837),n(88854),n(35704),n(13744);var i=n(86950);e.exports=i.Map},77340:(e,t,n)=>{var i=n(31864),r=n(25591),o=n(60802),a=i.TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},95143:(e,t,n)=>{var i=n(31864),r=n(25591),o=i.String,a=i.TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},24094:(e,t,n)=>{var i=n(84563),r=n(38724),o=n(52975),a=i("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},86063:(e,t,n)=>{var i=n(31864),r=n(93290),o=i.TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},21099:(e,t,n)=>{var i=n(31864),r=n(60726),o=i.String,a=i.TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not an object")}},93241:(e,t,n)=>{var i=n(8597);e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},70452:(e,t,n)=>{var i=n(8643),r=n(20222),o=n(24196),a=function(e){return function(t,n,a){var s,c=i(t),l=o(c),d=r(a,l);if(e&&n!=n){for(;l>d;)if((s=c[d++])!=s)return!0}else for(;l>d;d++)if((e||d in c)&&c[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},32342:(e,t,n)=>{var i=n(31864),r=n(20222),o=n(24196),a=n(45347),s=i.Array,c=Math.max;e.exports=function(e,t,n){for(var i=o(e),l=r(t,i),d=r(void 0===n?i:n,i),u=s(c(d-l,0)),p=0;l<d;l++,p++)a(u,p,e[l]);return u.length=p,u}},56297:(e,t,n)=>{var i=n(84563)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},96644:(e,t,n)=>{var i=n(47964),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},99420:(e,t,n)=>{var i=n(31864),r=n(72900),o=n(25591),a=n(96644),s=n(84563)("toStringTag"),c=i.Object,l="Arguments"==a(function(){return arguments}());e.exports=r?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c(e),s))?n:l?a(t):"Object"==(i=a(t))&&o(t.callee)?"Arguments":i}},5692:(e,t,n)=>{"use strict";var i=n(52975).f,r=n(38724),o=n(78715),a=n(29727),s=n(86063),c=n(53284),l=n(66038),d=n(37374),u=n(47012),p=n(64238).fastKey,h=n(52493),m=h.set,g=h.getterFor;e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,i){s(e,h),m(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),u||(e.size=0),null!=i&&c(i,e[l],{that:e,AS_ENTRIES:n})})),h=d.prototype,f=g(t),v=function(e,t,n){var i,r,o=f(e),a=b(e,t);return a?a.value=n:(o.last=a={index:r=p(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),u?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},b=function(e,t){var n,i=f(e),r=p(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(h,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,u?e.size=0:this.size=0},delete:function(e){var t=this,n=f(t),i=b(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),u?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=f(this),i=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(h,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),u&&i(h,"size",{get:function(){return f(this).size}}),d},setStrong:function(e,t,n){var i=t+" Iterator",r=g(t),o=g(i);l(e,t,(function(e,t){m(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),d(t)}}},41603:(e,t,n)=>{"use strict";var i=n(51163),r=n(31864),o=n(47964),a=n(87215),s=n(87763),c=n(64238),l=n(53284),d=n(86063),u=n(25591),p=n(60726),h=n(8597),m=n(56297),g=n(58242),f=n(38267);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),y=v?"set":"add",C=r[e],S=C&&C.prototype,x=C,w={},E=function(e){var t=o(S[e]);s(S,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!u(C)||!(b||S.forEach&&!h((function(){(new C).entries().next()})))))x=n.getConstructor(t,e,v,y),c.enable();else if(a(e,!0)){var I=new x,P=I[y](b?{}:-0,1)!=I,T=h((function(){I.has(1)})),_=m((function(e){new C(e)})),M=!b&&h((function(){for(var e=new C,t=5;t--;)e[y](t,t);return!e.has(-0)}));_||((x=t((function(e,t){d(e,S);var n=f(new C,e,x);return null!=t&&l(t,n[y],{that:n,AS_ENTRIES:v}),n}))).prototype=S,S.constructor=x),(T||M)&&(E("delete"),E("has"),v&&E("get")),(M||P)&&E(y),b&&S.clear&&delete S.clear}return w[e]=x,i({global:!0,forced:x!=C},w),g(x,e),b||n.setStrong(x,e,v),x}},30009:(e,t,n)=>{var i=n(62445),r=n(99376),o=n(93099),a=n(52975);e.exports=function(e,t,n){for(var s=r(t),c=a.f,l=o.f,d=0;d<s.length;d++){var u=s[d];i(e,u)||n&&i(n,u)||c(e,u,l(t,u))}}},51335:(e,t,n)=>{var i=n(8597);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},17453:(e,t,n)=>{"use strict";var i=n(92053).IteratorPrototype,r=n(38724),o=n(53203),a=n(58242),s=n(72339),c=function(){return this};e.exports=function(e,t,n,l){var d=t+" Iterator";return e.prototype=r(i,{next:o(+!l,n)}),a(e,d,!1,!0),s[d]=c,e}},815:(e,t,n)=>{var i=n(47012),r=n(52975),o=n(53203);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},53203:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},45347:(e,t,n)=>{"use strict";var i=n(16582),r=n(52975),o=n(53203);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},66038:(e,t,n)=>{"use strict";var i=n(51163),r=n(757),o=n(97515),a=n(20538),s=n(25591),c=n(17453),l=n(3963),d=n(91464),u=n(58242),p=n(815),h=n(87763),m=n(84563),g=n(72339),f=n(92053),v=a.PROPER,b=a.CONFIGURABLE,y=f.IteratorPrototype,C=f.BUGGY_SAFARI_ITERATORS,S=m("iterator"),x="keys",w="values",E="entries",I=function(){return this};e.exports=function(e,t,n,a,m,f,P){c(n,t,a);var T,_,M,O=function(e){if(e===m&&R)return R;if(!C&&e in j)return j[e];switch(e){case x:case w:case E:return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",k=!1,j=e.prototype,N=j[S]||j["@@iterator"]||m&&j[m],R=!C&&N||O(m),D="Array"==t&&j.entries||N;if(D&&(T=l(D.call(new e)))!==Object.prototype&&T.next&&(o||l(T)===y||(d?d(T,y):s(T[S])||h(T,S,I)),u(T,A,!0,!0),o&&(g[A]=I)),v&&m==w&&N&&N.name!==w&&(!o&&b?p(j,"name",w):(k=!0,R=function(){return r(N,this)})),m)if(_={values:O(w),keys:f?R:O(x),entries:O(E)},P)for(M in _)(C||k||!(M in j))&&h(j,M,_[M]);else i({target:t,proto:!0,forced:C||k},_);return o&&!P||j[S]===R||h(j,S,R,{name:m}),g[t]=R,_}},47012:(e,t,n)=>{var i=n(8597);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},85815:(e,t,n)=>{var i=n(31864),r=n(60726),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},73792:(e,t,n)=>{var i=n(73626);e.exports=i("navigator","userAgent")||""},17189:(e,t,n)=>{var i,r,o=n(31864),a=n(73792),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,d=l&&l.v8;d&&(r=(i=d.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},71001:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},51163:(e,t,n)=>{var i=n(31864),r=n(93099).f,o=n(815),a=n(87763),s=n(22341),c=n(30009),l=n(87215);e.exports=function(e,t){var n,d,u,p,h,m=e.target,g=e.global,f=e.stat;if(n=g?i:f?i[m]||s(m,{}):(i[m]||{}).prototype)for(d in t){if(p=t[d],u=e.noTargetGet?(h=r(n,d))&&h.value:n[d],!l(g?d:m+(f?".":"#")+d,e.forced)&&void 0!==u){if(typeof p==typeof u)continue;c(p,u)}(e.sham||u&&u.sham)&&o(p,"sham",!0),a(n,d,p,e)}}},8597:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},39352:(e,t,n)=>{var i=n(8597);e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},29727:(e,t,n)=>{var i=n(47964),r=n(77340),o=n(4459),a=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},4459:(e,t,n)=>{var i=n(8597);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},757:(e,t,n)=>{var i=n(4459),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},20538:(e,t,n)=>{var i=n(47012),r=n(62445),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!i||i&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},47964:(e,t,n)=>{var i=n(4459),r=Function.prototype,o=r.bind,a=r.call,s=i&&o.bind(a,a);e.exports=i?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},73626:(e,t,n)=>{var i=n(31864),r=n(25591),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e]):i[e]&&i[e][t]}},63076:(e,t,n)=>{var i=n(99420),r=n(35642),o=n(72339),a=n(84563)("iterator");e.exports=function(e){if(null!=e)return r(e,a)||r(e,"@@iterator")||o[i(e)]}},36414:(e,t,n)=>{var i=n(31864),r=n(757),o=n(77340),a=n(21099),s=n(60802),c=n(63076),l=i.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(o(n))return a(r(n,e));throw l(s(e)+" is not iterable")}},35642:(e,t,n)=>{var i=n(77340);e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},31864:e=>{var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},62445:(e,t,n)=>{var i=n(47964),r=n(16174),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},3536:e=>{e.exports={}},67538:(e,t,n)=>{var i=n(73626);e.exports=i("document","documentElement")},27091:(e,t,n)=>{var i=n(47012),r=n(8597),o=n(85815);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},56169:(e,t,n)=>{var i=n(31864),r=n(47964),o=n(8597),a=n(96644),s=i.Object,c=r("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):s(e)}:s},38267:(e,t,n)=>{var i=n(25591),r=n(60726),o=n(91464);e.exports=function(e,t,n){var a,s;return o&&i(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},87720:(e,t,n)=>{var i=n(47964),r=n(25591),o=n(59941),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},64238:(e,t,n)=>{var i=n(51163),r=n(47964),o=n(3536),a=n(60726),s=n(62445),c=n(52975).f,l=n(94564),d=n(7388),u=n(67117),p=n(94295),h=n(39352),m=!1,g=p("meta"),f=0,v=function(e){c(e,g,{value:{objectID:"O"+f++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},m=!0;var e=l.f,t=r([].splice),n={};n[g]=1,e(n).length&&(l.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===g){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!u(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!u(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},onFreeze:function(e){return h&&m&&u(e)&&!s(e,g)&&v(e),e}};o[g]=!0},52493:(e,t,n)=>{var i,r,o,a=n(51635),s=n(31864),c=n(47964),l=n(60726),d=n(815),u=n(62445),p=n(59941),h=n(42650),m=n(3536),g="Object already initialized",f=s.TypeError,v=s.WeakMap;if(a||p.state){var b=p.state||(p.state=new v),y=c(b.get),C=c(b.has),S=c(b.set);i=function(e,t){if(C(b,e))throw new f(g);return t.facade=e,S(b,e,t),t},r=function(e){return y(b,e)||{}},o=function(e){return C(b,e)}}else{var x=h("state");m[x]=!0,i=function(e,t){if(u(e,x))throw new f(g);return t.facade=e,d(e,x,t),t},r=function(e){return u(e,x)?e[x]:{}},o=function(e){return u(e,x)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw f("Incompatible receiver, "+e+" required");return n}}}},81643:(e,t,n)=>{var i=n(84563),r=n(72339),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},25591:e=>{e.exports=function(e){return"function"==typeof e}},87215:(e,t,n)=>{var i=n(8597),r=n(25591),o=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==d||n!=l&&(r(t)?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},60726:(e,t,n)=>{var i=n(25591);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},97515:e=>{e.exports=!1},26186:(e,t,n)=>{var i=n(31864),r=n(73626),o=n(25591),a=n(93290),s=n(24431),c=i.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,c(e))}},53284:(e,t,n)=>{var i=n(31864),r=n(29727),o=n(757),a=n(21099),s=n(60802),c=n(81643),l=n(24196),d=n(93290),u=n(36414),p=n(63076),h=n(87883),m=i.TypeError,g=function(e,t){this.stopped=e,this.result=t},f=g.prototype;e.exports=function(e,t,n){var i,v,b,y,C,S,x,w=n&&n.that,E=!(!n||!n.AS_ENTRIES),I=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),T=r(t,w),_=function(e){return i&&h(i,"normal",e),new g(!0,e)},M=function(e){return E?(a(e),P?T(e[0],e[1],_):T(e[0],e[1])):P?T(e,_):T(e)};if(I)i=e;else{if(!(v=p(e)))throw m(s(e)+" is not iterable");if(c(v)){for(b=0,y=l(e);y>b;b++)if((C=M(e[b]))&&d(f,C))return C;return new g(!1)}i=u(e,v)}for(S=i.next;!(x=o(S,i)).done;){try{C=M(x.value)}catch(e){h(i,"throw",e)}if("object"==typeof C&&C&&d(f,C))return C}return new g(!1)}},87883:(e,t,n)=>{var i=n(757),r=n(21099),o=n(35642);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=i(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},92053:(e,t,n)=>{"use strict";var i,r,o,a=n(8597),s=n(25591),c=n(38724),l=n(3963),d=n(87763),u=n(84563),p=n(97515),h=u("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(r=l(l(o)))!==Object.prototype&&(i=r):m=!0),null==i||a((function(){var e={};return i[h].call(e)!==e}))?i={}:p&&(i=c(i)),s(i[h])||d(i,h,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},72339:e=>{e.exports={}},24196:(e,t,n)=>{var i=n(15902);e.exports=function(e){return i(e.length)}},77040:(e,t,n)=>{var i=n(17189),r=n(8597);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},51635:(e,t,n)=>{var i=n(31864),r=n(25591),o=n(87720),a=i.WeakMap;e.exports=r(a)&&/native code/.test(o(a))},38724:(e,t,n)=>{var i,r=n(21099),o=n(10988),a=n(71001),s=n(3536),c=n(67538),l=n(85815),d=n(42650)("IE_PROTO"),u=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&i?h(i):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(i);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[d]=e):n=m(),void 0===t?n:o.f(n,t)}},10988:(e,t,n)=>{var i=n(47012),r=n(52339),o=n(52975),a=n(21099),s=n(8643),c=n(68032);t.f=i&&!r?Object.defineProperties:function(e,t){a(e);for(var n,i=s(t),r=c(t),l=r.length,d=0;l>d;)o.f(e,n=r[d++],i[n]);return e}},52975:(e,t,n)=>{var i=n(31864),r=n(47012),o=n(27091),a=n(52339),s=n(21099),c=n(16582),l=i.TypeError,d=Object.defineProperty,u=Object.getOwnPropertyDescriptor;t.f=r?a?function(e,t,n){if(s(e),t=c(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var i=u(e,t);i&&i.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:i.configurable,enumerable:"enumerable"in n?n.enumerable:i.enumerable,writable:!1})}return d(e,t,n)}:d:function(e,t,n){if(s(e),t=c(t),s(n),o)try{return d(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},93099:(e,t,n)=>{var i=n(47012),r=n(757),o=n(5600),a=n(53203),s=n(8643),c=n(16582),l=n(62445),d=n(27091),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=s(e),t=c(t),d)try{return u(e,t)}catch(e){}if(l(e,t))return a(!r(o.f,e,t),e[t])}},7388:(e,t,n)=>{var i=n(96644),r=n(8643),o=n(94564).f,a=n(32342),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==i(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(r(e))}},94564:(e,t,n)=>{var i=n(77759),r=n(71001).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},77593:(e,t)=>{t.f=Object.getOwnPropertySymbols},3963:(e,t,n)=>{var i=n(31864),r=n(62445),o=n(25591),a=n(16174),s=n(42650),c=n(51335),l=s("IE_PROTO"),d=i.Object,u=d.prototype;e.exports=c?d.getPrototypeOf:function(e){var t=a(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof d?u:null}},67117:(e,t,n)=>{var i=n(8597),r=n(60726),o=n(96644),a=n(93241),s=Object.isExtensible,c=i((function(){s(1)}));e.exports=c||a?function(e){return!!r(e)&&(!a||"ArrayBuffer"!=o(e))&&(!s||s(e))}:s},93290:(e,t,n)=>{var i=n(47964);e.exports=i({}.isPrototypeOf)},77759:(e,t,n)=>{var i=n(47964),r=n(62445),o=n(8643),a=n(70452).indexOf,s=n(3536),c=i([].push);e.exports=function(e,t){var n,i=o(e),l=0,d=[];for(n in i)!r(s,n)&&r(i,n)&&c(d,n);for(;t.length>l;)r(i,n=t[l++])&&(~a(d,n)||c(d,n));return d}},68032:(e,t,n)=>{var i=n(77759),r=n(71001);e.exports=Object.keys||function(e){return i(e,r)}},5600:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},91464:(e,t,n)=>{var i=n(47964),r=n(21099),o=n(95143);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e(n,i):n.__proto__=i,n}}():void 0)},83119:(e,t,n)=>{"use strict";var i=n(72900),r=n(99420);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},48297:(e,t,n)=>{var i=n(31864),r=n(757),o=n(25591),a=n(60726),s=i.TypeError;e.exports=function(e,t){var n,i;if("string"===t&&o(n=e.toString)&&!a(i=r(n,e)))return i;if(o(n=e.valueOf)&&!a(i=r(n,e)))return i;if("string"!==t&&o(n=e.toString)&&!a(i=r(n,e)))return i;throw s("Can't convert object to primitive value")}},99376:(e,t,n)=>{var i=n(73626),r=n(47964),o=n(94564),a=n(77593),s=n(21099),c=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?c(t,n(e)):t}},86950:(e,t,n)=>{var i=n(31864);e.exports=i},78715:(e,t,n)=>{var i=n(87763);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},87763:(e,t,n)=>{var i=n(31864),r=n(25591),o=n(62445),a=n(815),s=n(22341),c=n(87720),l=n(52493),d=n(20538).CONFIGURABLE,u=l.get,p=l.enforce,h=String(String).split("String");(e.exports=function(e,t,n,c){var l,u=!!c&&!!c.unsafe,m=!!c&&!!c.enumerable,g=!!c&&!!c.noTargetGet,f=c&&void 0!==c.name?c.name:t;r(n)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||d&&n.name!==f)&&a(n,"name",f),(l=p(n)).source||(l.source=h.join("string"==typeof f?f:""))),e!==i?(u?!g&&e[t]&&(m=!0):delete e[t],m?e[t]=n:a(e,t,n)):m?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return r(this)&&u(this).source||c(this)}))},95025:(e,t,n)=>{var i=n(31864).TypeError;e.exports=function(e){if(null==e)throw i("Can't call method on "+e);return e}},22341:(e,t,n)=>{var i=n(31864),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},37374:(e,t,n)=>{"use strict";var i=n(73626),r=n(52975),o=n(84563),a=n(47012),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},58242:(e,t,n)=>{var i=n(52975).f,r=n(62445),o=n(84563)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,o)&&i(e,o,{configurable:!0,value:t})}},42650:(e,t,n)=>{var i=n(77719),r=n(94295),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},59941:(e,t,n)=>{var i=n(31864),r=n(22341),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},77719:(e,t,n)=>{var i=n(97515),r=n(59941);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},64487:(e,t,n)=>{var i=n(47964),r=n(22157),o=n(73574),a=n(95025),s=i("".charAt),c=i("".charCodeAt),l=i("".slice),d=function(e){return function(t,n){var i,d,u=o(a(t)),p=r(n),h=u.length;return p<0||p>=h?e?"":void 0:(i=c(u,p))<55296||i>56319||p+1===h||(d=c(u,p+1))<56320||d>57343?e?s(u,p):i:e?l(u,p,p+2):d-56320+(i-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},20222:(e,t,n)=>{var i=n(22157),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},8643:(e,t,n)=>{var i=n(56169),r=n(95025);e.exports=function(e){return i(r(e))}},22157:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){var i=+e;return i!=i||0===i?0:(i>0?n:t)(i)}},15902:(e,t,n)=>{var i=n(22157),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},16174:(e,t,n)=>{var i=n(31864),r=n(95025),o=i.Object;e.exports=function(e){return o(r(e))}},28495:(e,t,n)=>{var i=n(31864),r=n(757),o=n(60726),a=n(26186),s=n(35642),c=n(48297),l=n(84563),d=i.TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,i=s(e,u);if(i){if(void 0===t&&(t="default"),n=r(i,e,t),!o(n)||a(n))return n;throw d("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},16582:(e,t,n)=>{var i=n(28495),r=n(26186);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},72900:(e,t,n)=>{var i={};i[n(84563)("toStringTag")]="z",e.exports="[object z]"===String(i)},73574:(e,t,n)=>{var i=n(31864),r=n(99420),o=i.String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},60802:(e,t,n)=>{var i=n(31864).String;e.exports=function(e){try{return i(e)}catch(e){return"Object"}}},94295:(e,t,n)=>{var i=n(47964),r=0,o=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+o,36)}},24431:(e,t,n)=>{var i=n(77040);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},52339:(e,t,n)=>{var i=n(47012),r=n(8597);e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},84563:(e,t,n)=>{var i=n(31864),r=n(77719),o=n(62445),a=n(94295),s=n(77040),c=n(24431),l=r("wks"),d=i.Symbol,u=d&&d.for,p=c?d:d&&d.withoutSetter||a;e.exports=function(e){if(!o(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&o(d,e)?l[e]=d[e]:l[e]=c&&u?u(t):p(t)}return l[e]}},44049:(e,t,n)=>{"use strict";var i=n(51163),r=n(70452).includes,o=n(24094);i({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},66837:(e,t,n)=>{"use strict";var i=n(8643),r=n(24094),o=n(72339),a=n(52493),s=n(52975).f,c=n(66038),l=n(97515),d=n(47012),u="Array Iterator",p=a.set,h=a.getterFor(u);e.exports=c(Array,"Array",(function(e,t){p(this,{type:u,target:i(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");var m=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!l&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},88854:(e,t,n)=>{"use strict";n(41603)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5692))},35704:(e,t,n)=>{var i=n(72900),r=n(87763),o=n(83119);i||r(Object.prototype,"toString",o,{unsafe:!0})},13744:(e,t,n)=>{"use strict";var i=n(64487).charAt,r=n(73574),o=n(52493),a=n(66038),s="String Iterator",c=o.set,l=o.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:r(e),index:0})}),(function(){var e,t=l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},64762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>S,__asyncGenerator:()=>C,__asyncValues:()=>x,__await:()=>y,__awaiter:()=>d,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>_,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>h,__extends:()=>r,__generator:()=>u,__importDefault:()=>P,__importStar:()=>I,__makeTemplateObject:()=>w,__metadata:()=>l,__param:()=>c,__read:()=>g,__rest:()=>a,__spread:()=>f,__spreadArray:()=>b,__spreadArrays:()=>v,__values:()=>m});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function u(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var p=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||p(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function f(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function b(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function C(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,l):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,r,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return E(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function _(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}},44365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Struct:()=>d,StructError:()=>i,any:()=>I,array:()=>P,assert:()=>u,assign:()=>f,bigint:()=>T,boolean:()=>_,coerce:()=>Y,create:()=>p,date:()=>M,defaulted:()=>J,define:()=>v,deprecated:()=>b,dynamic:()=>y,empty:()=>Z,enums:()=>O,func:()=>A,instance:()=>k,integer:()=>j,intersection:()=>N,is:()=>m,lazy:()=>C,literal:()=>R,map:()=>D,mask:()=>h,max:()=>te,min:()=>ne,never:()=>L,nonempty:()=>ie,nullable:()=>F,number:()=>B,object:()=>U,omit:()=>S,optional:()=>V,partial:()=>x,pattern:()=>re,pick:()=>w,record:()=>G,refine:()=>ae,regexp:()=>H,set:()=>z,size:()=>oe,string:()=>$,struct:()=>E,trimmed:()=>Q,tuple:()=>W,type:()=>q,union:()=>K,unknown:()=>X,validate:()=>g});class i extends TypeError{constructor(e,t){let n;const{message:i,...r}=e,{path:o}=e;super(0===o.length?i:"At path: "+o.join(".")+" -- "+i),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,r),this.name=this.constructor.name,this.failures=()=>{var i;return null!=(i=n)?i:n=[e,...t()]}}}function r(e){return"object"==typeof e&&null!=e}function o(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function a(e){return"string"==typeof e?JSON.stringify(e):""+e}function s(e,t,n,i){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:r,branch:o}=t,{type:s}=n,{refinement:c,message:l="Expected a value of type `"+s+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+a(i)+"`"}=e;return{value:i,type:s,refinement:c,key:r[r.length-1],path:r,branch:o,...e,message:l}}function*c(e,t,n,i){var o;r(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]);for(const r of e){const e=s(r,t,n,i);e&&(yield e)}}function*l(e,t,n){void 0===n&&(n={});const{path:i=[],branch:o=[e],coerce:a=!1,mask:s=!1}=n,c={path:i,branch:o};if(a&&(e=t.coercer(e,c),s&&"type"!==t.type&&r(t.schema)&&r(e)&&!Array.isArray(e)))for(const n in e)void 0===t.schema[n]&&delete e[n];let d="valid";for(const n of t.validator(e,c))d="not_valid",yield[n,void 0];for(let[n,u,p]of t.entries(e,c)){const t=l(u,p,{path:void 0===n?i:[...i,n],branch:void 0===n?o:[...o,u],coerce:a,mask:s});for(const i of t)i[0]?(d=null!=i[0].refinement?"not_refined":"not_valid",yield[i[0],void 0]):a&&(u=i[1],void 0===n?e=u:e instanceof Map?e.set(n,u):e instanceof Set?e.add(u):r(e)&&(e[n]=u))}if("not_valid"!==d)for(const n of t.refiner(e,c))d="not_refined",yield[n,void 0];"valid"===d&&(yield[void 0,e])}class d{constructor(e){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:t,schema:n,validator:i,refiner:r,coercer:o=(e=>e),entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=o,this.validator=i?(e,t)=>c(i(e,t),t,this,e):()=>[],this.refiner=r?(e,t)=>c(r(e,t),t,this,e):()=>[]}assert(e){return u(e,this)}create(e){return p(e,this)}is(e){return m(e,this)}mask(e){return h(e,this)}validate(e,t){return void 0===t&&(t={}),g(e,this,t)}}function u(e,t){const n=g(e,t);if(n[0])throw n[0]}function p(e,t){const n=g(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function h(e,t){const n=g(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}function m(e,t){return!g(e,t)[0]}function g(e,t,n){void 0===n&&(n={});const r=l(e,t,n),o=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(r);return o[0]?[new i(o[0],(function*(){for(const e of r)e[0]&&(yield e[0])})),void 0]:[void 0,o[1]]}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i="type"===t[0].type,r=t.map((e=>e.schema)),o=Object.assign({},...r);return i?q(o):U(o)}function v(e,t){return new d({type:e,schema:null,validator:t})}function b(e,t){return new d({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,i)=>void 0===n||(t(n,i),e.validator(n,i))})}function y(e){return new d({type:"dynamic",schema:null,*entries(t,n){const i=e(t,n);yield*i.entries(t,n)},validator:(t,n)=>e(t,n).validator(t,n),coercer:(t,n)=>e(t,n).coercer(t,n),refiner:(t,n)=>e(t,n).refiner(t,n)})}function C(e){let t;return new d({type:"lazy",schema:null,*entries(n,i){null!=t||(t=e()),yield*t.entries(n,i)},validator:(n,i)=>(null!=t||(t=e()),t.validator(n,i)),coercer:(n,i)=>(null!=t||(t=e()),t.coercer(n,i)),refiner:(n,i)=>(null!=t||(t=e()),t.refiner(n,i))})}function S(e,t){const{schema:n}=e,i={...n};for(const e of t)delete i[e];return"type"===e.type?q(i):U(i)}function x(e){const t=e instanceof d?{...e.schema}:{...e};for(const e in t)t[e]=V(t[e]);return U(t)}function w(e,t){const{schema:n}=e,i={};for(const e of t)i[e]=n[e];return U(i)}function E(e,t){return console.warn("[email protected] - The `struct` helper has been renamed to `define`."),v(e,t)}function I(){return v("any",(()=>!0))}function P(e){return new d({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,i]of t.entries())yield[n,i,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||"Expected an array value, but received: "+a(e)})}function T(){return v("bigint",(e=>"bigint"==typeof e))}function _(){return v("boolean",(e=>"boolean"==typeof e))}function M(){return v("date",(e=>e instanceof Date&&!isNaN(e.getTime())||"Expected a valid `Date` object, but received: "+a(e)))}function O(e){const t={},n=e.map((e=>a(e))).join();for(const n of e)t[n]=n;return new d({type:"enums",schema:t,validator:t=>e.includes(t)||"Expected one of `"+n+"`, but received: "+a(t)})}function A(){return v("func",(e=>"function"==typeof e||"Expected a function, but received: "+a(e)))}function k(e){return v("instance",(t=>t instanceof e||"Expected a `"+e.name+"` instance, but received: "+a(t)))}function j(){return v("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||"Expected an integer, but received: "+a(e)))}function N(e){return new d({type:"intersection",schema:null,*entries(t,n){for(const i of e)yield*i.entries(t,n)},*validator(t,n){for(const i of e)yield*i.validator(t,n)},*refiner(t,n){for(const i of e)yield*i.refiner(t,n)}})}function R(e){const t=a(e),n=typeof e;return new d({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||"Expected the literal `"+t+"`, but received: "+a(n)})}function D(e,t){return new d({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(const[i,r]of n.entries())yield[i,i,e],yield[i,r,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||"Expected a `Map` object, but received: "+a(e)})}function L(){return v("never",(()=>!1))}function F(e){return new d({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function B(){return v("number",(e=>"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+a(e)))}function U(e){const t=e?Object.keys(e):[],n=L();return new d({type:"object",schema:e||null,*entries(i){if(e&&r(i)){const r=new Set(Object.keys(i));for(const n of t)r.delete(n),yield[n,i[n],e[n]];for(const e of r)yield[e,i[e],n]}},validator:e=>r(e)||"Expected an object, but received: "+a(e),coercer:e=>r(e)?{...e}:e})}function V(e){return new d({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function G(e,t){return new d({type:"record",schema:null,*entries(n){if(r(n))for(const i in n){const r=n[i];yield[i,i,e],yield[i,r,t]}},validator:e=>r(e)||"Expected an object, but received: "+a(e)})}function H(){return v("regexp",(e=>e instanceof RegExp))}function z(e){return new d({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||"Expected a `Set` object, but received: "+a(e)})}function $(){return v("string",(e=>"string"==typeof e||"Expected a string, but received: "+a(e)))}function W(e){const t=L();return new d({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const i=Math.max(e.length,n.length);for(let r=0;r<i;r++)yield[r,n[r],e[r]||t]}},validator:e=>Array.isArray(e)||"Expected an array, but received: "+a(e)})}function q(e){const t=Object.keys(e);return new d({type:"type",schema:e,*entries(n){if(r(n))for(const i of t)yield[i,n[i],e[i]]},validator:e=>r(e)||"Expected an object, but received: "+a(e)})}function K(e){const t=e.map((e=>e.type)).join(" | ");return new d({type:"union",schema:null,coercer:(t,n)=>(e.find((e=>{const[n]=e.validate(t,{coerce:!0});return!n}))||X()).coercer(t,n),validator(n,i){const r=[];for(const t of e){const[...e]=l(n,t,i),[o]=e;if(!o[0])return[];for(const[t]of e)t&&r.push(t)}return["Expected the value to satisfy a union of `"+t+"`, but received: "+a(n),...r]}})}function X(){return v("unknown",(()=>!0))}function Y(e,t,n){return new d({...e,coercer:(i,r)=>m(i,t)?e.coercer(n(i,r),r):e.coercer(i,r)})}function J(e,t,n){return void 0===n&&(n={}),Y(e,X(),(e=>{const i="function"==typeof t?t():t;if(void 0===e)return i;if(!n.strict&&o(e)&&o(i)){const t={...e};let n=!1;for(const e in i)void 0===t[e]&&(t[e]=i[e],n=!0);if(n)return t}return e}))}function Q(e){return Y(e,$(),(e=>e.trim()))}function Z(e){return ae(e,"empty",(t=>{const n=ee(t);return 0===n||"Expected an empty "+e.type+" but received one with a size of `"+n+"`"}))}function ee(e){return e instanceof Map||e instanceof Set?e.size:e.length}function te(e,t,n){void 0===n&&(n={});const{exclusive:i}=n;return ae(e,"max",(n=>i?n<t:n<=t||"Expected a "+e.type+" less than "+(i?"":"or equal to ")+t+" but received `"+n+"`"))}function ne(e,t,n){void 0===n&&(n={});const{exclusive:i}=n;return ae(e,"min",(n=>i?n>t:n>=t||"Expected a "+e.type+" greater than "+(i?"":"or equal to ")+t+" but received `"+n+"`"))}function ie(e){return ae(e,"nonempty",(t=>ee(t)>0||"Expected a nonempty "+e.type+" but received an empty one"))}function re(e,t){return ae(e,"pattern",(n=>t.test(n)||"Expected a "+e.type+" matching `/"+t.source+'/` but received "'+n+'"'))}function oe(e,t,n){void 0===n&&(n=t);const i="Expected a "+e.type,r=t===n?"of `"+t+"`":"between `"+t+"` and `"+n+"`";return ae(e,"size",(e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||i+" "+r+" but received `"+e+"`";if(e instanceof Map||e instanceof Set){const{size:o}=e;return t<=o&&o<=n||i+" with a size "+r+" but received one with a size of `"+o+"`"}{const{length:o}=e;return t<=o&&o<=n||i+" with a length "+r+" but received one with a length of `"+o+"`"}}))}function ae(e,t,n){return new d({...e,*refiner(i,r){yield*e.refiner(i,r);const o=c(n(i,r),r,e,i);for(const e of o)yield{...e,refinement:t}}})}},34553:(e,t,n)=>{"use strict";function i(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}}n.d(t,{Z:()=>r})}},e=>{e.O(0,[736],(()=>(95994,e(e.s=95994)))),e.O()}]);