/*! For license information please see main.d8d260d93cf8d937a975.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},3317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChildClient=void 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);var r=n(62579);Object.defineProperty(t,"ChildClient",{enumerable:!0,get:function(){return r.ChildClient}}),i.__exportStar(n(42071),t)},87683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CmRequestStruct=void 0;const i=n(65015);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()),credentials:i.optional(i.enums(["omit","same-origin","include"])),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.isDocumentReferrerFromLocalHost=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.isDocumentReferrerFromLocalHost=function(){return document.referrer.includes("localhost")||document.referrer.includes("127.0.0.1")},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=100,this.HANDSHAKE_INTERVAL=25,this.handshakeFinished=!1,this.status="idle",this.container=e||document.body}init(e){return this.parent=new i.ParentClient,this.setStatus("loading"),(e.childWindow?Promise.resolve(e.childWindow):this.createChild(e)).then((t=>Promise.race([this.parent.init(e,t),this.startHandshake(e,t)]).then((()=>{this.setStatus("iframe")})).catch((()=>(this.setStatus("cors"),Promise.reject()))).finally((()=>{this.handshakeFinished=!0}))))}setStatus(e){this.status=e}getStatus(){return this.status}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(this.setStatus("cors")):(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=n=>{this.isEventValidForProcessing(n)&&"handshake"===n.data&&(window.removeEventListener("message",e),window.addEventListener("message",t),parent.postMessage("handshake",n.origin))},t=e=>{this.isEventValidForProcessing(e)&&e.data.id&&this.fetchDataForEvent(e,this.sendRequest)};window.addEventListener("message",e)}isEventValidForProcessing(e){return this.isValidDomain(e)||i.isDocumentReferrerFromLocalHost()}fetchDataForEvent(e,t){return fetch(i.parseRequest(e.data.request)).then((n=>t(e,n))).catch((t=>{console.log(t),this.sendError(e,t)}))}isValidDomain(e){const t=this.getDomain(location.hostname);return this.getDomain(e.origin)===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(65015);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=>{this.isEventValidForProcessing(e)&&"handshake"===e.data&&(window.removeEventListener("message",i),window.addEventListener("message",r),this.handshakeFinished=!0,this.executeStoredRequests(),n())},r=e=>{const t=e.data.id;this.isEventValidForProcessing(e)&&t&&this.requestsStack[t]&&this.resolveEventRequest(e)};window.addEventListener("message",i)}))}isEventValidForProcessing(e){return e.origin===this.target_domain||r.isDocumentReferrerFromLocalHost()}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]}}},63867:(e,t,n)=>{"use strict";function i(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())}))}n.d(t,{n7:()=>g,Qs:()=>j}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var r=n(57826);const o={},a={};let s=!1;function c(e){return i(this,void 0,void 0,(function*(){return e.remoteEntry&&(yield(t=e.remoteEntry,r=e.remoteName,new Promise(((e,c)=>{if(o[t])return void e();const l=document.createElement("script");l.src=t,l.onerror=c,l.onload=()=>{!function(e){i(this,void 0,void 0,(function*(){const t=window[e];return a[e]||(s||(yield n.I("default"),s=!0),yield t.init(n.S.default),a[e]=!0),t}))}(r),o[t]=!0,e()},document.body.appendChild(l)})))),yield function(e,t){return i(this,void 0,void 0,(function*(){const n=window[e];return(yield n.get(t))()}))}(e.remoteName,e.exposedModule);var t,r}))}var l=n(78833),u=(n(64448),n(4309),n(73753));const d=["mfeOutlet"];class h{constructor(e){this.mfeManifestService=e,this.loadingPromises={}}loadMfeModule(e,t){return i(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]=c({remoteEntry:n.entrypoint,remoteName:n.name,exposedModule:i.name}),this.loadingPromises[e]}))}loadMfeItem(e,t,n){return i(this,void 0,void 0,(function*(){const i=yield this.mfeManifestService.getItemMetadata(e,t,n);return(yield this.loadMfeModule(e,t))[i.name]}))}}class p{constructor(e){this.mfeManifestClient=e}getMfeManifest(){return i(this,void 0,void 0,(function*(){return this.mfeManifestClient.getMfeManifest()}))}getMfeMetadata(e){return i(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 i(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 i(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 i(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,l.setStyleProperty)(this.componentHost.nativeElement,"display","none"):(0,l.removeStyleProperty)(this.componentHost.nativeElement,"display"))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](h),r["ɵɵdirectiveInject"](p))},e.ɵdir=r["ɵɵdefineDirective"]({type:e,viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](d,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 m={};let g=(()=>{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,l.ngOwnComponent)(r.nativeElement)}compileModule(){return i(this,void 0,void 0,(function*(){let e;if(this.componentMetadata.module)if(m[this.componentMetadata.module])e=m[this.componentMetadata.module];else{const t=this.getExportedType(this.componentMetadata.module);e=(yield this.compiler.compileModuleAsync(t)).create(this.injector),m[this.componentMetadata.module]=e}return e}))}createComponent(){var e;return i(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 i(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"](h),r["ɵɵdirectiveInject"](p),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,"undefined"==typeof ngDevMode||ngDevMode;let v=(()=>{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"](h))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();"undefined"==typeof ngDevMode||ngDevMode,"undefined"==typeof ngDevMode||ngDevMode;const b=e=>"fulfilled"===e.status;class y{constructor(e,t){this.manifestUrls=e,this.loadStrategy=t,"preload"===t&&this.getMfeManifest()}getMfeManifest(){return i(this,void 0,void 0,(function*(){if(!this.mfeManifestPromise){const t=this.manifestUrls.map((e=>fetch(e)));this.mfeManifestPromise=(e=t,new Promise((t=>{const n=[];let r=0;e.forEach(((e,t)=>{Promise.resolve(e).then((e=>i(void 0,void 0,void 0,(function*(){n[t]={status:"fulfilled",value:yield e.json()},o()})))).catch((e=>{n[t]={status:"rejected",reason:e},o()}))}));const o=()=>{r++,r===e.length&&t(n)}}))).then((e=>this.processFetchedManifestsPromises(e))).then((e=>this.validateFetchedManifest(e)))}var e;return this.mfeManifestPromise}))}mergeManifests(e){return e.reduce(((e,t)=>({microFrontends:[...e.microFrontends,...t.microFrontends]})),{microFrontends:[]})}processFetchedManifestsPromises(e){const t=e.filter(b);return this.mergeManifests(t.map((({value:e})=>e)))}validateFetchedManifest(e){return 0===e.microFrontends.length?Promise.reject("MFEManifest couldn't be fetched"):e}}let S;const C=e=>{if(!e.fetchUrl)throw new Error("No fetchUrl provided to instantiate MfeManifestFetchClient");const t=Array.isArray(e.fetchUrl)?e.fetchUrl:[e.fetchUrl];return new y(t,e.fetchStrategy)};function x(e){return e.shared?(S||(S=C(e)),S):C(e)}class I{constructor(e,t){this.globalref=e,this.globalrefKey=t,this.mfeManifest=e[t]}getMfeManifest(){return Promise.resolve(this.mfeManifest)}}let w;const E=(e,t)=>{if(!e||!t)throw new Error("No globalref or globalrefKey provided to instantiate MfeManifestGlobalrefClient");return new I(e,t)};function T(e){return e.shared?(w||(w=E(e.globalref,e.globalrefKey)),w):E(e.globalref,e.globalrefKey)}let P;const A=e=>new p(e);function _(e,t){return e.shared?(P||(P=A(t)),P):A(t)}let M;const k=e=>new h(e);function O(e,t){return e.shared?(M||(M=k(t)),M):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"),L=new r.InjectionToken("MFE_TOOLS_CONFIG");let j=(()=>{class e{static configure(t){const n=[{provide:L,useValue:t}];return t.fetchUrl?n.push({provide:R,useFactory:x,deps:[L]}):t.globalref&&t.globalrefKey&&n.push({provide:R,useFactory:T,deps:[L]}),n.push({provide:p,useFactory:_,deps:[L,R]},{provide:h,useFactory:O,deps:[L,p]},{provide:r.APP_INITIALIZER,useFactory:N,deps:[L,v,[new r.Optional,u.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:()=>p,PP:()=>a,Rc:()=>h,db:()=>c,eA:()=>i,ht:()=>l,kU:()=>r,mU:()=>o,sc:()=>u,tx:()=>d});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",u="extcmpid",d="affid",h="ref",p="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:()=>d});var i=n(6856),r=n(57826),o=n(55640),a=n(48108),s=n(45965),c=n(42998),l=n(93883),u=n(92116);let d=(()=>{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(u.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:()=>f});var i=n(6856),r=n(73753),o=n(61556),a=n(79346),s=n(50536),c=n(13192),l=n(5711),u=n(45335),d=n(86594),h=n(95539),p=n(57826);let f=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e,bootstrap:[h.G]}),e.ɵinj=p["ɵɵdefineInjector"]({providers:[c.Cw,l.a,u.X,d.J],imports:[[i.CommonModule,r.RouterModule,o.d,a.C,s.j]]}),e})()},45335:(e,t,n)=>{"use strict";n.d(t,{X:()=>u});var i=n(73753),r=n(82846),o=n(45965),a=n(42998),s=n(93883),c=n(13192),l=n(57826);let u=(()=>{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:()=>S});var i=n(42998),r=n(6856),o=n(23550),a=n(57826),s=n(55640),c=n(82846),l=n(81899),u=n(45965),d=n(4309),h=n(93883),p=n(92116);const f="utm_source",m="utm_medium",g="utm_campaign",v="utm_term",b="utm_content",y="utm_brand";class S{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(h.ht)||i.get(p.Rv),t=i.get(h.tx),n.set(f,i.get(f)),n.set(m,i.get(m)),n.set(g,i.get(g)),n.set(v,i.get(v)),n.set(b,i.get(b)),n.set(y,i.get(y)),e){let t=i.get(h.sc);this.storeSharingMethod(t),this.storeAffiliateToken(e)}t&&this.storeAffiliateId(t),this.storeUtmValues(n)}return null!=e}getBrandInfoFromToken(){const e=this.getUrlSearchParams().get(h.Rc);return e?this.handleBackendResponse(this.brandInfoRequest(e)):(0,d.of)({})}removeAffiliateReferringCookies(){this.siteConfigService.evalFeature(h.eA)&&(this.cookieStorageService.remove(h.mU),this.cookieStorageService.remove(h.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,d.of)({}))))}buildGetBrandInfoUrl(e){return S.GET_BRAND_INFO_URL+e}storeAffiliateToken(e){this.browserStorageService.set(p.EI,e),this.browserStorageService.set(p.zc,String(Date.now()))}storeSharingMethod(e){e?this.browserStorageService.set(p.jj,e):this.browserStorageService.remove(p.jj)}storeAffiliateId(e){this.browserStorageService.set(p.F$,e),this.browserStorageService.set(p.HM,p.as),this.cookieStorageService.set(h.tx,e,"/",void 0,!1,40)}storeUtmValues(e){e.forEach(((e,t)=>{e&&this.browserStorageService.setWithExpiration(t,e,40)}))}}S.BASE_URL="/services/affiliate/v1",S.GET_BRAND_INFO_URL=`${S.BASE_URL}/token/`,S.ɵfac=function(e){return new(e||S)(a["ɵɵinject"](s.z),a["ɵɵinject"](l.u),a["ɵɵinject"](c.G),a["ɵɵinject"](o.HttpClient),a["ɵɵinject"](u.r),a["ɵɵinject"](a.PLATFORM_ID))},S.ɵprov=a["ɵɵdefineInjectable"]({token:S,factory:S.ɵfac})},92116:(e,t,n)=>{"use strict";n.d(t,{AB:()=>h,EI:()=>o,F$:()=>u,HM:()=>s,Rv:()=>d,as:()=>i,g3:()=>r,jj:()=>c,ln:()=>l,wF:()=>p,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",u="AFFILIATE_ID",d="referral",h="site.config.raf.enabled",p="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:()=>u});var i=n(23550),r=n(48108),o=n(45965),a=n(92947),s=n(4309),c=n(42998),l=n(57826);let u=(()=>{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}}},85055:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var i=n(39597),r=n(57826);let o=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.e]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({}),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})()},5095:(e,t,n)=>{"use strict";n.d(t,{r6:()=>f});var i=n(82846),r=n(45965),o=n(4309),a=n(42998),s=n(66900),c=n(23550),l=n(57826);const u=["mfa_required:SMS","mfa_required:PIN_CODE","mfa_required:TWO_FACTOR_AUTHENTICATION"];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&&u.includes(a.errorCode)){let r=a.errorCode.split(":")[1];return n&&!n.get("X-CAPTCHA-TOKEN")||(n=new c.HttpHeaders),n=n.append("X-ENFORCEMENT-OPERATION",i).append("X-ENFORCEMENT-METHOD",r),delete t.captchaToken,this.performLoginRequest(e,t,n)}return(0,o.throwError)(r)})))}performLoginRequest(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 h{}class p{}let f=(()=>{class e{constructor(e,t,n,i){this.loginHttpHelperService=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.loginHttpHelperService.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 h)}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(5095),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:()=>d});var i=n(23550),r=n(64174),o=n(82846),a=n(24144),s=n(4309),c=n(42998),l=n(57826);class u{constructor(){this.sessionExpired=!1}}let d=(()=>{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 u)}))):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})()},86761:(e,t,n)=>{"use strict";n.d(t,{sk:()=>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})()},17583:(e,t,n)=>{"use strict";n.d(t,{DM:()=>r,Ip:()=>o,ol:()=>i});const i="https://apps.apple.com/us/app/google-authenticator/id388497605",r="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2",o="twoFactorAuthCloseDestinationUrl"},7114:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var i=n(73753),r=n(30594),o=n(57826);let a=(()=>{class e{constructor(e,t){this.router=e,this.twoFactorAuthenticatorService=t}canActivate(){return!!this.twoFactorAuthenticatorService.isTwoFactorAuthenticatorEnabled()||this.router.parseUrl("/404")}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](i.Router),o["ɵɵinject"](r.R))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},30594:(e,t,n)=>{"use strict";n.d(t,{R:()=>v});var i=n(23550),r=n(42998),o=n(4309),a=n(58132),s=n(55640),c=n(84860),l=n(45965),u=n(45592),d=n(21111),h=n(37521);class p{}class f{}var m=n(17583),g=n(57826);let v=(()=>{class e{constructor(e,t,n,i){this.httpClient=e,this.siteConfigService=t,this.phoneStatusStore=n,this.browserStorageService=i,this.TWO_FACTOR_AUTH_STATUS_URL=`/services/profile/v1/profiles/${a.Y.SESSION_ID_PLACEHOLDER}/two-factor/status`,this.DISCARD_TWO_FACTOR_AUTH_STATUS=`/services/profile/v1/profiles/${a.Y.SESSION_ID_PLACEHOLDER}/two-factor/status/discard`,this.DISABLE_TWO_FACTOR_AUTH_STATUS=`/services/profile/v1/profiles/${a.Y.SESSION_ID_PLACEHOLDER}/two-factor/status/disable`,this.RESET_REQUEST_2FA_URL="/services/profile/v1/two-factor/request-reset",this.ENROLMENT_TWO_FACTOR_AUTH_URL=`/services/player-verification/v1/profiles/${a.Y.SESSION_ID_PLACEHOLDER}/two-factor/enrol`,this.RESET_TWO_FACTOR_AUTH_URL="/services/profile/v1/two-factor/reset/",this.enrolTwoFactorEvent=new o.Subject,this.enabledTwoFactorEvent=new o.Subject,this.enabledStatus={status:u.M.ENABLED}}getOtpAuthUri(){return this.otpAuthUri}setOtpAuthUri(e){this.otpAuthUri=e}getSelectedGoogleAppPlatform(){return this.selectedGoogleAppPlatform}setSelectedGoogleAppPlatform(e){this.selectedGoogleAppPlatform=e}discardTwoFactorAuthStatus(){return this.httpClient.post(this.DISCARD_TWO_FACTOR_AUTH_STATUS,null,{withCredentials:!0}).pipe((0,r.map)((e=>e)),(0,r.catchError)((e=>(0,o.throwError)(e))))}enrolmentTwoFactorAuthenticator(e){return this.httpClient.post(this.ENROLMENT_TWO_FACTOR_AUTH_URL,null,{withCredentials:!0,headers:e}).pipe((0,r.map)((e=>(this.setOtpAuthUri(e.otpAuthUri),e))),(0,r.catchError)((e=>(0,o.throwError)(e))))}enableTwoFactorAuthenticator(e){return this.httpClient.post(this.TWO_FACTOR_AUTH_STATUS_URL,this.enabledStatus,{withCredentials:!0,headers:e}).pipe((0,r.map)((e=>e)),(0,r.catchError)((e=>(0,o.throwError)(e))))}disableTwoFactorAuthenticator(e){return this.httpClient.post(this.DISABLE_TWO_FACTOR_AUTH_STATUS,null,{withCredentials:!0,headers:e}).pipe((0,r.catchError)((e=>(0,o.throwError)(e))))}sendReset2FARequest(e){return this.httpClient.post(this.RESET_REQUEST_2FA_URL,{profileIdentifier:e}).pipe((0,r.catchError)((e=>(0,o.throwError)(e))))}sendEnrolmentTwoFactor(){this.enrolTwoFactorEvent.next(new f)}sendEnablementTwoFactor(){this.enabledTwoFactorEvent.next(new p)}isTwoFactorAuthenticatorAndSMSValidationEnabled(){const e=this.get2FAEnabledConfig();return this.siteConfigService.getSiteConfigProp("phoneValidationEnabled")&&e}isTwoFactorAuthenticatorEnabled(){return this.get2FAEnabledConfig()}is2FAEnrolmentConditionsMet(){return this.phoneStatusStore.phoneStatus===h.k.VALIDATED&&this.isTwoFactorAuthenticatorAndSMSValidationEnabled()}obtainSharedKey(){const e="secret=";let t=this.getOtpAuthUri().indexOf(e);if(t>0){t+=e.length;const n=t+32;return this.getOtpAuthUri().substring(t,n)}return this.getOtpAuthUri()}resetTwoFactorAuthenticator(e,t){return this.httpClient.post(`${this.RESET_TWO_FACTOR_AUTH_URL}${e}`,null,{headers:{"X-MFA-CODE":t}})}getTwoFactorAuthCloseDestinationUrl(){return this.browserStorageService.getAndRemove(m.Ip)||""}getUrlCleanPath(e){return e.split("?")[0].replace(/\(.*\)/,"")}isRememberMyDeviceFeatureEnabled(){return this.siteConfigService.isFeaturePresent(c.L.twoFactorAuthenticatorRememberMyDevice)}get2FAEnabledConfig(){return this.siteConfigService.getSiteConfigProp("twoFactorAuthenticatorEnabled")}}return e.ɵfac=function(t){return new(t||e)(g["ɵɵinject"](i.HttpClient),g["ɵɵinject"](l.r),g["ɵɵinject"](d.G),g["ɵɵinject"](s.z))},e.ɵprov=g["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},78753:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var i=n(91691),r=n(74178),o=n(57826);let a=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.g]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({imports:[[i.C.forRoot()]]}),e})()},84115:(e,t,n)=>{"use strict";n.d(t,{q:()=>u});var i=n(43431),r=n(55640),o=n(82846),a=n(4309),s=n(42998),c=n(84042),l=n(57826);let u=(()=>{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()}}},42974:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var i=n(6856),r=n(61556),o=n(56614),a=n(64174),s=n(84042),c=n(84115),l=n(29967),u=n(57826);let d=(()=>{class e{static forRoot(){return{ngModule:e,providers:[a.m,s.S,c.q]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({imports:[[i.CommonModule,r.d,l.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:()=>f});var i=n(6856),r=n(57826),o=n(55640),a=n(82846),s=n(49379),c=n(36957),l=n(81899),u=n(35294),d=n(4309),h=n(84115);class p{constructor(e){this.isAuthenticated=e}}let f=(()=>{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 d.Subject,this.sessionObserver=new d.BehaviorSubject(new p(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 p(!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 p(!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"](u.X),r["ɵɵinject"](s.M),r["ɵɵinject"](h.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})()},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(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}isCancellableReward(e){return!!e.redemptionEventId}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.isCancellableReward(e)||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:()=>u});var i=n(58132),r=n(23550),o=n(30173),a=n(4309),s=n(42998),c=n(9359),l=n(57826);let u=(()=>{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.cancelRedeemedRewardUrl=`${this.baseUrl}/cancelled-redeemed-reward`,this.alternateAddressUrl=`${this.baseUrl}/alternate-address`,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})}cancelRedeemedReward(e,t){let n={redemptionEventId:e,cancellationExpiresAt:t};return this.httpClient.post(this.cancelRedeemedRewardUrl,n,{withCredentials:!0}).pipe(this.handleError)}getAlternateAddress(){return this.httpClient.get(this.alternateAddressUrl,{withCredentials:!0}).pipe((0,s.catchError)((e=>404==e.status?(0,a.of)(void 0):(0,a.throwError)(e))))}deleteAlternateAddress(){return this.httpClient.delete(this.alternateAddressUrl,{withCredentials:!0}).pipe((0,s.catchError)((e=>404==e.status?(0,a.of)({}):this.handleError((0,a.throwError)(e)))))}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,e.additionalContent&&(this.additionalContent=e.additionalContent)}}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",this.cancellableRewardsUrl="/services/reward-issuing/v1/profiles/"+i.Y.SESSION_ID_PLACEHOLDER+"/rewards/cancellable-rewards"}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))}searchCancellableRewards(e){let t=new r.HttpHeaders;e&&(t=t.set("X-LANGUAGE",e));let n=this.http.get(this.cancellableRewardsUrl,{withCredentials:!0,headers:t});return this.handleBackendResponseAndCatchError(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"))))}handleBackendResponseAndCatchError(e,t){return e.pipe((0,a.map)(t),(0,a.catchError)((e=>(0,o.of)([]))))}}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,t){let n=t?{rewardId:e,deliverTo:t}:{rewardId:e},i=this.http.post(c.REDEEM_URL,n,{withCredentials:!0});return this.handleBackendResponse(i,(()=>!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,{_:()=>f});var i=n(57826),r=n(6856),o=n(84704),a=n(29135),s=n(38977),c=n(22322),l=n(40475),u=n(56614),d=n(73753),h=n(43279),p=n(44236);let f=(()=>{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,u.F,d.RouterModule,h.R,p.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:()=>s});var i=n(6856),r=n(68698),o=n(98896),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.b],imports:[[i.CommonModule,r.T]]}),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:()=>p});var i=n(73753),r=n(17069),o=n(55298),a=n(93801),s=n(57826),c=n(84333),l=n(63325),u=n(32716),d=n(79952),h=n(55183);let p=(()=>{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,this.notInSubdivisionList=a.H.getNotInSubdivisionList(this.article.notInFilter)}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)(s["ɵɵdirectiveInject"](o.M),s["ɵɵdirectiveInject"](i.Router))},e.ɵcmp=s["ɵɵdefineComponent"]({type:e,selectors:[["bx-article-card-bm"]],hostVars:1,hostBindings:function(e,t){2&e&&s["ɵɵattribute"]("class",t.articleClass)},inputs:{article:"article",defaultImage:"defaultImage",imageType:"imageType",element:"element"},decls:28,vars:12,consts:[["bxHideBySubdivision","",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&&(s["ɵɵtext"](0,"\n        "),s["ɵɵelementStart"](1,"article",0),s["ɵɵtext"](2,"\n            "),s["ɵɵelementStart"](3,"div",1),s["ɵɵtext"](4,"\n                "),s["ɵɵelementStart"](5,"a",2),s["ɵɵlistener"]("click",(function(e){return t.trackEvent(e,t.article.title,t.article.tracking)})),s["ɵɵtext"](6,"\n                    "),s["ɵɵelementStart"](7,"figure",3),s["ɵɵtext"](8,"\n                        "),s["ɵɵelement"](9,"img",4),s["ɵɵtext"](10,"\n                        "),s["ɵɵelementStart"](11,"figcaption",5),s["ɵɵtext"](12),s["ɵɵelementEnd"](),s["ɵɵtext"](13,"\n                        "),s["ɵɵelementStart"](14,"figcaption",6),s["ɵɵtext"](15,"\n                            "),s["ɵɵelementStart"](16,"span",7),s["ɵɵtext"](17),s["ɵɵelementEnd"](),s["ɵɵtext"](18,"\n                            "),s["ɵɵelementStart"](19,"span",7),s["ɵɵtext"](20),s["ɵɵpipe"](21,"bxDate"),s["ɵɵelementEnd"](),s["ɵɵtext"](22,"\n                        "),s["ɵɵelementEnd"](),s["ɵɵtext"](23,"\n                    "),s["ɵɵelementEnd"](),s["ɵɵtext"](24,"\n                "),s["ɵɵelementEnd"](),s["ɵɵtext"](25,"\n            "),s["ɵɵelementEnd"](),s["ɵɵtext"](26,"\n        "),s["ɵɵelementEnd"](),s["ɵɵtext"](27,"\n    ")),2&e&&(s["ɵɵadvance"](1),s["ɵɵattribute"]("data-notIn-subdivisions",t.article.notInSubdivisionList||t.notInSubdivisionList),s["ɵɵadvance"](4),s["ɵɵproperty"]("bxLink",t.articleCardlink),s["ɵɵadvance"](2),s["ɵɵproperty"]("bxPreviewIndicator",t.article),s["ɵɵadvance"](2),s["ɵɵproperty"]("src",t.article.image,s["ɵɵsanitizeUrl"])("defaultImage",t.defaultImage),s["ɵɵattribute"]("alt",t.article.imageAltText),s["ɵɵadvance"](3),s["ɵɵtextInterpolate1"]("\n                            ",t.article.title,"\n                        "),s["ɵɵadvance"](5),s["ɵɵtextInterpolate1"]("\n                                ",t.article.category,"\n                            "),s["ɵɵadvance"](3),s["ɵɵtextInterpolate1"]("\n                                ",s["ɵɵpipeBind2"](21,9,t.article.publishedDate||t.article.publicationDate,"mediumDate"),"\n                            "))},directives:[c.e,l.I,u.Z,d.t],pipes:[h.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(93801),u=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,t.notInFilter=l.H.map(this.getContentFieldValue(e,"filter"));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");t.notInFilter=l.H.map(this.getContentFieldValue(e,"filter")),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),notInFilter:l.H.map(this.getContentFieldValue(e,"filter"))}}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.notInFilter=l.H.map(this.getContentFieldValue(e,"filter")),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)(u["ɵɵinject"](s.I),u["ɵɵinject"](r.F),u["ɵɵinject"](c.U))},e.ɵprov=u["ɵɵ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:()=>L,e:()=>j});var i=n(6856),r=n(57826),o=n(73753),a=n(26709),s=n(27222),c=n(93801),l=n(84333),u=n(32716),d=n(97637),h=n(84853),p=n(38458),f=n(42680),m=n(56323),g=n(98465),v=n(17069);let b=(()=>{class e{constructor(e,t,n){this.componentFactoryResolver=e,this.viewContainerRef=t,this.articleCardConfig=n,this.imageType=v._.large}ngOnInit(){const e=this.articleCardConfig.component||g.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"](m.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 y=["cardContainer"];function S(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 C(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 x(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                        "),r["ɵɵelementStart"](1,"div",null,7),r["ɵɵtext"](3,"\n                            "),r["ɵɵtemplate"](4,C,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 I=(()=>{class e{constructor(e,t,n,i,r,o){this.articlesService=e,this.router=t,this.changeDetector=n,this.imageService=i,this.element=r,this.platformId=o,this.notInSubdivisionList=null}ngOnInit(){this.articlesSubcription=this.articlesService.getArticles().subscribe((e=>{this.data=e,this.notInSubdivisionList=c.H.getNotInSubdivisionList(this.data&&this.data.notInFilter),this.changeDetector.detectChanges(),this.hideBySubdivision.ngOnInit()})),(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"](r.ChangeDetectorRef),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"](y,5),r["ɵɵviewQuery"](l.e,5)),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.cardContainer=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.hideBySubdivision=e.first)}},decls:21,vars:6,consts:[["bxHideBySubdivision","",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,S,4,1,"ng-container",4),r["ɵɵtext"](14,"\n                    "),r["ɵɵtemplate"](15,x,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["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),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:[l.e,u.Z,d.l,h.z,p.l,i.NgIf,f.n,i.NgForOf,b],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 w=n(22291),E=n(15982),T=n(96741),P=n(48108),A=n(1388),_=n(79952),M=n(55183);function k(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 O(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 N=(()=>{class e{constructor(e,t,n,i,r,o,a,s){this.route=e,this.router=t,this.domSanitizer=n,this.imageService=i,this.ampMarkupService=r,this.languageService=o,this.fontsService=a,this.platformId=s}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(this.fontsService.replaceSrcUrl(e)))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](o.ActivatedRoute),r["ɵɵdirectiveInject"](o.Router),r["ɵɵdirectiveInject"](E.DomSanitizer),r["ɵɵdirectiveInject"](w.AJ),r["ɵɵdirectiveInject"](T.i),r["ɵɵdirectiveInject"](P.T),r["ɵɵdirectiveInject"](A.C),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,k,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,O,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:[u.Z,d.l,h.z,i.NgIf,p.l,_.t],pipes:[M.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 R=n(85327);const L="articles",j=[{path:"",component:I,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayComponentStyle:"noHorizontalScroll"}},{path:":slug",resolve:{article:R.W},data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayComponentStyle:"noHorizontalScroll"},component:N}]},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:()=>r});var i=n(98953);class r extends i.w{}},65568:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(98953);class r extends i.w{}},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:()=>d});var i=n(17069),r=n(93801),o=n(57826),a=n(84333),s=n(73753),c=n(32716),l=n(79952);const u=function(e){return[e]};let d=(()=>{class e{constructor(){this.imageType=i._.large}ngOnInit(){this.notInSubdivisionList=r.H.getNotInSubdivisionList(this.promotion.notInFilter)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["bx-promotion-card-bm"]],hostVars:1,hostBindings:function(e,t){2&e&&o["ɵɵattribute"]("class",t.promotionClass)},inputs:{promotion:"promotion",defaultImage:"defaultImage",imageType:"imageType",element:"element"},decls:18,vars:9,consts:[["bxHideBySubdivision","",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&&(o["ɵɵtext"](0,"\n        "),o["ɵɵelementStart"](1,"article",0),o["ɵɵtext"](2,"\n            "),o["ɵɵelementStart"](3,"div",1),o["ɵɵtext"](4,"\n                "),o["ɵɵelementStart"](5,"a",2),o["ɵɵtext"](6,"\n                    "),o["ɵɵelementStart"](7,"figure",3),o["ɵɵtext"](8,"\n                        "),o["ɵɵelement"](9,"img",4),o["ɵɵtext"](10,"\n                        "),o["ɵɵelementStart"](11,"figcaption",5),o["ɵɵtext"](12),o["ɵɵelementEnd"](),o["ɵɵtext"](13,"\n                    "),o["ɵɵelementEnd"](),o["ɵɵtext"](14,"\n                "),o["ɵɵelementEnd"](),o["ɵɵtext"](15,"\n            "),o["ɵɵelementEnd"](),o["ɵɵtext"](16,"\n        "),o["ɵɵelementEnd"](),o["ɵɵtext"](17,"\n    ")),2&e&&(o["ɵɵadvance"](1),o["ɵɵattribute"]("data-notIn-subdivisions",t.promotion.notInSubdivisionList||t.notInSubdivisionList),o["ɵɵadvance"](4),o["ɵɵproperty"]("routerLink",o["ɵɵpureFunction1"](7,u,t.promotion.slug)),o["ɵɵadvance"](2),o["ɵɵproperty"]("bxPreviewIndicator",t.promotion),o["ɵɵadvance"](2),o["ɵɵproperty"]("src",t.promotion.image,o["ɵɵsanitizeUrl"])("defaultImage",t.defaultImage),o["ɵɵattribute"]("alt",t.promotion.imageAltText),o["ɵɵadvance"](3),o["ɵɵtextInterpolate1"]("\n                            ",t.promotion.title,"\n                        "))},directives:[a.e,s.RouterLinkWithHref,c.Z,l.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:()=>u});var i=n(44960),r=n(15390),o=n(37292),a=n(10749),s=n(30173),c=n(93801),l=n(57826);let u=(()=>{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,t.notInFilter=c.H.map(this.getContentFieldValue(e,"filter"));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");t.notInFilter=c.H.map(this.getContentFieldValue(e,"filter")),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"),notInFilter:c.H.map(this.getContentFieldValue(e,"filter"))}}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.notInFilter=c.H.map(this.getContentFieldValue(e,"filter")),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)(l["ɵɵinject"](a.I),l["ɵɵinject"](i.F),l["ɵɵinject"](s.U))},e.ɵprov=l["ɵɵ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:()=>O,J:()=>N});var i=n(6856),r=n(57826),o=n(73753),a=n(26709),s=n(90187),c=n(93801),l=n(32716),u=n(97637),d=n(84853),h=n(38458),p=n(42680),f=n(10322),m=n(13965),g=n(17069);let v=(()=>{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"](f.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})();var b=n(84333);const y=["cardContainer"];function S(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 C(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)),r["ɵɵattribute"]("data-notIn-subdivisions",n.getCardNotInSubdivisionList(e))}}function x(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                        "),r["ɵɵelementStart"](1,"div",null,7),r["ɵɵtext"](3,"\n                            "),r["ɵɵtemplate"](4,C,2,4,"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 I=(()=>{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}getCardNotInSubdivisionList(e){return e.notInSubdivisionList||c.H.getNotInSubdivisionList(e.notInFilter)}}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"](y,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","bxHideBySubdivision","",3,"element","promotion","defaultImage",4,"ngFor","ngForOf"],["imageType","small","bxHideBySubdivision","",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,S,4,1,"ng-container",4),r["ɵɵtext"](14,"\n                    "),r["ɵɵtemplate"](15,x,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:[l.Z,u.l,d.z,h.l,i.NgIf,p.n,i.NgForOf,v,b.e],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 w=n(22291),E=n(15982),T=n(4473),P=n(1388),A=n(79952);function _(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 M=(()=>{class e{constructor(e,t,n,i,r,o){this.route=e,this.router=t,this.domSanitizer=n,this.imageService=i,this.fontsService=r,this.transferStateServiceCache=o,this.fromUniversal=!1}ngOnInit(){this.promotion=this.promotion||this.route.snapshot.data.promotion,this.fromUniversal=this.transferStateServiceCache.isFromUniversal(),this.imageTransparent=w.f3,this.bodySanitized=this.formatBody(this.promotion.body)}goToPromotionsPage(){this.router.navigate(["promotions"])}formatBody(e){return this.domSanitizer.bypassSecurityTrustHtml(this.imageService.replaceImages(this.fontsService.replaceSrcUrl(e)))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵdirectiveInject"](o.ActivatedRoute),r["ɵɵdirectiveInject"](o.Router),r["ɵɵdirectiveInject"](E.DomSanitizer),r["ɵɵdirectiveInject"](w.AJ),r["ɵɵdirectiveInject"](P.C),r["ɵɵdirectiveInject"](T.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,_,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:[l.Z,u.l,d.z,i.NgIf,h.l,A.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 k=n(675);const O="promotions",N=[{path:"",component:I,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayComponentStyle:"noHorizontalScroll"}},{path:":slug",resolve:{promotion:k.G},data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayComponentStyle:"noHorizontalScroll"},component:M}]},90187:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var i=n(16462),r=n(43431),o=n(4309),a=n(42998),s=n(20734),c=n(81901),l=n(57826);let u=(()=>{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:()=>r});var i=n(98953);class r extends i.w{}},15390:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var i=n(98953);class r extends i.w{}},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:()=>l});var i=n(56914),r=n(79450),o=n(65353),a=n(81768),s=n(33564),c=n(93801);class l 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),notInFilter:c.H.map(e.fields.filter)}}}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:()=>z});var i=n(64762),r=n(57826),o=n(22291),a=(n(11524),n(17990)),s=n(25300),c=n(78041),l=n(40476),u=n(49697),d=n(6856),h=n(4473),p=n(80218),f=n(6235),m=n(55796),g=n(55298),v=n(26626),b=n(43431),y=n(93801),S=n(55073),C=n(13811),x=n(84333),I=n(32716);let w=(()=>{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 E=n(63325),T=n(45965),P=n(84860),A=n(52344),_=n(7006),M=n(29015),k=n(79952),O=n(96940);const N=function(e,t){return{"screen-center":e,"no-animation":t}};function R(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,N,3===e.banner.display,e.noUseAnimation))("innerHTML",r["ɵɵpipeBind1"](1,2,e.banner.content),r["ɵɵsanitizeHtml"])}}function L(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,N,3===e.banner.display,e.noUseAnimation))("innerHTML",r["ɵɵpipeBind1"](1,3,e.banner.content),r["ɵɵsanitizeHtml"])("isChatBot",e.isChatBot)}}function j(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 D(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"]("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 F=(()=>{class e{constructor(e,t,n,i,o,a,s,c){this.imageService=e,this.bannerCarouselConfig=t,this.slideDisplayStyleMapper=n,this.contentService=i,this.siteConfig=o,this.renderer=a,this.document=s,this.platformId=c,this.loaded=new r.EventEmitter,this.liveChat=!1,this.isChatBot=!1,this.notInSubdivisionList=null,this.noImageSrc=e.getPlaceholderImage(600,200,"transparent"),this.imageTransparent=f.f}ngOnInit(){this.isServerSide()&&this.siteConfig.hasFeature(P.L.preloadLCPArea)&&0===this.ix&&(this.linkTag=this.renderer.createElement("link"),this.renderer.setAttribute(this.linkTag,"rel","preload"),this.renderer.setAttribute(this.linkTag,"href",this.banner.image.url),this.renderer.setAttribute(this.linkTag,"as","image"),this.renderer.appendChild(this.document.head,this.linkTag)),this.liveChat=this.contentService.isLiveChatContent(this.banner),this.isChatBot=this.contentService.isChatBotContent(this.banner),this.notInSubdivisionList=y.H.getNotInSubdivisionList(this.banner&&this.banner.notInFilter)}slideLoaded(){this.loaded.emit(!0)}getFigureStyleClass(e){return this.slideDisplayStyleMapper.getFigureStyleClass(e)}isServerSide(){return(0,d.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"](u.Y),r["ɵɵdirectiveInject"](m.r),r["ɵɵdirectiveInject"](A._s),r["ɵɵdirectiveInject"](T.r),r["ɵɵdirectiveInject"](r.Renderer2),r["ɵɵdirectiveInject"](d.DOCUMENT),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:14,consts:[["bxHideBySubdivision","",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,"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,"src","load"]],template:function(e,t){1&e&&(r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"figure",0),r["ɵɵtext"](2,"\n            "),r["ɵɵtemplate"](3,R,3,7,"figcaption",1),r["ɵɵtext"](4,"\n            "),r["ɵɵtemplate"](5,L,3,8,"figcaption",2),r["ɵɵtext"](6,"\n            "),r["ɵɵelementStart"](7,"div",3),r["ɵɵtext"](8,"\n                "),r["ɵɵtemplate"](9,j,1,2,"img",4),r["ɵɵtext"](10,"\n                "),r["ɵɵtemplate"](11,D,1,2,"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["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),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:[x.e,w,d.NgIf,_.$,d.NgClass,M.T,k.t],pipes:[O.d],styles:[".no-animation[_ngcontent-%COMP%] {\n  animation: fade-in-up .0s; }"]}),e})();function B(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 U(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 V(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,B,7,9,"ng-container",4),r["ɵɵtext"](3,"\n            "),r["ɵɵtemplate"](4,U,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 H=function(e,t){return{"ng-loaded":e,"fullsize-carousel":t}};function G(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,V,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"](11,H,e.loaded,e.fullSizeCarouselStyle))("interval",e.interval)("activeSlide",e.currentSlide)("bxTrackAttrs",e.model.tracking),r["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.model.banners)}}let z=class{constructor(e,t,n,i,r,o,a,s,c){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.subdivisionService=c,this.model={banners:[]},this.interval=7e3,this.fromUniversal=!1,this.loadedSlides={0:!0},this.notInSubdivisionList=null,this.currentSlide=0,this.loaded=!1,this.fullSizeCarouselStyle=!0,this.fromUniversal=this.transferStateServiceCache.isFromUniversal(),this.imageTransparent=f.f}set data(e){e&&(e.banners=e.banners.filter(this.bannerAllowedInCurrentSubdivision(this.subdivisionService.getCurrentSubdivisionId())),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,this.notInSubdivisionList=y.H.getNotInSubdivisionList(this.model.notInFilter))}bannerAllowedInCurrentSubdivision(e){return t=>!(t.notInFilter&&t.notInFilter.countrySubdivision&&t.notInFilter.countrySubdivision.includes(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,d.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)}};z.ɵfac=function(e){return new(e||z)(r["ɵɵdirectiveInject"](o.AJ),r["ɵɵdirectiveInject"](u.Y),r["ɵɵdirectiveInject"](r.PLATFORM_ID),r["ɵɵdirectiveInject"](g.M),r["ɵɵdirectiveInject"](h.m),r["ɵɵdirectiveInject"](p.U),r["ɵɵdirectiveInject"](m.r),r["ɵɵdirectiveInject"](v.j),r["ɵɵdirectiveInject"](S.F))},z.ɵcmp=r["ɵɵdefineComponent"]({type:z,selectors:[["bx-banner-carousel"]],inputs:{interval:"interval",data:"data",style:"style"},decls:3,vars:1,consts:[["class","banner-carousel carousel","data-dynamic-element","dynamicElement","bxHideBySubdivision","",3,"bxPreviewIndicator","ngClass","interval","activeSlide","max-container","carousel-animation","bxTrackAttrs","activeSlideChange",4,"ngIf"],["data-dynamic-element","dynamicElement","bxHideBySubdivision","",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,G,4,14,"carousel",0),r["ɵɵtext"](2,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!!t.model.banners&&t.model.banners.length>0))},directives:[d.NgIf,C.Fy,x.e,I.Z,d.NgClass,w,d.NgForOf,C.o6,E.I,F],encapsulation:2,changeDetection:0}),z=(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,u.Y,Object,g.M,h.m,p.U,m.r,v.j,S.F])],z)},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:()=>w});var i=n(6856),r=n(73753),o=n(13811),a=n(75324),s=n(15982),c=n(53001),l=n(49697),u=(n(11524),n(22291)),d=n(75468),h=n(73502),p=n(80417),f=n(67197),m=n(40821),g=n(55796),v=n(39013),b=n(52344),y=n(78041),S=n(41306),C=n(63749),x=n(57826);let I=(()=>{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})(),w=(()=>{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:I},l.Y,g.r,y.f],imports:[[s.HammerModule,i.CommonModule,o.bB.forRoot(),u.$Q,r.RouterModule,d.$,c.J.withComponents([a.k]),f.k.withComponents([a.k]),m.o,h.D,p.LO,v.W,b.Qh,S.I,C.m]]}),e})()},51794:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var i=n(56914),r=n(93801);class o 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,notInFilter:r.H.map(e.fields&&e.fields.filter)}}}}},2986:(e,t,n)=>{"use strict";n.d(t,{T:()=>P});var i=n(64762),r=n(57826),o=n(51794),a=n(15982),s=n(17990),c=n(25300),l=n(22291),u=n(52344),d=n(24249),h=n(1388),p=n(93801),f=n(45965),m=n(84860),g=n(6856),v=n(84333),b=n(32716),y=n(29015),S=n(7006);const C=["cmsContent"];function x(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 I(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 w(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 E(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",4),r["ɵɵtext"](1,"\n                "),r["ɵɵtemplate"](2,I,1,2,"div",7),r["ɵɵtext"](3,"\n                "),r["ɵɵtemplate"](4,w,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 T(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",1,2),r["ɵɵtext"](2,"\n            "),r["ɵɵtemplate"](3,x,8,1,"div",3),r["ɵɵtext"](4,"\n            "),r["ɵɵtemplate"](5,E,6,2,"div",3),r["ɵɵtext"](6,"\n        "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxPreviewIndicator",e.data),r["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",e.title),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.body)}}let P=class{constructor(e,t,n,i,r,o,a){this.sanitizer=e,this.imageService=t,this.contentService=n,this.imageLazyloadService=i,this.fontsService=r,this.siteConfigService=o,this.platformId=a,this.id=Math.floor(899999*Math.random())+1e5,this.contentBlockName=`ContentBlock${this.id}`,this.cssStyleSheets=(0,g.isPlatformBrowser)(this.platformId)?document.styleSheets:[],this.notInSubdivisionList=null}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),this.notInSubdivisionList=p.H.getNotInSubdivisionList(e.notInFilter))}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)}updateCssFonts(e){const t=Array.from(this.cssStyleSheets).reduce(((e,{cssRules:t})=>e.concat(Array.from(t))),[]).filter((({cssText:e})=>!!e)).find((({cssText:e})=>e.startsWith("html")&&e.includes("--font-")&&!e.includes("-apple")));if(!t)return e;const n=Array.from(t.cssText.matchAll(/--font-(\w+): ?(.+?);/g)).map((([,e,t])=>[t.replace(/['"]/g,"").toLowerCase(),e])),i=n.reduce(((e,[t,n])=>Object.assign(e,{[t]:n})),{}),r=n.map((([e])=>e));return e.replace(/(font(?:-family)?): ?([^;]+);/g,((e,t,n)=>`${t}: ${n.replace(new RegExp(`['"]?(?:${r.join("|")})['"]?`,"ig"),(e=>{const t=e.toLowerCase().replace(/['"]/g,"");return i[t]&&`var(--font-${i[t]})`||e}))};`))}formatBody(e){const t=this.siteConfigService.hasFeature(m.L.customFontsDisabled)?this.updateCssFonts(e):e;return this.sanitizer.bypassSecurityTrustHtml(this.imageService.replaceImages(this.fontsService.replaceSrcUrl(t),this.imageLazyloadService.isImageLazyloadEnabled()))}};P.ɵfac=function(e){return new(e||P)(r["ɵɵdirectiveInject"](a.DomSanitizer),r["ɵɵdirectiveInject"](l.AJ),r["ɵɵdirectiveInject"](u._s),r["ɵɵdirectiveInject"](d.h),r["ɵɵdirectiveInject"](h.C),r["ɵɵdirectiveInject"](f.r),r["ɵɵdirectiveInject"](r.PLATFORM_ID))},P.ɵcmp=r["ɵɵdefineComponent"]({type:P,selectors:[["bx-content-block"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](C,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","bxHideBySubdivision","",3,"bxPreviewIndicator",4,"ngIf"],["data-dynamic-element","dynamicElement","bxHideBySubdivision","",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,T,7,4,"div",0),r["ɵɵtext"](2,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.title||t.body))},directives:[g.NgIf,v.e,b.Z,y.T,S.$],styles:[".component-header[_ngcontent-%COMP%] {\n  padding: 0 0 16px; }"],changeDetection:0}),P=(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,u._s,d.h,h.C,f.r,Object])],P)},61982:(e,t,n)=>{"use strict";n.d(t,{s:()=>f});var i=n(2986),r=n(51794),o=n(6856),a=n(53001),s=n(75468),c=n(39013),l=n(57138),u=n(40821),d=n(52344),h=n(63749),p=n(57826);n(67197);let f=(()=>{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,u.o,s.$,c.W,d.Qh,h.m,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:()=>M});var i=n(64762),r=n(78482),o=n(17990),a=n(25300),s=n(17125),c=n(40476),l=n(67953),u=n(71844),d=n(63253),h=n(31553),p=n(56914),f=n(93801);class m extends p.x{map(e){return{data:{title:e.fields.title||"",items:e.fields.items||[],slug:e.fields.slugname||"",draft:"draft"===e.status,notInFilter:f.H.map(e.fields.filter)}}}}var g,v=n(57826),b=n(84333),y=n(32716),S=n(6856),C=n(90566),x=n(6688),I=n(60227);function w(e,t){if(1&e&&(v["ɵɵelementStart"](0,"header",4),v["ɵɵtext"](1,"\n                "),v["ɵɵelementStart"](2,"h2",5),v["ɵɵtext"](3),v["ɵɵelementEnd"](),v["ɵɵtext"](4,"\n            "),v["ɵɵelementEnd"]()),2&e){const e=v["ɵɵnextContext"]();v["ɵɵadvance"](3),v["ɵɵtextInterpolate"](e.title)}}function E(e,t){if(1&e&&(v["ɵɵtext"](0,"\n                        "),v["ɵɵelementStart"](1,"bx-dynamic-loader-component",9),v["ɵɵtext"](2,"\n                        "),v["ɵɵelementEnd"](),v["ɵɵtext"](3,"\n                    ")),2&e){const e=v["ɵɵnextContext"]().$implicit;v["ɵɵadvance"](1),v["ɵɵproperty"]("component",e.component)("context",e.context)("contextName",e.contextName)}}function T(e,t){if(1&e&&(v["ɵɵelementStart"](0,"bx-small-banner",13),v["ɵɵtext"](1,"\n                            "),v["ɵɵelementEnd"]()),2&e){const e=v["ɵɵnextContext"](2).$implicit;v["ɵɵ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 P(e,t){if(1&e&&(v["ɵɵelementStart"](0,"bx-slide-card",14),v["ɵɵtext"](1,"\n                            "),v["ɵɵelementEnd"]()),2&e){const e=v["ɵɵnextContext"](2).$implicit;v["ɵɵ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),v["ɵɵattribute"]("data-notIn-subdivisions",e.context.notInSubdivisionList)}}function A(e,t){if(1&e&&(v["ɵɵelementContainerStart"](0,10),v["ɵɵtext"](1,"\n                            "),v["ɵɵtemplate"](2,T,2,10,"bx-small-banner",11),v["ɵɵtext"](3,"\n                            "),v["ɵɵtemplate"](4,P,2,9,"bx-slide-card",12),v["ɵɵtext"](5,"\n                        "),v["ɵɵelementContainerEnd"]()),2&e){const e=v["ɵɵnextContext"]().$implicit;v["ɵɵproperty"]("ngSwitch",e.context.cardText),v["ɵɵadvance"](2),v["ɵɵproperty"]("ngSwitchCase",void 0)}}function _(e,t){if(1&e&&(v["ɵɵelementContainerStart"](0),v["ɵɵtext"](1,"\n                    "),v["ɵɵtemplate"](2,E,4,3,"ng-template",null,6,v["ɵɵtemplateRefExtractor"]),v["ɵɵtext"](4,"\n\n                    "),v["ɵɵelementStart"](5,"div",7),v["ɵɵtext"](6,"\n                        "),v["ɵɵtemplate"](7,A,6,2,"ng-container",8),v["ɵɵtext"](8,"\n                    "),v["ɵɵelementEnd"](),v["ɵɵtext"](9,"\n                "),v["ɵɵelementContainerEnd"]()),2&e){const e=t.$implicit,n=v["ɵɵreference"](3),i=v["ɵɵnextContext"]();v["ɵɵadvance"](5),v["ɵɵproperty"]("ngClass",i.cssClassMappers.getCSSClasses(e.tags)),v["ɵɵadvance"](2),v["ɵɵproperty"]("ngIf",!e.component)("ngIfElse",n)}}let M=g=class{constructor(e,t,n){this.cssClassMappers=e,this.cmsComponentMapperService=t,this.slideCardCmsMapper=n,this.components=[]}set data(e){if(this._data=e,this.notInSubdivisionList=f.H.getNotInSubdivisionList(e.notInFilter),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=d(["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"===d(["link_url","fields","category","slug"],e)}static isStatusDraft(e){return"draft"===e}};M.ɵfac=function(e){return new(e||M)(v["ɵɵdirectiveInject"](h.K),v["ɵɵdirectiveInject"](s.d),v["ɵɵdirectiveInject"](u.G))},M.ɵcmp=v["ɵɵdefineComponent"]({type:M,selectors:[["bx-content-section"]],inputs:{data:"data"},decls:11,vars:4,consts:[["bxHideBySubdivision","",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"],["bxHideBySubdivision","",3,"title","cardText","cardTextColor","imageSrc","alt","linkTo","target","data",4,"ngSwitchDefault"],[3,"imageSrc","alt","linkTo","isExternal","bannerText","bannerSubText","bannerTextColor","target","gameId","data"],["bxHideBySubdivision","",3,"title","cardText","cardTextColor","imageSrc","alt","linkTo","target","data"]],template:function(e,t){1&e&&(v["ɵɵtext"](0,"\n        "),v["ɵɵelementStart"](1,"div",0),v["ɵɵtext"](2,"\n            "),v["ɵɵtemplate"](3,w,5,1,"header",1),v["ɵɵtext"](4,"\n            "),v["ɵɵelementStart"](5,"div",2),v["ɵɵtext"](6,"\n                "),v["ɵɵtemplate"](7,_,10,3,"ng-container",3),v["ɵɵtext"](8,"\n            "),v["ɵɵelementEnd"](),v["ɵɵtext"](9,"\n        "),v["ɵɵelementEnd"](),v["ɵɵtext"](10,"\n    ")),2&e&&(v["ɵɵadvance"](1),v["ɵɵproperty"]("bxPreviewIndicator",t.data),v["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),v["ɵɵadvance"](2),v["ɵɵproperty"]("ngIf",t.title),v["ɵɵadvance"](4),v["ɵɵproperty"]("ngForOf",t.components))},directives:[b.e,y.Z,S.NgIf,S.NgForOf,S.NgClass,C.W,S.NgSwitch,S.NgSwitchCase,S.NgSwitchDefault,x.x,I._],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; } }"]}),M=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",[h.K,s.d,u.G])],M)},67197:(e,t,n)=>{"use strict";n.d(t,{k:()=>I});var i=n(57826),r=n(6856),o=n(8566),a=n(49994),s=n(13493),c=n(58859),l=n(79346),u=n(17125),d=n(58997),h=n(53001),p=n(40821),f=n(68335),m=n(31553),g=n(76479),v=n(93125),b=n(82939),y=n(95149),S=n(77891),C=n(18542),x=n(63749);let I=(()=>{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:[g.l]}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[f.l,m.K,d.G,u.d,a.i,s.B,y.h,S.V,C.k],imports:[[r.CommonModule,o.B,c.Q,l.C,p.o,v.s,b.A,h.J.withComponents([g.l]),x.m]]}),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:()=>h});var i=n(78482),r=n(56914),o=n(12744),a=n(17846);const s={url:"",alt:""};var c=n(65353),l=n(81768),u=n(33564),d=n(93801);class h extends r.x{constructor(){super(...arguments),this.abtFieldsMapper=new c.u1,this.marketingAudienceMapper=new l.V,this.trackingService=new u.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:h.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:h.isLiveChatContent(e),chatBot:h.isChatBotContent(e),notInFilter:d.H.map(e.fields.filter)}}}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:()=>$});var i=n(64762),r=n(57826),o=n(22291),a=n(80218),s=n(17990),c=n(25300),l=n(79450),u=n(6856);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var h=n(55796),p=n(55298),f=n(52344),m=n(43431),g=n(93801),v=n(84333),b=n(32716),y=n(79952),S=n(7006),C=n(29015),x=n(63325),I=n(15982);let w=(()=>{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"](I.DomSanitizer,16))},e.ɵpipe=r["ɵɵdefinePipe"]({name:"bxTrustyStyle",type:e,pure:!0}),e})();var E=n(96940);function T(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 P(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 A(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,T,3,5,"figcaption",6),r["ɵɵtext"](5,"\n                        "),r["ɵɵtemplate"](6,P,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 _(e,t){1&e&&r["ɵɵelementContainer"](0)}function M(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                    "),r["ɵɵelementStart"](1,"div",12),r["ɵɵtext"](2,"\n                        "),r["ɵɵtemplate"](3,_,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 k(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,k,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 N=function(e,t,n){return{"ng-loaded":e,"max-container":t,"fullsize-carousel":n}};function R(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,A,14,14,"ng-template",null,3,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](6,"\n                "),r["ɵɵtemplate"](7,M,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"](7,N,t.loaded,t.contentSlideConfig.maxContainer,t.fullSizeCarouselStyle)),r["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),r["ɵɵadvance"](2),r["ɵɵstyleProp"]("background-color",t.model.background),r["ɵɵadvance"](8),r["ɵɵproperty"]("ngIf",t.model.link)("ngIfElse",e)}}let L=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.notInSubdivisionList=null,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,this.notInSubdivisionList=g.H.getNotInSubdivisionList(this.model.notInFilter))}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,u.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)}};L.ɵfac=function(e){return new(e||L)(r["ɵɵdirectiveInject"](d),r["ɵɵdirectiveInject"](o.AJ),r["ɵɵdirectiveInject"](a.U),r["ɵɵdirectiveInject"](r.PLATFORM_ID),r["ɵɵdirectiveInject"](h.r),r["ɵɵdirectiveInject"](p.M),r["ɵɵdirectiveInject"](f._s))},L.ɵcmp=r["ɵɵdefineComponent"]({type:L,selectors:[["bx-content-slide"]],inputs:{slide:"slide",style:"style"},decls:3,vars:1,consts:[["class","banner-carousel carousel","bxHideBySubdivision","",3,"bxPreviewIndicator","ngClass",4,"ngIf"],["bxHideBySubdivision","",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,R,13,11,"div",0),r["ɵɵtext"](2,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.model))},directives:[u.NgIf,v.e,b.Z,u.NgClass,y.t,S.$,C.T,u.NgTemplateOutlet,x.I],pipes:[w,E.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}),L=(0,i.__decorate)([(0,s.DE)({name:"ContentSlide",mapper:l.j,matcher:e=>e.contentType===c.z.SLIDE,useAsDefault:!0,contentMapper:{featureFlag:m.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",[d,o.AJ,a.U,Object,h.r,p.M,f._s])],L);var j=n(73753),D=n(53001),F=n(80417),B=n(73502),U=n(40821),V=n(75468),H=n(57138),G=n(39013),z=n(63749);n(67197);let $=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[o.AJ,d,h.r],imports:[[u.CommonModule,j.RouterModule,o.$Q,B.D,F.LO,U.o,V.$,D.J.withComponents([L]),H.k.withComponents([L]),G.W,z.m]]}),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:()=>M});var i=n(64762),r=n(57826),o=n(67953),a=n(54056),s=n(17990),c=n(25300),l=n(12797);class u extends l.${constructor(){super("contentBlock")}}var d,h=n(78482),p=n(40476),f=n(95149),m=n(18542),g=n(88274),v=n(65353),b=n(93801),y=n(84333),S=n(32716),C=n(6856),x=n(6688),I=n(2986),w=n(60227);function E(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 T(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 P(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 A(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 _(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",6),r["ɵɵtext"](1,"\n                    "),r["ɵɵtemplate"](2,T,2,10,"bx-small-banner",7),r["ɵɵtext"](3,"\n                    "),r["ɵɵtemplate"](4,P,2,2,"bx-content-block",8),r["ɵɵtext"](5,"\n                    "),r["ɵɵtemplate"](6,A,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 M=d=class{constructor(e,t,n){this.cssMappers=e,this.textLayoutMapper=t,this.abtFieldsMapper=n,this.data={},this.banners=[],this.notInSubdivisionList=null}ngOnInit(){if(this.data){this.mapToDataModel(this.data.fields);const e=b.H.map(this.data.fields&&this.data.fields.filter||{});this.notInSubdivisionList=b.H.getNotInSubdivisionList(e)}}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=d.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":d.hasTag(t.tags,p.d.SLIDE_CARD)?"slideCard":"smallBanner"}static getLink(e){return e.linkUrl?e.linkUrl:h.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?d.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=d.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,d.isLiveDealer(e)&&(n.liveDealerId=e.link_url.fields.game_id[0].id),n.target=d.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):d.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.notInFilter=b.H.map(e.fields&&e.fields.filter),t.notInSubdivisionList=b.H.getNotInSubdivisionList(t.notInFilter),t}static tagIsPresent(e,t){return e.split(",").some((e=>e.trim()===t))}static createContentBlock(e){let t=new u;return t.sizeClass="section-"+e.size,t.body=e.contentText,t.draft=e.draft,t.title=e.title||"",e.fields.tags&&(t.liveChat=d.tagIsPresent(e.fields.tags,d.LIVE_CHAT_TAG),t.chatBot=d.tagIsPresent(e.fields.tags,d.CHAT_BOT_TAG)),t}getCSSClasses(e){return this.cssMappers.ConsolidateStyleGroups([e.sizeClass,e.textLayoutClass])}};M.LIVE_CHAT_TAG="livechat",M.CHAT_BOT_TAG="chatbot",M.ɵfac=function(e){return new(e||M)(r["ɵɵdirectiveInject"](f.h),r["ɵɵdirectiveInject"](m.k),r["ɵɵdirectiveInject"](v.u1))},M.ɵcmp=r["ɵɵdefineComponent"]({type:M,selectors:[["bx-section"]],inputs:{data:"data"},features:[r["ɵɵNgOnChangesFeature"]],decls:11,vars:4,consts:[["bxHideBySubdivision","",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,E,5,1,"header",1),r["ɵɵtext"](4,"\n            "),r["ɵɵelementStart"](5,"div",2),r["ɵɵtext"](6,"\n                "),r["ɵɵtemplate"](7,_,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["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.title),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngForOf",t.banners))},directives:[y.e,S.Z,C.NgIf,C.NgForOf,C.NgClass,C.NgSwitch,C.NgSwitchCase,x.x,I.T,w._],encapsulation:2}),M=d=(0,i.__decorate)([(0,s.DE)({name:"Section",mapper:g._,matcher:e=>{let t=e.fields.tags?e.fields.tags.split(","):[];return e.contentType===c.z.SECTION&&t.indexOf(p.d.SMALL_BANNERS_AND_CONTENT_BLOCKS)>=0}}),(0,i.__metadata)("design:paramtypes",[f.h,m.k,v.u1])],M)},23475:(e,t,n)=>{"use strict";n.d(t,{H:()=>b});var i=n(2046),r=n(6856),o=n(73753),a=n(40821),s=n(93125),c=n(82939),l=n(53001),u=n(57826);function d(e,t){if(1&e&&(u["ɵɵelementStart"](0,"div",2),u["ɵɵtext"](1,"\n                "),u["ɵɵelementStart"](2,"div",3),u["ɵɵtext"](3,"\n                    "),u["ɵɵelementStart"](4,"div",4),u["ɵɵtext"](5),u["ɵɵelementEnd"](),u["ɵɵtext"](6,"\n                    "),u["ɵɵelementStart"](7,"div",5),u["ɵɵtext"](8,"\n                        "),u["ɵɵelement"](9,"i",6),u["ɵɵtext"](10,"\n                    "),u["ɵɵelementEnd"](),u["ɵɵtext"](11,"\n                "),u["ɵɵelementEnd"](),u["ɵɵtext"](12,"\n                "),u["ɵɵelementStart"](13,"div",7),u["ɵɵtext"](14,"\n                "),u["ɵɵelementEnd"](),u["ɵɵtext"](15,"\n                "),u["ɵɵelementStart"](16,"div",8),u["ɵɵtext"](17,"\n                    "),u["ɵɵelementStart"](18,"a",9),u["ɵɵtext"](19),u["ɵɵelementEnd"](),u["ɵɵtext"](20,"\n                "),u["ɵɵelementEnd"](),u["ɵɵtext"](21,"\n            "),u["ɵɵelementEnd"]()),2&e){const e=u["ɵɵnextContext"]();u["ɵɵstyleProp"]("background-color",e.bgColor),u["ɵɵadvance"](5),u["ɵɵtextInterpolate1"]("\n                        ",e.title,"\n                    "),u["ɵɵadvance"](4),u["ɵɵproperty"]("ngClass",e.iconName),u["ɵɵadvance"](4),u["ɵɵproperty"]("innerHTML",e.contentText,u["ɵɵsanitizeHtml"]),u["ɵɵadvance"](5),u["ɵɵproperty"]("routerLink",e.linkTo),u["ɵɵadvance"](1),u["ɵɵtextInterpolate"](e.linkText)}}function h(e,t){if(1&e&&(u["ɵɵelementStart"](0,"div",10),u["ɵɵtext"](1,"\n                "),u["ɵɵelementStart"](2,"div",11),u["ɵɵtext"](3,"\n                    "),u["ɵɵelement"](4,"i",6),u["ɵɵtext"](5,"\n                "),u["ɵɵelementEnd"](),u["ɵɵtext"](6,"\n                "),u["ɵɵelementStart"](7,"div",12),u["ɵɵtext"](8,"\n                    "),u["ɵɵelementStart"](9,"div",13),u["ɵɵtext"](10),u["ɵɵelementEnd"](),u["ɵɵtext"](11,"\n                    "),u["ɵɵelementStart"](12,"div",14),u["ɵɵtext"](13,"\n                    "),u["ɵɵelementEnd"](),u["ɵɵtext"](14,"\n                    "),u["ɵɵelementStart"](15,"div",15),u["ɵɵtext"](16,"\n                        "),u["ɵɵelementStart"](17,"a",9),u["ɵɵtext"](18),u["ɵɵelementEnd"](),u["ɵɵtext"](19,"\n                    "),u["ɵɵelementEnd"](),u["ɵɵtext"](20,"\n                "),u["ɵɵelementEnd"](),u["ɵɵtext"](21,"\n            "),u["ɵɵelementEnd"]()),2&e){const e=u["ɵɵnextContext"]();u["ɵɵstyleProp"]("background-color",e.bgColor),u["ɵɵadvance"](4),u["ɵɵproperty"]("ngClass",e.iconName),u["ɵɵadvance"](6),u["ɵɵtextInterpolate1"]("\n                        ",e.title,"\n                    "),u["ɵɵadvance"](2),u["ɵɵproperty"]("innerHTML",e.contentText,u["ɵɵsanitizeHtml"]),u["ɵɵadvance"](5),u["ɵɵproperty"]("routerLink",e.linkTo),u["ɵɵadvance"](1),u["ɵɵtextInterpolate"](e.linkText)}}let p=(()=>{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=u["ɵɵ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&&(u["ɵɵtext"](0,"\n            "),u["ɵɵtemplate"](1,d,22,7,"div",0),u["ɵɵtext"](2,"\n            "),u["ɵɵtemplate"](3,h,22,7,"div",1),u["ɵɵtext"](4,"\n    ")),2&e&&(u["ɵɵadvance"](1),u["ɵɵproperty"]("ngIf","1x1"===t.size),u["ɵɵadvance"](2),u["ɵɵ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})(),f=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({imports:[[r.CommonModule,o.RouterModule,l.J.withComponents([p])]]}),e})();var m=n(76463),g=n(88274),v=n(63749);let b=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({providers:[g._],imports:[[r.CommonModule,o.RouterModule,a.o,s.s,f,l.J.withComponents([i.e]),m.s,c.A,v.m]]}),e})()},12797:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(98953);class r extends i.w{constructor(e){super(),this.sizeClass="",this.fields={},this.componentType=e}}},71844:(e,t,n)=>{"use strict";n.d(t,{G:()=>c});var i=n(65353),r=n(54056),o=n(78482),a=n(93801),s=n(57826);let c=(()=>{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.notInFilter=a.H.map(e.fields&&e.fields.filter),t.notInSubdivisionList=a.H.getNotInSubdivisionList(t.notInFilter),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)(s["ɵɵinject"](i.u1))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},60227:(e,t,n)=>{"use strict";n.d(t,{_:()=>A});var i=n(57826),r=n(6856),o=n(81899),a=n(55298),s=n(70025),c=n(80112),l=n(52344),u=n(93801),d=n(84333),h=n(32716),p=n(79952),f=n(29015),m=n(73753),g=n(96940);function v(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 b(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 y(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 S(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 C(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                "),i["ɵɵelementStart"](1,"figure",6),i["ɵɵtext"](2,"\n                    "),i["ɵɵtemplate"](3,b,1,2,"img",7),i["ɵɵtext"](4,"\n                    "),i["ɵɵtemplate"](5,y,3,5,"figcaption",8),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,S,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 x(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementContainerEnd"]())}function I(e,t){1&e&&i["ɵɵelementContainer"](0)}function w(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,I,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 E(e,t){1&e&&i["ɵɵelementContainer"](0)}function T(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,E,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 P(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,x,2,0,"ng-container",13),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,w,6,3,"ng-template",null,14,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,T,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 A=(()=>{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),this.notInSubdivisionList=u.H.getNotInSubdivisionList(this.data&&this.data.notInFilter)}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:5,consts:[["bxHideBySubdivision","",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,v,5,1,"header",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,C,10,3,"ng-template",null,2,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](7,"\n\n            "),i["ɵɵtemplate"](8,P,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["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.title),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.link)("ngIfElse",e)}},directives:[d.e,h.Z,r.NgIf,p.t,f.T,m.RouterLinkWithHref,r.NgTemplateOutlet],pipes:[g.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),u=n(39013),d=n(52344),h=n(41306),p=n(71844),f=n(63749),m=n(57826);n(90054);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,p.G],imports:[[i.CommonModule,r.RouterModule,o.D,a.o,c.$Q,s.gM.forRoot(),u.W,d.Qh,h.I,f.m]]}),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:()=>T});var i=n(57826),r=n(45965),o=n(84860),a=n(5195),s=n(6856),c=n(80218),l=n(70025),u=n(80112),d=n(55298),h=n(32716),p=n(79952),f=n(73753),m=n(96940);function g(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 v(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 b(e,t){if(1&e&&(i["ɵɵelementStart"](0,"figcaption",7),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,g,2,1,"div",8),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,v,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 y(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,b,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 S(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementContainerEnd"]())}function C(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",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,C,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 I(e,t){1&e&&i["ɵɵelementContainer"](0)}function w(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,I,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 E(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,S,2,0,"ng-container",12),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,x,6,3,"ng-template",null,13,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,w,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 T=(()=>{class e{constructor(e,t,n,i,r,a,c){this.smallBannerPopupService=e,this.platformId=t,this.cdnService=n,this.clickHandlerService=i,this.cmsExternalLinkService=r,this.siteConfigService=a,this.addUrlPrefixService=c,this.thumbnailImage="/assets/images/thumbnail.png",this.thumbnailAlt="Placeholder image",this.useCssThumbnail=this.siteConfigService.hasFeature(o.L.cssThumbnail),this.isServerRender=(0,s.isPlatformServer)(this.platformId),this.thumbnailImage=this.cdnService.getCdnUrlImage(this.thumbnailImage),this.useCssThumbnail&&(this.thumbnailImage="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==")}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"](a.i),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](c.U),i["ɵɵdirectiveInject"](d.M),i["ɵɵdirectiveInject"](l.xG),i["ɵɵdirectiveInject"](r.r),i["ɵɵdirectiveInject"](u.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"],["width","400","height","304",1,"img-placeholder","img-responsive","small-banner-image","background-light",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,y,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,E,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:[h.Z,s.NgIf,p.t,s.NgTemplateOutlet,f.RouterLinkWithHref],pipes:[m.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; }",".img-placeholder[_ngcontent-%COMP%] {\n                aspect-ratio: 400 / 304;\n            }\n            .background-light[_ngcontent-%COMP%] {\n                background-color: #d9d9d9;\n            }"]}),e})()},93125:(e,t,n)=>{"use strict";n.d(t,{s:()=>p});var i=n(6856),r=n(73753),o=n(5195),a=n(22291),s=n(73502),c=n(40821),l=n(70025),u=n(65353),d=n(55298),h=n(57826);n(90054);let p=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=h["ɵɵdefineNgModule"]({type:e}),e.ɵinj=h["ɵɵdefineInjector"]({providers:[o.i,l.xG,d.M],imports:[[i.CommonModule,r.RouterModule,a.$Q,s.D,c.o,u.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:()=>d});var i=n(71923),r=n(4309),o=n(42998),a=n(25300),s=n(54411),c=n(44960),l=n(84285),u=n(57826);let d=(()=>{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)(u["ɵɵinject"](c.F))},e.ɵprov=u["ɵɵ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:()=>w});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))(),u=(()=>(function(e){e[e.PROXY_BROWSER=1]="PROXY_BROWSER",e[e.NO_PROXY_BROWSER=0]="NO_PROXY_BROWSER"}(u||(u={})),u))(),d=n(30173),h=n(36797),p=n(38056),f=n(82846),m=n(55640),g=n(45965),v=n(64174),b=n(89309),y=n(61493),S=n(81899),C=n(66168),x=n(6856);const I=/(^(.*)\/promotions(\/?|\/[a-zA-Z0-9-._]+)?$|^(.*)\/help(\/?|\/[a-zA-Z0-9-._]+){0,2}$)/;let w=(()=>{class e{constructor(e,t,n,i,o,a,s,c,l,u,d){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=u,this.loyaltyStore=d,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 h.U.WINDOWS:case h.U.WINDOWS_PHONE:this.contentVariant.cookieVariant.os=l.WINDOWS;break;case h.U.MAC:this.contentVariant.cookieVariant.os=this.deviceService.isDesktop()?l.MAC_OS:l.iOS;break;case h.U.IOS:this.contentVariant.cookieVariant.os=l.iOS;break;case h.U.ANDROID:this.contentVariant.cookieVariant.os=l.ANDROID;break;case h.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")?u.PROXY_BROWSER:u.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 C.MS(e),!0).url.match(I)}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"](g.r),i["ɵɵinject"](f.G),i["ɵɵinject"](o.u),i["ɵɵinject"](m.z),i["ɵɵinject"](d.U),i["ɵɵinject"](v.m),i["ɵɵinject"](S.u),i["ɵɵinject"](C.JH),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](p.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,KI:()=>o,dq:()=>l,gd:()=>u,ge:()=>d,lI:()=>r,vg:()=>c,wg:()=>i});const i="homepage",r="header-casino",o="section",a="casino",s=/\/casino(\/([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 u(e){return s.test(e)}function d(e,t){return!!e.fields.tags&&e.fields.tags.split(",").indexOf(t)>=0}},58859:(e,t,n)=>{"use strict";n.d(t,{Q:()=>R});var i=n(57826),r=n(6856),o=n(73753),a=n(50536),s=n(29967),c=n(16462),l=n(70025),u=n(64762),d=n(55998),h=n(57754),p=n(80112),f=n(27218);let m=class extends d.X{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t}matcher(e){return e.hasOwnProperty("linkUrl")}createLink(e){return e.linkUrl}};m.ɵfac=function(e){return new(e||m)(i["ɵɵinject"](p.z),i["ɵɵinject"](f.X))},m.ɵprov=i["ɵɵdefineInjectable"]({token:m,factory:m.ɵfac}),m=(0,u.__decorate)([(0,h.S)(),(0,u.__metadata)("design:paramtypes",[p.z,f.X])],m);var g=n(90388),v=n(40123),b=n(85089),y=n(15152),S=n(65353),C=n(61556),x=n(64417),I=n(66168),w=n(59789),E=n(86958),T=n(81768),P=n(56730),A=n(5700),_=n(86333),M=n(4309),k=n(23550),O=n(42998);let N=(()=>{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,O.map)((e=>e)),(0,O.catchError)((()=>(0,M.of)({items:[],scroll:{}}))))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](k.HttpClient))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();n(90054);let R=(()=>{class e{static forRoot(){return{ngModule:e,providers:[c._,N,l.Kt,m,g.B,v.y,b.u,y._,I.JH,I.dT,E.P,T.V,P.Z,w.s,A.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,C.d,x.L,_.M,S.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,{_:()=>S});var i=n(6856),r=n(23550),o=n(57826),a=n(73753),s=n(86958),c=n(43431),l=n(82846),u=n(80112),d=n(48108),h=n(4309),p=n(42998),f=n(40123),m=n(10406),g=n(59789),v=n(15152),b=n(81899),y=n(5700);class S{constructor(e,t,n,i,r,o,a,s,c,l,u,d,p){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=u,this.windowService=d,this.javascriptContentInjectorService=p,this.eventsSubject=new h.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,h.of)(e[t]))}getContentUrl(e,t){return`${this.urlPrefixService.addUrlPrefix(S.contentUrl)}/${this.bucket}/${t}/${e}.json`}fetchContentFromRemote(e,t,n){const i=this.urlPrefixService.addUrlPrefix(S.cmsUrlv5);if(e.indexOf(i.slice(1))>-1)return this.getRequest(e,t);{const i=e+JSON.stringify(S.sortedParams(t));return this.cache[i]&&!n||(this.cache[i]=this.getRequest(e,t).pipe((0,p.publishReplay)(1,S.CACHE_TTL),(0,p.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,p.tap)((e=>this.eventsSubject.next(e))))}getPersonalizedHeaderIfNeeded(e,t){const n={};return this.audiencesValue=this.cookieStorageService.get(S.AUDIENCES_PARAM),this.audienceHashValue=this.cookieStorageService.get(S.AUDIENCE_IDS_PARAM),this.isPersonalizedContentNeeded()&&!this.marketingAudiencesExclusionsService.isUrlExcluded(e,t)&&(this.audienceHashValue?n[S.AUDIENCE_IDS_PARAM]=this.audienceHashValue:n[S.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,p.tap)((e=>this.eventsSubject.next(e)))):this.languageService.getLanguage().pipe((0,p.take)(1),(0,p.mergeMap)((i=>this.getRemoteContent(e,i,t,n))),(0,p.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(S.cmsUrlv5);return this.languageService.getLanguage().pipe((0,p.take)(1),(0,p.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,p.tap)((e=>this.eventsSubject.next(e)))):this.cmsFeatureFlagService.isSectionEnabled(t,3)?this.languageService.getLanguage().pipe((0,p.take)(1),(0,p.mergeMap)((t=>{const r=`${this.urlPrefixService.addUrlPrefix(S.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[S.ORIGIN_PARAM]=this.windowService.origin(),this.languageService.getLanguage().pipe((0,p.take)(1),(0,p.mergeMap)((n=>{let i=(S.PERSONALIZED_CONTENT+e).replace(S.BUCKET_PLACEHOLDER,this.bucket).replace(S.LANG_PLACEHOLDER,n);return this.previewUserIdValue&&(i=i.replace("<sessionId>",this.EMPTY_PROFILE_ID)),this.getRequest(i,t)})))}getPreviewUserIdHeader(){this.previewUserIdValue=this.cookieStorageService.get(S.PREVIEW_USER_ID_PARAM);let e={};return this.isPreviewUserIdContentNeeded()&&(e[S.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,p.tap)((e=>this.eventsSubject.next(e)))):this.cmsFeatureFlagService.isSectionEnabled(t,3)?this.languageService.getLanguage().pipe((0,p.take)(1),(0,p.mergeMap)((t=>{const o=`${this.urlPrefixService.addUrlPrefix(S.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,p.take)(1),(0,p.mergeMap)((t=>{const i=`${this.urlPrefixService.addUrlPrefix(S.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,p.take)(1),(0,p.mergeMap)(this.getContentByUriFunction(e,t)))}getContentByUriFunction(e,t){return this.cmsFeatureFlagService.isSectionEnabled("marketing_page",3)?n=>this.getContentByUriLang(e,n,t):((0,m.dq)(e)&&(e=e.replace("/"+m.Gb+"/","")),n=>this.getRemoteContent(e,n,t).pipe((0,p.tap)((e=>this.eventsSubject.next(e)))))}getContentByUriLang(e,t,n){const i=this.cleanUri(e),r=`${this.urlPrefixService.addUrlPrefix(S.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,p.take)(1),(0,p.mergeMap)((n=>{const i=`${this.urlPrefixService.addUrlPrefix(S.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,h.from)(this.contentFilterService.setVariantCookie()).pipe((0,p.mergeMap)((()=>this.http.get(e,this.requestOptionsBuilder.buildRequestOptions(e,t)))),(0,p.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 S.isSportsContent(t)?e.pipe((0,p.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=>S.isTaggedAs(e,t))),e}removeTaggedComponents(e,t){return e.fields.items=e.fields.items.filter((e=>!S.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}}S.BUCKET_PLACEHOLDER="{bucket}",S.LANG_PLACEHOLDER="{lang}",S.PERSONALIZED_CONTENT="/services/personalized-content/profile/<sessionId>/bucket/"+S.BUCKET_PLACEHOLDER+"/language/"+S.LANG_PLACEHOLDER+"/slug/",S.FILTER_PARAM="filter",S.AUDIENCES_PARAM="audiences",S.AUDIENCE_IDS_PARAM="audienceIds",S.PREVIEW_USER_ID_PARAM="previewUserId",S.ORIGIN_PARAM="origin",S.contentUrl="/content",S.cmsUrlv5="/content/v5",S.CACHE_TTL=Number.POSITIVE_INFINITY,S.ɵfac=function(e){return new(e||S)(o["ɵɵinject"](r.HttpClient),o["ɵɵinject"](d.T),o["ɵɵinject"](c.u),o["ɵɵinject"](f.y),o["ɵɵinject"](o.Injector),o["ɵɵinject"](v._),o["ɵɵinject"](s.P),o["ɵɵinject"](u.z),o["ɵɵinject"](l.G),o["ɵɵinject"](o.PLATFORM_ID),o["ɵɵinject"](g.s),o["ɵɵinject"](b.u),o["ɵɵinject"](y.C))},S.ɵprov=o["ɵɵdefineInjectable"]({token:S,factory:S.ɵfac})},5700:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var i=n(42998),r=n(4309),o=n(80218),a=n(81899),s=n(72556),c=n(57826);let l=(()=>{class e{constructor(e,t,n){this.windowService=e,this.cdnService=n,this.loadedScripts=[],this.$pageLoaded=(0,r.combineLatest)([t.getEvents(1),t.getEvents(0)]).pipe((0,i.take)(1),(0,i.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",this.cdnService.getCdnUrlAjaxRequest(e,!0)),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)(c["ɵɵinject"](a.u),c["ɵɵinject"](s.z),c["ɵɵinject"](o.U))},e.ɵprov=c["ɵɵ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,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:()=>S});var i=n(57826),r=n(6856),o=n(44960),a=n(64762),s=n(70025),c=n(25300),l=n(80112),u=n(27218);let d=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}`}};d.ɵfac=function(e){return new(e||d)(i["ɵɵinject"](l.z),i["ɵɵinject"](u.X))},d.ɵprov=i["ɵɵdefineInjectable"]({token:d,factory:d.ɵfac}),d=(0,a.__decorate)([(0,s.ST)(),(0,a.__metadata)("design:paramtypes",[l.z,u.X])],d);var h=n(52344),p=n(8566),f=n(17125),m=n(58997);let g=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[f.d,m.G]}),e})();var v=n(56614),b=n(40821),y=n(65353);n(90054);let S=(()=>{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,d],imports:[[r.CommonModule,h.Qh,p.B,b.o,g,v.F,y.gM.forRoot()]]}),e})()},44960:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var i=n(63253),r=n(42998),o=n(17125),a=n(52344),s=n(25300),c=n(93801),l=n(57826);let u=(()=>{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),e.fields.filter&&(t.notInFilter=c.H.map(e.fields.filter))})))),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)(l["ɵɵinject"](a._s),l["ɵɵinject"](o.d))},e.ɵprov=l["ɵɵ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:()=>d});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 u=function(){return{showHeaderMenu:!0}};let d=(()=>{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,u)),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:()=>p});var i=n(6856),r=n(73753),o=n(61556),a=n(84704),s=n(50536),c=n(40821),l=n(3334),u=n(53001),d=n(41057),h=n(57826);let p=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=h["ɵɵdefineNgModule"]({type:e}),e.ɵinj=h["ɵɵdefineInjector"]({providers:[l.O,d.L],imports:[[i.CommonModule,u.J,a.a,r.RouterModule.forChild([]),o.d,s.j,c.o]]}),e})()},42802:(e,t,n)=>{"use strict";n.d(t,{X:()=>u});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 u=(()=>{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})()},90054:(e,t,n)=>{"use strict";n.d(t,{g:()=>l});var i=n(57826),r=n(23298),o=n(43535),a=n(30783),s=n(31793),c=n(29967);let l=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.m,o.u,a.G,s.qc]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[c.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(90054),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})},41306:(e,t,n)=>{"use strict";n.d(t,{I:()=>b});var i=n(3336),r=n(50543),o=n(57597),a=n(86333),s=n(91691),c=n(94410),l=n(19765),u=n(57826);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({providers:[l.m]}),e})();var h=n(55298),p=n(56405),f=n(33564),m=n(81768),g=n(86958),v=n(56730);let b=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.y,r.O,o.W,h.M,p.m,f.e,m.V,g.P,v.Z]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({imports:[[a.M,s.C,c.n,d]]}),e})()},3336:(e,t,n)=>{"use strict";n.d(t,{y:()=>S});var i=n(57826),r=n(73753),o=n(4309),a=n(42998),s=n(31793),c=n(81516),l=n(55640),u=n(82846),d=n(81899),h=n(33087),p=n(19765),f=n(84860),m=n(45965),g=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 S{constructor(e,t,n,i,r,a,s,c,l,u,d){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=u,this.errorInterceptor=d,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[S.PAGE_TYPE_KEY]="virtual",e[S.FULL_PAGE_LOAD_TIME_KEY]="-1",e[S.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(),S.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,S.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,S.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=S.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[S.PAGE_TYPE_KEY]=t,i[S.FULL_PAGE_LOAD_TIME_KEY]=n,i[S.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(f.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,{...S.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[S.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 S.CRITICAL_PARAMS.includes(e)}sendEventContext(){Object.keys(this.context).filter((e=>S.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(S.CONTEXT_AB_TEST_NAME)||this.isPropertyAvailableInContext(S.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),S.isFullPageLoadEvent(n)||(this.sendEventContext(),this.wtRef.push(["send","pageupdate"]))}processABTest(e,t){const n={33:JSON.stringify({behaviour:"view",[S.CONTEXT_AB_TEST_NAME]:this.isPropertyAvailableInContext(S.CONTEXT_AB_TEST_NAME)?this.context[S.CONTEXT_AB_TEST_NAME]:"",[S.CONTEXT_AB_TEST_VARIATION]:this.isPropertyAvailableInContext(S.CONTEXT_AB_TEST_VARIATION)?this.context[S.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(S.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[S.CONTEXT_AB_TEST_NAME]=t.study,this.context[S.CONTEXT_AB_TEST_VARIATION]=t.sample)}updateAudience(e){this.context[S.CONTEXT_AUDIENCE_NAME]=JSON.stringify(e)}resetAbtStudyInContext(){delete this.context[S.CONTEXT_AB_TEST_NAME],delete this.context[S.CONTEXT_AB_TEST_VARIATION]}resetAudienceInContext(){delete this.context[S.CONTEXT_AUDIENCE_NAME]}fallbackToLocalStorage(){const e=this.browserStorageService.get(s.be);return e&&JSON.parse(e)[0]}abtContextNotSet(){const e=this.context[S.CONTEXT_AB_TEST_NAME],t=this.context[S.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=S.extractPerformanceMetrics(n);if(S.arePerformanceMetricsAvailable(i)&&S.isPerformanceTrackedForEvent(e,n)){const r=this.context.site_name;let o=S.generatePerformanceMetricName(e,t,r);this.wtRef.push(["send","click",{linkId:o,customClickParameter:{33:JSON.stringify(i)}}]),S.clearPerformanceMetrics(n)}}static extractPerformanceMetrics(e){const t={behaviour:"view"},n=e[S.FULL_PAGE_LOAD_TIME_KEY],i=e[S.DNS_RESOLUTION_TIME_KEY];return n&&(t[S.FULL_PAGE_LOAD_TIME_KEY]=n),i&&(t[S.DNS_RESOLUTION_TIME_KEY]=i),t}static clearPerformanceMetrics(e){delete e[S.FULL_PAGE_LOAD_TIME_KEY],delete e[S.DNS_RESOLUTION_TIME_KEY]}static arePerformanceMetricsAvailable(e){const t=[S.FULL_PAGE_LOAD_TIME_KEY,S.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 S.CASHIER_DEPOSIT_EVENT_NAME:i="cashier_load_time";break;case S.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&&S.isFullPageLoadEvent(t)||e===this.CASHIER_DEPOSIT_EVENT_NAME&&S.isVirtualPageLoadEvent(t)}}S.PAGE_TYPE_KEY="page_type",S.FULL_PAGE_LOAD_TIME_KEY="full_page_load_time",S.DNS_RESOLUTION_TIME_KEY="dns_resolution_time",S.RESET_CUSTOM_PARAMETERS=S.defaultCustomParameters(),S.CASINO_LOGIN_OVERLAY=/.*casino\?.*overlay=login$/,S.URL_EXCLUSIONS=[{urlRegExp:S.CASINO_LOGIN_OVERLAY,eventName:"casino(overlay=login)"}],S.CONTEXT_AUDIENCE_NAME="audience",S.CONTEXT_AB_TEST_NAME="ab_test_name",S.CONTEXT_AB_TEST_VARIATION="ab_test_variation",S.SPORTS_LANDING_PAGE_EVENT_NAME=":sports",S.CASHIER_DEPOSIT_EVENT_NAME="cashier:deposit",S.CRITICAL_PARAMS=["contentId","customerId","pageLoginStatus","territory","site_name","page_language"],S.ɵfac=function(e){return new(e||S)(i["ɵɵinject"](l.z),i["ɵɵinject"](m.r),i["ɵɵinject"](h.TS),i["ɵɵinject"](d.u),i["ɵɵinject"](i.Injector),i["ɵɵinject"](v.O),i["ɵɵinject"](c.HV),i["ɵɵinject"](g.X),i["ɵɵinject"](u.G),i["ɵɵinject"](p.m),i["ɵɵinject"](b.a))},S.ɵprov=i["ɵɵdefineInjectable"]({token:S,factory:S.ɵ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:()=>d});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}(),u=n(57826);let d=(()=>{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)(u["ɵɵinject"](a.uR),u["ɵɵinject"](r.G),u["ɵɵinject"](i.r),u["ɵɵinject"](s.u),u["ɵɵinject"](o.z))},e.ɵprov=u["ɵɵ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)/}},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})()},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.closeAllOverlays=new i.Subject,this.accountBlockedEvent=new i.Subject}requestCode(e,t,n){const i={operation:e,communicationMethod:t,profileIdentifier:n};this.codeRequest.next(i)}requestFinished(e){this.closePopup.next(e)}closeAll(){this.closeAllOverlays.next()}error(e){this.errorEvent.next(e)}accountBlocked(e){this.accountBlockedEvent.next(e)}emitCode(e){this.code.next(e)}requestForCode(e,t,n){return this.requestCode(e,t,n),this.code}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},30352:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});var i=n(36146);const r="CONFIRMATION_CODE",o="PIN_CODE",a="TWO_FACTOR_AUTHENTICATION",s=[a,r,o];var c=n(57826);let l=(()=>{class e{constructor(){this.operationsConfig=new Map}setMfaConfig(e){e&&(e.forEach((e=>{const t=e.split(":");this.hasConfirmationCode(t)?this.operationsConfig.set(t[0],{type:t[1],communicationMethod:t[2]}):this.hasPinCode(t)&&this.operationsConfig.set(t[0],{type:t[1],communicationMethod:o})})),i.$.forEach((e=>{this.operationsConfig.set(e,{type:a,communicationMethod:a})})))}hasConfirmationCode(e){return 3===e.length&&e[1]===r}hasPinCode(e){return e.length>1&&e[1]===o}hasOperationEnabled(e){return this.operationsConfig.has(e)&&s.includes(this.operationsConfig.get(e).type)}getCommunicationMethod(e){return this.hasOperationEnabled(e)?this.operationsConfig.get(e).communicationMethod:null}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=c["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},36146:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,O:()=>i});var i=(()=>(function(e){e.withdraw="withdraw",e.updateProfile="updateProfile",e.login="login",e.enable2fa="enable2fa",e.disable2FA="disable2FA",e.changeStatus2FA="changeStatus2FA"}(i||(i={})),i))();const r=[i.changeStatus2FA,i.disable2FA]},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:()=>h});var i=n(57826),r=n(4309),o=n(33087),a=n(81899),s=n(81465),c=n(93744),l=n(6856),u=n(54075),d=n(10560);let h=(()=>{class e{constructor(e,t,n,i,o,a){this.reCaptchaConfig=e,this.languageService=t,this.reCaptchaInterceptor=n,this.customEventsService=i,this.platformId=o,this.windowService=a,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.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"](u.l),i["ɵɵinject"](o.TS),i["ɵɵinject"](d.h),i["ɵɵinject"](c.V),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:()=>d});var i=n(4309),r=n(42998),o=n(81465),a=n(93744),s=n(81899),c=n(54075),l=n(57826);class u extends Error{}let d=(()=>{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 u(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 u("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})()},92660:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var i=n(4309),r=n(81899),o=n(57826);let a=(()=>{class e{constructor(t){this.windowService=t,this.CLOSE_MINI_CASHIER_EVENT={type:e.CLOSE_MINI_CASHIER_EVENT_TYPE},this.redirectToSpecificDepositPaymentMethodSubject=new i.BehaviorSubject(!1)}triggerMiniCashierClose(){this.windowService.window().top.postMessage(this.CLOSE_MINI_CASHIER_EVENT,"*")}redirectedToSpecificDepositPaymentMethod(){this.redirectToSpecificDepositPaymentMethodSubject.next(!0)}clearRedirectionToSpecificDepositPaymentMethod(){this.redirectToSpecificDepositPaymentMethodSubject.next(!1)}getRedirectToSpecificDepositPaymentMethodNotifications(){return this.redirectToSpecificDepositPaymentMethodSubject}}return e.CLOSE_MINI_CASHIER_EVENT_TYPE="close-mini-cashier",e.ɵfac=function(t){return new(t||e)(o["ɵɵinject"](r.u))},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),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",this.mockCookie="Mock"}prepareCdnConfig(e){let t={shardingEnabled:!1,casinoShardingEnabled:e.casinoShardingEnabled,cdnDomains:[]};!0!==e.shardingEnabled||this.isPreviewMode()||this.isMockMode()||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,t=!1){let n=this.loadImagesInBrowser(e);return n||(this.cdnConfig.shardingEnabled?(t&&(e=this.getRelativeUrl(e)),this.mapResources(e)+(0===e.indexOf("/")?"":"/")+e):e)}getCdnUrlImage(e){return e=this.urlPrefixService.addUrlPrefix(e),this.getCdnUrlAjaxRequest(e,!0)}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)}isMockMode(){return this.cookieStorageService.get(this.mockCookie)&&this.cookieStorageService.get(this.mockCookie).includes("true")}}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.ENABLE_GEO_TARGETING="enable-geo-targeting",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:()=>f});var i=n(49994),r=n(28338),o=n(6856),a=n(58548),s=n(15287),c=n(93758),l=n(23550),u=n(4309),d=n(42998),h=n(57826);let p=(()=>{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,u.timer)(3e4).pipe((0,d.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,d.map)((n=>{const i=n.find((n=>n.sourceCurrencyCode===e&&n.targetCurrencyCode===t));return i&&i.rate||0})),(0,d.shareReplay)(1))}generateCacheKey(e,t){return`${e}-${t}`}}return e.ɵfac=function(t){return new(t||e)(h["ɵɵinject"](l.HttpClient))},e.ɵprov=h["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),f=(()=>{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=h["ɵɵdefineNgModule"]({type:e}),e.ɵinj=h["ɵɵdefineInjector"]({providers:[i.i,r.G,p,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:()=>u});var i=n(49994),r=n(28338),o=n(28486),a=n(6856),s=n(46821),c=n(35218),l=n(57826);let u=(()=>{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),u=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 d=o.E.getDigits(a,r),h=this.formatAmount(l,d,i);return(t?c.o.getCurrencyCodeToShow(s,e.profileCurrencyCode)+" ":"")+u+h}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:()=>C});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),u=n.n(l),d=n(69033);const h={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|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 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|01010101010101010101010|1O100 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AKST AKDT|90 80|01010101010101010101010|1O0X0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 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|01010101010101010101010|1O6r0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0|28e5","America/Panama|EST|50|0||15e5","America/Mexico_City|CST CDT|60 50|01010101010101010101010|1Oc80 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 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|01010101010101010101010|1O0V0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Campo_Grande|-03 -04|30 40|01010101010101010101010|1NTf0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0 1HB0 FX0 1HB0 IL0 1HB0 FX0 1HB0 IL0 1EN0 FX0 1HB0 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|01010101010101010101010|1O0U0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|MST MDT|70 60|01010101010101010101010|1Oc90 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Phoenix|MST|70|0||42e5","America/Los_Angeles|PST PDT|80 70|01010101010101010101010|1O0W0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/New_York|EST EDT|50 40|01010101010101010101010|1O0T0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Fort_Nelson|PST MST|80 70|01|1O0W0|39e2","America/Halifax|AST ADT|40 30|01010101010101010101010|1O0S0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Godthab|-03 -02|30 20|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Grand_Turk|EST EDT AST|50 40 40|0121010101010101010|1O0T0 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Havana|CST CDT|50 40|01010101010101010101010|1O0R0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Metlakatla|PST AKST AKDT|80 90 80|0121212121212121212121|1PAa0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Miquelon|-03 -02|30 20|01010101010101010101010|1O0R0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 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|010101010101010101010|1O0T0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","Antarctica/Palmer|-03 -04|30 40|010|1QSr0 Ap0|40","America/Santiago|-03 -04|30 40|010101010101010101010|1QSr0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0|62e5","America/Sao_Paulo|-02 -03|20 30|01010101010101010101010|1NTe0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0 1HB0 FX0 1HB0 IL0 1HB0 FX0 1HB0 IL0 1EN0 FX0 1HB0 FX0 1HB0|20e6","Atlantic/Azores|-01 +00|10 0|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","America/St_Johns|NST NDT|3u 2u|01010101010101010101010|1O0Ru 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 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|01010101010101010101010|1ObO0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00|14e5","Asia/Baghdad|+03|-30|0||66e5","Antarctica/Troll|+00 +02|0 -20|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Asia/Dhaka|+06|-60|0||16e6","Asia/Amman|EET EEST|-20 -30|01010101010101010101010|1O8m0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0|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|01010101010101010101010|1O9a0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 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|01010101010101010101010|1O8m0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0|26e5","Asia/Yakutsk|+09|-90|0||28e4","Asia/Dubai|+04|-40|0||39e5","Asia/Famagusta|EET EEST +03|-20 -30 -30|0101201010101010101010|1O9d0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST|-20 -30|01010101010101010101010|1O8K0 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1qL0 WN0 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|01010101010101010101010|1O8o0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 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|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 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|01010101010101010101010|1O6ku 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0|14e6","Asia/Tokyo|JST|-90|0||38e6","Asia/Tomsk|+06 +07|-60 -70|01|1QXU0|10e5","Europe/Lisbon|WET WEST|0 -10|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Atlantic/Cape_Verde|-01|10|0||50e4","Australia/Sydney|AEDT AEST|-b0 -a0|01010101010101010101010|1ObQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACDT ACST|-au -9u|01010101010101010101010|1ObQu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 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|01010101010101010101010|1ObP0 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu|347","Australia/Perth|AWST|-80|0||18e5","Pacific/Easter|-05 -06|50 60|010101010101010101010|1QSr0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0|30e2","Europe/Dublin|GMT IST|0 -10|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 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|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Chisinau|EET EEST|-20 -30|01010101010101010101010|1O9c0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 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|01010101010101010101010|1O9d0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Chatham|+1345 +1245|-dJ -cJ|01010101010101010101010|1ObO0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00|600","Pacific/Apia|+14 +13|-e0 -d0|01010101010101010101010|1ObO0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00|37e3","Pacific/Fiji|+13 +12|-d0 -c0|01010101010101010101010|1NF20 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0|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:[]},p=r()||i,f=a()||o,m=c()||s,g=u()||l,v="GMT";h.zones.push("US/ALWAYS_EDT|EDT|40|0||23e5"),d.populateTimeZones(h),p.extend(f),p.extend(m),p.extend(g);class b{constructor(...e){0===arguments.length&&y.mockedDate?this.inst=p(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]&&S(arguments[1])&&arguments[1].length<"YYYY-MM-DD".length?this.inst=p(arguments[0],{format:arguments[1]}):this.inst=p(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=p(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=p(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 S(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(p("invalid"));else if(e)if(t){let n;S(t)?(n=p(e,{format:t}),n=p(n,{timeZone:v})):n=p(e,{timeZone:v}),i=y(p(n))}else i=y(p(e).utc());else i=y(p().utc());return i.timeZone=v,i},y.tz=(e,t,n,i)=>{let r;if(i){let n;n=S(t)?p(e):p(e,{format:t}),r=y(p(n,{timeZone:i})),r.timeZone=i}else r=y(p(e)),r.timeZone=t||v;return r},y.tzGuess=()=>Intl.DateTimeFormat().resolvedOptions().timeZone,y.now=()=>y(p()),y.lib=p,y.weekdays=e=>{const t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];return"number"==typeof e?t[e%t.length]:t},y.isMoment=e=>p.isDayjs(e&&e.inst?e.inst:e),y.isDateUtils=e=>p.isDayjs(e&&e.inst?e.inst:e),y.ISO_8601="YYYY-MM-DDTHH:mm:ssZ",y.mockedDate=null;const C=y},54066:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var i=n(30173),r=n(57826);let o=(()=>{class e{constructor(e){this.deviceService=e}canActivate(){return!!this.deviceService.isDesktop()}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.U))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},93996:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var i=n(30173),r=n(61556),o=n(54066),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.U,o.e],imports:[[r.d]]}),e})()},30173:(e,t,n)=>{"use strict";n.d(t,{U:()=>f});var i=n(57826),r=n(85089),o=n(36797),a=n(82846),s=n(81899),c=n(77247),l=n(6856);const u=[{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 d=n(88323),h=n(91605),p=n(1135);let f=(()=>{class e{constructor(t,n,i,r,o,a,s){this.device=t,this.contentVariant=n,this.cookieStorageService=i,this.windowService=r,this.localStorageService=o,this.platformId=a,this.request=s,this.deviceOS="";const c=(0,l.isPlatformServer)(this.platformId)?this.request.headers[e.DEVICE_HEADER_NAME]:this.cookieStorageService.get(e.DEVICE_COOKIE_NAME);if(c&&"Normal"!=c.split("|")[0]){const e=c.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.window&&!!this.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=u.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}}initializeDeviceId(){this.getDeviceId()||this.localStorageService.set(e.DEVICE_ID_KEY,(0,h.v4)())}getDeviceId(){return this.localStorageService.get(e.DEVICE_ID_KEY)}}return e.DEVICE_COOKIE_NAME="Device-Type",e.DEVICE_HEADER_NAME="x-device-type",e.DEVICE_ID_KEY="deviceId",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](p.x0),i["ɵɵinject"](r.u),i["ɵɵinject"](a.G),i["ɵɵinject"](s.u),i["ɵɵinject"](d.n),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:()=>d});var i=n(6856),r=n(57826),o=n(4309),a=n(55640),s=n(82846),c=n(4473);const l="ftv",u="VISITED";let d=(()=>{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(u)?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(u,"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(u)||this.cookieStorageService.set(u,"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})()},1388:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var i=n(80218),r=n(57826);let o=(()=>{class e{constructor(e){this.cdnService=e}replaceSrcUrl(e){return e.replace(/(@font-face\s*{[^}]*\bsrc\s*:\s*url\s*\(\s*\\?["'])(.*?)(\\?["']\s*\))/g,((e,t,n,i)=>`${t}${this.cdnService.getCdnUrlAjaxRequest(n,!0)}${i}`))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.U))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),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.uR,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+";",u=c?`SameSite=${c};`:"SameSite=Lax;";"SameSite=None;"!==u&&"SameSite=Lax;"!==u||(o="http:"!==this.location().protocol);const d=o&&"JOINED"!==e?"":" expires="+r.toUTCString()+";",h=o?" Secure;":"";this.document.cookie=l+d+h+u}}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),u=n(88323),d=n(36957),h=n(15982);let p=(()=>{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"](h.Title))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const f={charset:"string",content:"string",httpEquiv:"string",id:"string",itemprop:"string",name:"string",property:"string",scheme:"string",url:"string"};let m=(()=>{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(f).forEach((n=>{e.hasAttribute(n)&&(t[n]=e[n])})),t}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](h.Meta),a["ɵɵinject"](i.u))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var g=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 S=n(96299),C=n(80112),x=n(6856),I=n(25595),w=n(26682),E=n.n(w),T=n(61235),P=n.n(T),A=n(42482),_=n.n(A),M=n(88330),k=n.n(M),O=n(34711),N=n.n(O),R=n(30598),L=n.n(R),j=n(57429),D=n.n(j),F=n(34032),B=n.n(F),U=n(91335),V=n.n(U),H=n(20014),G=n.n(H);(0,x.registerLocaleData)(E()),(0,x.registerLocaleData)(P()),(0,x.registerLocaleData)(_()),(0,x.registerLocaleData)(k()),(0,x.registerLocaleData)(N(),L()),(0,x.registerLocaleData)(D(),B()),(0,x.registerLocaleData)(V()),(0,x.registerLocaleData)(G());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,u.n,d.T,p,m,g.M,y,S.q,C.z,I.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,{OI:()=>a,fO:()=>s,uR:()=>c});var i=n(57826),r=n(6856);const o="Universal unsupported request: SessionStorageService",a="casinoCategoryUrl",s="brandCrossWelcomeUrl";let c=(()=>{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})()},55073:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var i=n(82846),r=n(45965),o=n(23550),a=n(43431),s=n(57826);let c=(()=>{class e{constructor(e,t,n,i){this.cookieService=e,this.configService=t,this.http=n,this.cmsFeatureFlagService=i,this.subdivision="",this.country="",!this.cookieService.get("st")&&this.cmsFeatureFlagService.isFeatureEnabled(a.u.ENABLE_GEO_TARGETING)&&this.http.get("/services/geolocation/subdivision").subscribe()}isGeoTargetingEnabled(){return this.cmsFeatureFlagService.isFeatureEnabled(a.u.ENABLE_GEO_TARGETING)}parseSubdivisionCookie(){const e=this.cookieService.get("st")||"";if(e.includes(":")){const[t,n]=e.split(":");return{country:t||"",subdivision:n||""}}return{country:this.configService.getSiteConfigProp("countryCode")||"",subdivision:e||""}}getCurrentCountryCode(){if(!this.isGeoTargetingEnabled())return null;if(!this.country){const{country:e}=this.parseSubdivisionCookie();this.country=e}return this.country}getCurrentSubdivision(){if(!this.isGeoTargetingEnabled())return null;if(!this.subdivision){const{subdivision:e}=this.parseSubdivisionCookie();this.subdivision=e}return this.subdivision}getCurrentSubdivisionId(){if(!this.isGeoTargetingEnabled())return null;const e=this.getCurrentCountryCode(),t=this.getCurrentSubdivision();return e||t?`${this.country}:${this.subdivision}`:null}checkAllGamesHaveSameSubdivisionRestriction(e){let t=!0;if(e&&0!==e.length){const n="notInFilter",i=this.getCurrentSubdivisionId(),r=this.getCurrentCountryCode();e.every((e=>!(!e[n]||!e[n].countrySubdivision.includes(i)&&!e[n].countrySubdivision.includes(r))||(t=!1,!1)))}else t=!1;return t}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.G),s["ɵɵinject"](r.r),s["ɵɵinject"](o.HttpClient),s["ɵɵinject"](a.u))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},93801:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});class i{static map(e){let t={};return e&&e.notIn&&(t.countrySubdivision=this.getCountrySubdivision(e.notIn.countrySubdivision)),Object.keys(t).length?t:null}static getCountrySubdivision(e){let t=[];return Object.keys(e).map((n=>{t=t.concat(this.generateSubdivisionId(n,e[n]))})),t}static generateSubdivisionId(e,t){const n=e.split(":")[0];return 0===t.length?[n]:t.map((e=>`${n}:${(e||"").split(":")[1]}`))}static getNotInSubdivisionList(e){return e&&e.countrySubdivision&&e.countrySubdivision.join(",")||null}}},98953:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});class i{}},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})()},84333:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var i=n(57826),r=n(6856),o=n(55073);let a=(()=>{class e{constructor(e,t,n){this.el=e,this.subDivisionService=t,this.platformId=n,this.isBrowser=(0,r.isPlatformBrowser)(n)}ngOnInit(){if(this.isBrowser&&this.el.nativeElement.dataset.hasOwnProperty("notinSubdivisions")){const e=this.subDivisionService.getCurrentCountryCode(),t=this.subDivisionService.getCurrentSubdivisionId(),n=this.el.nativeElement.dataset.notinSubdivisions.split(",");(n.includes(t)||n.includes(e))&&(this.el.nativeElement.parentElement.style.display="none")}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](o.F),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxHideBySubdivision",""]]}),e})()},63749:(e,t,n)=>{"use strict";n.d(t,{m:()=>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})()},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):this.defaultColor&&this.defaultSize&&(this.elementRef.nativeElement.style.backgroundColor=this.defaultColor,this.elementRef.nativeElement.setAttribute("width",`${this.defaultSize[0]}`),this.elementRef.nativeElement.setAttribute("height",`${this.defaultSize[1]}`))}ngOnChanges(e){this.src&&(this.imageLazyloadService.isImageLazyloadEnabled()&&!this.elementRef.nativeElement.classList.contains("lazyloaded")?(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",defaultColor:"defaultColor",defaultSize:"defaultSize",setSrc:["src","setSrc"]},features:[i["ɵɵNgOnChangesFeature"]]}),e})()},24249:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var i=n(57826),r=n(6856),o=n(42998),a=n(4309),s=n(45965),c=n(84860),l=n(81899);let u=(()=>{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,{$:()=>a,f:()=>s});var i=n(56614),r=n(24249),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.h],imports:[[i.F]]}),e})();const s="/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:()=>u});var i=n(6856),r=n(76771),o=n(50536),a=n(10396),s=n(84704),c=n(57685),l=n(57826);let u=(()=>{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:()=>u});var i=n(23550),r=n(4309),o=n(42998),a=n(96299),s=n(45965),c=n(47975),l=n(57826);class u{constructor(e,t,n){this.http=e,this.siteConfigService=t,this.previewModeService=n,this.languagesConfigProp="languages",this.languagesPublishedConfigProp="languagesPublished",n&&n.setPreviewCookieName(u.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(u.availableLanguagesUrl).pipe((0,o.map)((e=>e.map((e=>new c.j(e))))))})).pipe((0,o.publishReplay)(1,u.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}}u.availableLanguagesUrl="/api/v1/languages",u.PREVIEW_COOKIE_KEY="bxPreviewLanguages",u.AVAILABLES_LANGUAGE_CACHE_TTL=Number.POSITIVE_INFINITY,u.ɵfac=function(e){return new(e||u)(l["ɵɵinject"](i.HttpClient),l["ɵɵinject"](s.r),l["ɵɵinject"](a.q))},u.ɵprov=l["ɵɵdefineInjectable"]({token:u,factory:u.ɵ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:()=>m});var i=n(73753),r=n(4309),o=n(42998),a=n(12596),s=n(76771),c=n(47975),l=n(40891),u=n(48108),d=n(57826),h=n(6856),p=n(20843);function f(e,t){if(1&e){const e=d["ɵɵgetCurrentView"]();d["ɵɵelementStart"](0,"bx-dropdown",1),d["ɵɵlistener"]("change",(function(t){return d["ɵɵrestoreView"](e),d["ɵɵnextContext"]().notifyLanguageChanged(t)})),d["ɵɵtext"](1,"\n        "),d["ɵɵelementEnd"]()}if(2&e){const e=d["ɵɵnextContext"]();d["ɵɵproperty"]("options",e.languages)("hrefValues",e.hrefOptions)("displayLabelProperty",e.codeLabel)("selectedValue",e.currentLangCode)("iconClassProperty",e.languageSelectorConfig.iconClassProperty)("showSelectedIcon",e.languageSelectorConfig.showSelectedIcon)}}let m=(()=>{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)(d["ɵɵdirectiveInject"](s.F),d["ɵɵdirectiveInject"](u.T),d["ɵɵdirectiveInject"](a.s),d["ɵɵdirectiveInject"](l.y),d["ɵɵdirectiveInject"](i.Router))},e.ɵcmp=d["ɵɵ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&&(d["ɵɵtext"](0,"\n        "),d["ɵɵtemplate"](1,f,2,6,"bx-dropdown",0),d["ɵɵtext"](2,"\n    ")),2&e&&(d["ɵɵadvance"](1),d["ɵɵproperty"]("ngIf",t.showSelector))},directives:[h.NgIf,p.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:()=>p});var i=n(6856),r=n(57826),o=n(77247),a=n(4309),s=n(42998),c=n(81899),l=n(76771),u=n(47975),d=n(5875),h=n(40966);let p=(()=>{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 u.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"](d.g),r["ɵɵinject"](h.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:()=>u});var i=n(57826),r=n(73753),o=n(81899),a=n(12744),s=n(80112),c=n(48108),l=n(45965);let u=(()=>{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:()=>m});var i=n(4309),r=n(42998),o=n(23550),a=n(80112),s=n(50371),c=n(76771),l=n(47975),u=n(48108);const d=new l.j("en");var h=n(37202),p=n(75105),f=n(57826);let m=(()=>{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):d}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 p.M(e.url.substr(t.code.length+1)):e}removeUrlPrefix(e){const t=this.urlPrefixService.removeUrlPrefix(e.url);return new p.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 p.M(n)}addUrlPrefix(e){const t=this.urlPrefixService.addUrlPrefix(e.url);return new p.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 p.M(r+i)}isDefaultLanguage(e){return e.code==this.brandDefaultLanguage.code}isBaseLanguage(e){return e.code==d.code}}return e.ɵfac=function(t){return new(t||e)(f["ɵɵinject"](o.HttpClient),f["ɵɵinject"](c.F),f["ɵɵinject"](h.d),f["ɵɵinject"](u.T),f["ɵɵinject"](s.w),f["ɵɵinject"](a.z))},e.ɵprov=f["ɵɵ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)},31018:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var i=n(57826),r=n(81899);let o=(()=>{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"](r.u),i["ɵɵinject"](i.NgZone))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},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 removeEnglishThousandsSeparator(e){return e?e.toString().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:()=>b});var i=n(4309),r=n(42998),o=n(43640),a=n(80218),s=n(22274),c=n(82846),l=n(79308),u=n(80112),d=n(81899),h=n(33087),p=n(41931),f=n(45965),m=n(89309),g=n(84860),v=n(57826);let b=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l){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.cdnService=c,this.loyaltyStore=l,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!==o.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 o.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 o.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 o.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,o.jc)());const e=this.siteConfigService.getSiteConfigProp("contactMethods").reactiveChat;return this.languageService.getLanguage().subscribe((t=>{switch(e.type){case o.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=o.iH.None;break;case o.iH.Novomind:e.novomindConfig.libraryFileURL&&e.novomindConfig.chat.iframeURL&&e.novomindConfig.chat.iframeParams||(e.type=o.iH.None);break;case o.iH.Alvaria:e.alvariaConfig.libraryFileURL&&e.alvariaConfig.chat.iframeURL&&e.alvariaConfig.chat.iframeParams||(e.type=o.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===o.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 o.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 o.iH.Novomind:case o.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",this.cdnService.getCdnUrlAjaxRequest(e,!0)),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===o.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{account:e.accountNumber,email:e.email,name:e.firstName,language:this.language.toUpperCase()}}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)(v["ɵɵinject"](f.r),v["ɵɵinject"](h.TS),v["ɵɵinject"](d.u),v["ɵɵinject"](l.uR),v["ɵɵinject"](u.z),v["ɵɵinject"](p.w),v["ɵɵinject"](s.x),v["ɵɵinject"](c.G),v["ɵɵinject"](a.U),v["ɵɵinject"](m.r,8))},e.ɵprov=v["ɵɵ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.reactiveChatDefer="reactive-chat-defer",e.trimSSRCards="trim-ssr-cards",e.preloadLCPArea="preload-lcp-area",e.cssThumbnail="css-thumbnail",e.customFontsDisabled="custom-fonts-disabled",e.nativeDefaultFontsEnabled="native-default-fonts-enabled",e.dobAndPinCodeEnabled="dob-pincode-webform.enabled",e.casinoRecentActivities="casino-recent-activities.enabled",e.twoFactorAuthenticatorRememberMyDevice="two-factor-authenticator-remember-my-device"}(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.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.openInIframe="site.config.casino.games.open.in.iframe.enabled",e.openInIframeGamesBlacklist="site.config.casino.games.open.in.iframe.exclude_list",e.openInIframeSupplierBlacklist="site.config.casino.games.open.in.iframe.exclude_suppliers_list",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",e.invitationFlowUriSuffix="invitation_flow_uri_suffix",e.cashierHighlightBonusPaymentMethods="site.config.cashier.pm_selector.bonus_pm",e.invitationFlowHideLogin="invitation_flow_hide_login",e.pokerNebulaEnabled="site.config.poker.nebula.enabled",e.olympusLogged="site.config.olympus.migrated_pages.logged",e.olympusUnlogged="site.config.olympus.migrated_pages.unlogged",e.cashierCasinoEnabled="site.config.cashier.casino.enabled",e.cashierCasinoAllowedGames="site.config.cashier.casino.games_list"}(i||(i={})),i))()},45965:(e,t,n)=>{"use strict";n.d(t,{r:()=>g});var i=n(6856),r=n(57826),o=n(4309),a=n(42998),s=n(23550),c=n(81899),l=n(50371),u=n(43640),d=n(23444);const h="services";var p=n(61493);class f{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 m="/404";let g=(()=>{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.hasFeatureMap=new Map,this.siteConfig.serviceDomain=this.replaceFirstSubDomainFromUrlSite(h)}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:{openInIframe:!1,openInIframeGamesBlacklist:[],openInIframeSupplierBlacklist:[],vigLivedealerTablesBlacklist:[]},contactMethods:{reactiveChat:(0,u.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:"",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:"",invitationFlowUriSuffix:"",cashierHighlightBonusPaymentMethods:!1,invitationFlowHideLogin:!1,pokerNebulaEnabled:!1,olympusLogged:[],olympusUnlogged:[],cashierCasinoEnabled:!1,cashierCasinoAllowedGames:[]}}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=f.readStringOrEmpty(e,p.A.vergicUri),this.siteConfig.contactMethods.reactiveChat.vergicConfig.customerKey=f.readStringOrEmpty(e,p.A.vergicCustomerKey),this.siteConfig.contactMethods.reactiveChat.type=f.readString(e,p.A.reactiveChatType,u.iH.None),this.siteConfig.contactMethods.reactiveChat.moxieConfig.portalSettingsFileUrl=f.readStringOrEmpty(e,p.A.reactiveChatSettingsUri),this.siteConfig.contactMethods.reactiveChat.moxieConfig.portalDetectionFileUrl=f.readStringOrEmpty(e,p.A.reactiveChatDetectionUri),this.siteConfig.contactMethods.reactiveChat.novomindConfig.libraryFileURL=f.readStringOrEmpty(e,p.A.reactiveChatNvLibraryUri),this.siteConfig.contactMethods.reactiveChat.novomindConfig.chat.iframeURL=f.readStringOrEmpty(e,p.A.reactiveChatNvIframeUri),this.siteConfig.contactMethods.reactiveChat.novomindConfig.chat.vipIframeURL=f.readStringOrEmpty(e,p.A.reactiveChatNvVipIframeUri),this.siteConfig.contactMethods.reactiveChat.novomindConfig.chat.iframeParams=f.readStringOrEmpty(e,p.A.reactiveChatNvIframeParams),this.siteConfig.contactMethods.reactiveChat.novomindConfig.chat.vipIframeParams=f.readStringOrEmpty(e,p.A.reactiveChatNvVipIframeParams),this.siteConfig.contactMethods.reactiveChat.novomindConfig.displayOptions=JSON.parse(f.readStringOrEmpty(e,p.A.reactiveChatNvDisplayOptions)||"{}"),this.siteConfig.contactMethods.reactiveChat.novomindConfig.proactive.enabled=f.readBoolean(e,p.A.reactiveChatNvProactiveEnabled),this.siteConfig.contactMethods.reactiveChat.novomindConfig.proactive.frontendPath=f.readStringOrEmpty(e,p.A.reactiveChatNvProactiveFrontendPath),this.siteConfig.contactMethods.reactiveChat.novomindConfig.proactive.frontendID=f.readStringOrEmpty(e,p.A.reactiveChatNvProactiveFrontendID),this.siteConfig.contactMethods.reactiveChat.novomindConfig.proactive.pathToRules=f.readStringOrEmpty(e,p.A.reactiveChatNvProactivePathToRules),this.siteConfig.contactMethods.reactiveChat.novomindConfig.bot.enabled=f.readBoolean(e,p.A.reactiveChatNvBotEnabled),this.siteConfig.contactMethods.reactiveChat.novomindConfig.bot.botIframeParams=f.readStringOrEmpty(e,p.A.reactiveChatNvBotIframeParams),this.siteConfig.contactMethods.reactiveChat.novomindConfig.bot.botIframeURL=f.readStringOrEmpty(e,p.A.reactiveChatNvBotIframeUri),this.siteConfig.contactMethods.reactiveChat.alvariaConfig.libraryFileURL=f.readStringOrEmpty(e,p.A.reactiveChatAlvLibraryUri),this.siteConfig.contactMethods.reactiveChat.alvariaConfig.chat.iframeURL=f.readStringOrEmpty(e,p.A.reactiveChatAlvIframeUri),this.siteConfig.contactMethods.reactiveChat.alvariaConfig.chat.iframeParams=f.readStringOrEmpty(e,p.A.reactiveChatAlvIframeParams),this.siteConfig.contactMethods.reactiveChat.alvariaConfig.displayOptions=JSON.parse(f.readStringOrEmpty(e,p.A.reactiveChatAlvDisplayOptions)||"{}"),f.isPresent(e,p.A.contactMethodsPhoneEnabled)&&(this.siteConfig.contactMethods.phoneNumber.enabled=f.readBoolean(e,p.A.contactMethodsPhoneEnabled)),f.isPresent(e,p.A.contactMethodsPhoneNumber)&&(this.siteConfig.contactMethods.phoneNumber.number=f.readString(e,p.A.contactMethodsPhoneNumber)),this.siteConfig.cdn.shardingEnabled=f.readBoolean(e,p.A.sharding),this.siteConfig.webSocketDomain=f.readString(e,p.A.srvWebSocketDomain,""),f.isArray(e,p.A.cdnDomains)&&(this.siteConfig.cdn.cdnDomains=e[p.A.cdnDomains]),this.siteConfig.cdn.casinoShardingEnabled=f.readBoolean(e,p.A.casinoSharding);const t=f.readString(e,p.A.srvSubDomain,h);t&&(this.siteConfig.serviceSubDomain=t),this.siteConfig.serviceDomain=this.replaceFirstSubDomainFromUrlSite(t);const n=f.readString(e,p.A.casinoSubDomain);n&&(this.siteConfig.casino.gameSubdomain=n),this.siteConfig.markupSchemas=f.readArray(e,p.A.markupSchemas),this.siteConfig.cms.enabledSections=f.readArray(e,p.A.cmsEnabledSections),this.siteConfig.cms.enabledFeatures=f.readArray(e,p.A.cmsEnabledFeatures),this.siteConfig.availableCurrencies=f.readArray(e,p.A.availableCurrencies),this.siteConfig.defaultCurrency=f.readStringOrEmpty(e,p.A.defaultCurrency),this.siteConfig.defaultLanguage=f.readStringOrEmpty(e,p.A.defaultLanguage),this.siteConfig.myAffiliateTokenExpiration=f.readStringOrEmpty(e,p.A.myAffiliateTokenExpiration),this.siteConfig.languages=f.readArray(e,p.A.languages),this.siteConfig.languagesPublished=f.readArray(e,p.A.languagesPublished),this.siteConfig.regionalDeclarations=f.readArray(e,p.A.regionalDeclarations),this.siteConfig.locale=f.readStringOrEmpty(e,p.A.locale),this.siteConfig.products=f.readArray(e,p.A.products),this.siteConfig.disabledMultiproducts=f.readArray(e,p.A.disabledMultiproducts),this.siteConfig.profileIdentifiers=f.readArray(e,p.A.profileIdentifiers),this.siteConfig.bucket=f.readStringOrEmpty(e,p.A.bucket),this.siteConfig.mainLogo=f.readStringOrEmpty(e,p.A.mainLogo),this.siteConfig.mainHeaderLogo=f.readStringOrEmpty(e,p.A.mainHeaderLogo),this.siteConfig.theme=f.readStringOrEmpty(e,p.A.theme),this.siteConfig.showGameDescription=f.readBoolean(e,p.A.showGameDescription),this.siteConfig.sitewideAuthExemptions=f.readArray(e,p.A.sitewideAuthExemptions),this.siteConfig.featuresList=f.readArray(e,p.A.featuresList),this.siteConfig.depositRedirect=f.readString(e,p.A.depositRedirect,m),f.isPresent(e,p.A.depositEnabled)&&(this.siteConfig.depositEnabled=f.readBoolean(e,p.A.depositEnabled)),this.siteConfig.withdrawalRedirect=f.readString(e,p.A.withdrawalRedirect,m),this.siteConfig.httpTimeoutInMilliseconds=f.numberFrom(e,p.A.httpTimeoutInMilliseconds),this.siteConfig.canonicalDomain=f.readStringOrEmpty(e,p.A.canonicalDomain),this.siteConfig.webtrekkUri=f.readStringOrEmpty(e,p.A.webtrekkUri),this.siteConfig.maintenanceEnabled=f.readBoolean(e,p.A.maintenanceEnabled),this.siteConfig.updatePlayerVerificationMethod=f.readString(e,p.A.updatePlayerVerificationMethod,"PASSWORD"),e.brandCode&&(this.siteConfig.brandCode=e.brandCode),this.siteConfig.brandLabel=f.readStringOrEmpty(e,p.A.brandLabel),this.siteConfig.networkJackpotBannerHostname=f.readStringOrEmpty(e,p.A.networkJackpotBannerHostname),this.siteConfig.networkJackpotBannerLogoUrl=f.readStringOrEmpty(e,p.A.networkJackpotBannerLogoUrl),this.siteConfig.networkJackpotBannerRedirectionUrl=f.readStringOrEmpty(e,p.A.networkJackpotBannerRedirectionUrl),this.siteConfig.casinoB2bBrandCode=f.readStringOrEmpty(e,p.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=f.readBoolean(e,p.A.deviceProtectEnabled),this.siteConfig.deviceProtect.domain=f.readStringOrEmpty(e,p.A.deviceProtectDomain),this.siteConfig.bonusSelectionCfEnabled=f.readBoolean(e,p.A.bonusSelectionCf),f.isPresent(e,p.A.forfeitButtonEnabled)&&(this.siteConfig.forfeitButtonEnabled=f.readBoolean(e,p.A.forfeitButtonEnabled)),f.isPresent(e,p.A.onlyDepositBonusDisplayed)&&(this.siteConfig.onlyDepositBonusDisplayed=f.readBoolean(e,p.A.onlyDepositBonusDisplayed)),this.siteConfig.pixelTrackingEnabled=f.readBoolean(e,p.A.pixelTrackingEnabled),this.siteConfig.pixelTrackingParameterFilterEnabled=f.readBoolean(e,p.A.pixelTrackingParameterFilterEnabled),this.siteConfig.sports.style=f.readStringOrEmpty(e,p.A.sportsStyle),this.siteConfig.chatId=f.readStringOrEmpty(e,p.A.chatId),this.siteConfig.vipChatId=f.readStringOrEmpty(e,p.A.vipChatId),this.siteConfig.dynamicCards.enabled=f.readBoolean(e,p.A.dynamicCards),this.siteConfig.dateFormat=f.readString(e,p.A.dateFormat,"MM-DD-YYYY"),this.siteConfig.dateMask=f.readString(e,p.A.dateMask,"[0-1], \\d, -, [0-3], \\d, -, [1-2], \\d, \\d, \\d"),this.siteConfig.urlPrefix=f.readStringOrEmpty(e,p.A.urlPrefix),this.siteConfig.httpRetries=f.numberFrom(e,p.A.httpRetries,1),this.siteConfig.rulesCheckerEnabled=f.readBoolean(e,p.A.rulesCheckerEnabled),this.siteConfig.phoneValidationEnabled=f.readBoolean(e,p.A.phoneValidationEnabled),this.siteConfig.phoneValidationInJoinEnabled=f.readBoolean(e,p.A.phoneValidationInJoinEnabled),this.siteConfig.phoneSkipValidationEnabled=f.readBoolean(e,p.A.phoneSkipValidationEnabled),this.siteConfig.phoneValidationSections=f.readArray(e,p.A.phoneValidationSections),this.siteConfig.phoneTypeValidationSections=f.readArray(e,p.A.phoneTypeValidationSections),this.siteConfig.phoneTypeValidV2ValidationEnabled=f.readBoolean(e,p.A.phoneTypeValidV2ValidationEnabled),this.siteConfig.phoneTypeValidationTimeout=f.numberFrom(e,p.A.phoneTypeValidationTimeout,0),this.siteConfig.phoneTypeValidationEnabled=f.readBoolean(e,p.A.phoneTypeValidationEnabled),this.siteConfig.phoneTypeValidPollingRetries=f.numberFrom(e,p.A.phoneTypeValidPollingRetries,5),this.siteConfig.phoneValidationInJoinShowWarningEnabled=f.readBoolean(e,p.A.phoneValidationInJoinShowWarningEnabled),this.siteConfig.inputIconStatusEnabled=f.readBoolean(e,p.A.inputIconStatusEnabled),this.siteConfig.hotjar.enabled=f.readBoolean(e,p.A.hotjarEnabled),this.siteConfig.hotjar.id=f.readString(e,p.A.hotjarId),this.siteConfig.googleAnalytics.enabled=f.readBoolean(e,p.A.googleAnalyticsEnabled),this.siteConfig.googleAnalytics.id=f.readString(e,p.A.googleAnalyticsId),this.siteConfig.googleTagManagerContainerId=f.readString(e,p.A.googleTagManagerContainerId),this.siteConfig.trackDomain=f.readStringOrEmpty(e,p.A.trackDomain),this.siteConfig.localeTime=f.readStringOrEmpty(e,p.A.localeTime),this.siteConfig.affiliates.markets=f.readArray(e,p.A.affiliatesMarkets),this.siteConfig.affiliates.products=f.readArray(e,p.A.affiliatesProducts),this.siteConfig.affiliates.instantMessageMethods=f.readArray(e,p.A.affiliatesInstantMessagesMethods),f.isPresent(e,p.A.affiliatesRefSiteToken)&&(this.siteConfig.affiliates.refSiteToken=f.readString(e,p.A.affiliatesRefSiteToken)),this.siteConfig.contactusToAddress=f.readStringOrEmpty(e,p.A.contactUsToAddress),this.siteConfig.conversionFunnelDeferredMsgEnabled=f.readBoolean(e,p.A.conversionFunnelDeferredMsgEnabled),f.isPresent(e,p.A.registrationBonusV2)&&(this.siteConfig.registrationBonusV2=f.readBoolean(e,p.A.registrationBonusV2)),f.isPresent(e,p.A.apmUri)&&(this.siteConfig.apmUri=f.readString(e,p.A.apmUri)),this.siteConfig.apmSamplingRate=f.numberFrom(e,p.A.apmSamplingRate,0),this.siteConfig.apmMonitoringServices=f.readBoolean(e,p.A.apmMonitoringServices),this.siteConfig.apmDisableInstrumentations=f.readArray(e,p.A.apmDisableInstrumentations),this.siteConfig.emailProviderSuggestions={enabled:f.readBoolean(e,p.A.emailProviderSuggestionsEnabled),emailProviders:f.readArray(e,p.A.emailProviderSuggestions)},this.siteConfig.rafDomain=f.readStringOrEmpty(e,p.A.rafDomain),e.playerSecurityCaptchaPluginUri&&(this.siteConfig.playerSecurityCaptchaConfig.pluginUri=e.playerSecurityCaptchaPluginUri),this.siteConfig.playerSecurityCaptchaConfig.playerCaptchaV3Config.publicKey=f.readString(e,p.A.playerSecurityCaptchaV3PublicKey),this.siteConfig.playerSecurityCaptchaConfig.playerCaptchaV3Config.infoActions=f.readArray(e,p.A.playerSecurityCaptchaV3InfoActions),this.siteConfig.playerSecurityCaptchaConfig.playerCaptchaV3Config.monitoringActions=f.readArray(e,p.A.playerSecurityCaptchaV3MonitoringActions),this.siteConfig.playerSecurityCaptchaConfig.playerCaptchaV3Config.enforcementActions=f.readArray(e,p.A.playerSecurityCaptchaV3EnforcementActions),this.siteConfig.browsersNotSupported=f.readArray(e,p.A.browsersNotSupported),this.siteConfig.isNotificationEnabled=f.readBoolean(e,p.A.notificationEnabled),this.siteConfig.matchpayJoinNowUri=f.readString(e,p.A.matchpayJoinNowUri,""),this.siteConfig.matchpayCreateOfferUri=f.readString(e,p.A.matchpayCreateOfferUri,""),this.siteConfig.matchpayEnabled=f.readBoolean(e,p.A.matchpayEnabled),this.siteConfig.cmMatchpayEnabled=f.readBoolean(e,p.A.cmMatchpayEnabled),this.siteConfig.mfaOperations=f.readArray(e,p.A.mfaOperations),this.siteConfig.reCaptchaV3Properties=e.reCaptchaV3Properties?Object.values(e.reCaptchaV3Properties.actions):f.readArray(e,p.A.reCaptchaV3Properties),this.siteConfig.proofOfConceptEnabledFeatures=f.readArray(e,p.A.proofOfConceptEnabledFeatures),this.readFeatureFlags(e),this.siteConfig.phoneJoinMaxPhoneAttempts=f.numberFrom(e,p.A.phoneJoinMaxPhoneAttempts,4),this.siteConfig.phoneJoinExpirationTimeAttempts=f.numberFrom(e,p.A.phoneJoinExpirationTimeAttempts,60),this.siteConfig.notificationAnalyticsEnabled=f.readBoolean(e,p.A.notificationAnalyticsEnabled),this.siteConfig.responseErrorEventAnalyticsEnabled=f.readBoolean(e,p.A.responseErrorEventAnalyticsEnabled),this.siteConfig.customBlockedMessage=f.readBoolean(e,p.A.customBlockedMessage),this.siteConfig.customBlockedMessageBanner=f.readBoolean(e,p.A.customBlockedMessageBanner),this.siteConfig.customerSupportChat=f.readBoolean(e,p.A.customerSupportChat),this.siteConfig.mfeForgotPasswordEnabled=f.readBoolean(e,p.A.mfeForgotPasswordEnabled),this.siteConfig.crossMessagingIframeEnabled=f.readBoolean(e,p.A.crossMessagingIframeEnabled),this.siteConfig.twoFactorAuthenticatorEnabled=f.readBoolean(e,p.A.twoFactorAuthenticationEnabled),this.siteConfig.firstTimeVisitorEnabled=f.readBoolean(e,p.A.firstTimeVisitorEnabled),this.siteConfig.casinoPracticePlayDisabled=f.readBoolean(e,p.A.casinoPracticePlayDisabled),this.siteConfig.joinEnabled=f.readBoolean(e,p.A.joinEnabled),this.siteConfig.casino.openInIframe=f.readBoolean(e,p.A.openInIframe),this.siteConfig.casino.openInIframeGamesBlacklist=f.readArray(e,p.A.openInIframeGamesBlacklist),this.siteConfig.casino.openInIframeSupplierBlacklist=f.readArray(e,p.A.openInIframeSupplierBlacklist),this.siteConfig.casino.vigLivedealerTablesBlacklist=f.readArray(e,p.A.casinoVigLivedealerTablesBlacklist),this.siteConfig.vipInvitationEnabled=f.readBoolean(e,p.A.vipInvitationEnabled),this.siteConfig.firstTimeDepositCfDisabled=f.readBoolean(e,p.A.firstTimeDepositCfDisabled),this.siteConfig.multiProductMaintenance=f.readArray(e,p.A.multiProductMaintenance),this.siteConfig.acceptsGiftsLinkTooltip=f.readString(e,p.A.acceptsGiftsLinkTooltip),this.siteConfig.invitationFlowUriSuffix=f.readString(e,p.A.invitationFlowUriSuffix,"/usp-bvx"),this.siteConfig.cashierHighlightBonusPaymentMethods=f.readBoolean(e,p.A.cashierHighlightBonusPaymentMethods),this.siteConfig.invitationFlowHideLogin=f.readBoolean(e,p.A.invitationFlowHideLogin),this.siteConfig.pokerNebulaEnabled=f.readBoolean(e,p.A.pokerNebulaEnabled),this.siteConfig.olympusLogged=f.readArray(e,p.A.olympusLogged),this.siteConfig.olympusUnlogged=f.readArray(e,p.A.olympusUnlogged),this.siteConfig.cashierCasinoEnabled=f.readBoolean(e,p.A.cashierCasinoEnabled),this.siteConfig.cashierCasinoAllowedGames=f.readArray(e,p.A.cashierCasinoAllowedGames)}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){return this.hasFeatureMap.has(e)||this.hasFeatureMap.set(e,this.siteConfig.featuresList.some((t=>e.match(new RegExp(`^${t}.?`))))),this.hasFeatureMap.get(e)}setBonusSelectionCfEnabled(e){this.siteConfig.bonusSelectionCfEnabled=e,this.features.set(p.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,f.readBoolean(e,t))}))}}return e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](c.u),r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](d.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))()},74178:(e,t,n)=>{"use strict";n.d(t,{g:()=>h});var i=n(64762),r=n(32711),o=n(91184),a=n(4309),s=n(35294),c=n(84781),l=n(45592),u=n(25249),d=n(57826);class h extends c.d{constructor(e,t){super(),this.twoFactorAuthenticatorStatusService=e,this.stateStore=t,this.twoFactorAuthenticatorSubject=new a.ReplaySubject(1)}getTwoFactorStatus(){return this.twoFactorAuthenticatorSubject.asObservable()}init(){this.initTwoFactorAuthenticatorStatusInfo(),this.setRefreshReaction(),this.setLoginStateReaction()}initTwoFactorAuthenticatorStatusInfo(){this.setTwoFactorAuthenticatorStatusInfo(this.buildUnknownStatus())}setRefreshReaction(){(0,r.U5)((()=>this.mustRefresh),(()=>this.refreshTwoFactorAuthenticatorStatusInfo()))}setTwoFactorAuthenticatorStatusInfo(e){this.twoFactorAuthenticatorStatusInfo=e}get status(){return this.twoFactorAuthenticatorStatusInfo?this.twoFactorAuthenticatorStatusInfo.status:l.M.UNKNOWN}refreshTwoFactorAuthenticatorStatusInfo(){this.twoFactorAuthenticatorStatusService.getTwoFactorAuthStatus().subscribe((e=>{this.setTwoFactorAuthenticatorStatusInfo(e),this.twoFactorAuthenticatorSubject.next(e),this.done()}),(e=>this.error()))}setLoginStateReaction(){(0,r.EH)((()=>{this.stateStore.loginState?this.refresh():this.initTwoFactorAuthenticatorStatusInfo()}))}buildUnknownStatus(){return{status:l.M.UNKNOWN}}}h.ɵfac=function(e){return new(e||h)(d["ɵɵinject"](u.g),d["ɵɵinject"](s.X))},h.ɵprov=d["ɵɵdefineInjectable"]({token:h,factory:h.ɵfac}),(0,i.__decorate)([o.LO,(0,i.__metadata)("design:type",Object)],h.prototype,"twoFactorAuthenticatorStatusInfo",void 0),(0,i.__decorate)([o.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],h.prototype,"setTwoFactorAuthenticatorStatusInfo",null),(0,i.__decorate)([o.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],h.prototype,"status",null)},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:()=>r});var i=n(80566);const r={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"},twoFactorAuthenticator:{messageOverlay:!1,setup:{qrCode:{foregroundColor:i.dw,backgroundColor:i.F2}},download:{qrCode:{foregroundColor:i.dw,backgroundColor:i.F2}},disable:{disable2FAStyleClass:"tertiary inverse"}},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"},twoFactorAuthenticator:{setup:{qrCode:{foregroundColor:i.Pg,backgroundColor:i.hI}},download:{qrCode:{foregroundColor:i.Pg,backgroundColor:i.hI}},disable:{disable2FAStyleClass:"tertiary"}}},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"},twoFactorAuthenticator:{setup:{qrCode:{foregroundColor:i.Pg,backgroundColor:i.hI}},download:{qrCode:{foregroundColor:i.Pg,backgroundColor:i.hI}},disable:{disable2FAStyleClass:"tertiary"}}},slotscom:{header:{navmenu:{show:!1}},bannerWelcome:{brandLogo:"/content/images/logo_welcome.png"}},bodogio:{header:{badge:{class:""}}}}},80566:(e,t,n)=>{"use strict";n.d(t,{F2:()=>a,Pg:()=>i,dw:()=>o,hI:()=>r});const i="#000000ff",r="#ffffff00",o="#ffffffff",a="#000000ff"},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:()=>l});var i=n(50536),r=n(61556),o=n(57685),a=n(41306),s=n(26626),c=n(57826);let l=(()=>{class e{static forRoot(){return{ngModule:e}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=c["ɵɵdefineNgModule"]({type:e}),e.ɵinj=c["ɵɵdefineInjector"]({providers:[s.j],imports:[[r.d,i.j,o.z.forBrowser(),a.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:()=>f});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 u=n(48108),d=n(53272),h=n(19065);function p(e,t,n,i){return new o.s(e,t,n,i)}let f=(()=>{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:p,deps:[r.HttpClient,u.T,h.x,[new i.Optional,s.f]]}],imports:[[a.j,l,d.b]]}),e})()},12596:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var i=n(23550),r=n(4309),o=n(42998),a=n(48108),s=n(59948),c=n(57826),l=n(19065);let u=(()=>{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})()},25249:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var i=n(23550),r=n(42998),o=n(4309),a=n(57826);let s=(()=>{class e{constructor(e){this.httpClient=e,this.TWO_FACTOR_AUTH_STATUS_URL="/services/profile/v1/profiles/<sessionId>/two-factor/status"}getTwoFactorAuthStatus(){return this.httpClient.get(this.TWO_FACTOR_AUTH_STATUS_URL,{withCredentials:!0}).pipe((0,r.map)((e=>e)),(0,r.publishReplay)(1),(0,r.refCount)(),(0,r.catchError)((e=>(0,o.throwError)(e)))).pipe((0,r.map)((e=>e)))}}return e.ɵfac=function(t){return new(t||e)(a["ɵɵinject"](i.HttpClient))},e.ɵprov=a["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},45592:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var i=(()=>(function(e){e.PENDING="PENDING",e.ENABLED="ENABLED",e.DISABLED="DISABLED",e.DISCARDED="DISCARDED",e.UNKNOWN=""}(i||(i={})),i))()},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:()=>u});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 u=(()=>{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(98841),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.bxPopover=!1,this.showWhen="click"}handleClickEvent(e){if(this.popover||this.bxPopover){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||this.bxPopover?"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.bxPopover){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",bxPopover:"bxPopover",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:()=>f});var i=n(6716),r=n(70570),o=n(40475),a=n(10790),s=n(6856),c=n(84704),l=n(82009),u=n(57826);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({imports:[[s.CommonModule,c.a,o.FormsModule,l.D]]}),e})();var h=n(39211),p=n(75826);let f=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e}),e.ɵinj=u["ɵɵdefineInjector"]({providers:[p.t],imports:[[i.r1,r.k],i.r1,r.k,a.v,d,h.N,o.ReactiveFormsModule]}),e})()},20843:(e,t,n)=>{"use strict";n.d(t,{J:()=>R});var i=n(6856),r=n(57826),o=n(40475),a=n(4309),s=n(42998),c=n(81899),l=n(43959),u=n(76355),d=n(86014);const h=["list"];function p(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 f(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 m=function(e){return["selected",e]};function g(e,t){if(1&e&&r["ɵɵelement"](0,"i",15),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](1,m,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 S=function(e){return[e]};function C(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,S,e.dropdownOpened?e.arrowUpIconClass:e.arrowDownIconClass))}}const x=function(e,t){return["icon",e,t]};function I(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 w(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 E(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 T=function(e){return{active:e}};function P(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,I,1,4,"i",3),r["ɵɵtext"](3,"\n                    "),r["ɵɵtemplate"](4,w,2,2,"a",18),r["ɵɵtext"](5,"\n                    "),r["ɵɵtemplate"](6,E,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,T,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 A=function(e,t){return{tag:"textContent",label:e,values:t}};function _(e,t){if(1&e&&r["ɵɵelement"](0,"p",20),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction2"](1,A,e.errorMessage,e.errorValues))}}function M(e,t){1&e&&r["ɵɵelement"](0,"div",21)}const k=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}},O=function(e,t){return{"active-field":e,"active-button":t}},N=function(e){return{"scrollable-area":e}};let R=(()=>{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"](h,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,p,1,7,"input",1),r["ɵɵtext"](4,"\n            "),r["ɵɵtemplate"](5,f,1,4,"input",2),r["ɵɵtext"](6,"\n            "),r["ɵɵtemplate"](7,g,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,C,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,P,8,7,"li",10),r["ɵɵtext"](24,"\n            "),r["ɵɵelementEnd"](),r["ɵɵtext"](25,"\n            "),r["ɵɵtemplate"](26,_,1,4,"p",11),r["ɵɵtext"](27,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](28,"\n        "),r["ɵɵtemplate"](29,M,1,0,"div",12),r["ɵɵtext"](30,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction8"](17,k,!("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,O,!("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,N,"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,u.w,d.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:()=>R});var i=n(34553),r=n(57826),o=n(18548),a=n(4309),s=n(6856),c=n(76355),l=n(86014);const u=function(e){return{tag:"textContent",label:e}};function d(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",1),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](2,u,e.taphint)),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.message)}}let h=(()=>{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=r["ɵɵ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&&(r["ɵɵtext"](0,"\n    "),r["ɵɵtemplate"](1,d,2,4,"p",0),r["ɵɵtext"](2,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.display))},directives:[s.NgIf,l.P],encapsulation:2}),e})();var p=n(81899);const f=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&&(r["ɵɵelementStart"](0,"div",2),r["ɵɵtext"](1,"\n            "),r["ɵɵelement"](2,"i",3),r["ɵɵtext"](3,"\n            "),r["ɵɵelement"](4,"span",4),r["ɵɵtext"](5,"\n        "),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵadvance"](2),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction3"](2,f,!1===e.valid,!0===e.valid,void 0===e.valid)),r["ɵɵadvance"](2),r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](6,m,e.translate))}}function v(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div"),r["ɵɵtext"](1,"\n        "),r["ɵɵtemplate"](2,g,6,8,"div",1),r["ɵɵtext"](3,"\n    "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.rulesChecker)}}let b=(()=>{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)(r["ɵɵdirectiveInject"](p.u))},e.ɵcmp=r["ɵɵ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&&(r["ɵɵtext"](0,"\n    "),r["ɵɵtemplate"](1,v,4,1,"div",0),r["ɵɵtext"](2,"\n    ")),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.display))},directives:[s.NgIf,s.NgForOf,s.NgClass,l.P],encapsulation:2}),e})();const y=function(e){return{"icon-show-password":e}};function S(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"button",10),r["ɵɵlistener"]("click",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().onClickPasswordEye()})),r["ɵɵtext"](1,"Show/Hide\n                "),r["ɵɵelement"](2,"i",11),r["ɵɵtext"](3,"\n            "),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](1,y,e.showPassword))}}const C=function(e){return{"active-field":e}};function x(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"button",12),r["ɵɵlistener"]("click",(function(){return r["ɵɵrestoreView"](e),r["ɵɵnextContext"]().onClickCopyPasteButton()})),r["ɵɵtext"](1),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](2,C,e.isActive())),r["ɵɵadvance"](1),r["ɵɵtextInterpolate1"]("",e.inputButtonText,"\n            ")}}function I(e,t){if(1&e&&r["ɵɵelement"](0,"i",13),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass","valid"===e.state?"icon icon-checked status":"icon icon-error status")}}const w=function(e){return{tag:"textContent",label:e}};function E(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",14),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](2,w,e.hint)),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.hint)}}function T(e,t){if(1&e&&(r["ɵɵelementStart"](0,"bx-tap-hint",15),r["ɵɵtext"](1,"\n            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("message",e.tapHint)("inputState",e.inputState)("onEvent",e.eventSubject)}}function P(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div"),r["ɵɵtext"](1,"\n                "),r["ɵɵelementStart"](2,"bx-rules-checker",16),r["ɵɵtext"](3,"\n                "),r["ɵɵelementEnd"](),r["ɵɵtext"](4,"\n            "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](2),r["ɵɵproperty"]("rulesChecker",e.rulesChecker)("onEvent",e.eventSubject)("inputState",e.inputState)}}const A=function(e,t){return{tag:"textContent",label:e,values:t}};function _(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",18),r["ɵɵtext"](1,"\n                "),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction2"](1,A,e.errorMessage,e.errorVars))}}function M(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                "),r["ɵɵtemplate"](1,_,2,4,"p",17),r["ɵɵtext"](2,"\n            ")),2&e){const e=r["ɵɵnextContext"](),t=r["ɵɵreference"](23);r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.errorMessage)("ngIfElse",t)}}function k(e,t){if(1&e&&r["ɵɵelement"](0,"p",20),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction1"](1,w,e.info))}}function O(e,t){if(1&e&&(r["ɵɵtext"](0,"\n                "),r["ɵɵtemplate"](1,k,1,3,"p",19),r["ɵɵtext"](2,"\n            ")),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.info)}}const N=["*"];let R=(()=>{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.isPasswordType=!1,this.isCopyPasteButtonType=!1,this.inputButtonText="",this.inputButtonFunction="",this.showPassword=!1,this.eventSubject=new a.ReplaySubject,this.inputState={}}onDocumentClick(){this.isPasswordType&&this.toPassword()}ngAfterContentInit(){this.inputField.type="passwordEye"===this.inputField.visualType?"password":this.inputField.visualType,this.isPasswordType="password"===this.inputField.type,this.isCopyPasteButtonType="copyPasteButton"===this.inputField.type,this.inputButtonText=this.inputField.inputButtonText,this.inputButtonFunction=this.inputField.inputButtonFunction,this.setStyles(),this.isPasswordType&&(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())}onClickCopyPasteButton(){var e=this;return(0,i.Z)((function*(){if("copy"==e.inputButtonFunction)e.copyToClipboard(e.inputField.getInputValue());else if("paste"==e.inputButtonFunction){const e=yield navigator.clipboard.readText();document.dispatchEvent(new CustomEvent("pasteButtonEvent",{detail:e}))}e.setStyles()}))()}copyToClipboard(e){const t=document.createElement("input");this.selectKey(t,e),document.execCommand("copy"),t.remove()}selectKey(e,t){document.body.appendChild(e),e.value=t,e.select()}toggleInputType(){"text"==this.inputField.type?this.toPassword():this.toText()}toPassword(){this.inputField.type="password",this.showPassword=!1}toText(){this.inputField.type="text",this.showPassword=!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.isPasswordType&&(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)(r["ɵɵdirectiveInject"](r.ChangeDetectorRef),r["ɵɵdirectiveInject"](r.ElementRef))},e.ɵcmp=r["ɵɵdefineComponent"]({type:e,selectors:[["bx-input-field-container"]],contentQueries:function(e,t,n){if(1&e&&r["ɵɵcontentQuery"](n,o.u,7),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.inputField=e.first)}},hostBindings:function(e,t){1&e&&r["ɵɵlistener"]("touchstart",(function(){return t.onDocumentClick()}),!1,r["ɵɵ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:[r["ɵɵNgOnChangesFeature"]],ngContentSelectors:N,decls:26,vars:14,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"],["type","button","role","button","class","custom-cta tertiary cta-small input-copy-paste-button",3,"ngClass","bxTranslate","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"],["type","button","role","button",1,"custom-cta","tertiary","cta-small","input-copy-paste-button",3,"ngClass","bxTranslate","click"],[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&&(r["ɵɵprojectionDef"](),r["ɵɵtext"](0,"\n        "),r["ɵɵelementStart"](1,"div",0),r["ɵɵlistener"]("touchstart",(function(e){return t.cancelBubble(e)})),r["ɵɵtext"](2,"\n            "),r["ɵɵprojection"](3),r["ɵɵtext"](4,"\n            "),r["ɵɵelement"](5,"label",1),r["ɵɵtext"](6,"\n\n            "),r["ɵɵtemplate"](7,S,4,3,"button",2),r["ɵɵtext"](8,"\n\n            "),r["ɵɵtemplate"](9,x,2,4,"button",3),r["ɵɵtext"](10,"\n\n            "),r["ɵɵtemplate"](11,I,1,1,"i",4),r["ɵɵtext"](12,"\n\n            "),r["ɵɵtemplate"](13,E,2,4,"p",5),r["ɵɵtext"](14,"\n\n            "),r["ɵɵtemplate"](15,T,2,3,"bx-tap-hint",6),r["ɵɵtext"](16,"\n\n            "),r["ɵɵtemplate"](17,P,5,3,"div",7),r["ɵɵtext"](18,"\n\n            "),r["ɵɵtemplate"](19,M,3,2,"ng-template",null,8,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](21,"\n\n            "),r["ɵɵtemplate"](22,O,3,1,"ng-template",null,9,r["ɵɵtemplateRefExtractor"]),r["ɵɵtext"](24,"\n        "),r["ɵɵelementEnd"](),r["ɵɵtext"](25,"\n    ")),2&e){const e=r["ɵɵreference"](20);r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",t.inputClass),r["ɵɵadvance"](4),r["ɵɵproperty"]("for",t.forLabelTag)("ngClass",r["ɵɵpureFunction1"](12,C,t.isActiveLabel()))("bxRequiredField",t.label)("mandatory",t.required),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.isPasswordType),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.isCopyPasteButtonType),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.isEnabledInputIconStatus()&&("invalid"===t.state||"valid"===t.state)),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.hint),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.tapHint),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.rulesChecker&&t.rulesChecker.length)("ngIfElse",e)}},directives:[s.NgClass,c.w,s.NgIf,l.P,h,b],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.inputButtonText="",this.inputButtonFunction="",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",inputButtonText:"inputButtonText",inputButtonFunction:"inputButtonFunction"},outputs:{onBlurEmitter:"onBlurEmitter",onFocusedEmitter:"onFocusedEmitter"}}),e})()},78418:(e,t,n)=>{"use strict";n.d(t,{r:()=>u});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 u=(()=>{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:()=>S});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 u(e,t){if(1&e&&i["ɵɵelement"](0,"i",9),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("bxTooltip",e.tooltipText)}}function d(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,u,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 h=function(e){return{"has-text":e}},p=function(e){return{"active-field":e}};function f(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,h,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,p,r.inputs[n]&&""!=r.inputs[n]))}}const m=function(e,t){return{"icon-hide-password":e,"icon-show-password":t}};function g(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,m,!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 S=(()=>{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,d,7,2,"div",1),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"fieldset",2),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,f,7,11,"div",3),i["ɵɵtext"](8,"\n                "),i["ɵɵtemplate"](9,g,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})()},10396:(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(84704),n(6856),n(57826),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:()=>m});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 u(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 d(e,t){1&e&&i["ɵɵelement"](0,"div",11)}const h=function(e){return["custom-notification",e]};function p(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,u,10,6,"ng-container",4),i["ɵɵtext"](11,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n            "),i["ɵɵtemplate"](13,d,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,h,t.notification.type)),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngIf",0==e.children.length),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.overlay)}}const f=["*"];let m=(()=>{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:f,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,p,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:()=>u});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 u=(()=>{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:()=>f});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 u=function(e){return["icon",e,"bx-icon"]};function d(e,t){if(1&e&&i["ɵɵelement"](0,"i",0),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](1,u,"icon-"+e.notification.type))}}function h(e,t){1&e&&i["ɵɵelement"](0,"div",9)}const p=function(e,t){return["custom-notification",e,t]};let f=(()=>{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,d,1,3,"i",4),i["ɵɵtext"](11,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](12,"\n        "),i["ɵɵtemplate"](13,h,1,0,"div",5),i["ɵɵtext"](14,"\n      ")),2&e){const e=i["ɵɵreference"](6);i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](6,p,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:()=>d,t:()=>p});var i=n(6856),r=n(57826),o=n(32711),a=n(4309),s=n(55640),c=n(35294),l=n(4893),u=n(39336);const d="avoidNotification",h="notificationDisplayedCount";let p=(()=>{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(h,"0"):this.storageService.remove(h)}incrementDisplayCount(e){if(e.displayCountable){const e=this.getNotificationDisplayCount()+1;this.storageService.set(h,`${e}`)}}getNotificationDisplayCount(){return+this.storageService.get(h)}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"](u._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:()=>m});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 u(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 d(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 h(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 p(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 f=function(e){return["notification-popup",e]};let m=(()=>{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,u,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,d,2,1,"h2",5),i["ɵɵtext"](12,"\n                    "),i["ɵɵtemplate"](13,h,2,1,"div",6),i["ɵɵtext"](14,"\n                    "),i["ɵɵtemplate"](15,p,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,f,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:()=>d});var i=n(52723),r=n(6856),o=n(8566),a=n(81994),s=n(84704),c=n(9359),l=n(87012),u=n(57826);let d=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e,bootstrap:[a.U,l.Q]}),e.ɵinj=u["ɵɵ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:()=>u,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 u=(()=>{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),u=n(86014);function d(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 h(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 p(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 f(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 m=function(e){return{hidden:e}};function g(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,m,e.isClaimed||e.isFailed)),i["ɵɵadvance"](1),i["ɵɵtextInterpolate1"]("",e.options.label,"\n                        "),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](6,m,!e.isClaimed)),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](8,m,!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,d,1,1,"img",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,h,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,p,2,1,"h2",5),i["ɵɵtext"](12,"\n                    "),i["ɵɵtemplate"](13,f,2,1,"div",6),i["ɵɵtext"](14,"\n                    "),i["ɵɵtemplate"](15,g,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,u.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:()=>u});var i=n(57826),r=n(73753),o=n(65340),a=n(81899),s=n(34581),c=n(6856);const l=["*"];let u=(()=>{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:()=>l});var i=n(6856),r=n(57826),o=n(93996),a=n(22291),s=n(65340),c=n(22646);let l=(()=>{class e{static forRoot(){return{ngModule:e,providers:[s.v]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=r["ɵɵdefineNgModule"]({type:e}),e.ɵinj=r["ɵɵdefineInjector"]({providers:[c.B],imports:[[i.CommonModule,o.M,a.$Q]]}),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")},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:()=>h});var i=n(57826),r=n(6856),o=n(90441),a=n(56614),s=n(55640),c=n(93996),l=n(30173),u=n(41306);const d=[{provide:o.X,useFactory:function(e,t,n){return new o.X(e,t,n)},deps:[s.z,l.U,i.PLATFORM_ID]}];let h=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...d]}}}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,u.I]]}),e})()},90441:(e,t,n)=>{"use strict";n.d(t,{X:()=>u,u:()=>c});var i=n(57826),r=n(6856),o=n(4309),a=n(55640),s=n(30173);const c="e30=",l="existingBlackBox";let u=(()=>{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 u=this._document.getElementById(this._iFrameId);u&&u.remove(),u=this._document.createElement("iframe"),u.setAttribute("id",a),u.setAttribute("src",l),u.setAttribute("frameBorder","0"),u.setAttribute("width","0%"),u.setAttribute("height","0%"),u.setAttribute("style","width:0%;height:0%;position:absolute;top:0;left:0;"),u.onload=()=>{t.next({})},this._document.getElementsByTagName("body")[0].appendChild(u)}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),u=n(38129),d=n(71835),h=n(33225),p=n(30346),f=n(41759);const m=[{provide:p.C,useValue:{name:"bxAdminCalendar",validator:function(){return e=>{if(r.Validators.required(e))return null;let t=(0,f.Z)(+e.value),n=(0,f.Z)().utc();return t.isValid()&&n.isValid()&&!t.isAfter(n)?{notInThePast:!0}:null}}},multi:!0},{provide:p.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:p.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:p.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:p.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:p.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:p.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:p.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:p.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:p.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:p.C,useValue:{name:"bxNoWhitespacesName",validator:function(e){return r.Validators.required(e)||0!==(e.value||"").trim().length?null:{required:!0}}},multi:!0}];var g=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,h.S,d.l,...m],imports:[[r.FormsModule,r.ReactiveFormsModule,o.a,a.CommonModule,s.T,g.QA,c.D,v.B,l.a,u.z],r.FormsModule,r.ReactiveFormsModule,a.CommonModule]}),e})()},74195:(e,t,n)=>{"use strict";n.d(t,{E:()=>Ie});var i=n(33225),r=n(57826),o=n(80279),a=n(40475),s=n(81207),c=n(38026),l=n(61493),u=n(45965),d=n(6856),h=n(86014),p=n(90566),f=n(75619),m=n(18548),g=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(g.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 S=n(76660),C=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"](C.$),r["ɵɵdirectiveInject"](S.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 I=n(81899);let w=(()=>{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"](I.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 E=n(88856),T=n(6684),P=n(36803),A=n(96872),_=n(76355),M=n(20843);const k=function(e,t){return{tag:"textContent",label:e,values:t}};function O(e,t){if(1&e&&r["ɵɵelement"](0,"p",4),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("bxTranslate",r["ɵɵpureFunction2"](1,k,e.errorMessage,e.errorVars))}}const N=function(e,t){return{"invalid-field":e,"corrected-field":t}},R=function(e){return{"active-field":e}};let L=(()=>{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,O,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,N,"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,R,t.innerValue||t.focused))("bxRequiredField",t.label)("mandatory",t.required),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.errorMessage))},directives:[d.NgClass,a.DefaultValueAccessor,a.NgControlStatus,a.NgModel,a.MaxLengthValidator,_.w,d.NgIf,h.P],encapsulation:2}),e})();var j=n(1890),D=n(98841);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 H=(()=>{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:[D.m7,a.NgControlStatus,a.NgModel,d.NgIf,d.NgClass,D.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})(),G=(()=>{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 Q=function(e,t){return{formGroup:e,arguments:t}};function J(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,Q,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)("inputButtonText",e.inputButtonText)("inputButtonFunction",e.inputButtonFunction)("autocomplete",e.autocomplete||""),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 ue(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 de(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 he(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 pe(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 fe(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 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-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 ge(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 Se(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,J,5,5,"ng-container",5),r["ɵɵtext"](15,"\n\n                    "),r["ɵɵtemplate"](16,Z,7,35,"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,ue,8,21,"ng-container",5),r["ɵɵtext"](25,"\n\n                    "),r["ɵɵtemplate"](26,de,8,13,"ng-container",5),r["ɵɵtext"](27,"\n\n                    "),r["ɵɵtemplate"](28,he,8,8,"ng-container",5),r["ɵɵtext"](29,"\n\n                    "),r["ɵɵtemplate"](30,pe,8,8,"ng-container",5),r["ɵɵtext"](31,"\n\n                    "),r["ɵɵtemplate"](32,fe,8,9,"ng-container",5),r["ɵɵtext"](33,"\n\n                    "),r["ɵɵtemplate"](34,me,8,9,"ng-container",5),r["ɵɵtext"](35,"\n\n                    "),r["ɵɵtemplate"](36,ge,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 Ce(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,Ce,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 Ie=(()=>{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"](u.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","inputButtonText","inputButtonFunction","autocomplete","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,Se,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,d.NgForOf,d.NgIf,d.NgSwitch,d.NgSwitchCase,d.NgTemplateOutlet,a.FormGroupName,e,a.FormArrayName,h.P,p.W,f.m,m.u,y,x,a.DefaultValueAccessor,w,E.hd,a.NgControlStatus,a.FormControlName,T.p,P.i,A.n,d.NgClass,a.CheckboxControlValueAccessor,_.w,a.RadioControlValueAccessor,M.J,a.RequiredValidator,L,j.b,H],pipes:[G,$],encapsulation:2}),e})()},8807:(e,t,n)=>{"use strict";n.d(t,{E:()=>g});var i=n(57826),r=n(12644),o=n(40475),a=n(6856),s=n(5608),c=n(88856),l=n(68698),u=n(82009),d=n(38129),h=n(84704),p=n(8566),f=n(69575),m=n(68574);let g=(()=>{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,h.a,a.CommonModule,l.T,c.QA,u.D,p.B,s.a,d.z,m.G,f.d],o.FormsModule,o.ReactiveFormsModule,a.CommonModule]}),e})()},84245:(e,t,n)=>{"use strict";n.d(t,{o:()=>d});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),u=n(57826);let d=(()=>{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&&"object"==typeof n?this.formDataTrim(n):n&&"string"==typeof n&&(e[t]=e[t].trim())}))}}return e.ɵfac=function(t){return new(t||e)(u["ɵɵinject"](i.FormBuilder),u["ɵɵinject"](l.S))},e.ɵprov=u["ɵɵ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,this.inputButtonText=e.inputButtonText,this.inputButtonFunction=e.inputButtonFunction,this.autocomplete=e.autocomplete,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:()=>m});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 u extends s.L{constructor(e){super(e),this.modelType="toggle"}}var d=n(81428);class h extends s.L{constructor(e){super(e),this.modelType="multi-select",this.options=e.options,this.config=e.config}}class p 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 f=n(57826);let m=(()=>{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 u(t)}parseTextarea(e){let t=this.parseFormFieldConfig(e);return new d.d(t)}parseMultiSelect(e){let t=this.parseFormFieldConfig(e);return t.config=e.config,t.options=e.options,new h(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 p(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=f["ɵɵ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),u=n(57826);class d{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}}d.ɵfac=function(e){return new(e||d)(u["ɵɵinject"](c.p),u["ɵɵinject"](l.J),u["ɵɵinject"](r.j),u["ɵɵinject"](o.X))},d.ɵprov=u["ɵɵdefineInjectable"]({token:d,factory:d.ɵfac,providedIn:"root"}),(0,i.__decorate)([s.LO,(0,i.__metadata)("design:type",Number)],d.prototype,"unreadMessages",void 0),(0,i.__decorate)([s.LO,(0,i.__metadata)("design:type",Number)],d.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)],d.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)],d.prototype,"subscribeToMessages",null),(0,i.__decorate)([s.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],d.prototype,"unreadCommunications",null);var h=n(6856);let p=(()=>{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=u["ɵɵdefinePipe"]({name:"bxCommunicationsCounterFormatter",type:e,pure:!0}),e})();function f(e,t){if(1&e&&(u["ɵɵelementStart"](0,"span",3),u["ɵɵtext"](1),u["ɵɵpipe"](2,"bxCommunicationsCounterFormatter"),u["ɵɵelementEnd"]()),2&e){const e=u["ɵɵnextContext"](2);u["ɵɵproperty"]("ngClass",e.backgroundStyle),u["ɵɵadvance"](1),u["ɵɵtextInterpolate"](u["ɵɵpipeBind1"](2,2,e.unreadCommunications))}}function m(e,t){1&e&&u["ɵɵelement"](0,"span",4)}function g(e,t){if(1&e&&(u["ɵɵelementContainerStart"](0),u["ɵɵtext"](1,"\n       "),u["ɵɵtemplate"](2,f,3,4,"span",1),u["ɵɵtext"](3,"\n       "),u["ɵɵtemplate"](4,m,1,0,"span",2),u["ɵɵtext"](5,"\n     "),u["ɵɵelementContainerEnd"]()),2&e){const e=u["ɵɵnextContext"]();u["ɵɵadvance"](2),u["ɵɵproperty"]("ngIf",e.unreadCommunications>0),u["ɵɵadvance"](2),u["ɵɵ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)(u["ɵɵdirectiveInject"](d))},e.ɵcmp=u["ɵɵ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&&(u["ɵɵtext"](0,"\n     "),u["ɵɵtemplate"](1,g,6,2,"ng-container",0),u["ɵɵtext"](2,"\n    ")),2&e&&(u["ɵɵadvance"](1),u["ɵɵproperty"]("mobxReaction",t.getUnreadCommunications.bind(t)))},directives:[s.Hn,h.NgIf,h.NgClass],pipes:[p],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),u=n(84860),d=n(30173),h=n(6856),p=n(65180),f=n(38473),m=n(86014),g=n(55183),v=n(62090),b=n(96940),y=n(45645);let S=(()=>{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 C(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 I(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 w(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,I,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 E=function(e){return{tag:"textContent",label:e}};function T(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,E,e.allChecked?"multiSelect.deselectAll":"multiSelect.selectAll"))}}const P=function(e){return{"select-all":e}};function A(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,w,7,1,"span",19),i["ɵɵtext"](13,"\n\n                    "),i["ɵɵtemplate"](14,T,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,P,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 _(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 M=function(e){return{"item-visited":e}},k=function(e){return{"bx-unacknowledged":e}};function O(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li"),i["ɵɵtext"](1,"\n                            "),i["ɵɵtemplate"](2,_,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,M,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,k,!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 N(e,t){if(1&e&&(i["ɵɵelementStart"](0,"ul",24),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,O,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 R(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,E,e.deleteButtonText))}}function L(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",35),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,R,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 j=function(e,t){return{"bx-hidden":e,"resize-list-body":t}},D=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,A,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,N,4,1,"ul",9),i["ɵɵtext"](10,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n\n                "),i["ɵɵtemplate"](12,L,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,j,t.communicationSelected,t.editMode)),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",t.communicationList.length>0),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction3"](9,D,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(u.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"](d.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,C,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:[h.NgClass,h.NgIf,p.E,f.I,m.P,h.NgForOf],pipes:[g.a,v.s,b.d,y.G,S],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:()=>d});var i=n(42998),r=n(53801),o=n(36849),a=n(48083),s=n(94708),c=n(22715),l=n(57826),u=n(20718);let d=(()=>{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:[u.m],encapsulation:2}),e})()},3539:(e,t,n)=>{"use strict";n.d(t,{O:()=>A});var i=n(6856),r=n(84704),o=n(89493),a=n(94708),s=n(22715),c=n(51015),l=n(14969),u=n(48083),d=n(73502),h=n(58892),p=n(34207),f=n(72558),m=n(8566),g=n(83521),v=n(69703),b=n(25858),y=n(42356),S=n(92753),C=n(94216),x=n(54634),I=n(21368),w=n(57826);let E=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=w["ɵɵdefineNgModule"]({type:e,bootstrap:[x.A]}),e.ɵinj=w["ɵɵdefineInjector"]({providers:[I.q],imports:[[r.a,i.CommonModule]]}),e})();var T=n(79346),P=n(93996);let A=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=w["ɵɵdefineNgModule"]({type:e,bootstrap:[c.O,l.Z]}),e.ɵinj=w["ɵɵdefineInjector"]({providers:[u.j,v.j,a.v,s.N,b.p],imports:[[i.CommonModule,r.a,d.D,o.E,h.I,p.$,f.PQ,m.B,g.U,y.M,S.v,C.U,E,T.C,P.M]]}),e})()},94708:(e,t,n)=>{"use strict";n.d(t,{v:()=>p});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 u{constructor(e){this.numberOfMessages=e}}var d=n(30063),h=n(57826);let p=(()=>{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 u(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)(h["ɵɵinject"](i.HttpClient),h["ɵɵinject"](d.J))},e.ɵprov=h["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})()},14969:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(20380),r=n(1776),o=n(32711),a=n(48083),s=n(42998),c=n(57826),l=n(20718);let u=(()=>{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:()=>m});var i=n(57106),r=n(57826),o=n(6856),a=n(86014),s=n(62090),c=n(55183),l=n(96940),u=n(45645);function d(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 h(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 p(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",5),r["ɵɵtext"](1,"\n                "),r["ɵɵtemplate"](2,d,6,4,"div",6),r["ɵɵtext"](3,"\n                "),r["ɵɵtemplate"](4,h,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 f=function(e){return[e]};let m=(()=>{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,p,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,f,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,u.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:()=>p});var i=n(64762),r=n(35294),o=n(84781),a=n(32711),s=n(91184),c=n(4309),l=n(42998),u=n(65553),d=n(33262),h=n(57826);class p 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()}))}}p.ɵfac=function(e){return new(e||p)(h["ɵɵinject"](d.T),h["ɵɵinject"](r.X),h["ɵɵinject"](u.w))},p.ɵprov=h["ɵɵdefineInjectable"]({token:p,factory:p.ɵfac}),(0,i.__decorate)([s.LO,(0,i.__metadata)("design:type",Array)],p.prototype,"notifs",void 0),(0,i.__decorate)([s.Fl,(0,i.__metadata)("design:type",Array),(0,i.__metadata)("design:paramtypes",[])],p.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)],p.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)],p.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)],p.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)],p.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)],p.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)],p.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)],p.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)],p.prototype,"updateNotification",null)},42356:(e,t,n)=>{"use strict";n.d(t,{M:()=>u});var i=n(91691),r=n(1776),o=n(65553),a=n(33262),s=n(25858),c=n(94216),l=n(57826);let u=(()=>{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:()=>u,WJ:()=>h,au:()=>s,mH:()=>l,pD:()=>d});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 p((()=>e.tiersInfo[e.nextTierId]))}function l(e){return p((()=>{let t=function(e){return p((()=>e.tiersInfo[e.currentTierId]))}(e);return e.excluded?void 0:t.colour}))}function u(e){return p((()=>{let t=function(e){return p((()=>e.tiersInfo[e.previousTierId]))}(e);return e.excluded?void 0:t.colour}))}function d(e){return p((()=>{let t=c(e);return e.excluded?void 0:t.colour}))}function h(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 p(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:()=>f});var i=n(64762),r=n(41931),o=n(35294),a=(n(89309),n(84781)),s=n(32711),c=n(91184),l=n(4309),u=n(84825);class d{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,b,y,S,C,x,I,w,E,T,P){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=u,this.currencyCode=d,this.currentTierId=h,this.currentThreshold=p,this.nextTierId=f,this.nextThreshold=m,this.previousTierId=g,this.currentTierIndex=v,this.numTotalTiers=b,this.link=y,this.lastTierUpgradeDate=S,this.tiersInfo=C,this.limitReached=x,this.limitExpirationDate=I,this.playerSegment=w,this.pokerPointsRatio=E,this.minRedeemableAmount=T,this.maxRedeemableAmount=P}}var h=n(74362),p=n(57826);class f 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,u.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}}f.ɵfac=function(e){return new(e||f)(p["ɵɵinject"](h.q),p["ɵɵinject"](o.X),p["ɵɵinject"](r.w))},f.ɵprov=p["ɵɵdefineInjectable"]({token:f,factory:f.ɵfac}),(0,i.__decorate)([c.LO,(0,i.__metadata)("design:type",d)],f.prototype,"playerDetails",void 0),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",d),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"updatedPlayerDetails",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"isVip",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"currentTierColor",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"currentTierName",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"currentTierId",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"playerLoyaltyInfoAvailable",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"redemptionPoints",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"formattedRedemptionPoints",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"formattedRedemptionAmount",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"programRewardName",null),(0,i.__decorate)([c.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"pokerPointsRatio",null),(0,i.__decorate)([c.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[d]),(0,i.__metadata)("design:returntype",void 0)],f.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:()=>g});var i=n(64762),r=n(57826),o=n(45965),a=n(84860),s=n(35294),c=n(32711),l=n(91184),u=n(4309),d=n(20151),h=n(92947),p=n(84781),f=n(42998),m=n(6856);class g extends p.d{constructor(e,t,n,i){super(),this.appState=e,this.siteConfigService=t,this.profileService=n,this.platformId=i,this.profileStatus=d.e.UNKNOWN,this.isDocumentVerificationEnabled=!1,this.setStatusFromResponse=e=>{e&&(this.setStatus(d.e[e.status]),this.done())},this.setStatusOnError=()=>{this.setStatus(d.e.UNKNOWN),this.error()}}init(){(0,m.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(d.e.UNKNOWN)}))}initDocumentVerificationStatus(){this.profileService.getDocumentVerificationStatus().subscribe(this.setStatusFromResponse,this.setStatusOnError)}startPolling(){(0,u.interval)(g.POLLING_INTERVAL_MILLISECONDS).pipe((0,f.mergeMap)((()=>this.profileService.getDocumentVerificationStatus()))).subscribe(this.setStatusFromResponse,this.setStatusOnError)}get documentStatus(){return this.profileStatus}setStatus(e){this.profileStatus=e}}g.POLLING_INTERVAL_MILLISECONDS=3e4,g.ɵfac=function(e){return new(e||g)(r["ɵɵinject"](s.X),r["ɵɵinject"](o.r),r["ɵɵinject"](h.H),r["ɵɵinject"](r.PLATFORM_ID))},g.ɵprov=r["ɵɵdefineInjectable"]({token:g,factory:g.ɵfac}),(0,i.__decorate)([l.LO,(0,i.__metadata)("design:type",String)],g.prototype,"profileStatus",void 0),(0,i.__decorate)([l.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],g.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)],g.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:()=>f});var i=n(64762),r=n(23550),o=n(55640),a=n(45965),s=n(35294),c=n(32711),l=n(91184),u=n(4309),d=n(37521),h=n(72243),p=n(57826);class f{constructor(e,t,n,i){this.httpService=e,this.appState=t,this.siteConfigService=n,this.browserStorageService=i,this._phoneStatus=d.k.UNKNOWN,this.timesUpdated=0,this.dataLoaded$=new u.ReplaySubject(null)}init(){this.isPhoneValidationEnabled=this.siteConfigService.getSiteConfigProp(f.PHONE_VALIDATION_ENABLED),this.isFourStopPhoneValidationEnabled=this.siteConfigService.getSiteConfigProp(f.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=d.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(d.k.UNKNOWN),this.setPhoneTypeValid(void 0),this.incrementTimesUpdated(),this.dataLoaded$.next(!1)}))}getPhoneStatus(){return this.httpService.get(f.CHECK_PHONE_STATUS_PATH,{withCredentials:!0})}get phoneStatus(){return this._phoneStatus}setStatus(e){this._phoneStatus=e}setPhoneTypeValid(e){this.phoneTypeValid=e}incrementTimesUpdated(){this.timesUpdated++}updateToNotValidated(e,t){this.isPhoneValidationEnabled&&e.hasPhoneChanged()&&(this.setStatus(d.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(f.PHONE_STATUS_KEY);return this.validateProfilingStatus(h.y[n])}validateProfilingStatus(e){return!e||e!==h.y.INVALID}}f.CHECK_PHONE_STATUS_PATH="/services/profile/v1/phone-status/profile/<sessionId>",f.PHONE_VALIDATION_ENABLED="phoneValidationEnabled",f.PHONE_TYPE_VALIDATION_ENABLED="phoneTypeValidationEnabled",f.PHONE_STATUS_KEY="phoneStatus",f.ɵfac=function(e){return new(e||f)(p["ɵɵinject"](r.HttpClient),p["ɵɵinject"](s.X),p["ɵɵinject"](a.r),p["ɵɵinject"](o.z))},f.ɵprov=p["ɵɵdefineInjectable"]({token:f,factory:f.ɵfac}),(0,i.__decorate)([l.LO,(0,i.__metadata)("design:type",String)],f.prototype,"_phoneStatus",void 0),(0,i.__decorate)([l.LO,(0,i.__metadata)("design:type",Boolean)],f.prototype,"phoneTypeValid",void 0),(0,i.__decorate)([l.LO,(0,i.__metadata)("design:type",Number)],f.prototype,"timesUpdated",void 0),(0,i.__decorate)([l.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],f.prototype,"phoneStatus",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),(0,i.__decorate)([l.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Boolean]),(0,i.__metadata)("design:returntype",void 0)],f.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)],f.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:()=>p,Yc:()=>f});var i=n(92116),r=n(23550),o=n(55640),a=n(48108),s=n(45965),c=n(4309),l=n(42998),u=n(10599),d=n(18207),h=n(57826);let p=(()=>{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 u.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,d._)(e))))}getRegistrationEvent(){return this.registrationEvent$}publishRegistrationEvent(e){this.registrationEvent$.next(e)}sendDuplicatedEmailEvent(){this.deferredEvent.next(new m)}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)(h["ɵɵinject"](r.HttpClient),h["ɵɵinject"](a.T),h["ɵɵinject"](o.z),h["ɵɵinject"](s.r))},e.ɵprov=h["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class f{constructor(e,t){this.sessionId=e,this.postCFUrl=t}}class m{}},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:()=>p});var i=n(84704),r=n(36873),o=n(40475),a=n(39211),s=n(50536),c=n(8807),l=n(53612),u=n(80493),d=n(78357),h=n(57826);let p=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=h["ɵɵdefineNgModule"]({type:e}),e.ɵinj=h["ɵɵdefineInjector"]({providers:[u.a],imports:[[c.E,i.a,o.ReactiveFormsModule,r.U8,a.N,d.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",verificationMethod:"NOT_APPLICABLE",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:()=>d});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 u=["-"];let d=(()=>{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=>u.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:()=>S});var i=n(6856),r=n(21807),o=n(79346),a=n(55640),s=n(28795),c=n(17443),l=n(23550),u=n(4309),d=n(42998);class h{constructor(e,t){this.playerGroup=e,this.lineGroup=t}}var p=n(57826);let f=(()=>{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,d.map)((e=>{let t=e.playerProfileGroup.description,n=e.lineDescription||e.playerProfileGroup.lineDescription;return new h(t,n)})),(0,d.catchError)((e=>404===e.status?(0,u.of)(new h):(0,u.throwError)(e))))}}return e.ɵfac=function(t){return new(t||e)(p["ɵɵinject"](l.HttpClient))},e.ɵprov=p["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var m=n(8807),g=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,d.map)((e=>new v(e[0].documentNumber,e[0].documentType))),(0,d.catchError)((e=>404===e.status?(0,u.of)(new v):(0,u.throwError)(e))))}}return e.ɵfac=function(t){return new(t||e)(p["ɵɵinject"](l.HttpClient))},e.ɵprov=p["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var y=n(52149);let S=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e}),e.ɵinj=p["ɵɵdefineInjector"]({providers:[s.B,a.z,r.h,f,g.f,b,y.l],imports:[[i.CommonModule,m.E,c.S,o.C],i.CommonModule]}),e})()},92947:(e,t,n)=>{"use strict";n.d(t,{H:()=>h});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))(),u=n(83330),d=n(57826);class h{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`${h.GET_PROFILE_INFO_URL}/${e}`}getUrl(e){return`${h.BASE_URL}/${e}`}getPatchSettingUrl(e){return`${h.PROFILE_PATCH_URL}/${e}`}getPlayerVerificationAccoutStatusUrl(e,t){return`${t&&"AGENT"===t?h.AGENT_ACCOUNT_STATUS_BASE_URL:h.PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL}/${e}/status`}getStatusUpdateUrl(e){return`${h.PROFILE_STATUS_UPDATE_URL}/${e}`}getAccountStatusByOperationUrl(e){return`/${h.PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL}/<sessionId>/operations/${e}/status`}getAccountDocumentVerificationStatus(e){let t=this.httpClient.get(h.documentVerificationStatusUrl(e),{params:{documentType:l[l.ID_DOCUMENT]}});return this.handleBackendResponse(t)}getDocumentVerificationStatus(){let e=this.httpClient.get(h.PLAYER_DOCUMENT_VERIFICATION_STATUS_BASE_URL,{params:{documentType:l[l.ID_DOCUMENT]}});return this.handleBackendResponse(e)}updateDocumentVerificationStatus(e,t){let n=this.httpClient.post(h.documentVerificationStatusUrl(e),t);return this.handleBackendResponse(n)}updateDocumentVerificationStatusToPending(){let e=this.httpClient.post(h.PLAYER_DOCUMENT_VERIFICATION_PENDING_UPDATE+"?documentType=ID_DOCUMENT",{});return this.handleBackendResponse(e)}getIdentityVerificationUrl(){let e=this.httpClient.get(h.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(h.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(h.PROFILE_PUT_URL,e,{withCredentials:!0,headers:new o.HttpHeaders({"X-MFA-OPERATION":"updateProfile"})})}updatePhoneNumber(e){return this.cleanProfileDetailsPlayer(),this.httpClient.patch(h.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===u.EE?(0,a.throwError)(u.EE):(0,a.throwError)("Internal Server Error")}patchUsername(e){return this.cleanProfileDetailsPlayer(),this.httpClient.put(h.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(h.SET_PIN_CODE_URL,{pinCode:e},{withCredentials:!0}).pipe((0,s.map)((()=>{this.pinCodeUpdated$.next()})))}isValidPinCode(e){return this.httpClient.post(h.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=`${h.PUBLIC_PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL}/${h.SESSION_ID_PLACEHOLDER}/verifications/verify`;return this.httpClient.put(n,{operation:"cryptoWithdrawal",verificationType:"PIN_CODE",verificationMethod:"NOT_APPLICABLE",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[h.CONFIG_SHOW_AGENT_SOURCE_KEY]&&"true"===e[h.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(`${h.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"))))}}h.SESSION_ID_PLACEHOLDER="<sessionId>",h.GET_PROFILE_INFO_URL="/api/v1/profile-info",h.GET_PROFILE_INFO_PLAYER=h.GET_PROFILE_INFO_URL+"/"+h.SESSION_ID_PLACEHOLDER,h.BASE_URL="/api/v1/profiles",h.PROFILE_PLAYER=h.BASE_URL+"/"+h.SESSION_ID_PLACEHOLDER,h.PROFILE_PUT_URL="/services/web/v1/profiles/"+h.SESSION_ID_PLACEHOLDER,h.PROFILE_PUT_USERNAME_URL=h.PROFILE_PUT_URL+"/username/",h.SET_PIN_CODE_URL=h.PROFILE_PLAYER+"/pin-code",h.VALID_PIN_CODE_URL=h.PROFILE_PLAYER+"/valid-pin-code",h.PROFILE_PATCH_URL="/services/profile/v1/profiles",h.PROFILE_STATUS_UPDATE_URL="/services/internal/v1/profiles",h.UPDATE_PHONE_NUMBER_URL=h.BASE_URL+"/"+h.SESSION_ID_PLACEHOLDER+"/update-phone-number",h.PLAYER_ACCOUNT_DOCUMENT_VERIFICATION_STATUS_BASE_URL="/services/profile/v1/document-verification-status/profile/",h.PLAYER_DOCUMENT_VERIFICATION_STATUS_BASE_URL="/api/v1/document-verification-status/profile/"+h.SESSION_ID_PLACEHOLDER,h.PLAYER_DOCUMENT_VERIFICATION_PENDING_UPDATE="/api/v1/document-verification-status/profile/"+h.SESSION_ID_PLACEHOLDER+"/pending",h.GET_DOCUMENT_VERIFICATION_URL="/services/profile-profiling/v1/document-verification/profile/"+h.SESSION_ID_PLACEHOLDER+"/document-verification-url",h.PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL="services/player-verification/v1/profiles",h.AGENT_ACCOUNT_STATUS_BASE_URL="services/agent-account/v1/profiles",h.PUBLIC_PLAYER_VERIFICATION_ACCOUNT_STATUS_BASE_URL="/services/player-verification/v1/profiles",h.GET_AGENT_PARENT_PROFILE_URL="services/agent-profile/v1/agent",h.CONFIG_SHOW_AGENT_SOURCE_KEY="cm.config.profile_details.show_agent_source",h.ɵfac=function(e){return new(e||h)(d["ɵɵinject"](o.HttpClient),d["ɵɵinject"](r.b),d["ɵɵinject"](i.mj))},h.ɵprov=d["ɵɵdefineInjectable"]({token:h,factory:h.ɵfac,providedIn:"root"})},17443:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var i=n(92947),r=n(57264),o=n(24171),a=n(40829),s=n(4309),c=n(42998),l=n(57826);let u=(()=>{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})(),d=(()=>{class e{static forRoot(){return{ngModule:e,providers:[i.H,o.A,a.O,u]}}}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:()=>m});var i=n(64762),r=n(49994),o=n(41931),a=n(35294),s=n(84781),c=n(13493),l=n(32711),u=n(91184),d=n(4309);class h{constructor(e="",t="",n="",i="",r="",o="",a=[],s={countryCode:""},c={language:"",currency:"",time_zone:""},l="",u="",d="",h=[],p="",f=!1,m=!0,g,v,b,y,S,C,x,I,w,E,T,P,A,_,M,k,O,N=""){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=u,this.birthdate=d,this.tags=h,this.createdAt=p,this.hasPinCode=f,this.allowUpdate=m,this.subscriptionChannelsEnabled=g,this.subscriptionChannels=v,this.accountStatus=b,this.referral=y,this.accountNumber=S,this.fraudStatus=C,this.sportsDetails=x,this.parent=I,this.privileges=w,this.requiredActions=E,this.cryptoSurvey=T,this.phonePrefix=P,this.hostedPlayerInfo=A,this.pokerPointsRatioEnabled=_,this.features=M,this.personaId=k,this.personaLinkedAccounts=O,this.acceptsGifts=N}}var p=n(92947),f=n(57826);class m 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 d.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 h)}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()}))}}m.ɵfac=function(e){return new(e||m)(f["ɵɵinject"](p.H),f["ɵɵinject"](r.i),f["ɵɵinject"](c.B),f["ɵɵinject"](a.X),f["ɵɵinject"](o.w))},m.ɵprov=f["ɵɵdefineInjectable"]({token:m,factory:m.ɵfac}),(0,i.__decorate)([u.LO,(0,i.__metadata)("design:type",h)],m.prototype,"profile",void 0),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"timezone",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"language",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"currency",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"currencySymbol",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Boolean),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"hasPinCode",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"playerName",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"countryCode",null),(0,i.__decorate)([u.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[h]),(0,i.__metadata)("design:returntype",void 0)],m.prototype,"setProfile",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Array),(0,i.__metadata)("design:paramtypes",[])],m.prototype,"personaLinkedAccounts",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",String),(0,i.__metadata)("design:paramtypes",[])],m.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,u){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=u}}},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:()=>d});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),u=n(32446);let d=(()=>{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,u.P]]}),e})()},59851:(e,t,n)=>{"use strict";n.d(t,{H3:()=>r,Px:()=>a,RC:()=>o,Uc:()=>u,WP:()=>s,Wq:()=>l,ft:()=>i,wF:()=>c});const i="",r="pin-code-update",o="account",a="cashier",s="mini/cashier",c="404",l="maintenance",u="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:()=>u});var i=n(73753),r=n(55640),o=n(4309),a=n(42998),s=n(59851),c=n(42312),l=n(57826);let u=(()=>{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:()=>h});var i=n(2470),r=n(23550),o=n(30173),a=n(45965),s=n(92947),c=n(4309),l=n(42998),u=n(57826);class d{constructor(e="",t=null,n=[],i,r){this.brand=e,this.profile=t,this.tags=n,this.tier=i,this.urlPrefix=r}}let h=(()=>{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 d(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)(u["ɵɵinject"](r.HttpClient),u["ɵɵinject"](o.U),u["ɵɵinject"](s.H),u["ɵɵinject"](a.r),u["ɵɵinject"](i.B))},e.ɵprov=u["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},23696:(e,t,n)=>{"use strict";n.d(t,{s:()=>d});var i=n(73753),r=n(45965),o=n(92947),a=n(616),s=n(4309),c=n(42998);const l="pin-code";var u=n(57826);let d=(()=>{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)(u["ɵɵinject"](o.H),u["ɵɵinject"](a.s),u["ɵɵinject"](i.Router),u["ɵɵinject"](r.r))},e.ɵprov=u["ɵɵ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:()=>M});var i=n(6856),r=n(57826),o=n(73753),a=n(94224),s=n(5095),c=n(37424),l=n(2470),u=n(64174),d=n(99604),h=n(55640),p=n(82846),f=n(36957),m=n(81899),g=n(41931),v=n(24144),b=n(45965),y=n(6969),S=n(39597),C=n(42312),x=n(47490),I=n(59851),w=n(30986),E=n(64041),T=n(30594),P=n(86761),A=n(74178),_=n(45592);let M=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,b,y,S,C,x,I){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=u,this.cookieService=d,this.windowService=h,this.reactiveChatService=p,this.firstTimeDepositorService=f,this.playerChatMetadataService=m,this.siteConfigService=g,this.discourseForumService=v,this.cashierCustomMessagesDataService=b,this.loginPaymentMethodsService=y,this.paymentProfileInfoDataService=S,this.twoFactorAuthenticatorService=C,this.twoFactorAuthenticatorStore=x,this.twoFactorAuthenticatorConfig=I}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),e instanceof o.NavigationStart&&this.isInvitation(e.url)&&this.setLastPage(E.ft,!1);const t=this.getDestination();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)})),this.enrolmentTwoFactorSubscription=this.twoFactorAuthenticatorService.enrolTwoFactorEvent.subscribe((e=>this.onEnrolTwoFactorAuthenticator(e))),this.enabledTwoFactorSubscription=this.twoFactorAuthenticatorService.enabledTwoFactorEvent.subscribe((e=>this.onEnabledTwoFactorAuthenticator(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}}getLastPageUrl(){return this.lastPageUrl.url}ngOnDestroy(){this.unsubscribeMethods()}isLoginOrRegistration(e){return e.startsWith(`/${E.ZE}`)||e.startsWith(`/${E.ts}`)||e.startsWith(`/${E.N6}`)||e.startsWith(`/${E.jU}`)}isInvitation(e){return e.startsWith(`/${E.N7}`)||e.startsWith(`/${E.sk}`)}buildUrlWithQueryParams(e){const t=this.router.parseUrl(e);return t.queryParams=this.lastPageQueryParams,delete t.queryParams.overlay,t.toString()}onLogin(){this.isBrandCrossWelcome(this.lastPageUrl&&this.lastPageUrl.url)&&this.setLastPage(E.ft,!1),this.navigateToLastPage(),this.countryCookieExists()?this.cookieService.get(e.PIN_CODE_COOKIE)?(this.lastPageUrl.url="/"+I.H3,this.reloadToLastPage()):this.checkWelcomeTwoFactorOverlay((()=>this.setLastPageToWelcomeTwoFactor()),(()=>this.reloadToLastPage())):this.cookieService.get(e.PIN_CODE_COOKIE)?this.navigateToPinCodeUpdate():this.checkWelcomeTwoFactorOverlay((()=>this.navigateToWelcomeTwoFactor()))}checkWelcomeTwoFactorOverlay(e,t){this.twoFactorAuthenticatorService.is2FAEnrolmentConditionsMet()&&_.M.PENDING===this.twoFactorAuthenticatorStore.status?e.apply(this):t&&t.apply(this)}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||`/${E.ft}`],{replaceUrl:!0,fragment:this.lastPageUrl.fragment})}onLogout(e){this.closeChatSession(),e.sessionExpired?this.router.navigate([`/${E.ft}`],{queryParams:{sessionExpired:!0}}):this.router.navigate([`/${E.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 w.aj||e instanceof w.N$)&&this.navigateToLastPage()}onActivatedAccount(e){e instanceof S.i&&(this.sessionService.session=e.sessionId,this.navigateToLastPage())}onEnrolTwoFactorAuthenticator(e){this.navigateToSetupTwoFactorAuthenticator()}onEnabledTwoFactorAuthenticator(e){this.navigateToEnabledTwoFactorAuthenticator()}isBrandCrossWelcome(e){let t=this.siteConfigService.getSiteConfigProp("invitationFlowUriSuffix");return e&&e.startsWith(t)}resolveFirstTimeDepositor(){this.firstTimeSubscription=this.firstTimeDepositorService.getFirstTimeDepositorAtLogin().subscribe((e=>{this.playerChatMetadataService.onFirstTimeDepositorChange(e)}),(e=>{this.emitPlayerChatEvent(e)}))}navigateToWelcomeTwoFactor(){if(this.twoFactorAuthenticatorConfig.messageOverlay){const t=this.getDestination();t?(this.storageService.set(e.TWO_FACTOR_AUTH_CLOSE_DESTINATION_URL_KEY,t),this.router.navigate([this.twoFactorAuthenticatorService.getUrlCleanPath(this.router.url)],{queryParams:{overlay:E.uz}})):this.router.navigate([this.lastPageUrl.url],{queryParams:{overlay:E.uz}})}else this.storageService.set(e.TWO_FACTOR_AUTH_CLOSE_DESTINATION_URL_KEY,this.lastPageUrl.url),this.router.navigateByUrl(`/${E.uz}`)}navigateToSetupTwoFactorAuthenticator(){this.twoFactorAuthenticatorConfig.messageOverlay?this.router.navigate([this.twoFactorAuthenticatorService.getUrlCleanPath(this.router.url)],{queryParams:{overlay:E.jh}}):(this.storageService.get(e.TWO_FACTOR_AUTH_CLOSE_DESTINATION_URL_KEY)||this.storageService.set(e.TWO_FACTOR_AUTH_CLOSE_DESTINATION_URL_KEY,this.lastPageUrl.url),this.router.navigate(["/"]).then((()=>this.router.navigateByUrl(`/${E.jh}`))))}navigateToEnabledTwoFactorAuthenticator(){this.twoFactorAuthenticatorConfig.messageOverlay?this.router.navigate([this.twoFactorAuthenticatorService.getUrlCleanPath(this.router.url)],{queryParams:{overlay:E.Kp}}):this.router.navigateByUrl(`/${E.Kp}`)}getDestination(){return this.route.snapshot.queryParams.destination?decodeURIComponent(this.route.snapshot.queryParams.destination):this.route.snapshot.queryParams.destination}setLastPageToWelcomeTwoFactor(){this.lastPageUrl.url=E.uz,this.reloadToLastPage()}navigateToPinCodeUpdate(){this.router.navigate([`/${I.H3}`])}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(),this.enrolmentTwoFactorSubscription&&this.enrolmentTwoFactorSubscription.unsubscribe(),this.enabledTwoFactorSubscription&&this.enabledTwoFactorSubscription.unsubscribe()}}return e.LAST_PAGE="lastpage",e.TWO_FACTOR_AUTH_CLOSE_DESTINATION_URL_KEY="twoFactorAuthCloseDestinationUrl",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"](S.e),r["ɵɵinject"](w.Kx),r["ɵɵinject"](u.m),r["ɵɵinject"](h.z),r["ɵɵinject"](f.T),r["ɵɵinject"](r.PLATFORM_ID),r["ɵɵinject"](p.G),r["ɵɵinject"](m.u),r["ɵɵinject"](v.R),r["ɵɵinject"](C.$),r["ɵɵinject"](g.w),r["ɵɵinject"](b.r),r["ɵɵinject"](d.p),r["ɵɵinject"](a.G),r["ɵɵinject"](x.W),r["ɵɵinject"](l.B),r["ɵɵinject"](T.R),r["ɵɵinject"](A.g),r["ɵɵinject"](P.sk))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},64041:(e,t,n)=>{"use strict";n.d(t,{Kp:()=>l,N6:()=>u,N7:()=>o,ZE:()=>r,ft:()=>i,jU:()=>h,jh:()=>c,sk:()=>d,ts:()=>a,uz:()=>s});const i="",r="login",o="invitation",a="join",s="two-factor-authenticator",c="two-factor-authenticator/setup",l="two-factor-authenticator/enabled",u="headless/login",d="headless/invitation",h="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:()=>u});var i=n(57826),r=n(6856),o=n(77247),a=n(81899),s=n(45965),c=n(80112);const l="overlay";let u=(()=>{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:()=>c}),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(80218),s=n(57826);let c=(()=>{class e{constructor(e,t,n){this.siteConfigService=e,this.cdnService=t,this.windowService=n}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){let t=`assets/css/${e.data.channel}-${this.getTheme()}-${n}.css`;return this.cdnService.getCdnUrlAjaxRequest(t)}}return""}getTheme(){return this.siteConfigService.getSiteConfigProp("theme")||"default"}}return e.ɵfac=function(t){return new(t||e)(s["ɵɵinject"](i.r),s["ɵɵinject"](a.U),s["ɵɵinject"](r.u,8))},e.ɵprov=s["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},50206:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});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 u=function(){return{label:"referAFriend.how_it_works",tag:"textContent"}};function d(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,u)))}let h=(()=>{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,d,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:()=>g});var i=n(64762),r=n(30173),o=n(12596),a=n(71710),s=n(81899),c=n(75330),l=n(3336),u=n(57826),d=n(6856),h=n(86014),p=n(3935);function f(e,t){1&e&&(u["ɵɵelementStart"](0,"figure",2),u["ɵɵtext"](1,"\n            "),u["ɵɵelement"](2,"i",3),u["ɵɵtext"](3,"\n            "),u["ɵɵelementStart"](4,"figcaption",4),u["ɵɵtext"](5,"raf.shareLinks.error"),u["ɵɵelementEnd"](),u["ɵɵtext"](6,"\n        "),u["ɵɵelementEnd"]())}function m(e,t){if(1&e){const e=u["ɵɵgetCurrentView"]();u["ɵɵelementStart"](0,"div",5),u["ɵɵtext"](1,"\n            "),u["ɵɵelementStart"](2,"p",6),u["ɵɵtext"](3,"raf.shareOn"),u["ɵɵelementEnd"](),u["ɵɵtext"](4,"\n            "),u["ɵɵelementStart"](5,"bx-share-buttons",7),u["ɵɵlistener"]("clickOnSharingMethod",(function(t){return u["ɵɵrestoreView"](e),u["ɵɵnextContext"]().share(t)})),u["ɵɵtext"](6,"\n            "),u["ɵɵelementEnd"](),u["ɵɵtext"](7,"\n        "),u["ɵɵelementEnd"]()}if(2&e){const e=u["ɵɵnextContext"]();u["ɵɵadvance"](5),u["ɵɵproperty"]("theme",e.theme)("shareLinks",e.shareLinks)("copyFullRow",e.copyFullRow)}}class g{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()))}}g.rafLinkCustomValue=()=>({1:"true"}),g.ɵfac=function(e){return new(e||g)(u["ɵɵdirectiveInject"](r.U),u["ɵɵdirectiveInject"](o.s),u["ɵɵdirectiveInject"](s.u),u["ɵɵdirectiveInject"](l.y))},g.ɵcmp=u["ɵɵdefineComponent"]({type:g,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&&(u["ɵɵtext"](0,"\n        "),u["ɵɵtemplate"](1,f,7,0,"figure",0),u["ɵɵtext"](2,"\n        "),u["ɵɵtemplate"](3,m,8,3,"div",1),u["ɵɵtext"](4,"\n    ")),2&e&&(u["ɵɵadvance"](1),u["ɵɵproperty"]("ngIf",!t.showShareButtons),u["ɵɵadvance"](2),u["ɵɵproperty"]("ngIf",t.showShareButtons))},directives:[d.NgIf,h.P,p.u],styles:[".share-on[_ngcontent-%COMP%] { font-size: 1.3em; padding-bottom: 5px; }"]}),(0,i.__decorate)([(0,c.ob)("RAF_CTA_Email_Click",!0,g.rafLinkCustomValue),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"sendEmail",null),(0,i.__decorate)([(0,c.ob)("RAF_CTA_Sms_Click",!0,g.rafLinkCustomValue),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],g.prototype,"sendSms",null),(0,i.__decorate)([(0,c.ob)("RAF_CTA_Sms_CopyLink",!0,g.rafLinkCustomValue),(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[]),(0,i.__metadata)("design:returntype",void 0)],g.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:()=>f});var i=n(6856),r=n(23056),o=n(50206),a=n(61733),s=n(80953),c=n(4869),l=n(84704),u=n(63576),d=n(73753),h=n(23475),p=n(57826);let f=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p["ɵɵdefineNgModule"]({type:e,bootstrap:[r.p,o.T]}),e.ɵinj=p["ɵɵdefineInjector"]({providers:[s.p,c.i,a.w],imports:[[i.CommonModule,l.a,u.Q,d.RouterModule,h.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:()=>u});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"),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"](2),i["ɵɵclassMapInterpolate1"]("table-row ",e.theme,"-cell"),i["ɵɵadvance"](6),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 u=(()=>{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,9,"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),u=n(45965),d=n(92947),h=n(57826),p=n(86014);let f=(()=>{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)(h["ɵɵdirectiveInject"](d.H),h["ɵɵdirectiveInject"](u.r))},e.ɵcmp=h["ɵɵ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&&(h["ɵɵtext"](0,"\n        "),h["ɵɵelementStart"](1,"div",0),h["ɵɵtext"](2,"\n            "),h["ɵɵelement"](3,"i",1),h["ɵɵtext"](4,"\n            "),h["ɵɵelementStart"](5,"p",2),h["ɵɵtext"](6,"validationCode.overlay.content.message.info.identityVerificationSubmitted"),h["ɵɵelementEnd"](),h["ɵɵtext"](7,"\n            "),h["ɵɵelementStart"](8,"p",3),h["ɵɵtext"](9,"validationCode.overlay.content.message.info.processCanTakeMinutes"),h["ɵɵelementEnd"](),h["ɵɵtext"](10,"\n        "),h["ɵɵelementEnd"](),h["ɵɵtext"](11,"\n    ")),2&e&&(h["ɵɵadvance"](3),h["ɵɵproperty"]("ngClass",t.getIconClass()))},directives:[i.NgClass,p.P],encapsulation:2}),e})(),m=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=h["ɵɵdefineNgModule"]({type:e}),e.ɵinj=h["ɵɵdefineInjector"]({imports:[[o.a,i.CommonModule,c.D,l.I,r.RouterModule.forChild([{path:"identity-verification/result",component:f}])]]}),e})();var g=n(54348);let v=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=h["ɵɵdefineNgModule"]({type:e}),e.ɵinj=h["ɵɵdefineInjector"]({imports:[[i.CommonModule,o.a,a.p,s.Z,r.RouterModule,g.J,m]]}),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}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:()=>g});var i=n(6856),r=n(73753),o=n(38960),a=n(4060),s=n(84704),c=n(91184),l=n(94768),u=n(80823),d=n(73076),h=n(26995),p=n(67616),f=n(40606),m=n(57826);let g=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=m["ɵɵdefineNgModule"]({type:e}),e.ɵinj=m["ɵɵdefineInjector"]({providers:[o.m,l.Y,u.n,d.s,h.l,p.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:()=>d});var i=n(58132),r=n(3150),o=n(23550),a=n(25695),s=n(40809),c=n(4309),l=n(42998),u=n(57826);class d{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(d.URL_BALANCES,{withCredentials:!0}).pipe((0,l.map)((e=>{this.balancesUpdates$.next(e)})))}initPolling(){(0,c.merge)((0,c.interval)(d.POLLING_INTERVAL_MILISECONDS),this.bonusListService.onActiveBonusChange.asObservable()).pipe((0,l.mergeMap)((()=>this.fetchBalance()))).subscribe((()=>{}))}}d.POLLING_INTERVAL_MILISECONDS=3e4,d.URL_BALANCES="/services/wallet-gateway/v1/profiles/"+i.Y.SESSION_ID_PLACEHOLDER+"/balances",d.ɵfac=function(e){return new(e||d)(u["ɵɵinject"](o.HttpClient),u["ɵɵinject"](r.u))},d.ɵprov=u["ɵɵdefineInjectable"]({token:d,factory:d.ɵ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),u=n(91184),d=n(25695),h=n(40809),p=n(4309),f=n(42998),m=n(85100),g=n(38960),v=n(26995),b=n(40644),y=n(80823);class S extends c.d{constructor(e,t,n,i,o,a){super(),this.service=e,this.oneworksService=t,this.matchpayService=n,this.stateStore=i,this.monetaryAmountService=o,this.platformId=a,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.getOneworksBalanceMap(!0),this.getMatchpayBalanceMap(!0)})),(0,p.merge)(this.service.getBalancesMap(),this.getOneworksBalanceMap(),this.getMatchpayBalanceMap()).subscribe((e=>{this.setBalances(e),this.done()}),(()=>{this.error()})))}getOneworksBalanceMap(e){return this.oneworksService.getBalance(e).pipe((0,f.map)((e=>h(d("type")([e]),[e]))))}getMatchpayBalanceMap(e){return this.matchpayService.getBalance(e).pipe((0,f.map)((e=>h(d("type")([e]),[e]))))}get playable(){return this.balances.get(b.s.PLAYABLE).amount}get withdrawable(){return this.balances.get(b.s.WITHDRAWABLE).amount}get bonus(){return this.balances.get(b.s.BONUS).amount}get locked(){return this.balances.get(b.s.LOCKED).amount}get unlocked(){return this.balances.get(b.s.UNLOCKED).amount}get pendingWithdrawal(){return this.balances.get(b.s.PENDING_WITHDRAWAL).amount}get total(){return this.balances.get(b.s.TOTAL)}get nonPlayableBonus(){return this.balances.get(b.s.NON_PLAYABLE_BONUS)}get lockedBalance(){return this.balances.get(b.s.LOCKED)}get unlockedBalance(){return this.balances.get(b.s.UNLOCKED)}get bonusBalance(){return this.balances.get(b.s.BONUS)}get playableBalance(){return this.balances.get(b.s.PLAYABLE)}get pendingWithdrawalBalance(){return this.balances.get(b.s.PENDING_WITHDRAWAL)}get playableWithExternalWallets(){let e=this.balances.get(b.s.PLAYABLE),t=this.balances.get(b.s.ONEWORKS);return e.currency?{amount:(e.amount||0)+(t.amount||0),currency:e.currency}:this.emptyBalance()}get totalWithExternalWallets(){let e=this.balances.get(b.s.TOTAL),t=this.balances.get(b.s.ONEWORKS);return e.currency?{amount:(e.amount||0)+(t.amount||0)-(this.nonPlayableBonus.amount||0),currency:e.currency}:this.emptyBalance()}get oneworks(){return this.balances.get(b.s.ONEWORKS)}get matchpay(){return this.balances.get(b.s.MATCHPAY)}get playableBalanceFormatter(){return this.getBalanceFormatter(b.s.PLAYABLE)}get playableCurrencyAmount(){return void 0===this.balances.get(b.s.PLAYABLE).amount?"":this.monetaryAmountService.format({amount:this.balances.get(b.s.PLAYABLE).amount})}get withdrawableBalanceFormatter(){return this.getBalanceFormatter(b.s.WITHDRAWABLE)}get bonusBalanceFormatter(){return this.getBalanceFormatter(b.s.BONUS)}get lockedBalanceFormatter(){return this.getBalanceFormatter(b.s.LOCKED)}get unlockedBalanceFormatter(){return this.getBalanceFormatter(b.s.UNLOCKED)}get pendingWithdrawalBalanceFormatter(){return this.getBalanceFormatter(b.s.PENDING_WITHDRAWAL)}get playableCasino(){return this.balances.get(b.s.PLAYABLE_CASINO)}get playableSports(){return this.balances.get(b.s.PLAYABLE_SPORTS)}get playablePoker(){return this.balances.get(b.s.PLAYABLE_POKER)}get playableHorses(){return this.balances.get(b.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 m.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(),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"](g.m),o["ɵɵinject"](y.n),o["ɵɵinject"](v.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)([u.LO,(0,i.__metadata)("design:type",l.vP)],S.prototype,"balances",void 0),(0,i.__decorate)([u.LO,(0,i.__metadata)("design:type",l.vP)],S.prototype,"products",void 0),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playable",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"withdrawable",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"bonus",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"locked",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"unlocked",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Number),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"pendingWithdrawal",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"total",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"nonPlayableBonus",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"lockedBalance",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"unlockedBalance",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"bonusBalance",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableBalance",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"pendingWithdrawalBalance",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableWithExternalWallets",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"totalWithExternalWallets",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"oneworks",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"matchpay",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableBalanceFormatter",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableCurrencyAmount",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"withdrawableBalanceFormatter",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"bonusBalanceFormatter",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"lockedBalanceFormatter",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"unlockedBalanceFormatter",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"pendingWithdrawalBalanceFormatter",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableCasino",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableSports",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playablePoker",null),(0,i.__decorate)([u.Fl,(0,i.__metadata)("design:type",Object),(0,i.__metadata)("design:paramtypes",[])],S.prototype,"playableHorses",null),(0,i.__decorate)([u.aD,(0,i.__metadata)("design:type",Function),(0,i.__metadata)("design:paramtypes",[Object]),(0,i.__metadata)("design:returntype",void 0)],S.prototype,"setBalances",null)},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:()=>u});var i=n(6856),r=n(57826),o=n(35294),a=n(4309),s=n(42998),c=n(67616),l=n(73076);let u=(()=>{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:()=>u});var i=n(6856),r=n(57826),o=n(35294),a=n(4309),s=n(42998),c=n(67616),l=n(94768);let u=(()=>{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.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&&u(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 u(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&&d("!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 d(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)&&d("!Big.DP!"),!i[0]||!r[0])return i[0]==r[0]&&d(NaN),r[0]||d(o/0),new n(0*o);var c,l,h,p,f,m,g=r.slice(),v=c=r.length,b=i.length,y=i.slice(0,c),S=y.length,C=e,x=C.c=[],I=0,w=s+(C.e=t.e-e.e)+1;for(C.s=o,o=w<0?0:w,g.unshift(0);S++<c;y.push(0));do{for(h=0;h<10;h++){if(c!=(S=y.length))p=c>S?1:-1;else for(f=-1,p=0;++f<c;)if(r[f]!=y[f]){p=r[f]>y[f]?1:-1;break}if(!(p<0))break;for(l=S==c?r:g;S;){if(y[--S]<l[S]){for(f=S;f&&!y[--f];y[f]=9);--y[f],y[S]+=10}y[S]-=l[S]}for(;!y[0];y.shift());}x[I++]=p?h:++h,y[0]&&p?y[S]=i[v]||0:y=[i[v]]}while((v++<b||y[0]!==m)&&o--);return x[0]||1==I||(x.shift(),C.e--),I>w&&u(C,s,n.RM,y[0]!==m),C},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(),u=o.e,d=e.c,h=e.e;if(!l[0]||!d[0])return d[0]?(e.s=-c,e):new a(l[0]?o:0);if(s=u-h){for((r=s<0)?(s=-s,i=l):(h=u,i=d),i.reverse(),c=s;c--;i.push(0));i.reverse()}else for(n=((r=l.length<d.length)?l:d).length,s=c=0;c<n;c++)if(l[c]!=d[c]){r=l[c]<d[c];break}if(r&&(i=l,l=d,d=i,e.s=-e.s),(c=(n=d.length)-(t=l.length))>0)for(;c--;l[t++]=0);for(c=t;n>s;){if(l[--n]<d[n]){for(t=n;t&&!l[--t];l[t]=9);--l[t],l[n]+=10}l[n]-=d[n]}for(;0===l[--c];l.pop());for(;0===l[0];)l.shift(),--h;return l[0]||(e.s=1,l=[h=0]),e.c=l,e.e=h,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]||d(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)&&d("!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)&&d("!round!"),u(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&&d(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 u(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)&&d("!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||d("!toFix!"),t},s.toPrecision=function(e){return null==e?this.toString():((e!==~~e||e<1||e>a)&&d("!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+="")||d(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",u=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,d=/\[.*?\]|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,h={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("_")},p=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},f={padStart:p,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),i=t%60;return(e<=0?"+":"-")+p(n,2,"0")+":"+p(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}},m="en",g={};g[m]=h;var v=function(e){return e instanceof x},b=function(e,t,n){var i;if(!e)return null;if("string"==typeof e)g[e]&&(i=e),t&&(g[e]=t,i=e);else{var r=e.name;g[r]=e,i=r}return n||(m=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)},S=function(e,t,n){return y(e,{locale:t.$L,utc:t.$u,cloneDate:n})},C=f;C.parseLocale=b,C.getLocale=function(e){if("string"==typeof e)return g[e];if(e){var t=e.name;g[t]=e}else e=g[m];return e},C.isDayjs=v,C.wrapper=S;var x=function(){function e(e){this.parse(e)}var h=e.prototype;return h.parse=function(e){this.$d=function(e){var t,n=e.date;if(null===n)return new Date(NaN);if(C.isUndefined(n))return new Date;if(n instanceof Date)return n;if("string"==typeof n&&n.charCodeAt(n.length-1)<=57&&(t=n.match(u))){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)},h.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)||m},h.$utils=function(){return C},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.$compare=function(e){return this.valueOf()-y(e).valueOf()},h.isSame=function(e){return 0===this.$compare(e)},h.isBefore=function(e){return this.$compare(e)<0},h.isAfter=function(e){return 0<this.$compare(e)},h.year=function(){return this.$y},h.month=function(){return this.$M},h.day=function(){return this.$W},h.date=function(){return this.$D},h.hour=function(){return this.$H},h.minute=function(){return this.$m},h.second=function(){return this.$s},h.millisecond=function(){return this.$ms},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,t){var u=this,d=!!C.isUndefined(t)||t,h=C.prettyUnit(e),p=this.$u?["setUTCHours","setUTCMinutes","setUTCSeconds","setUTCMilliseconds"]:["setHours","setMinutes","setSeconds","setMilliseconds"],f=function(e,t){var n=u.$u?new Date(Date.UTC(u.$y,t,e)):new Date(u.$y,t,e),i=S(n,u,!1);return d?i:i.endOf(o)},m=function(e){var t=u.toDate();return S(t[p[e]].apply(t,d?[0,0,0,0].slice(e):[23,59,59,999].slice(e)),u,!1)};switch(h){case c:return d?f(1,0):f(31,11);case s:return d?f(1,this.$M):f(0,this.$M+1);case a:return f(d?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case o:case l:return m(0);case r:return m(1);case i:return m(2);case n:return m(3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(e,a){var u=C.prettyUnit(e),d=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(u){case o:this.$d[d.date](this.$D+(a-this.$W));break;case l:this.$d[d.date](a);break;case s:this.$d[d.month](a);break;case c:this.$d[d.year](a);break;case r:this.$d[d.hours](a);break;case i:this.$d[d.minutes](a);break;case n:this.$d[d.seconds](a);break;case t:this.$d[d.milliseconds](a)}return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.add=function(e,t){var u=this;e=Number(e);var d,h=C.prettyUnit(t),p=function(t,n){var i=u.set(l,1).set(t,n+e);return i.set(l,Math.min(u.$D,i.daysInMonth()))},f=function(t){var n=new Date(u.$d);return n.setDate(n.getDate()+t*e),S(n,u)};if(h===s)return p(s,this.$M);if(h===c)return p(c,this.$y);if(h===o)return f(1);if(h===a)return f(7);switch(h){case i:d=6e4;break;case r:d=36e5;break;case n:d=1e3;break;default:d=1}var m=this.valueOf()+e*d;return S(m,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,n=e||"YYYY-MM-DDTHH:mm:ssZ",i=this.$u?"+00:00":C.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(d,(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 C.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 C.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 C.padStart(t.$H,2,"0");case"h":case"hh":return 0===t.$H?12:C.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 C.padStart(t.$m,2,"0");case"s":return String(t.$s);case"ss":return C.padStart(t.$s,2,"0");case"SSS":return C.padStart(t.$ms,3,"0");case"Z":return i;default:return i.replace(":","")}}))},h.diff=function(e,t,l){var u=C.prettyUnit(t),d=y(e),h=this-d,p=C.monthDiff(this,d);switch(u){case c:p/=12;break;case s:break;case"quarter":p/=3;break;case a:p=h/6048e5;break;case o:p=h/864e5;break;case r:p=h/36e5;break;case i:p=h/6e4;break;case n:p=h/1e3;break;default:p=h}return l?p:C.absFloor(p)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return g[this.$L]},h.locale=function(e,t){var n=this.clone();return n.$L=b(e,t,!0),n},h.clone=function(){return S(this.toDate(),this,!1)},h.toDate=function(){return new Date(this.$d)},h.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},h.toJSON=function(){return this.toISOString()},h.toISOString=function(){return this.$d.toISOString()},h.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},h.toString=function(){return this.$d.toUTCString()},h.isUTC=function(){return this.$u},h.utc=function(){return y(this.$d.valueOf(),{locale:this.$L,utc:!0})},h.local=function(){return y(this.$d.valueOf(),{locale:this.$L,utc:!1})},h.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=g[m],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],u=o[c];n[a]=u?{regex:l,parser:u}: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,u=a.parser,d=e.substr(o),h=l.exec(d);if(!h||0!==h.index)throw new Error('Matching "'+l+'" at character '+o+' failed with "'+d+'".');var p=h[0];u.call(t,p),o+=p.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 u(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/),u(["A"],(function(e){this.afternoon="PM"===e})),l("a",/[ap]m/),u(["a"],(function(e){this.afternoon="pm"===e})),l("S",/\d/),l("SS",t),l("SSS",/\d{3}/);for(var d=function(e,t){u(e,(function(e){this.milliseconds=+e*t}))},h="S",p=100;1<=p;h+="S",p/=10)d(h,p);return l("s",n),l("ss",t),u(["s","ss"],"seconds",(function(e){return e<=59})),l("m",n),l("mm",t),u(["m","mm"],"minutes",(function(e){return e<=59})),l("H",n),l("h",n),l("HH",t),l("hh",t),u(["H","HH"],"hours",(function(e){return e<=23})),u(["h","hh"],"hours",(function(e){return 1<=e&&e<=12})),l("D",n),l("DD",t),u(["D","DD"],"day"),l("M",n),l("MM",t),u(["M","MM"],"month",(function(e){return 1<=e&&e<=12})),l("Y",/[+-]?\d+/),l("YY",t),l("YYYY",/\d{4}/),u(["Y","YYYY"],"year"),u("YY",(function(e){e=+e,this.year=e+(68<e?1900:2e3)})),l("z",/[A-Z]{3,4}/),u("z",(function(e){(this.zone||(this.zone={})).abbreviation=e})),l("Z",i),l("ZZ",i),u(["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,u=(t=o,(r=a[n=s])||(r=c(n),a[n]=r),r(t)),d=u.year,h=u.month,p=u.day,f=u.hours,m=u.minutes,g=u.seconds,v=u.milliseconds,b=u.zone;if(b){var y=Date.UTC(d,h-1,p,f||0,m||0,g||0,v||0)+60*b.offset*1e3;l=new Date(y)}else l=new Date(d,h-1,p,f||0,m||0,g||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,u=[{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"}],d=u.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 h=0;h<d;h+=1){var p=u[h],f=p.d;f&&(a=o?i(t).diff(r,f,!0):r.diff(t,f,!0));var m=Math.ceil(Math.abs(a)),g=p.r;if(m<=g||!g){var v=void 0;v=n?l.duration:0<a?l.future:l.past;var b=p.l;s=1===b.length?v[b]:v[b][e.getPluralFormForCardinalByLocale(c.name,m)].replace("%d",m);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,u=t.zone,d=e.$d;if(d.setTime(l),n){e.$Y=i,e.$M=r-1,e.$D=o,e.$W=a,e.$H=s,e.$m=c;var h=u.abbreviation,p=u.offset;e.$z=h,e.$o=p}else e.$Y=d.getFullYear(),e.$M=d.getMonth(),e.$D=d.getDate(),e.$W=d.getDay(),e.$H=d.getHours(),e.$m=d.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))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(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 u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){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 d(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=u.bind(i);return r.listener=n,i.wrapFn=r,r}function h(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):f(r,r.length)}function p(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 f(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function m(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,u=f(c,l);for(n=0;n<l;++n)i(u[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,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(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 h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,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"],u=o.createElement("div"),d=Math.round,h=Math.abs,p=Date.now;function f(e,t,n){return setTimeout(C(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(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 S(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&c(i,n)}function C(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 I(e,t){return e===s?t:e}function w(e,t,n){g(A(t),(function(t){e.addEventListener(t,n,!1)}))}function E(e,t,n){g(A(t),(function(t){e.removeEventListener(t,n,!1)}))}function T(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function P(e,t){return e.indexOf(t)>-1}function A(e){return e.trim().split(/\s+/g)}function _(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 M(e){return Array.prototype.slice.call(e,0)}function k(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];_(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 O(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 N=1;function R(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}var L="ontouchstart"in r,j=O(r,"PointerEvent")!==s,D=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F="touch",B="mouse",U=["x","y"],V=["clientX","clientY"];function H(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 G(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=p(),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 u,d,f=W(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=h(f.x)>h(f.y)?f.x:f.y,t.scale=a?(u=a.pointers,K((d=i)[0],d[1],V)/K(u[0],u[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,u=t.deltaY-a.deltaY,d=W(c,l,u);i=d.x,r=d.y,n=h(d.x)>h(d.y)?d.x:d.y,o=q(l,u),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 m=e.element;T(t.srcEvent.target,m)&&(m=t.srcEvent.target),t.target=m}(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:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:$(t),deltaX:e.deltaX,deltaY:e.deltaY}}function $(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:d(n/t),y:d(i/t)}}function W(e,t,n){return{x:t/e||0,y:n/e||0}}function q(e,t){return e===t?1:h(e)>=h(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}H.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(R(this.element),this.evWin,this.domHandler)}};var Y={mousedown:1,mousemove:2,mouseup:4},Q="mousedown",J="mousemove mouseup";function Z(){this.evEl=Q,this.evWin=J,this.pressed=!1,H.apply(this,arguments)}S(Z,H,{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,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(ne="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel"),S(re,H,{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=_(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,H.apply(this,arguments)}function le(e,t){var n=M(e.touches),i=M(e.changedTouches);return 12&t&&(n=k(n.concat(i),"identifier",!0)),[n,i]}S(ce,H,{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 ue={touchstart:1,touchmove:2,touchend:4,touchcancel:8},de="touchstart touchmove touchend touchcancel";function he(){this.evTarget=de,this.targetIds={},H.apply(this,arguments)}function pe(e,t){var n=M(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=M(e.changedTouches),s=[],c=this.target;if(o=n.filter((function(e){return T(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?[k(o.concat(s),"identifier",!0),s]:void 0}function fe(){H.apply(this,arguments);var e=C(this.handler,this);this.touch=new he(this.manager,e),this.mouse=new Z(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function me(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ge.call(this,t)):12&e&&ge.call(this,t)}function ge(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}S(he,H,{handler:function(e){var t=ue[e.type],n=pe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}}),S(fe,H,{handler:function(e,t,n){var i=n.pointerType==F,r=n.pointerType==B;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)me.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=O(u.style,"touchAction"),ye=be!==s,Se="compute",Ce="auto",xe="manipulation",Ie="none",we="pan-x",Ee="pan-y",Te=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 Pe(e,t){this.manager=e,this.set(t)}Pe.prototype={set:function(e){e==Se&&(e=this.compute()),ye&&this.manager.element.style&&Te[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 g(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(P(e,Ie))return Ie;var t=P(e,we),n=P(e,Ee);return t&&n?Ie:t||n?t?we:Ee:P(e,xe)?xe:Ce}(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=P(i,Ie)&&!Te.none,o=P(i,Ee)&&!Te["pan-y"],a=P(i,we)&&!Te["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 Ae=32;function _e(e){this.options=c({},this.defaults,e||{}),this.id=N++,this.manager=null,this.options.enable=I(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Me(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function ke(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Oe(e,t){var n=t.manager;return n?n.get(e):e}function Ne(){_e.apply(this,arguments)}function Re(){Ne.apply(this,arguments),this.pX=null,this.pY=null}function Le(){Ne.apply(this,arguments)}function je(){_e.apply(this,arguments),this._timer=null,this._input=null}function De(){Ne.apply(this,arguments)}function Fe(){Ne.apply(this,arguments)}function Be(){_e.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=I(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||(j?re:D?he:L?fe:Z))(this,G),this.touchAction=new Pe(this,this.options.touchAction),He(this,!0),g(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 He(e,t){var n,i=e.element;i.style&&(g(e.options.cssProps,(function(r,o){n=O(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}_e.prototype={defaults:{},set:function(e){return c(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Oe(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=Oe(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===_(t,e=Oe(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=Oe(e,this);var t=_(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+Me(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Me(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ae},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=Ae);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},S(Ne,_e,{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:Ae}}),S(Re,Ne,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ee),24&e&&t.push(we),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 Ne.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=ke(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),S(Le,Ne,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ie]},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)}}),S(je,_e,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ce]},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=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Ae},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=p(),this.manager.emit(this.options.event,this._input)))}}),S(De,Ne,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ie]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),S(Fe,Ne,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Re.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&&h(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ke(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),S(Be,_e,{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=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Ae},failTimeout:function(){return this._timer=f((function(){this.state=Ae}),this.options.interval,this),Ae},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:Se,enable:!0,inputTarget:null,inputClass:null,preset:[[De,{enable:!1}],[Le,{enable:!1},["rotate"]],[Fe,{direction:6}],[Re,{direction:6},["swipe"]],[Be],[Be,{event:"doubletap",taps:2},["tap"]],[je]],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 _e)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(m(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(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=_(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 g(A(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return g(A(e),(function(e){t?n[e]&&n[e].splice(_(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&&He(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:Ae,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:H,TouchAction:Pe,TouchInput:he,MouseInput:Z,PointerEventInput:re,TouchMouseInput:fe,SingleTouchInput:ce,Recognizer:_e,AttrRecognizer:Ne,Tap:Be,Pan:Re,Swipe:Fe,Pinch:Le,Rotate:De,Press:je,on:w,off:E,each:g,merge:y,extend:b,assign:c,inherit:S,bindFn:C,prefixed:O}),(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:()=>d,fF:()=>a,Hn:()=>u,aD:()=>h,Fl:()=>p,LO:()=>f});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)}}(),u=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),d=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,u],exports:[a,c,u]}),e}(),h=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),p=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),f=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:()=>dn,LO:()=>Le,U5:()=>ue,aD:()=>Y,gx:()=>le,vP:()=>We,z:()=>J});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(){Dt(this)},e.prototype.reportChanged=function(){Lt(),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),jt()},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 Lt(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),jt(),!!St.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(o),s=ft("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 u(e,t){var n=Yt();try{var i=e.interceptors;if(i)for(var r=0,o=i.length;r<o&&(Je(!(t=i[r](t))||t.type,"Intercept handlers should return nothing or a change object"),t);r++);return t}finally{Qt(n)}}function d(e){return e.changeListeners&&e.changeListeners.length>0}function h(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 p(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);Qt(n)}}function f(){return!!St.spyListeners.length}function m(e){if(St.spyListeners.length)for(var t=St.spyListeners,n=0,i=t.length;n<i;n++)t[n](e)}function g(e){m(st({},e,{spyReportStart:!0}))}var v={spyReportEnd:!0};function b(e){m(e?st({},e,v):v)}function y(e){return St.spyListeners.push(e),tt((function(){var t=St.spyListeners.indexOf(e);-1!==t&&St.spyListeners.splice(t,1)}))}function S(e){Je(!0!==e.__$$iterating,"Illegal state: cannot recycle array as iterator"),dt(e,"__$$iterating",!0);var t=-1;return dt(e,"next",(function(){return{done:++t>=this.length,value:t<this.length?this[t]:void 0}})),e}function C(e,t){dt(e,"function"==typeof Symbol&&Symbol.iterator||"@@iterator",t)}var x,I,w=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),E=0,T=function(){};x=T,I=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(x.prototype,I):void 0!==x.prototype.__proto__?x.prototype.__proto__=I:x.prototype=I,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(T.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var P=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}),h(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>E&&O(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=u(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&&f(),r=d(this),o=r||i?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;i&&g(o),this.atom.reportChanged(),r&&p(this,o),i&&b()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&f(),r=d(this),o=r||i?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&g(o),this.atom.reportChanged(),r&&p(this,o),i&&b()},e}(),A=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 P(i,n,o,r);return dt(o,"$mobx",a),t&&t.length&&o.spliceWithArray(0,0,t),w&&Object.defineProperty(a.array,"0",_),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 R(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=u(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}(T);C(A.prototype,(function(){return S(this.slice())})),Object.defineProperty(A.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];Je("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),ut(A.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),function(e,t){for(var n=0;n<t.length;n++)ut(e,t[n],e[t[n]])}(A.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(0);function M(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function k(e){Object.defineProperty(A.prototype,""+e,M(e))}function O(e){for(var t=E;t<e;t++)k(t);E=e}O(1e3);var N=ft("ObservableArrayAdministration",P);function R(e){return ot(e)&&N(e.$mobx)}var L={},j=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&&f()&&m({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))!==L){var n=f();n&&g({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=u(this,{object:this,type:"update",newValue:e});if(!t)return L;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.value!==e?e:L},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),d(this)&&p(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}),h(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);j.prototype[gt()]=j.prototype.valueOf;var D=ft("ObservableValue",j),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){Je("function"==typeof t,B("m026")),Je("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=f()&&!!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];g({type:"action",name:e,fn:t,object:n,arguments:s})}var l=Yt();return Lt(),{prevDerivation:l,prevAllowStateChanges:H(!0),notifySpy:r,startTime:o}}(e,t,n,i);try{return t.apply(n,i)}finally{!function(e){G(e.prevAllowStateChanges),jt(),Qt(e.prevDerivation),e.notifySpy&&b({time:Date.now()-e.startTime})}(r)}}function H(e){var t=St.allowStateChanges;return St.allowStateChanges=e,t}function G(e){St.allowStateChanges=e}function z(e,t,n,i,r){function o(o,a,s,c,l){if(void 0===l&&(l=0),Je(r||q(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),s){lt(o,"__mobxLazyInitializers")||ut(o,"__mobxLazyInitializers",o.__mobxLazyInitializers&&o.__mobxLazyInitializers.slice()||[]);var u=s.value,d=s.initializer;return o.__mobxLazyInitializers.push((function(t){e(t,a,d?d.call(t):u,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 h={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,h),h}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")||ut(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,i(e,t,n,r,o)}function W(e){!0!==e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers&&(ut(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>";ut(e,t,Y(o,n))}),(function(e){return this[e]}),(function(){Je(!1,B("m001"))}),!1,!0),X=z((function(e,t,n){ee(e,t,n)}),(function(e){return this[e]}),(function(){Je(!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?Q(e):Q(t).apply(null,arguments)};function Q(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 J(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 Je("function"==typeof r,B("m002")),Je(0===r.length,B("m003")),Je("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,ut(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,u=Object.keys(e);if(c=u.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!oe(t,l=u[c])||!ie(e[l],t[l],n,i))return!1}return n.pop(),i.pop(),!0}(e,t,n,i)}function re(e){return R(e)?e.peek():qe(e)?e.entries():mt(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),Je("function"==typeof r,B("m004")),Je(!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),Qt(t)}}))}function ue(e,t,n){var i;arguments.length>3&&Qe(B("m007")),De(e)&&Qe(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 de=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 Ht(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(){Je(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===St.inBatch?(Lt(),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)),jt()):(Dt(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(Gt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(Gt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){Je(!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 Je(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){f()&&m({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||Gt(e)||Gt(n)||!this.equals(e,n)},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,St.computationDepth++,e)t=qt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new Ht(e)}return St.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}),Qt(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(St.trackingDerivation),t=it(this.isComputing?this.newObserving:this.observing).map((function(e){return e.name})),n=it(kt(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}();de.prototype[gt()]=de.prototype.valueOf;var he=ft("ComputedValue",de),pe=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 Je(!0!==t,"`observe` doesn't support the fire immediately property for observable objects."),h(this,e)},e.prototype.intercept=function(e){return l(this,e)},e}();function fe(e,t){if(Ie(e)&&e.hasOwnProperty("$mobx"))return e.$mobx;Je(Object.isExtensible(e),B("m035")),at(e)||(t=(e.constructor.name||"ObservableObject")+"@"+Ye()),t||(t="ObservableObject@"+Ye());var n=new pe(e,t);return dt(e,"$mobx",n),n}function me(e,t,n,i){if(e.values[t]&&!he(e.values[t]))return Je("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(De(n.value)){var r=n.value;ge(e,t,r.initialValue,r.enhancer)}else Z(n.value)&&!0===n.value.autoBind?ee(e.target,t,n.value.originalFn):he(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,Se(t))}(e,t,n.value):ge(e,t,n.value,i);else ve(e,t,n.get,n.set,se.default,!0)}function ge(e,t,n,i){if(pt(e.target,t),c(e)){var r=u(e,{object:e.target,name:t,type:"add",newValue:n});if(!r)return;n=r.newValue}n=(e.values[t]=new j(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){Ce(this,e,t)}})}(t)),function(e,t,n,i){var r=d(e),o=f(),a=r||o?{type:"add",object:t,name:n,newValue:i}:null;o&&g(a),r&&p(e,a),o&&b()}(e,e.target,t,n)}function ve(e,t,n,i,r,o){o&&pt(e.target,t),e.values[t]=new de(n,e.target,r,e.name+"."+t,i),o&&Object.defineProperty(e.target,t,Se(t))}var be={},ye={};function Se(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 Ce(e,t,n){var i=e.$mobx,r=i.values[t];if(c(i)){if(!(s=u(i,{type:"update",object:e,name:t,newValue:n})))return;n=s.newValue}if((n=r.prepareNewValue(n))!==L){var o=d(i),a=f(),s=o||a?{type:"update",object:e,oldValue:r.value,name:t,newValue:n}:null;a&&g(s),r.setNewValue(n),o&&p(i,s),a&&b()}}var xe=ft("ObservableObjectAdministration",pe);function Ie(e){return!!ot(e)&&(W(e),xe(e.$mobx))}function we(e,t){if(null==e)return!1;if(void 0!==t){if(R(e)||qe(e))throw new Error(B("m019"));if(Ie(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return Ie(e)||!!e.$mobx||s(e)||sn(e)||he(e)}function Ee(e){return Je(!!e,":("),z((function(t,n,i,r,o){pt(t,n),Je(!o||!o.get,B("m022")),ge(fe(t,void 0),n,i,e)}),(function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()}),(function(e,t){Ce(this,e,t)}),!0,!1)}function Te(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ae(e,Be,t)}function Pe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ae(e,Ve,t)}function Ae(e,t,n){Je(arguments.length>=2,B("m014")),Je("object"==typeof e,B("m015")),Je(!qe(e),B("m016")),n.forEach((function(e){Je("object"==typeof e,B("m017")),Je(!we(e),B("m018"))}));for(var i=fe(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&&!ht(e,s))continue;var c=Object.getOwnPropertyDescriptor(a,s);me(i,s,c,t)}}return e}var _e=Ee(Be),Me=Ee(Ue),ke=Ee(Ve),Oe=Ee(He),Ne=Ee(Ge),Re={box:function(e,t){return arguments.length>2&&je("box"),new j(e,Be,t)},shallowBox:function(e,t){return arguments.length>2&&je("shallowBox"),new j(e,Ve,t)},array:function(e,t){return arguments.length>2&&je("array"),new A(e,Be,t)},shallowArray:function(e,t){return arguments.length>2&&je("shallowArray"),new A(e,Ve,t)},map:function(e,t){return arguments.length>2&&je("map"),new We(e,Be,t)},shallowMap:function(e,t){return arguments.length>2&&je("shallowMap"),new We(e,Ve,t)},object:function(e,t){arguments.length>2&&je("object");var n={};return fe(n,t),Te(n,e),n},shallowObject:function(e,t){arguments.length>2&&je("shallowObject");var n={};return fe(n,t),Pe(n,e),n},ref:function(){return arguments.length<2?Fe(Ve,arguments[0]):ke.apply(null,arguments)},shallow:function(){return arguments.length<2?Fe(Ue,arguments[0]):Me.apply(null,arguments)},deep:function(){return arguments.length<2?Fe(Be,arguments[0]):_e.apply(null,arguments)},struct:function(){return arguments.length<2?Fe(He,arguments[0]):Oe.apply(null,arguments)}},Le=function(e){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return _e.apply(null,arguments);if(Je(arguments.length<=1,B("m021")),Je(!De(e),B("m020")),we(e))return e;var t=Be(e,0,void 0);return t!==e?t:Le.box(e)};function je(e){Qe("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function De(e){return"object"==typeof e&&null!==e&&!0===e.isMobxModifierDescriptor}function Fe(e,t){return Je(!De(t),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function Be(e,t,n){return De(e)&&Qe("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),we(e)?e:Array.isArray(e)?Le.array(e,n):at(e)?Le.object(e,n):mt(e)?Le.map(e,n):e}function Ue(e,t,n){return De(e)&&Qe("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),null==e||Ie(e)||R(e)||qe(e)?e:Array.isArray(e)?Le.shallowArray(e,n):at(e)?Le.shallowObject(e,n):mt(e)?Le.shallowMap(e,n):Qe("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function Ve(e){return e}function He(e,t,n){if(ne(e,t))return t;if(we(e))return e;if(Array.isArray(e))return new A(e,He,n);if(mt(e))return new We(e,He,n);if(at(e)){var i={};return fe(i,n),Ae(i,He,[e]),i}return e}function Ge(e,t,n){return ne(e,t)?t:e}function ze(e,t){void 0===t&&(t=void 0),Lt();try{return e.apply(t)}finally{jt()}}Object.keys(Re).forEach((function(e){return Le[e]=Re[e]})),Le.deep.struct=Le.struct,Le.ref.struct=function(){return arguments.length<2?Fe(Ge,arguments[0]):Ne.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 A(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=u(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=u(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=f(),i=d(this),r=i||n?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return n&&g(r),ze((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0})),i&&p(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 j(t,Ve,this.name+"."+e+"?",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==L){var i=f(),r=d(this),o=r||i?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&g(o),n.setNewValue(t),r&&p(this,o),i&&b()}},e.prototype._addValue=function(e,t){var n=this;ze((function(){var i=n._data[e]=new j(t,n.enhancer,n.name+"."+e,!1);t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)}));var i=f(),r=d(this),o=r||i?{type:"add",object:this,name:e,newValue:t}:null;i&&g(o),r&&p(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 S(this._keys.slice())},e.prototype.values=function(){return S(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return S(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)})):mt(e)?e.forEach((function(e,n){return t.set(n,e)})):null!=e&&Qe("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]})):mt(n)?Array.from(n.keys()):qe(n)?n.keys():Qe("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 Je(!0!==t,B("m033")),h(this,e)},e.prototype.intercept=function(e){return l(this,e)},e}();C(We.prototype,(function(){return this.entries()}));var qe=ft("ObservableMap",We),Ke=[];function Xe(){return"undefined"!=typeof window?window:global}function Ye(){return++St.mobxGuid}function Qe(e,t){throw Je(!1,e,t),"X"}function Je(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 ut(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function dt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function ht(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||!1!==n.configurable&&!1!==n.writable}function pt(e,t){Je(ht(e,t),"Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function ft(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return ot(e)&&!0===e[n]}}function mt(e){return void 0!==Xe().Map&&e instanceof Xe().Map}function gt(){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=[]},St=new yt,Ct=!1,xt=!1,It=!1,wt=Xe();function Et(e,t){if("object"==typeof e&&null!==e){if(R(e))return Je(void 0===t,B("m036")),e.$mobx.atom;if(qe(e)){var n=e;return void 0===t?Et(n._keys):(Je(!!(i=n._data[t]||n._hasMap[t]),"the entry '"+t+"' does not exist in the observable map '"+Pt(e)+"'"),i)}var i;if(W(e),t&&!e.$mobx&&e[t],Ie(e))return t?(Je(!!(i=e.$mobx.values[t]),"no observable property '"+t+"' found on the observable object '"+Pt(e)+"'"),i):Qe("please specify a property");if(s(e)||he(e)||sn(e))return e}else if("function"==typeof e&&sn(e.$mobx))return e.$mobx;return Qe("Cannot obtain atom from "+e)}function Tt(e,t){return Je(e,"Expecting some object"),void 0!==t?Tt(Et(e,t)):s(e)||he(e)||sn(e)||qe(e)?e:(W(e),e.$mobx?e.$mobx:void Je(!1,"Cannot obtain administration from "+e))}function Pt(e,t){return(void 0!==t?Et(e,t):Ie(e)||qe(e)?Tt(e):Et(e)).name}function At(e,t){return _t(Et(e,t))}function _t(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=it(e.observing).map(_t)),t}function Mt(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=kt(e).map(Mt)),t}function kt(e){return e.observers}function Ot(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 Nt(e,t){if(1===e.observers.length)e.observers.length=0,Rt(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 Rt(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,St.pendingUnobservations.push(e))}function Lt(){St.inBatch++}function jt(){if(0==--St.inBatch){on();for(var e=St.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&n.onBecomeUnobserved()}St.pendingUnobservations=[]}}function Dt(e){var t=St.trackingDerivation;null!==t?t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e):0===e.observers.length&&Rt(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(At(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 de?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)})))}wt.__mobxInstanceCount?(wt.__mobxInstanceCount++,setTimeout((function(){Ct||xt||It||(It=!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)):wt.__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))(),Ht=function(e){this.cause=e};function Gt(e){return e instanceof Ht}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(he(o)){try{o.get()}catch(e){return Qt(t),!0}if(e.dependenciesState===Ut.STALE)return Qt(t),!0}}return Jt(e),Qt(t),!1}}function $t(){return null!==St.trackingDerivation}function Wt(e){var t=e.observers.length>0;St.computationDepth>0&&t&&Qe(B("m031")+e.name),!St.allowStateChanges&&t&&Qe(B(St.strictMode?"m030a":"m030b")+e.name)}function qt(e,t,n){Jt(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++St.runId;var i,r=St.trackingDerivation;St.trackingDerivation=e;try{i=t.call(n)}catch(e){i=new Ht(e)}return St.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&&Nt(s,e),s.diffValue=0;for(;r--;){var s;1===(s=n[r]).diffValue&&(s.diffValue=0,Ot(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--;)Nt(t[n],e);e.dependenciesState=Ut.NOT_TRACKING}function Xt(e){var t=Yt(),n=e();return Qt(t),n}function Yt(){var e=St.trackingDerivation;return St.trackingDerivation=null,e}function Qt(e){St.trackingDerivation=e}function Jt(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 St.trackingDerivation;case 1:return Et(e[0]);case 2:return Et(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,St.pendingReactions.push(this),on())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(Lt(),this._isScheduled=!1,zt(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&f()&&m({object:this,type:"scheduled-reaction"})),jt())},e.prototype.track=function(e){Lt();var t,n=f();n&&(t=Date.now(),g({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),Gt(i)&&this.reportExceptionInDerivation(i.cause),n&&b({time:Date.now()-t}),jt()},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),f()&&m({type:"error",message:n,error:e,object:this}),St.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Lt(),Kt(this),jt()))},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 Qe("'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){Je(this&&this.$mobx&&sn(this.$mobx),"Invalid `this`"),Je(!this.$mobx.errorHandler,"Only one onErrorHandler can be registered"),this.$mobx.errorHandler=e}var rn=function(e){return e()};function on(){St.inBatch>0||St.isRunningReactions||rn(an)}function an(){St.isRunningReactions=!0;for(var e=St.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()}St.isRunningReactions=!1}var sn=ft("Reaction",tn);function cn(e){return z((function(t,n,i,r,o){Je(void 0!==o,B("m009")),Je("function"==typeof o.get,B("m010")),ve(fe(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),un=cn(se.structural),dn=function(e,t,n){if("string"==typeof t)return ln.apply(null,arguments);Je("function"==typeof e,B("m011")),Je(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 de(e,i.context,r,i.name||e.name||"",i.setter)};dn.struct=un,dn.equals=cn;var hn={allowStateChanges:function(e,t){var n,i=H(e);try{n=t()}finally{G(i)}return n},deepEqual:ne,getAtom:Et,getDebugName:Pt,getDependencyTree:At,getAdministration:Tt,getGlobalState:function(){return St},getObserverTree:function(e,t){return Mt(Et(e,t))},interceptReads:function(e,t,n){var i;if(qe(e)||R(e)||D(e))i=Tt(e);else{if(!Ie(e))return Qe("Expected observable map, object or array as first array");if("string"!=typeof t)return Qe("InterceptReads can only be used with a specific property, not with an object in general");i=Tt(e,t)}return void 0!==i.dehancer?Qe("An intercept reader was already established"):(i.dehancer="function"==typeof t?t:n,function(){i.dehancer=void 0})},isComputingDerivation:$t,isSpyEnabled:f,onReactionError:function(e){return St.globalReactionErrorHandlers.push(e),function(){var t=St.globalReactionErrorHandlers.indexOf(e);t>=0&&St.globalReactionErrorHandlers.splice(t,1)}},reserveArrayBuffer:O,resetGlobalState:function(){St.resetId++;var e=new yt;for(var t in e)-1===bt.indexOf(t)&&(St[t]=e[t]);St.allowStateChanges=!St.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."),Ct=!0;var e=Xe(),t=St;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?St=e.__mobxGlobal:e.__mobxGlobal=t},spyReport:m,spyReportEnd:b,spyReportStart:g,setReactionScheduler:function(e){var t=rn;rn=function(n){return e((function(){return t(n)}))}}},pn={Reaction:tn,untracked:Xt,Atom:a,BaseAtom:o,useStrict:function(e){Je(null===St.trackingDerivation,B("m028")),St.strictMode=e,St.allowStateChanges=!e},isStrictModeEnabled:function(){return St.strictMode},spy:y,comparer:se,asReference:function(e){return et("asReference is deprecated, use observable.ref instead"),Le.ref(e)},asFlat:function(e){return et("asFlat is deprecated, use observable.shallow instead"),Le.shallow(e)},asStructure:function(e){return et("asStructure is deprecated. Use observable.struct, computed.struct or reaction options instead."),Le.struct(e)},asMap:function(e){return et("asMap is deprecated, use observable.map or observable.shallowMap instead"),Le.map(e||{})},isModifierDescriptor:De,isObservableObject:Ie,isBoxedObservable:D,isObservableArray:R,ObservableMap:We,isObservableMap:qe,map:function(e){return et("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Le.map(e)},transaction:ze,observable:Le,computed:dn,isObservable:we,isComputed:function(e,t){if(null==e)return!1;if(void 0!==t){if(!1===Ie(e))return!1;if(!e.$mobx.values[t])return!1;var n=Et(e,t);return he(n)}return he(e)},extendObservable:Te,extendShallowObservable:Pe,observe:function(e,t,n,i){return"function"==typeof n?function(e,t,n,i){return Tt(e,t).observe(n,i)}(e,t,n,i):function(e,t,n){return Tt(e).observe(t,n)}(e,t,n)},intercept:function(e,t,n){return"function"==typeof n?function(e,t,n){return Tt(e,t).intercept(n)}(e,t,n):function(e,t){return Tt(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),Je(!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(u)}),a))}));function u(){o(l)}return l.schedule(),l.getDisposer()},when:le,reaction:ue,action:Y,isAction:Z,runInAction:J,expr:function(e,t){return $t()||console.warn(B("m013")),dn(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=[]),we(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(R(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(Ie(t)){for(var l in s=r({}),t)s[l]=e(t[l],n,i);return s}if(qe(t)){var u=r({});return t.forEach((function(t,r){return u[r]=e(t,n,i)})),u}if(D(t))return e(t.get(),n,i)}return t},createTransformer:function(e,t){Je("function"==typeof e&&e.length<2,"createTransformer expects a function that accepts one argument");var n={},i=St.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}(de);return function(e){i!==St.resetId&&(n={},i=St.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&&ut(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))?he(e)||sn(e)?Zt(e.whyRun()):Qe(B("m025")):Zt(B("m024"))},isArrayLike:function(e){return Array.isArray(e)||R(e)},extras:hn},fn=!1,mn=function(e){var t=pn[e];Object.defineProperty(pn,e,{get:function(){return fn||(fn=!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 gn in pn)mn(gn);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:y,extras:hn})},13811:(e,t,n)=>{"use strict";n.d(t,{Fy:()=>m,bB:()=>v,o6:()=>g});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 u(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 d=function(e){return{display:e}},h=["*"];let p=(()=>{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 f={UNKNOWN:0,NEXT:1,PREV:2};f[f.UNKNOWN]="UNKNOWN",f[f.NEXT]="NEXT",f[f.PREV]="PREV";let m=(()=>{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(f.NEXT,e)}nextSlide(e=!1){this.isPlaying&&this.restartTimer(),this.move(f.NEXT,e)}previousSlide(e=!1){this.isPlaying&&this.restartTimer(),this.move(f.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===f.NEXT&&this.isLast(i)||e===f.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===f.PREV||!this.noWrap){switch(e){case f.NEXT:n=this.isLast(this._currentActiveSlide)?!t&&this.noWrap?this._currentActiveSlide:0:this._currentActiveSlide+1;break;case f.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===f.NEXT?t:n,r=e!==f.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===f.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===f.NEXT?this._currentVisibleSlidesIndex+1:this._currentVisibleSlidesIndex-1:e===f.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"](p),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:h,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,u,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,d,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 g=(()=>{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"](m))},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:h,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[g,m]},imports:function(){return[o.CommonModule]},exports:function(){return[g,m]}})},51103:(e,t,n)=>{"use strict";n.d(t,{AL:()=>a,C:()=>l,GU:()=>f,O4:()=>v,Rg:()=>c,Su:()=>p,XA:()=>h,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 u="undefined"!=typeof window&&window||{};let d;function h(){return void 0===u||(void 0===u.__theme?(d||(d=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"===d):"bs4"!==u.__theme)}u.document,u.location,u.gc,u.performance&&u.performance,u.Event,u.MouseEvent,u.KeyboardEvent,u.EventTarget,u.History,u.Location,u.EventListener;class p{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 f(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 m={},g="undefined"==typeof console||!("warn"in console);function v(e){!(0,i.isDevMode)()||g||e in m||(m[e]=!0,console.warn(e))}},98841:(e,t,n)=>{"use strict";function i(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 r(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())}))}n.d(t,{m7:()=>ue,zP:()=>ce,vO:()=>pe});var o=n(57826),a=n(40475),s=n(6856),c=n(76547);function l(e,t){1&e&&(o["ɵɵelementStart"](0,"span",3),o["ɵɵnamespaceSVG"](),o["ɵɵelementStart"](1,"svg",4),o["ɵɵelement"](2,"path",5),o["ɵɵelement"](3,"g"),o["ɵɵelement"](4,"g"),o["ɵɵelement"](5,"g"),o["ɵɵelement"](6,"g"),o["ɵɵelement"](7,"g"),o["ɵɵelement"](8,"g"),o["ɵɵelementEnd"](),o["ɵɵelementEnd"]())}const u=["*"];function d(e,t){if(1&e){const e=o["ɵɵgetCurrentView"]();o["ɵɵelementStart"](0,"div",2),o["ɵɵlistener"]("click",(function(){return o["ɵɵrestoreView"](e),o["ɵɵnextContext"]().hide()})),o["ɵɵelementEnd"]()}}const h=[[["ng2-dropdown-button"]],[["ng2-dropdown-menu"]]],p=["ng2-dropdown-button","ng2-dropdown-menu"];let f=(()=>{class e{constructor(e){this.element=e,this.onMenuToggled=new o.EventEmitter,this.showCaret=!0}toggleMenu(){this.onMenuToggled.emit(!0)}getPosition(){return this.element.nativeElement.getBoundingClientRect()}}return e.ɵfac=function(t){return new(t||e)(o["ɵɵdirectiveInject"](o.ElementRef))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["ng2-dropdown-button"]],inputs:{showCaret:"showCaret"},outputs:{onMenuToggled:"onMenuToggled"},ngContentSelectors:u,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&&(o["ɵɵprojectionDef"](),o["ɵɵelementStart"](0,"button",0),o["ɵɵlistener"]("click",(function(){return t.toggleMenu()})),o["ɵɵelementStart"](1,"span",1),o["ɵɵprojection"](2),o["ɵɵelementEnd"](),o["ɵɵtemplate"](3,l,9,0,"span",2),o["ɵɵelementEnd"]()),2&e&&(o["ɵɵadvance"](3),o["ɵɵproperty"]("ngIf",t.showCaret))},directives:[s.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:all .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)}"]}),e})();"undefined"==typeof ngDevMode||ngDevMode;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 v{constructor(){this.onItemSelected=new o.EventEmitter,this.onItemClicked=new o.EventEmitter,this.onItemDestroyed=new o.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 b=(()=>{class e{constructor(){this.menuState={isVisible:!1,toString(){return!0===this.isVisible?"visible":"hidden"}},this.dropdownState=new v}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=o["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();"undefined"==typeof ngDevMode||ngDevMode;let y=(()=>{class e{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)(o["ɵɵdirectiveInject"](b),o["ɵɵdirectiveInject"](o.ElementRef))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["ng2-menu-item"]],inputs:{preventClose:"preventClose",value:"value"},ngContentSelectors:u,decls:2,vars:2,consts:[["role","button","tabindex","0",1,"ng2-menu-item",3,"keydown.enter","click","mouseover"]],template:function(e,t){1&e&&(o["ɵɵprojectionDef"](),o["ɵɵelementStart"](0,"div",0),o["ɵɵlistener"]("keydown.enter",(function(){return t.click()}))("click",(function(){return t.click()}))("mouseover",(function(){return t.select()})),o["ɵɵprojection"](1),o["ɵɵelementEnd"]()),2&e&&o["ɵɵclassProp"]("ng2-menu-item--selected",t.isSelected)},styles:[".ng2-menu-item[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,Helvetica,Arial;background:#fff;color:#000000de;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:#00000070}"]}),e})();"undefined"==typeof ngDevMode||ngDevMode;let S=(()=>{class e{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 u=i.clientWidth,d=i.clientHeight,h=parseInt(c)+d+(this.appendToBody?0:s-15),p=parseInt(l)+u,f=t.innerHeight+t.scrollY,m=t.innerWidth+t.scrollX;if(h>=f&&(c=parseInt(c.replace("px",""))-d+"px"),p>=m){const e=p-m+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)(o["ɵɵdirectiveInject"](b),o["ɵɵdirectiveInject"](o.ElementRef),o["ɵɵdirectiveInject"](o.Renderer2))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["ng2-dropdown-menu"]],contentQueries:function(e,t,n){if(1&e&&o["ɵɵcontentQuery"](n,y,5),2&e){let e;o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.items=e)}},inputs:{width:"width",focusFirstElement:"focusFirstElement",offset:"offset",appendToBody:"appendToBody",zIndex:"zIndex"},ngContentSelectors:u,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&&(o["ɵɵprojectionDef"](),o["ɵɵelementStart"](0,"div"),o["ɵɵelementStart"](1,"div",0),o["ɵɵprojection"](2),o["ɵɵelementEnd"](),o["ɵɵelementEnd"](),o["ɵɵtemplate"](3,d,1,0,"div",1)),2&e&&(o["ɵɵclassMapInterpolate1"]("ng2-dropdown-menu ng2-dropdown-menu---width--",t.width,""),o["ɵɵstyleProp"]("z-index",t.zIndex),o["ɵɵclassProp"]("ng2-dropdown-menu--inside-element",!t.appendToBody)("ng2-dropdown-menu--open",t.dropdownState.menuState.isVisible),o["ɵɵproperty"]("@fade",t.dropdownState.menuState.toString()),o["ɵɵadvance"](1),o["ɵɵproperty"]("@opacity",t.dropdownState.menuState.toString()),o["ɵɵadvance"](2),o["ɵɵproperty"]("ngIf",t.dropdownState.menuState.isVisible))},directives:[s.NgIf],styles:["[_nghost-%COMP%]{display:block}.ng2-dropdown-menu[_ngcontent-%COMP%]{overflow-y:auto;box-shadow:0 1px 2px #0000004d;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,c.trigger)("fade",[(0,c.state)("visible",(0,c.style)({opacity:1,height:"*",width:"*"})),(0,c.state)("hidden",(0,c.style)({opacity:0,overflow:"hidden",height:0,width:0})),(0,c.transition)("hidden => visible",[(0,c.animate)("250ms ease-in",(0,c.style)({opacity:1,height:"*",width:"*"}))]),(0,c.transition)("visible => hidden",[(0,c.animate)("350ms ease-out",(0,c.style)({opacity:0,width:0,height:0}))])]),(0,c.trigger)("opacity",[(0,c.transition)("hidden => visible",[(0,c.animate)("450ms ease-in",(0,c.keyframes)([(0,c.style)({opacity:0,offset:0}),(0,c.style)({opacity:1,offset:1})]))]),(0,c.transition)("visible => hidden",[(0,c.animate)("250ms ease-out",(0,c.keyframes)([(0,c.style)({opacity:1,offset:0}),(0,c.style)({opacity:.5,offset:.3}),(0,c.style)({opacity:0,offset:1})]))])])]}}),e})();"undefined"==typeof ngDevMode||ngDevMode;let C=(()=>{class e{constructor(e){this.state=e,this.dynamicUpdate=!0,this.onItemClicked=new o.EventEmitter,this.onItemSelected=new o.EventEmitter,this.onShow=new o.EventEmitter,this.onHide=new o.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)(o["ɵɵdirectiveInject"](b))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["ng2-dropdown"]],contentQueries:function(e,t,n){if(1&e&&(o["ɵɵcontentQuery"](n,f,7),o["ɵɵcontentQuery"](n,S,7)),2&e){let e;o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.button=e.first),o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.menu=e.first)}},hostBindings:function(e,t){1&e&&o["ɵɵlistener"]("scroll",(function(){return t.scrollListener()}),!1,o["ɵɵresolveWindow"])},inputs:{dynamicUpdate:"dynamicUpdate"},outputs:{onItemClicked:"onItemClicked",onItemSelected:"onItemSelected",onShow:"onShow",onHide:"onHide"},features:[o["ɵɵProvidersFeature"]([b])],ngContentSelectors:p,decls:3,vars:0,consts:[[1,"ng2-dropdown-container"]],template:function(e,t){1&e&&(o["ɵɵprojectionDef"](h),o["ɵɵelementStart"](0,"div",0),o["ɵɵprojection"](1),o["ɵɵprojection"](2,1),o["ɵɵelementEnd"]())},encapsulation:2}),e})();"undefined"==typeof ngDevMode||ngDevMode;let x=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({imports:[[s.CommonModule]]}),e})();"undefined"==typeof ngDevMode||ngDevMode;var I=n(42998);const w=["input"];function E(e,t){}const T=function(e,t){return{item:e,index:t}};function P(e,t){if(1&e&&(o["ɵɵelementStart"](0,"div"),o["ɵɵtemplate"](1,E,0,0,"ng-template",4),o["ɵɵelementEnd"]()),2&e){const e=o["ɵɵnextContext"]();o["ɵɵattribute"]("contenteditable",e.editing),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngTemplateOutletContext",o["ɵɵpureFunction2"](3,T,e.model,e.index))("ngTemplateOutlet",e.template)}}function A(e,t){if(1&e){const e=o["ɵɵgetCurrentView"]();o["ɵɵelementStart"](0,"delete-icon",8),o["ɵɵlistener"]("click",(function(t){return o["ɵɵrestoreView"](e),o["ɵɵnextContext"](2).remove(t)})),o["ɵɵelementEnd"]()}}function _(e,t){if(1&e){const e=o["ɵɵgetCurrentView"]();o["ɵɵelementStart"](0,"div",5),o["ɵɵelementStart"](1,"div",6),o["ɵɵlistener"]("keydown.enter",(function(t){return o["ɵɵrestoreView"](e),o["ɵɵnextContext"]().disableEditMode(t)}))("keydown.escape",(function(t){return o["ɵɵrestoreView"](e),o["ɵɵnextContext"]().disableEditMode(t)}))("click",(function(t){return o["ɵɵrestoreView"](e),o["ɵɵnextContext"]().editing?t.stopPropagation():void 0}))("blur",(function(t){return o["ɵɵrestoreView"](e),o["ɵɵnextContext"]().onBlurred(t)})),o["ɵɵtext"](2),o["ɵɵelementEnd"](),o["ɵɵtemplate"](3,A,1,0,"delete-icon",7),o["ɵɵelementEnd"]()}if(2&e){const e=o["ɵɵnextContext"]();o["ɵɵadvance"](1),o["ɵɵattribute"]("contenteditable",e.editing)("title",e.getDisplayValue(e.model)),o["ɵɵadvance"](1),o["ɵɵtextInterpolate1"](" ",e.getDisplayValue(e.model)," "),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",e.isDeleteIconVisible())}}function M(e,t){if(1&e&&o["ɵɵelement"](0,"tag-ripple",9),2&e){const e=o["ɵɵnextContext"]();o["ɵɵproperty"]("state",e.rippleState),o["ɵɵattribute"]("tabindex",-1)}}function k(e,t){if(1&e&&(o["ɵɵelement"](0,"span",6),o["ɵɵpipe"](1,"highlight")),2&e){const e=o["ɵɵnextContext"]().$implicit,t=o["ɵɵnextContext"]();o["ɵɵproperty"]("innerHTML",o["ɵɵpipeBind2"](1,1,e[t.displayBy],t.tagInput.inputForm.value.value),o["ɵɵsanitizeHtml"])}}function O(e,t){}const N=function(e,t,n){return{item:e,index:t,last:n}};function R(e,t){if(1&e&&o["ɵɵtemplate"](0,O,0,0,"ng-template",7),2&e){const e=o["ɵɵnextContext"](),t=e.$implicit,n=e.index,i=e.last,r=o["ɵɵnextContext"]();o["ɵɵproperty"]("ngTemplateOutlet",r.templates.first)("ngTemplateOutletContext",o["ɵɵpureFunction3"](2,N,t,n,i))}}function L(e,t){if(1&e&&(o["ɵɵelementStart"](0,"ng2-menu-item",3),o["ɵɵtemplate"](1,k,2,4,"span",4),o["ɵɵtemplate"](2,R,1,6,void 0,5),o["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=o["ɵɵnextContext"]();o["ɵɵproperty"]("value",e)("ngSwitch",!!n.templates.length),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngSwitchCase",!1)}}function j(e,t){if(1&e){const e=o["ɵɵgetCurrentView"]();o["ɵɵelementStart"](0,"tag",6),o["ɵɵlistener"]("onSelect",(function(){const t=o["ɵɵrestoreView"](e).$implicit;return o["ɵɵnextContext"]().selectItem(t)}))("onRemove",(function(){const t=o["ɵɵrestoreView"](e),n=t.$implicit,i=t.index;return o["ɵɵnextContext"]().onRemoveRequested(n,i)}))("onKeyDown",(function(t){return o["ɵɵrestoreView"](e),o["ɵɵnextContext"]().handleKeydown(t)}))("onTagEdited",(function(t){return o["ɵɵrestoreView"](e),o["ɵɵnextContext"]().updateEditedTag(t)}))("onBlur",(function(t){const n=o["ɵɵrestoreView"](e).index;return o["ɵɵnextContext"]().onTagBlurred(t,n)}))("dragstart",(function(t){const n=o["ɵɵrestoreView"](e),i=n.$implicit,r=n.index,a=o["ɵɵnextContext"]();return a.dragZone?a.onDragStarted(t,i,r):void 0}))("drop",(function(t){const n=o["ɵɵrestoreView"](e).index,i=o["ɵɵnextContext"]();return i.dragZone?i.onTagDropped(t,n):void 0}))("dragenter",(function(t){o["ɵɵrestoreView"](e);const n=o["ɵɵnextContext"]();return n.dragZone?n.onDragOver(t):void 0}))("dragover",(function(t){const n=o["ɵɵrestoreView"](e).index,i=o["ɵɵnextContext"]();return i.dragZone?i.onDragOver(t,n):void 0}))("dragleave",(function(){o["ɵɵrestoreView"](e);const t=o["ɵɵnextContext"]();return t.dragZone?t.dragProvider.onDragEnd():void 0})),o["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=t.index,i=o["ɵɵnextContext"]();o["ɵɵpropertyInterpolate"]("draggable",i.editable),o["ɵɵ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),o["ɵɵattribute"]("tabindex",0)}}function D(e,t){1&e&&o["ɵɵelement"](0,"div",7)}function F(e,t){if(1&e&&(o["ɵɵelementStart"](0,"p",10),o["ɵɵelementStart"](1,"span"),o["ɵɵtext"](2),o["ɵɵelementEnd"](),o["ɵɵelementEnd"]()),2&e){const e=t.$implicit;o["ɵɵadvance"](2),o["ɵɵtextInterpolate"](e)}}function B(e,t){if(1&e&&(o["ɵɵelementStart"](0,"div",8),o["ɵɵtemplate"](1,F,3,1,"p",9),o["ɵɵelementEnd"]()),2&e){const e=o["ɵɵnextContext"]();o["ɵɵproperty"]("ngClass",e.theme),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngForOf",e.errors)}}const U=["*"];let V=(()=>{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=o["ɵɵdefinePipe"]({name:"highlight",type:e,pure:!0}),e})();const H="keydown",G="DELETE",z="SWITCH_PREV",$="SWITCH_NEXT",W={8:G,46:G,37:z,39:$,9:"TAB"},q="Text",K="NEXT",X="PREV";let Y=(()=>{let e=class{constructor(){this.state={dragging:!1,dropping:!1,index:void 0}}setDraggedItem(e,t){e&&e.dataTransfer&&e.dataTransfer.setData(q,JSON.stringify(t))}getDraggedItem(e){if(e&&e.dataTransfer){const t=e.dataTransfer.getData(q);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=o["ɵɵdefineInjectable"]({token:e,factory:function(t){return e.ɵfac(t)}}),e})();const Q={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({},Q.tagInput),t.tagInput),e.defaults.dropdown=Object.assign(Object.assign({},Q.dropdown),t.dropdown)}}return e.defaults=Q,e})();function Z(e){return e===Object(e)}let ee=(()=>{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 Z(e)?e[n]:e}getItemDisplay(e,t=!1){const n=t&&this.dropdown?this.dropdown.displayBy:this.displayBy;return Z(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=o["ɵɵdefineDirective"]({type:e,inputs:{displayBy:"displayBy",identifyBy:"identifyBy"}}),i([(0,o.Input)()],e.prototype,"displayBy",void 0),i([(0,o.Input)()],e.prototype,"identifyBy",void 0),e})();function te(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 ne=(()=>{let e=class{constructor(){this.onSubmit=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onKeyup=new o.EventEmitter,this.onKeydown=new o.EventEmitter,this.inputTextChange=new o.EventEmitter,this.validators=[],this.asyncValidators=[],this.tabindex="",this.disabled=!1,this.item=new a.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 a.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=o["ɵɵdefineComponent"]({type:e,selectors:[["tag-input-form"]],viewQuery:function(e,t){if(1&e&&o["ɵɵviewQuery"](w,5),2&e){let e;o["ɵɵqueryRefresh"](e=o["ɵɵ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:[o["ɵɵ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&&(o["ɵɵelementStart"](0,"form",0),o["ɵɵlistener"]("ngSubmit",(function(e){return t.submit(e)})),o["ɵɵelementStart"](1,"input",1,2),o["ɵɵ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)})),o["ɵɵelementEnd"](),o["ɵɵelementEnd"]()),2&e&&(o["ɵɵproperty"]("formGroup",t.form),o["ɵɵadvance"](1),o["ɵɵpropertyInterpolate"]("tabindex",t.disabled?-1:t.tabindex?t.tabindex:0),o["ɵɵproperty"]("ngClass",t.inputClass),o["ɵɵattribute"]("id",t.inputId)("placeholder",t.placeholder)("aria-label",t.placeholder)("tabindex",t.tabindex)("disabled",t.disabled?t.disabled:null))},directives:[a["ɵNgNoValidate"],a.NgControlStatusGroup,a.FormGroupDirective,a.DefaultValueAccessor,a.MinLengthValidator,a.NgControlStatus,a.FormControlName,s.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}']}),i([(0,o.Output)()],e.prototype,"onSubmit",void 0),i([(0,o.Output)()],e.prototype,"onBlur",void 0),i([(0,o.Output)()],e.prototype,"onFocus",void 0),i([(0,o.Output)()],e.prototype,"onKeyup",void 0),i([(0,o.Output)()],e.prototype,"onKeydown",void 0),i([(0,o.Output)()],e.prototype,"inputTextChange",void 0),i([(0,o.Input)()],e.prototype,"placeholder",void 0),i([(0,o.Input)()],e.prototype,"validators",void 0),i([(0,o.Input)()],e.prototype,"asyncValidators",void 0),i([(0,o.Input)()],e.prototype,"inputId",void 0),i([(0,o.Input)()],e.prototype,"inputClass",void 0),i([(0,o.Input)()],e.prototype,"tabindex",void 0),i([(0,o.Input)()],e.prototype,"disabled",void 0),i([(0,o.ViewChild)("input")],e.prototype,"input",void 0),i([(0,o.Input)()],e.prototype,"inputText",null),e})(),ie=(()=>{let e=class{constructor(){this.state="none"}};return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["tag-ripple"]],inputs:{state:"state"},decls:1,vars:1,consts:[[1,"tag-ripple"]],template:function(e,t){1&e&&o["ɵɵelement"](0,"div",0),2&e&&o["ɵɵ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,c.trigger)("ink",[(0,c.state)("none",(0,c.style)({width:0,opacity:0})),(0,c.transition)("none => clicked",[(0,c.animate)(300,(0,c.keyframes)([(0,c.style)({opacity:1,offset:0,width:"30%",borderRadius:"100%"}),(0,c.style)({opacity:1,offset:.5,width:"50%"}),(0,c.style)({opacity:.5,offset:1,width:"100%",borderRadius:"16px"})]))])])]}}),i([(0,o.Input)()],e.prototype,"state",void 0),e})();const re="undefined"!=typeof window?window.navigator:{userAgent:"Chrome",vendor:"Google Inc"},oe=/Chrome/.test(re.userAgent)&&/Google Inc/.test(re.vendor);let ae=(()=>{let e=class{constructor(e,t,n){this.element=e,this.renderer=t,this.cdRef=n,this.disabled=!1,this.onSelect=new o.EventEmitter,this.onRemove=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onKeyDown=new o.EventEmitter,this.onTagEdited=new o.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&&oe&&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)(o["ɵɵdirectiveInject"](o.ElementRef),o["ɵɵdirectiveInject"](o.Renderer2),o["ɵɵdirectiveInject"](o.ChangeDetectorRef))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["tag"]],viewQuery:function(e,t){if(1&e&&o["ɵɵviewQuery"](ie,5),2&e){let e;o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.ripple=e.first)}},hostVars:2,hostBindings:function(e,t){1&e&&o["ɵɵlistener"]("keydown",(function(e){return t.keydown(e)})),2&e&&o["ɵɵ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&&(o["ɵɵelementStart"](0,"div",0),o["ɵɵ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"})),o["ɵɵtemplate"](1,P,2,6,"div",1),o["ɵɵtemplate"](2,_,4,4,"div",2),o["ɵɵelementEnd"](),o["ɵɵtemplate"](3,M,1,2,"tag-ripple",3)),2&e&&(o["ɵɵclassProp"]("disabled",t.disabled),o["ɵɵproperty"]("ngSwitch",!!t.template),o["ɵɵattribute"]("tabindex",-1)("aria-label",t.getDisplayValue(t.model)),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngSwitchCase",!0),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngSwitchCase",!1),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",t.isRippleVisible))},directives:function(){return[s.NgSwitch,s.NgSwitchCase,s.NgIf,s.NgTemplateOutlet,de,ie]},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}"]}),i([(0,o.Input)()],e.prototype,"model",void 0),i([(0,o.Input)()],e.prototype,"removable",void 0),i([(0,o.Input)()],e.prototype,"editable",void 0),i([(0,o.Input)()],e.prototype,"template",void 0),i([(0,o.Input)()],e.prototype,"displayBy",void 0),i([(0,o.Input)()],e.prototype,"identifyBy",void 0),i([(0,o.Input)()],e.prototype,"index",void 0),i([(0,o.Input)()],e.prototype,"hasRipple",void 0),i([(0,o.Input)()],e.prototype,"disabled",void 0),i([(0,o.Input)()],e.prototype,"canAddTag",void 0),i([(0,o.Output)()],e.prototype,"onSelect",void 0),i([(0,o.Output)()],e.prototype,"onRemove",void 0),i([(0,o.Output)()],e.prototype,"onBlur",void 0),i([(0,o.Output)()],e.prototype,"onKeyDown",void 0),i([(0,o.Output)()],e.prototype,"onTagEdited",void 0),i([(0,o.HostBinding)("class.moving")],e.prototype,"moving",void 0),i([(0,o.ViewChild)(ie)],e.prototype,"ripple",void 0),i([(0,o.HostListener)("keydown",["$event"])],e.prototype,"keydown",null),e})();const se=[(0,c.trigger)("animation",[(0,c.state)("in",(0,c.style)({opacity:1})),(0,c.state)("out",(0,c.style)({opacity:0})),(0,c.transition)(":enter",[(0,c.animate)("{{ enter }}",(0,c.keyframes)([(0,c.style)({opacity:0,offset:0,transform:"translate(0px, 20px)"}),(0,c.style)({opacity:.3,offset:.3,transform:"translate(0px, -10px)"}),(0,c.style)({opacity:.5,offset:.5,transform:"translate(0px, 0px)"}),(0,c.style)({opacity:.75,offset:.75,transform:"translate(0px, 5px)"}),(0,c.style)({opacity:1,offset:1,transform:"translate(0px, 0px)"})]))]),(0,c.transition)(":leave",[(0,c.animate)("{{ leave }}",(0,c.keyframes)([(0,c.style)({opacity:1,transform:"translateX(0)",offset:0}),(0,c.style)({opacity:1,transform:"translateX(-15px)",offset:.7}),(0,c.style)({opacity:0,transform:"translateX(100%)",offset:1})]))])])];let ce=(()=>{let e=class{constructor(e){this.injector=e,this.offset=Q.dropdown.offset,this.focusFirstElement=Q.dropdown.focusFirstElement,this.showDropdownIfEmpty=Q.dropdown.showDropdownIfEmpty,this.minimumTextLength=Q.dropdown.minimumTextLength,this.limitItemsTo=Q.dropdown.limitItemsTo,this.displayBy=Q.dropdown.displayBy,this.identifyBy=Q.dropdown.identifyBy,this.matchingFn=Q.dropdown.matchingFn,this.appendToBody=Q.dropdown.appendToBody,this.keepOpen=Q.dropdown.keepOpen,this.dynamicUpdate=Q.dropdown.dynamicUpdate,this.zIndex=Q.dropdown.zIndex,this.items=[],this.tagInput=this.injector.get(ue),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),u=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):u&&this.hide()))},this.requestAdding=e=>r(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,I.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,I.distinctUntilChanged)(),(0,I.debounceTime)(200),(0,I.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)(o["ɵɵdirectiveInject"](o.Injector))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["tag-input-dropdown"]],contentQueries:function(e,t,n){if(1&e&&o["ɵɵcontentQuery"](n,o.TemplateRef,4),2&e){let e;o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.templates=e)}},viewQuery:function(e,t){if(1&e&&o["ɵɵviewQuery"](C,5),2&e){let e;o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.dropdown=e.first)}},hostBindings:function(e,t){1&e&&o["ɵɵlistener"]("scroll",(function(){return t.scrollListener()}),!1,o["ɵɵresolveWindow"])("blur",(function(){return t.onWindowBlur()}),!1,o["ɵɵ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&&(o["ɵɵelementStart"](0,"ng2-dropdown",0),o["ɵɵelementStart"](1,"ng2-dropdown-menu",1),o["ɵɵtemplate"](2,L,3,3,"ng2-menu-item",2),o["ɵɵelementEnd"](),o["ɵɵelementEnd"]()),2&e&&(o["ɵɵproperty"]("dynamicUpdate",t.dynamicUpdate),o["ɵɵadvance"](1),o["ɵɵproperty"]("focusFirstElement",t.focusFirstElement)("zIndex",t.zIndex)("appendToBody",t.appendToBody)("offset",t.offset),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngForOf",t.items))},directives:[C,S,s.NgForOf,y,s.NgSwitch,s.NgSwitchCase,s.NgSwitchDefault,s.NgTemplateOutlet],pipes:[V],encapsulation:2}),i([(0,o.ViewChild)(C)],e.prototype,"dropdown",void 0),i([(0,o.ContentChildren)(o.TemplateRef)],e.prototype,"templates",void 0),i([(0,o.Input)()],e.prototype,"offset",void 0),i([(0,o.Input)()],e.prototype,"focusFirstElement",void 0),i([(0,o.Input)()],e.prototype,"showDropdownIfEmpty",void 0),i([(0,o.Input)()],e.prototype,"autocompleteObservable",void 0),i([(0,o.Input)()],e.prototype,"minimumTextLength",void 0),i([(0,o.Input)()],e.prototype,"limitItemsTo",void 0),i([(0,o.Input)()],e.prototype,"displayBy",void 0),i([(0,o.Input)()],e.prototype,"identifyBy",void 0),i([(0,o.Input)()],e.prototype,"matchingFn",void 0),i([(0,o.Input)()],e.prototype,"appendToBody",void 0),i([(0,o.Input)()],e.prototype,"keepOpen",void 0),i([(0,o.Input)()],e.prototype,"dynamicUpdate",void 0),i([(0,o.Input)()],e.prototype,"zIndex",void 0),i([(0,o.Input)()],e.prototype,"autocompleteItems",null),i([(0,o.HostListener)("window:scroll")],e.prototype,"scrollListener",null),i([(0,o.HostListener)("window:blur")],e.prototype,"onWindowBlur",null),e})();"undefined"!=typeof window&&window.DragEvent;const le={provide:a.NG_VALUE_ACCESSOR,useExisting:(0,o.forwardRef)((()=>ue)),multi:!0};let ue=(()=>{let e=class extends ee{constructor(e,t){super(),this.renderer=e,this.dragProvider=t,this.separatorKeys=Q.tagInput.separatorKeys,this.separatorKeyCodes=Q.tagInput.separatorKeyCodes,this.placeholder=Q.tagInput.placeholder,this.secondaryPlaceholder=Q.tagInput.secondaryPlaceholder,this.maxItems=Q.tagInput.maxItems,this.validators=Q.tagInput.validators,this.asyncValidators=Q.tagInput.asyncValidators,this.onlyFromAutocomplete=Q.tagInput.onlyFromAutocomplete,this.errorMessages=Q.tagInput.errorMessages,this.theme=Q.tagInput.theme,this.onTextChangeDebounce=Q.tagInput.onTextChangeDebounce,this.inputId=Q.tagInput.inputId,this.inputClass=Q.tagInput.inputClass,this.clearOnBlur=Q.tagInput.clearOnBlur,this.hideForm=Q.tagInput.hideForm,this.addOnBlur=Q.tagInput.addOnBlur,this.addOnPaste=Q.tagInput.addOnPaste,this.pasteSplitPattern=Q.tagInput.pasteSplitPattern,this.blinkIfDupe=Q.tagInput.blinkIfDupe,this.removable=Q.tagInput.removable,this.editable=Q.tagInput.editable,this.allowDupes=Q.tagInput.allowDupes,this.modelAsStrings=Q.tagInput.modelAsStrings,this.trimTags=Q.tagInput.trimTags,this.ripple=Q.tagInput.ripple,this.tabindex=Q.tagInput.tabIndex,this.disable=Q.tagInput.disable,this.dragZone=Q.tagInput.dragZone,this.onRemoving=Q.tagInput.onRemoving,this.onAdding=Q.tagInput.onAdding,this.animationDuration=Q.tagInput.animationDuration,this.onAdd=new o.EventEmitter,this.onRemove=new o.EventEmitter,this.onSelect=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onTextChange=new o.EventEmitter,this.onPaste=new o.EventEmitter,this.onValidationError=new o.EventEmitter,this.onTagEdited=new o.EventEmitter,this.isLoading=!1,this.listeners={[H]:[],keyup:[]},this.inputTextChange=new o.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=>r(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,I.filter)((e=>"PENDING"!==e))).subscribe((()=>{this.errors=this.inputForm.getErrorMessages(this.errorMessages)})),this.isProgressBarVisible$=e.pipe((0,I.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,I.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,I.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(W[n]){case G:if(this.selectedTag&&this.removable){const e=this.items.indexOf(this.selectedTag);this.onRemoveRequested(this.selectedTag,e)}break;case z:this.moveToTag(e.model,X);break;case $:this.moveToTag(e.model,K);break;case"TAB":if(i){if(this.isFirstTag(e.model))return;this.moveToTag(e.model,X)}else{if(this.isLastTag(e.model)&&(this.disable||this.maxItemsReached))return;this.moveToTag(e.model,K)}break;default:return}t.preventDefault()}onFormSubmit(){return r(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===K&&n||t===X&&i)return void this.focus(!0);const r=t===K?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,u=this.isTagValid(o,e),d=()=>(this.onValidationError.emit(o),a());return"VALID"===l&&u?(c(),s()):"INVALID"!==l&&u?"PENDING"===l?this.inputForm.form.statusChanges.pipe((0,I.filter)((e=>"PENDING"!==e)),(0,I.first)()).subscribe((e=>"VALID"===e&&u?(c(),s()):(s(),d()))):void 0:(s(),d())}))}setupSeparatorKeysListener(){const e=this.separatorKeyCodes.length>0||this.separatorKeys.length>0;te.call(this,H,(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(){te.call(this,H,(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,I.debounceTime)(this.onTextChangeDebounce)).subscribe((e=>{this.onTextChange.emit(e.item)}))}setUpOnBlurSubscriber(){this.inputForm.onBlur.pipe((0,I.debounceTime)(100),(0,I.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)(o["ɵɵdirectiveInject"](o.Renderer2),o["ɵɵdirectiveInject"](Y))},e.ɵcmp=o["ɵɵdefineComponent"]({type:e,selectors:[["tag-input"]],contentQueries:function(e,t,n){if(1&e&&(o["ɵɵcontentQuery"](n,ce,5),o["ɵɵcontentQuery"](n,o.TemplateRef,4)),2&e){let e;o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.dropdown=e.first),o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.templates=e)}},viewQuery:function(e,t){if(1&e&&(o["ɵɵviewQuery"](ne,5),o["ɵɵviewQuery"](ae,5)),2&e){let e;o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.inputForm=e.first),o["ɵɵqueryRefresh"](e=o["ɵɵloadQuery"]())&&(t.tags=e)}},hostVars:1,hostBindings:function(e,t){2&e&&o["ɵɵ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:[o["ɵɵProvidersFeature"]([le]),o["ɵɵInheritDefinitionFeature"]],ngContentSelectors:U,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&&(o["ɵɵprojectionDef"](),o["ɵɵelementStart"](0,"div",0),o["ɵɵ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})),o["ɵɵelementStart"](1,"div",1),o["ɵɵtemplate"](2,j,1,14,"tag",2),o["ɵɵelementStart"](3,"tag-input-form",3),o["ɵɵ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)})),o["ɵɵelementEnd"](),o["ɵɵelementEnd"](),o["ɵɵtemplate"](4,D,1,0,"div",4),o["ɵɵpipe"](5,"async"),o["ɵɵelementEnd"](),o["ɵɵtemplate"](6,B,2,2,"div",5),o["ɵɵprojection"](7)),2&e&&(o["ɵɵ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()),o["ɵɵproperty"]("ngClass",t.theme),o["ɵɵattribute"]("tabindex",-1),o["ɵɵadvance"](2),o["ɵɵproperty"]("ngForOf",t.items)("ngForTrackBy",t.trackBy),o["ɵɵadvance"](1),o["ɵɵ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),o["ɵɵadvance"](1),o["ɵɵproperty"]("ngIf",o["ɵɵpipeBind1"](5,25,t.isProgressBarVisible$)),o["ɵɵadvance"](2),o["ɵɵproperty"]("ngIf",t.hasErrors()))},directives:[s.NgClass,s.NgForOf,ne,s.NgIf,ae],pipes:[s.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:se}}),i([(0,o.Input)()],e.prototype,"separatorKeys",void 0),i([(0,o.Input)()],e.prototype,"separatorKeyCodes",void 0),i([(0,o.Input)()],e.prototype,"placeholder",void 0),i([(0,o.Input)()],e.prototype,"secondaryPlaceholder",void 0),i([(0,o.Input)()],e.prototype,"maxItems",void 0),i([(0,o.Input)()],e.prototype,"validators",void 0),i([(0,o.Input)()],e.prototype,"asyncValidators",void 0),i([(0,o.Input)()],e.prototype,"onlyFromAutocomplete",void 0),i([(0,o.Input)()],e.prototype,"errorMessages",void 0),i([(0,o.Input)()],e.prototype,"theme",void 0),i([(0,o.Input)()],e.prototype,"onTextChangeDebounce",void 0),i([(0,o.Input)()],e.prototype,"inputId",void 0),i([(0,o.Input)()],e.prototype,"inputClass",void 0),i([(0,o.Input)()],e.prototype,"clearOnBlur",void 0),i([(0,o.Input)()],e.prototype,"hideForm",void 0),i([(0,o.Input)()],e.prototype,"addOnBlur",void 0),i([(0,o.Input)()],e.prototype,"addOnPaste",void 0),i([(0,o.Input)()],e.prototype,"pasteSplitPattern",void 0),i([(0,o.Input)()],e.prototype,"blinkIfDupe",void 0),i([(0,o.Input)()],e.prototype,"removable",void 0),i([(0,o.Input)()],e.prototype,"editable",void 0),i([(0,o.Input)()],e.prototype,"allowDupes",void 0),i([(0,o.Input)()],e.prototype,"modelAsStrings",void 0),i([(0,o.Input)()],e.prototype,"trimTags",void 0),i([(0,o.Input)()],e.prototype,"inputText",null),i([(0,o.Input)()],e.prototype,"ripple",void 0),i([(0,o.Input)()],e.prototype,"tabindex",void 0),i([(0,o.Input)()],e.prototype,"disable",void 0),i([(0,o.Input)()],e.prototype,"dragZone",void 0),i([(0,o.Input)()],e.prototype,"onRemoving",void 0),i([(0,o.Input)()],e.prototype,"onAdding",void 0),i([(0,o.Input)()],e.prototype,"animationDuration",void 0),i([(0,o.Output)()],e.prototype,"onAdd",void 0),i([(0,o.Output)()],e.prototype,"onRemove",void 0),i([(0,o.Output)()],e.prototype,"onSelect",void 0),i([(0,o.Output)()],e.prototype,"onFocus",void 0),i([(0,o.Output)()],e.prototype,"onBlur",void 0),i([(0,o.Output)()],e.prototype,"onTextChange",void 0),i([(0,o.Output)()],e.prototype,"onPaste",void 0),i([(0,o.Output)()],e.prototype,"onValidationError",void 0),i([(0,o.Output)()],e.prototype,"onTagEdited",void 0),i([(0,o.ContentChild)(ce)],e.prototype,"dropdown",void 0),i([(0,o.ContentChildren)(o.TemplateRef,{descendants:!1})],e.prototype,"templates",void 0),i([(0,o.ViewChild)(ne)],e.prototype,"inputForm",void 0),i([(0,o.ViewChildren)(ae)],e.prototype,"tags",void 0),i([(0,o.Output)()],e.prototype,"inputTextChange",void 0),i([(0,o.HostBinding)("attr.tabindex")],e.prototype,"tabindexAttr",null),e})(),de=(()=>{let e=class{};return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=o["ɵɵ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&&(o["ɵɵelementStart"](0,"span"),o["ɵɵnamespaceSVG"](),o["ɵɵelementStart"](1,"svg",0),o["ɵɵelement"](2,"path",1),o["ɵɵelementEnd"](),o["ɵɵ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 he=new J;let pe=(()=>{let e=class{static withDefaults(e){he.setOptions(e)}};return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o["ɵɵdefineNgModule"]({type:e}),e.ɵinj=o["ɵɵdefineInjector"]({providers:[Y,{provide:a.COMPOSITION_BUFFER_MODE,useValue:!1}],imports:[[s.CommonModule,a.ReactiveFormsModule,a.FormsModule,x]]}),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)&&o["ɵɵsetNgModuleScope"](pe,{declarations:function(){return[ue,de,ne,ae,V,ce,ie]},imports:function(){return[s.CommonModule,a.ReactiveFormsModule,a.FormsModule,x]},exports:function(){return[ue,de,ne,ae,V,ce,ie]}})},1135:(e,t,n)=>{"use strict";n.d(t,{x0:()=>I});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"},u={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},d={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()},h=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})/}),p={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_]+)/},f={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/},m=(e,t)=>(e[t]=p[t],e),g=Object.keys(p).reduce(m,{}),v=(e,t)=>(e[a[t]]=f[t],e),b=Object.keys(f).reduce(v,{});var y=Object.freeze({__proto__:null,GENERAL:o,BROWSERS:a,MOBILES_RE:s,TABLETS_RE:c,DEVICES:l,OS:u,OS_VERSIONS:d,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:h,OS_VERSIONS_RE_MAP:p,BROWSER_VERSIONS_RE_MAP:f,OS_VERSIONS_RE:g,BROWSER_VERSIONS_RE:b,ɵ0:m,ɵ1:v});class S{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 C=(()=>(function(e){e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e.Unknown="unknown"}(C||(C={})),C))(),x=(()=>(function(e){e.Portrait="portrait",e.Landscape="landscape"}(x||(x={})),x))();let I=(()=>{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 S,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()?C.Tablet:this.isMobile(this.userAgent)?C.Mobile:this.isDesktop(this.userAgent)?C.Desktop:C.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),u=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",u(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 u=[].concat(i);return u[c]=n,u}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,u){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 u;l<n.length&&(!r(n[l])||s>=arguments.length)?u=n[l]:(u=arguments[s],s+=1),a[l]=u,r(u)||(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,u){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,u))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 d=s(t);if(d.length!==s(n).length)return!1;for(var h=l.length-1;h>=0;){if(l[h]===t)return u[h]===n;h-=1}for(l.push(t),u.push(n),h=d.length-1;h>=0;){var p=d[h];if(!o(p,n)||!e(n[p],t[p],l,u))return!1;h-=1}return l.pop(),u.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)},u=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(u(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 d=t.toString();if("[object Object]"!==d)return d}return"{"+u(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=[],u=o&&l(e);for(t in e)!c(t,e)||u&&"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}))},85503:(e,t,n)=>{"use strict";var i=n(78139),r=n(88712);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function m(e,t,n,i,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,i){var r=g.hasOwnProperty(t)?g[t]:null;(null!==r?0!==r.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),x=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var j,D=Object.assign;function F(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}else{try{throw Error()}catch(e){i=e}e()}}catch(t){if(t&&i&&"string"==typeof t.stack){for(var r=t.stack.split("\n"),o=i.stack.split("\n"),a=r.length-1,s=o.length-1;1<=a&&0<=s&&r[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(r[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||r[a]!==o[s]){var c="\n"+r[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function V(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case I:return"Fragment";case x:return"Portal";case E:return"Profiler";case w:return"StrictMode";case _:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=$(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=z(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+z(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:z(n)}}function oe(e,t){var n=z(t.value),i=z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=me(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(pe).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Se=null;function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ie=null,we=null;function Ee(e){if(e=yr(e)){if("function"!=typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=Cr(t),xe(e.stateNode,e.type,t))}}function Te(e){Ie?we?we.push(e):we=[e]:Ie=e}function Pe(){if(Ie){var e=Ie,t=we;if(we=Ie=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ae(e,t){return e(t)}function _e(){}var Me=!1;function ke(e,t,n){if(Me)return e(t,n);Me=!0;try{return Ae(e,t,n)}finally{Me=!1,(null!==Ie||null!==we)&&(_e(),Pe())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var i=Cr(n);if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){Ne=!1}function Le(e,t,n,i,r,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var je=!1,De=null,Fe=!1,Be=null,Ue={onError:function(e){je=!0,De=e}};function Ve(e,t,n,i,r,o,a,s,c){je=!1,De=null,Le.apply(Ue,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function ze(e){if(He(e)!==e)throw Error(o(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var a=r.alternate;if(null===a){if(null!==(i=r.return)){n=i;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return ze(r),e;if(a===i)return ze(r),t;a=a.sibling}throw Error(o(188))}if(n.return!==i.return)n=r,i=a;else{for(var s=!1,c=r.child;c;){if(c===n){s=!0,n=r,i=a;break}if(c===i){s=!0,i=r,n=a;break}c=c.sibling}if(!s){for(c=a.child;c;){if(c===n){s=!0,n=a,i=r;break}if(c===i){s=!0,i=a,n=r;break}c=c.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var qe=r.unstable_scheduleCallback,Ke=r.unstable_cancelCallback,Xe=r.unstable_shouldYield,Ye=r.unstable_requestPaint,Qe=r.unstable_now,Je=r.unstable_getCurrentPriorityLevel,Ze=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,it=r.unstable_IdlePriority,rt=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2,lt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~r;0!==s?i=dt(s):0!=(o&=a)&&(i=dt(o))}else 0!=(a=n&~r)?i=dt(a):0!==o&&(i=dt(o));if(0===i)return 0;if(0!==t&&t!==i&&0==(t&r)&&((r=i&-i)>=(o=t&-t)||16===r&&0!=(4194240&o)))return t;if(0!=(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)r=1<<(n=31-at(t)),i|=e[n],t&=~r;return i}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return 0==(4194240&(lt<<=1))&&(lt=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-at(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var yt=0;function St(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ct,xt,It,wt,Et,Tt=!1,Pt=[],At=null,_t=null,Mt=null,kt=new Map,Ot=new Map,Nt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function jt(e,t,n,i,r,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},null!==t&&null!==(t=yr(t))&&xt(t),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Dt(e){var t=br(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void Et(e.priority,(function(){It(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yr(n))&&xt(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);Se=i,n.target.dispatchEvent(i),Se=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Tt=!1,null!==At&&Ft(At)&&(At=null),null!==_t&&Ft(_t)&&(_t=null),null!==Mt&&Ft(Mt)&&(Mt=null),kt.forEach(Bt),Ot.forEach(Bt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ut)))}function Ht(e){function t(t){return Vt(t,e)}if(0<Pt.length){Vt(Pt[0],e);for(var n=1;n<Pt.length;n++){var i=Pt[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==At&&Vt(At,e),null!==_t&&Vt(_t,e),null!==Mt&&Vt(Mt,e),kt.forEach(t),Ot.forEach(t),n=0;n<Nt.length;n++)(i=Nt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Nt.shift()}var Gt=S.ReactCurrentBatchConfig,zt=!0;function $t(e,t,n,i){var r=yt,o=Gt.transition;Gt.transition=null;try{yt=1,qt(e,t,n,i)}finally{yt=r,Gt.transition=o}}function Wt(e,t,n,i){var r=yt,o=Gt.transition;Gt.transition=null;try{yt=4,qt(e,t,n,i)}finally{yt=r,Gt.transition=o}}function qt(e,t,n,i){if(zt){var r=Xt(e,t,n,i);if(null===r)zi(e,t,i,Kt,n),Lt(e,i);else if(function(e,t,n,i,r){switch(t){case"focusin":return At=jt(At,e,t,n,i,r),!0;case"dragenter":return _t=jt(_t,e,t,n,i,r),!0;case"mouseover":return Mt=jt(Mt,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return kt.set(o,jt(kt.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Ot.set(o,jt(Ot.get(o)||null,e,t,n,i,r)),!0}return!1}(r,e,t,n,i))i.stopPropagation();else if(Lt(e,i),4&t&&-1<Rt.indexOf(e)){for(;null!==r;){var o=yr(r);if(null!==o&&Ct(o),null===(o=Xt(e,t,n,i))&&zi(e,t,i,Kt,n),o===r)break;r=o}null!==r&&i.stopPropagation()}else zi(e,t,i,null,n)}}var Kt=null;function Xt(e,t,n,i){if(Kt=null,null!==(e=br(e=Ce(i))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,i=n.length,r="value"in Qt?Qt.value:Qt.textContent,o=r.length;for(e=0;e<i&&n[e]===r[e];e++);var a=i-e;for(t=1;t<=a&&n[i-t]===r[o-t];t++);return Zt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,i,r,o){for(var a in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(r):r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,cn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(ln),dn=D({},ln,{view:0,detail:0}),hn=on(dn),pn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(pn),mn=on(D({},pn,{dataTransfer:0})),gn=on(D({},dn,{relatedTarget:0})),vn=on(D({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),Sn=on(D({},ln,{data:0})),Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},In={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=In[e])&&!!t[e]}function En(){return wn}var Tn=D({},dn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(Tn),An=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_n=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Mn=on(D({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=D({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=on(kn),Nn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var jn=u&&"TextEvent"in window&&!Ln,Dn=u&&(!Rn||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function $n(e,t,n,i){Te(i),0<(t=Wi(t,"onChange")).length&&(n=new un("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function Kn(e){Fi(e,0)}function Xn(e){if(q(Sr(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),Zn="function"==typeof ei.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function ti(){Wn&&(Wn.detachEvent("onpropertychange",ni),qn=Wn=null)}function ni(e){if("value"===e.propertyName&&Xn(qn)){var t=[];$n(t,qn,e,Ce(e)),ke(Kn,t)}}function ii(e,t,n){"focusin"===e?(ti(),qn=n,(Wn=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function ri(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(qn)}function oi(e,t){if("click"===e)return Xn(t)}function ai(e,t){if("input"===e||"change"===e)return Xn(t)}var si="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ci(e,t){if(si(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!d.call(t,r)||!si(e[r],t[r]))return!1}return!0}function li(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ui(e,t){var n,i=li(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=li(i)}}function di(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?di(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hi(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fi(e){var t=hi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&di(n.ownerDocument.documentElement,n)){if(null!==i&&pi(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=void 0===i.end?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=ui(n,o);var a=ui(n,i);r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mi=u&&"documentMode"in document&&11>=document.documentMode,gi=null,vi=null,bi=null,yi=!1;function Si(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yi||null==gi||gi!==K(i)||(i="selectionStart"in(i=gi)&&pi(i)?{start:i.selectionStart,end:i.selectionEnd}:{anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},bi&&ci(bi,i)||(bi=i,0<(i=Wi(vi,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=gi)))}function Ci(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xi={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionend:Ci("Transition","TransitionEnd")},Ii={},wi={};function Ei(e){if(Ii[e])return Ii[e];if(!xi[e])return e;var t,n=xi[e];for(t in n)if(n.hasOwnProperty(t)&&t in wi)return Ii[e]=n[t];return e}u&&(wi=document.createElement("div").style,"AnimationEvent"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),"TransitionEvent"in window||delete xi.transitionend.transition);var Ti=Ei("animationend"),Pi=Ei("animationiteration"),Ai=Ei("animationstart"),_i=Ei("transitionend"),Mi=new Map,ki="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Oi(e,t){Mi.set(e,t),c(t,[e])}for(var Ni=0;Ni<ki.length;Ni++){var Ri=ki[Ni];Oi(Ri.toLowerCase(),"on"+(Ri[0].toUpperCase()+Ri.slice(1)))}Oi(Ti,"onAnimationEnd"),Oi(Pi,"onAnimationIteration"),Oi(Ai,"onAnimationStart"),Oi("dblclick","onDoubleClick"),Oi("focusin","onFocus"),Oi("focusout","onBlur"),Oi(_i,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ji=new Set("cancel close invalid load scroll toggle".split(" ").concat(Li));function Di(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,r,a,s,c,l){if(Ve.apply(this,arguments),je){if(!je)throw Error(o(198));var u=De;je=!1,De=null,Fe||(Fe=!0,Be=u)}}(i,t,void 0,e),e.currentTarget=null}function Fi(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0<=a;a--){var s=i[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&r.isPropagationStopped())break e;Di(r,s,l),o=c}else for(a=0;a<i.length;a++){if(c=(s=i[a]).instance,l=s.currentTarget,s=s.listener,c!==o&&r.isPropagationStopped())break e;Di(r,s,l),o=c}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Bi(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var i=e+"__bubble";n.has(i)||(Gi(t,e,2,!1),n.add(i))}function Ui(e,t,n){var i=0;t&&(i|=4),Gi(n,e,i,t)}var Vi="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[Vi]){e[Vi]=!0,a.forEach((function(t){"selectionchange"!==t&&(ji.has(t)||Ui(t,!1,e),Ui(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vi]||(t[Vi]=!0,Ui("selectionchange",!1,t))}}function Gi(e,t,n,i){switch(Yt(t)){case 1:var r=$t;break;case 4:r=Wt;break;default:r=qt}n=r.bind(null,t,n,e),r=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),i?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function zi(e,t,n,i,r){var o=i;if(0==(1&t)&&0==(2&t)&&null!==i)e:for(;;){if(null===i)return;var a=i.tag;if(3===a||4===a){var s=i.stateNode.containerInfo;if(s===r||8===s.nodeType&&s.parentNode===r)break;if(4===a)for(a=i.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===r||8===c.nodeType&&c.parentNode===r))return;a=a.return}for(;null!==s;){if(null===(a=br(s)))return;if(5===(c=a.tag)||6===c){i=o=a;continue e}s=s.parentNode}}i=i.return}ke((function(){var i=o,r=Ce(n),a=[];e:{var s=Mi.get(e);if(void 0!==s){var c=un,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=Pn;break;case"focusin":l="focus",c=gn;break;case"focusout":l="blur",c=gn;break;case"beforeblur":case"afterblur":c=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=_n;break;case Ti:case Pi:case Ai:c=vn;break;case _i:c=Mn;break;case"scroll":c=hn;break;case"wheel":c=On;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=An}var u=0!=(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=i;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&null!=(m=Oe(f,h))&&u.push($i(f,m,p))),d)break;f=f.return}0<u.length&&(s=new c(s,l,null,n,r),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Se||!(l=n.relatedTarget||n.fromElement)||!br(l)&&!l[fr])&&(c||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=i,null!==(l=(l=n.relatedTarget||n.toElement)?br(l):null)&&(l!==(d=He(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=i),c!==l)){if(u=fn,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==c?s:Sr(c),p=null==l?s:Sr(l),(s=new u(m,f+"leave",c,n,r)).target=d,s.relatedTarget=p,m=null,br(r)===i&&((u=new u(h,f+"enter",l,n,r)).target=p,u.relatedTarget=d,m=u),d=m,c&&l)e:{for(h=l,f=0,p=u=c;p;p=qi(p))f++;for(p=0,m=h;m;m=qi(m))p++;for(;0<f-p;)u=qi(u),f--;for(;0<p-f;)h=qi(h),p--;for(;f--;){if(u===h||null!==h&&u===h.alternate)break e;u=qi(u),h=qi(h)}u=null}else u=null;null!==c&&Ki(a,s,c,u,!1),null!==l&&null!==d&&Ki(a,d,l,u,!0)}if("select"===(c=(s=i?Sr(i):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var g=Yn;else if(zn(s))if(Qn)g=ai;else{g=ri;var v=ii}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=oi);switch(g&&(g=g(e,i))?$n(a,g,n,r):(v&&v(e,s,i),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=i?Sr(i):window,e){case"focusin":(zn(v)||"true"===v.contentEditable)&&(gi=v,vi=i,bi=null);break;case"focusout":bi=vi=gi=null;break;case"mousedown":yi=!0;break;case"contextmenu":case"mouseup":case"dragend":yi=!1,Si(a,n,r);break;case"selectionchange":if(mi)break;case"keydown":case"keyup":Si(a,n,r)}var b;if(Rn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?Un(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=en()):(Jt="value"in(Qt=r)?Qt.value:Qt.textContent,Hn=!0)),0<(v=Wi(i,y)).length&&(y=new Sn(y,e,null,n,r),a.push({event:y,listeners:v}),(b||null!==(b=Vn(n)))&&(y.data=b))),(b=jn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Rn&&Un(e,t)?(e=en(),Zt=Jt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(i=Wi(i,"onBeforeInput")).length&&(r=new Sn("onBeforeInput","beforeinput",null,n,r),a.push({event:r,listeners:i}),r.data=b)}Fi(a,t)}))}function $i(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wi(e,t){for(var n=t+"Capture",i=[];null!==e;){var r=e,o=r.stateNode;5===r.tag&&null!==o&&(r=o,null!=(o=Oe(e,n))&&i.unshift($i(e,o,r)),null!=(o=Oe(e,t))&&i.push($i(e,o,r))),e=e.return}return i}function qi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ki(e,t,n,i,r){for(var o=t._reactName,a=[];null!==n&&n!==i;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===i)break;5===s.tag&&null!==l&&(s=l,r?null!=(c=Oe(n,o))&&a.unshift($i(n,c,s)):r||null!=(c=Oe(n,o))&&a.push($i(n,c,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xi=/\r\n?/g,Yi=/\u0000|\uFFFD/g;function Qi(e){return("string"==typeof e?e:""+e).replace(Xi,"\n").replace(Yi,"")}function Ji(e,t,n){if(t=Qi(t),Qi(e)!==t&&n)throw Error(o(425))}function Zi(){}var er=null,tr=null;function nr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ir="function"==typeof setTimeout?setTimeout:void 0,rr="function"==typeof clearTimeout?clearTimeout:void 0,or="function"==typeof Promise?Promise:void 0,ar="function"==typeof queueMicrotask?queueMicrotask:void 0!==or?function(e){return or.resolve(null).then(e).catch(sr)}:ir;function sr(e){setTimeout((function(){throw e}))}function cr(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return e.removeChild(r),void Ht(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);Ht(t)}function lr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ur(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,pr="__reactProps$"+dr,fr="__reactContainer$"+dr,mr="__reactEvents$"+dr,gr="__reactListeners$"+dr,vr="__reactHandles$"+dr;function br(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ur(e);null!==e;){if(n=e[hr])return n;e=ur(e)}return t}n=(e=n).parentNode}return null}function yr(e){return!(e=e[hr]||e[fr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Sr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Cr(e){return e[pr]||null}var xr=[],Ir=-1;function wr(e){return{current:e}}function Er(e){0>Ir||(e.current=xr[Ir],xr[Ir]=null,Ir--)}function Tr(e,t){Ir++,xr[Ir]=e.current,e.current=t}var Pr={},Ar=wr(Pr),_r=wr(!1),Mr=Pr;function kr(e,t){var n=e.type.contextTypes;if(!n)return Pr;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Or(e){return null!=e.childContextTypes}function Nr(){Er(_r),Er(Ar)}function Rr(e,t,n){if(Ar.current!==Pr)throw Error(o(168));Tr(Ar,t),Tr(_r,n)}function Lr(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(o(108,G(e)||"Unknown",r));return D({},n,i)}function jr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pr,Mr=Ar.current,Tr(Ar,e),Tr(_r,_r.current),!0}function Dr(e,t,n){var i=e.stateNode;if(!i)throw Error(o(169));n?(e=Lr(e,t,Mr),i.__reactInternalMemoizedMergedChildContext=e,Er(_r),Er(Ar),Tr(Ar,e)):Er(_r),Tr(_r,n)}var Fr=null,Br=!1,Ur=!1;function Vr(e){null===Fr?Fr=[e]:Fr.push(e)}function Hr(){if(!Ur&&null!==Fr){Ur=!0;var e=0,t=yt;try{var n=Fr;for(yt=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}Fr=null,Br=!1}catch(t){throw null!==Fr&&(Fr=Fr.slice(e+1)),qe(Ze,Hr),t}finally{yt=t,Ur=!1}}return null}var Gr=[],zr=0,$r=null,Wr=0,qr=[],Kr=0,Xr=null,Yr=1,Qr="";function Jr(e,t){Gr[zr++]=Wr,Gr[zr++]=$r,$r=e,Wr=t}function Zr(e,t,n){qr[Kr++]=Yr,qr[Kr++]=Qr,qr[Kr++]=Xr,Xr=e;var i=Yr;e=Qr;var r=32-at(i)-1;i&=~(1<<r),n+=1;var o=32-at(t)+r;if(30<o){var a=r-r%5;o=(i&(1<<a)-1).toString(32),i>>=a,r-=a,Yr=1<<32-at(t)+r|n<<r|i,Qr=o+e}else Yr=1<<o|n<<r|i,Qr=e}function eo(e){null!==e.return&&(Jr(e,1),Zr(e,1,0))}function to(e){for(;e===$r;)$r=Gr[--zr],Gr[zr]=null,Wr=Gr[--zr],Gr[zr]=null;for(;e===Xr;)Xr=qr[--Kr],qr[Kr]=null,Qr=qr[--Kr],qr[Kr]=null,Yr=qr[--Kr],qr[Kr]=null}var no=null,io=null,ro=!1,oo=null;function ao(e,t){var n=Ml(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,io=lr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,io=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xr?{id:Yr,overflow:Qr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ml(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,io=null,!0);default:return!1}}function co(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lo(e){if(ro){var t=io;if(t){var n=t;if(!so(e,t)){if(co(e))throw Error(o(418));t=lr(n.nextSibling);var i=no;t&&so(e,t)?ao(i,n):(e.flags=-4097&e.flags|2,ro=!1,no=e)}}else{if(co(e))throw Error(o(418));e.flags=-4097&e.flags|2,ro=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!ro)return uo(e),ro=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nr(e.type,e.memoizedProps)),t&&(t=io)){if(co(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=lr(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){io=lr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}io=null}}else io=no?lr(e.stateNode.nextSibling):null;return!0}function po(){for(var e=io;e;)e=lr(e.nextSibling)}function fo(){io=no=null,ro=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=S.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var i=n.stateNode}if(!i)throw Error(o(147,e));var r=i,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function bo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yo(e){return(0,e._init)(e._payload)}function So(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Ol(e,t)).index=0,e.sibling=null,e}function a(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,i){return null===t||6!==t.tag?((t=jl(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function l(e,t,n,i){var o=n.type;return o===I?d(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&yo(o)===t.type)?((i=r(t,n.props)).ref=vo(e,t,n),i.return=e,i):((i=Nl(n.type,n.key,n.props,null,e.mode,i)).ref=vo(e,t,n),i.return=e,i)}function u(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dl(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,i,o){return null===t||7!==t.tag?((t=Rl(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case C:return(n=Nl(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case x:return(t=Dl(t,e.mode,n)).return=e,t;case O:return h(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Rl(t,e.mode,n,null)).return=e,t;bo(e,t)}return null}function p(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==r?null:c(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===r?l(e,t,n,i):null;case x:return n.key===r?u(e,t,n,i):null;case O:return p(e,t,(r=n._init)(n._payload),i)}if(te(n)||L(n))return null!==r?null:d(e,t,n,i,null);bo(e,n)}return null}function f(e,t,n,i,r){if("string"==typeof i&&""!==i||"number"==typeof i)return c(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case C:return l(t,e=e.get(null===i.key?n:i.key)||null,i,r);case x:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r);case O:return f(e,t,n,(0,i._init)(i._payload),r)}if(te(i)||L(i))return d(t,e=e.get(n)||null,i,r,null);bo(t,i)}return null}function m(r,o,s,c){for(var l=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(r,d,s[m],c);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),o=a(v,o,m),null===u?l=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(r,d),ro&&Jr(r,m),l;if(null===d){for(;m<s.length;m++)null!==(d=h(r,s[m],c))&&(o=a(d,o,m),null===u?l=d:u.sibling=d,u=d);return ro&&Jr(r,m),l}for(d=i(r,d);m<s.length;m++)null!==(g=f(d,r,m,s[m],c))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?l=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(r,e)})),ro&&Jr(r,m),l}function g(r,s,c,l){var u=L(c);if("function"!=typeof u)throw Error(o(150));if(null==(c=u.call(c)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,b=c.next();null!==m&&!b.done;g++,b=c.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(r,m,b.value,l);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(r,m),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,m=v}if(b.done)return n(r,m),ro&&Jr(r,g),u;if(null===m){for(;!b.done;g++,b=c.next())null!==(b=h(r,b.value,l))&&(s=a(b,s,g),null===d?u=b:d.sibling=b,d=b);return ro&&Jr(r,g),u}for(m=i(r,m);!b.done;g++,b=c.next())null!==(b=f(m,r,g,b.value,l))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(r,e)})),ro&&Jr(r,g),u}return function e(i,o,a,c){if("object"==typeof a&&null!==a&&a.type===I&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case C:e:{for(var l=a.key,u=o;null!==u;){if(u.key===l){if((l=a.type)===I){if(7===u.tag){n(i,u.sibling),(o=r(u,a.props.children)).return=i,i=o;break e}}else if(u.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===O&&yo(l)===u.type){n(i,u.sibling),(o=r(u,a.props)).ref=vo(i,u,a),o.return=i,i=o;break e}n(i,u);break}t(i,u),u=u.sibling}a.type===I?((o=Rl(a.props.children,i.mode,c,a.key)).return=i,i=o):((c=Nl(a.type,a.key,a.props,null,i.mode,c)).ref=vo(i,o,a),c.return=i,i=c)}return s(i);case x:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(i,o.sibling),(o=r(o,a.children||[])).return=i,i=o;break e}n(i,o);break}t(i,o),o=o.sibling}(o=Dl(a,i.mode,c)).return=i,i=o}return s(i);case O:return e(i,o,(u=a._init)(a._payload),c)}if(te(a))return m(i,o,a,c);if(L(a))return g(i,o,a,c);bo(i,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(i,o.sibling),(o=r(o,a)).return=i,i=o):(n(i,o),(o=jl(a,i.mode,c)).return=i,i=o),s(i)):n(i,o)}}var Co=So(!0),xo=So(!1),Io=wr(null),wo=null,Eo=null,To=null;function Po(){To=Eo=wo=null}function Ao(e){var t=Io.current;Er(Io),e._currentValue=t}function _o(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){wo=e,To=Eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ys=!0),e.firstContext=null)}function ko(e){var t=e._currentValue;if(To!==e)if(e={context:e,memoizedValue:t,next:null},null===Eo){if(null===wo)throw Error(o(308));Eo=e,wo.dependencies={lanes:0,firstContext:e}}else Eo=Eo.next=e;return t}var Oo=null;function No(e){null===Oo?Oo=[e]:Oo.push(e)}function Ro(e,t,n,i){var r=t.interleaved;return null===r?(n.next=n,No(t)):(n.next=r.next,r.next=n),t.interleaved=n,Lo(e,i)}function Lo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var jo=!1;function Do(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,0!=(2&Pc)){var r=i.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Lo(e,n)}return null===(r=i.interleaved)?(t.next=t,No(i)):(t.next=r.next,r.next=t),i.interleaved=t,Lo(e,n)}function Vo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ho(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?r=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?r=o=t:o=o.next=t}else r=o=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Go(e,t,n,i){var r=e.updateQueue;jo=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var c=s,l=c.next;c.next=null,null===a?o=l:a.next=l,a=c;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c)}if(null!==o){var d=r.baseState;for(a=0,u=l=c=null,s=o;;){var h=s.lane,p=s.eventTime;if((i&h)===h){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(h=t,p=n,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=m.payload)?f.call(p,d,h):f))break e;d=D({},d,h);break e;case 2:jo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=r.effects)?r.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(l=u=p,c=d):u=u.next=p,a|=h;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(h=s).next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}if(null===u&&(c=d),r.baseState=c,r.firstBaseUpdate=l,r.lastBaseUpdate=u,null!==(t=r.shared.interleaved)){r=t;do{a|=r.lane,r=r.next}while(r!==t)}else null===o&&(r.shared.lanes=0);Lc|=a,e.lanes=a,e.memoizedState=d}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(o(191,r));r.call(i)}}}var $o={},Wo=wr($o),qo=wr($o),Ko=wr($o);function Xo(e){if(e===$o)throw Error(o(174));return e}function Yo(e,t){switch(Tr(Ko,t),Tr(qo,e),Tr(Wo,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Er(Wo),Tr(Wo,t)}function Qo(){Er(Wo),Er(qo),Er(Ko)}function Jo(e){Xo(Ko.current);var t=Xo(Wo.current),n=ce(t,e.type);t!==n&&(Tr(qo,e),Tr(Wo,n))}function Zo(e){qo.current===e&&(Er(Wo),Er(qo))}var ea=wr(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ia(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ra=S.ReactCurrentDispatcher,oa=S.ReactCurrentBatchConfig,aa=0,sa=null,ca=null,la=null,ua=!1,da=!1,ha=0,pa=0;function fa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!si(e[n],t[n]))return!1;return!0}function ga(e,t,n,i,r,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ra.current=null===e||null===e.memoizedState?Za:es,e=n(i,r),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(o(301));a+=1,la=ca=null,t.updateQueue=null,ra.current=ts,e=n(i,r)}while(da)}if(ra.current=Ja,t=null!==ca&&null!==ca.next,aa=0,la=ca=sa=null,ua=!1,t)throw Error(o(300));return e}function va(){var e=0!==ha;return ha=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?sa.memoizedState=la=e:la=la.next=e,la}function ya(){if(null===ca){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===la?sa.memoizedState:la.next;if(null!==t)la=t,ca=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===la?sa.memoizedState=la=e:la=la.next=e}return la}function Sa(e,t){return"function"==typeof t?t(e):t}function Ca(e){var t=ya(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var i=ca,r=i.baseQueue,a=n.pending;if(null!==a){if(null!==r){var s=r.next;r.next=a.next,a.next=s}i.baseQueue=r=a,n.pending=null}if(null!==r){a=r.next,i=i.baseState;var c=s=null,l=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(c=l=h,s=i):l=l.next=h,sa.lanes|=d,Lc|=d}u=u.next}while(null!==u&&u!==a);null===l?s=i:l.next=c,si(i,t.memoizedState)||(ys=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(null!==(e=n.interleaved)){r=e;do{a=r.lane,sa.lanes|=a,Lc|=a,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xa(e){var t=ya(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,a=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{a=e(a,s.action),s=s.next}while(s!==r);si(a,t.memoizedState)||(ys=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Ia(){}function wa(e,t){var n=sa,i=ya(),r=t(),a=!si(i.memoizedState,r);if(a&&(i.memoizedState=r,ys=!0),i=i.queue,ja(Pa.bind(null,n,i,e),[e]),i.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,ka(9,Ta.bind(null,n,i,r,t),void 0,null),null===Ac)throw Error(o(349));0!=(30&aa)||Ea(n,t,r)}return r}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ta(e,t,n,i){t.value=n,t.getSnapshot=i,Aa(t)&&_a(e)}function Pa(e,t,n){return n((function(){Aa(t)&&_a(e)}))}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!si(e,n)}catch(e){return!0}}function _a(e){var t=Lo(e,1);null!==t&&tl(t,e,1,-1)}function Ma(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[t.memoizedState,e]}function ka(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Oa(){return ya().memoizedState}function Na(e,t,n,i){var r=ba();sa.flags|=e,r.memoizedState=ka(1|t,n,void 0,void 0===i?null:i)}function Ra(e,t,n,i){var r=ya();i=void 0===i?null:i;var o=void 0;if(null!==ca){var a=ca.memoizedState;if(o=a.destroy,null!==i&&ma(i,a.deps))return void(r.memoizedState=ka(t,n,o,i))}sa.flags|=e,r.memoizedState=ka(1|t,n,o,i)}function La(e,t){return Na(8390656,8,e,t)}function ja(e,t){return Ra(2048,8,e,t)}function Da(e,t){return Ra(4,2,e,t)}function Fa(e,t){return Ra(4,4,e,t)}function Ba(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4,4,Ba.bind(null,t,e),n)}function Va(){}function Ha(e,t){var n=ya();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&ma(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Ga(e,t){var n=ya();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&ma(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function za(e,t,n){return 0==(21&aa)?(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n):(si(n,t)||(n=mt(),sa.lanes|=n,Lc|=n,e.baseState=!0),t)}function $a(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var i=oa.transition;oa.transition={};try{e(!1),t()}finally{yt=n,oa.transition=i}}function Wa(){return ya().memoizedState}function qa(e,t,n){var i=el(e);n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e)?Ya(t,n):null!==(n=Ro(e,t,n,i))&&(tl(n,e,i,Zc()),Qa(n,t,i))}function Ka(e,t,n){var i=el(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Ya(t,r);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(r.hasEagerState=!0,r.eagerState=s,si(s,a)){var c=t.interleaved;return null===c?(r.next=r,No(t)):(r.next=c.next,c.next=r),void(t.interleaved=r)}}catch(e){}null!==(n=Ro(e,t,r,i))&&(tl(n,e,i,r=Zc()),Qa(n,t,i))}}function Xa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!=(4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Ja={readContext:ko,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},Za={readContext:ko,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:ko,useEffect:La,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Na(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=ba();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=qa.bind(null,sa,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ma,useDebugValue:Va,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=$a.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=sa,r=ba();if(ro){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ac)throw Error(o(349));0!=(30&aa)||Ea(i,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,La(Pa.bind(null,i,a,e),[e]),i.flags|=2048,ka(9,Ta.bind(null,i,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=Ac.identifierPrefix;if(ro){var n=Qr;t=":"+t+"R"+(n=(Yr&~(1<<32-at(Yr)-1)).toString(32)+n),0<(n=ha++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:ko,useCallback:Ha,useContext:ko,useEffect:ja,useImperativeHandle:Ua,useInsertionEffect:Da,useLayoutEffect:Fa,useMemo:Ga,useReducer:Ca,useRef:Oa,useState:function(){return Ca(Sa)},useDebugValue:Va,useDeferredValue:function(e){return za(ya(),ca.memoizedState,e)},useTransition:function(){return[Ca(Sa)[0],ya().memoizedState]},useMutableSource:Ia,useSyncExternalStore:wa,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:ko,useCallback:Ha,useContext:ko,useEffect:ja,useImperativeHandle:Ua,useInsertionEffect:Da,useLayoutEffect:Fa,useMemo:Ga,useReducer:xa,useRef:Oa,useState:function(){return xa(Sa)},useDebugValue:Va,useDeferredValue:function(e){var t=ya();return null===ca?t.memoizedState=e:za(t,ca.memoizedState,e)},useTransition:function(){return[xa(Sa)[0],ya().memoizedState]},useMutableSource:Ia,useSyncExternalStore:wa,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function is(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var rs={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Zc(),r=el(e),o=Bo(i,r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Uo(e,o,r))&&(tl(t,e,r,i),Vo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Zc(),r=el(e),o=Bo(i,r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Uo(e,o,r))&&(tl(t,e,r,i),Vo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zc(),i=el(e),r=Bo(n,i);r.tag=2,null!=t&&(r.callback=t),null!==(t=Uo(e,r,i))&&(tl(t,e,i,n),Vo(t,e,i))}};function os(e,t,n,i,r,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&ci(n,i)&&ci(r,o))}function as(e,t,n){var i=!1,r=Pr,o=t.contextType;return"object"==typeof o&&null!==o?o=ko(o):(r=Or(t)?Mr:Ar.current,o=(i=null!=(i=t.contextTypes))?kr(e,r):Pr),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=rs,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function cs(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Do(e);var o=t.contextType;"object"==typeof o&&null!==o?r.context=ko(o):(o=Or(t)?Mr:Ar.current,r.context=kr(e,o)),r.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(is(e,t,o,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&rs.enqueueReplaceState(r,r.state,null),Go(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.flags|=4194308)}function ls(e,t){try{var n="",i=t;do{n+=V(i),i=i.return}while(i);var r=n}catch(e){r="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:r,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Bo(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Gc||(Gc=!0,zc=i),ds(0,t)},n}function fs(e,t,n){(n=Bo(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof i&&(null===$c?$c=new Set([this]):$c.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new hs;var r=new Set;i.set(t,r)}else void 0===(r=i.get(t))&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=wl.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,i,r){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bo(-1,1)).tag=2,Uo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var bs=S.ReactCurrentOwner,ys=!1;function Ss(e,t,n,i){t.child=null===e?xo(t,null,n,i):Co(t,e.child,n,i)}function Cs(e,t,n,i,r){n=n.render;var o=t.ref;return Mo(t,r),i=ga(e,t,n,i,o,r),n=va(),null===e||ys?(ro&&n&&eo(t),t.flags|=1,Ss(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Gs(e,t,r))}function xs(e,t,n,i,r){if(null===e){var o=n.type;return"function"!=typeof o||kl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nl(n.type,null,i,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Is(e,t,o,i,r))}if(o=e.child,0==(e.lanes&r)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ci)(a,i)&&e.ref===t.ref)return Gs(e,t,r)}return t.flags|=1,(e=Ol(o,i)).ref=t.ref,e.return=t,t.child=e}function Is(e,t,n,i,r){if(null!==e){var o=e.memoizedProps;if(ci(o,i)&&e.ref===t.ref){if(ys=!1,t.pendingProps=i=o,0==(e.lanes&r))return t.lanes=e.lanes,Gs(e,t,r);0!=(131072&e.flags)&&(ys=!0)}}return Ts(e,t,n,i,r)}function ws(e,t,n){var i=t.pendingProps,r=i.children,o=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tr(Oc,kc),kc|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tr(Oc,kc),kc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==o?o.baseLanes:n,Tr(Oc,kc),kc|=i}else null!==o?(i=o.baseLanes|n,t.memoizedState=null):i=n,Tr(Oc,kc),kc|=i;return Ss(e,t,r,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,i,r){var o=Or(n)?Mr:Ar.current;return o=kr(t,o),Mo(t,r),n=ga(e,t,n,i,o,r),i=va(),null===e||ys?(ro&&i&&eo(t),t.flags|=1,Ss(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Gs(e,t,r))}function Ps(e,t,n,i,r){if(Or(n)){var o=!0;jr(t)}else o=!1;if(Mo(t,r),null===t.stateNode)Hs(e,t),as(t,n,i),cs(t,n,i,r),i=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;l="object"==typeof l&&null!==l?ko(l):kr(t,l=Or(n)?Mr:Ar.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||c!==l)&&ss(t,a,i,l),jo=!1;var h=t.memoizedState;a.state=h,Go(t,i,a,r),c=t.memoizedState,s!==i||h!==c||_r.current||jo?("function"==typeof u&&(is(t,n,u,i),c=t.memoizedState),(s=jo||os(t,n,s,i,h,c,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=l,i=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,Fo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ns(t.type,s),a.props=l,d=t.pendingProps,h=a.context,c="object"==typeof(c=n.contextType)&&null!==c?ko(c):kr(t,c=Or(n)?Mr:Ar.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==c)&&ss(t,a,i,c),jo=!1,h=t.memoizedState,a.state=h,Go(t,i,a,r);var f=t.memoizedState;s!==d||h!==f||_r.current||jo?("function"==typeof p&&(is(t,n,p,i),f=t.memoizedState),(l=jo||os(t,n,l,i,h,f,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,f,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,f,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=f),a.props=i,a.state=f,a.context=c,i=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),i=!1)}return As(e,t,n,i,o,r)}function As(e,t,n,i,r,o){Es(e,t);var a=0!=(128&t.flags);if(!i&&!a)return r&&Dr(t,n,!1),Gs(e,t,o);i=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):Ss(e,t,s,o),t.memoizedState=i.state,r&&Dr(t,n,!0),t.child}function _s(e){var t=e.stateNode;t.pendingContext?Rr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Rr(0,t.context,!1),Yo(e,t.containerInfo)}function Ms(e,t,n,i,r){return fo(),mo(r),t.flags|=256,Ss(e,t,n,i),t.child}var ks,Os,Ns,Rs={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var i,r=t.pendingProps,a=ea.current,s=!1,c=0!=(128&t.flags);if((i=c)||(i=(null===e||null!==e.memoizedState)&&0!=(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Tr(ea,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(c=r.children,e=r.fallback,s?(r=t.mode,s=t.child,c={mode:"hidden",children:c},0==(1&r)&&null!==s?(s.childLanes=0,s.pendingProps=c):s=Ll(c,r,0,null),e=Rl(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Rs,e):Ds(t,c));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,n,i,r,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,i=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,r=t.mode,i=Ll({mode:"visible",children:i.children},r,0,null),(a=Rl(a,r,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,0!=(1&t.mode)&&Co(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Rs,a);if(0==(1&t.mode))return Fs(e,t,s,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var c=i.dgst;return i=c,Fs(e,t,s,i=us(a=Error(o(419)),i,void 0))}if(c=0!=(s&e.childLanes),ys||c){if(null!==(i=Ac)){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!=(r&(i.suspendedLanes|s))?0:r)&&r!==a.retryLane&&(a.retryLane=r,Lo(e,r),tl(i,e,r,-1))}return fl(),Fs(e,t,s,i=us(Error(o(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Tl.bind(null,e),r._reactRetry=t,null):(e=a.treeContext,io=lr(r.nextSibling),no=t,ro=!0,oo=null,null!==e&&(qr[Kr++]=Yr,qr[Kr++]=Qr,qr[Kr++]=Xr,Yr=e.id,Qr=e.overflow,Xr=t),(t=Ds(t,i.children)).flags|=4096,t)}(e,t,c,r,i,a,n);if(s){s=r.fallback,c=t.mode,i=(a=e.child).sibling;var l={mode:"hidden",children:r.children};return 0==(1&c)&&t.child!==a?((r=t.child).childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ol(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==i?s=Ol(i,s):(s=Rl(s,c,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,c=null===(c=e.child.memoizedState)?Ls(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~n,t.memoizedState=Rs,r}return e=(s=e.child).sibling,r=Ol(s,{mode:"visible",children:r.children}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ds(e,t){return(t=Ll({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,i){return null!==i&&mo(i),Co(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),_o(e.return,t,n)}function Us(e,t,n,i,r){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function Vs(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(Ss(e,t,i.children,n),0!=(2&(i=ea.current)))i=1&i|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Tr(ea,i),0==(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Us(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===ta(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lc|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ol(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ol(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function zs(e,t){if(!ro)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function $s(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Ws(e,t,n){var i=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $s(t),null;case 1:case 17:return Or(t.type)&&Nr(),$s(t),null;case 3:return i=t.stateNode,Qo(),Er(_r),Er(Ar),ia(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(ol(oo),oo=null))),$s(t),null;case 5:Zo(t);var r=Xo(Ko.current);if(n=t.type,null!==e&&null!=t.stateNode)Os(e,t,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(o(166));return $s(t),null}if(e=Xo(Wo.current),ho(t)){i=t.stateNode,n=t.type;var a=t.memoizedProps;switch(i[hr]=t,i[pr]=a,e=0!=(1&t.mode),n){case"dialog":Bi("cancel",i),Bi("close",i);break;case"iframe":case"object":case"embed":Bi("load",i);break;case"video":case"audio":for(r=0;r<Li.length;r++)Bi(Li[r],i);break;case"source":Bi("error",i);break;case"img":case"image":case"link":Bi("error",i),Bi("load",i);break;case"details":Bi("toggle",i);break;case"input":Y(i,a),Bi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},Bi("invalid",i);break;case"textarea":re(i,a),Bi("invalid",i)}for(var c in be(n,a),r=null,a)if(a.hasOwnProperty(c)){var l=a[c];"children"===c?"string"==typeof l?i.textContent!==l&&(!0!==a.suppressHydrationWarning&&Ji(i.textContent,l,e),r=["children",l]):"number"==typeof l&&i.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Ji(i.textContent,l,e),r=["children",""+l]):s.hasOwnProperty(c)&&null!=l&&"onScroll"===c&&Bi("scroll",i)}switch(n){case"input":W(i),Z(i,a,!0);break;case"textarea":W(i),ae(i);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(i.onclick=Zi)}i=r,t.updateQueue=i,null!==i&&(t.flags|=4)}else{c=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),"select"===n&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[hr]=t,e[pr]=i,ks(e,t),t.stateNode=e;e:{switch(c=ye(n,i),n){case"dialog":Bi("cancel",e),Bi("close",e),r=i;break;case"iframe":case"object":case"embed":Bi("load",e),r=i;break;case"video":case"audio":for(r=0;r<Li.length;r++)Bi(Li[r],e);r=i;break;case"source":Bi("error",e),r=i;break;case"img":case"image":case"link":Bi("error",e),Bi("load",e),r=i;break;case"details":Bi("toggle",e),r=i;break;case"input":Y(e,i),r=X(e,i),Bi("invalid",e);break;case"option":default:r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=D({},i,{value:void 0}),Bi("invalid",e);break;case"textarea":re(e,i),r=ie(e,i),Bi("invalid",e)}for(a in be(n,r),l=r)if(l.hasOwnProperty(a)){var u=l[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"==typeof u&&he(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Bi("scroll",e):null!=u&&y(e,a,u,c))}switch(n){case"input":W(e),Z(e,i,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=i.value&&e.setAttribute("value",""+z(i.value));break;case"select":e.multiple=!!i.multiple,null!=(a=i.value)?ne(e,!!i.multiple,a,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=Zi)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $s(t),null;case 6:if(e&&null!=t.stateNode)Ns(0,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(o(166));if(n=Xo(Ko.current),Xo(Wo.current),ho(t)){if(i=t.stateNode,n=t.memoizedProps,i[hr]=t,(a=i.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Ji(i.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ji(i.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[hr]=t,t.stateNode=i}return $s(t),null;case 13:if(Er(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ro&&null!==io&&0!=(1&t.mode)&&0==(128&t.flags))po(),fo(),t.flags|=98560,a=!1;else if(a=ho(t),null!==i&&null!==i.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hr]=t}else fo(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$s(t),a=!1}else null!==oo&&(ol(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((i=null!==i)!=(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ea.current)?0===Nc&&(Nc=3):fl())),null!==t.updateQueue&&(t.flags|=4),$s(t),null);case 4:return Qo(),null===e&&Hi(t.stateNode.containerInfo),$s(t),null;case 10:return Ao(t.type._context),$s(t),null;case 19:if(Er(ea),null===(a=t.memoizedState))return $s(t),null;if(i=0!=(128&t.flags),null===(c=a.rendering))if(i)zs(a,!1);else{if(0!==Nc||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=ta(e))){for(t.flags|=128,zs(a,!1),null!==(i=c.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tr(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Vc&&(t.flags|=128,i=!0,zs(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(c))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),zs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!ro)return $s(t),null}else 2*Qe()-a.renderingStartTime>Vc&&1073741824!==n&&(t.flags|=128,i=!0,zs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Tr(ea,i?1&n|2:1&n),t):($s(t),null);case 22:case 23:return ul(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!=(1&t.mode)?0!=(1073741824&kc)&&($s(t),6&t.subtreeFlags&&(t.flags|=8192)):$s(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function qs(e,t){switch(to(t),t.tag){case 1:return Or(t.type)&&Nr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qo(),Er(_r),Er(Ar),ia(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(Er(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Er(ea),null;case 4:return Qo(),null;case 10:return Ao(t.type._context),null;case 22:case 23:return ul(),null;default:return null}}ks=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,Xo(Wo.current);var o,a=null;switch(n){case"input":r=X(e,r),i=X(e,i),a=[];break;case"select":r=D({},r,{value:void 0}),i=D({},i,{value:void 0}),a=[];break;case"textarea":r=ie(e,r),i=ie(e,i),a=[];break;default:"function"!=typeof r.onClick&&"function"==typeof i.onClick&&(e.onclick=Zi)}for(u in be(n,i),n=null,r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&null!=r[u])if("style"===u){var c=r[u];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in i){var l=i[u];if(c=null!=r?r[u]:void 0,i.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(o in c)!c.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&c[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Bi("scroll",e),a||c===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,i){n!==i&&(t.flags|=4)};var Ks=!1,Xs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Il(e,t,n)}else n.current=null}function Zs(e,t,n){try{n()}catch(n){Il(e,t,n)}}var ec=!1;function tc(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,void 0!==o&&Zs(t,n,o)}r=r.next}while(r!==i)}}function nc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function ic(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function rc(e){var t=e.alternate;null!==t&&(e.alternate=null,rc(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hr],delete t[pr],delete t[mr],delete t[gr],delete t[vr]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oc(e){return 5===e.tag||3===e.tag||4===e.tag}function ac(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sc(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zi));else if(4!==i&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}function cc(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}var lc=null,uc=!1;function dc(e,t,n){for(n=n.child;null!==n;)hc(e,t,n),n=n.sibling}function hc(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(rt,n)}catch(e){}switch(n.tag){case 5:Xs||Js(n,t);case 6:var i=lc,r=uc;lc=null,dc(e,t,n),uc=r,null!==(lc=i)&&(uc?(e=lc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):lc.removeChild(n.stateNode));break;case 18:null!==lc&&(uc?(e=lc,n=n.stateNode,8===e.nodeType?cr(e.parentNode,n):1===e.nodeType&&cr(e,n),Ht(e)):cr(lc,n.stateNode));break;case 4:i=lc,r=uc,lc=n.stateNode.containerInfo,uc=!0,dc(e,t,n),lc=i,uc=r;break;case 0:case 11:case 14:case 15:if(!Xs&&null!==(i=n.updateQueue)&&null!==(i=i.lastEffect)){r=i=i.next;do{var o=r,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&Zs(n,t,a),r=r.next}while(r!==i)}dc(e,t,n);break;case 1:if(!Xs&&(Js(n,t),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(e){Il(n,t,e)}dc(e,t,n);break;case 21:dc(e,t,n);break;case 22:1&n.mode?(Xs=(i=Xs)||null!==n.memoizedState,dc(e,t,n),Xs=i):dc(e,t,n);break;default:dc(e,t,n)}}function pc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var i=Pl.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function fc(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var a=e,s=t,c=s;e:for(;null!==c;){switch(c.tag){case 5:lc=c.stateNode,uc=!1;break e;case 3:case 4:lc=c.stateNode.containerInfo,uc=!0;break e}c=c.return}if(null===lc)throw Error(o(160));hc(a,s,r),lc=null,uc=!1;var l=r.alternate;null!==l&&(l.return=null),r.return=null}catch(e){Il(r,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mc(t,e),t=t.sibling}function mc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fc(t,e),gc(e),4&i){try{tc(3,e,e.return),nc(3,e)}catch(t){Il(e,e.return,t)}try{tc(5,e,e.return)}catch(t){Il(e,e.return,t)}}break;case 1:fc(t,e),gc(e),512&i&&null!==n&&Js(n,n.return);break;case 5:if(fc(t,e),gc(e),512&i&&null!==n&&Js(n,n.return),32&e.flags){var r=e.stateNode;try{he(r,"")}catch(t){Il(e,e.return,t)}}if(4&i&&null!=(r=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,c=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===c&&"radio"===a.type&&null!=a.name&&Q(r,a),ye(c,s);var u=ye(c,a);for(s=0;s<l.length;s+=2){var d=l[s],h=l[s+1];"style"===d?ge(r,h):"dangerouslySetInnerHTML"===d?de(r,h):"children"===d?he(r,h):y(r,d,h,u)}switch(c){case"input":J(r,a);break;case"textarea":oe(r,a);break;case"select":var p=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(r,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(r,!!a.multiple,a.defaultValue,!0):ne(r,!!a.multiple,a.multiple?[]:"",!1))}r[pr]=a}catch(t){Il(e,e.return,t)}}break;case 6:if(fc(t,e),gc(e),4&i){if(null===e.stateNode)throw Error(o(162));r=e.stateNode,a=e.memoizedProps;try{r.nodeValue=a}catch(t){Il(e,e.return,t)}}break;case 3:if(fc(t,e),gc(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Il(e,e.return,t)}break;case 4:default:fc(t,e),gc(e);break;case 13:fc(t,e),gc(e),8192&(r=e.child).flags&&(a=null!==r.memoizedState,r.stateNode.isHidden=a,!a||null!==r.alternate&&null!==r.alternate.memoizedState||(Uc=Qe())),4&i&&pc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||d,fc(t,e),Xs=u):fc(t,e),gc(e),8192&i){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(h=Qs=d;null!==Qs;){switch(f=(p=Qs).child,p.tag){case 0:case 11:case 14:case 15:tc(4,p,p.return);break;case 1:Js(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){i=p,n=p.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Il(i,n,e)}}break;case 5:Js(p,p.return);break;case 22:if(null!==p.memoizedState){Sc(h);continue}}null!==f?(f.return=p,Qs=f):Sc(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{r=h.stateNode,u?"function"==typeof(a=r.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=h.stateNode,s=null!=(l=h.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,c.style.display=me("display",s))}catch(t){Il(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(t){Il(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:fc(t,e),gc(e),4&i&&pc(e);case 21:}}function gc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(oc(n)){var i=n;break e}n=n.return}throw Error(o(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(he(r,""),i.flags&=-33),cc(e,ac(e),r);break;case 3:case 4:var a=i.stateNode.containerInfo;sc(e,ac(e),a);break;default:throw Error(o(161))}}catch(t){Il(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vc(e,t,n){Qs=e,bc(e,t,n)}function bc(e,t,n){for(var i=0!=(1&e.mode);null!==Qs;){var r=Qs,o=r.child;if(22===r.tag&&i){var a=null!==r.memoizedState||Ks;if(!a){var s=r.alternate,c=null!==s&&null!==s.memoizedState||Xs;s=Ks;var l=Xs;if(Ks=a,(Xs=c)&&!l)for(Qs=r;null!==Qs;)c=(a=Qs).child,22===a.tag&&null!==a.memoizedState?Cc(r):null!==c?(c.return=a,Qs=c):Cc(r);for(;null!==o;)Qs=o,bc(o,t,n),o=o.sibling;Qs=r,Ks=s,Xs=l}yc(e)}else 0!=(8772&r.subtreeFlags)&&null!==o?(o.return=r,Qs=o):yc(e)}}function yc(e){for(;null!==Qs;){var t=Qs;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||nc(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Xs)if(null===n)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zo(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,s,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ht(h)}}}break;default:throw Error(o(163))}Xs||512&t.flags&&ic(t)}catch(e){Il(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function Sc(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function Cc(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nc(4,t)}catch(e){Il(t,n,e)}break;case 1:var i=t.stateNode;if("function"==typeof i.componentDidMount){var r=t.return;try{i.componentDidMount()}catch(e){Il(t,r,e)}}var o=t.return;try{ic(t)}catch(e){Il(t,o,e)}break;case 5:var a=t.return;try{ic(t)}catch(e){Il(t,a,e)}}}catch(e){Il(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var xc,Ic=Math.ceil,wc=S.ReactCurrentDispatcher,Ec=S.ReactCurrentOwner,Tc=S.ReactCurrentBatchConfig,Pc=0,Ac=null,_c=null,Mc=0,kc=0,Oc=wr(0),Nc=0,Rc=null,Lc=0,jc=0,Dc=0,Fc=null,Bc=null,Uc=0,Vc=1/0,Hc=null,Gc=!1,zc=null,$c=null,Wc=!1,qc=null,Kc=0,Xc=0,Yc=null,Qc=-1,Jc=0;function Zc(){return 0!=(6&Pc)?Qe():-1!==Qc?Qc:Qc=Qe()}function el(e){return 0==(1&e.mode)?1:0!=(2&Pc)&&0!==Mc?Mc&-Mc:null!==go.transition?(0===Jc&&(Jc=mt()),Jc):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function tl(e,t,n,i){if(50<Xc)throw Xc=0,Yc=null,Error(o(185));vt(e,n,i),0!=(2&Pc)&&e===Ac||(e===Ac&&(0==(2&Pc)&&(jc|=n),4===Nc&&al(e,Mc)),nl(e,i),1===n&&0===Pc&&0==(1&t.mode)&&(Vc=Qe()+500,Br&&Hr()))}function nl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,c=r[a];-1===c?0!=(s&n)&&0==(s&i)||(r[a]=pt(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var i=ht(e,e===Ac?Mc:0);if(0===i)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Br=!0,Vr(e)}(sl.bind(null,e)):Vr(sl.bind(null,e)),ar((function(){0==(6&Pc)&&Hr()})),n=null;else{switch(St(i)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=Al(n,il.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function il(e,t){if(Qc=-1,Jc=0,0!=(6&Pc))throw Error(o(327));var n=e.callbackNode;if(Cl()&&e.callbackNode!==n)return null;var i=ht(e,e===Ac?Mc:0);if(0===i)return null;if(0!=(30&i)||0!=(i&e.expiredLanes)||t)t=ml(e,i);else{t=i;var r=Pc;Pc|=2;var a=pl();for(Ac===e&&Mc===t||(Hc=null,Vc=Qe()+500,dl(e,t));;)try{vl();break}catch(t){hl(e,t)}Po(),wc.current=a,Pc=r,null!==_c?t=0:(Ac=null,Mc=0,t=Nc)}if(0!==t){if(2===t&&0!==(r=ft(e))&&(i=r,t=rl(e,r)),1===t)throw n=Rc,dl(e,0),al(e,i),nl(e,Qe()),n;if(6===t)al(e,i);else{if(r=e.current.alternate,0==(30&i)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!si(o(),r))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=ml(e,i))&&0!==(a=ft(e))&&(i=a,t=rl(e,a)),1===t))throw n=Rc,dl(e,0),al(e,i),nl(e,Qe()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(o(345));case 2:case 5:Sl(e,Bc,Hc);break;case 3:if(al(e,i),(130023424&i)===i&&10<(t=Uc+500-Qe())){if(0!==ht(e,0))break;if(((r=e.suspendedLanes)&i)!==i){Zc(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ir(Sl.bind(null,e,Bc,Hc),t);break}Sl(e,Bc,Hc);break;case 4:if(al(e,i),(4194240&i)===i)break;for(t=e.eventTimes,r=-1;0<i;){var s=31-at(i);a=1<<s,(s=t[s])>r&&(r=s),i&=~a}if(i=r,10<(i=(120>(i=Qe()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Ic(i/1960))-i)){e.timeoutHandle=ir(Sl.bind(null,e,Bc,Hc),i);break}Sl(e,Bc,Hc);break;default:throw Error(o(329))}}}return nl(e,Qe()),e.callbackNode===n?il.bind(null,e):null}function rl(e,t){var n=Fc;return e.current.memoizedState.isDehydrated&&(dl(e,t).flags|=256),2!==(e=ml(e,t))&&(t=Bc,Bc=n,null!==t&&ol(t)),e}function ol(e){null===Bc?Bc=e:Bc.push.apply(Bc,e)}function al(e,t){for(t&=~Dc,t&=~jc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),i=1<<n;e[n]=-1,t&=~i}}function sl(e){if(0!=(6&Pc))throw Error(o(327));Cl();var t=ht(e,0);if(0==(1&t))return nl(e,Qe()),null;var n=ml(e,t);if(0!==e.tag&&2===n){var i=ft(e);0!==i&&(t=i,n=rl(e,i))}if(1===n)throw n=Rc,dl(e,0),al(e,t),nl(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sl(e,Bc,Hc),nl(e,Qe()),null}function cl(e,t){var n=Pc;Pc|=1;try{return e(t)}finally{0===(Pc=n)&&(Vc=Qe()+500,Br&&Hr())}}function ll(e){null!==qc&&0===qc.tag&&0==(6&Pc)&&Cl();var t=Pc;Pc|=1;var n=Tc.transition,i=yt;try{if(Tc.transition=null,yt=1,e)return e()}finally{yt=i,Tc.transition=n,0==(6&(Pc=t))&&Hr()}}function ul(){kc=Oc.current,Er(Oc)}function dl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rr(n)),null!==_c)for(n=_c.return;null!==n;){var i=n;switch(to(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&Nr();break;case 3:Qo(),Er(_r),Er(Ar),ia();break;case 5:Zo(i);break;case 4:Qo();break;case 13:case 19:Er(ea);break;case 10:Ao(i.type._context);break;case 22:case 23:ul()}n=n.return}if(Ac=e,_c=e=Ol(e.current,null),Mc=kc=t,Nc=0,Rc=null,Dc=jc=Lc=0,Bc=Fc=null,null!==Oo){for(t=0;t<Oo.length;t++)if(null!==(i=(n=Oo[t]).interleaved)){n.interleaved=null;var r=i.next,o=n.pending;if(null!==o){var a=o.next;o.next=r,i.next=a}n.pending=i}Oo=null}return e}function hl(e,t){for(;;){var n=_c;try{if(Po(),ra.current=Ja,ua){for(var i=sa.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}ua=!1}if(aa=0,la=ca=sa=null,da=!1,ha=0,Ec.current=null,null===n||null===n.return){Nc=1,Rc=t,_c=null;break}e:{var a=e,s=n.return,c=n,l=t;if(t=Mc,c.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,d=c,h=d.tag;if(0==(1&d.mode)&&(0===h||11===h||15===h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,vs(f,s,c,0,t),1&f.mode&&ms(a,u,t),l=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}if(0==(1&t)){ms(a,u,t),fl();break e}l=Error(o(426))}else if(ro&&1&c.mode){var v=gs(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),vs(v,s,c,0,t),mo(ls(l,c));break e}}a=l=ls(l,c),4!==Nc&&(Nc=2),null===Fc?Fc=[a]:Fc.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,ps(0,l,t));break e;case 1:c=l;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===$c||!$c.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(a,c,t));break e}}a=a.return}while(null!==a)}yl(n)}catch(e){t=e,_c===n&&null!==n&&(_c=n=n.return);continue}break}}function pl(){var e=wc.current;return wc.current=Ja,null===e?Ja:e}function fl(){0!==Nc&&3!==Nc&&2!==Nc||(Nc=4),null===Ac||0==(268435455&Lc)&&0==(268435455&jc)||al(Ac,Mc)}function ml(e,t){var n=Pc;Pc|=2;var i=pl();for(Ac===e&&Mc===t||(Hc=null,dl(e,t));;)try{gl();break}catch(t){hl(e,t)}if(Po(),Pc=n,wc.current=i,null!==_c)throw Error(o(261));return Ac=null,Mc=0,Nc}function gl(){for(;null!==_c;)bl(_c)}function vl(){for(;null!==_c&&!Xe();)bl(_c)}function bl(e){var t=xc(e.alternate,e,kc);e.memoizedProps=e.pendingProps,null===t?yl(e):_c=t,Ec.current=null}function yl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ws(n,t,kc)))return void(_c=n)}else{if(null!==(n=qs(n,t)))return n.flags&=32767,void(_c=n);if(null===e)return Nc=6,void(_c=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_c=t);_c=t=e}while(null!==t);0===Nc&&(Nc=5)}function Sl(e,t,n){var i=yt,r=Tc.transition;try{Tc.transition=null,yt=1,function(e,t,n,i){do{Cl()}while(null!==qc);if(0!=(6&Pc))throw Error(o(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-at(n),o=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~o}}(e,a),e===Ac&&(_c=Ac=null,Mc=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wc||(Wc=!0,Al(tt,(function(){return Cl(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Tc.transition,Tc.transition=null;var s=yt;yt=1;var c=Pc;Pc|=4,Ec.current=null,function(e,t){if(er=zt,pi(e=hi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,c=-1,l=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==r&&3!==h.nodeType||(c=s+r),h!==a||0!==i&&3!==h.nodeType||(l=s+i),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++u===r&&(c=s),p===a&&++d===i&&(l=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===c||-1===l?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:e,selectionRange:n},zt=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;1===S.nodeType?S.textContent="":9===S.nodeType&&S.documentElement&&S.removeChild(S.documentElement);break;default:throw Error(o(163))}}catch(e){Il(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=ec,ec=!1}(e,n),mc(n,e),fi(tr),zt=!!er,tr=er=null,e.current=n,vc(n,e,r),Ye(),Pc=c,yt=s,Tc.transition=a}else e.current=n;if(Wc&&(Wc=!1,qc=e,Kc=r),0===(a=e.pendingLanes)&&($c=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(rt,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),nl(e,Qe()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)i((r=t[n]).value,{componentStack:r.stack,digest:r.digest});if(Gc)throw Gc=!1,e=zc,zc=null,e;0!=(1&Kc)&&0!==e.tag&&Cl(),0!=(1&(a=e.pendingLanes))?e===Yc?Xc++:(Xc=0,Yc=e):Xc=0,Hr()}(e,t,n,i)}finally{Tc.transition=r,yt=i}return null}function Cl(){if(null!==qc){var e=St(Kc),t=Tc.transition,n=yt;try{if(Tc.transition=null,yt=16>e?16:e,null===qc)var i=!1;else{if(e=qc,qc=null,Kc=0,0!=(6&Pc))throw Error(o(331));var r=Pc;for(Pc|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!=(16&Qs.flags)){var c=a.deletions;if(null!==c){for(var l=0;l<c.length;l++){var u=c[l];for(Qs=u;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:tc(8,d,a)}var h=d.child;if(null!==h)h.return=d,Qs=h;else for(;null!==Qs;){var p=(d=Qs).sibling,f=d.return;if(rc(d),d===u){Qs=null;break}if(null!==p){p.return=f,Qs=p;break}Qs=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Qs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!=(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:tc(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Qs=b;break e}Qs=a.return}}var y=e.current;for(Qs=y;null!==Qs;){var S=(s=Qs).child;if(0!=(2064&s.subtreeFlags)&&null!==S)S.return=s,Qs=S;else e:for(s=y;null!==Qs;){if(0!=(2048&(c=Qs).flags))try{switch(c.tag){case 0:case 11:case 15:nc(9,c)}}catch(e){Il(c,c.return,e)}if(c===s){Qs=null;break e}var C=c.sibling;if(null!==C){C.return=c.return,Qs=C;break e}Qs=c.return}}if(Pc=r,Hr(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(rt,e)}catch(e){}i=!0}return i}finally{yt=n,Tc.transition=t}}return!1}function xl(e,t,n){e=Uo(e,t=ps(0,t=ls(n,t),1),1),t=Zc(),null!==e&&(vt(e,1,t),nl(e,t))}function Il(e,t,n){if(3===e.tag)xl(e,e,n);else for(;null!==t;){if(3===t.tag){xl(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===$c||!$c.has(i))){t=Uo(t,e=fs(t,e=ls(n,e),1),1),e=Zc(),null!==t&&(vt(t,1,e),nl(t,e));break}}t=t.return}}function wl(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=Zc(),e.pingedLanes|=e.suspendedLanes&n,Ac===e&&(Mc&n)===n&&(4===Nc||3===Nc&&(130023424&Mc)===Mc&&500>Qe()-Uc?dl(e,0):Dc|=n),nl(e,t)}function El(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=Zc();null!==(e=Lo(e,t))&&(vt(e,t,n),nl(e,n))}function Tl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),El(e,n)}function Pl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(o(314))}null!==i&&i.delete(t),El(e,n)}function Al(e,t){return qe(e,t)}function _l(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ml(e,t,n,i){return new _l(e,t,n,i)}function kl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ol(e,t){var n=e.alternate;return null===n?((n=Ml(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,n,i,r,a){var s=2;if(i=e,"function"==typeof e)kl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case I:return Rl(n.children,r,a,t);case w:s=8,r|=8;break;case E:return(e=Ml(12,n,t,2|r)).elementType=E,e.lanes=a,e;case _:return(e=Ml(13,n,t,r)).elementType=_,e.lanes=a,e;case M:return(e=Ml(19,n,t,r)).elementType=M,e.lanes=a,e;case N:return Ll(n,r,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case P:s=9;break e;case A:s=11;break e;case k:s=14;break e;case O:s=16,i=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ml(s,n,t,r)).elementType=e,t.type=i,t.lanes=a,t}function Rl(e,t,n,i){return(e=Ml(7,e,i,t)).lanes=n,e}function Ll(e,t,n,i){return(e=Ml(22,e,i,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function jl(e,t,n){return(e=Ml(6,e,null,t)).lanes=n,e}function Dl(e,t,n){return(t=Ml(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Bl(e,t,n,i,r,o,a,s,c){return e=new Fl(e,t,n,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ml(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Do(o),e}function Ul(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}function Vl(e){if(!e)return Pr;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Or(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Or(n))return Lr(e,n,t)}return t}function Hl(e,t,n,i,r,o,a,s,c){return(e=Bl(n,i,!0,e,0,o,0,s,c)).context=Vl(null),n=e.current,(o=Bo(i=Zc(),r=el(n))).callback=null!=t?t:null,Uo(n,o,r),e.current.lanes=r,vt(e,r,i),nl(e,i),e}function Gl(e,t,n,i){var r=t.current,o=Zc(),a=el(r);return n=Vl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bo(o,a)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=Uo(r,t,a))&&(tl(e,r,a,o),Vo(e,r,a)),a}function zl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wl(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}xc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||_r.current)ys=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:_s(t),fo();break;case 5:Jo(t);break;case 1:Or(t.type)&&jr(t);break;case 4:Yo(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;Tr(Io,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(Tr(ea,1&ea.current),t.flags|=128,null):0!=(n&t.child.childLanes)?js(e,t,n):(Tr(ea,1&ea.current),null!==(e=Gs(e,t,n))?e.sibling:null);Tr(ea,1&ea.current);break;case 19:if(i=0!=(n&t.childLanes),0!=(128&e.flags)){if(i)return Vs(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Tr(ea,ea.current),i)break;return null;case 22:case 23:return t.lanes=0,ws(e,t,n)}return Gs(e,t,n)}(e,t,n);ys=0!=(131072&e.flags)}else ys=!1,ro&&0!=(1048576&t.flags)&&Zr(t,Wr,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Hs(e,t),e=t.pendingProps;var r=kr(t,Ar.current);Mo(t,n),r=ga(null,t,i,e,r,n);var a=va();return t.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Or(i)?(a=!0,jr(t)):a=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Do(t),r.updater=rs,t.stateNode=r,r._reactInternals=t,cs(t,i,e,n),t=As(null,t,i,!0,a,n)):(t.tag=0,ro&&a&&eo(t),Ss(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=function(e){if("function"==typeof e)return kl(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===k)return 14}return 2}(i),e=ns(i,e),r){case 0:t=Ts(null,t,i,e,n);break e;case 1:t=Ps(null,t,i,e,n);break e;case 11:t=Cs(null,t,i,e,n);break e;case 14:t=xs(null,t,i,ns(i.type,e),n);break e}throw Error(o(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,Ts(e,t,i,r=t.elementType===i?r:ns(i,r),n);case 1:return i=t.type,r=t.pendingProps,Ps(e,t,i,r=t.elementType===i?r:ns(i,r),n);case 3:e:{if(_s(t),null===e)throw Error(o(387));i=t.pendingProps,r=(a=t.memoizedState).element,Fo(e,t),Go(t,i,null,n);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ms(e,t,i,n,r=ls(Error(o(423)),t));break e}if(i!==r){t=Ms(e,t,i,n,r=ls(Error(o(424)),t));break e}for(io=lr(t.stateNode.containerInfo.firstChild),no=t,ro=!0,oo=null,n=xo(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),i===r){t=Gs(e,t,n);break e}Ss(e,t,i,n)}t=t.child}return t;case 5:return Jo(t),null===e&&lo(t),i=t.type,r=t.pendingProps,a=null!==e?e.memoizedProps:null,s=r.children,nr(i,r)?s=null:null!==a&&nr(i,a)&&(t.flags|=32),Es(e,t),Ss(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return js(e,t,n);case 4:return Yo(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Co(t,null,i,n):Ss(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,Cs(e,t,i,r=t.elementType===i?r:ns(i,r),n);case 7:return Ss(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ss(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,a=t.memoizedProps,s=r.value,Tr(Io,i._currentValue),i._currentValue=s,null!==a)if(si(a.value,s)){if(a.children===r.children&&!_r.current){t=Gs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){s=a.child;for(var l=c.firstContext;null!==l;){if(l.context===i){if(1===a.tag){(l=Bo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),_o(a.return,n,t),c.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),_o(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}Ss(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Mo(t,n),i=i(r=ko(r)),t.flags|=1,Ss(e,t,i,n),t.child;case 14:return r=ns(i=t.type,t.pendingProps),xs(e,t,i,r=ns(i.type,r),n);case 15:return Is(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:ns(i,r),Hs(e,t),t.tag=1,Or(i)?(e=!0,jr(t)):e=!1,Mo(t,n),as(t,i,r),cs(t,i,r,n),As(null,t,i,!0,e,n);case 19:return Vs(e,t,n);case 22:return ws(e,t,n)}throw Error(o(156,t.tag))};var ql="function"==typeof reportError?reportError:function(e){console.error(e)};function Kl(e){this._internalRoot=e}function Xl(e){this._internalRoot=e}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function Zl(e,t,n,i,r){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof r){var s=r;r=function(){var e=zl(a);s.call(e)}}Gl(t,a,e,r)}else a=function(e,t,n,i,r){if(r){if("function"==typeof i){var o=i;i=function(){var e=zl(a);o.call(e)}}var a=Hl(t,i,e,0,null,!1,0,"",Jl);return e._reactRootContainer=a,e[fr]=a.current,Hi(8===e.nodeType?e.parentNode:e),ll(),a}for(;r=e.lastChild;)e.removeChild(r);if("function"==typeof i){var s=i;i=function(){var e=zl(c);s.call(e)}}var c=Bl(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=c,e[fr]=c.current,Hi(8===e.nodeType?e.parentNode:e),ll((function(){Gl(t,c,n,i)})),c}(n,t,e,r,i);return zl(a)}Xl.prototype.render=Kl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Gl(e,t,null,null)},Xl.prototype.unmount=Kl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ll((function(){Gl(null,e,null,null)})),t[fr]=null}},Xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Dt(e)}},Ct=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),nl(t,Qe()),0==(6&Pc)&&(Vc=Qe()+500,Hr()))}break;case 13:ll((function(){var t=Lo(e,1);if(null!==t){var n=Zc();tl(t,e,1,n)}})),Wl(e,1)}},xt=function(e){if(13===e.tag){var t=Lo(e,134217728);null!==t&&tl(t,e,134217728,Zc()),Wl(e,134217728)}},It=function(e){if(13===e.tag){var t=el(e),n=Lo(e,t);null!==n&&tl(n,e,t,Zc()),Wl(e,t)}},wt=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=Cr(i);if(!r)throw Error(o(90));q(i),J(i,r)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=cl,_e=ll;var eu={usingClientEntryPoint:!1,Events:[yr,Sr,Cr,Te,Pe,cl]},tu={findFiberByHostInstance:br,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{rt=iu.inject(nu),ot=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yl(t))throw Error(o(200));return Ul(e,t,null,n)},t.createRoot=function(e,t){if(!Yl(e))throw Error(o(299));var n=!1,i="",r=ql;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Bl(e,1,!1,null,0,n,0,i,r),e[fr]=t.current,Hi(8===e.nodeType?e.parentNode:e),new Kl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return ll(e)},t.hydrate=function(e,t,n){if(!Ql(t))throw Error(o(200));return Zl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yl(e))throw Error(o(405));var i=null!=n&&n.hydratedSources||null,r=!1,a="",s=ql;if(null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hl(t,null,e,1,null!=n?n:null,r,0,a,s),e[fr]=t.current,Hi(e),i)for(e=0;e<i.length;e++)r=(r=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Xl(t)},t.render=function(e,t,n){if(!Ql(t))throw Error(o(200));return Zl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ql(e))throw Error(o(40));return!!e._reactRootContainer&&(ll((function(){Zl(null,null,e,!1,(function(){e._reactRootContainer=null,e[fr]=null}))})),!0)},t.unstable_batchedUpdates=cl,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Ql(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zl(e,t,n,!1,i)},t.version="18.3.1-next-f1338f8080-20240426"},64448:(e,t,n)=>{"use strict";var i=n(88768);i.createRoot,i.hydrateRoot},88768:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(85503)},55429:(e,t)=>{"use strict";var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var S=y.prototype=new b;S.constructor=y,m(S,v.prototype),S.isPureReactComponent=!0;var C=Array.isArray,x=Object.prototype.hasOwnProperty,I={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,i){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!w.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=i;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:I.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function _(e,t,r,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case i:c=!0}}if(c)return a=a(c=e),e=""===o?"."+A(c,0):o,C(a)?(r="",null!=e&&(r=e.replace(P,"$&/")+"/"),_(a,t,r,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(c=0,o=""===o?".":o+":",C(e))for(var l=0;l<e.length;l++){var u=o+A(s=e[l],l);c+=_(s,t,r,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(s=e.next()).done;)c+=_(s=s.value,t,r,u=o+A(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function M(e,t,n){if(null==e)return e;var i=[],r=0;return _(e,i,"","",(function(e){return t.call(n,e,r++)})),i}function k(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},N={transition:null},R={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:N,ReactCurrentOwner:I};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:M,forEach:function(e,t,n){M(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=a,t.PureComponent=y,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=L,t.cloneElement=function(e,t,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=I.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)x.call(t,l)&&!w.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=i;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:n,type:e.type,key:o,ref:a,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.3.1"},78139:(e,t,n)=>{"use strict";e.exports=n(55429)},59771:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(!(0<o(r,t)))break e;e[i]=t,e[n]=r,n=i}}function i(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,a=r>>>1;i<a;){var s=2*(i+1)-1,c=e[s],l=s+1,u=e[l];if(0>o(c,n))l<r&&0>o(u,c)?(e[i]=u,e[l]=n,i=l):(e[i]=c,e[s]=n,i=s);else{if(!(l<r&&0>o(u,n)))break e;e[i]=u,e[l]=n,i=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var t=i(u);null!==t;){if(null===t.callback)r(u);else{if(!(t.startTime<=e))break;r(u),t.sortIndex=t.expirationTime,n(l,t)}t=i(u)}}function C(e){if(g=!1,S(e),!m)if(null!==i(l))m=!0,N(x);else{var t=i(u);null!==t&&R(C,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,b(T),T=-1),f=!0;var o=p;try{for(S(n),h=i(l);null!==h&&(!(h.expirationTime>n)||e&&!_());){var a=h.callback;if("function"==typeof a){h.callback=null,p=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===i(l)&&r(l),S(n)}else r(l);h=i(l)}if(null!==h)var c=!0;else{var d=i(u);null!==d&&R(C,d.startTime-n),c=!1}return c}finally{h=null,p=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var I,w=!1,E=null,T=-1,P=5,A=-1;function _(){return!(t.unstable_now()-A<P)}function M(){if(null!==E){var e=t.unstable_now();A=e;var n=!0;try{n=E(!0,e)}finally{n?I():(w=!1,E=null)}}else w=!1}if("function"==typeof y)I=function(){y(M)};else if("undefined"!=typeof MessageChannel){var k=new MessageChannel,O=k.port2;k.port1.onmessage=M,I=function(){O.postMessage(null)}}else I=function(){v(M,0)};function N(e){E=e,w||(w=!0,I())}function R(e,n){T=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,N(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return i(l)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,r,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===i(l)&&e===i(u)&&(g?(b(T),T=-1):g=!0,R(C,o-a))):(e.sortIndex=s,n(l,e),m||f||(m=!0,N(x))),e},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},88712:(e,t,n)=>{"use strict";e.exports=n(59771)},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,u=e.rawValue,d=e.placeholderChar,h=e.placeholder,p=e.indexesOfPipedChars,f=void 0===p?n:p,m=e.caretTrapIndexes,g=void 0===m?n:m;if(0===c||!u.length)return 0;var v=u.length,b=r.length,y=h.length,S=l.length,C=v-b,x=C>0;if(C>1&&!x&&0!==b)return c;var I=0,w=void 0,E=void 0;if(!x||r!==l&&l!==h){var T=l.toLowerCase(),P=u.toLowerCase().substr(0,c).split(i).filter((function(e){return-1!==T.indexOf(e)}));E=P[P.length-1];var A=a.substr(0,P.length).split(i).filter((function(e){return e!==d})).length,_=h.substr(0,P.length).split(i).filter((function(e){return e!==d})).length,M=_!==A,k=void 0!==a[P.length-1]&&void 0!==h[P.length-2]&&a[P.length-1]!==d&&a[P.length-1]!==h[P.length-1]&&a[P.length-1]===h[P.length-2];!x&&(M||k)&&A>0&&h.indexOf(E)>-1&&void 0!==u[c]&&(w=!0,E=u[c]);for(var O=f.map((function(e){return T[e]})),N=O.filter((function(e){return e===E})).length,R=P.filter((function(e){return e===E})).length,L=h.substr(0,h.indexOf(d)).split(i).filter((function(e,t){return e===E&&u[t]!==e})).length,j=L+R+N+(w?1:0),D=0,F=0;F<S&&(I=F+1,T[F]===E&&D++,!(D>=j));F++);}else I=c-C;if(x){for(var B=I,U=I;U<=y;U++)if(h[U]===d&&(B=U),h[U]===d||-1!==g.indexOf(U)||U===y)return B}else if(w){for(var V=I-1;V>=0;V--)if(l[V]===E||-1!==g.indexOf(V)||0===V)return V}else for(var H=I;H>=0;H--)if(h[H-1]===d||-1!==g.indexOf(H)||0===H)return H};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,u=n.previousConformedValue,d=void 0===u?s:u,h=n.placeholderChar,p=void 0===h?o.placeholderChar:h,f=n.placeholder,m=void 0===f?(0,r.convertMaskToPlaceholder)(t,p):f,g=n.currentCaretPosition,v=n.keepCharPositions,b=!1===l&&void 0!==d,y=e.length,S=d.length,C=m.length,x=t.length,I=y-S,w=I>0,E=g+(w?-I:0),T=E+Math.abs(I);if(!0===v&&!w){for(var P=s,A=E;A<T;A++)m[A]===p&&(P+=p);e=e.slice(0,E)+P+e.slice(E,y)}for(var _=e.split(s).map((function(e,t){return{char:e,isNew:t>=E&&t<T}})),M=y-1;M>=0;M--){var k=_[M].char;k!==p&&k===m[M>=E&&S===x?M-I:M]&&_.splice(M,1)}var O=s,N=!1;e:for(var R=0;R<C;R++){var L=m[R];if(L===p){if(_.length>0)for(;_.length>0;){var j=_.shift(),D=j.char,F=j.isNew;if(D===p&&!0!==b){O+=p;continue e}if(t[R].test(D)){if(!0===v&&!1!==F&&d!==s&&!1!==l&&w){for(var B=_.length,U=null,V=0;V<B;V++){var H=_[V];if(H.char!==p&&!1===H.isNew)break;if(H.char===p){U=V;break}}null!==U?(O+=D,_.splice(U,1)):R--}else O+=D;continue e}N=!0}!1===b&&(O+=m.substr(R,C));break}O+=L}if(b&&!1===w){for(var G=null,z=0;z<O.length;z++)m[z]===p&&(G=z);O=null!==G?O.substr(0,G+1):s}return{conformedValue:O,meta:{someCharsRejected:N}}};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&&(m?g((function(){return e.setSelectionRange(t,t,p)}),0):e.setSelectionRange(t,t,p))}function o(e){if((0,u.isString)(e))return e;if((0,u.isNumber)(e))return String(e);if(null==e)return h;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,p=i.inputElement,m=i.mask,g=i.guide,v=i.pipe,b=i.placeholderChar,y=void 0===b?d.placeholderChar:b,S=i.keepCharPositions,C=void 0!==S&&S,x=i.showMask,I=void 0!==x&&x;if(void 0===n&&(n=p.value),n!==t.previousConformedValue){(void 0===m?"undefined":s(m))===f&&void 0!==m.pipe&&void 0!==m.mask&&(v=m.pipe,m=m.mask);var w=void 0,E=void 0;if(m instanceof Array&&(w=(0,u.convertMaskToPlaceholder)(m,y)),!1!==m){var T=o(n),P=p.selectionEnd,A=t.previousConformedValue,_=t.previousPlaceholder,M=void 0;if((void 0===m?"undefined":s(m))===d.strFunction){if(!1===(E=m(T,{currentCaretPosition:P,previousConformedValue:A,placeholderChar:y})))return;var k=(0,u.processCaretTraps)(E);E=k.maskWithoutCaretTraps,M=k.indexes,w=(0,u.convertMaskToPlaceholder)(E,y)}else E=m;var O={previousConformedValue:A,guide:g,placeholderChar:y,pipe:v,placeholder:w,currentCaretPosition:P,keepCharPositions:C},N=(0,l.default)(T,E,O).conformedValue,R=(void 0===v?"undefined":s(v))===d.strFunction,L={};R&&(!1===(L=v(N,a({rawValue:T},O)))?L={value:A,rejected:!0}:(0,u.isString)(L)&&(L={value:L}));var j=R?L.value:N,D=(0,c.default)({previousConformedValue:A,previousPlaceholder:_,conformedValue:j,placeholder:w,rawValue:T,currentCaretPosition:P,placeholderChar:y,indexesOfPipedChars:L.indexesOfPipedChars,caretTrapIndexes:M}),F=j===w&&0===D?I?w:h:j;t.previousConformedValue=F,t.previousPlaceholder=w,p.value!==F&&(p.value=F,r(p,D))}}}}};var c=i(n(2)),l=i(n(3)),u=n(4),d=n(1),h="",p="none",f="object",m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="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,u=i.length;l<u;++l)s=60*s+n(i.charCodeAt(l));for(var d=0,h=r.length;d<h;++d)s+=n(r.charCodeAt(d))*(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 u(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 d(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 h(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 p(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 f(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=p("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=p(i,t),o=r.abbreviation,a=r.offset;(n||a)&&(e=new Date(i-6e4*a));var s=d(e);return s.zone={abbreviation:o,offset:a},f(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=u(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=p(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=d;else{if(!1!==i)throw new Error("Extract local or UTC date? Set useUTC option.");n=h}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,m=void 0===l?0:l,g=i.milliseconds;e={year:r,month:o,day:a,hours:s,minutes:c,seconds:m,milliseconds:void 0===g?0:g}}var v=u(e),b=new Date(v);e.dayOfWeek=b.getUTCDay();var y=p(v,t),S=y.abbreviation,C=y.offset;return e.zone={abbreviation:S,offset:C},f(e,v+6e4*C),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,d,h=(e.zone||{}).offset;if(void 0===h)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,d=n.milliseconds,new Date(i,r-1,o,a,s,l,void 0===d?0:d);var p=u(e);return new Date(p+6e4*h)},t.convertDateToTime=function(e){var t=h(e),n=/\(([^)]+)\)$/.exec(e.toTimeString());return t.zone={abbreviation:n?n[1]:"???",offset:e.getTimezoneOffset()},f(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,u=t||[],d=(e=e||{}).node||i,h=void 0!==e.clockseq?e.clockseq:r;if(null==d||null==h){var p=o();null==d&&(d=i=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=r=16383&(p[6]<<8|p[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=f-s+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||f>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,c=m,r=h;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var b=f/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=h>>>8|128,u[l++]=255&h;for(var y=0;y<6;++y)u[l+y]=d[y];return t||a(u)}},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:()=>V,A1:()=>L,Bz:()=>U,Ch:()=>E,FJ:()=>k,Fi:()=>T,Gl:()=>R,Gq:()=>q,HB:()=>G,HY:()=>h,If:()=>u,J4:()=>b,Jp:()=>N,Kd:()=>A,Lb:()=>a,MD:()=>p,N7:()=>i,Px:()=>P,Q_:()=>F,RC:()=>d,Rp:()=>X,Se:()=>g,TV:()=>z,To:()=>c,Uc:()=>$,VH:()=>f,WP:()=>H,WT:()=>W,XQ:()=>v,Ye:()=>Y,Z0:()=>j,ZE:()=>o,d4:()=>M,dU:()=>O,fp:()=>m,ft:()=>r,gS:()=>y,iS:()=>B,jA:()=>_,k$:()=>w,ne:()=>S,p$:()=>C,sz:()=>D,t5:()=>l,ts:()=>s,uz:()=>K,vu:()=>I,w7:()=>x});const i="invitation",r="",o="login",a="pin-code",s="join",c="validation-code",l="send-validation-code",u="forgot-password",d="account",h="blocked-document-status",p="validate-document",f="wallet",m="settings",g="bonuses",v="bonus",b="offers",y="rewards",S="transactions",C="transactions/:type",x="refer-a-friend",I="change-password",w="security",E="two-factor-authenticator",T="messages",P="cashier",A="cashier/withdraw/cryptoreward",_="bonus-selection",M="bonus-terms-conditions",k="reset-password/:resetToken",O="cashier/deposit",N="contact-us",R="help/contact-us",L="faq",j="help",D="terms-of-service",F="terms-of-service-invitation",B="responsible-gambling",U="privacy-policy",V="about-us",H="mini/cashier",G="pages/:uriSuffix",z="updateForumUsername",$=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"]]),W={"#3:game_overlay":{regex:/(\bcasino\b)\/(.*)\/(.*)/,isLoggedIn:!0}},q="info",K="two-factor-authenticator",X="reset-two-factor-authenticator/:resetToken",Y="disable-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})()},86814:(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 u=(()=>{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 d=(()=>{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"](u,9))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","ndcDynamicAttributes",""],["","ngComponentOutletNdcDynamicAttributes",""]],inputs:{ndcDynamicAttributes:"ndcDynamicAttributes",ngComponentOutletNdcDynamicAttributes:"ngComponentOutletNdcDynamicAttributes"},exportAs:["ndcDynamicAttributes"]}),e})();function h(e){return new i.SimpleChange(void 0,e,!0)}function p(e,t){return n=>t(n,function(e,t=!1){return t?h(e.currentValue):new i.SimpleChange(e.previousValue,e.currentValue,!1)}(n,e))}"undefined"==typeof ngDevMode||ngDevMode;const f={isFirstChanges:!1,onlyNewChanges:!1};function m(e=f){return e.onlyNewChanges?(t=e.isFirstChanges,e=>p(t,((t,n)=>{e[t.key]||(e[t.key]=n)}))):function(e){return t=>p(e,((e,n)=>t[e.key]=n))}(e.isFirstChanges);var t}function g(){}const v=m({isFirstChanges:!0}),b=m({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?g: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]=h(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 S=(()=>{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 C=new i.InjectionToken("WindowRef");let x=(()=>{class e{constructor(e){this.injector=e,this.nativeWindow=this.injector.get(C,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 I=(()=>{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"](S),i["ɵɵdirectiveInject"](x),i["ɵɵdirectiveInject"](l),i["ɵɵdirectiveInject"](u,9))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","ndcDynamicDirectives",""],["","ngComponentOutletNdcDynamicDirectives",""]],inputs:{ndcDynamicDirectives:"ndcDynamicDirectives",ngComponentOutletNdcDynamicDirectives:"ngComponentOutletNdcDynamicDirectives"},outputs:{ndcDynamicDirectivesCreated:"ndcDynamicDirectivesCreated"}}),e})();"undefined"==typeof ngDevMode||ngDevMode;let w=(()=>{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 E=(()=>{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"](u,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 T(){return window}"undefined"==typeof ngDevMode||ngDevMode;let P=(()=>{class e{static withComponents(t,n=w){return{ngModule:e,providers:[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0},{provide:l,useValue:n},S,{provide:C,useFactory:T},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"](P,{declarations:function(){return[w,E,u,d,I]},imports:function(){return[r.CommonModule]},exports:function(){return[w,E,u,d,I]}});var A=n(1459);function _(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 M=new i.InjectionToken("REACTIVE_COMPONENT_LOADER_MODULE_REGISTRY");function k(e){return new Error(`Component '<${e}>' not found.`)}class O{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 k(t);return e.componentType}const[i]=e._bootstrapComponents;if(null==i)throw k(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}}O.ɵfac=function(e){return new(e||O)(i["ɵɵinject"](i.Compiler),i["ɵɵinject"](i.Injector),i["ɵɵinject"](i.NgModuleFactoryLoader),i["ɵɵinject"](M))},O.ɵprov=i["ɵɵdefineInjectable"]({token:O,factory:O.ɵfac,providedIn:"root"}),O.ngInjectableDef=(0,i["ɵɵdefineInjectable"])({factory:function(){return new O((0,i["ɵɵinject"])(i.Compiler),(0,i["ɵɵinject"])(i.INJECTOR),(0,i["ɵɵinject"])(i.NgModuleFactoryLoader),(0,i["ɵɵinject"])(M))},token:O,providedIn:"root"}),"undefined"==typeof ngDevMode||ngDevMode;let N=(()=>{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"](O))},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,_,1,4,"ng-container",0),i["ɵɵpipe"](1,"async")),2&e&&i["ɵɵproperty"]("ngIf",i["ɵɵpipeBind1"](1,1,t.componentRecipe$))},directives:[r.NgIf,E,r.NgComponentOutlet,u],pipes:[r.AsyncPipe],encapsulation:2}),e})();"undefined"==typeof ngDevMode||ngDevMode;let R=(()=>{class e extends r.NgComponentOutlet{constructor(e,t){super(t),this._reactiveComponentLoader=e,this._scavenger=new A.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"](O),i["ɵɵdirectiveInject"](i.ViewContainerRef))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","wtLazy",""]],inputs:{location:["wtLazy","location"]},features:[i["ɵɵInheritDefinitionFeature"],i["ɵɵNgOnChangesFeature"]]}),e})();function L(){return null}"undefined"==typeof ngDevMode||ngDevMode;let j=(()=>{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:L}]),{provide:M,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,P.withComponents([])],P]}),e})();"undefined"==typeof ngDevMode||ngDevMode,("undefined"==typeof ngJitMode||ngJitMode)&&i["ɵɵsetNgModuleScope"](j,{declarations:function(){return[N,R]},imports:function(){return[r.CommonModule,P]},exports:function(){return[P,N,R]}});var D=n(7114),F=n(66168),B=n(25938),U=n(5095),V=n(64174),H=n(45965),G=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"](G.H8),i["ɵɵinject"](B.Xp),i["ɵɵinject"](H.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 Q=class{constructor(e){this.sessionService=e,this.location={moduleId:Y,selector:"bx-profile-registration-page"},this.inputs={lazyRegistration:!0}}isAuthenticated(){return this.sessionService.isAuthenticated()}};Q.ɵfac=function(e){return new(e||Q)(i["ɵɵdirectiveInject"](V.m))},Q.ɵcmp=i["ɵɵdefineComponent"]({type:Q,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,N],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}"]}),Q=(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])],Q);let J=(()=>{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([Q]),j.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),te=n(31018),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 ue=(()=>{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 de=n(7171),he=n(60725),pe=n(616),fe=n(74178),me=n(30594),ge=n(49379),ve=n(86014);function be(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 ye=(()=>{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"](ge.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,be,10,0,"div",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.hasPreviewNotification))},directives:[r.NgIf,ve.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 Se=n(38945);let Ce=(()=>{class e{constructor(e,t,n,i,r,a,s,c,l,u,d,h,p,f,m,g){this.deviceProtectLoader=e,this.router=t,this.windowService=n,this.reactiveChatService=i,this.profileStore=r,this.loyaltyStore=a,this.loyaltyFeatureFlagService=s,this.noDblClickService=c,this.siteLoadService=l,this.platformId=u,this.transferStateServiceCache=d,this.notificationsStore=h,this.notificationEnabledService=p,this.notificationsPopupManagementService=f,this.twoFactorAuthenticatorService=m,this.twoFactorAuthenticatorStore=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.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(),this.twoFactorAuthenticatorService.isTwoFactorAuthenticatorEnabled()&&this.twoFactorAuthenticatorStore.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"](pe.s),i["ɵɵdirectiveInject"](he.K),i["ɵɵdirectiveInject"](de.e),i["ɵɵdirectiveInject"](te.E),i["ɵɵdirectiveInject"](Z.W),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](re.m),i["ɵɵdirectiveInject"](le.p),i["ɵɵdirectiveInject"](ne.j),i["ɵɵdirectiveInject"](ue),i["ɵɵdirectiveInject"](me.R),i["ɵɵdirectiveInject"](fe.g))},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:[ye,Se.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 xe=n(15982),Ie=n(41109),we=n(23550),Ee=n(99860),Te=(n(13192),n(5711)),Pe=(n(45335),n(86594),n(95539)),Ae=n(63800),_e=n(4363),Me=n(73475),ke=n(76460),Oe=n(56159),Ne=n(2470);let Re=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Ne.B]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Le=n(89986),je=n(47913),De=n(36211),Fe=n(14089),Be=n(95556),Ue=n(3442),Ve=n(56647),He=n(99176),Ge=n(99191),ze=n(56323),$e=n(70025),We=n(54411),qe=n(69921),Ke=n(63253),Xe=n(80112),Ye=n(27218);let Qe=class extends $e.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t}matcher(e){let t=Ke(["fields","page_type"],e);return e.contentType===K.z.CONTENT_PAGE&&t===We.G.ARTICLE}createLink(e){let t=e.slugname||e.slug||Ke(["fields","slug"],e),n=Ke(["fields","uriSuffix"],e)||t;return n?`/${qe.J}/${n}`:""}};Qe.ɵfac=function(e){return new(e||Qe)(i["ɵɵinject"](Xe.z),i["ɵɵinject"](Ye.X))},Qe.ɵprov=i["ɵɵdefineInjectable"]({token:Qe,factory:Qe.ɵfac}),Qe=(0,a.__decorate)([(0,$e.ST)(),(0,a.__metadata)("design:paramtypes",[Xe.z,Ye.X])],Qe);var Je=n(98465),Ze=n(52036),et=n(10749);let tt=(()=>{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})(),nt=(()=>{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 it=n(84704),rt=n(93996),ot=n(51576),at=n(61556),st=n(63749),ct=n(36873),lt=n(70570),ut=n(22291),dt=n(73502),ht=n(78357);let pt=(()=>{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})(),ft=(()=>{class e{static forRoot(){return{ngModule:e,providers:[pt]}}}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 gt{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 vt=(()=>{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 gt(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"](Be.mj))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var bt=n(41306);let yt=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[vt],imports:[[Be.ny,bt.I]]}),e})();var St=n(64417);let Ct=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[te.E],imports:[[Be.ny,yt,at.d,it.a,rt.M,ot.d,r.CommonModule,ct.U8,o.RouterModule,ut.$Q,ht.x,ft,mt.o,lt.k,dt.D,St.L,st.m]]}),e})();var xt=n(16462),It=n(22274),wt=n(43431),Et=n(36957),Tt=n(50371),Pt=n(48108),At=n(26626),_t=n(92947),Mt=n(92920),kt=n(49765);class Ot{}class Nt{}class Rt{constructor(){this.active=!1,this.hasSubTab=!1}}var Lt=n(30173);class jt{}class Dt{constructor(){this.active=!1}}var Ft=n(33564),Bt=n(93801);let Ut=(()=>{class e{constructor(e,t,n){this.deviceService=e,this.urlPrefixService=t,this.trackingService=n}mapGame(e){let t=new Ot,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"));const i=this.mapVendor(this.getContentField(e,"game_id"));i&&(t.vendor={name:i.name},t.supplier=i.supplier),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 r=this.getContentField(e,"category");"string"==typeof r?t.category=r:r&&(t.category=r.slug||"",t.categoryName=r.name||"");let o=this.getContentField(e,"subcategory");return"string"==typeof o?t.subCategory=o:o&&(t.subCategory=o.slug||"",t.subCategoryName=o.name||""),t}mapGameDetail(e){const t=new Ot,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 Ot;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.vendor=e.vendor,n.supplier=e.supplier,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 Nt;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 Rt;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 Dt;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 jt;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 Ot;return t.id=1,new Array(e).fill(t)}getUriSuffix(e){let t=e.slug||Ke(["fields","slug"],e);return Ke(["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}mapVendor(e){let t=this.filterGameId(e);return t&&t.vendor?t.vendor: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=Bt.H.getCountrySubdivision(n.filter.notIn.countrySubdivision)),Object.keys(t).length?t:null}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Lt.U),i["ɵɵinject"](Xe.z),i["ɵɵinject"](Ft.e))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Vt=(()=>{class e{constructor(e,t){this.deviceService=e,this.urlPrefixService=t}mapGame(e){let t=new Ot;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 Ot;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 Ot;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 Nt;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 Rt;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 Dt;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 jt;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"](Lt.U),i["ɵɵinject"](Xe.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class Ht{}var Gt=n(55640);class zt{constructor(e,t){this.id=e,this.count=t}}const $t=[516,517,518,519,520,521,522,523];let Wt=(()=>{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 zt(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 $t.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"](Gt.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class qt{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 we.HttpParams({fromObject:e})}}var Kt=n(84860);const Xt="gamecardlist.lastPlayed";class Yt{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,b,y){this.http=e,this.router=t,this.locationStrategy=n,this.windowService=i,this.sessionService=r,this.channelTypeService=o,this.gamecardMapper=a,this.gamecardCmsMapper=s,this.languageService=c,this.contentService=l,this.cmsFeatureFlagService=u,this.gameMostPlayedService=d,this.profileService=h,this.routesToolsService=p,this.siteConfigService=f,this.hostnameService=m,this.global=g,this.linkTrackService=v,this.gameUrlService=b,this.platformId=y,this.casinoConfigProp="casino",this.allGamesCache={},this.allGamesCategoriesCache={},this.allGamesCarouselCache={},this.gameDetailsCache={},this.gameCacheUrl=new Map,this.casinoServiceUrl="/services/casino/casino-lobby-services",this.recentCasinoGamesActivityTrackerServiceURl="/services/recent-activity-tracker/v1/profile",this.recentCasinoGamesActivityUrl=e=>`${this.recentCasinoGamesActivityTrackerServiceURl}/${e}/casino`,this.recentGamesUrl=`${this.casinoServiceUrl}/recentgames`,this.playUrl=e=>`${this.casinoServiceUrl}/games/${e}/url`,this.languageService.getLanguage().subscribe((e=>this.language=e)),this.cmsFeatureFlagService.isSectionEnabled(Yt.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)}))}registerGamePlayed(e){return this.sessionService.isAuthenticated()?this.http.post(this.recentCasinoGamesActivityUrl(this.sessionService.session),{gameId:e}):(0,s.of)({})}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&&!Mt(this.gameCategoriesJSON)?this.allGamesCategoriesCache[this.language]=this.getGameCategoriesByJSON(this.gameCategoriesJSON).pipe((0,c.publishReplay)(1),(0,c.refCount)()):(this.cmsFeatureFlagService.isSectionEnabled(Yt.SECTION)&&(e.filter=Yt.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 we.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(Yt.SECTION)?n=Yt.CMS_GAME_CONTENT_TYPE:t=`casino/${t}`,this.gameDetailsCache[t]||(this.gameDetailsCache[t]=this.contentService.getContentByUriSuffix(t,Yt.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 Nt;return t.name=Wt.MOST_PLAYED_NAME,t.slug=Wt.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=>Mt(e)?this.getCategoryFlagsForLastPlayed():this.getCategoryFlagsForLastPlayed({hasGames:!0}))),(0,c.catchError)((()=>this.getCategoryFlagsForLastPlayed()))):this.getCategoryFlagsForLastPlayed()}getGameMostPlayedFlags(){if(this.sessionService.isAuthenticated())try{return Mt(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 Ht;return t.name=Xt,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 Ht;return t.name=Wt.MOST_PLAYED_NAME,t.hasGames=e,t}getGameLastPlayed(){let e=new Nt;return e.name=Xt,e.slug="last-played",this.sessionService.isAuthenticated()?this.getLastPlayedFromCasino().pipe((0,c.switchMap)((t=>(0,s.from)(t).pipe((0,c.concatMap)((e=>this.siteConfigService.isFeaturePresent(Kt.L.casinoRecentActivities)?this.getGameCardById(+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(){if(this.siteConfigService.isFeaturePresent(Kt.L.casinoRecentActivities))return this.http.get(this.recentCasinoGamesActivityUrl(this.sessionService.session));{let e={headers:new we.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,Yt.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 Mt(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(),u="";const d=this.siteConfigService.getSiteConfigProp("urlPrefix"),h=(d?`/${d}`:"")+"/account/cashier/deposit";n=kt("#practice","",n);let p=this.getMultilingualRouterUrl(this.gameUrlService.getPathList(e,n,t),{fragment:"real"});const f="destination="+encodeURIComponent(p);a=(0,r.isPlatformBrowser)(this.platformId)?this.windowService.location().origin:"",s=`${a}${this.getMultilingualRouterUrl([h])}?${f}`,c=`${a}${this.getMultilingualRouterUrl([p])}`,u=`${a}${this.getMultilingualRouterUrl(["/join"])}`;let m=this.siteConfigService.getSiteConfigProp(this.casinoConfigProp);const g=this.siteConfigService.getSiteConfigProp("brandCode"),v=this.siteConfigService.getSiteConfigProp("territory")||"DEFAULT",b=`https://${this.hostnameService.hostname}`,y=`${b}${h}`,S="live-dealer"===e?`${b}/${this.casinoConfigProp}/${e}`:`${b}/${this.casinoConfigProp}`,C=`https://${this.siteConfigService.getSiteConfigProp(this.casinoConfigProp).gameSubdomain}.${(0,r.isPlatformBrowser)(this.platformId)?this.windowService.getHostnameWithoutWWW():""}`,x=JSON.stringify({brandCode:g,territory:v,hostOrigin:b,cashierUrl:y,homeUrl:S,minigames:this.siteConfigService.hasFeature("casino.live-dealer.minigames.enabled"),miniGamesHostOrigin:C,apmUrl:this.siteConfigService.getSiteConfigProp("apmUri")||""});return new qt(o,i,this.language,l,a,s,c,u,m.gameSubdomain,x).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&&!Mt(this.allGamesJSON)?(0,s.of)(this.mapper.mapGameList(this.allGamesJSON).map((e=>this.mapper.mapGame(e)))):(this.cmsFeatureFlagService.isSectionEnabled(Yt.SECTION)&&(e="",t=Yt.CMS_GAME_CONTENT_TYPE,n.filter=Yt.CMS_GAME_FILTER),this.contentService.getContentByType(t,Yt.SECTION,n,e).pipe((0,c.map)((e=>this.mapper.mapGameList(e).map((e=>this.mapper.mapGame(e)))))))})).pipe((0,c.publishReplay)(1,Yt.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,Yt.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||Yt.DEFAULT_CURRENCY))}}listenContentFromCasinoLinks(){this.gameLinkCmsContent$=this.contentService.events.pipe((0,c.filter)((e=>{const t=Ke(["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$}}Yt.ALL_GAMES_CACHE_TTL=Number.POSITIVE_INFINITY,Yt.DEFAULT_CURRENCY="USD",Yt.SECTION="games",Yt.CMS_GAME_FILTER="game",Yt.CMS_CATEGORY_FILTER="gameslug",Yt.CMS_GAME_CONTENT_TYPE="casino_game_page",Yt.ɵfac=function(e){return new(e||Yt)(i["ɵɵinject"](we.HttpClient),i["ɵɵinject"](o.Router),i["ɵɵinject"](r.LocationStrategy),i["ɵɵinject"](ee.u),i["ɵɵinject"](Be.mj),i["ɵɵinject"](It.x),i["ɵɵinject"](Vt),i["ɵɵinject"](Ut),i["ɵɵinject"](Pt.T),i["ɵɵinject"](xt._),i["ɵɵinject"](wt.u),i["ɵɵinject"](Wt),i["ɵɵinject"](_t.H),i["ɵɵinject"](Et.T),i["ɵɵinject"](H.r),i["ɵɵinject"](ge.M),i["ɵɵinject"](Tt.w),i["ɵɵinject"](At.j),i["ɵɵinject"](Ye.X),i["ɵɵinject"](i.PLATFORM_ID))},Yt.ɵprov=i["ɵɵdefineInjectable"]({token:Yt,factory:Yt.ɵfac});let Qt=(()=>{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 Jt=n(90388);let Zt=(()=>{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"](Yt),i["ɵɵinject"](Jt.B))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),en=(()=>{class e{constructor(e,t,n){this.gamecardService=e,this.contentNotFoundHandler=t,this.cmsFeatureFlagService=n}resolve(e){if(this.cmsFeatureFlagService.isFeatureEnabled(wt.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"](Yt),i["ɵɵinject"](Jt.B),i["ɵɵinject"](wt.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),tn=class extends $e.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=Ke(["fields","category","slug"],e)||"",n=Ke(["fields","subcategory","slug"],e)||"",i=this.getUriSuffix(e);return this.gameUrlService.getUrl(t,i,n)}getUriSuffix(e){let t=e.slugname||e.slug||Ke(["fields","slug"],e);return Ke(["fields","uriSuffix"],e)||t}};tn.ɵfac=function(e){return new(e||tn)(i["ɵɵinject"](Xe.z),i["ɵɵinject"](Ye.X))},tn.ɵprov=i["ɵɵdefineInjectable"]({token:tn,factory:tn.ɵfac}),tn=(0,a.__decorate)([(0,$e.ST)(),(0,a.__metadata)("design:paramtypes",[Xe.z,Ye.X])],tn);let nn=(()=>{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"](Yt),i["ɵɵinject"](Ye.X),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var rn=n(49994),on=n(82846),an=n(12596),sn=n(10396);const cn=(0,c.map)((e=>1e3*+e)),ln=(0,c.map)((e=>{const t=(+e*(+e>=1e6?1e-6:.001)).toFixed(2);return{amount:+e,amountDisplay:+e>=1e3?+t:1e3*+t}})),un=(0,c.map)((e=>({amount:+e,amountDisplay:+(+e>1e6?(+e/1e6).toFixed(2):Math.floor(+e/1e3).toString())})));let dn=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p){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=u,this.windowService=d,this.currencyService=h,this.platformId=p,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"](we.HttpClient),i["ɵɵinject"](_t.H),i["ɵɵinject"](H.r),i["ɵɵinject"](on.G),i["ɵɵinject"](Be.mj),i["ɵɵinject"](Pt.T),i["ɵɵinject"](It.x),i["ɵɵinject"](sn.il),i["ɵɵinject"](an.s),i["ɵɵinject"](o.Router),i["ɵɵinject"](Lt.U),i["ɵɵinject"](ee.u),i["ɵɵinject"](rn.i),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),hn=(()=>{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"](H.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var pn=n(55073),fn=n(80218),mn=n(81516),gn=n(84333),vn=n(32716),bn=n(79952);let yn=(()=>{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 Sn(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 Cn(e,t){if(1&e&&(i["ɵɵelementStart"](0,"span",1),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Sn,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 xn=(()=>{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"](an.s),i["ɵɵdirectiveInject"](dn))},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,Cn,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 In=function(e){return{jackpot:e}},wn=function(e,t){return{tag:"textContent",values:e,label:t}},En=function(e){return[e]};function Tn(e,t){if(1&e&&i["ɵɵelement"](0,"span",1),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](6,En,i["ɵɵpureFunction2"](3,wn,i["ɵɵpureFunction1"](1,In,e.jackpotValue),e.jackpotLabel)))}}let Pn=(()=>{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(cn,ln),(0,s.of)(e[1]).pipe(un))))).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"](dn))},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,Tn,1,8,"span",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.isJackpotDisplayed))},directives:[r.NgIf,ve.P],encapsulation:2}),e})();function An(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 _n(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 Mn(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 kn(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 On(e,t){if(1&e&&i["ɵɵelement"](0,"bx-jackpot",17),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("gameId",e.card.id)}}function Nn(e,t){if(1&e&&i["ɵɵelement"](0,"img",18),2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassMapInterpolate1"]("img-placeholder img-responsive force-height ",e.thumbnailBackground,""),i["ɵɵproperty"]("src",e.thumbnailImage,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.thumbnailAlt)}}function Rn(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 Ln=function(e){return{"img-game":e}},jn="casino.card.info.icon";let Dn=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h){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=u,this.gameUrlService=d,this.deviceService=h,this.imageType="large",this.defaultImageSize=[302,230],this.defaultImageColor="#F0F0F0",this.contentSource="manual",this.thumbnailImage="/assets/images/thumbnail.png",this.thumbnailAlt="Placeholder image",this._defaultImage="",this.href="",this.useCssThumbnail=this.siteConfigService.hasFeature(Kt.L.cssThumbnail),this.hasFeatureMap=new Map}set defaultImage(e){this._defaultImage=e}get defaultImage(){return this.useCssThumbnail?"":this._defaultImage}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.useCssThumbnail?(this.thumbnailImage="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",this.thumbnailBackground=`background-${this.cardConfig.thumbnailColor||"light"}`):(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(",")||null}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,...Mt(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.hasFeatureMap.has(jn)||this.hasFeatureMap.set(jn,this.siteConfigService.hasFeature(jn)),this.hasFeatureMap.get(jn)}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"](Be.mj),i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](tt),i["ɵɵdirectiveInject"](fn.U),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](mn.HV),i["ɵɵdirectiveInject"](dn),i["ɵɵdirectiveInject"](At.j),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](Pt.T),i["ɵɵdirectiveInject"](Ye.X),i["ɵɵdirectiveInject"](Lt.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",defaultImageSize:"defaultImageSize",defaultImageColor:"defaultImageColor",cardMatrix:"cardMatrix",gameBlockContext:"gameBlockContext",position:"position",contentSource:"contentSource",automatedTracking:"automatedTracking"},decls:29,vars:19,consts:[["bxHideBySubdivision","",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"],["width","400","height","304",3,"class","src",4,"ngIf"],["bxImage","",1,"img-responsive",3,"src","defaultImage","defaultColor","defaultSize","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"],["width","400","height","304",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,An,6,1,"a",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,_n,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,Mn,1,1,"bx-custom-badge",4),i["ɵɵtext"](12,"\n\n                    "),i["ɵɵtemplate"](13,kn,2,1,"bx-free-games-badge",5),i["ɵɵtext"](14,"\n\n                    "),i["ɵɵtemplate"](15,On,1,1,"bx-jackpot",6),i["ɵɵtext"](16,"\n                    "),i["ɵɵtemplate"](17,Nn,1,5,"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,Rn,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)("defaultColor",t.defaultImageColor)("defaultSize",t.defaultImageSize)("ngClass",i["ɵɵpureFunction1"](17,Ln,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:[gn.e,vn.Z,r.NgIf,bn.t,r.NgClass,ve.P,yn,xn,Pn],styles:[".img-placeholder[_ngcontent-%COMP%] {\n                aspect-ratio: 400 / 304;\n            }\n            .background-light[_ngcontent-%COMP%] {\n                background-color: #d9d9d9;\n            }\n            .background-dark[_ngcontent-%COMP%], .background-dark_v2[_ngcontent-%COMP%] {\n                background-color: #292929;\n            }"]}),e})();var Fn=n(96940);const Bn=["gameShortDescritpion"],Un=["cta"],Vn=function(e){return[e]};function Hn(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,Vn,(null==e.detailConfig?null:e.detailConfig.practiceCtaClass)||"tertiary inverse"))}}function Gn(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 zn(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,Vn,(null==e.detailConfig?null:e.detailConfig.stickyPracticeCtaClass)||"tertiary"))}}const $n=function(e,t){return{"col-2-3":e,"col-3-3":t}};function Wn(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,zn,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,$n,e.showPractice,!e.showPractice)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](11,Vn,(null==e.detailConfig?null:e.detailConfig.stickyRealCtaClass)||"primary")),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",e.showPractice)}}const qn=["*"];let Kn=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f){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=u,this.windowService=d,this.noDblClickService=h,this.gameUrlService=p,this.platformId=f,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"](Yt),i["ɵɵdirectiveInject"](Be.mj),i["ɵɵdirectiveInject"](ut.AJ),i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](xe.Meta),i["ɵɵdirectiveInject"](xe.DomSanitizer),i["ɵɵdirectiveInject"](tt),i["ɵɵdirectiveInject"](nt),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](te.E),i["ɵɵdirectiveInject"](Ye.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"](Bn,5),i["ɵɵviewQuery"](Un,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:qn,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,Hn,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,Gn,2,0,"div",10),i["ɵɵtext"](26,"\n\n            "),i["ɵɵtemplate"](27,Wn,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:[vn.Z,bn.t,r.NgClass,ve.P,r.NgIf],pipes:[Fn.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 Xn=n(97637),Yn=n(84853);let Qn=(()=>{class e extends Kn{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:[Xn.l,Kn,Yn.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})(),Jn=(()=>{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"](Ye.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:[Xn.l,Yn.z,ve.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 Zn=n(52344),ei=n(86958),ti=n(44960),ni=n(98953);class ii extends ni.w{constructor(e,t,n,i,r,o,a){super(),this.url=e,this.label=t,this.icon=n,this.triggerOverlay=i,this.openNewTab=r,this.activeLinkOptions=o,a&&(this.notInFilter=a)}}class ri{constructor(e,t){this.menuTitle=e,this.navLinks=t}}class oi extends ni.w{constructor(){super(),this.categoryLinks=[],this.secondaryLinks=[]}}class ai{static createCmsNavMenu(e,t){return ai.isCmsDataWithSubmenus(e)?ai.createCmsNavMenuForSubmenusData(e,t):ai.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=this.createCommonCmsNavMenu(e.fields&&e.fields.filter);try{n.categoryLinks=ai.createListOfCmsNavLink(e.fields.items,t)}catch(e){n.categoryLinks=[]}let i=new ri("",n.categoryLinks);return n.secondaryLinks=[i],n}static createCommonCmsNavMenu(e){const t=new oi;return t.notInFilter=Bt.H.map(e),t}static createCmsNavMenuForSubmenusData(e,t){let n=this.createCommonCmsNavMenu(e.fields&&e.fields.filter);return n.categoryLinks=ai.createCategoryLinks(e,t),n.secondaryLinks=ai.createSecondaryLinks(e,t),e.fields&&e.fields.filter&&(n.notInFilter=Bt.H.map(e.fields.filter)),n}static createCategoryLinks(e,t){let n=[];try{let i=e.fields.items[0];n=this.createListOfCmsNavLink(i.fields.items,t);let r=new ii("",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 ri(i,r),a=n.fields.items[1].fields.title,s=this.createListOfCmsNavLink(n.fields.items[1].fields.items,t);return[o,new ri(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;let i=null;t=this.removeSlashUrlAtTheBeginning(t)===e.uriSuffix?"/":this.addSlashUrlAtTheEnd(t);const r=this.removeSlashUrlAtTheBeginning(e.uriSuffix),o=n.menuItemLabel?n.menuItemLabel:n.title,a={exact:"/casino/"!==t};return n.filter&&(i=Bt.H.map(n.filter)),new ii(t+r,o,n.iconClass,!1,!1,a,i)}static createCmsNavLinkFromExternalLink(e,t){let n,i="same_window"!==e.linkTarget,r=null;return n=e.linkUrl.startsWith("/")||this.isAbsoluteUrl(e.linkUrl)?e.linkUrl:(t=this.removeSlashUrlAtTheBeginning(t)===e.linkUrl?"/":this.addSlashUrlAtTheEnd(t))+e.linkUrl,e.filter&&(r=Bt.H.map(e.filter)),new ii(n,e.linkText,e.iconClass,!1,i,void 0,r)}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 si=new i.InjectionToken("MenuConfig");let ci=(()=>{class e{}return e.CASINOHOME="casinohome",e.AUTHSTATEFILTERING="authstatefiltering",e.LOGGEDIN="loggedin",e})(),li=(()=>{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,ci.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,ci.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,Zn.ge)(e,ci.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=>ai.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,ci.LOGGEDIN):this.contentService.removeTaggedComponents(e,ci.LOGGEDIN)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Zn._s),i["ɵɵinject"](Zn.Bo),i["ɵɵinject"](ti.F),i["ɵɵinject"](ei.P),i["ɵɵinject"](Be.mj),i["ɵɵinject"](si))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var ui=n(91184);class di{setContent(e){this.content=e}}di.ɵfac=function(e){return new(e||di)},di.ɵprov=i["ɵɵdefineInjectable"]({token:di,factory:di.ɵfac}),(0,a.__decorate)([ui.LO,(0,a.__metadata)("design:type",Object)],di.prototype,"content",void 0),(0,a.__decorate)([ui.aD,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],di.prototype,"setContent",null);let hi=(()=>{class e{constructor(e,t,n){this.pageService=e,this.cmsFeatureFlagService=t,this.headerStore=n}resolve(e,t){return this.cmsFeatureFlagService.isFeatureEnabled(wt.u.CASINO_UNIQUE_PAGES_FF)?this.pageService.fetchSection(Zn.lI,Zn.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"](li),i["ɵɵinject"](wt.u),i["ɵɵinject"](di))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class pi{get title(){return this.content?this.content.title:""}setContent(e){this.content=e}}pi.ɵfac=function(e){return new(e||pi)},pi.ɵprov=i["ɵɵdefineInjectable"]({token:pi,factory:pi.ɵfac}),(0,a.__decorate)([ui.LO,(0,a.__metadata)("design:type",Object)],pi.prototype,"content",void 0),(0,a.__decorate)([ui.Fl,(0,a.__metadata)("design:type",String),(0,a.__metadata)("design:paramtypes",[])],pi.prototype,"title",null),(0,a.__decorate)([ui.aD,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],pi.prototype,"setContent",null);class fi{setContent(e){this.content=e}get categoryLinks(){return this.content.categoryLinks}}fi.ɵfac=function(e){return new(e||fi)},fi.ɵprov=i["ɵɵdefineInjectable"]({token:fi,factory:fi.ɵfac}),(0,a.__decorate)([ui.LO,(0,a.__metadata)("design:type",oi)],fi.prototype,"content",void 0),(0,a.__decorate)([ui.aD,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[oi]),(0,a.__metadata)("design:returntype",void 0)],fi.prototype,"setContent",null),(0,a.__decorate)([ui.Fl,(0,a.__metadata)("design:type",Array),(0,a.__metadata)("design:paramtypes",[])],fi.prototype,"categoryLinks",null);const mi=new i.InjectionToken("metadataAlternateContentToken");let gi=(()=>{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(wt.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"](li),i["ɵɵinject"](wt.u),i["ɵɵinject"](pi),i["ɵɵinject"](mi),i["ɵɵinject"](Zn.Bo))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),vi=(()=>{class e extends gi{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,Zn.vg)(i,this.sessionService.isAuthenticated());return this.pageService.fetchHomeContent(r,Zn.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"](li),i["ɵɵinject"](wt.u),i["ɵɵinject"](pi),i["ɵɵinject"](mi),i["ɵɵinject"](Zn.Bo),i["ɵɵinject"](V.m),i["ɵɵinject"](mn.HV),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),bi=(()=>{class e{constructor(e,t,n){this.pageService=e,this.cmsFeatureFlagService=t,this.menuStore=n}resolve(e,t){return this.cmsFeatureFlagService.isFeatureEnabled(wt.u.CASINO_UNIQUE_PAGES_FF)?this.pageService.fetchMenu(Zn.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"](li),i["ɵɵinject"](wt.u),i["ɵɵinject"](fi))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var yi=n(50680),Si=n(76053),Ci=n(9293);let xi=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=>Si(Ci(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 yi(this.horizontal(n),(e=>e.filter((e=>e.left<i))),this.previous("left"))(e)}searchRight(e,t){const{top:n,left:i}=t;return yi(this.horizontal(n),(e=>e.filter((e=>e.left>i))),this.next("left"))(e)}searchTop(e,t){const{top:n,left:i}=t;return yi(this.vertical(i),(e=>e.filter((e=>e.top<n))),this.previous("top"))(e)}searchBottom(e,t){const{top:n,left:i}=t;return yi(this.vertical(i),(e=>e.filter((e=>e.top>n))),this.next("top"))(e)}};xi=(0,a.__decorate)([(0,a.__param)(1,(0,i.Inject)(i.PLATFORM_ID)),(0,a.__metadata)("design:paramtypes",[Object,Object])],xi);let Ii=(()=>{class e{constructor(e,t,n){this.gamecardService=e,this.subdivisionService=t,this.router=n}canActivate(e){return this.gamecardService.getGameCard(e.params.slug).pipe((0,c.map)((e=>!this.gamecardBlockedInCurrentSubdivision(e)||this.router.parseUrl("/content-not-available-in-your-region"))))}gamecardBlockedInCurrentSubdivision(e){const t=this.subdivisionService.getCurrentSubdivisionId(),n=this.subdivisionService.getCurrentCountryCode();return e&&e.notInFilter&&e.notInFilter.countrySubdivision&&(e.notInFilter.countrySubdivision.includes(t)||e.notInFilter.countrySubdivision.includes(n))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Yt),i["ɵɵinject"](pn.F),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),wi=(()=>{class e{static forRoot(){return{ngModule:e,providers:[nn,Yt,Zt,Wt,Ii,Vt,Ut,tn,ut.AJ,en,tt,Qt,nt,dn,hn]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[]]}),e})(),Ei=(()=>{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 Ti=n(37268);let Pi=(()=>{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]]}),e})();var Ai=n(49485);let _i=(()=>{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"](Yt),i["ɵɵinject"](Jt.B),i["ɵɵinject"](dn))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Mi=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Ut,Vt,Yt,Wt,_i,Ei],imports:[[r.CommonModule,ct.U8,it.a,Ai.s,Ti.z,ot.d,xe.BrowserTransferStateModule,yt,Pi,St.L,ut.$Q]]}),e})(),ki=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Oi=n(34207);class Ni extends ni.w{constructor(){super()}}var Ri=n(56914),Li=n(78482);class ji extends Ri.x{map(e){let t=[];return Array.isArray(e.fields.items)&&(t=e.fields.items.map((e=>this.mapCard(e)))),{data:{cards:t,notInFilter:Bt.H.map(e.fields.filter)}}}mapCard(e){let t=new Ni;t.cardType=Ke(["fields","page_type"],e)||We.G.ARTICLE,t.slug=Li.K.mapLinkUrl(e),t.title=Ke(["fields","title"],e),t.category=Ke(["fields","category"],e),t.publicationDate=e.publishedAt||e.updatedAt,t.draft="draft"===e.status,t.notInFilter=Bt.H.map(e.fields.filter);let n=Ke(["fields","card_image"],e);return t.image=n&&n.url,t.imageAltText=n&&n.alt,t}}var Di=n(26709),Fi=n(40476),Bi=n(55183);function Ui(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 Vi(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,Ui,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["ɵɵattribute"]("data-notIn-subdivisions",e.getSubdivisionList()),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 Hi=(()=>{class e{constructor(e){this.cardsConfig=e,this.cardsConfig=this.cardsConfig||{}}hasFeature(e,t){return this.cardsConfig[t]&&this.cardsConfig[t].indexOf(e)>=0}getSubdivisionList(){return Bt.H.getNotInSubdivisionList(this.card.notInFilter)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](ki))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-grid-card"]],inputs:{card:"card",defaultImage:"defaultImage"},decls:3,vars:1,consts:[["class","grid-card-wrapper","bxHideBySubdivision","",4,"ngIf"],["bxHideBySubdivision","",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,Vi,18,8,"article",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.card))},directives:[r.NgIf,gn.e,o.RouterLinkWithHref,vn.Z,bn.t],pipes:[Bi.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 Gi(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-grid-card",2),i["ɵɵtext"](1,"\n            "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵproperty"]("card",e)("defaultImage",n.getDefaultImage())}}let zi=class{constructor(e,t){this.imageService=e,this.gridCardsConfig=t,this.notInSubdivisionList=null,t=t||{}}set data(e){this.cards=e.cards,this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(e.notInFilter)}getDefaultImage(){let e=this.gridCardsConfig.defaultImageDimension||{width:224,height:117};return this.imageService.getPlaceholderImage(e.width,e.height)}};zi.ɵfac=function(e){return new(e||zi)(i["ɵɵdirectiveInject"](Di.A),i["ɵɵdirectiveInject"](ki))},zi.ɵcmp=i["ɵɵdefineComponent"]({type:zi,selectors:[["bx-grid-cards"]],inputs:{data:"data"},decls:7,vars:4,consts:[["bxHideBySubdivision",""],[3,"card","defaultImage",4,"ngFor","ngForOf"],[3,"card","defaultImage"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"div",0),i["ɵɵtext"](2,"\n            "),i["ɵɵtemplate"](3,Gi,2,2,"bx-grid-card",1),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["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngForOf",t.cards))},directives:[gn.e,r.NgForOf,Hi],encapsulation:2}),zi=(0,a.__decorate)([(0,q.DE)({name:"GridCards",mapper:ji,matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").map((e=>e.trim())).indexOf(Fi.d.GRID_LAYOUT)>=0}),(0,a.__metadata)("design:paramtypes",[Di.A,ki])],zi);let $i=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[ki,ut.AJ],imports:[[r.CommonModule,o.RouterModule,ut.$Q,Oi.$,dt.D,mt.o,W.J.withComponents([zi]),st.m]]}),e})();var Wi=n(73518);let qi=class extends $e.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t}matcher(e){let t=Ke(["fields","page_type"],e);return e.contentType===K.z.CONTENT_PAGE&&t===We.G.PROMOTION}createLink(e){let t=e.slugname||e.slug||Ke(["fields","slug"],e),n=Ke(["fields","uriSuffix"],e)||t;return n?`/${Wi.X}/${n}`:""}};qi.ɵfac=function(e){return new(e||qi)(i["ɵɵinject"](Xe.z),i["ɵɵinject"](Ye.X))},qi.ɵprov=i["ɵɵdefineInjectable"]({token:qi,factory:qi.ɵfac}),qi=(0,a.__decorate)([(0,$e.ST)(),(0,a.__metadata)("design:paramtypes",[Xe.z,Ye.X])],qi);var Ki=n(20734),Xi=n(49697),Yi=n(89138),Qi=n(63325);function Ji(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 Zi=class{constructor(){this.notInSubdivisionList=null}set data(e){this._data=e.items,this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(e.notInFilter)}};Zi.ɵfac=function(e){return new(e||Zi)},Zi.ɵcmp=i["ɵɵdefineComponent"]({type:Zi,selectors:[["bx-casino-categories"]],inputs:{data:"data"},decls:12,vars:2,consts:[["bxHideBySubdivision","",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,Ji,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"](1),i["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngForOf",t._data))},directives:[gn.e,r.NgForOf,Qi.I,r.NgClass],styles:[".carousel.primary[_ngcontent-%COMP%]   .content-slider[_ngcontent-%COMP%] {\n  min-height: 218px; }"]}),Zi=(0,a.__decorate)([(0,q.DE)({name:"CasinoCategories",matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Fi.d.TOP_CASINO_CATEGORIES)>=0})],Zi);var er=n(80417);let tr=(()=>{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,er.LO,it.a,st.m,W.J.withComponents([Zi])]]}),e})();var nr=n(76463),ir=n(57138),rr=n(16393),or=n(42680);const ar=["*"];let sr=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-footer"]],inputs:{footerData:"footerData"},ngContentSelectors:ar,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:[or.n],encapsulation:2}),e})(),cr=(()=>{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"](ti.F))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var lr=n(37355);class ur{map(e){return e.contentType?ur.mapCmsContent(e):ur.mapStaticContent(e)}static mapCmsContent(e){return{title:e.fields.menuItemLabel||e.fields.title,url:Li.K.mapLinkUrl(e),newTab:"new_tab"===e.fields.linkTarget,notInFilter:Bt.H.map(e.fields&&e.fields.filter)}}static mapStaticContent(e){return{title:e.linkText,url:e.linkUrl,newTab:"new_tab"===e.linkTarget}}}class dr extends Ri.x{constructor(){super(...arguments),this.menuItemMapper=new ur}map(e){let t={footerLinks:[],notInFilter:Bt.H.map(e.fields&&e.fields.filter)};for(let n of e.fields.items){let e;e=this.menuItemMapper.map(n),t.footerLinks.push(e)}return{content:t}}}let hr=(()=>{class e{}return e.DEFAULT={},e})();function pr(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementContainerEnd"]())}function fr(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"])("data-notIn-subdivisions",e.notInSubdivisionList),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.title)}}function mr(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["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.title)}}function gr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"li",3),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,pr,2,0,"ng-container",4),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,fr,4,5,"ng-template",null,5,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](6,"\n                    "),i["ɵɵtemplate"](7,mr,4,5,"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 vr=class{constructor(e){this.injector=e}ngOnInit(){if(this.footerConfig=this.injector.get(hr,hr.DEFAULT),this.content.notInFilter&&(this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(this.content.notInFilter)),this.content.footerLinks)for(let e of this.content.footerLinks)e.url=this.multilingualDirective.translateUrl(e.url),e.notInSubdivisionList=Bt.H.getNotInSubdivisionList(e.notInFilter)}};vr.ɵfac=function(e){return new(e||vr)(i["ɵɵdirectiveInject"](i.Injector))},vr.ɵcmp=i["ɵɵdefineComponent"]({type:vr,selectors:[["bx-footer-menu"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](lr.l,7),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.multilingualDirective=e.first)}},inputs:{content:"content"},decls:9,vars:3,consts:[["bxTranslatePath","","bxHideBySubdivision","",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","bxHideBySubdivision","",3,"target","title"],["bxHideBySubdivision","",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,gr,10,3,"li",2),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),i["ɵɵadvance"](2),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:[lr.l,gn.e,r.NgClass,r.NgForOf,r.NgIf,o.RouterLinkWithHref],encapsulation:2}),vr=(0,a.__decorate)([(0,q.DE)({name:"FooterMenu",mapper:dr,matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Fi.d.FOOTER_MENU)>=0}),(0,a.__metadata)("design:paramtypes",[i.Injector])],vr);var br=n(67197),yr=n(72688);let Sr=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[cr],imports:[[r.CommonModule,ut.$Q,o.RouterModule,W.J.withComponents([sr,vr]),br.k.withComponents([sr,vr]),o.RouterModule.forChild([]),yr.l,st.m]]}),e})();var Cr=n(82957);let xr=(()=>{class e extends Ri.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,notInFilter:Bt.H.map(e.fields.filter)}}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Ut),i["ɵɵinject"](Ft.e))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ir=(()=>{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(Kt.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"](mn.HV),i["ɵɵinject"](H.r),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();class wr 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,t){super(t),this.subdivisionService=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)).filter((e=>!this.isFilterGameBySubdivision(e))):null}doSort(){return this.data}isFilterGameBySubdivision(e){return e.notInFilter&&e.notInFilter.countrySubdivision&&(e.notInFilter.countrySubdivision.includes(this.subdivisionService.getCurrentSubdivisionId())||e.notInFilter.countrySubdivision.includes(this.subdivisionService.getCurrentCountryCode()))}}class Er{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 Tr=(()=>{class e extends Ri.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 Er("All",[],t.fields.slugname,t.fields.internal_name,t.automatedNumberOfItems,t.fields.personalized)];const n=this.addPersonalizedTracking(t);return[new Er("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 Er(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 Er(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})(),Pr=(()=>{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"](Yt),i["ɵɵinject"](Zn._s),i["ɵɵinject"](Tr),i["ɵɵinject"](Ir))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),Ar=(()=>{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})();var _r=n(40475);const Mr=["searchInput"];function kr(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 Or=function(e){return{"search-field-enabled":e}},Nr=function(e,t){return{hidden:e,"has-text":t}},Rr=function(){return{tag:"placeholder",label:"search.input.placeholder"}},Lr=function(e){return{"has-text active-field":e}},jr=function(e,t){return{"search-btn":e,"cancel-search":t}};let Dr=(()=>{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"](_r.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"](Mr,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,kr,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,Or,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,Nr,t.isInactive(),t.isTyping()))("bxTranslate",i["ɵɵpureFunction0"](18,Rr)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](19,Lr,t.isTyping())),i["ɵɵadvance"](3),i["ɵɵproperty"]("hidden",t.searchForm.pristine),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](21,jr,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})(),Fr=(()=>{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})(),Br=(()=>{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 Ur=["searchBar"],Vr=["cardContainer"];function Hr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"h2",18),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](3);i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.title)}}function Gr(e,t){1&e&&i["ɵɵelement"](0,"div",19)}function zr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"header",15),i["ɵɵtext"](1,"\n                            "),i["ɵɵtemplate"](2,Hr,2,1,"h2",16),i["ɵɵtext"](3,"\n                            "),i["ɵɵtemplate"](4,Gr,1,0,"div",17),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e.showTitlePlaceholder),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.showTitlePlaceholder)}}function $r(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"bx-search-bar",20,21),i["ɵɵlistener"]("focus",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onFocusSearch()}))("activated",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onSearchActivated()}))("deactivated",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).onSearchDeactivated()})),i["ɵɵtext"](2,"\n                        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("dataSource",e.casinoDataSource)}}const Wr=function(){return[400,304]};function qr(e,t){if(1&e&&i["ɵɵelement"](0,"bx-card",22),2&e){const e=t.$implicit,n=t.index,r=i["ɵɵnextContext"](2);i["ɵɵproperty"]("card",e)("defaultImage",r.getDefaultImage())("defaultImageSize",i["ɵɵpureFunction0"](8,Wr))("defaultImageColor",r.cardConfig.defaultImageColor)("gameBlockContext",r.gameBlockContext)("position",n)("contentSource",r.contentSource)("automatedTracking",r.automatedTracking)}}function Kr(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",23),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).scrollLeft()})),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"button",24),i["ɵɵtext"](3,"\n                                "),i["ɵɵelement"](4,"i",25),i["ɵɵtext"](5,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"]()}}function Xr(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",26),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).scrollRight()})),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementStart"](2,"button",27),i["ɵɵtext"](3,"\n                                "),i["ɵɵelement"](4,"i",28),i["ɵɵtext"](5,"\n                            "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"]()}}const Yr=function(e){return{overmenu:e}},Qr=function(e){return{"hidden-xs":e}};function Jr(e,t){if(1&e&&(i["ɵɵelementStart"](0,"section",1),i["ɵɵtext"](1,"\n            "),i["ɵɵelementStart"](2,"div",2),i["ɵɵtext"](3,"\n                "),i["ɵɵelementStart"](4,"div",3),i["ɵɵtext"](5,"\n                    "),i["ɵɵelementStart"](6,"div",4),i["ɵɵtext"](7,"\n                        "),i["ɵɵtemplate"](8,zr,6,2,"header",5),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n                    "),i["ɵɵelementStart"](11,"div",6),i["ɵɵtext"](12,"\n                        "),i["ɵɵtemplate"](13,$r,3,1,"bx-search-bar",7),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n                "),i["ɵɵelementStart"](17,"div",8),i["ɵɵtext"](18,"\n                    "),i["ɵɵelementStart"](19,"div",9,10),i["ɵɵtext"](21,"\n                        "),i["ɵɵtemplate"](22,qr,1,9,"bx-card",11),i["ɵɵtext"](23,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n                    "),i["ɵɵelementStart"](25,"ul",12),i["ɵɵtext"](26,"\n                        "),i["ɵɵtemplate"](27,Kr,7,0,"li",13),i["ɵɵtext"](28,"\n                        "),i["ɵɵtemplate"](29,Xr,7,0,"li",14),i["ɵɵtext"](30,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](32,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](33,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](9,Yr,e.searchBarActive)),i["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](11,Qr,e.searchBarActive)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.title),i["ɵɵadvance"](3),i["ɵɵproperty"]("hidden",!e.isCasinoSearchEnabled()),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.isCasinoSearchEnabled()),i["ɵɵadvance"](9),i["ɵɵproperty"]("ngForOf",e.games),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",e.scrollLeftButtonShown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.scrollRightButtonShown)}}let Zr=class{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f){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=u,this.casinoGameSearchConfig=d,this.cardConfig=h,this.gameTertiaryCarouselService=p,this.subdivisionService=f,this.CASINO_SEARCH_FEATURE="casino.search_bar",this.CASINO_SEARCH_DATASOURCE="SEARCHBYCATEGORIES",this.scrollRightButtonShown=!0,this.scrollLeftButtonShown=!1,this.games=[],this.hideSection=!1,this.contentSource="manual",this.notInSubdivisionList=null,this.horizontalScrollService=this.horizontalScrollServiceFactory.create()}ngOnInit(){this.isCasinoSearchEnabled()&&(this.casinoDataSource=new wr(this.subdivisionService)),this.showTitlePlaceholder=this.gamecardSlider.hasPersonalizedContent,this.title=this.gamecardSlider.title,this.games=this.gamecardSlider.games,this.hideSection=this.subdivisionService.checkAllGamesHaveSameSubdivisionRestriction(this.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()),this.gamecardSlider.notInFilter&&(this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(this.gamecardSlider.notInFilter))}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)}};Zr.ɵfac=function(e){return new(e||Zr)(i["ɵɵdirectiveInject"](ut.AJ),i["ɵɵdirectiveInject"](Cr.b),i["ɵɵdirectiveInject"](xt._),i["ɵɵdirectiveInject"](xr),i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](Ir),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](Lt.U),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](on.G),i["ɵɵdirectiveInject"](Ar),i["ɵɵdirectiveInject"](tt),i["ɵɵdirectiveInject"](Pr),i["ɵɵdirectiveInject"](pn.F))},Zr.ɵcmp=i["ɵɵdefineComponent"]({type:Zr,selectors:[["bx-game-card-slider"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](Ur,5,i.ElementRef),i["ɵɵviewQuery"](Vr,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:3,vars:1,consts:[["class","carousel primary","bxHideBySubdivision","",3,"ngClass",4,"ngIf"],["bxHideBySubdivision","",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","defaultImageSize","defaultImageColor","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","defaultImageSize","defaultImageColor","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["ɵɵtemplate"](1,Jr,34,13,"section",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",!t.hideSection))},directives:[r.NgIf,gn.e,r.NgClass,r.NgForOf,Dr,Fr,Br,Dn],encapsulation:2}),Zr=(0,a.__decorate)([(0,q.DE)({name:"GamecardSlider",injectedMapper:xr,matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Fi.d.GAMECARD_SLIDER)>=0}),(0,a.__metadata)("design:paramtypes",[ut.AJ,Cr.b,xt._,xr,Object,Object,Ir,ee.u,Lt.U,H.r,on.G,Ar,tt,Pr,pn.F])],Zr);var eo=n(89493),to=n(6235);const no=new i.InjectionToken("SearchConfig");let io=(()=>{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"](no),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 ro(e,t){}function oo(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,ro,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 ao(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 so=function(e){return{active:e}};let co=(()=>{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"](Dr))},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,oo,4,1,"ng-container",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,ao,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,so,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,io,ve.P],styles:["[_nghost-%COMP%]   ul.active[_ngcontent-%COMP%] {\n  display: block; }"]}),e})(),lo=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:no,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,it.a,_r.ReactiveFormsModule,to.$]]}),e})();i["ɵɵsetComponentScope"](Dr,[r.NgClass,_r["ɵNgNoValidate"],_r.NgControlStatusGroup,_r.FormGroupDirective,_r.DefaultValueAccessor,_r.NgControlStatus,_r.FormControlName,ve.P,r.NgIf,co],[]);let uo=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[xr,on.G],imports:[[r.CommonModule,o.RouterModule,Ct,ut.$Q,it.a,eo.E,W.J.withComponents([Zr]),lo,rt.M,st.m]]}),e})();const ho=function(e){return{tag:"textContent",label:e}},po=function(e){return[e]};function fo(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,po,i["ɵɵpureFunction1"](7,ho,e.title)))}}function mo(e,t){if(1&e&&(i["ɵɵelementStart"](0,"ul",1),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,fo,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 go=(()=>{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,mo,4,3,"ul",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.buttons))},directives:[r.NgIf,r.NgForOf,ve.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})(),vo=(()=>{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})(),bo=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[vo]}),e})();class yo{}let So=(()=>{class e extends Ri.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 yo;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),{data:{featuredGames:o,notInFilter:Bt.H.map(e.fields.filter)}}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Ut),i["ɵɵinject"](Ft.e))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Co,xo=n(88391);class Io{constructor(e){this.games=e.games,this.disabled=0===e.games.length,this.name=e.name}}class wo{constructor(e){this.games=[],this.disabled=!e.hasGames,this.name=e.name}}const Eo=["cardContainer"],To=function(){return[400,304]};function Po(e,t){if(1&e&&(i["ɵɵelementStart"](0,"bx-card",12),i["ɵɵtext"](1,"\n                            "),i["ɵɵelementEnd"]()),2&e){const e=t.$implicit,n=t.index,r=i["ɵɵnextContext"](3);i["ɵɵproperty"]("card",e)("defaultImage",r.imageService.getPlaceholderImage(400,304))("defaultImageSize",i["ɵɵpureFunction0"](8,To))("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 Ao(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",13),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).scrollLeft()})),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"button",14),i["ɵɵtext"](3,"\n                            "),i["ɵɵelement"](4,"i",15),i["ɵɵtext"](5,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"]()}}function _o(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",16),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](3).scrollRight()})),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 Mo(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",4),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"div",6,7),i["ɵɵtext"](4,"\n                            "),i["ɵɵtemplate"](5,Po,2,9,"bx-card",8),i["ɵɵtext"](6,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                    "),i["ɵɵelementStart"](8,"ul",9),i["ɵɵtext"](9,"\n                        "),i["ɵɵtemplate"](10,Ao,7,0,"li",10),i["ɵɵtext"](11,"\n                        "),i["ɵɵtemplate"](12,_o,7,0,"li",11),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](5),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)}}function ko(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["ɵɵtemplate"](9,Mo,15,3,"div",5),i["ɵɵtext"](10,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n        "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList),i["ɵɵadvance"](4),i["ɵɵproperty"]("buttons",e.buttons)("noTabBackgroundColor",e.gameCarouselConfig.noTabBackgroundColor),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngIf",!e.hideSection[e.carouselIndex])}}let Oo=Co=class{constructor(e,t,n,i,r,o,a,s,c,l,u,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=u,this.subdivisionService=d,this.hideSection=[],this.buttons=[],this.gameCarousel=[{}],this.carouselIndex=Co.FEATURED_INDEX,this.scrollRightButtonShown=!0,this.scrollLeftButtonShown=!1,this.lastPlayedClicked=!1,this.contentSource="manual",this.notInSubdivisionList=null}set data(e){this.featuredGames=e.featuredGames,this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(e.notInFilter)}ngOnInit(){this.paintGameCarousel(),this.loginSubscription=this.loginService.loginEvent.subscribe((()=>{this.gameCarousel[Co.MOST_PLAYED_INDEX].disabled&&this.gameCarousel[Co.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.data.featuredGames,this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(t.data.notInFilter),this.automatedTracking=this.featuredGames.automatedTracking;const n=this.gameCarousel[Co.FEATURED_INDEX].name;this.gameCarousel[Co.FEATURED_INDEX]=new Io(this.featuredGames.gameCategory),this.gameCarousel[Co.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 Io(this.featuredGames.gameCategory);this.gameCarousel[Co.FEATURED_INDEX]=e,this.gameCarousel[Co.MOST_PLAYED_INDEX]=this.getDefaultMostPlayedFlags(),this.gameCarousel[Co.LAST_PLAYED_INDEX]=this.getDefaultLastPlayedFlags(),this.gameCarousel.forEach((e=>{this.hideSection.push(this.shouldHideSectionForIndex(e))})),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 Ot]),0===t.games.length&&(t.games=[new Ot]),this.gameCarousel[Co.MOST_PLAYED_INDEX]=e,this.gameCarousel[Co.LAST_PLAYED_INDEX]=t,this.setButtons()}))}getMostPlayedUpdated(){return Co.MOST_PLAYED_INDEX===this.carouselIndex?this.gamecardService.getGameMostPlayed().pipe((0,c.map)((e=>new Io(e)))):this.getMostPlayedFlags()}getMostPlayedFlags(){return this.gamecardService.getGameMostPlayedFlags().pipe((0,c.map)((e=>new wo(e))))}getDefaultMostPlayedFlags(){return new wo(this.gamecardService.getDefaultCategoryFlagsForMostPlayed())}getLastPlayedUpdated(){return Co.LAST_PLAYED_INDEX===this.carouselIndex||this.lastPlayedClicked?this.gamecardService.getGameLastPlayed().pipe((0,c.map)((e=>new Io(e)))):this.getLastPlayedFlags()}getLastPlayedFlags(){return this.gamecardService.getGameLastPlayedFlags().pipe((0,c.map)((e=>new wo(e))))}getDefaultLastPlayedFlags(){return new wo(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===Co.MOST_PLAYED_INDEX&&this.setMostPlayedGames(),e!==Co.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 Io(e)))).subscribe((e=>{this.gameCarousel[Co.LAST_PLAYED_INDEX]=e}))}setMostPlayedGames(){this.gamecardService.getGameMostPlayed().pipe((0,c.map)((e=>new Io(e)))).subscribe((e=>{this.gameCarousel[Co.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()}shouldHideSectionForIndex(e){return this.subdivisionService.checkAllGamesHaveSameSubdivisionRestriction(e.games)}};Oo.FEATURED_INDEX=0,Oo.MOST_PLAYED_INDEX=1,Oo.LAST_PLAYED_INDEX=2,Oo.ɵfac=function(e){return new(e||Oo)(i["ɵɵdirectiveInject"](Yt),i["ɵɵdirectiveInject"](Wt),i["ɵɵdirectiveInject"](U.r6),i["ɵɵdirectiveInject"](vo),i["ɵɵdirectiveInject"](ut.AJ),i["ɵɵdirectiveInject"](xo.c),i["ɵɵdirectiveInject"](Be.mj),i["ɵɵdirectiveInject"](xt._),i["ɵɵdirectiveInject"](So),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](Ir),i["ɵɵdirectiveInject"](pn.F))},Oo.ɵcmp=i["ɵɵdefineComponent"]({type:Oo,selectors:[["bx-game-carousel"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Eo,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.cardContainer=e.first)}},inputs:{featuredGames:"featuredGames",data:"data"},decls:3,vars:1,consts:[["class","carousel secondary","bxHideBySubdivision","",4,"ngIf"],["bxHideBySubdivision","",1,"carousel","secondary"],[1,"component-wrapper"],["listClass","custom-tab tertiary max-container",3,"buttons","noTabBackgroundColor","buttonSelected"],[1,"hide-scroll","max-container"],["class","hide-scroll max-container",4,"ngIf"],[1,"content-slider","max-container","max-height-container"],["cardContainer",""],["class","max-height-container",3,"card","defaultImage","defaultImageSize","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","defaultImageSize","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,ko,12,4,"section",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.gameCarousel))},directives:[r.NgIf,gn.e,go,r.NgForOf,Dn],styles:[".max-width-container[_ngcontent-%COMP%] {\n  width: 1366px;\n  height: 0; }\n\n.max-height-container[_ngcontent-%COMP%] {\n  max-height: 260px; }"]}),Oo=Co=(0,a.__decorate)([(0,q.DE)({name:"GameCarousel",injectedMapper:So,matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Fi.d.GAMES_CAROUSEL)>=0}),(0,a.__metadata)("design:paramtypes",[Yt,Wt,U.r6,vo,ut.AJ,xo.c,Be.mj,xt._,So,Object,Ir,pn.F])],Oo);let No=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[So],imports:[[r.CommonModule,xe.BrowserTransferStateModule,Be.ny,Ct,it.a,eo.E,bo,W.J.withComponents([Oo]),Pi,Ai.s,st.m]]}),e})();var Ro,Lo=n(43959),jo=n(20843),Do=n(42934);const Fo=["searchBar"],Bo=["cardContainer"],Uo=["gameCategoryList"];function Vo(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 Ho=function(e,t){return{"icon-arrow-down":e,"icon-arrow-next":t}};function Go(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,Ho,e.active,!e.active))}}const zo=function(e){return["/casino",e]},$o=function(e){return{active:e}};function Wo(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,Vo,2,1,"h2",12),i["ɵɵtext"](5,"\n                                    "),i["ɵɵtemplate"](6,Go,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,zo,e.slug)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](7,$o,e.active)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!n.gameCategoriesConfigService.showArrowMenu),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",n.gameCategoriesConfigService.showArrowMenu)}}function qo(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 Ko(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 Xo(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,$o,e.active)),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.name)}}function Yo(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",25),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,Ko,2,2,"bx-dropdown",26),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementStart"](4,"ul",27),i["ɵɵtext"](5,"\n                            "),i["ɵɵtemplate"](6,Xo,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 Qo(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementContainerEnd"]())}function Jo(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 Zo(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 ea(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                            "),i["ɵɵtemplate"](1,Zo,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 ta(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]))("defaultImageSize",n.placeholderImageSize)("cardMatrix",n.cardMatrix)}}const na=function(e,t,n){return{"content-slider":!0,"hide-scroll":e,scroll:t,"no-scroll":n}};function ia(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                    "),i["ɵɵtemplate"](1,Yo,9,2,"div",19),i["ɵɵtext"](2,"\n                    "),i["ɵɵelementStart"](3,"header",20),i["ɵɵtext"](4,"\n                        "),i["ɵɵtemplate"](5,Qo,2,0,"ng-container",9),i["ɵɵtext"](6,"\n                        "),i["ɵɵtemplate"](7,Jo,4,1,"ng-template",null,21,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](9,"\n                        "),i["ɵɵtemplate"](10,ea,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,ta,2,5,"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,na,"large"!==n.gameCategoriesConfigService.imageType,"large"!==n.gameCategoriesConfigService.imageType,"large"===n.gameCategoriesConfigService.imageType)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngForOf",n.games)}}function ra(e,t){}function oa(e,t){1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                "),i["ɵɵelementContainerEnd"]())}const aa=function(e){return{"max-container customCarousel":e}},sa=function(e,t){return{"casino-actions-container":e,"casino-search-enabled":t}},ca=function(e,t){return{"hide-scroll":e,hidden:t}};let la=Ro=class{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f){this.deviceService=e,this.siteConfig=t,this.gamecardService=n,this.gamecardMapper=i,this.imageService=r,this.route=o,this.router=a,this.scrollService=s,this.gameCategoriesConfigService=c,this.cookieStorageService=l,this.document=u,this.platformId=d,this.windowService=h,this.casinoGameSearchConfig=p,this.subdivisionService=f,this.tabs=[],this.subTabs=[],this.games=[new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot],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 wr(this.subdivisionService))}ngOnDestroy(){this.navigationEndSubscriber&&this.navigationEndSubscriber.unsubscribe()}ngAfterViewInit(){this.initScroll(),Promise.resolve().then((()=>this.cardMatrix=new xi(this.gameCards,this.platformId)))}getSelectedCategoryFromRoute(){let e;return e=this.route.children[0]?this.route.children[0].snapshot.params.category:this.route.snapshot.params.category,e}selectTab(e){if(this.tabs.forEach((e=>{e.active=!1})),e.active=!0,this.selectedTab=e,this.subTabs=[],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(Ro.CASINO_SEARCH_FEATURE)&&(0,r.isPlatformBrowser)(this.platformId)}addTabs(){this.gameCategories.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(Ro.CASINO_SEARCH_DATASOURCE)}};la.CASINO_SEARCH_FEATURE="casino.search_bar",la.CASINO_SEARCH_DATASOURCE="SEARCHBYCATEGORIES",la.ɵfac=function(e){return new(e||la)(i["ɵɵdirectiveInject"](Lt.U),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](Yt),i["ɵɵdirectiveInject"](Vt),i["ɵɵdirectiveInject"](ut.AJ),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](Do.a),i["ɵɵdirectiveInject"](Qt),i["ɵɵdirectiveInject"](on.G),i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](ee.u,8),i["ɵɵdirectiveInject"](Ar),i["ɵɵdirectiveInject"](pn.F))},la.ɵcmp=i["ɵɵdefineComponent"]({type:la,selectors:[["bx-game-categories"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](Fo,5,i.ElementRef),i["ɵɵviewQuery"](Bo,5),i["ɵɵviewQuery"](Uo,5),i["ɵɵviewQuery"](Dn,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","defaultImageSize","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","defaultImageSize","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,Wo,9,9,"a",5),i["ɵɵtext"](13,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                    "),i["ɵɵtemplate"](16,qo,3,1,"bx-search-bar",6),i["ɵɵtext"](17,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n                "),i["ɵɵtemplate"](19,ia,20,10,"ng-template",null,7,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](21,"\n                "),i["ɵɵtemplate"](22,ra,0,0,"ng-template",null,8,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](24,"\n                "),i["ɵɵtemplate"](25,oa,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,aa,!t.gameCategoriesConfigService.applyMaxContainer)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](14,sa,t.isCasinoSearchEnabled(),t.searchBarActive)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](17,ca,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",null==t.selectedTab?null:t.selectedTab.slug)("ngIfThen",e)("ngIfElse",n)}},directives:[r.NgClass,r.NgForOf,r.NgIf,o.RouterLinkWithHref,vn.Z,Dr,Fr,Br,jo.J,Dn],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; }']}),la=Ro=(0,a.__decorate)([(0,q.DE)({name:"GameCategories",matcher:e=>e.contentType===K.z.MENU&&e.fields.tags&&e.fields.tags.split(",").indexOf(Fi.d.CASINO_CATEGORIES)>=0}),(0,a.__metadata)("design:paramtypes",[Lt.U,H.r,Yt,Vt,ut.AJ,o.ActivatedRoute,o.Router,Do.a,Qt,on.G,Object,Object,ee.u,Ar,pn.F])],la);let ua=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,rt.M,ut.$Q,o.RouterModule,at.d,eo.E,mt.o,Ct,lt.k,W.J.withComponents([la]),lo,Pi]]}),e})();var da=n(55516);class ha extends ni.w{}class pa extends ni.w{}let fa=(()=>{class e{constructor(){this.createCardboard=e=>{let t=new pa;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.fields.filter&&(t.notInFilter=Bt.H.map(e.fields.filter||{})),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:Li.K.mapLinkUrl(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var ma=n(54056),ga=n(55298);function va(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 ba(e,t){1&e&&i["ɵɵelementContainer"](0)}function ya(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,ba,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 Sa(e,t){1&e&&i["ɵɵelementContainer"](0)}function Ca(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,Sa,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 xa(e,t){1&e&&i["ɵɵelementContainer"](0)}function Ia(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,xa,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 wa=(()=>{class e{constructor(e,t,n,i,r){this.platformId=e,this.cmsExternalLinkService=t,this.siteConfigService=n,this.clickHandlerService=i,this.windowService=r,this.thumbnailImage="/assets/images/thumbnail.png",this.thumbnailAlt="Placeholder image",this.notInSubdivisionList=null,this.useCssThumbnail=this.siteConfigService.hasFeature(Kt.L.cssThumbnail),this.useCssThumbnail&&(this.thumbnailImage="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==")}set card(e){this.cmsLink=e.link?this.cmsExternalLinkService.toCmsExternalLink(e.link.url):{uri:"",queryParams:{}},this.cardProps=e,this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(this.cardProps&&this.cardProps.notInFilter)}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"]($e.xG),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](ga.M),i["ɵɵdirectiveInject"](ee.u,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-cardboard"]],inputs:{card:"card"},decls:15,vars:3,consts:[["bxHideBySubdivision","",1,"game-thumbnail","img-large"],["cardboard",""],["internalLink",""],["externalLink",""],[4,"ngIf","ngIfElse"],[1,"thumb-container"],["width","400","height","304",1,"img-placeholder","img-responsive","background-light",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,va,12,9,"ng-template",null,1,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](5,"\n\n        "),i["ɵɵtemplate"](6,ya,6,4,"ng-template",null,2,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](8,"\n\n        "),i["ɵɵtemplate"](9,Ca,6,4,"ng-template",null,3,i["ɵɵtemplateRefExtractor"]),i["ɵɵtext"](11,"\n\n        "),i["ɵɵtemplate"](12,Ia,4,3,"ng-container",4),i["ɵɵtext"](13,"\n    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n    ")),2&e){const e=i["ɵɵreference"](4);i["ɵɵadvance"](1),i["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),i["ɵɵadvance"](11),i["ɵɵproperty"]("ngIf",t.cardProps.link)("ngIfElse",e)}},directives:[gn.e,r.NgIf,bn.t,o.RouterLinkWithHref,r.NgTemplateOutlet],pipes:[Fn.d],styles:[".img-placeholder[_ngcontent-%COMP%] {\n                aspect-ratio: 400 / 304;\n            }\n            .background-light[_ngcontent-%COMP%] {\n                background-color: #d9d9d9;\n            }"]}),e})();var Ea=n(60227);const Ta=["cardContainer"];function Pa(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 Aa(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 _a(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),i["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList)}}function Ma(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 ka(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 Oa=(()=>{class e{constructor(e){this.horizontalScrollService=e,this.scrollRightButtonShown=!0,this.scrollLeftButtonShown=!1,this.cards=[new pa],this.slideCards=[new ma.q],this.notInSubdivisionList=null}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,this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(this.cardSlider.notInFilter)}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"](xo.c))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-card-slider"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Ta,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.cardContainer=e.first)}},inputs:{cardSlider:"cardSlider"},features:[i["ɵɵProvidersFeature"]([xo.c])],decls:27,vars:6,consts:[["bxHideBySubdivision","",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"],["bxHideBySubdivision","",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,Pa,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,Aa,2,1,"bx-cardboard",6),i["ɵɵtext"](13,"\n                "),i["ɵɵtemplate"](14,_a,5,8,"div",7),i["ɵɵtext"](15,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](16,"\n            "),i["ɵɵelementStart"](17,"ul",8),i["ɵɵtext"](18,"\n                "),i["ɵɵtemplate"](19,Ma,7,0,"li",9),i["ɵɵtext"](20,"\n                "),i["ɵɵtemplate"](21,ka,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"](1),i["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),i["ɵɵadvance"](4),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:[gn.e,r.NgIf,r.NgForOf,wa,Ea._],encapsulation:2}),e})(),Na=class{constructor(){this.data={},this.cardSlider=new ha,this.notInSubdivisionList=null}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,this.cardSlider.notInFilter=Bt.H.map(e.filter),this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(this.cardSlider.notInFilter)}getCards(e={}){let t=new fa;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}))}};Na.ɵfac=function(e){return new(e||Na)},Na.ɵcmp=i["ɵɵdefineComponent"]({type:Na,selectors:[["bx-scrollable-section"]],inputs:{data:"data"},features:[i["ɵɵNgOnChangesFeature"]],decls:4,vars:2,consts:[["bxHideBySubdivision","",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),i["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList))},directives:[Oa,gn.e],encapsulation:2}),Na=(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(Fi.d.SCROLLABLE)>=0}}),(0,a.__metadata)("design:paramtypes",[])],Na);var Ra=n(90054);let La=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[fa,$e.xG],imports:[[r.CommonModule,o.RouterModule,dt.D,ut.$Q,Ra.g.forRoot(),st.m]]}),e})();var ja=n(82939);let Da=(()=>{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,eo.E,La,ja.A,st.m]]}),e})(),Fa=(()=>{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,La,Da,W.J.withComponents([Na]),st.m]]}),e})();var Ba,Ua=n(34553);let Va=Ba=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(Ba.GAME_ID).subscribe(function(){var t=(0,Ua.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===Ba.CURRENCY_NOT_SUPPORTED_ERROR)return this.casinoService.resolveCurrencyNotSupported()}))}appendWidgetIntegrationScript(e){var t=this;return(0,Ua.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)}};Va.GAME_ID=1331,Va.CURRENCY_NOT_SUPPORTED_ERROR=412,Va.ɵfac=function(e){return new(e||Va)(i["ɵɵdirectiveInject"](dn),i["ɵɵdirectiveInject"](Lt.U),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](xe.DomSanitizer),i["ɵɵdirectiveInject"](i.PLATFORM_ID))},Va.ɵcmp=i["ɵɵdefineComponent"]({type:Va,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%; }"]}),Va=Ba=(0,a.__decorate)([(0,q.DE)({name:"CasinoVirtualSports",matcher:e=>e.contentType===K.z.FUNCTIONAL&&(0,Zn.ge)(e,Fi.d.VIRTUALSPORTS)}),(0,a.__metadata)("design:paramtypes",[dn,Lt.U,ee.u,xe.DomSanitizer,Object])],Va);let Ha=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[Va]}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Ga=n(58859),za=n(30352),$a=n(93758),Wa=n(58548),qa=n(15287),Ka=n(4060);let Xa=(()=>{class e{static forRoot(){return{ngModule:e,providers:[$a.S,Wa.s,{provide:qa.OJ,useExisting:Wa.s}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[],imports:[[Ka.P]]}),e})();var Ya=n(94410),Qa=n(57685),Ja=n(33087);let Za=(()=>{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){O.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}},O.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"](O),i["ɵɵinject"](i.Injector))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),es=(()=>{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"](Za))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();const ts=()=>{};let ns=(()=>{class e{constructor(e,t){this.siteConfigService=e,this.lazyLoaderService=t}init(){this.isApmRumEnabled()&&this.lazyLoaderService.getService("EUMModule","EUMService").toPromise().then(ts)}isApmRumEnabled(){return this.siteConfigService.isFeaturePresent(Kt.L.apmRum)&&!!this.siteConfigService.getSiteConfig().apmUri}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](H.r),i["ɵɵinject"](es))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),is=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[es],imports:[[]]}),e})(),rs=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[ns],imports:[[is,j.withModule({moduleId:"EUMModule",loadChildren:()=>Promise.all([n.e(883),n.e(793)]).then(n.bind(n,62793)).then((e=>e.EUMModule))})]]}),e})();var os=n(86333);let as=(()=>{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(Kt.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"](H.r),i["ɵɵinject"](ee.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var ss=n(64375),cs=n(72556);let ls=(()=>{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"](H.r),i["ɵɵinject"](ee.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const us={height:"0",width:"0",display:"none",visibility:"hidden"};let ds=(()=>{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}`,us))}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"](H.r),i["ɵɵinject"](ee.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),hs=(()=>{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(Kt.L.pwa)}isPWACookieEnable(){return!!this.cookieStorageService.get(Kt.L.pwa)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](H.r),i["ɵɵinject"](on.G))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ps=(()=>{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,Ua.Z)((function*(){const t=yield e.getEffectiveLanguage(),n=e.getBucket();return e.composeServiceWorkerURL(t,n)}))()}getEffectiveLanguage(){var e=this;return(0,Ua.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,Ua.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"](H.r),i["ɵɵinject"](Pt.T))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),fs=(()=>{class e{constructor(e,t,n){this.globalRef=e,this.pwaAvailability=t,this.urlCalculatorService=n}init(){var e=this;return(0,Ua.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,Ua.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"](Tt.w),i["ɵɵinject"](hs),i["ɵɵinject"](ps))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ms=(()=>{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"](ns),i["ɵɵinject"](as),i["ɵɵinject"](ls),i["ɵɵinject"](ds),i["ɵɵinject"](ss.F),i["ɵɵinject"](cs.z),i["ɵɵinject"](ie.R),i["ɵɵinject"](fs))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var gs=n(93744);let vs=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[gs.V]}),e})();var bs=n(22311),ys=n(10560),Ss=n(54075);let Cs=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[ss.F,ys.h,bs.Y,Ss.l]}),e})(),xs=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[as,ls,ds,fs,hs,ps,ms],imports:[[rs,os.M,vs,Cs,Qa.z.forBrowser()]]}),e})();var Is=n(81736),ws=n(83521),Es=n(41931);let Ts=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Es.w]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Ps=n(77472),As=n(5875);class _s{constructor(e,t,n){this.type=e,this.name=t,this.url=n}}var Ms=(()=>(function(e){e.PLACE="Place",e.POSTAL_ADDRESS="PostalAddress",e.SPORTS_EVENT="SportsEvent",e.BREADCRUMB_LIST="BreadcrumbList"}(Ms||(Ms={})),Ms))();class ks{constructor(e,t){this.id=e,this.name=t}toString(){return`{ "@id": "${this.id}", "name": "${this.name}" }`}}class Os{constructor(e){this.position=e}setItem(e){e&&(this.item=new ks(e.id,e.name))}toString(){return`{ "@type": "ListItem", "position": ${this.position},\n            "item": ${this.item?this.item.toString():{}} }`}}class Ns extends _s{constructor(){super(Ms.BREADCRUMB_LIST),this.itemListElement=[]}setItemListElement(e){e.forEach(((e,t)=>{this.itemListElement[t]=new Os(e.position),this.itemListElement[t].setItem(e.item)}))}toString(){return`{ "@context": "http://schema.org", "@type": "${this.type}",\n            "itemListElement": [ ${this.itemListElement.toString()} ] }`}}var Rs=n(16071);class Ls extends _s{constructor(){super(Ms.POSTAL_ADDRESS)}toString(){return`{"@type": "${this.type}"}`}}class js extends _s{constructor(e){super(Ms.PLACE,e)}setAddress(){this.address=new Ls}toString(){return`{"@type": "${this.type}", "name": "${this.name}",\n        "address": ${this.address?this.address.toString():{}} }`}}class Ds extends _s{constructor(e,t,n){super(Ms.SPORTS_EVENT,e,t),this.startDate=n}setLocation(e){e&&(this.location=new js(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 Fs=(()=>{class e{constructor(e,t,n,i){this.windowService=e,this.bxDatePipe=t,this.languageCookieSupplier=n,this.siteConfigService=i,this.defaultToEmptyString=Rs(""),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 Ds;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"](Bi.a),i["ɵɵinject"](As.g),i["ɵɵinject"](H.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Bs=(()=>{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 Ns;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"](Fs),i["ɵɵinject"](i.RendererFactory2),i["ɵɵinject"](As.g),i["ɵɵinject"](H.r),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Us=(()=>{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(Ms.SPORTS_EVENT)}isBreadcrumbListConfigured(){return this.getMarkupSchemas().includes(Ms.BREADCRUMB_LIST)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Bs),i["ɵɵinject"](H.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Vs=(()=>{class e{static forRoot(){return{ngModule:e,imports:[Oi.$,at.d],providers:[Us,Bs,Fs]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})(),Hs=(()=>{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 Gs=n(79346),zs=n(91691),$s=n(86213),Ws=n(71059),qs=n(63576),Ks=n(72558),Xs=n(28850);let Ys=(()=>{class e{static forRoot(){return{ngModule:e,providers:[re.m]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Qs=n(22101),Js=(n(3539),n(94708),n(22715),n(51015),n(65180),n(57106)),Zs=(n(14969),n(92753)),ec=n(42356),tc=n(58695),nc=n(26918),ic=n(79560),rc=n(81869),oc=n(89309);let ac=(()=>{class e{static forRoot(){return{ngModule:e,providers:[he.K,{provide:oc.r,useExisting:he.K}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var sc=n(87290),cc=n(21111),lc=n(14867),uc=n(91377),dc=n(32866),hc=n(44236);let pc=(()=>{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 fc=n(88323);const mc="pin-code-update";let gc=(()=>{class e{constructor(e,t,n){this.cookieStorageService=e,this.localStorageService=t,this.router=n}canActivate(e,t){let n=-1!==t.url.indexOf(mc);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([mc],{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"](on.G),i["ɵɵinject"](fc.n),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var vc=n(39211);let bc=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[gc],imports:[[_r.ReactiveFormsModule,ct.U8,it.a,ht.x,vc.N,o.RouterModule]]}),e})();var yc=n(77194),Sc=n(85055),Cc=n(76580),xc=n(1272),Ic=n(17505),wc=n(17443),Ec=n(33814),Tc=n(91605);let Pc=(()=>{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,Tc.v4)()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](ee.u))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),Ac=(()=>{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)(i["ɵɵinject"](Pc))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var _c=n(94966);let Mc=(()=>{class e{constructor(e){this.servicesRequestService=e}intercept(e,t){if(e.url.match(_c.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)(i["ɵɵinject"](Pc))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var kc=n(63752);let Oc=(()=>{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)(i["ɵɵinject"](kc.P))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Nc=n(6289);let Rc=(()=>{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)(i["ɵɵinject"](Lt.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();const Lc="x-retries";let jc=(()=>{class e{constructor(){this.DEFAULT_RETRIES=1}intercept(e,t){if(e.headers.has(Lc)){const n=parseInt(e.headers.get(Lc))||this.DEFAULT_RETRIES,i=e.clone({headers:e.headers.delete(Lc)});return t.handle(i).pipe((0,c.retry)(n))}return t.handle(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();const Dc="x-timeout";let Fc=(()=>{class e{constructor(){this.httpTimeout=2e4}init(e){this.httpTimeout=e||2e4}intercept(e,t){let n=this.httpTimeout;return e.headers.has(Dc)&&(n=parseInt(e.headers.get(Dc))||this.httpTimeout,e=e.clone({headers:e.headers.delete(Dc)})),t.handle(e).pipe((0,c.timeoutWith)(n,(0,s.throwError)(new Error(`The request timed out: ${n}ms expired`))))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),Bc=(()=>{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"](fn.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),Uc=(()=>{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"](Ac),i["ɵɵinject"](Bc),i["ɵɵinject"](Fc))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),Vc=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[kc.P,...t,Uc,{provide:we.XhrFactory,useClass:Oc}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var Hc=n(10904),Gc=n(13580),zc=n(29815),$c=n(42312);let Wc=class extends $e.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t,this.GENERIC_PAGE_BASE_ROUTE="pages"}matcher(e){let t=Ke(["fields","page_type"],e);return e.contentType===K.z.CONTENT_PAGE&&t===We.G.GENERIC}createLink(e){let t=e.slugname||e.slug||Ke(["fields","slug"],e),n=Ke(["fields","uriSuffix"],e)||t;return n?`/${this.GENERIC_PAGE_BASE_ROUTE}/${n}`:""}};Wc.ɵfac=function(e){return new(e||Wc)(i["ɵɵinject"](Xe.z),i["ɵɵinject"](Ye.X))},Wc.ɵprov=i["ɵɵdefineInjectable"]({token:Wc,factory:Wc.ɵfac}),Wc=(0,a.__decorate)([(0,$e.ST)(),(0,a.__metadata)("design:paramtypes",[Xe.z,Ye.X])],Wc);var qc=n(40556);let Kc=class extends $e.Xe{constructor(e,t){super(e,t),this.urlPrefixService=e,this.gameUrlService=t,this.HELP_PAGE_BASE_ROUTE="help"}matcher(e){const t=Ke(["fields","page_type"],e);return e.contentType===K.z.CONTENT_PAGE&&t===We.G.HELP}createLink(e){const t=e.slugname||e.slug||Ke(["fields","slug"],e),n=Ke(["fields","uriSuffix"],e)||t;if(n){const t=new qc.Z({uriSuffix:n,paths:e.paths}).paths[0];return`/${this.HELP_PAGE_BASE_ROUTE}/${t}`}return""}};Kc.ɵfac=function(e){return new(e||Kc)(i["ɵɵinject"](Xe.z),i["ɵɵinject"](Ye.X))},Kc.ɵprov=i["ɵɵdefineInjectable"]({token:Kc,factory:Kc.ɵfac}),Kc=(0,a.__decorate)([(0,$e.ST)(),(0,a.__metadata)("design:paramtypes",[Xe.z,Ye.X])],Kc);var Xc=n(47490);let Yc=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Xc.W]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[rt.M,Gs.C,Re.forRoot(),wc.S]]}),e})(),Qc=(()=>{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"]($c.$))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Jc=(()=>{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 Zc=n(52450),el=n(23696);let tl=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[el.s],imports:[[ht.x,o.RouterModule,Zc.P,it.a,Xs.U,bc]]}),e})();var nl=n(79308);let il=(()=>{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})(),rl=(()=>{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"](Lt.U),i["ɵɵinject"](H.r),i["ɵɵinject"](ee.u),i["ɵɵinject"](il),i["ɵɵinject"](nl.uR),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ol=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[nl.uR,il,rl],imports:[[r.CommonModule,rt.M,Gs.C]]}),e})();var al=n(92870),sl=n(30986);class cl{setPlaceholderValues(e){this.placeholderValues=e}}cl.ɵfac=function(e){return new(e||cl)},cl.ɵprov=i["ɵɵdefineInjectable"]({token:cl,factory:cl.ɵfac}),(0,a.__decorate)([ui.LO,(0,a.__metadata)("design:type",Object)],cl.prototype,"placeholderValues",void 0),(0,a.__decorate)([ui.aD,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],cl.prototype,"setPlaceholderValues",null);let ll=(()=>{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 ul=n(81243);let dl=(()=>{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"](H.r),i["ɵɵinject"](ll))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),hl=(()=>{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)&&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"](cl),i["ɵɵinject"](ll),i["ɵɵinject"](ul.j),i["ɵɵinject"](dl))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const pl=[{lang:"zh-hans",replacement:"zh"}];let fl=(()=>{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"](hl))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ml=(()=>{class e extends fl{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"](hl),i["ɵɵinject"](xe.Meta))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),gl=(()=>{class e extends ml{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"](hl),i["ɵɵinject"](xe.Meta),i["ɵɵinject"](xe.Title))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),vl=(()=>{class e extends ml{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"](hl),i["ɵɵinject"](xe.Meta),i["ɵɵinject"](ul.j))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),bl=(()=>{class e extends fl{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"](hl),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](ul.j))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();function yl(e){return e?e.replace(/\/$/,""):""}let Sl=(()=>{class e extends bl{isSettableValue(e){return!0}calculateValue(e){return yl(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 Cl=n(77247);let xl=(()=>{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"](ul.j),i["ɵɵinject"](an.s))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Il="x-default";let wl=(()=>{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,pl.forEach((t=>this.replaceLanguage(t.lang,t.replacement,e))),pl.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(Il,e);return n&&t.push(n),t}return e}getPathByLanguage(e,t){const n=this.getAlternateByLanguage(this.replacedDefaultLang===e?Il: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?Il:e.lang,e))).sort(((e,t)=>e.lang===Il?-1:t.lang===Il?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"](H.r),i["ɵɵinject"](Ja.Fl),i["ɵɵinject"](xl),i["ɵɵinject"](Pt.T),i["ɵɵinject"](ee.u,8),i["ɵɵinject"](Cl.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),El=(()=>{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 yl(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"](hl),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](ul.j),i["ɵɵinject"](wl))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();let Tl=(()=>{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"](ml),i["ɵɵinject"](vl),i["ɵɵinject"](gl),i["ɵɵinject"](Sl),i["ɵɵinject"](El))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Pl="HTML";let Al=(()=>{class e extends fl{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(Pl),this.attributes(""))}setLanguageValue(e){const t=this.getFullLanguage(e);this.setAttributes(this.getTag(Pl),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=pl.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"](H.r),i["ɵɵinject"](hl),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),_l=(()=>{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"](Al))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ml=(()=>{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})(),kl=(()=>{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"](we.HttpClient),i["ɵɵinject"](Xe.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Ol={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"},Nl={title:"title",description:"description",canonical:"canonicalTag","og:site_name":"openGraphSiteName","og:url":"openGraphURL","og:title":"openGraphTitle","og:description":"openGraphDescription","twitter:card":"twitterCard","twitter:url":"twitterURL","twitter:title":"twitterTitle","twitter:description":"twitterDescription",robots:"robotsMetadata",alternate:"alternates","google-site-verification":"googleSiteVerification",seobility:"seobility"};let Rl=(()=>{class e{constructor(){this.metadataCache={}}get(e){return this.metadataCache[e]}set(e,t){this.metadataCache[e]=t}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ll=(()=>{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){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){const i=this.metadataCacheService.get(t);return i?(0,s.of)({order:n,metadata:this.createMetadata(i)}):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=Ol[n];i&&(t[i]=e[n])})),t}createMetadata(e){const t={title:"",description:"",canonicalTag:"",openGraphSiteName:"",openGraphURL:"",openGraphTitle:"",openGraphDescription:"",twitterCard:"",twitterURL:"",twitterTitle:"",twitterDescription:"",robotsMetadata:"",alternates:[],googleSiteVerification:"",seobility:""};return Object.keys(e).forEach((n=>{const i=Nl[n];i&&(t[i]=e[n])})),t}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](H.r),i["ɵɵinject"](kl),i["ɵɵinject"](Tl),i["ɵɵinject"](Rl),i["ɵɵinject"](xl))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),jl=(()=>{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"](Pt.T),i["ɵɵinject"](o.Router),i["ɵɵinject"](xl),i["ɵɵinject"](Ll),i["ɵɵinject"](_l),i["ɵɵinject"](Ml))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Dl=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Tl,ml,vl,gl,bl,Sl,El,Al,jl,Ll,_l,kl,xl,Rl,hl,dl,Ml,wl,cl,ul.j,ll,Ja.Fl],imports:[[r.CommonModule]]}),e})(),Fl=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Bl=(()=>{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:Ke(["fields","title"],e)||"",content:Ke(["fields","body"],e)||"",style:Ke(["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"](wt.u),i["ɵɵinject"](Zn._s))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ul=(()=>{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"](Bl),i["ɵɵinject"](Jt.B))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Vl=(()=>{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:[Xn.l,Yn.z],pipes:[Fn.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})(),Hl=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[Xs.U,dt.D]]}),e})(),Gl=(()=>{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=Ke(["fields","page_type"],e);switch(n){case We.G.PROMOTION:t={contentType:e.contentType,slugname:e.slugname,pageType:n,promotion:this.promotionsMapper.mapPromotion(e),...this.routerDataConfig.dynamicRoutesConfig[We.G.PROMOTION]};break;case We.G.ARTICLE:t={...t,contentType:e.contentType,pageType:n,article:this.articlesModelCmsMapper.mapArticle(e),...this.routerDataConfig.dynamicRoutesConfig[We.G.ARTICLE]};break;case We.G.GENERIC:t={...t,contentType:e.contentType,pageType:n,resourceData:this.overlayPageService.processPage(e),...this.routerDataConfig.dynamicRoutesConfig[We.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"](Fl),i["ɵɵinject"](ti.F),i["ɵɵinject"](Ki.Q),i["ɵɵinject"](Ze.C),i["ɵɵinject"](Zn._s),i["ɵɵinject"](Zn.Bo),i["ɵɵinject"](Bl))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),zl=(()=>{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"](Gl),i["ɵɵinject"](ei.P),i["ɵɵinject"](Jt.B),i["ɵɵinject"](mi))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var $l=n(8566),Wl=n(56730),ql=n(81768);let Kl=(()=>{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"](H.r),i["ɵɵinject"](Rl),i["ɵɵinject"](kl),i["ɵɵinject"](ul.j),i["ɵɵinject"](F.JH))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Xl=(()=>{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:[zl,Gl,ei.P,Wl.Z,ql.V,{provide:mi,useClass:Kl}],imports:[[r.CommonModule,$l.B,bt.I,o.RouterModule]]}),e})();var Yl=n(59851);let Ql=(()=>{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)?Yl.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"](Xe.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Jl=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Ql],imports:[[o.RouterModule,r.CommonModule]]}),e})();var Zl=n(65353);let eu=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[li],imports:[[Zl.gM,Zn.Qh,W.J]]}),e})();var tu=n(51029);let nu=(()=>{class e extends Ri.x{constructor(e){super(),this.gameCardCmsMapper=e}map(e){const t=!!e.fields&&!!e.fields.personalized,n=parseInt(e.automatedNumberOfItems);return{data:{category:t?this.gameCardCmsMapper.mapGameCategoryFullTreeAsEmpty(e,n):this.gameCardCmsMapper.mapGameCategoryFullTree(e),notInFilter:Bt.H.map(e&&e.fields&&e.fields.filter)}}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Ut))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),iu=(()=>{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})(),ru=(()=>{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"](iu),i["ɵɵinject"](xt._),i["ɵɵinject"](Ut),i["ɵɵinject"](Ft.e))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();function ou(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 au=function(e){return{active:e}};function su(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,au,e.active)),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.name)}}function cu(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",8),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,ou,2,2,"bx-dropdown",9),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"ul",10),i["ɵɵtext"](5,"\n                        "),i["ɵɵtemplate"](6,su,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 lu(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 uu(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]))("defaultImageSize",r.placeholderImageSize)("cardMatrix",r.cardMatrix)("position",n)("contentSource",r.contentSource)("automatedTracking",r.automatedTracking)}}const du=function(e){return{"max-container customCarousel":e}},hu=function(e,t,n){return{"content-slider":!0,"hide-scroll":e,scroll:t,"no-scroll":n}};function pu(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,cu,9,2,"div",3),i["ɵɵtext"](5,"\n                "),i["ɵɵtemplate"](6,lu,5,3,"header",4),i["ɵɵtext"](7,"\n                "),i["ɵɵelementStart"](8,"div",5,6),i["ɵɵtext"](10,"\n                    "),i["ɵɵtemplate"](11,uu,2,8,"bx-card",7),i["ɵɵpipe"](12,"slice"),i["ɵɵtext"](13,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵclassProp"]("max-container",e.gameCategoriesConfigService.applyMaxContainer)("custom-carousel",e.gameCategoriesConfigService.customCarousel),i["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](15,du,!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"](17,hu,"large"!==e.gameCategoriesConfigService.imageType,"large"!==e.gameCategoriesConfigService.imageType,"large"===e.gameCategoriesConfigService.imageType)),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngForOf",i["ɵɵpipeBind3"](12,11,e.games,0,e.maxGamesVisible))("ngForTrackBy",e.slotTracker)}}let fu=class{constructor(e,t,n,i,o,a,s){this.gameCardCmsMapper=e,this.gameCategoryService=t,this.imageService=n,this.gameCategoriesConfigService=i,this.platformId=o,this.siteConfig=a,this.contentViewTrackingService=s,this.trimSSRCards=this.siteConfig.hasFeature(Kt.L.trimSSRCards),this.maxGamesVisible=Number.MAX_SAFE_INTEGER,this.dataLoaded=!1,this.subTabs=[],this.contentSource="manual",this.games=[new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot,new Ot],this.placeholderImageSize=[155,118],this.cardMatrix=[],this.showTitlePlaceholder=!1,this.notInSubdivisionList=null,this.isBrowser=(0,r.isPlatformBrowser)(o)}set data(e){e.category.games&&!this.isBrowser&&e.category.games.length>80&&(e.category.games=e.category.games.slice(0,80)),this.initCategoryData(e.category),this.isBrowser&&(this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(e.notInFilter))}slotTracker(e,{id:t}){return t}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.isBrowser?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}ngOnInit(){"large"===this.gameCategoriesConfigService.imageType&&(this.placeholderImageSize=[220,170]),this.trimSSRCards&&(this.maxGamesVisible=80)}ngAfterViewInit(){this.initScroll(),this.isBrowser&&(Promise.resolve().then((()=>this.cardMatrix=new xi(this.gameCards,this.platformId))),this.trimSSRCards&&(0,s.timer)(500).subscribe((()=>this.maxGamesVisible=Number.MAX_SAFE_INTEGER)))}setupSubcategoryGames(e){if(this.gameCategoryService.resetForCategory(),e.subCategories)for(const t of e.subCategories)t.games&&t.games.length>0&&this.gameCategoryService.includeInfoInCache(t)}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.find((t=>t.name===e.name));this.showTitlePlaceholder=t&&n.hasPersonalizedContent,this.contentSource=n.isAutomated?"automated":"manual",this.automatedTracking=n.automatedTracking,n.hasPersonalizedContent?this.isBrowser&&(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(this.isBrowser){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)}};fu.ɵfac=function(e){return new(e||fu)(i["ɵɵdirectiveInject"](Ut),i["ɵɵdirectiveInject"](ru),i["ɵɵdirectiveInject"](ut.AJ),i["ɵɵdirectiveInject"](Qt),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](Ir))},fu.ɵcmp=i["ɵɵdefineComponent"]({type:fu,selectors:[["bx-game-category"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Dn,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.gameCards=e)}},inputs:{data:"data"},decls:3,vars:1,consts:[["class","carousel tertiary","bxHideBySubdivision","",3,"max-container","custom-carousel",4,"ngIf"],["bxHideBySubdivision","",1,"carousel","tertiary"],["data-dynamic-element","dynamicElement",3,"ngClass"],["class","tab-dropdown",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["cardContainer",""],[3,"card","defaultImage","defaultImageSize","cardMatrix","position","contentSource","automatedTracking","imageType",4,"ngFor","ngForOf","ngForTrackBy"],[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","defaultImageSize","cardMatrix","position","contentSource","automatedTracking","imageType"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,pu,16,21,"section",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.dataLoaded))},directives:[r.NgIf,gn.e,r.NgClass,r.NgForOf,jo.J,vn.Z,Dn],pipes:[r.SlicePipe],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%; }"]}),fu=(0,a.__decorate)([(0,q.DE)({name:"GameCategory",injectedMapper:nu,matcher:e=>e.contentType===K.z.MENU&&(0,Zn.ge)(e,Fi.d.CASINO_GAMES_PER_CATEGORIES)}),(0,a.__metadata)("design:paramtypes",[Ut,ru,ut.AJ,Qt,Object,H.r,Ir])],fu);let mu=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[nu,ru,iu],imports:[[r.CommonModule,ut.$Q,o.RouterModule,mt.o,Ct,W.J.withComponents([fu]),lt.k,st.m]]}),e})();const gu=new i.InjectionToken("CASINO_HOME_INJECTION_TOKEN",{factory:()=>"/casino"});let vu=(()=>{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"](Ja.gz),i["ɵɵinject"](Ja.TS),i["ɵɵinject"](gu))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),bu=(()=>{class e extends Ri.x{constructor(e,t){super(),this.router=e,this.linkBuilder=t}map(e){const t=Bt.H.map(e&&e.fields&&e.fields.filter);return{data:{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}})),notInSubdivisionList:Bt.H.getNotInSubdivisionList(t)}}}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"](vu))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();function yu(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 Su=function(e){return{active:e}};function Cu(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,Su,e.active)),i["ɵɵadvance"](2),i["ɵɵproperty"]("routerLink",e.link.path),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.title)}}const xu=function(e){return{"max-container customCarousel":e}};let Iu=class extends class{constructor(e){this.router=e,this.subcategories=[],this.notInSubdivisionList=null}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}set data(e){this.subcategories=e.subcategories,this.notInSubdivisionList=e.notInSubdivisionList}};Iu.ɵfac=function(e){return new(e||Iu)(i["ɵɵdirectiveInject"](Qt),i["ɵɵdirectiveInject"](o.Router))},Iu.ɵcmp=i["ɵɵdefineComponent"]({type:Iu,selectors:[["bx-casino-subcategories-tab-menu"]],inputs:{data:"data"},features:[i["ɵɵInheritDefinitionFeature"]],decls:17,vars:10,consts:[["bxHideBySubdivision","",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,yu,2,3,"bx-dropdown",3),i["ɵɵtext"](8,"\n                    "),i["ɵɵelementStart"](9,"ul",4),i["ɵɵtext"](10,"\n                        "),i["ɵɵtemplate"](11,Cu,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["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](8,xu,!t.gameCategoriesConfigService.applyMaxContainer)),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.gameCategoriesConfigService.showDropdown),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngForOf",t.subcategories))},directives:[gn.e,r.NgClass,r.NgIf,r.NgForOf,jo.J,vn.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; }"]}),Iu=(0,a.__decorate)([(0,q.DE)({name:"CasinoSubcategoriesTabMenu",injectedMapper:bu,matcher:e=>e.contentType===K.z.MENU&&(0,Zn.ge)(e,Fi.d.CASINO_SUBCATEGORIES_MENU)}),(0,a.__metadata)("design:paramtypes",[Qt,o.Router])],Iu);let wu=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[bu,vu],imports:[[r.CommonModule,o.RouterModule,W.J.withComponents([Iu]),lt.k,Ct,mt.o,Ja.jH,st.m]]}),e})();var Eu=n(50536);const Tu=["groupItemMenu"],Pu=["tabsRef"];function Au(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 _u(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 Mu=function(e,t){return{"icon-arrow-down":e,"icon-arrow-next":t}};function ku(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,Mu,e.active,!e.active))}}function Ou(e,t){if(1&e&&(i["ɵɵtext"](0,"\n                                        "),i["ɵɵtemplate"](1,_u,2,1,"h2",13),i["ɵɵtext"](2,"\n                                        "),i["ɵɵtemplate"](3,ku,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 Nu(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,Au,2,1,"span",11),i["ɵɵtext"](5,"\n                                    "),i["ɵɵtemplate"](6,Ou,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["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!r.menuConfig.showArrowMenu)("ngIfElse",n)}}function Ru(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 Lu=function(e){return{"max-container customCarousel":e}},ju=function(e,t){return{"casino-actions-container":e,"casino-search-enabled":t}},Du=function(e,t){return{"hide-scroll":e,hidden:t}},Fu=function(e,t){return{overflow:e,"z-index":t}},Bu=function(e){return{overflow:e}};function Uu(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,Nu,10,9,"a",6),i["ɵɵtext"](12,"\n                            "),i["ɵɵtemplate"](13,Ru,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,Lu,!e.menuConfig.applyMaxContainer)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](13,ju,e.casinoSearchEnabled,e.searchBarActive)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction2"](16,Du,e.menuConfig.hideAndWrappComponent,e.searchBarActive&&e.deviceService.isMobile()))("ngStyle",i["ɵɵpureFunction2"](19,Fu,e.categoryGroupSlug&&e.subItemTabActive?"visible":"hidden",e.categoryGroupSlug&&5)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngStyle",i["ɵɵpureFunction1"](22,Bu,e.categoryGroupSlug&&"visible")),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngForOf",e.tabs),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.categoryGroupSlug)}}class Vu{constructor(e,t,n){this.label=e,this.url=t,this.notInSubdivisionList=n}}let Hu=(()=>{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 Vu(e.label,e.url,Bt.H.getNotInSubdivisionList(e.notInFilter)))):this.tabs=[],this.updateActiveTab()}selectTab(e){this.setActiveTab(e),this.sessionStorageService.set(nl.OI,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"](Lt.U),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](si),i["ɵɵdirectiveInject"](nl.uR),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"](Tu,5),i["ɵɵviewQuery"](Pu,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","bxHideBySubdivision","",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,Uu,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})(),Gu=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,rt.M,o.RouterModule,Ct,lo]]}),e})();const zu=function(e,t){return{"icon-arrow-down":e,"icon-arrow-next":t}};function $u(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,zu,t.tabActive,!t.tabActive))}}const Wu=function(e){return{itemActivated:e}};function qu(e,t){if(1&e&&(i["ɵɵelementStart"](0,"li",5),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,$u,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,Wu,t.tabActive)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.length)}}function Ku(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 Xu(e,t){if(1&e&&(i["ɵɵelementStart"](0,"ul",12),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,Ku,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 Yu(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",10),i["ɵɵtext"](1,"\n                    "),i["ɵɵtemplate"](2,Xu,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 Qu(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",2),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,qu,4,4,"li",3),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,Yu,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 Ju(e,t){if(1&e&&(i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Qu,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 Zu=(()=>{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(ai.createCmsNavMenu(e,this.menuConfig.baseUrl).categoryLinks||[]).map((e=>new Vu(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"](Zn._s),i["ɵɵdirectiveInject"](si))},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,Ju,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 ed=["searchBar"];function td(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 nd=(()=>{class e{constructor(e,t,n,r,o,a,s,c,l){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.subdivisionService=l,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 wr(this.subdivisionService)),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"](Lt.U),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](Yt),i["ɵɵdirectiveInject"](on.G),i["ɵɵdirectiveInject"](r.DOCUMENT),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](ee.u,8),i["ɵɵdirectiveInject"](Ar),i["ɵɵdirectiveInject"](pn.F))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-game-search"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](ed,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,td,3,1,"bx-search-bar",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.isCasinoSearchEnabled()))},directives:[r.NgIf,Dr,Fr,Br],encapsulation:2}),e})(),id=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[nl.uR],imports:[[r.CommonModule,it.a,o.RouterModule.forChild([]),at.d,Eu.j,mt.o,Gu,st.m]]}),e})();i["ɵɵsetComponentScope"](Hu,[r.NgIf,r.NgClass,r.NgStyle,r.NgForOf,o.RouterLinkWithHref,vn.Z,gn.e,Zu,nd],[]);let rd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})(),od=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[pi,di,fi],imports:[[r.CommonModule,o.RouterModule,ui.nA,W.J,tu.F,eu,mu,wu,id,zs.C,rd]]}),e})();var ad=n(42974);let sd=(()=>{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})(),cd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[sd,nl.uR],imports:[[Ya.n,ad.n,W.J,Zc.P.forRoot(),Xs.U,bt.I,o.RouterModule.forChild([]),rd]]}),e})(),ld=(()=>{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"](ti.F),i["ɵɵinject"](Jt.B),i["ɵɵinject"](ei.P))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var ud=n(7294);let dd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[ld],imports:[[W.J,Xs.U,r.CommonModule,ud.w,tu.F]]}),e})(),hd=(()=>{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})();var pd=n(96532);const fd=function(){return["/contact-us"]};function md(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,fd))}}const gd=function(){return["/login"]},vd=function(){return["/join"]};function bd(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,gd)),i["ɵɵadvance"](6),i["ɵɵproperty"]("routerLink",i["ɵɵpureFunction0"](3,vd)))}let yd=(()=>{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"](H.r),i["ɵɵdirectiveInject"](an.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,md,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,bd,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,ve.P,r.NgIf,pd.v],encapsulation:2}),e})(),Sd=(()=>{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,dt.D,it.a,Be.ny]]}),e})();var Cd=n(29862);let xd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Id=n(12744);let wd=(()=>{class e extends Ri.x{constructor(){super(...arguments),this.abtFieldsMapper=new Zl.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:Li.K.mapLinkUrl(e.fields.link_url),linkTarget:e.fields.link_target||Id.e.NONE,tracking:{abtStudy:this.abtFieldsMapper.map(e)},notInFilter:Bt.H.map(e.fields.filter)}}}}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})(),Ed=(()=>{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"](mn.HV))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Td=n(88401),Pd=n(7006);const Ad=["banner"],_d=["buttons"];function Md(e,t){if(1&e&&i["ɵɵelement"](0,"p",15),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("innerHTML",e.textHtml,i["ɵɵsanitizeHtml"])}}function kd(e,t){if(1&e&&i["ɵɵelement"](0,"span",16),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("innerHTML",e.subTextHtml,i["ɵɵsanitizeHtml"])}}const Od=function(e){return[e]};let Nd=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.notInSubdivisionList=null,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},this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(this.model.notInFilter)}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):""}};Nd.ɵfac=function(e){return new(e||Nd)(i["ɵɵdirectiveInject"](xd),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](ut.AJ),i["ɵɵdirectiveInject"](mn.HV),i["ɵɵdirectiveInject"](Ed),i["ɵɵdirectiveInject"](xe.DomSanitizer),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](re.m),i["ɵɵdirectiveInject"](ga.M))},Nd.ɵcmp=i["ɵɵdefineComponent"]({type:Nd,selectors:[["bx-banner-welcome"]],viewQuery:function(e,t){if(1&e&&(i["ɵɵviewQuery"](Ad,5),i["ɵɵviewQuery"](_d,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:20,consts:[["role","group","bxHideBySubdivision","",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,Md,1,1,"p",8),i["ɵɵtext"](18,"\n                        "),i["ɵɵtemplate"](19,kd,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["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList),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"](16,Od,(null==t.bannerWelcomeConfig.cta.join?null:t.bannerWelcomeConfig.cta.join.class)||"primary")),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](18,Od,(null==t.bannerWelcomeConfig.cta.login?null:t.bannerWelcomeConfig.cta.login.class)||"tertiary")))},directives:[gn.e,r.NgStyle,Qi.I,bn.t,r.NgIf,o.RouterLinkWithHref,ve.P,r.NgClass,Td.S,Pd.$],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; }"]}),Nd=(0,a.__decorate)([(0,q.DE)({name:"BannerWelcome",mapper:wd,matcher:e=>e.contentType===K.z.SLIDE&&e.fields.tags&&e.fields.tags.split(",").indexOf(Fi.d.BANNER_WELCOME)>=0,contentMapper:{featureFlag:wt.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",[xd,ee.u,ut.AJ,mn.HV,Ed,xe.DomSanitizer,Object,re.m,ga.M])],Nd);var Rd=n(75468);let Ld=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[wd],imports:[[r.CommonModule,o.RouterModule,Ai.s,it.a,at.d,ut.$Q,W.J.withComponents([Nd]),Rd.$,er.LO,st.m]]}),e})();var jd=n(80953),Dd=n(71710);function Fd(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 Bd="RAFLinksModule";let Ud=class{constructor(e,t,n){this.rafLinksService=e,this.sessionService=t,this.urlPrefixService=n,this.location={moduleId:Bd,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,Dd.EG)(this.rafLinksService.getReferralDomain(),this.urlPrefixService.getUrlPrefix(),e.trackingCode),this.inputs={rafUrl:this.rafUrl,theme:"light"}}))}};Ud.ɵfac=function(e){return new(e||Ud)(i["ɵɵdirectiveInject"](jd.p),i["ɵɵdirectiveInject"](V.m),i["ɵɵdirectiveInject"](Xe.z))},Ud.ɵcmp=i["ɵɵdefineComponent"]({type:Ud,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,Fd,1,2,"wt-lazy",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.rafUrl))},directives:[r.NgIf,N],encapsulation:2}),Ud=(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",[jd.p,V.m,Xe.z])],Ud);var Vd=n(59677);let Hd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Vd.pt],imports:[[r.CommonModule,o.RouterModule,dt.D,Be.ny,it.a,j.withModule({moduleId:Bd,loadChildren:()=>Promise.resolve().then(n.bind(n,75025)).then((e=>e.RAFLinksModule))}),sn.U8,W.J.withComponents([Ud])]]}),e})();var Gd=n(80445),zd=n(52652);let $d=(()=>{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"](Hs))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Wd=(()=>{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})(),qd=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[$d,Wd]}),e})();var Kd=n(90566);let Xd=(()=>{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,Kd.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 Yd=n(42767),Qd=n(36146),Jd=n(85443);function Zd(){return Math.pow(2,31)-1}var eh=n(14186);let th=(()=>{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 nh=function(e){return{tag:"textContent",label:e}};let ih=(()=>{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,nh,t.titleKey)))},directives:[Yn.z,ve.P],encapsulation:2,changeDetection:0}),e})();const rh=function(e){return{"error-message":e}},oh=function(e){return{tag:"textContent",label:e}};function ah(e,t){if(1&e&&i["ɵɵelement"](0,"p",3),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,rh,e.isInformationMessageAnError))("bxTranslate",i["ɵɵpureFunction1"](4,oh,e.informationMessage))}}function sh(e,t){if(1&e&&i["ɵɵelement"](0,"p",3),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,rh,e.isComplementaryMessageAnError))("bxTranslate",i["ɵɵpureFunction1"](4,oh,e.complementaryMessage))}}function ch(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 lh=(()=>{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,ah,1,6,"p",1),i["ɵɵtext"](5,"\n        "),i["ɵɵtemplate"](6,sh,1,6,"p",1),i["ɵɵtext"](7,"\n        "),i["ɵɵtemplate"](8,ch,2,1,"p",2),i["ɵɵtext"](9,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](5,rh,t.errorKey))("bxTranslate",i["ɵɵpureFunction1"](7,oh,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,ve.P,r.NgIf],encapsulation:2,changeDetection:0}),e})();var uh=n(93144),dh=n(82319),hh=n(84245),ph=n(58447),fh=n(74195),mh=n(97241);const gh=function(e){return{tag:"textContent",label:e}};function vh(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,gh,e.texts.resend))}}let bh=(()=>{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 uh.f({id:`${this.idFormPrefix}`,elements:{code:new dh.b({id:`${this.idFormPrefix}-code`,type:"copyPasteButton",inputButtonText:"inputField.button.label.paste",inputButtonFunction:"paste",onlyNumber:!0,focused:!0,autocomplete:"off",validators:{required:null,minLength:6,maxLength:6}})}}),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")}))}onPasteButtonEvent(e){const t=e.detail;RegExp(/^\d*$/).exec(t)&&(this.formGroup.controls.code.patchValue(t.substring(0,6)),this.formGroup.updateValueAndValidity(),document.getElementById(`${this.idFormPrefix}-code`).focus())}onPasteEvent(e){const t=e.clipboardData.getData("text/plain");RegExp(/^\d*$/).exec(t)||e.preventDefault()}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)}isSubmitButtonEnabled(){return!this.formGroup.valid}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](hh.o))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["input-code-form"]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("pasteButtonEvent",(function(e){return t.onPasteButtonEvent(e)}),!1,i["ɵɵresolveDocument"])("paste",(function(e){return t.onPasteEvent(e)}))},inputs:{idFormPrefix:"idFormPrefix",keyText:"keyText",canResend:"canResend"},outputs:{proceed:"proceed",resend:"resend",webtrekkPageEvent:"webtrekkPageEvent"},decls:22,vars:11,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,"disabled","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,vh,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,6,t.formModel,t.idFormPrefix))("controlGroup",t.formGroup),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",t.canResend),i["ɵɵadvance"](6),i["ɵɵproperty"]("disabled",t.isSubmitButtonEnabled())("bxTranslate",i["ɵɵpureFunction1"](9,gh,t.texts.continue)))},directives:[ph.U,_r.NgControlStatusGroup,_r.FormGroupDirective,fh.E,r.NgIf,ve.P],pipes:[mh.o],encapsulation:2,changeDetection:0}),e})(),yh=(()=>{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:[["bx-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","idFormPrefix","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)("idFormPrefix","verificationCode")("canResend",t.canResend))},directives:[ih,lh,bh],encapsulation:2,changeDetection:0}),e})(),Sh=(()=>{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(),e!==Zd()&&(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"](eh.o),i["ɵɵdirectiveInject"](pe.s),i["ɵɵdirectiveInject"](an.s),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](th))},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,"bx-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:[yh],encapsulation:2}),e})();var Ch=n(79611),xh=n(1890);function Ih(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 wh(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 Eh=function(e){return{tag:"textContent",label:e}};let Th=(()=>{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("",[_r.Validators.required,_r.Validators.minLength(4),_r.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!==xh.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"](_r.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,Ih,5,1,"div",2),i["ɵɵtext"](7,"\n\n            "),i["ɵɵtemplate"](8,wh,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,Eh,t.texts.continue)))},directives:[ph.U,_r.NgControlStatusGroup,_r.FormGroupDirective,xh.b,_r.NgControlStatus,_r.FormControlName,r.NgIf,ve.P],encapsulation:2,changeDetection:0}),e})(),Ph=(()=>{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:[["bx-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:[ih,lh,Th],encapsulation:2,changeDetection:0}),e})(),Ah=(()=>{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(),e!==Zd()&&(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"](Ch.k),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](an.s),i["ɵɵdirectiveInject"](Ks.il),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](th))},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,"bx-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:[Ph],encapsulation:2}),e})();var _h=n(99576),Mh=n(59386);function kh(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",9),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"input",10),i["ɵɵlistener"]("change",(function(){i["ɵɵrestoreView"](e);const t=i["ɵɵnextContext"]();return t.rememberMyDeviceFor2FAValue=!t.rememberMyDeviceFor2FAValue})),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                    "),i["ɵɵelementStart"](4,"label",11),i["ɵɵtext"](5,"verificationTwoFactorAuthenticator.overlay.content.remember_me.label"),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                "),i["ɵɵelementEnd"]()}if(2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("checked",e.rememberMyDeviceFor2FAValue)}}function Oh(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"div",12),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementStart"](2,"p",13),i["ɵɵtext"](3,"verificationTwoFactorAuthenticator.overlay.content.unableToAccess2faApp"),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n\n                    "),i["ɵɵelementStart"](5,"a",14),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().reset2FA()})),i["ɵɵtext"](6,"\n                        verificationTwoFactorAuthenticator.overlay.content.link.reset2fa"),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n                "),i["ɵɵelementEnd"]()}2&e&&(i["ɵɵadvance"](5),i["ɵɵproperty"]("bxTrackClick","2FA:reset-2FA-request"))}const Nh=function(e){return{tag:"textContent",label:e}};class Rh{constructor(e,t,n,r,o,a,c){this.formService=e,this.translateService=t,this.twoFactorAuthenticatorService=n,this.toastNotificationService=r,this.analyticsService=o,this.router=a,this.localStorageService=c,this.proceed=new i.EventEmitter,this.close=new i.EventEmitter,this.rememberMyDeviceFor2FAValue=!1,this.isHeadlessLoginRoute=!1,this.href$=new s.BehaviorSubject(null),this.NEED_HELP_URL="twoFactorAuthenticatorUrls.needHelpUrl",this.toSuccessNotification=e=>this.toNotification("success",e,(()=>this.closeOverlay())),this.toErrorNotification=e=>this.toNotification("error",e,(()=>{}))}ngOnInit(){this.formModel=new uh.f({id:`${this.idFormPrefix}`,elements:{code:new dh.b({id:`${this.idFormPrefix}-code`,type:"copyPasteButton",inputButtonText:"inputField.button.label.paste",inputButtonFunction:"paste",onlyNumber:!0,focused:!0,autocomplete:"off",validators:{required:null,maxLength:6,minLength:6}})}}),this.resetLinkShouldBeShown=Rh.operationsToShowResetLink.includes(this.operation),this.rememberMyDeviceShouldBeShown=this.twoFactorAuthenticatorService.isRememberMyDeviceFeatureEnabled()&&Qd.O.login===this.operation,this.formGroup=this.formService.createFormControl(this.formModel),this.initTextKeys(),document.addEventListener("pasteButtonEvent",(e=>this.handlePasteButtonEvent(e))),this.analyticsService.sendEvent("pageUpdate","2FA:"+this.operation+"_authentication_form_view",!0,null),this.isHeadlessLoginRoute=this.playerIsInHeadlessLogin(),this.translateService.translate(this.NEED_HELP_URL).subscribe((e=>{this.href$.next(e),this.needHelpUrlTranslation=e}))}initTextKeys(){let e;switch(this.operation){case Qd.O.changeStatus2FA:e=`${this.keyText}.button.confirm`;break;case Qd.O.disable2FA:e=`${this.keyText}.button.disable`;break;case Qd.O.withdraw:e=`${this.keyText}.button.withdraw`;break;default:e=`${this.keyText}.button.continue`}this.texts={button:e}}handlePasteButtonEvent(e){const t=e.detail;this.formGroup.controls.code.patchValue(t.substring(0,6)),this.formGroup.updateValueAndValidity(),document.getElementById(this.idFormPrefix+"-code").focus()}onSubmit(){this.localStorageService.set("rememberMyDeviceFor2FA",String(this.rememberMyDeviceFor2FAValue)),this.proceed.emit(this.formGroup.value)}isButtonEnabled(){return!this.formGroup.valid}reset2FA(){this.twoFactorAuthenticatorService.sendReset2FARequest(this.profileIdentifier).subscribe((()=>{this.translateService.translate("verificationTwoFactorAuthenticator.notification.success_message").pipe((0,c.map)(this.toSuccessNotification)).subscribe((e=>this.publishNotification(e)))}),(e=>{this.translateService.translate("verificationTwoFactorAuthenticator.notification.error_message").pipe((0,c.map)(this.toErrorNotification)).subscribe((e=>this.publishNotification(e)))}))}publishNotification(e){this.toastNotificationService.add(e)}toNotification(e,t,n,i=3e3){return{msg:t,showClose:!0,modal:!0,type:e,timeout:i,onRemove:n}}playerIsInHeadlessLogin(){return this.router.url.includes("headless/login")}closeOverlay(){this.router.navigateByUrl(this.twoFactorAuthenticatorService.getUrlCleanPath(this.router.url)).then((()=>{this.close.emit()}))}goToNeedHelp(){this.playerIsInHeadlessLogin()&&this.router.navigate([this.needHelpUrlTranslation])}}function Lh(e,t){1&e&&(i["ɵɵelementStart"](0,"span",7),i["ɵɵtext"](1,"3"),i["ɵɵelementEnd"]())}Rh.operationsToShowResetLink=[Qd.O.login,Qd.O.disable2FA],Rh.ɵfac=function(e){return new(e||Rh)(i["ɵɵdirectiveInject"](hh.o),i["ɵɵdirectiveInject"](an.s),i["ɵɵdirectiveInject"](me.R),i["ɵɵdirectiveInject"](_h.i),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](fc.n))},Rh.ɵcmp=i["ɵɵdefineComponent"]({type:Rh,selectors:[["bx-two-factor-code-form"]],inputs:{idFormPrefix:"idFormPrefix",keyText:"keyText",operation:"operation",profileIdentifier:"profileIdentifier"},outputs:{proceed:"proceed",close:"close"},decls:28,vars:18,consts:[[3,"formGroup","ngSubmit"],[1,"form-body"],["id","verification-2fa-form",3,"model","controlGroup"],["class","custom-checkbox native-toggle remember-me",4,"ngIf"],["class","unableToAccess2faApp",4,"ngIf"],[1,"buttons","full-width-ctas"],["type","submit","id","verification-2fa-submit",1,"custom-cta","cta-large","primary",3,"disabled","bxTrackClick","bxTranslate"],[1,"needHelp2faLink",3,"bxTrackClick"],[1,"custom-link",3,"bxTranslate","click"],[1,"custom-checkbox","native-toggle","remember-me"],["type","checkbox","role","checkbox","id","remember-me-checkbox",3,"checked","change"],["id","remember-me-label","for","remember-me-checkbox",3,"bxTranslate"],[1,"unableToAccess2faApp"],[3,"bxTranslate"],["href","javascript:void(0)",3,"bxTranslate","bxTrackClick","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\n                "),i["ɵɵtemplate"](9,kh,7,1,"div",3),i["ɵɵtext"](10,"\n\n                "),i["ɵɵtemplate"](11,Oh,8,1,"div",4),i["ɵɵtext"](12,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](13,"\n\n            "),i["ɵɵelementStart"](14,"div",5),i["ɵɵtext"](15,"\n\n                "),i["ɵɵelementStart"](16,"button",6),i["ɵɵtext"](17,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n                "),i["ɵɵelementStart"](19,"p",7),i["ɵɵtext"](20,"\n                    "),i["ɵɵelementStart"](21,"a",8),i["ɵɵlistener"]("click",(function(){return t.goToNeedHelp()})),i["ɵɵpipe"](22,"async"),i["ɵɵtext"](23,"twoFactorAuthenticatorUrls.needHelp\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](26,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](27,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("formGroup",t.formGroup),i["ɵɵadvance"](4),i["ɵɵproperty"]("model",i["ɵɵpipeBind2"](6,11,t.formModel,t.idFormPrefix))("controlGroup",t.formGroup),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.rememberMyDeviceShouldBeShown),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.resetLinkShouldBeShown),i["ɵɵadvance"](5),i["ɵɵproperty"]("disabled",t.isButtonEnabled())("bxTrackClick","2FA:"+t.operation+"_submit")("bxTranslate",i["ɵɵpureFunction1"](16,Nh,t.texts.button)),i["ɵɵadvance"](3),i["ɵɵproperty"]("bxTrackClick","2FA:"+t.operation+"_2FA-help"),i["ɵɵadvance"](2),i["ɵɵattribute"]("href",t.isHeadlessLoginRoute?void 0:i["ɵɵpipeBind1"](22,14,t.href$),i["ɵɵsanitizeUrl"])("target",t.isHeadlessLoginRoute?null:"_blank"))},directives:[ph.U,_r.NgControlStatusGroup,_r.FormGroupDirective,fh.E,r.NgIf,Mh.X,ve.P],pipes:[mh.o,r.AsyncPipe],encapsulation:2,changeDetection:0});let jh=(()=>{class e{constructor(){this.close=new i.EventEmitter,this.proceed=new i.EventEmitter}ngOnInit(){this.shouldShowBubble=this.operation===Qd.O.changeStatus2FA}onClose(){this.close.emit()}onProceed(e){this.proceed.emit(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-verification-two-factor-code-root"]],inputs:{headerKey:"headerKey",titleKey:"titleKey",informationMessage:"informationMessage",complementaryMessage:"complementaryMessage",isInformationMessageAnError:"isInformationMessageAnError",isComplementaryMessageAnError:"isComplementaryMessageAnError",keyText:"keyText",operation:"operation",profileIdentifier:"profileIdentifier"},outputs:{close:"close",proceed:"proceed"},decls:21,vars:11,consts:[[1,"verification-2fa-content"],[3,"titleKey","close"],[1,"modal-body"],[1,"information-verify"],["id","two-factor-authenticator-verification-bubble-3","class","bubble-badge icon-bubble",4,"ngIf"],[3,"titleKey","isInformationMessageAnError","isComplementaryMessageAnError","informationMessage","complementaryMessage"],[3,"operation","keyText","profileIdentifier","idFormPrefix","proceed","close"],["id","two-factor-authenticator-verification-bubble-3",1,"bubble-badge","icon-bubble"]],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,"div",3),i["ɵɵtext"](9,"\n                    "),i["ɵɵtemplate"](10,Lh,2,0,"span",4),i["ɵɵtext"](11,"\n\n                    "),i["ɵɵelementStart"](12,"mfa-verification-info",5),i["ɵɵtext"](13,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](14,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                "),i["ɵɵelementStart"](16,"bx-two-factor-code-form",6),i["ɵɵlistener"]("proceed",(function(e){return t.onProceed(e)}))("close",(function(){return t.onClose()})),i["ɵɵtext"](17,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](18,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](19,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](20,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("titleKey",t.headerKey),i["ɵɵadvance"](7),i["ɵɵproperty"]("ngIf",t.shouldShowBubble),i["ɵɵadvance"](2),i["ɵɵproperty"]("titleKey",t.titleKey)("isInformationMessageAnError",t.isInformationMessageAnError)("isComplementaryMessageAnError",t.isComplementaryMessageAnError)("informationMessage",t.informationMessage)("complementaryMessage",t.complementaryMessage),i["ɵɵadvance"](4),i["ɵɵproperty"]("operation",t.operation)("keyText",t.keyText)("profileIdentifier",t.profileIdentifier)("idFormPrefix","verificationTwoFactorAuthenticator"))},directives:[ih,r.NgIf,lh,Rh],encapsulation:2,changeDetection:0}),e})(),Dh=(()=>{class e{constructor(e,t,n){this.translateService=e,this.windowService=t,this.profileStore=n,this.blocked=!1,this.canReload=!0,this.componentAlive=!0,this.result=new i.EventEmitter}ngOnInit(){this.operation=this.context.operation,this.headerKey=`verification.${this.operation}.title`,this.profileIdentifier=this.calculateProfileIdentifier(),this.context.error&&this.getInvalidCodeMessage(),this.canReload=!Qd.$.includes(Qd.O[this.operation])}ngOnDestroy(){this.componentAlive=!1}onCancel(){this.result.next({cancel:!0}),this.canReload&&this.windowService&&this.windowService.getIsPlatformBrowser()&&this.windowService.window().location.reload()}onProceed(e){e&&this.result.next({cancel:!1,code:e.code})}calculateProfileIdentifier(){var e;return this.context.profileIdentifier?this.context.profileIdentifier:null===(e=this.profileStore.profile)||void 0===e?void 0:e.email}getInvalidCodeMessage(){this.isInformationMessageAnError=!0;let e=this.getInvalidErrorCodeKeyData();this.informationMessage="verificationTwoFactorAuthenticator.overlay.error.invalidCode",this.translateService.translate(e.translationKey,e.variables).pipe((0,c.takeWhile)((()=>this.componentAlive))).subscribe((e=>{this.complementaryMessage=e}))}getInvalidErrorCodeKeyData(){let e={translationKey:"",variables:{}};if(403===this.context.error.status){this.isComplementaryMessageAnError=!0;const t=this.context.error.remainingAttempts;t!==Zd()&&(e.translationKey="verificationTwoFactorAuthenticator.overlay.error.lastAttempt",t>1&&(e.translationKey="verificationTwoFactorAuthenticator.overlay.error.remainingAttempts",e.variables={remainingAttempts:t}))}return e}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](an.s),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](pe.s))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-verification-two-factor-code"]],inputs:{context:"context"},outputs:{result:"result"},decls:10,vars:9,consts:[["id","verify-two-factor-authenticator-overlay-container","overlayType","medium"],[1,"wrapper","verification-two-factor-code"],[3,"operation","headerKey","titleKey","keyText","isInformationMessageAnError","isComplementaryMessageAnError","informationMessage","complementaryMessage","profileIdentifier","close","proceed"]],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-verification-two-factor-code-root",2),i["ɵɵlistener"]("close",(function(){return t.onCancel()}))("proceed",(function(e){return t.onProceed(e)})),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"](5),i["ɵɵproperty"]("operation",t.operation)("headerKey",t.headerKey)("titleKey","verificationTwoFactorAuthenticator.overlay.content.title")("keyText","verificationTwoFactorAuthenticator.overlay.content")("isInformationMessageAnError",t.isInformationMessageAnError)("isComplementaryMessageAnError",t.isComplementaryMessageAnError)("informationMessage",t.informationMessage)("complementaryMessage",t.complementaryMessage)("profileIdentifier",t.profileIdentifier))},directives:[Xn.l,jh],encapsulation:2}),e})(),Fh=(()=>{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(Yd.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?Sh:"PIN_CODE"===e?Ah:"TWO_FACTOR_AUTHENTICATION"===e?Dh: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:Qd.O[e.operation],error:this.error,profileIdentifier:e.profileIdentifier};return this.component=this.injectionService.appendComponent(Xd,{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"](Jd.g),i["ɵɵinject"](sn.il),i["ɵɵinject"](an.s),i["ɵɵinject"](ee.u),i["ɵɵinject"](oe.y))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Bh=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[Xd]}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[r.CommonModule,$l.B],$l.B]}),e})();var Uh=n(8807),Vh=n(92969);let Hh=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[Sh,Ah,Dh]}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[eh.o,hh.o,Fh,th],imports:[[r.CommonModule,$l.B,it.a,Uh.E,sn.U8,Bh,vc.N,bt.I,Vh.U]]}),e})();var Gh=n(64076),zh=n(58710);const $h=new i.InjectionToken("BalanceStoreToken");let Wh=(()=>{class e{static forRoot(){return{ngModule:e,providers:[zh.r,{provide:$h,useExisting:zh.r}]}}}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})();var qh=n(9886);let Kh=(()=>{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"](qh.Y_))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Xh=n(94224),Yh=n(37424),Qh=n(99604),Jh=n(97815),Zh=n(39597),ep=n(55057),tp=n(86761);const np="bonusSelectionCfEnabled",ip="BONUS";let rp=(()=>{class e extends al.ib{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,b,y,S,C,x,I,w,E){super(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,y,S,C,I,w,E),this.phoneBlockingSectionsService=b,this.postConversionFunnelStoreService=x}onRegistration(e){e instanceof G.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(np),this.isBonusBlockedByPhoneTypeValidation=this.phoneBlockingSectionsService.shouldSectionBeBlockedByPhoneTypeValidation(ip),this.enabledValidationCode&&this.enabledValidationCodeCF?this.navigateToValidationCode():this.enabledBonusSelection&&!this.isBonusBlockedByPhoneTypeValidation?this.navigateToBonusSelection():this.navigateToCashier())}onValidationCode(e){(e instanceof sl.N$||e instanceof sl.aj)&&(this.enabledBonusSelection=this.siteConfigService.getSiteConfigProp(np),this.isBonusBlockedByPhoneValidation=this.phoneBlockingSectionsService.shouldSectionBeBlockedByPhoneValidation(ip),this.isBonusBlockedByPhoneTypeValidation=this.phoneBlockingSectionsService.shouldSectionBeBlockedByPhoneTypeValidation(ip),!this.enabledBonusSelection||this.isBonusBlockedByPhoneValidation||this.isBonusBlockedByPhoneTypeValidation?this.navigateToCashier():this.navigateToBonusSelection())}navigateToCashier(){this.postCFUrl?this.router.navigate([ep.dU],{queryParams:{destination:this.postCFUrl}}):this.router.navigate([ep.dU])}navigateToBonusSelection(){this.postCFUrl?this.router.navigate([ep.jA],{queryParams:{postCFUrl:this.postCFUrl}}):this.router.navigate([ep.jA])}navigateToValidationCode(){this.router.navigate([ep.To])}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](o.ActivatedRoute),i["ɵɵinject"](U.r6),i["ɵɵinject"](Yh.P),i["ɵɵinject"](G.H8),i["ɵɵinject"](Zh.e),i["ɵɵinject"](sl.Kx),i["ɵɵinject"](V.m),i["ɵɵinject"](Gt.z),i["ɵɵinject"](Et.T),i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](on.G),i["ɵɵinject"](ee.u),i["ɵɵinject"](ie.R),i["ɵɵinject"]($c.$),i["ɵɵinject"](Es.w),i["ɵɵinject"](H.r),i["ɵɵinject"](Qh.p),i["ɵɵinject"](Jh.r),i["ɵɵinject"](Xh.G),i["ɵɵinject"](Xc.W),i["ɵɵinject"](Ne.B),i["ɵɵinject"](Wd),i["ɵɵinject"](me.R),i["ɵɵinject"](fe.g),i["ɵɵinject"](tp.sk))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),op=(()=>{class e{constructor(e){this.platformId=e}declareCustomElements(t){if((0,r.isPlatformBrowser)(this.platformId)){const{createCustomElement:i}=n(61139);e.defineElement(i,Pe.U,Pe.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 ap=n(78833);let sp=(()=>{class e{getStore(e,t){const n=(0,ap.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})(),cp=(()=>{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,H.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"](sp),i["ɵɵinject"](H.r),i["ɵɵinject"](Lt.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();function lp(e,t,n,i,o,a,c,l,u,d,h,p,f,m,g,v,b,y,S,C,x,I,w,E,T,P){return()=>n.initSiteConfig$().toPromise().then((()=>((()=>{const t=n.getSiteConfigProp("defaultLanguage");u.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((()=>P.initIframe({...n.getSiteConfig(),protocol:o.getProtocolOrDefault()}))).then((()=>{x.init(),I.setMfaConfig(n.getSiteConfigProp("mfaOperations"));const e=C.getBrowser()?C.getBrowser().toLocaleLowerCase():"";if(S.checkBrowserSupported(),m.get(jl).init(),m.get(Hs).loadRouting(),m.get(al.ib).init(),w.init(),E.init(),T.init(),(0,r.isPlatformBrowser)(l)){d.init(ep.Uc),m.get(vt).init(ep.WT);let t=new s.Subject;"ie"!==e&&"ms-edge"!==e&&h.init(t),p.sessionObserver.subscribe((e=>t.next(e.isAuthenticated))),(0,ce.EH)((()=>{d.updateProfileInfo(f.profile?f.profile.accountNumber:null,f.profile?f.profile.address.countryCode:null)})),b.init()}"ie"!==e&&"ms-edge"!==e&&(y.declareCustomElements(m),g.init(n.getSiteConfigProp("locale"))),m.get(cp).init()}))}let up=(()=>{class e{constructor(e,t){this.cmsFeatureFlagService=e,this.router=t}canActivate(){return!this.cmsFeatureFlagService.isFeatureEnabled(wt.u.SMART_CONTACTS_BM)||(this.router.navigate([ep.Gl]),!1)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](wt.u),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),dp=(()=>{class e{constructor(e,t){this.cmsFeatureFlagService=e,this.router=t}canActivate(){return!this.cmsFeatureFlagService.isFeatureEnabled(wt.u.SMART_CONTACTS_BM)||(this.router.navigate([ep.Z0]),!1)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](wt.u),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),hp=(()=>{class e{constructor(e,t){this.cmsFeatureFlagService=e,this.router=t}canActivate(){return!!this.cmsFeatureFlagService.isFeatureEnabled(wt.u.SMART_CONTACTS_BM)||(this.router.navigate([ep.A1]),!1)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](wt.u),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();class pp{constructor(e){this.active=!1,this.question=e.question||"",this.answer=e.answer||""}}class fp{constructor(e){this.title=e.title||"",this.icon=e.icon||"",this.questions=[],e.questions.forEach((e=>{let t=new pp(e);this.questions.push(t)}))}}class mp{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 fp(e);this.topics.push(t)}))}}let gp=(()=>{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 mp(e))))}}return e.url=e=>`/content/${e}/faq-content.json`,e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](we.HttpClient),i["ɵɵinject"](Xe.z))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();function vp(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 bp(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,vp,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 yp(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,bp,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 Sp=(()=>{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"](gp),i["ɵɵdirectiveInject"](Ja.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,yp,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:[Xn.l,r.NgIf,Yn.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})(),Cp=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[gp],imports:[[r.CommonModule,o.RouterModule,ct.U8,at.d]]}),e})(),xp=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Ip=(()=>{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;n=Li.K.mapLinkUrl(e);let o=null;if(e.fields&&e.fields.filter){const t=Bt.H.map(e.fields&&e.fields.filter);o=Bt.H.getNotInSubdivisionList(t)}else if(e.filter){const t=Bt.H.map(e.filter);o=Bt.H.getNotInSubdivisionList(t)}return{label:t||"",link:n||"",icon:i||"",target:r||Id.e.NONE,draft:e&&"draft"===e.status,notInSubdivisionList:o}}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})(),wp=(()=>{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&&!Mt(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"](Zn._s),i["ɵɵinject"](wt.u),i["ɵɵinject"](Ip),i["ɵɵinject"](Tt.w))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var Ep=n(65340),Tp=n(73917);let Pp=(()=>{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,Tp.L,mt.o,st.m]]}),e})();var Ap=n(72855),_p=n(19799);let Mp=(()=>{class e{constructor(e,t,n){this.gameCardService=e,this.document=t,this.subdivisionService=n,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))).filter((e=>!this.isFilterGameBySubdivision(e))).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)))}isFilterGameBySubdivision(e){var t,n,i,r;return(null===(n=null===(t=null==e?void 0:e.notInFilter)||void 0===t?void 0:t.countrySubdivision)||void 0===n?void 0:n.includes(this.subdivisionService.getCurrentSubdivisionId()))||(null===(r=null===(i=null==e?void 0:e.notInFilter)||void 0===i?void 0:i.countrySubdivision)||void 0===r?void 0:r.includes(this.subdivisionService.getCurrentCountryCode()))}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"](Yt),i["ɵɵinject"](r.DOCUMENT),i["ɵɵinject"](pn.F))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),kp=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[xp,Yt,Mp,wp,Ip,Ed,te.E,Ep.v],imports:[[r.CommonModule,it.a,bt.I,Ai.s,Gh.Q,ad.n,o.RouterModule,at.d,Ap.k,Pp,Zn.Qh,_p.R,mt.o,zd.g,sc.q,to.$]]}),e})(),Op=(()=>{class e{constructor(t,n){this.router=t,this.siteConfigService=n,this.shouldHiddenElements$=new s.BehaviorSubject(!1),this.shouldHideLoginButton$=new s.BehaviorSubject(!1),this.invitationFlowUriSuffix=this.siteConfigService.getSiteConfigProp(e.INVITATION_URI_SUFFIX_KEY),t.events.subscribe((e=>{var t;if(e instanceof o.NavigationEnd){let e=null!==(t=this.isCrossBrandWelcomePage())&&void 0!==t&&t;this.shouldHiddenElements$.next(e),this.updateLoginButtonVisibility(e)}}))}updateLoginButtonVisibility(t){var n;const i=this.getUrlSegments();let r=i.length>0&&this.isTermsAndConditionsPath(i[0]),o=null!==(n=this.siteConfigService.getSiteConfigProp(e.INVITATION_FLOW_HIDE_LOGIN_KEY))&&void 0!==n&&n;this.shouldHideLoginButton$.next(r||o&&t)}isCrossBrandWelcomePage(){const e=this.getUrlSegments(),t=e.length>0?e[0]:null;if(!t)return!1;const n=this.isTermsAndConditionsPath(t);return!(!this.invitationFlowUriSuffix&&!n)&&(n||-1!=t.indexOf(this.invitationFlowUriSuffix.replace("/","")))}getUrlSegments(){return this.router.url.split("/").filter((e=>e))}isTermsAndConditionsPath(t){return t&&-1!=t.indexOf(e.TERMS_OF_SERVICE_INVITATION)}shouldHideElements(){return this.shouldHiddenElements$}shouldHideLoginButton(){return this.shouldHideLoginButton$}}return e.INVITATION_URI_SUFFIX_KEY="invitationFlowUriSuffix",e.TERMS_OF_SERVICE_INVITATION="terms-of-service-invitation",e.INVITATION_FLOW_HIDE_LOGIN_KEY="invitationFlowHideLogin",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](H.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const Np=["cta"];function Rp(e,t){1&e&&(i["ɵɵelementStart"](0,"div",6),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"a",7,5),i["ɵɵtext"](4,"\n                    stickyCta.join\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"]())}const Lp=function(e){return[e]};function jp(e,t){if(1&e&&(i["ɵɵelementStart"](0,"footer",1),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Rp,6,0,"div",2),i["ɵɵtext"](3,"\n            "),i["ɵɵelementStart"](4,"div",3),i["ɵɵtext"](5,"\n                "),i["ɵɵelementStart"](6,"a",4,5),i["ɵɵtext"](8,"\n                    stickyCta.login\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](9,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](10,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.showJoinCta()),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](2,Lp,e.showJoinCta()?"col-1-3":"col-3-3"))}}let Dp=(()=>{class e{constructor(e,t,n,i,r,o,a){this.sessionService=e,this.overlayNotificationsService=t,this.noDblClickService=n,this.siteConfigService=i,this.currentPageService=r,this.platformId=o,this.document=a,this.shouldHideElements=!1,this.shouldHideLoginButton=!1,this.hideElementsSubscription=this.currentPageService.shouldHideElements().subscribe((e=>{this.shouldHideElements=e})),this.hideLoginButtonSubscription=this.currentPageService.shouldHideLoginButton().subscribe((e=>{this.shouldHideLoginButton=e}))}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(),this.hideElementsSubscription&&this.hideElementsSubscription.unsubscribe(),this.hideLoginButtonSubscription&&this.hideLoginButtonSubscription.unsubscribe()}showJoinCta(){return this.siteConfigService.getSiteConfigProp("joinEnabled")&&!this.shouldHideElements}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"](Be.mj),i["ɵɵdirectiveInject"](Ep.v),i["ɵɵdirectiveInject"](te.E),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](Op),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"](Np,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.ctas=e)}},decls:3,vars:1,consts:[["class","sticky-footer navbar-fixed-bottom row",4,"ngIf"],[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["ɵɵtemplate"](1,jp,11,4,"footer",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",!t.shouldHideLoginButton))},directives:[r.NgIf,r.NgClass,o.RouterLinkWithHref,ve.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 Fp=[ep.RC];let Bp=(()=>{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 Fp.some((t=>e&&e.includes(t)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Hs))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Up=(()=>{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 we.HttpResponse({body:t,status:200}))}return t.handle(e).pipe((0,c.tap)((t=>(t instanceof we.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 Vp=n(23444);let Hp=(()=>{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+=As.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"](As.g),i["ɵɵinject"](Vp.c,8),i["ɵɵinject"](Cl.Z,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Gp=(()=>{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,!0)})),t.handle(e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](fn.U))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),zp=(()=>{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 $p=n(58132);let Wp=(()=>{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"](on.G))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();class qp{constructor(e,t){this.status=e,this.isAuthenticated=t}}let Kp=(()=>{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 qp(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 Xp=n(42497);const Yp="X-MFA-OPERATION",Qp="X-ENFORCEMENT-OPERATION",Jp="X-ENFORCEMENT-METHOD";let Zp=(()=>{class e{constructor(e,t,n,i,r){this.mfaCommunicationService=e,this.mfaVerificationPropertiesService=t,this.analyticsService=n,this.localStorageService=i,this.platformId=r}intercept(e,t){let n=null,i=null;return this.isCaptchaEnforcementRequest(e)?(n=this.getOperation(e,!0),i=this.getCommunicationMethodForEnforcementRequest(n,e)):(n=this.getOperation(e),i=this.getCommunicationMethodForNotEnforcementRequest(n)),n&&i&&this.mfaCommunicationService&&(0,r.isPlatformBrowser)(this.platformId)?this.requestMfaCode(e,t,n,i):t.handle(e)}getCommunicationMethodForEnforcementRequest(e,t){if(!Qd.$.includes(e)){const e=t.headers.get(Jp);return"TWO_FACTOR_AUTHENTICATION"!=e&&"SMS"!=e?"PIN_CODE":e}return"TWO_FACTOR_AUTHENTICATION"}getCommunicationMethodForNotEnforcementRequest(e){return Qd.$.includes(e)?"TWO_FACTOR_AUTHENTICATION":this.mfaVerificationPropertiesService.getCommunicationMethod(e)}getOperation(e,t){const n=t?Qp:Yp;return e.headers.get(n)||e.headers.get(n.toLowerCase())}requestMfaCode(e,t,n,i){var r;const o=this.isCaptchaEnforcementRequest(e)?Qp:Yp,a=e.clone(),s=null===(r=e.body)||void 0===r?void 0:r.username;return this.mfaCommunicationService.requestForCode(n,i,s).pipe((0,c.first)(),(0,c.concatMap)((n=>{if(n.cancel)return this.cancelRequest();e=e.clone({setHeaders:{"X-MFA-CODE":n.code}});const i={};return"true"===this.localStorageService.get("rememberMyDeviceFor2FA")||(i.deviceId=null),e=e.clone({headers:e.headers.delete(o),body:{...e.body,...i}}),t.handle(e)})),(0,c.tap)((e=>this.handleResponse(e,i,n))),(0,c.catchError)((e=>this.handleResponseError(e,a,t,n,i))))}handleResponse(e,t,n){e instanceof we.HttpResponse&&(this.sendAnalyticEvent(t,n,"_success"),this.mfaCommunicationService.requestFinished({success:!0,communicationMethod:t,operation:n}),this.mfaCommunicationService.closeAll())}handleResponseError(e,t,n,i,r){const o=e.error;return 403===e.status&&"MFA_INVALID_CONFIRMATION_CODE"===o.errorCode?(this.sendAnalyticEvent(r,i,"_wrong_code"),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),this.mfaCommunicationService.closeAll(),(0,s.throwError)(e)}isCaptchaEnforcementRequest(e){return e.headers.has(Qp)||e.headers.has(Jp)}sendAnalyticEvent(e,t,n){"TWO_FACTOR_AUTHENTICATION"===e&&this.analyticsService.sendEvent("pageUpdate",`2FA:${t}${n}`,!0,null)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Jd.g),i["ɵɵinject"](za.K),i["ɵɵinject"](oe.y),i["ɵɵinject"](fc.n),i["ɵɵinject"](i.PLATFORM_ID,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();const ef=[{provide:we.HTTP_INTERCEPTORS,useClass:Up,multi:!0},{provide:we.HTTP_INTERCEPTORS,useClass:Hp,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Nc.G,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Mc,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Gp,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Rc,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:zp,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:$p.Y,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:ys.h,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Wp,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Kp,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Xp.a,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Zp,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:jc,multi:!0},{provide:we.HTTP_INTERCEPTORS,useExisting:Fc,multi:!0}];var tf=n(90895),nf=n(67793),rf=n(80469),of=(()=>(function(e){e.ALLOWED="ALLOWED",e.BLOCKED="BLOCKED",e.SOFTBLOCKED="SOFTBLOCKED",e.ALLOWED_WITH_BLOCKED_SUBDIVISIONS="ALLOWED_WITH_BLOCKED_SUBDIVISIONS"}(of||(of={})),of))();let af=(()=>{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[of.ALLOWED]=this.manageAllowedAccess,e[of.BLOCKED]=this.manageBlockedAccess,e[of.SOFTBLOCKED]=this.manageSoftBlockedAccess,e[of.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:{[Dc]:e.JURISDICTION_ACCESS_TIMEOUT.toString()}};this.http.get(e.JURISDICTION_ACCESS_URL,n).subscribe((e=>{this.handleAccessStatus(of[e.status],e.alternativeSite,e.customBlockMessage)}),(()=>{this.validateStatus(t)&&this.handleAccessStatus(of[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(of).includes(of[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"](we.HttpClient),i["ɵɵinject"](o.Router),i["ɵɵinject"](o.ActivatedRoute),i["ɵɵinject"](Tt.w),i["ɵɵinject"](nl.uR),i["ɵɵinject"](V.m),i["ɵɵinject"](ee.u),i["ɵɵinject"](H.r),i["ɵɵinject"](i.PLATFORM_ID))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),sf=(()=>{class e{canDeactivate(){return!1}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),cf=(()=>{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"](af),i["ɵɵinject"](nl.uR),i["ɵɵinject"](V.m),i["ɵɵinject"](Tt.w),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),lf=(()=>{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([Yl.wF])}redirectToMaintenancePage(){this.router.navigate([Yl.Wq])}asUrlRegex(e){return new RegExp("^/"+e.toLowerCase()+"(%3f|/|$)")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](H.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),uf=(()=>{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"](an.s),i["ɵɵinject"](H.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),df=(()=>{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 hf=n(61493);let pf=(()=>{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"](we.HttpClient))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),ff=(()=>{class e{constructor(e,t,n,i,r,o,a){this.router=e,this.siteConfigService=t,this.sessionService=n,this.invitationService=i,this.cookieStorageService=r,this.sessionStorageService=o,this.validationTokenService=a,this.INVITATION_URL_PARTS_WITHOUT_TOKEN=2,this.TOKEN_PART=2,this.routeInvitation=""}canActivate(e,t){return this.routeInvitation=this.siteConfigService.getSiteConfigProp("invitationFlowUriSuffix"),!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(hf.A.vipInvitationEnabled)}doesPathContainInvitation(e){return e.url.startsWith(this.routeInvitation)}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,Ua.Z)((function*(){return t.redirectToHome()}))))}redirectToHome(){return this.router.parseUrl(Yl.ft)}redirectToInvitation(){return this.sessionStorageService.set(nl.fO,this.routeInvitation),this.router.parseUrl(this.routeInvitation)}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.COOKIE_JOINED="JOINED",e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](o.Router),i["ɵɵinject"](H.r),i["ɵɵinject"](V.m),i["ɵɵinject"](Zh.e),i["ɵɵinject"](on.G),i["ɵɵinject"](nl.uR),i["ɵɵinject"](pf))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),mf=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[af,sf,cf,lf,uf,ee.u,df,ff,pf],imports:[[r.CommonModule,it.a,o.RouterModule.forChild([])],o.RouterModule]}),e})();var gf=n(92116);function vf(e,t){1&e&&(i["ɵɵelementStart"](0,"figcaption",10),i["ɵɵtext"](1,"block.site_not_available"),i["ɵɵelementEnd"]())}const bf=function(e){return{value:e}},yf=function(e){return{tag:"textContent",label:"block.site_not_available_alt_site",values:e}},Sf=function(e){return[e]};function Cf(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,Sf,i["ɵɵpureFunction1"](5,yf,i["ɵɵpureFunction1"](3,bf,e.altSiteText)))),i["ɵɵadvance"](7),i["ɵɵproperty"]("href",e.altSiteLink,i["ɵɵsanitizeUrl"]),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.altSiteText)}}let xf=(()=>{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(gf.EI);e&&(this.altSiteLink+="?myafftoken="+e)}}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](Gt.z),i["ɵɵdirectiveInject"](H.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,vf,2,0,"figcaption",8),i["ɵɵtext"](21,"\n                    "),i["ɵɵtemplate"](22,Cf,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,ve.P],encapsulation:2}),e})();const If=[{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"](H.r),i["ɵɵdirectiveInject"](uf),i["ɵɵdirectiveInject"](af))},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:[ve.P],encapsulation:2}),e})(),canDeactivate:[sf]},{path:"blocked",component:xf,canDeactivate:[sf]}];Yl.Uc;let wf=(()=>{class e extends Ri.x{map(e){return{networkJackpotBannerFunctionalPlaceholderModel:{title:e.fields&&e.fields.title,notInFilter:Bt.H.map(e.fields&&e.fields.filter)}}}}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})(),Ef=(()=>{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 Tf=["bannerContainer"];let Pf=(()=>{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"](Pt.T),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](_t.H),i["ɵɵdirectiveInject"](rn.i),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](Ef,8))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-network-jackpot-banner"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Tf,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})(),Af=class{constructor(){this.notInSubdivisionList=null}set networkJackpotBannerFunctionalPlaceholderModel(e){this.model=e,this.notInSubdivisionList=Bt.H.getNotInSubdivisionList(e.notInFilter)}};Af.ɵfac=function(e){return new(e||Af)},Af.ɵcmp=i["ɵɵdefineComponent"]({type:Af,selectors:[["bx-network-jackpot-banner-placeholder"]],inputs:{networkJackpotBannerFunctionalPlaceholderModel:"networkJackpotBannerFunctionalPlaceholderModel"},decls:2,vars:1,consts:[["bxHideBySubdivision",""]],template:function(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-network-jackpot-banner",0),i["ɵɵtext"](1,"\n    "),i["ɵɵelementEnd"]()),2&e&&i["ɵɵattribute"]("data-notIn-subdivisions",t.notInSubdivisionList)},directives:[Pf,gn.e],encapsulation:2}),Af=(0,a.__decorate)([(0,q.DE)({name:"Network Jackpot Banner Functional Placeholder",mapper:wf,matcher:e=>e.contentType===K.z.FUNCTIONAL&&e.fields.tags&&e.fields.tags.split(",").indexOf("hot-drop-jackpot-banner")>=0})],Af);let _f=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[at.d,Ka.P,st.m]]}),e})(),Mf=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({imports:[[_f,W.J.withComponents([Af])]]}),e})();Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var kf=n(3317);const Of=new i.InjectionToken("IframeHttpUrlMatchToken");let Nf=(()=>{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 kf.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 we.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 we.HttpErrorResponse({error:t.body,url:t.url,headers:this.parseHttpHeaders(t.headers),status:t.status,statusText:t.message})}parseHttpHeaders(e){return new we.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"](Of,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();"undefined"==typeof ngDevMode||ngDevMode;let Rf=(()=>{class e{constructor(e,t){this.platformId=e,this.ngCrossMessagingInterceptor=t}initIframe(e){return t=this,n=void 0,o=function*(){(0,r.isPlatformServer)(this.platformId)||e.crossMessagingIframeEnabled&&(yield this.ngCrossMessagingInterceptor.init(e))},new((i=void 0)||(i=Promise))((function(e,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}c((o=o.apply(t,n||[])).next())}));var t,n,i,o}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](i.PLATFORM_ID),i["ɵɵinject"](Nf))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})();"undefined"==typeof ngDevMode||ngDevMode;var Lf=n(37307),jf=n(45242);let Df=(()=>{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})(),Ff=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({}),e})(),Bf=(()=>{class e{constructor(e,t,n){this.sessionService=e,this.windowService=t,this.siteConfigService=n}canNavigateToPageInBeatrixOrRedirectsToOlympus(e){if(this.migrationIsEnabled()){const t=this.sessionService.isAuthenticated();return!this.pageIsMigratedForUrlAndLoggedState(e,t)||(this.doHardReloadOfPage(e),!1)}return!0}pageIsMigratedForUrlAndLoggedState(e,t){if(this.destinationIsOverlay(e))return!1;const n=this.siteConfigService.getSiteConfig();return t?this.urlMatchesList(e,n.olympusLogged):this.urlMatchesList(e,n.olympusUnlogged)}destinationIsOverlay(e){return e.includes("overlay=")}urlMatchesList(e,t){const n=e.split("?")[0];return t.some((e=>{var t,i;return null!==(i=(null===(t=new RegExp(`^${e.replace("*",".*")}$`,"g").exec(n))||void 0===t?void 0:t.length)>0)&&void 0!==i&&i}))}doHardReloadOfPage(e){const t=this.windowService.location();e.includes("?")?t.href=`${e}&ol=true`:t.href=`${e}?ol=true`}migrationIsEnabled(){return this.windowService.getIsPlatformBrowser()&&!this.redirectionDisabledByQueryParam()}redirectionDisabledByQueryParam(){return"true"===this.windowService.getUrlSearchParams().get("ol")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](V.m),i["ɵɵinject"](ee.u),i["ɵɵinject"](H.r))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Uf=(()=>{class e{constructor(e){this.olympusMigrationService=e}canActivate(e,t){return this.olympusMigrationService.canNavigateToPageInBeatrixOrRedirectsToOlympus(t.url)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](Bf))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})(),Vf=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[Uf,Bf],imports:[[ad.n,at.d]]}),e})();var Hf=n(78753),Gf=n(25249);n(50474),n(58892);let zf=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[Ce]}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[rf.j,Hs,hp,dp,up,je.M,te.E,Gc.C,al.a1,F.JH,Is.l,F.dT,Lt.U,Cc.M,sl.Kx,Jc,pc,nc.e,ic.t,{provide:Ks.EO,useFactory:(0,Ws.Y)($s.m,"notificationComponent"),deps:[H.r]},{provide:xp,useFactory:(0,Ws.Y)($s.m,"header"),deps:[H.r]},{provide:Ja.yl,useValue:(0,Ws.Y)($s.m,"languageSelector")},{provide:Me.$,useFactory:(0,Ws.Y)($s.m,"login"),deps:[H.r]},{provide:tp.sk,useFactory:(0,Ws.Y)($s.m,"twoFactorAuthenticator"),deps:[H.r]},{provide:xd,useFactory:(0,Ws.Y)($s.m,"bannerWelcome"),deps:[H.r]},{provide:Xi.Y,useFactory:(0,Ws.Y)($s.m,"bannerCarousel"),deps:[H.r]},{provide:Qs.Z,useFactory:(0,Ws.Y)($s.m,"contactUs"),deps:[H.r]},{provide:Fe.U,useFactory:(0,Ws.Y)($s.m,"resetPassword"),deps:[H.r]},{provide:_e.H,useFactory:(0,Ws.Y)($s.m,"forgotPassword"),deps:[H.r]},{provide:jf.Y,useFactory:(0,Ws.Y)($s.m,"validationCodeBonus"),deps:[H.r]},{provide:Js.r,useFactory:(0,Ws.Y)($s.m,"communicationPlayer"),deps:[H.r]},{provide:Ue.L,useFactory:(0,Ws.Y)($s.m,"bonusSelection"),deps:[H.r]},{provide:He.j,useFactory:(0,Ws.Y)($s.m,"bonusWidget"),deps:[H.r]},{provide:ki,useFactory:(0,Ws.Y)($s.m,"gridCards"),deps:[H.r]},{provide:tt,useFactory:(0,Ws.Y)($s.m,"card"),deps:[H.r]},{provide:qh.Y_,useFactory:(0,Ws.Y)($s.m,"account"),deps:[H.r]},{provide:nt,useFactory:(0,Ws.Y)($s.m,"gamecardDetail"),deps:[H.r]},{provide:Ei,useFactory:(0,Ws.Y)($s.m,"gamecardPlayConfig"),deps:[H.r]},{provide:Gd.$,useFactory:(0,Ws.Y)($s.m,"rafLinks"),deps:[H.r]},{provide:Le.P,useFactory:(0,Ws.Y)($s.m,"pinCodeForceUpdate"),deps:[H.r]},{provide:De.d,useFactory:(0,Ws.Y)($s.m,"pinCodeReset"),deps:[H.r]},{provide:Ic.S,useFactory:(0,Ws.Y)($s.m,"pinCodeUpdateProfile"),deps:[H.r]},{provide:tc.e,useFactory:(0,Ws.Y)($s.m,"loyalty"),deps:[H.r]},{provide:xc.s,useFactory:(0,Ws.Y)($s.m,"profileUpdate"),deps:[H.r]},{provide:Lo.k,useFactory:(0,Ws.Y)($s.m,"dropdown"),deps:[H.r]},{provide:Qt,useFactory:(0,Ws.Y)($s.m,"gameCategories"),deps:[H.r]},{provide:da.p,useFactory:(0,Ws.Y)($s.m,"helpUI"),deps:[H.r]},{provide:Ar,useFactory:(0,Ws.Y)($s.m,"casinoGameSearchConfig"),deps:[H.r]},{provide:Ef,useFactory:(0,Ws.Y)($s.m,"networkJackpotBanner"),deps:[H.r]},{provide:i.APP_INITIALIZER,useFactory:lp,deps:[F.JH,Tt.w,H.r,Uc,ee.u,xt._,an.s,i.PLATFORM_ID,Ja.TS,oe.y,Es.w,Be.mj,pe.s,i.Injector,$a.S,$e.Kt,ms,op,rl,Lt.U,Fh,za.K,cc.G,uc.E,tf.l,Rf],multi:!0},Qc,zc.x,$c.$,Hc.K,xe.Title,xe.Meta,Bl,Ul,Kh,qi,Qe,Kc,Wc,on.G,{provide:ze.L,useValue:{component:Je.T}},Zn.yG,gi,vi,hi,bi,Fl,Ki.Q,et.I,Ze.C,{provide:si,useValue:{baseUrl:"/casino",slug:"casinochannelmenu",params:{filter:"navigation2"},applyMaxContainer:!0}},Bp,Cd.Z,op,{provide:Of,useValue:{include:_c.J.include,exclude:_c.J.exclude}},Lf.S,Op,me.R,Gf.g],imports:[[Df,Ff,Hh,Pi,xs,xe.BrowserModule.withServerTransition({appId:"server-side-render"}),we.HttpClientModule,Ys.forRoot(),Vc.forRoot([...ef,{provide:we.HTTP_INTERCEPTORS,useExisting:Nf,multi:!0}]),Ie.BrowserAnimationsModule,dt.D,xe.BrowserModule,at.d,Gh.Q,Wh.forRoot(),zs.C.forRoot(),Ct,Mi,ua,wi.forRoot(),$i,Ai.s,Ga.Q.forRoot(),dd,W.J,it.a,Xs.U.forRoot(),bc,kp,Yi.R,No,Sr,Cp,Qa.z.forBrowser(),Gs.C.forRoot(),ut.$Q,Zs.v,Ya.n,qs.Q.forRoot(),bt.I.forRoot(),Ts.forRoot(),Ld,Ps.L.forRoot(),ft.forRoot(),Sd,Ge._.forRoot(ep.d4),Ve.G.forRoot(),al.D2.forRoot(rp),yt,ke.y.forRoot(),Be.ny.forRoot(),Ks.PQ.forRoot(),Oe.Ix.forRoot(),wc.S.forRoot(),Sc.w.forRoot(),Ec.o.forRoot(),ac.forRoot(),Hf.g.forRoot(),lc.b.forRoot(),dc.g.forRoot(),hc.S.forRoot(),yc.P.forRoot(),tl,Ee.G,nr.s,mf,ir.k,tr,uo,rr.a,cd,xe.BrowserTransferStateModule,Hl,Jl,rc.E,sc.q,mt.o,Dl,Xa.forRoot(),od,Xl,Hd,Vs.forRoot(),zd.g.forRoot(),rd,Ja.jH.forRoot(),Fa,Ha,ol,Ae.y.forRoot(),Yc.forRoot(),Re.forRoot(),qd,ec.M.forRoot(),ws.U,nf.M,Mf,Vf,hd]]}),e})();var $f=n(16339),Wf=n(46268),qf=n(33098),Kf=n(61893),Xf=n(45592),Yf=n(38458);function Qf(e,t){1&e&&(i["ɵɵelementStart"](0,"p",10),i["ɵɵtext"](1,"\n                    pinCodeUpdate.form.advertisement1\n                "),i["ɵɵelementEnd"]())}function Jf(e,t){1&e&&(i["ɵɵelementStart"](0,"p",10),i["ɵɵtext"](1,"\n                    pinCodeUpdate.form.advertisement2\n                "),i["ɵɵelementEnd"]())}function Zf(e,t){1&e&&(i["ɵɵelementStart"](0,"span",11),i["ɵɵtext"](1,"pinCodeUpdate.form.label"),i["ɵɵelementEnd"]())}function em(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 tm(e,t){1&e&&(i["ɵɵelementStart"](0,"p",14),i["ɵɵtext"](1,"\n                    pinCodeUpdate.form.verification.alert\n                "),i["ɵɵelementEnd"]())}const nm=function(){return["/contact-us"]};function im(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,nm)))}class rm{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("",[_r.Validators.required,_r.Validators.minLength(4),_r.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",rm.BUTTON_EVENT_NAME,!0,rm.BUTTON_CUSTOM_VALUE,rm.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}}}function om(e,t){1&e&&(i["ɵɵelementStart"](0,"h2",5),i["ɵɵtext"](1,"\n                    pinCode.overlay.update.title\n                "),i["ɵɵelementEnd"]())}function am(e,t){1&e&&(i["ɵɵelementStart"](0,"h3",6),i["ɵɵtext"](1,"\n                    pinCode.overlay.update.title\n                "),i["ɵɵelementEnd"]())}rm.BUTTON_EVENT_NAME="submit_pinCodeOverlay",rm.BUTTON_CUSTOM_VALUE={1:rm.BUTTON_EVENT_NAME},rm.OVERRIDE_CONTEXT={contentId:"pin_code"},rm.ɵfac=function(e){return new(e||rm)(i["ɵɵdirectiveInject"](_r.FormBuilder),i["ɵɵdirectiveInject"](_t.H),i["ɵɵdirectiveInject"](pe.s),i["ɵɵdirectiveInject"](an.s),i["ɵɵdirectiveInject"](_h.i),i["ɵɵdirectiveInject"](pc),i["ɵɵdirectiveInject"](oe.y))},rm.ɵcmp=i["ɵɵdefineComponent"]({type:rm,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,Qf,2,0,"p",2),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,Jf,2,0,"p",2),i["ɵɵtext"](8,"\n                "),i["ɵɵtemplate"](9,Zf,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,em,7,0,"figure",5),i["ɵɵtext"](15,"\n                "),i["ɵɵtemplate"](16,tm,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,im,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:[_r["ɵNgNoValidate"],_r.NgControlStatusGroup,_r.FormGroupDirective,r.NgClass,r.NgIf,xh.b,_r.NgControlStatus,_r.FormControlName,ve.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 sm="cf_spc";let cm=(()=>{class e{constructor(e,t,n,i,r,o,a,c,l){this.profileService=e,this.router=t,this.route=n,this.toastNotificationService=i,this.translateService=r,this.cookieStorageService=o,this.pinCodeUpdateConfig=a,this.twoFactorAuthenticatorService=c,this.twoFactorAuthenticatorStore=l,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(sm),this.toastNotificationService.add({msg:this.successMessage,onRemove:()=>{this.navigateAfterRemoveIt()}},"messageOverlay")})),this.profileService.getProfileDetailsPlayer().subscribe((e=>(e.hasPinCode&&(this.cookieStorageService.remove(sm),this.router.navigateByUrl(this.returnUrl||"/")),(0,s.of)(!0))))}navigateAfterRemoveIt(){this.twoFactorAuthenticatorService.is2FAEnrolmentConditionsMet()&&Xf.M.PENDING===this.twoFactorAuthenticatorStore.status?this.navigateToWelcomeTwoFactor():this.navigateToReturnUrlOrHome()}navigateToWelcomeTwoFactor(){this.router.navigateByUrl("/two-factor-authenticator")}navigateToReturnUrlOrHome(){this.router.navigateByUrl(this.returnUrl||"/")}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](_t.H),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](Ks.il),i["ɵɵdirectiveInject"](an.s),i["ɵɵdirectiveInject"](on.G),i["ɵɵdirectiveInject"](pc),i["ɵɵdirectiveInject"](me.R),i["ɵɵdirectiveInject"](fe.g))},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,om,2,0,"h2",2),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,am,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:[Xn.l,Yn.z,r.NgIf,Yf.l,rm,ve.P],encapsulation:2}),e})();function lm(e,t){1&e&&(i["ɵɵelementStart"](0,"h2",3),i["ɵɵtext"](1,"\n                    pinCode.overlay.title\n                "),i["ɵɵelementEnd"]())}function um(e,t){1&e&&(i["ɵɵelementStart"](0,"h3",4),i["ɵɵtext"](1,"\n                    pinCode.overlay.title\n                "),i["ɵɵelementEnd"]())}class dm{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",dm.CLOSE_PIN_CODE_OVERLAY_NAME,!0,dm.CLOSE_OVERLAY_CUSTOM_VALUE,dm.OVERRIDE_CONTEXT),this.postConversionFunnelStoreService.getPostCFUrl()&&(this.router.navigateByUrl(this.postConversionFunnelStoreService.getPostCFUrl()),this.postConversionFunnelStoreService.setPostCFUrl(null))}}dm.CLOSE_PIN_CODE_OVERLAY_NAME="close_pinCodeOverlay",dm.CLOSE_OVERLAY_CUSTOM_VALUE={1:dm.CLOSE_PIN_CODE_OVERLAY_NAME},dm.OVERRIDE_CONTEXT={contentId:"pin_code"},dm.ɵfac=function(e){return new(e||dm)(i["ɵɵdirectiveInject"](_t.H),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](Ks.il),i["ɵɵdirectiveInject"](an.s),i["ɵɵdirectiveInject"](ct.Bs),i["ɵɵdirectiveInject"](Jc),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](Wd))},dm.ɵcmp=i["ɵɵdefineComponent"]({type:dm,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,lm,2,0,"h2",1),i["ɵɵtext"](6,"\n                "),i["ɵɵtemplate"](7,um,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:[Xn.l,Yn.z,r.NgIf,Yf.l,rm,ve.P],encapsulation:2});let hm=(()=>{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"](H.r),i["ɵɵinject"](V.m),i["ɵɵinject"](o.Router))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();const pm=["contents","betting-offers","poker-lobby"],fm=[{matcher:function(e){return e[0]&&function(e){return pm.find((t=>t==e[0].path))}(e)?{consumed:e}:null},canActivate:[Ql],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 mm=(()=>{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 gm=n(2986),vm=n(84285),bm=n(24426),ym=n(98645),Sm=n(27726);function Cm(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 xm(e,t){if(1&e&&(i["ɵɵelementStart"](0,"div",3),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,Cm,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 Im(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 wm(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,Im,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 Em(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 Tm=(()=>{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:gm.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=bm(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 vm.g(this.breadcrumbText,"..");this.breadcrumb.push(e),this.breadcrumb.push(new vm.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"](an.s),i["ɵɵdirectiveInject"](U.r6),i["ɵɵdirectiveInject"](Gl))},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,xm,6,2,"div",0),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,wm,11,3,"div",1),i["ɵɵtext"](4,"\n        "),i["ɵɵtemplate"](5,Em,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,or.n,ym.L,Sm.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})(),Pm=(()=>{class e extends Tm{}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:[Xn.l,Yn.z,Yf.l,or.n],styles:["h2.h2-heading[_ngcontent-%COMP%] {\n  color: #000000; }"]}),e})();var Am=n(34033),_m=n(54474);let Mm=(()=>{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"](sn.Bs),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](_m.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:[ve.P],encapsulation:2}),e})();var km=n(25394);let Om=(()=>{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"](xe.DomSanitizer,16))},e.ɵpipe=i["ɵɵdefinePipe"]({name:"bxTrustyResourceUrl",type:e,pure:!0}),e})();function Nm(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 Rm=(()=>{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"](_t.H),i["ɵɵdirectiveInject"](km.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,Nm,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:[Om],encapsulation:2}),e})(),Lm=(()=>{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"](sn.Bs),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](_m.a),i["ɵɵdirectiveInject"](uc.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:[ve.P,Rm],encapsulation:2}),e})();var jm=n(92660),Dm=n(99199),Fm=n(87887),Bm=n(11607),Um=n(75934),Vm=n(83798),Hm=n(15480);const Gm=["gameIframe"];function zm(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 $m(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 Wm(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementContainerStart"](0),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"iframe",12),i["ɵɵlistener"]("load",(function(t){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"](2).applyCashierIframeStylesAndExitFullScreen(t)})),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n                    "),i["ɵɵelementContainerEnd"]()}if(2&e){const e=i["ɵɵnextContext"](2);i["ɵɵadvance"](2),i["ɵɵproperty"]("src",e.safeHeadlessCashierDepositUrl,i["ɵɵsanitizeResourceUrl"])}}function qm(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,zm,2,1,"label",4),i["ɵɵtext"](10,"\n                    "),i["ɵɵtemplate"](11,$m,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\n                    "),i["ɵɵtemplate"](21,Wm,5,1,"ng-container",7),i["ɵɵtext"](22,"\n\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.showMiniCashier),i["ɵɵadvance"](2),i["ɵɵproperty"]("src",e.safeGameUrl,i["ɵɵsanitizeResourceUrl"])}}let Km=(()=>{class e{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,b){this.router=e,this.route=t,this.domSanitizer=n,this.windowService=i,this.userInfoService=r,this.gameMostPlayedService=o,this.fullScreenService=a,this.deviceService=s,this.siteConfigService=c,this.gamecardPlayConfig=l,this.urlMatchedAnalyticsHandler=u,this.gamecardService=d,this.analyticsService=h,this.linkTrackService=p,this.gameUrlService=f,this.imageService=m,this.renderer=g,this.document=v,this.platformId=b,this.isFullScreen=!1,this.showWrapper=!1,this.showMiniCashier=!1,this.shouldRestoreFullScreen=!1,this.headlessCashierDepositUrl="/mini/cashier/deposit?source=casino",this.fullPageCashierDepositUrl="/account/cashier/deposit",this.crossMessage=e=>{const{data:t,source:n}=e;if(n===Ke(["nativeElement","contentWindow"])(this.iframeRef)){const{action:e,option:{destination:n}={destination:void 0}}=t;"navigation"===e&&n&&this.userInfoEvents(new Dm.X(n))}else this.windowMessageHandler(t)}}ngOnInit(){this.data=this.route.snapshot.data,this.safeHeadlessCashierDepositUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(this.headlessCashierDepositUrl),this.data.game&&(this.gameMostPlayedService.setPlayed(+this.data.game.id),this.data.game.category!=e.LIVE_DEALER_CATEGORY&&(this.registerGamePlayed$=this.gamecardService.registerGamePlayed(this.data.game.id).subscribe()));const t=this.forceIframeCheck();if(this.data.game&&(this.deviceService.isDesktop()||t)?this.setupGameWrapper():this.windowService.location().replace(this.data.gameUrl),this.renderer.addClass(this.document.body,"game-active"),t&&(0,r.isPlatformBrowser)(this.platformId)){const e=this.document.head.querySelector('meta[name="viewport"]'),t=new Map(e.getAttribute("content").split(/, ?/).map((e=>e.split("="))));t.set("viewport-fit","auto"),this.renderer.setAttribute(e,"content",Array.from(t.entries()).map((([e,t])=>`${e}=${t}`)).join(", "))}this.casinoGameLinkClickAnalyticsListener()}ngAfterViewInit(){this.showWrapper&&this.setupWrapperCommunication(),this.urlMatchedAnalyticsHandler.trackComponentLoad(this.data.game.slug+":game_overlay");const e=this.forceIframeCheck();this.iframeRef&&(0,r.isPlatformBrowser)(this.platformId)&&e&&!this.deviceService.isDesktop()&&(this.renderer.setStyle(this.iframeRef.nativeElement,"top","0.1px"),this.fullScreenService.goFullScreen(this.iframeRef.nativeElement))}ngOnDestroy(){if(this.userInfo$&&this.userInfo$.unsubscribe(),this.fullScreen$&&this.fullScreen$.unsubscribe(),this.gameLinkCmsContentEvents$&&this.gameLinkCmsContentEvents$.unsubscribe(),this.registerGamePlayed$&&this.registerGamePlayed$.unsubscribe(),this.windowService.window().removeEventListener("message",this.crossMessage,!1),this.renderer.removeClass(this.document.body,"game-active"),this.forceIframeCheck()&&(0,r.isPlatformBrowser)(this.platformId)){const e=this.document.head.querySelector('meta[name="viewport"]'),t=new Map(e.getAttribute("content").split(/, ?/).map((e=>e.split("="))));t.delete("viewport-fit"),this.renderer.setAttribute(e,"content",Array.from(t.entries()).map((([e,t])=>`${e}=${t}`)).join(", ")),this.iframeRef&&this.renderer.setStyle(this.iframeRef.nativeElement,"top",null)}}playReal(){let e=this.getPlayRealCommands();this.router.navigate(e.url,e.extra)}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 Dm.X)switch(e.action){case Dm.X.SHOW_LOBBY:this.router.navigate(["/"]);break;case Dm.X.SHOW_DEPOSIT:this.showOrRedirectToCashierForDeposit();break;case Dm.X.SHOW_LOGIN:this.playReal();break;case Dm.X.SHOW_JOIN:this.joinEnabled()?this.router.navigate(["/join"]):this.router.navigate(["/404"])}}windowMessageHandler(e){(null==e?void 0:e.type)===jm.q.CLOSE_MINI_CASHIER_EVENT_TYPE&&(this.showMiniCashier=!1,this.shouldRestoreFullScreen&&this.fullScreenService.goFullScreen(this.iframeRef.nativeElement))}showOrRedirectToCashierForDeposit(){this.depositEnabled()?this.casinoCashierEnabledForGame()?this.showMiniCashier=!0:this.goToFullPageCashierDepositPage():this.goToConfiguredDepositRedirectUrl()}depositEnabled(){return this.siteConfigService.evalFeature("site.config.cashier.deposit.enabled")}casinoCashierEnabledForGame(){var e;return(null===(e=this.siteConfigService.getSiteConfigProp("cashierCasinoAllowedGames"))||void 0===e?void 0:e.includes(String(this.data.game.id)))&&this.siteConfigService.evalFeature("site.config.cashier.casino.enabled")}goToFullPageCashierDepositPage(){this.router.navigate([this.fullPageCashierDepositUrl],{queryParams:{destination:this.getMultilingualPlayRealUrl()}})}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=Bm(Um(Hm),Vm);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}=Fm({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()}forceIframeCheck(){if(!this.data)return!1;const e=this.data.game,t=this.siteConfigService.getSiteConfigProp("casino");if(!e||!t)return!1;const{openInIframe:n,openInIframeGamesBlacklist:i=[],openInIframeSupplierBlacklist:r=[]}=t,o=i.includes(e.id.toString()),a=e.vendor&&e.supplier?`${e.vendor.name}.${e.supplier.name}`.toLowerCase():"",s=r.map((e=>e.toLowerCase())),c=!!a&&s.includes(a);return n&&!c&&!o}applyCashierIframeStylesAndExitFullScreen(e){var t;const n=e.target,i=(null==n?void 0:n.contentDocument)||(null===(t=null==n?void 0:n.contentWindow)||void 0===t?void 0:t.document);i&&n.src&&(this.renderer.setStyle(i.body,"background","none"),this.renderer.setStyle(n,"display","block"),this.fullScreenService.isFullScreen?(this.fullScreenService.exitFullScreen(),this.shouldRestoreFullScreen=!0):this.shouldRestoreFullScreen=!1)}}return e.LIVE_DEALER_CATEGORY="live-dealer",e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](xe.DomSanitizer),i["ɵɵdirectiveInject"](ee.u),i["ɵɵdirectiveInject"](Dm.$),i["ɵɵdirectiveInject"](Wt),i["ɵɵdirectiveInject"](pt),i["ɵɵdirectiveInject"](Lt.U),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](Ei),i["ɵɵdirectiveInject"](vt),i["ɵɵdirectiveInject"](Yt),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](At.j),i["ɵɵdirectiveInject"](Ye.X),i["ɵɵdirectiveInject"](ut.AJ),i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](r.DOCUMENT),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"](Gm,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"],[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,"cashier-iframe",2,"display","none",3,"src","load"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,qm,29,8,"bx-overlay-container",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.showWrapper))},directives:[r.NgIf,Xn.l,Yn.z,Yf.l,ve.P],styles:["@media screen and (max-width: 768px) and (orientation: portrait), screen and (max-height: 768px) and (orientation: landscape) {\n  .game-iframe {\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100dvw;\n    height: 100dvh; }\n  .modal-overlay .modal-header {\n    display: none; } }\n\n.cashier-iframe {\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  width: 100%;\n  height: 100%;\n  border: none;\n  margin: 0;\n  padding: 0;\n  overflow: hidden;\n  z-index: 999999; }\n"],encapsulation:2}),e})();const Xm=new ee.u;function Ym(e,t){if(Xm.getLocationUrl()){const n=Xm.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 Qm=[{matcher:function(e){return Ym(e,"real")},component:Km,data:{mode:"real",overlayComponentPosition:"centered"},canActivate:[al.a1,Ii],resolve:{gameUrl:_i,game:Zt}},{matcher:function(e){return Ym(e,"practice")},component:Km,data:{mode:"practice",overlayComponentPosition:"centered"},canActivate:[Ii],resolve:{gameUrl:_i,game:Zt}},{matcher:function(e){return Ym(e,"play")},data:{mode:"play"},component:Jn,canActivate:[Ii]},{path:"casino/:category/:subcategory/:slug",component:Qn,data:{overlayComponentPosition:"top"},resolve:{game:Zt,showPractice:hn},canActivate:[Ii]}];function Jm(e,t){1&e&&i["ɵɵelement"](0,"bx-sticky-cta",2)}let Zm=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-content-and-sticky-footer"]],decls:8,vars:0,consts:[[1,"content"],["class","visible-xs",4,"bxHideAuth"],[1,"visible-xs"]],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\n        "),i["ɵɵtemplate"](6,Jm,1,0,"bx-sticky-cta",1),i["ɵɵtext"](7,"\n    "))},directives:[o.RouterOutlet,pd.v,Dp],encapsulation:2}),e})(),eg=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-mini-cashier"]],decls:9,vars:0,consts:[[1,"modal-overlay","dark-overlay"],[1,"cashier-wrapper","modal-content","modal-medium"]],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,"router-outlet"),i["ɵɵtext"](6,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](7,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](8,"\n    "))},directives:[o.RouterOutlet],encapsulation:2}),e})();var tg=n(34581);let ng=(()=>{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"](tg.K))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac,providedIn:"root"}),e})(),ig=(()=>{class e{constructor(e,t,n,i,r,a,s,l,u,d,h,p){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=u,this.homepageOverlayNotificationBlocker=d,this.router=h,this.location=p,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(Zn._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"](mn.HV),i["ɵɵdirectiveInject"](ti.F),i["ɵɵdirectiveInject"](V.m),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](ei.P),i["ɵɵdirectiveInject"](on.G),i["ɵɵdirectiveInject"](re.m),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](sd),i["ɵɵdirectiveInject"](ng),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 rg=n(22646);let og=(()=>{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(nl.fO),t=this.sessionStoraService.get(nl.OI);this.router.navigate([this.route.snapshot.queryParams.closeUrl||t||e||`/${Yl.ft}`])}ngOnDestroy(){this.sessionStoraService.remove(nl.OI)}isHiddenHiddenOverlay(e){return e instanceof mm}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"](sd),i["ɵɵdirectiveInject"](nl.uR),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:[rg.B,Se.f,o.RouterOutlet],encapsulation:2}),e})();var ag=n(84581),sg=n(65299);const cg=new i.InjectionToken("HeaderAndMenuPageConfig"),lg=new i.InjectionToken("DISPLAY_ROUTER_OUTLET");let ug=(()=>{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 dg=["title"];function hg(e,t){1&e&&i["ɵɵelement"](0,"router-outlet")}function pg(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,hg,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 fg(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 mg=(()=>{class e{constructor(e,t,n,i,r,o,a,c,l,u,d,h,p,f,m){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=u,this.platformId=d,this.displayRouterOutlet=h,this.headerAndMenuPageConfig=p,this.activatedRoute=f,this.windowService=m,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(Zn._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(Zn.lI,Zn.wg).subscribe((e=>this.headerStore.setContent(e)))}reloadMenuContent(){this.pageService.fetchMenu(Zn.KI).pipe((0,c.filter)((e=>this.distinctCategoryLinks(e)))).subscribe((e=>this.menuStore.setContent(e)))}distinctCategoryLinks(e){return!sg(e.categoryLinks,this.menuStore.categoryLinks)}reloadPageContent(e){(0,Zn.gd)(this.router.url)||((0,Zn.dq)(this.router.url)?this.pageService.fetchContent(this.router.url):this.pageService.fetchHomeContent((0,Zn.vg)(!1,e),Zn.wg,!1)).subscribe((e=>this.pageStore.setContent(e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](pi),i["ɵɵdirectiveInject"](di),i["ɵɵdirectiveInject"](fi),i["ɵɵdirectiveInject"](ag.e),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](li),i["ɵɵdirectiveInject"](Ep.v),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](Be.mj),i["ɵɵdirectiveInject"](on.G),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](lg,8),i["ɵɵdirectiveInject"](cg,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"](dg,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,pg,19,10,"div",0),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,fg,4,0,"div",1),i["ɵɵtext"](4,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",t.mainContentHidden))},directives:[ui.fF,r.NgIf,or.n,r.NgClass,Hu,o.RouterOutlet,ug],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 gg(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 vg(e,t){1&e&&(i["ɵɵtext"](0,"\n                "),i["ɵɵelement"](1,"bx-header-menu-page"),i["ɵɵtext"](2,"\n            "))}const bg=function(e){return{"first-time-visitor":e}};function yg(e,t){if(1&e&&(i["ɵɵelementStart"](0,"main",2),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,gg,2,1,"bx-marketing-page",3),i["ɵɵtext"](3,"\n            "),i["ɵɵtemplate"](4,vg,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,bg,t.isFirstTime)),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.casinoUniquePagesFF||t.isFirstTime)("ngIfElse",e)}}function Sg(e,t){1&e&&i["ɵɵelement"](0,"bx-sticky-cta",6)}let Cg=(()=>{class e{constructor(e,t){this.sessionService=e,this.router=t,this.isGameRunning=!1,this.routerSubscription=this.router.events.pipe((0,c.filter)((e=>e instanceof o.NavigationStart))).subscribe((e=>{const{url:t}=e;this.isGameRunning=t.includes("/casino/slots")}))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](V.m),i["ɵɵdirectiveInject"](o.Router))},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,yg,7,5,"main",0),i["ɵɵtext"](4,"\n\n        "),i["ɵɵtemplate"](5,Sg,1,0,"bx-sticky-cta",1),i["ɵɵtext"](6,"\n    ")),2&e&&(i["ɵɵadvance"](3),i["ɵɵproperty"]("ngIf",!t.needsMainHidden&&!t.isGameRunning))},directives:[og,r.NgIf,pd.v,r.NgClass,or.n,mg,Dp],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 xg(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 Ig(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 wg(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,Ig,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 Eg=(()=>{class e extends ig{constructor(e,t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,b){super(e,t,n,i,r,p,f,m,o,g,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=u,this.menuStore=d,this.contentService=h,this.cookieStorageService=p,this.transferStateServiceCache=f,this.platformId=m,this.homepageOverlayNotificationBlocker=g,this.router=v,this.location=b,this.needsMainHidden=!1,this.casinoUniquePagesFF=!1,this.isHeaderAndMenuInitialized=!1,this.isPageInitialized=!0,this.casinoUniquePagesFF=this.cmsFeatureFlagService.isFeatureEnabled(wt.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(Zn.lI,Zn.wg).subscribe((e=>{this.headerStore.setContent(e),this.isPersonalizedContentNeeded()&&(this.personalizedDataRetrieved=!0)}))}loadMenuContent(){this.pageService.fetchMenu(Zn.KI).subscribe((e=>this.menuStore.setContent(e)))}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](mn.HV),i["ɵɵdirectiveInject"](ti.F),i["ɵɵdirectiveInject"](V.m),i["ɵɵdirectiveInject"](oe.y),i["ɵɵdirectiveInject"](ei.P),i["ɵɵdirectiveInject"](sd),i["ɵɵdirectiveInject"](li),i["ɵɵdirectiveInject"](o.ActivatedRoute),i["ɵɵdirectiveInject"](wt.u),i["ɵɵdirectiveInject"](pi),i["ɵɵdirectiveInject"](di),i["ɵɵdirectiveInject"](fi),i["ɵɵdirectiveInject"](xt._),i["ɵɵdirectiveInject"](on.G),i["ɵɵdirectiveInject"](re.m),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](ng),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,xg,2,4,"bx-homepage-content",0),i["ɵɵtext"](2,"\n\n        "),i["ɵɵtemplate"](3,wg,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,Cg,ug],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})(),Tg=(()=>{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 Pg(e,t){if(1&e&&i["ɵɵelement"](0,"img",5),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("src",e.logoUser,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.brandLabel)}}function Ag(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a",2),i["ɵɵtext"](1,"\n            "),i["ɵɵelement"](2,"img",3),i["ɵɵtext"](3,"\n            "),i["ɵɵtemplate"](4,Pg,1,2,"img",4),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("src",e.logoMain,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.brandLabel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.headerConfig.logo.small)}}function _g(e,t){if(1&e&&i["ɵɵelement"](0,"img",5),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("src",e.logoUser,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.brandLabel)}}function Mg(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a"),i["ɵɵtext"](1,"\n            "),i["ɵɵelement"](2,"img",3),i["ɵɵtext"](3,"\n            "),i["ɵɵtemplate"](4,_g,1,2,"img",4),i["ɵɵtext"](5,"\n        "),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵproperty"]("src",e.logoMain,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("alt",e.brandLabel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.headerConfig.logo.small)}}let kg=(()=>{class e{constructor(e,t,n){this.headerConfig=e,this.siteConfigService=t,this.currentPageService=n,this.shouldHideElements=!1,this.logoMain=this.siteConfigService.getSiteConfigProp("mainLogo"),this.logoUser="/content/images/logo_user.svg",this.brandLabel=this.siteConfigService.getSiteConfigProp("brandLabel"),this.hideElementsSubscription=this.currentPageService.shouldHideElements().subscribe((e=>{this.shouldHideElements=e}))}ngOnDestroy(){this.hideElementsSubscription&&this.hideElementsSubscription.unsubscribe()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](xp),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](Op))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-logo"]],decls:5,vars:2,consts:[["routerLink","/",4,"ngIf"],[4,"ngIf"],["routerLink","/"],["bxImage","",1,"img-large",3,"src"],["bxImage","","class","img-default",3,"src",4,"ngIf"],["bxImage","",1,"img-default",3,"src"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,Ag,6,3,"a",0),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,Mg,6,3,"a",1),i["ɵɵtext"](4,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",!t.shouldHideElements),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.shouldHideElements))},directives:[r.NgIf,o.RouterLinkWithHref,bn.t],encapsulation:2}),e})();var Og=n(86655);const Ng=["term"];function Rg(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 Lg=(()=>{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"](Mp),i["ɵɵdirectiveInject"](an.s))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-search-form"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Ng,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,Rg,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,ve.P],pipes:[r.AsyncPipe],styles:[".search-text-input[_ngcontent-%COMP%]::-ms-clear {\n            display: none;\n        }"]}),e})();const jg=["cta"];function Dg(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a",2,3),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":""))}}function Fg(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a",4,3),i["ɵɵtext"](2,"header.login"),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTrackClick","login:click")("ngClass",e.headerConfig.cta.login.class+(e.largeButtons?" cta-large":""))}}let Bg=(()=>{class e{constructor(e,t,n,i,r,o){this.headerConfig=e,this.overlayNotificationsService=t,this.noDblClickService=n,this.siteConfigService=i,this.platformId=r,this.currentPageService=o,this.shouldHideElements=!1,this.shouldHideLoginButton=!1}ngAfterViewInit(){(0,r.isPlatformBrowser)(this.platformId)&&this.setTimeoutForAllButtons(),this.hideElementsSubscription=this.currentPageService.shouldHideElements().subscribe((e=>{this.shouldHideElements=e})),this.hideLoginButtonSubscription=this.currentPageService.shouldHideLoginButton().subscribe((e=>{this.shouldHideLoginButton=e}))}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(),this.hideElementsSubscription&&this.hideElementsSubscription.unsubscribe(),this.hideLoginButtonSubscription&&this.hideLoginButtonSubscription.unsubscribe()}showJoinCta(){return this.siteConfigService.getSiteConfigProp("joinEnabled")&&!this.shouldHideElements}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"](xp),i["ɵɵdirectiveInject"](Ep.v),i["ɵɵdirectiveInject"](te.E),i["ɵɵdirectiveInject"](H.r),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](Op))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-unlogged-actions"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](jg,5),2&e){let e;i["ɵɵqueryRefresh"](e=i["ɵɵloadQuery"]())&&(t.ctas=e)}},inputs:{largeButtons:"largeButtons"},decls:5,vars:2,consts:[["role","button","routerLink","/join","class","custom-cta","id","headerUnloggedJoin",3,"bxTrackClick","ngClass","bxTranslate",4,"ngIf"],["role","button","routerLink","/login","class","custom-cta","id","headerUnloggedLogin",3,"bxTrackClick","ngClass","bxTranslate",4,"ngIf"],["role","button","routerLink","/join","id","headerUnloggedJoin",1,"custom-cta",3,"bxTrackClick","ngClass","bxTranslate"],["cta",""],["role","button","routerLink","/login","id","headerUnloggedLogin",1,"custom-cta",3,"bxTrackClick","ngClass","bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵtemplate"](1,Dg,3,2,"a",0),i["ɵɵtext"](2,"\n        "),i["ɵɵtemplate"](3,Fg,3,2,"a",1),i["ɵɵtext"](4,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.showJoinCta()),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.shouldHideLoginButton))},directives:[r.NgIf,o.RouterLinkWithHref,Mh.X,r.NgClass,ve.P],encapsulation:2}),e})();function Ug(e,t){if(1&e&&i["ɵɵelement"](0,"i",5),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵproperty"]("ngClass",e.icon)}}function Vg(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,Ug,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["ɵɵattribute"]("data-notIn-subdivisions",e.notInSubdivisionList),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.icon),i["ɵɵadvance"](3),i["ɵɵtextInterpolate"](e.label)}}let Hg=(()=>{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"],["bxHideBySubdivision","",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,Vg,10,7,"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,vn.Z,gn.e,Qi.I,r.NgIf],encapsulation:2}),e})();const Gg=["toogleButton"];let zg=(()=>{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"](wp),i["ɵɵdirectiveInject"](o.Router))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header-nav-menu"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Gg,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,ve.P,vn.Z,Hg],encapsulation:2}),e})();class $g{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 Wg=(()=>{class e extends $g{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"](zh.r))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxShowWithoutBalance",""]],inputs:{bxShowWithoutBalance:"bxShowWithoutBalance"},features:[i["ɵɵInheritDefinitionFeature"]]}),e})();function qg(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 Kg(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 Xg(e,t){1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                "),i["ɵɵelementStart"](2,"div",0),i["ɵɵtext"](3,"\n                    "),i["ɵɵtemplate"](4,Kg,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 Yg(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 Qg=(()=>{class e{constructor(e,t,n,i){this.headerConfig=e,this.router=t,this.cashierLoadingService=n,this.browserStorageService=i,this.depositUrl=`/${ep.RC}/${ep.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"](xp),i["ɵɵdirectiveInject"](o.Router),i["ɵɵdirectiveInject"](Gc.C),i["ɵɵdirectiveInject"](Gt.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,qg,2,2,"a",1),i["ɵɵtext"](4,"\n            "),i["ɵɵtemplate"](5,Xg,7,1,"div",2),i["ɵɵtext"](6,"\n            "),i["ɵɵtemplate"](7,Yg,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:[Wg,r.NgIf,r.NgClass,Mh.X,ve.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})(),Jg=(()=>{class e extends $g{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"](zh.r))},e.ɵdir=i["ɵɵdefineDirective"]({type:e,selectors:[["","bxHideWithoutBalance",""]],inputs:{bxHideWithoutBalance:"bxHideWithoutBalance"},features:[i["ɵɵInheritDefinitionFeature"]]}),e})();var Zg=n(56479),ev=n(40606);function tv(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 nv=(()=>{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"](zh.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,tv,3,5,"span",0),i["ɵɵtext"](2,"\n    "))},directives:[ui.fF,r.NgClass],pipes:[ev.W],encapsulation:2,changeDetection:0}),e})();var iv=n(65502);function rv(e,t){1&e&&i["ɵɵelement"](0,"bx-balance")}function ov(e,t){1&e&&i["ɵɵelement"](0,"i",8)}function av(e,t){1&e&&i["ɵɵelement"](0,"bx-loyalty-user-icon")}function sv(e,t){if(1&e&&(i["ɵɵelementStart"](0,"a",1),i["ɵɵtext"](1,"\n            "),i["ɵɵtemplate"](2,rv,1,0,"bx-balance",2),i["ɵɵtext"](3,"\n            "),i["ɵɵelementStart"](4,"button",3),i["ɵɵtext"](5,"\n                "),i["ɵɵtemplate"](6,ov,1,0,"i",4),i["ɵɵtext"](7,"\n                "),i["ɵɵtemplate"](8,av,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 cv=(()=>{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"](de.e),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](xp))},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,sv,17,4,"a",0),i["ɵɵtext"](2,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngIf",t.isBrowser))},directives:[r.NgIf,o.RouterLinkWithHref,Jg,ve.P,Zg.V,nv,iv.l],encapsulation:2}),e})();function lv(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 uv(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 dv=(()=>{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"](Mp),i["ɵɵdirectiveInject"](Be.mj),i["ɵɵdirectiveInject"](Ye.X),i["ɵɵdirectiveInject"](tt))},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,lv,26,6,"li",2),i["ɵɵpipe"](6,"async"),i["ɵɵtext"](7,"\n\n                "),i["ɵɵtemplate"](8,uv,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,ve.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 hv(e,t){1&e&&i["ɵɵelement"](0,"bx-lang-select",13)}function pv(e,t){1&e&&(i["ɵɵelementStart"](0,"div"),i["ɵɵtext"](1,"\n                            "),i["ɵɵtemplate"](2,hv,1,0,"bx-lang-select",12),i["ɵɵtext"](3,"\n                        "),i["ɵɵelementEnd"]())}function fv(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"button",14),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().headerSearch.setActive(!0)})),i["ɵɵtext"](1,"\n                            "),i["ɵɵelement"](2,"i",15),i["ɵɵtext"](3,"\n                            "),i["ɵɵelementStart"](4,"span",16),i["ɵɵtext"](5,"header.search"),i["ɵɵelementEnd"](),i["ɵɵtext"](6,"\n                        "),i["ɵɵelementEnd"]()}}function mv(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-header-search-form",17),i["ɵɵtext"](1,"\n                    "),i["ɵɵelementEnd"]())}function gv(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-lang-select",13),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementEnd"]())}function vv(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-header-nav-menu"),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementEnd"]())}function bv(e,t){if(1&e&&(i["ɵɵelementStart"](0,"aside",18),i["ɵɵtext"](1,"\n                        "),i["ɵɵelement"](2,"bx-header-unlogged-actions",19),i["ɵɵtext"](3,"\n                        "),i["ɵɵtemplate"](4,gv,2,0,"bx-lang-select",20),i["ɵɵtext"](5,"\n                        "),i["ɵɵtemplate"](6,vv,2,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&&!e.shouldHideElements)}}function yv(e,t){1&e&&(i["ɵɵelementStart"](0,"figure",22),i["ɵɵtext"](1,"\n                            "),i["ɵɵelement"](2,"bx-header-logged-actions",23),i["ɵɵtext"](3,"\n                            "),i["ɵɵelement"](4,"span",24),i["ɵɵtext"](5,"\n                            "),i["ɵɵelement"](6,"bx-header-user-menu",25),i["ɵɵtext"](7,"\n                        "),i["ɵɵelementEnd"]())}function Sv(e,t){1&e&&i["ɵɵelement"](0,"bx-header-nav-menu")}function Cv(e,t){if(1&e&&(i["ɵɵelementStart"](0,"aside",18),i["ɵɵtext"](1,"\n                        "),i["ɵɵtemplate"](2,yv,8,0,"figure",21),i["ɵɵtext"](3,"\n                        "),i["ɵɵtemplate"](4,Sv,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 xv(e,t){1&e&&i["ɵɵelement"](0,"bx-header-search-results")}function Iv(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-header-unlogged-actions",29),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]())}function wv(e,t){1&e&&(i["ɵɵelementStart"](0,"bx-header-logged-actions",30),i["ɵɵtext"](1,"\n                "),i["ɵɵelementEnd"]())}function Ev(e,t){1&e&&(i["ɵɵelementStart"](0,"div",26),i["ɵɵtext"](1,"\n                "),i["ɵɵtemplate"](2,Iv,2,0,"bx-header-unlogged-actions",27),i["ɵɵtext"](3,"\n                "),i["ɵɵtemplate"](4,wv,2,0,"bx-header-logged-actions",28),i["ɵɵtext"](5,"\n            "),i["ɵɵelementEnd"]())}const Tv=function(e){return{hidden:e}};let Pv=(()=>{class e{constructor(e,t,n,i,o){this.headerConfig=e,this.headerSearch=t,this.headerService=n,this.platformId=i,this.currentPageService=o,this.isBrowser=!1,this.shouldHideElements=!1,this.isBrowser=(0,r.isPlatformBrowser)(this.platformId),this.currentPageService.isCrossBrandWelcomePage()&&this.headerService.showHeader(),this.hideElementsSubscription=this.currentPageService.shouldHideElements().subscribe((e=>{this.shouldHideElements=e}))}ngOnDestroy(){this.hideElementsSubscription&&this.hideElementsSubscription.unsubscribe()}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](xp),i["ɵɵdirectiveInject"](Mp),i["ɵɵdirectiveInject"](Ed),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](Op))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-header"]],decls:31,vars:15,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","class","search-btn",3,"click",4,"ngIf"],["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"],["type","button",1,"search-btn",3,"click"],[1,"icon","icon-search"],[3,"bxTranslate"],[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,pv,4,0,"div",5),i["ɵɵtext"](12,"\n                        "),i["ɵɵtemplate"](13,fv,7,0,"button",6),i["ɵɵtext"](14,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](15,"\n                    "),i["ɵɵtemplate"](16,mv,2,0,"bx-header-search-form",7),i["ɵɵtext"](17,"\n\n                    "),i["ɵɵelement"](18,"bx-header-logo",8),i["ɵɵtext"](19,"\n                    "),i["ɵɵtemplate"](20,bv,8,4,"aside",9),i["ɵɵtext"](21,"\n                    "),i["ɵɵtemplate"](22,Cv,6,4,"aside",10),i["ɵɵtext"](23,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](24,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n            "),i["ɵɵtemplate"](26,xv,1,0,"bx-header-search-results",5),i["ɵɵtext"](27,"\n            "),i["ɵɵtemplate"](28,Ev,6,0,"div",11),i["ɵɵtext"](29,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\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"](13,Tv,!t.headerSearch.isActive)),i["ɵɵadvance"](8),i["ɵɵproperty"]("ngIf",t.headerConfig.langselect.position.left),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!t.shouldHideElements),i["ɵɵadvance"](3),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,kg,pd.v,Og.d,Td.S,ve.P,Lg,Bg,zg,Qg,cv,dv],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})(),Av=(()=>{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})(),_v=(()=>{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 Mv=["topContainer"];function kv(e,t){if(1&e&&i["ɵɵelement"](0,"bx-footer",5),2&e){const e=i["ɵɵnextContext"](2);i["ɵɵproperty"]("footerData",e.footerMarketingPage)}}function Ov(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,kv,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 Nv=(()=>{class e{constructor(e,t,n,i,o){this.router=e,this.footerContentService=t,this.platformId=n,this.olympusMigrationService=i,this.currentPageService=o,this.isBrowser=!1,this.isDynamicDataLoaded=!1,this.shouldHideElements=!1,this.hasFooterRendered=!1,this.isBrowser=(0,r.isPlatformBrowser)(this.platformId),this.hideElementsSubscription=this.currentPageService.shouldHideElements().subscribe((e=>{this.shouldHideElements=e}))}ngOnInit(){this.router.events.forEach((e=>{e instanceof o.NavigationStart&&(this.hasFooterRendered=!1,this.isDynamicDataLoaded=!1)}))}ngOnDestroy(){this.contentSubscription&&this.contentSubscription.unsubscribe(),this.hideElementsSubscription&&this.hideElementsSubscription.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.shouldHideElements||(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"](cr),i["ɵɵdirectiveInject"](i.PLATFORM_ID),i["ɵɵdirectiveInject"](Bf),i["ɵɵdirectiveInject"](Op))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-root-component"]],viewQuery:function(e,t){if(1&e&&i["ɵɵviewQuery"](Mv,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,Ov,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&&!t.shouldHideElements))},directives:[Pv,Av,o.RouterOutlet,r.NgIf,_v,sr],encapsulation:2}),e})();function Rv(){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 Lv=[{path:ep.sz,component:Vl,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0,resource:"terms-of-service"},resolve:{resourceData:Ul}},{path:ep.iS,component:Vl,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0,resource:"responsible-gambling-page"},resolve:{resourceData:Ul}},{path:ep.Bz,component:Vl,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0,resource:"privacy-policy-page"},resolve:{resourceData:Ul}},{path:ep.$P,component:Vl,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0,resource:"about-us-page"},resolve:{resourceData:Ul}},{path:ep.HB,component:Vl,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0},resolve:{resourceData:Ul}},{path:ep.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:[up]},{path:ep.A1,component:Sp,data:{overlayComponentPosition:"top",overlayComponentTint:"light",overlayMainHidden:!0},canActivate:[dp]}],jv=[{path:ep.WP,component:eg,resolve:{StylesheetResolver:Cd.Z},data:{channel:"cashier"},loadChildren:()=>Promise.all([n.e(174),n.e(415)]).then(n.bind(n,84415)).then((e=>e.LazyCashierModule))}],Dv=[{path:Yl.wF,component:yd},...fm,...If,...jv,{path:"",runGuardsAndResolvers:"always",canActivate:[Uf],children:[{path:"",component:Nv,canActivate:[cf,ff],resolve:[Us],children:[{path:ep.Z0,component:Tg,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(247)]).then(n.bind(n,87048)).then((e=>e.LazyHelpMenuModule)),canActivate:[hp]},{path:ep.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))},{matcher:function(e){return e.length>0&&function(e){return globalThis.config.invitation_flow_uri_suffix.includes("/"+e)}(e[0].path)?{consumed:e,posParams:{slug:e[0]}}:null},resolve:{marketingPage:ld},component:Zm,children:[{path:"",component:Tm,data:{showHeaderMenu:!0,isMarketingPage:!0}}]},{matcher:function(e){return e.length>0&&function(e){return e&&-1!=e.indexOf(ep.Q_)}(e[0].path)?{consumed:e,posParams:{slug:e[0]}}:null},resolve:{marketingPage:ld},component:Tg,children:[{path:"",component:Tm,data:{showHeaderMenu:!0,isMarketingPage:!0}}]},{path:ep.ft,component:Eg,canActivate:[gc,Kf.S],canActivateChild:[gc],resolve:{isAffiliate:Te.a},children:[{path:"",resolve:{content:vi},children:[{path:ep.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:ep.N7,loadChildren:()=>n.e(791).then(n.bind(n,23791)).then((e=>e.LazyInvitationModule))},{path:ep.N7+"/:token",loadChildren:()=>n.e(791).then(n.bind(n,23791)).then((e=>e.LazyInvitationModule))},{path:ep.ts,canActivate:[Lf.S],resolve:{postCFUrl:$d},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:ep.Gq,loadChildren:()=>n.e(331).then(n.bind(n,70331)).then((e=>e.LazyGratificationModule))},{path:ep.uz,canActivate:[al.a1,D.T],loadChildren:()=>Promise.all([n.e(744),n.e(815)]).then(n.bind(n,61815)).then((e=>e.LazyTwoFactorAuthenticatorModule))},{path:ep.Rp,canActivate:[D.T],loadChildren:()=>n.e(48).then(n.bind(n,34048)).then((e=>e.LazyResetTwoFactorAuthenticatorModule)),data:{trackingUrl:"reset-two-factor-authenticator"}},{path:ep.Ye,canActivate:[al.a1,D.T],loadChildren:()=>n.e(878).then(n.bind(n,74878)).then((e=>e.LazyDisableTwoFactorAuthenticatorModule))},{path:ep.To,canActivate:[al.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:ep.To+"/:operation",canActivate:[al.a1],resolve:{previousUrl:Bp},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:ep.t5,children:[{path:"",canActivate:[al.a1],resolve:{previousUrl:Bp},loadChildren:()=>n.e(862).then(n.bind(n,28862)).then((e=>e.LazySendValidationCodeModule))}]},{path:ep.jA,loadChildren:()=>Promise.all([n.e(174),n.e(123)]).then(n.bind(n,37123)).then((e=>e.LazyBonusSelectorFirstTimeModule)),canActivate:[al.a1,el.s],resolve:{firstTimeDepositor:Qc},data:{continueNavigationUrl:ep.dU,header:"first-bonus-selection-slideshow",footer:"first-bonus-selection-section"}},{path:ep.If,canActivate:[hm],loadChildren:Rv},{path:$f.b,canActivate:[hm],loadChildren:Rv,data:{force:!0}},{path:ep.FJ,loadChildren:()=>n.e(539).then(n.bind(n,29539)).then((e=>e.LazyResetPasswordModule)),data:{trackingUrl:"reset-password"}},...Lv,{path:ep.Lb,canActivate:[al.a1,el.s],component:dm,data:{overlayComponentStyle:"noHorizontalScroll"}},{path:mc,component:cm,data:{overlayComponentStyle:"noHorizontalScroll"}},{path:ep.HY,component:Mm,data:{overlayComponentStyle:"noHorizontalScroll"}},{path:ep.MD,component:Lm,data:{overlayComponentStyle:"noHorizontalScroll"}},{path:qf.S,loadChildren:()=>n.e(745).then(n.bind(n,72745)).then((e=>e.LazyResetPinModule)),data:{overlayComponentStyle:"noHorizontalScroll",pinCodeOperationType:"FORCE_UPDATE"}},{path:qf.d,canActivate:[al.a1],loadChildren:()=>n.e(745).then(n.bind(n,72745)).then((e=>e.LazyResetPinModule)),data:{overlayComponentStyle:"noHorizontalScroll",pinCodeOperationType:"RESET"}},{path:Wf.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:ep.Px,canActivate:[al.a1,el.s,Am.J],canDeactivate:[Am.J],resolve:{StylesheetResolver:Cd.Z},data:{channel:"cashier"},loadChildren:()=>Promise.all([n.e(174),n.e(415)]).then(n.bind(n,84415)).then((e=>e.LazyCashierModule))},{path:Yl.RC,loadChildren:()=>Promise.all([n.e(249),n.e(411),n.e(760),n.e(248),n.e(174),n.e(823),n.e(487),n.e(237)]).then(n.bind(n,39237)).then((e=>e.AccountMenuModule)),resolve:{className:Kh}},{path:"articles",loadChildren:()=>n.e(474).then(n.bind(n,46474)).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:ep.TV,loadChildren:()=>n.e(366).then(n.bind(n,96366)).then((e=>e.LazyForumUsernameModule))},{path:":slug",resolve:{marketingPage:ld},data:{overlayComponentPosition:"top",overlayComponentTint:"light",isMarketingPage:!0},component:Pm},...Qm]},...(Fv=mm,[{path:"casino/:category",resolve:{category:en,content:gi},component:Fv},{path:"casino/:category/:subcategory",resolve:{category:en,content:gi},component:Fv}])]}]}]},{path:"**",redirectTo:Yl.wF}];var Fv,Bv=n(63867);n(7011);let Uv=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=i["ɵɵdefineNgModule"]({type:e,bootstrap:[Ce]}),e.ɵinj=i["ɵɵdefineInjector"]({providers:[$,z,{provide:r.LocationStrategy,useClass:F.Uo},hm,D.T],imports:[[zf,j.forRoot(),B.L1.forRoot(),Bv.Qs.configure({shared:!0,fetchUrl:"/assets/apps/manifest.json"}),o.RouterModule.forRoot(Dv,{preloadingStrategy:$,initialNavigation:"enabled",anchorScrolling:"enabled",enableTracing:!1}),J,Vf]]}),e})();function Vv(){(function(e,t){var n;t.platformFactory||(t.platformFactory=()=>(0,xe.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)})(Uv,{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?Vv():document.addEventListener("DOMContentLoaded",(()=>{Vv()})),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),u=r(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||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),u=r(void 0===n?i:n,i),d=s(c(u-l,0)),h=0;l<u;l++,h++)a(d,h,e[l]);return d.length=h,d}},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),u=n(37374),d=n(47012),h=n(64238).fastKey,p=n(52493),f=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,i){s(e,p),f(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=i&&c(i,e[l],{that:e,AS_ENTRIES:n})})),p=u.prototype,g=m(t),v=function(e,t,n){var i,r,o=g(e),a=b(e,t);return a?a.value=n:(o.last=a={index:r=h(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),d?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},b=function(e,t){var n,i=g(e),r=h(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(p,{clear:function(){for(var e=g(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,d?e.size=0:this.size=0},delete:function(e){var t=this,n=g(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),d?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=g(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(p,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)}}),d&&i(p,"size",{get:function(){return g(this).size}}),u},setStrong:function(e,t,n){var i=t+" Iterator",r=m(t),o=m(i);l(e,t,(function(e,t){f(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),u(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),u=n(86063),d=n(25591),h=n(60726),p=n(8597),f=n(56297),m=n(58242),g=n(38267);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),y=v?"set":"add",S=r[e],C=S&&S.prototype,x=S,I={},w=function(e){var t=o(C[e]);s(C,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(S)||!(b||C.forEach&&!p((function(){(new S).entries().next()})))))x=n.getConstructor(t,e,v,y),c.enable();else if(a(e,!0)){var E=new x,T=E[y](b?{}:-0,1)!=E,P=p((function(){E.has(1)})),A=f((function(e){new S(e)})),_=!b&&p((function(){for(var e=new S,t=5;t--;)e[y](t,t);return!e.has(-0)}));A||((x=t((function(e,t){u(e,C);var n=g(new S,e,x);return null!=t&&l(t,n[y],{that:n,AS_ENTRIES:v}),n}))).prototype=C,C.constructor=x),(P||_)&&(w("delete"),w("has"),v&&w("get")),(_||T)&&w(y),b&&C.clear&&delete C.clear}return I[e]=x,i({global:!0,forced:x!=S},I),m(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,u=0;u<s.length;u++){var d=s[u];i(e,d)||n&&i(n,d)||c(e,d,l(t,d))}}},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 u=t+" Iterator";return e.prototype=r(i,{next:o(+!l,n)}),a(e,u,!1,!0),s[u]=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),u=n(91464),d=n(58242),h=n(815),p=n(87763),f=n(84563),m=n(72339),g=n(92053),v=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,S=g.BUGGY_SAFARI_ITERATORS,C=f("iterator"),x="keys",I="values",w="entries",E=function(){return this};e.exports=function(e,t,n,a,f,g,T){c(n,t,a);var P,A,_,M=function(e){if(e===f&&L)return L;if(!S&&e in N)return N[e];switch(e){case x:case I:case w:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",O=!1,N=e.prototype,R=N[C]||N["@@iterator"]||f&&N[f],L=!S&&R||M(f),j="Array"==t&&N.entries||R;if(j&&(P=l(j.call(new e)))!==Object.prototype&&P.next&&(o||l(P)===y||(u?u(P,y):s(P[C])||p(P,C,E)),d(P,k,!0,!0),o&&(m[k]=E)),v&&f==I&&R&&R.name!==I&&(!o&&b?h(N,"name",I):(O=!0,L=function(){return r(R,this)})),f)if(A={values:M(I),keys:g?L:M(x),entries:M(w)},T)for(_ in A)(S||O||!(_ in N))&&p(N,_,A[_]);else i({target:t,proto:!0,forced:S||O},A);return o&&!T||N[C]===L||p(N,C,L,{name:f}),m[t]=L,A}},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,u=l&&l.v8;u&&(r=(i=u.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,u,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[f]||s(f,{}):(i[f]||{}).prototype)for(u in t){if(h=t[u],d=e.noTargetGet?(p=r(n,u))&&p.value:n[u],!l(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(n,u,h,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),u=n(7388),d=n(67117),h=n(94295),p=n(39352),f=!1,m=h("meta"),g=0,v=function(e){c(e,m,{value:{objectID:"O"+g++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},f=!0;var e=l.f,t=r([].splice),n={};n[m]=1,e(n).length&&(l.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===m){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[m].weakData},onFreeze:function(e){return p&&f&&d(e)&&!s(e,m)&&v(e),e}};o[m]=!0},52493:(e,t,n)=>{var i,r,o,a=n(51635),s=n(31864),c=n(47964),l=n(60726),u=n(815),d=n(62445),h=n(59941),p=n(42650),f=n(3536),m="Object already initialized",g=s.TypeError,v=s.WeakMap;if(a||h.state){var b=h.state||(h.state=new v),y=c(b.get),S=c(b.has),C=c(b.set);i=function(e,t){if(S(b,e))throw new g(m);return t.facade=e,C(b,e,t),t},r=function(e){return y(b,e)||{}},o=function(e){return S(b,e)}}else{var x=p("state");f[x]=!0,i=function(e,t){if(d(e,x))throw new g(m);return t.facade=e,u(e,x,t),t},r=function(e){return d(e,x)?e[x]:{}},o=function(e){return d(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 g("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==u||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",u=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),u=n(93290),d=n(36414),h=n(63076),p=n(87883),f=i.TypeError,m=function(e,t){this.stopped=e,this.result=t},g=m.prototype;e.exports=function(e,t,n){var i,v,b,y,S,C,x,I=n&&n.that,w=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),P=r(t,I),A=function(e){return i&&p(i,"normal",e),new m(!0,e)},_=function(e){return w?(a(e),T?P(e[0],e[1],A):P(e[0],e[1])):T?P(e,A):P(e)};if(E)i=e;else{if(!(v=h(e)))throw f(s(e)+" is not iterable");if(c(v)){for(b=0,y=l(e);y>b;b++)if((S=_(e[b]))&&u(g,S))return S;return new m(!1)}i=d(e,v)}for(C=i.next;!(x=o(C,i)).done;){try{S=_(x.value)}catch(e){p(i,"throw",e)}if("object"==typeof S&&S&&u(g,S))return S}return new m(!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),u=n(87763),d=n(84563),h=n(97515),p=d("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(r=l(l(o)))!==Object.prototype&&(i=r):f=!0),null==i||a((function(){var e={};return i[p].call(e)!==e}))?i={}:h&&(i=c(i)),s(i[p])||u(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},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),u=n(42650)("IE_PROTO"),d=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},f=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t;f="undefined"!=typeof document?document.domain&&i?p(i):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):p(i);for(var n=a.length;n--;)delete f.prototype[a[n]];return f()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=r(e),n=new d,d.prototype=null,n[u]=e):n=f(),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,u=0;l>u;)o.f(e,n=r[u++],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,u=Object.defineProperty,d=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=d(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 u(e,t,n)}:u:function(e,t,n){if(s(e),t=c(t),s(n),o)try{return u(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),u=n(27091),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(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"),u=i.Object,d=u.prototype;e.exports=c?u.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 u?d: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,u=[];for(n in i)!r(s,n)&&r(i,n)&&c(u,n);for(;t.length>l;)r(i,n=t[l++])&&(~a(u,n)||c(u,n));return u}},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),u=n(20538).CONFIGURABLE,d=l.get,h=l.enforce,p=String(String).split("String");(e.exports=function(e,t,n,c){var l,d=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,m=!!c&&!!c.noTargetGet,g=c&&void 0!==c.name?c.name:t;r(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||u&&n.name!==g)&&a(n,"name",g),(l=h(n)).source||(l.source=p.join("string"==typeof g?g:""))),e!==i?(d?!m&&e[t]&&(f=!0):delete e[t],f?e[t]=n:a(e,t,n)):f?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return r(this)&&d(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),u=function(e){return function(t,n){var i,u,d=o(a(t)),h=r(n),p=d.length;return h<0||h>=p?e?"":void 0:(i=c(d,h))<55296||i>56319||h+1===p||(u=c(d,h+1))<56320||u>57343?e?s(d,h):i:e?l(d,h,h+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!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),u=i.TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,i=s(e,d);if(i){if(void 0===t&&(t="default"),n=r(i,e,t),!o(n)||a(n))return n;throw u("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"),u=i.Symbol,d=u&&u.for,h=c?u:u&&u.withoutSetter||a;e.exports=function(e){if(!o(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&o(u,e)?l[e]=u[e]:l[e]=c&&d?d(t):h(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),u=n(47012),d="Array Iterator",h=a.set,p=a.getterFor(d);e.exports=c(Array,"Array",(function(e,t){h(this,{type:d,target:i(e),index:0,kind:t})}),(function(){var e=p(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 f=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!l&&u&&"values"!==f.name)try{s(f,"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:()=>C,__asyncGenerator:()=>S,__asyncValues:()=>x,__await:()=>y,__awaiter:()=>u,__classPrivateFieldGet:()=>P,__classPrivateFieldSet:()=>A,__createBinding:()=>h,__decorate:()=>s,__exportStar:()=>p,__extends:()=>r,__generator:()=>d,__importDefault:()=>T,__importStar:()=>E,__makeTemplateObject:()=>I,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>a,__spread:()=>g,__spreadArray:()=>b,__spreadArrays:()=>v,__values:()=>f});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 u(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 d(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 h=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 p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)}function f(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 m(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 g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(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 S(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):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function C(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=f(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 I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(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)&&h(t,e,n);return w(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function P(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 A(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}},65015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n 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 i(e){return"object"==typeof e&&null!=e}function r(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function o(e){return"string"==typeof e?JSON.stringify(e):""+e}function a(e,t,n,i){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:r,branch:a}=t,{type:s}=n,{refinement:c,message:l="Expected a value of type `"+s+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+o(i)+"`"}=e;return{value:i,type:s,refinement:c,key:r[r.length-1],path:r,branch:a,...e,message:l}}function*s(e,t,n,r){var o;i(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]);for(const i of e){const e=a(i,t,n,r);e&&(yield e)}}function*c(e,t,n){void 0===n&&(n={});const{path:r=[],branch:o=[e],coerce:a=!1,mask:s=!1}=n,l={path:r,branch:o};if(a&&(e=t.coercer(e,l),s&&"type"!==t.type&&i(t.schema)&&i(e)&&!Array.isArray(e)))for(const n in e)void 0===t.schema[n]&&delete e[n];let u="valid";for(const n of t.validator(e,l))u="not_valid",yield[n,void 0];for(let[n,d,h]of t.entries(e,l)){const t=c(d,h,{path:void 0===n?r:[...r,n],branch:void 0===n?o:[...o,d],coerce:a,mask:s});for(const r of t)r[0]?(u=null!=r[0].refinement?"not_refined":"not_valid",yield[r[0],void 0]):a&&(d=r[1],void 0===n?e=d:e instanceof Map?e.set(n,d):e instanceof Set?e.add(d):i(e)&&(e[n]=d))}if("not_valid"!==u)for(const n of t.refiner(e,l))u="not_refined",yield[n,void 0];"valid"===u&&(yield[void 0,e])}class l{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)=>s(i(e,t),t,this,e):()=>[],this.refiner=r?(e,t)=>s(r(e,t),t,this,e):()=>[]}assert(e){return u(e,this)}create(e){return d(e,this)}is(e){return p(e,this)}mask(e){return h(e,this)}validate(e,t){return void 0===t&&(t={}),f(e,this,t)}}function u(e,t){const n=f(e,t);if(n[0])throw n[0]}function d(e,t){const n=f(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function h(e,t){const n=f(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}function p(e,t){return!f(e,t)[0]}function f(e,t,i){void 0===i&&(i={});const r=c(e,t,i),o=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(r);return o[0]?[new n(o[0],(function*(){for(const e of r)e[0]&&(yield e[0])})),void 0]:[void 0,o[1]]}function m(e,t){return new l({type:e,schema:null,validator:t})}function g(){return m("never",(()=>!1))}function v(e){const t=e?Object.keys(e):[],n=g();return new l({type:"object",schema:e||null,*entries(r){if(e&&i(r)){const i=new Set(Object.keys(r));for(const n of t)i.delete(n),yield[n,r[n],e[n]];for(const e of i)yield[e,r[e],n]}},validator:e=>i(e)||"Expected an object, but received: "+o(e),coercer:e=>i(e)?{...e}:e})}function b(e){return new l({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function y(){return m("string",(e=>"string"==typeof e||"Expected a string, but received: "+o(e)))}function S(e){const t=Object.keys(e);return new l({type:"type",schema:e,*entries(n){if(i(n))for(const i of t)yield[i,n[i],e[i]]},validator:e=>i(e)||"Expected an object, but received: "+o(e)})}function C(){return m("unknown",(()=>!0))}function x(e,t,n){return new l({...e,coercer:(i,r)=>p(i,t)?e.coercer(n(i,r),r):e.coercer(i,r)})}function I(e){return e instanceof Map||e instanceof Set?e.size:e.length}function w(e,t,n){return new l({...e,*refiner(i,r){yield*e.refiner(i,r);const o=s(n(i,r),r,e,i);for(const e of o)yield{...e,refinement:t}}})}t.Struct=l,t.StructError=n,t.any=function(){return m("any",(()=>!0))},t.array=function(e){return new l({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: "+o(e)})},t.assert=u,t.assign=function(){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?S(o):v(o)},t.bigint=function(){return m("bigint",(e=>"bigint"==typeof e))},t.boolean=function(){return m("boolean",(e=>"boolean"==typeof e))},t.coerce=x,t.create=d,t.date=function(){return m("date",(e=>e instanceof Date&&!isNaN(e.getTime())||"Expected a valid `Date` object, but received: "+o(e)))},t.defaulted=function(e,t,n){return void 0===n&&(n={}),x(e,C(),(e=>{const i="function"==typeof t?t():t;if(void 0===e)return i;if(!n.strict&&r(e)&&r(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}))},t.define=m,t.deprecated=function(e,t){return new l({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,i)=>void 0===n||(t(n,i),e.validator(n,i))})},t.dynamic=function(e){return new l({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)})},t.empty=function(e){return w(e,"empty",(t=>{const n=I(t);return 0===n||"Expected an empty "+e.type+" but received one with a size of `"+n+"`"}))},t.enums=function(e){const t={},n=e.map((e=>o(e))).join();for(const n of e)t[n]=n;return new l({type:"enums",schema:t,validator:t=>e.includes(t)||"Expected one of `"+n+"`, but received: "+o(t)})},t.func=function(){return m("func",(e=>"function"==typeof e||"Expected a function, but received: "+o(e)))},t.instance=function(e){return m("instance",(t=>t instanceof e||"Expected a `"+e.name+"` instance, but received: "+o(t)))},t.integer=function(){return m("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||"Expected an integer, but received: "+o(e)))},t.intersection=function(e){return new l({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)}})},t.is=p,t.lazy=function(e){let t;return new l({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))})},t.literal=function(e){const t=o(e),n=typeof e;return new l({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||"Expected the literal `"+t+"`, but received: "+o(n)})},t.map=function(e,t){return new l({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: "+o(e)})},t.mask=h,t.max=function(e,t,n){void 0===n&&(n={});const{exclusive:i}=n;return w(e,"max",(n=>i?n<t:n<=t||"Expected a "+e.type+" less than "+(i?"":"or equal to ")+t+" but received `"+n+"`"))},t.min=function(e,t,n){void 0===n&&(n={});const{exclusive:i}=n;return w(e,"min",(n=>i?n>t:n>=t||"Expected a "+e.type+" greater than "+(i?"":"or equal to ")+t+" but received `"+n+"`"))},t.never=g,t.nonempty=function(e){return w(e,"nonempty",(t=>I(t)>0||"Expected a nonempty "+e.type+" but received an empty one"))},t.nullable=function(e){return new l({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})},t.number=function(){return m("number",(e=>"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+o(e)))},t.object=v,t.omit=function(e,t){const{schema:n}=e,i={...n};for(const e of t)delete i[e];return"type"===e.type?S(i):v(i)},t.optional=b,t.partial=function(e){const t=e instanceof l?{...e.schema}:{...e};for(const e in t)t[e]=b(t[e]);return v(t)},t.pattern=function(e,t){return w(e,"pattern",(n=>t.test(n)||"Expected a "+e.type+" matching `/"+t.source+'/` but received "'+n+'"'))},t.pick=function(e,t){const{schema:n}=e,i={};for(const e of t)i[e]=n[e];return v(i)},t.record=function(e,t){return new l({type:"record",schema:null,*entries(n){if(i(n))for(const i in n){const r=n[i];yield[i,i,e],yield[i,r,t]}},validator:e=>i(e)||"Expected an object, but received: "+o(e)})},t.refine=w,t.regexp=function(){return m("regexp",(e=>e instanceof RegExp))},t.set=function(e){return new l({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: "+o(e)})},t.size=function(e,t,n){void 0===n&&(n=t);const i="Expected a "+e.type,r=t===n?"of `"+t+"`":"between `"+t+"` and `"+n+"`";return w(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+"`"}}))},t.string=y,t.struct=function(e,t){return console.warn("[email protected] - The `struct` helper has been renamed to `define`."),m(e,t)},t.trimmed=function(e){return x(e,y(),(e=>e.trim()))},t.tuple=function(e){const t=g();return new l({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: "+o(e)})},t.type=S,t.union=function(e){const t=e.map((e=>e.type)).join(" | ");return new l({type:"union",schema:null,coercer:(t,n)=>(e.find((e=>{const[n]=e.validate(t,{coerce:!0});return!n}))||C()).coercer(t,n),validator(n,i){const r=[];for(const t of e){const[...e]=c(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: "+o(n),...r]}})},t.unknown=C,t.validate=f},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],(()=>(86814,e(e.s=86814)))),e.O()}]);