!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Bootstrapper=e():t.Bootstrapper=e()}(this,(()=>(()=>{var t={1032:(t,e,r)=>{"use strict";r.d(e,{Ao:()=>d,B0:()=>s,BP:()=>p,C4:()=>n,Kh:()=>a,Qe:()=>f,S_:()=>l,_v:()=>y,bI:()=>o,iK:()=>g,jY:()=>i,ml:()=>m,sM:()=>c,tn:()=>u,x3:()=>h,yX:()=>b});const o=1280,n={LEFT:1,CENTER:2,RIGHT:3},i={MOBILE:"MOBILE",TABLET:"TABLET",DESKTOP:"DESKTOP",NONE:"-"},a={STANDARD:1,ASIAN:2,AFRICAN:3,PAPER:4,ESPORT:5,ESPORT_VIEW:11,LATINO:6,SIMPLE_EAST:7,MODERN:8,EUROPEAN:9,BETSHOP:10},s="/staticcontent",l=["EuropeanView","LatinoView","AsianView","ModernView","Mobile","ESport","EsportView","SimpleEast","BetShop"],c="SF-",p="Betslip",u="asian",f="AsianView_mobile",d="betslip",h="v",y=["EventWidget","TopMatches","Jackpot","MultiBetOfTheDay"],m=["EuropeanView","SimpleEast","Mobile","EsportView","ModernView","LatinoView","LivePage","TopMatches","AsianView","LandingWidgets","asian-view","Jackpot"],g=["LatinoView","EuropeanView","EsportView","Mobile","ModernView","AsianView"],b=["toggleStake","updateUserBalance","updateOddFormat","chequeRedactOrder","repeatTheBet","loadExpressOfTheDay","clearBetSlip","openBetSlip","closeBetSlip","setSportTournamentMode","updateTimeFormat","openSystemCalculator","setBetBuilderData","switchView","cancelBetBuilderEdit","sportAppEventListener","changeColors"]},1644:(t,e,r)=>{"use strict";r.d(e,{VX:()=>c,W7:()=>p,aR:()=>l,bz:()=>u,e9:()=>a,fn:()=>s,kW:()=>i,lQ:()=>o,nr:()=>n});const o=()=>{},n=()=>/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor);function i(t=""){return t.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}const a=(t,e="")=>e.split(".").reduce(((t,e)=>t?t[e]:t),t),s=(t,e="")=>e.split(".").reduce(((t,e)=>{let r=t&&t[e];return r=r&&"function"==typeof r&&"object"==typeof t?r.bind(t):r,r}),t);function l(t,e,r=Function.prototype){const o=t[e];if(!o)return null;const n=Object.create(Object.getPrototypeOf(o)),i=Object.keys(t);return o.addEventListener("sportAppEventListener",(({data:r})=>{i.filter((t=>t!==e)).forEach((e=>{t[e].dispatch("sportAppEventListener",r)}))})),Object.assign(n,o,{changeColors(e){i.forEach((r=>{t[r].changeColors(e)}))},destroy(){i.forEach((e=>{t[e].destroy()})),r()}}),i.forEach((r=>{e!==r&&(n[r]=t[r])})),n}function c(t,e){Object.entries(e).forEach((([e,r])=>{t.style[e]=r||null}))}function p(t=10){let e="",r=0;for(;r{"use strict";var o=r(6989),n=r(1264),i=r(7858),a=r(6265);t.exports=a||o.call(i,n)},1264:t=>{"use strict";t.exports=Function.prototype.apply},7858:t=>{"use strict";t.exports=Function.prototype.call},9460:(t,e,r)=>{"use strict";var o=r(6989),n=r(7277),i=r(7858),a=r(3110);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return a(o,i,t)}},6265:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},690:(t,e,r)=>{"use strict";var o=r(7375),n=r(9460),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n([r]):r}},7042:(t,e,r)=>{"use strict";var o,n=r(9460),i=r(4553);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!o&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(t){return l(null==t?t:s(t))}},6709:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},3123:t=>{"use strict";t.exports=EvalError},6953:t=>{"use strict";t.exports=Error},3780:t=>{"use strict";t.exports=RangeError},8768:t=>{"use strict";t.exports=ReferenceError},7430:t=>{"use strict";t.exports=SyntaxError},7277:t=>{"use strict";t.exports=TypeError},1619:t=>{"use strict";t.exports=URIError},6954:t=>{"use strict";t.exports=Object},8307:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,o=function(t,e){for(var r=[],o=0;o{"use strict";var o=r(8307);t.exports=Function.prototype.bind||o},7375:(t,e,r)=>{"use strict";var o,n=r(6954),i=r(6953),a=r(3123),s=r(3780),l=r(8768),c=r(7430),p=r(7277),u=r(1619),f=r(4960),d=r(8974),h=r(2938),y=r(6516),m=r(5158),g=r(7856),b=r(8707),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},S=r(4553),E=r(6709),A=function(){throw new p},C=S?function(){try{return A}catch(t){try{return S(arguments,"callee").get}catch(t){return A}}}():A,O=r(757)(),x=r(6054),j=r(5266),P=r(6298),I=r(1264),L=r(7858),T={},k="undefined"!=typeof Uint8Array&&x?x(Uint8Array):o,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":O&&x?x([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&x?x(x([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&x?x((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&x?x((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&x?x(""[Symbol.iterator]()):o,"%Symbol%":O?Symbol:o,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":k,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":j,"%Math.abs%":f,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":P};if(x)try{null.error}catch(t){var M=x(x(t));B["%Error.prototype%"]=M}var R=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&x&&(r=x(n.prototype))}return B[e]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=r(6989),D=r(2155),F=_.call(L,Array.prototype.concat),W=_.call(I,Array.prototype.splice),$=_.call(L,String.prototype.replace),U=_.call(L,String.prototype.slice),H=_.call(L,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,z=function(t,e){var r,o=t;if(D(N,o)&&(o="%"+(r=N[o])[0]+"%"),D(B,o)){var n=B[o];if(n===T&&(n=R(o)),void 0===n&&!e)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new p('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=U(t,0,1),r=U(t,-1);if("%"===e&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var o=[];return $(t,V,(function(t,e,r,n){o[o.length]=r?$(n,q,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=z("%"+o+"%",e),i=n.name,a=n.value,s=!1,l=n.alias;l&&(o=l[0],W(r,F([0,1],l)));for(var u=1,f=!0;u=r.length){var m=S(a,d);a=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[d]}else f=D(a,d),a=a[d];f&&!s&&(B[i]=a)}}return a}},5266:(t,e,r)=>{"use strict";var o=r(6954);t.exports=o.getPrototypeOf||null},6298:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},6054:(t,e,r)=>{"use strict";var o=r(6298),n=r(5266),i=r(7042);t.exports=o?function(t){return o(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return n(t)}:i?function(t){return i(t)}:null},1555:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},4553:(t,e,r)=>{"use strict";var o=r(1555);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},757:(t,e,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(3175);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},3175:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},2155:(t,e,r)=>{"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(6989);t.exports=i.call(o,n)},4960:t=>{"use strict";t.exports=Math.abs},8974:t=>{"use strict";t.exports=Math.floor},1581:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},2938:t=>{"use strict";t.exports=Math.max},6516:t=>{"use strict";t.exports=Math.min},5158:t=>{"use strict";t.exports=Math.pow},7856:t=>{"use strict";t.exports=Math.round},8707:(t,e,r)=>{"use strict";var o=r(1581);t.exports=function(t){return o(t)||0===t?t:t<0?-1:1}},4141:(t,e,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,p=s&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,E=RegExp.prototype.test,A=Array.prototype.concat,C=Array.prototype.join,O=Array.prototype.slice,x=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,B=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function M(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||E.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-x(-t):x(t);if(o!==t){var n=String(o),i=b.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var R=r(2634),N=R.custom,_=V(N)?N:null,D={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(t,e,r){var o=r.quoteStyle||e,n=D[o];return n+t+n}function $(t){return v.call(String(t),/"/g,""")}function U(t){return!("[object Array]"!==G(t)||T&&"object"==typeof t&&T in t)}function H(t){return!("[object RegExp]"!==G(t)||T&&"object"==typeof t&&T in t)}function V(t){if(L)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!I)return!1;try{return I.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,n,s){var l=o||{};if(z(l,"quoteStyle")&&!z(D,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!z(l,"customInspect")||l.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return Q(e,l);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var E=String(e);return w?M(e,E):E}if("bigint"==typeof e){var x=String(e)+"n";return w?M(e,x):x}var P=void 0===l.depth?5:l.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof e)return U(e)?"[Array]":"[Object]";var N=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=C.call(Array(t.indent+1)," ")}return{base:r,prev:C.call(Array(e+1),r)}}(l,n);if(void 0===s)s=[];else if(K(s,e)>=0)return"[Circular]";function F(e,r,o){if(r&&(s=O.call(s)).push(r),o){var i={depth:l.depth};return z(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),t(e,i,n+1,s)}return t(e,l,n+1,s)}if("function"==typeof e&&!H(e)){var q=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),J=et(e,F);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(J.length>0?" { "+C.call(J,", ")+" }":"")}if(V(e)){var rt=L?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(e);return"object"!=typeof e||L?rt:Z(rt)}if(function(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}(e)){for(var ot="<"+S.call(String(e.nodeName)),nt=e.attributes||[],it=0;it"}if(U(e)){if(0===e.length)return"[]";var at=et(e,F);return N&&!function(t){for(var e=0;e=0)return!1;return!0}(at)?"["+tt(at,N)+"]":"[ "+C.call(at,", ")+" ]"}if(function(t){return!("[object Error]"!==G(t)||T&&"object"==typeof t&&T in t)}(e)){var st=et(e,F);return"cause"in Error.prototype||!("cause"in e)||k.call(e,"cause")?0===st.length?"["+String(e)+"]":"{ ["+String(e)+"] "+C.call(st,", ")+" }":"{ ["+String(e)+"] "+C.call(A.call("[cause]: "+F(e.cause),st),", ")+" }"}if("object"==typeof e&&y){if(_&&"function"==typeof e[_]&&R)return R(e,{depth:P-n});if("symbol"!==y&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var lt=[];return a&&a.call(e,(function(t,r){lt.push(F(r,e,!0)+" => "+F(t,e))})),Y("Map",i.call(e),lt,N)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ct=[];return p&&p.call(e,(function(t){ct.push(F(t,e))})),Y("Set",c.call(e),ct,N)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t,u);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return X("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{u.call(t,u)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return X("WeakSet");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{return d.call(t),!0}catch(t){}return!1}(e))return X("WeakRef");if(function(t){return!("[object Number]"!==G(t)||T&&"object"==typeof t&&T in t)}(e))return Z(F(Number(e)));if(function(t){if(!t||"object"!=typeof t||!j)return!1;try{return j.call(t),!0}catch(t){}return!1}(e))return Z(F(j.call(e)));if(function(t){return!("[object Boolean]"!==G(t)||T&&"object"==typeof t&&T in t)}(e))return Z(h.call(e));if(function(t){return!("[object String]"!==G(t)||T&&"object"==typeof t&&T in t)}(e))return Z(F(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==G(t)||T&&"object"==typeof t&&T in t)}(e)&&!H(e)){var pt=et(e,F),ut=B?B(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",dt=!ut&&T&&Object(e)===e&&T in e?b.call(G(e),8,-1):ft?"Object":"",ht=(ut||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(dt||ft?"["+C.call(A.call([],dt||[],ft||[]),": ")+"] ":"");return 0===pt.length?ht+"{}":N?ht+"{"+tt(pt,N)+"}":ht+"{ "+C.call(pt,", ")+" }"}return String(e)};var q=Object.prototype.hasOwnProperty||function(t){return t in this};function z(t,e){return q.call(t,e)}function G(t){return y.call(t)}function K(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return Q(b.call(t,0,e.maxStringLength),e)+o}var n=F[e.quoteStyle||"single"];return n.lastIndex=0,W(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Z(t){return"Object("+t+")"}function X(t){return t+" { ? }"}function Y(t,e,r,o){return t+" ("+e+") {"+(o?tt(r,o):C.call(r,", "))+"}"}function tt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+C.call(t,","+r)+"\n"+e.prev}function et(t,e){var r=U(t),o=[];if(r){o.length=t.length;for(var n=0;n{"use strict";var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},1215:(t,e,r)=>{"use strict";var o=r(518),n=r(968),i=r(5259);t.exports={formats:i,parse:n,stringify:o}},968:(t,e,r)=>{"use strict";var o=r(6570),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},c=function(t,e,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(a),p=c?a.slice(0,c.index):a,u=[];if(p){if(!r.plainObjects&&n.call(Object.prototype,p)&&!r.allowPrototypes)return;u.push(p)}for(var f=0;r.depth>0&&null!==(c=s.exec(a))&&f0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var s=n?e:l(e,r,i),c=t.length-1;c>=0;--c){var p,u=t[c];if("[]"===u&&r.parseArrays)p=r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:o.combine([],s);else{p=r.plainObjects?{__proto__:null}:{};var f="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,d=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,h=parseInt(d,10);r.parseArrays||""!==d?!isNaN(h)&&u!==d&&String(h)===d&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(p=[])[h]=s:"__proto__"!==d&&(p[d]=s):p={0:s}}s=p}return s}(u,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var p="string"==typeof t?function(t,e){var r={__proto__:null},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=e.parameterLimit===1/0?void 0:e.parameterLimit,u=c.split(e.delimiter,e.throwOnLimitExceeded?p+1:p);if(e.throwOnLimitExceeded&&u.length>p)throw new RangeError("Parameter limit exceeded. Only "+p+" parameter"+(1===p?"":"s")+" allowed.");var f,d=-1,h=e.charset;if(e.charsetSentinel)for(f=0;f-1&&(m=i(m)?[m]:m);var w=n.call(r,y);w&&"combine"===e.duplicates?r[y]=o.combine(r[y],m):w&&"last"!==e.duplicates||(r[y]=m)}return r}(t,r):t,u=r.plainObjects?{__proto__:null}:{},f=Object.keys(p),d=0;d{"use strict";var o=r(4670),n=r(6570),i=r(5259),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,c=Array.prototype.push,p=function(t,e){c.apply(t,l(e)?e:[e])},u=Date.prototype.toISOString,f=i.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},h={},y=function t(e,r,i,a,s,c,u,f,y,m,g,b,v,w,S,E,A,C){for(var O,x=e,j=C,P=0,I=!1;void 0!==(j=j.get(h))&&!I;){var L=j.get(e);if(P+=1,void 0!==L){if(L===P)throw new RangeError("Cyclic object value");I=!0}void 0===j.get(h)&&(P=0)}if("function"==typeof m?x=m(r,x):x instanceof Date?x=v(x):"comma"===i&&l(x)&&(x=n.maybeMap(x,(function(t){return t instanceof Date?v(t):t}))),null===x){if(c)return y&&!E?y(r,d.encoder,A,"key",w):r;x=""}if("string"==typeof(O=x)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||n.isBuffer(x))return y?[S(E?r:y(r,d.encoder,A,"key",w))+"="+S(y(x,d.encoder,A,"value",w))]:[S(r)+"="+S(String(x))];var T,k=[];if(void 0===x)return k;if("comma"===i&&l(x))E&&y&&(x=n.maybeMap(x,y)),T=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(m))T=m;else{var B=Object.keys(x);T=g?B.sort(g):B}var M=f?String(r).replace(/\./g,"%2E"):String(r),R=a&&l(x)&&1===x.length?M+"[]":M;if(s&&l(x)&&0===x.length)return R+"[]";for(var N=0;N0?S+w:""}},6570:(t,e,r)=>{"use strict";var o=r(5259),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n=l?s.slice(p,p+l):s,f=[],d=0;d=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===o.RFC1738&&(40===h||41===h)?f[f.length]=u.charAt(d):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(d+=1,h=65536+((1023&h)<<10|1023&u.charCodeAt(d)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=f.join("")}return c},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o{"use strict";var o=r(4141),n=r(7277),i=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){var r=t&&t.next,o=function(t,e){if(t)return i(t,e,!0)}(t,e);return o&&r&&r===o&&(t=void 0),!!o},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var o=i(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},2321:(t,e,r)=>{"use strict";var o=r(7375),n=r(690),i=r(4141),a=r(7277),s=o("%Map%",!0),l=n("Map.prototype.get",!0),c=n("Map.prototype.set",!0),p=n("Map.prototype.has",!0),u=n("Map.prototype.delete",!0),f=n("Map.prototype.size",!0);t.exports=!!s&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=u(t,e);return 0===f(t)&&(t=void 0),r}return!1},get:function(e){if(t)return l(t,e)},has:function(e){return!!t&&p(t,e)},set:function(e,r){t||(t=new s),c(t,e,r)}};return e}},1117:(t,e,r)=>{"use strict";var o=r(7375),n=r(690),i=r(4141),a=r(2321),s=r(7277),l=o("%WeakMap%",!0),c=n("WeakMap.prototype.get",!0),p=n("WeakMap.prototype.set",!0),u=n("WeakMap.prototype.has",!0),f=n("WeakMap.prototype.delete",!0);t.exports=l?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+i(t))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?c(t,r):e&&e.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?u(t,r):!!e&&e.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new l),p(t,r,o)):a&&(e||(e=a()),e.set(r,o))}};return r}:a},4670:(t,e,r)=>{"use strict";var o=r(7277),n=r(4141),i=r(2161),a=r(2321),s=r(1117)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=s()),t.set(e,r)}};return e}},2634:()=>{},8330:t=>{"use strict";t.exports=JSON.parse('{"name":"@sportdigi/bootstrapper","version":"12.0.7","description":"Gets everything ready for application start","main":"dist/bootstrapper.min.js","scripts":{"start":"webpack --config webpackDev.config.js && webpack-dev-server --config webpackDev.config.js","analyze":"webpack --config webpackDev.config.js && webpack-dev-server --config webpackDev.config.js --analyze","build:cdn":"sportdigi-scripts build","build":"sportdigi-scripts build","prepack":"npm run build","prepare":"husky install","format":"pretty-quick --staged"},"files":["dist"],"license":"ISC","devDependencies":{"@sportdigi/scripts":"5.7.6","ajv":"^8.17.1","husky":"^8.0.0","prettier":"^2.7.1","pretty-quick":"^3.1.3","webpack-bundle-analyzer":"^4.10.1","webpack-cli":"^5.0.1"},"browserslist":{"production":["Chrome >= 99","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"dependencies":{"qs":"^6.11.2"}}')}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.m=t,r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.f={},r.e=t=>Promise.all(Object.keys(r.f).reduce(((e,o)=>(r.f[o](t,e),e)),[])),r.u=t=>"jsChunks/"+t+"."+{166:"8d9de796",195:"f8f2d543",475:"b2f595e5",769:"d147a25d"}[t]+".chunk.js",r.miniCssF=t=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={},e="Bootstrapper:";r.l=(o,n,i,a)=>{if(t[o])t[o].push(n);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(d);var n=t[o];if(delete t[o],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((t=>t(r))),e)return e(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var o=e.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=o[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})(),(()=>{var t={792:0};r.f.j=(e,o)=>{var n=r.o(t,e)?t[e]:void 0;if(0!==n)if(n)o.push(n[2]);else{var i=new Promise(((r,o)=>n=t[e]=[r,o]));o.push(n[2]=i);var a=r.p+r.u(e),s=new Error;r.l(a,(o=>{if(r.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.src;s.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,n[1](s)}}),"chunk-"+e,e)}};var e=(e,o)=>{var n,i,[a,s,l]=o,c=0;if(a.some((e=>0!==t[e]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);l&&l(r)}for(e&&e(o);c{"use strict";r.d(o,{default:()=>w});var t=r(1032);const e={server:"",sportPartner:"",userType:"",token:"-",timeZone:"",defaultLanguage:"",userId:"",globalSettings:null,requestFrame:null,translations:null,initialized:!1,resolved:!1,parent:[]};async function n(r,o={}){!function(t={}){Object.entries(t).forEach((([t,r])=>{e.hasOwnProperty(t)&&(e[t]=r)})),e.defaultLanguage=["language","defaultLanguage","l","lang"].map((e=>t[e])).find(Boolean);let r=e.server;r&&(r.endsWith("/")&&(r=r.slice(0,-1)),r.includes("//")&&(r=r.split("//")[1]),e.server=`https://${r}`,e.initialized=!0)}(r),await async function(r,o){t.S_.includes(o&&o.name)&&i(),await async function(){const{userType:t,server:r,sportPartner:o,parent:n}=e,i="request-frame";let a=document.getElementById(i);if(!a){a=document.createElement("iframe"),a.id=i,a.style.display="none";const e=new URL(r),l=new URLSearchParams;e.pathname=o?`/${o}/Tools/RequestHelper`:"/Tools/RequestHelper",Array.isArray(n)&&n.length>0&&n.map((t=>l.append("parent",t))),t&&l.append("userType",t),e.search=l.toString(),a.src=e,await new Promise((t=>{["complete","loaded","interactive"].includes(document.readyState)?s(a,t):document.addEventListener("DOMContentLoaded",(()=>{s(a,t)}))}))}return e.requestFrame||(e.requestFrame=a),Promise.resolve()}();let{resolved:n,token:a}=e;n||(await async function(){const{defaultLanguage:t,userType:r,parent:o}=e;let n={sender:"http-api",url:"/StaticContent/GlobalSettings.js",finalParams:{data:{l:t,userType:r,parent:o},path:"StaticContent/GlobalSettings.js",method:"get",params:[["l","string"],["parent","string[]"],["userType","UserType"]]}};await l(n).then((t=>{t.user||(t.user={UserSetting:{}}),e.globalSettings=t}))}(),a&&"-"!==a&&await async function(){const{userId:t,token:r,defaultLanguage:o,timeZone:n,userType:i}=e;let a={sender:"http-api",url:"/Account/Authorize",finalParams:{data:{partnerUserId:t,token:r,l:o,tz:n,userType:i},path:"Account/Authorize",method:"get",params:[["partnerUserId","long?"],["userType","UserType"],["token","string"],["l","string"],["tz","double"]]}};await l(a).then((t=>{e.globalSettings={...e.globalSettings,...t}}))}(),await async function(){const{globalSettings:{partner:t={},language:r={}}}=e;let o={sender:"http-api",url:"/StaticContent/Translations.js",finalParams:{data:{language:r.TwoLetterName,partnerId:t.Id},path:"StaticContent/Translations.js",method:"get",params:[["language","string"],["partnerId","int?"]]}};await l(o).then((t=>{e.translations=t}))}()),e.resolved=!0}(0,o),r.token="-",r.server=e.server,r.globalSettings=e.globalSettings,r.translations=e.translations}function i(t=!1){if(!e.initialized)return;const{server:r,sportPartner:o}=e;let n=`${r}/Error/Check`;if(o&&(n=`${r}/${o.toLowerCase()}/Error/Check`),t)return a(r);let i=sessionStorage.getItem("__sb_err_cnt__");i=parseInt(i),isNaN(i)&&(i=0),i<3&&fetch(n,{method:"GET",mode:"cors",credentials:"include"}).then((t=>{var e,o;const n=null==t||null===(e=t.headers)||void 0===e||null===(o=e.get)||void 0===o?void 0:o.call(e,"server");n&&"cloudflare"!==n||403!==t.status||(sessionStorage.setItem("__sb_err_cnt__",++i),a(r))})).catch((()=>{sessionStorage.setItem("__sb_err_cnt__",++i),a(r)}))}function a(t){return location.href=t+"/Error/Validate?returnUrl="+encodeURIComponent(location.href)}function s(t,e){t.onload=function(){t.isSportFrameLoaded=!0,e()},document.body.appendChild(t)}async function l(t={}){return t.messageId=t.url+Math.random(),t.finalParams.headers={},new Promise(((r,o)=>{const n=t.messageId;let i=t=>{t.data&&"object"==typeof t.data&&"http-api-response"===t.data.sender&&t.data.messageId===n&&(window.removeEventListener("message",i),t.data.ok||o(t.data),r(t.data.res))};window.addEventListener("message",i),e.requestFrame.contentWindow.postMessage(t,"*")}))}var c=r(1215),p=r.n(c),u=r(1644);class f{constructor(t){this.initProps(),this.postFix=t}initProps(){this.name="",this.postFix="",this.consoleTimeLabel=""}timeEnd(){console.timeEnd(`${this.consoleTimeLabel}`)}time(){console.time(`${this.consoleTimeLabel}`)}initTimeLabel(t=this.name){this.name=t;const e=this.postFix;this.consoleTimeLabel=`${t} ${e}`}}class d extends f{constructor(){super("config extracting"),this.initProps()}reset(){this.initProps()}initProps(){this.bootConfig={},this.bootableConfig={},this.name=null,this.url=null,this.urlWithVersion=null,this.indexHTMLUrl=null,this.indexHTML=null,this.globalSettings={},this.headElements=[],this.bodyElements=[],this.links=[],this.scripts=[]}extract(t,e){this.bootConfig=e,this.appConfig=t;const r=this.name=e.name;return this.appName=(0,u.kW)(r),this.init(t.server,e.isSpBranchVersion)}async init(t,e){return this.initServer(t),this.initGlobalSettings(),this.initName(),this.initTimeLabel(),this.time(),this.initGlobalSettingsEnv(),this.initUrlWithVersion(e),await this.initElements(),this.initConfig(),this.timeEnd(),this.bootableConfig||{}}initConfig(){this.bootableConfig={name:this.name,links:this.links,scripts:this.scripts,indexHTML:this.indexHTML,globalSettings:this.globalSettings,html:{head:this.headElements,body:this.bodyElements},urls:{base:this.url,index:this.indexHTMLUrl,version:this.urlWithVersion}}}async initElements(){const{urlWithVersion:t,appName:e}=this,r=`${t}/${e}.min.css`,o=`${t}/${e}.min.js`,n=document.createElement("link");n.href=r,n.rel="stylesheet";const i=document.createElement("script");i.src=o;const a=[n],s=[i];this.assignToThis({headElements:a,bodyElements:s,links:a,scripts:s})}initGlobalSettings(){const{globalSettings:t}=this.appConfig;this.globalSettings=t}initUrlWithVersion(t){const{partner:e,projects:r}=this.globalSettings,{SpBranchDomainName:o,CdnDomainName:n}=e;let i=`https://${t?o:n}/${this.appName}`,a=this.bootConfig.version||r[this.appName],s=a?`${i}/${a}`:i;this.assignToThis({url:i,urlWithVersion:s})}initGlobalSettingsEnv(){let t=this.globalSettings,e=t.Env||(t.partner||{}).Env;this.assignToThis({globalSettingsEnv:e})}initName(){let t=this.bootConfig.name;this.assignToThis({name:t})}initServer(t){this.server=t}assignToThis(t){Object.assign(this,t)}destroy(){this.initProps()}}class h extends f{constructor(){super("loading"),this.initProps()}initProps(){super.initProps(),this.name="",this.debug=!1,this.loadableElements=[],this.loadingDone=!1,this.onLoadResolve=u.lQ,this.onLoadComplete=()=>{this.loadingDone=!0,this.timeEnd(),this.onLoadResolve(this)},this.bootableConfig=null}async load(t){return this.name=t.name,this.debug=t.debug,this.initTimeLabel(),this.time(),this.bootableConfig=t,this.loadingDone=!1,this.initLoadableElements(),new Promise(((t,e)=>{this.onLoadResolve=t;try{this.loadElements()}catch(t){e(t)}}))}loadElements(){this.loadLinks(),this.loadScriptsSync()}loadScriptsSync(t=this.bootableConfig.scripts){let e=t[0];this.loadScriptNext(e,t)}loadScriptNext(t,e=this.bootableConfig.scripts,r=0){if(!t)return this.onLoadComplete();t.onload=()=>{this.debug&&console.timeEnd(`script ${r}`),this.loadScriptNext(e[++r],e,r)},this.addScriptToDocument(t),this.debug&&console.time(`script ${r}`),this.callScriptOnloadManuallyIfIsNotLoadable(t)}callScriptOnloadManuallyIfIsNotLoadable(t){!this.loadableElements.includes(t)&&t.onload()}addScriptToDocument(t){if(!(t instanceof HTMLElement))return;let e=this.bootableConfig.html.head.includes(t)?"head":"body";document.querySelector(e).appendChild(t)}removeScripts(){((this.bootableConfig||{}).scripts||[]).forEach((t=>t.remove()))}loadLinks(){const t=document.head;this.bootableConfig.links.forEach((e=>t.insertBefore(e,t.firstChild)))}removeLinks(){((this.bootableConfig||{}).links||[]).forEach((t=>t.remove()))}initLoadableElements(){let t=this.bootableConfig.scripts.filter((t=>t.src));this.loadableElements=t}destroy(){this.removeLinks(),this.removeScripts(),this.initProps()}}class y{constructor(){this.initProps()}async start(){return await this.callApplicationStartFunction(),this.afterLoadFunctions.forEach(Function.prototype.call),this}async setConfig(t){this.initProps(),this.parent=t,this.afterLoadFunctions=[],this.appConfig=t.appConfig,this.bootConfig=t.bootConfig,this.init(),await this.callApplicationSetConfigFunction()}get iframe(){return this.parent.iframe}initProps(){this.parent={},this.afterLoadFunctions=[],this.appConfig={},this.bootConfig={},this.appStarterImplemented=!1,this.hostObject={},this.appStarter={}}addEventListener(t,e){const r=this,o=this.iframe,n=this.bootConfig.name.toLowerCase();function i(o){if(!r.iframe)return window.removeEventListener("message",i);const a=o.data,s=a.sender&&a.sender!==n;a.type!==t||s||(r.iframe.contentWindow&&r.iframe.contentWindow.postMessage(o.data,"*"),e(a))}return o?window.addEventListener("message",i):this.callAppStarterMethod((()=>this.appStarter.addEventListener(t,e))),()=>this.removeEventListener(t,i)}removeEventListener(t,e){const r=this.iframe;r?r.removeEventListener(t,e):this.callAppStarterMethod((()=>this.appStarter.removeEventListener(t,e)))}dispatchEvent(t,e){const r=this.iframe;if(!this.bootConfig.name)return;const o=this.bootConfig.name.toLowerCase();if(r){const n=r.contentWindow;n&&n.postMessage({data:e,sender:"bootstrapper",receiver:o,type:t},"*")}else this.callAppStarterMethod((()=>this.appStarter.dispatchEvent(t,e)))}callAppStarterMethod(t){void 0===this.appStarterImplemented?this.afterLoadFunctions.push(t):this.appStarterImplemented?t():console.warn("%cAppStarter is not implemented. For messaging system please implement `@sportdigi/app-starter` in your application.","color: orange")}async callApplicationStartFunction(){return await this.callApplicationMethod("start")}async callApplicationSetConfigFunction(){return await this.callApplicationMethod("setConfig")}async callApplicationMethod(t){let e=this.parent,r=this.appConfig,o=this.appStarter;if(!o[t])return this.bootConfig.debug&&console.warn(t,"not found in",o);const n=Object.assign(r,{container:r.containerId});return o[t](n,e)}init(){this.initHostObject(),this.initAppStarter(),this.guessAppStarterIfNotFound(),this.guessAppDestroyIfNotFound()}initHostObject(){this.hostObject=this.iframe?this.iframe.contentWindow:window}initAppStarter(){const t=this.hostObject,e=this.bootConfig.name,r=(0,u.kW)(e),o=t.sportdigi;if(o){const t=o[r];if(t){if(t.addEventListener)return this.appStarterImplemented=!0,this.appStarter=t;this.appStarterImplemented=!1}}const n=e||"",i=(0,u.e9)(t,n)||u.lQ;this.appStarter={start:i}}guessAppStarterIfNotFound(){const t=this.appStarter.start,e=this.bootConfig.name,r=this.hostObject,o=this.bootConfig.appStarterName;if(t!==u.lQ||o)return;const n=(0,u.kW)(e);this.appStarter=(0,u.fn)(r,`sportdigi.${n}`)||{start:function(){console.log("App starter function not found. Try to set parameter `appStarterName`")}}}guessAppDestroyIfNotFound(){const t=this.appStarter.destroy,e=this.hostObject,r=this.bootConfig.name;if(t!==u.lQ)return;const o=(0,u.kW)(r);this.appStarter.destroy=(0,u.fn)(e,"AppStarter.destroy")||(0,u.fn)(e,`DIGI.${r}.destroy`)||(0,u.fn)(e,`sportdigi.${o}.destroy`)||function(){console.log("App starter destroy function not found.")}}destroy(){this.appStarter.destroy&&this.appStarter.destroy(),this.initProps()}}const m=(t,e)=>{let r="";for(let o=0;o`;return r},g={TopEventWidget:"Top",LiveEventWidget:"Live",PrematchEventWidget:"Prematch"};async function b(t,e){const r={};e.apps.forEach((({appConfig:t,bootConfig:e,name:o,containerId:n})=>{n=n||t.containerId;let i=null==e?void 0:e.name;o&&(i=g[o]||o);const a=`sport-${(0,u.kW)((null==t?void 0:t.type)||i)}`;customElements.get(a)||customElements.define(a,class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.createElement("div");t.id=a,this.shadowRoot.append(t),this.shadowRoot.rootElement=t}});const s=document.getElementById(n);if(!s)return console.warn(`"${n}" does not exist!`),null;let l=document.querySelector(a);l||(l=document.createElement(a),s.append(l)),r[a]={...t,webComponent:l,shadowRoot:l.shadowRoot,target:l.shadowRoot.rootElement,tagName:a}}));const o={...e,isLandingWidgets:!0,projects:r};return o.modalRoot=t.createModalRoot(),o.betslipRoot=t.createBetslipRoot(),t.boot(o,{name:"LandingWidgets"})}window.spShadow||(window.spShadow={config:{},hashId:null}),window.dataLayer||(window.dataLayer=[]);let v=window.Bootstrapper;v||(v=class{constructor(t={}){this.init.apply(this,arguments)}static get version(){return r(8330).version}static async bootBetSlip(t,e={}){return e.name="Betslip",v.bootIframe(t,e)}static createMultiBootEventToBehavior({eventTo:t,data:e}){const r=typeof t,o="string"===r,n="function"===r;return r=>o?r.dispatch(t,e):n?t(r,e):null}static async setup(){return v.createInstanceAndCall("setup",arguments)}static async createBaseInstance({appConfig:r,convertedBootConfig:o,isBootIframe:n,iframeConfig:i}){if(t.ml.includes(o.name))return v.bootWebComponent(r,o);const a=await this.getCustomBootFunction(r,o);return n&&(r.requestFrame=e.requestFrame),a?await a(r,{...o,method:n?"bootIframe":"boot"}):n?await v.bootIframeBase(r,o,i):await v.bootBase(r,o)}static async boot(t,e){const r=p().parse(location.search,{ignoreQueryPrefix:!0}),o=v.initVersionControl(r,e);this.validateBootConfig(o),await v.initSettings(t,o),v.setEsportType(o,t);let n=await v.createBaseInstance({appConfig:t,convertedBootConfig:o});return await v.initMaintenance(t,o,n),n}static initVersionControl(e,r){var o,n;return null!==(o=e[t.x3])&&void 0!==o&&o.startsWith(t.sM)&&r.name!==t.BP?{...r,version:e[t.x3],isSpBranchVersion:!0}:null!==(n=e[t.Ao])&&void 0!==n&&n.startsWith(t.sM)&&r.name===t.BP?{...r,version:e[t.Ao],isSpBranchVersion:!0}:r}static async initMaintenance(e,r,o){if(t.S_.includes(r.name))return await v.bootMaintenance(e,o)}static async initSettings(t,e){let{name:r}=e;t.globalSettings||(await n(t,e),e.newBetSlip=!t.globalSettings.partner.EnableOldBetSlip),"Mobile"===r&&"e-sport"===t.view&&(e.name="ESport"),"Mobile"===r&&"esport-view"===t.view&&(e.name="EsportView")}static async bootBase(t,e){return v.createInstanceAndCall("boot",arguments)}static async bootIframe(t,e,r={}){t.hashRouterDisabled=!0;const o=p().parse(location.search,{ignoreQueryPrefix:!0}),n=v.initVersionControl(o,e);await v.initSettings(t,n),v.setEsportType(n,t);let i=await v.createBaseInstance({appConfig:t,convertedBootConfig:n,iframeConfig:r,isBootIframe:!0});return await v.initMaintenance(t,n,i),i}static validateBootConfig(t){if("Betslip"===t.name){const e=`${t.name} project should be boot with bootIframe.`;throw new Error(e)}}static setEsportType(t,e){e.globalSettings.partner.EnableNewEsport&&"ESport"===t.name&&(t.name="EsportView")}static async getCustomBootFunction(t,e){switch(e.name){case"ESport":return e.newBetSlip&&(await r.e(475).then(r.bind(r,475))).default(v);case"EsportView":return t.globalSettings.projects["esport-view"].startsWith("1.5.66")&&(await r.e(166).then(r.bind(r,6166))).default(v);case"Betslip":return(await r.e(195).then(r.bind(r,5195))).default(v);case"BetShop":return(await r.e(769).then(r.bind(r,3769))).default(v);default:return null}}static async bootWebComponentBase(){return v.createInstanceAndCall("bootWebComponent",arguments)}static async bootIframeBase(){return v.createInstanceAndCall("bootIframe",arguments)}static async createInstanceAndCall(e,r){const o=new v;return await o[e].apply(o,r),o.starter.addEventListener("onHttpCallError",(e=>{e.data&&403===e.data.status&&t.S_.includes(r&&r[1]&&r[1].name)&&i(!0)})),o}static async multiBoot(r,o,i){return r.apps.every((({bootConfig:e})=>t._v.includes(e.name)))?b(v,r):new Promise((async a=>{let{server:s,apps:l=[],communication:c=[]}=r;r.globalSettings||(await n(r,{name:o}),r.apps.forEach((t=>{t.bootConfig.newBetSlip=!e.globalSettings.partner.EnableOldBetSlip}))),r.appViewName=r.view===t.tn?t.Qe:o;const p={},f={},d={};let h=0;l.forEach((t=>{const{appConfig:e,bootConfig:n,iframeConfig:y,method:m,instanceName:g}=t,b=Object.assign({server:s},r,e),w=v[m](b,n,y),S=n.name;w.then((t=>{p[g||S]=t,c.forEach((e=>{const{from:r,eventFrom:o,to:n,eventTo:i}=e;r===S&&t.addEventListener(o,(e=>{const{data:o}=e;f[r]&&(f[r].forEach((e=>e(t))),f[r]=[]);const a=v.createMultiBootEventToBehavior({eventTo:i,data:o});p[n]?a(p[n]):(f[n]||(f[n]=[]),f[n].push(a))}))})),d[S]&&d[S].forEach((({callback:e,data:r})=>{e(t,r)})),l.forEach((e=>{const r=(e.listen||{})[S];r&&Object.entries(r).map((([r,o])=>{const n=e.instanceName||e.bootConfig.name;t.addEventListener(r,(t=>{p[n]?o(p[n],t):(d[n]||(d[n]=[]),d[n].push({callback:o,data:t}))}))}))}))})).then((()=>{if(h++,l.length===h){const t=(0,u.aR)(p,o,i);a(t)}}))}))}))}initHeaderElement(){const t=(this.iframeConfig||{}).headerElement||{},e=t.clientHeight||0;this.headerElement=t,this.headerHeight=e}reset(){this.destroy()}initProps(){this.bootConfig=null,this.appConfig={},this.appBootableConfig={},this.headerElement=null,this.headerHeight=null,this.iframeConfig={},this.removeScrollListener=Function.prototype,this.socket={}}async bootIframe(t,e,r={}){return await this.configure(t,e,r),this.initHeaderElement(),this.setupIframeHeightAsNum(),await this.createIframe({scriptUrls:t.scriptUrls||[]}),await this.setConfig(),await this.start(),this.startMessaging(),this}async bootWebComponent(e={},r={}){return e.isIframe=!1,t.iK.includes(r.name)&&(e.modalRoot=v.createModalRoot(),e.betslipRoot=v.createBetslipRoot()),this.destroy(),await this.configure(e,r),await this.load(),await this.setConfig(),await this.start(),this.startMessaging(),this}static createModalRoot(){customElements.get("sport-modal")||customElements.define("sport-modal",class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.root=document.createElement("div"),this.shadowRoot.append(this.root)}});let t=document.querySelector("sport-modal");if(!t){const e=document.createElement("div");t=document.createElement("sport-modal"),e.style.position="relative",e.style.zIndex="100000000",e.className="bootstrapper_modal_wrapper",e.append(t),document.body.append(e)}return t}static createBetslipRoot(){customElements.get("sport-betslip")||customElements.define("sport-betslip",class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.root=document.createElement("div"),this.shadowRoot.append(this.root)}});let t=document.querySelector("sport-betslip");return t||(t=document.createElement("sport-betslip"),document.body.append(t)),t}async createIframe(t={}){const{htmlTagAttrs:e="",containerAttrs:r="",scriptUrls:o=[]}=t,n={width:"100%",height:"1000px",frameborder:"0",allowfullscreen:"",allow:"autoplay",scrolling:"no"},i=this.appConfig,a=this.bootConfig,s=this.iframeConfig,l=this.configExtractor,c=i.containerId,p=a.name,f=l.links,d=l.scripts;o.length&&o.forEach((t=>{const e=document.createElement("script");e.src=t,d.push(e)}));const h=`\n \n \n \n ${p}\n ${f.map((t=>t.outerHTML)).join("")}\n \n \n \n
\n
\n ${d.map((t=>t.outerHTML)).join("")}\n \n \n `;(["AsianView","Mobile"].includes(p)||s.height)&&delete n.scrolling;const y=document.createElement("iframe"),m=Object.assign({},n,s);Object.entries(m).forEach((([t,e])=>y.setAttribute(t,e))),Object.assign(y.style,{width:0,"min-width":"100%","min-height":"",opacity:0,display:"block"});const g=document.getElementById(c)||document.createElement("div");if(!g)return console.warn(`Provided container id "${c}" is not in the DOM`);const b=g.style.height;let v;if(b&&(y.height=y.style.height=b),(0,u.nr)()){console.log("Safari detected"),g.appendChild(y);const t=y.contentDocument;t.open(),t.write(h),v=new Promise((e=>{t.addEventListener("DOMContentLoaded",(function r(){t.removeEventListener("DOMContentLoaded",r),e()}))})),t.close()}else y.srcdoc=h,g.appendChild(y),v=new Promise((t=>y.onload=t));await v,y.style.opacity="1",this.iframe=y,this.iframeContainer=g,this.appConfig.isIframe=!0,this.appConfig.iframe=y}async boot(t={},e={}){return t.isIframe=!1,this.destroy(),await this.configure(t,e),await this.load(),await this.setConfig(),await this.start(),this.startMessaging(),this}startMessaging(){this.dynamicallyChangeIframeDimensions(),this.dispatchParentBoundingBoxOnScroll()}navigateTo(t){this.dispatch("navigateTo",t)}dispatchParentBoundingBoxOnScroll(){if(!this.iframe)return;const t=()=>this.dispatchParentBoundingBox();window.addEventListener("scroll",t),this.removeScrollListener=()=>window.removeEventListener("scroll",t)}dispatchParentBoundingBox(){const t=this.getBoundingBoxes();this.dispatch("bounds",{bounds:t})}getBoundingBoxes(){const t=this.iframe,e=this.headerHeight,r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{visibleArea:{bottom:r.bottom,height:r.height,left:r.left,right:r.right,top:r.top,width:r.width,x:r.x,y:r.y,windowInnerHeight:window.innerHeight},sportIframe:{bottom:o.bottom,height:o.height,left:o.left,right:o.right,top:o.top,width:o.width,x:o.x,y:o.y},headerHeight:e}}dynamicallyChangeIframeDimensions(){this.iframe&&this.addEventListener("changeDimensions",(t=>{t.sender&&(this.setIframeHeightWithLimit(t.data),this.dispatchParentBoundingBox())}))}setupIframeHeightAsNum(){const t=this.iframeConfig.height;if(!t)return;if("number"==typeof t)return this.iframeHeightAsNum=t;const e=`${t}`.match(/^[0-9]+/);this.iframeHeightAsNum=e&&+e[0]}setupMobileIframeHeight(){var t;if("Mobile"===(null===(t=this.bootConfig)||void 0===t?void 0:t.name)&&this.iframeConfig&&!this.iframeConfig.hasOwnProperty("height")){var e;const t=null===(e=this.iframe)||void 0===e?void 0:e.offsetTop;return window.innerHeight-t}}setIframeHeightWithLimit(t){const e=t.height,r=this.iframeHeightAsNum;let o=r>e?r:e;o=this.setupMobileIframeHeight()||o,this.setIframeHeight({height:o})}setIframeHeight(t){const e=this.iframe,r=t.height;+r&&(e.height=r+"px")}changeColors(t){this.dispatchColorsChange.apply(this,arguments)}dispatchColorsChange(t){this.dispatch("changeColors",{colors:t})}async setup(t,e){await this.configure(t,e),await this.load(),await this.setConfig()}async configure(t,e,r={}){return this.appConfig=t,this.iframeConfig=r,(t=>{if("Mobile"===t.appViewName){let e=t.target;const r=`\n \n ${m(1,44)}\n ${m(1,46)}\n ${m(1,41)}\n ${m(1,29)}\n ${m(3,111)}\n `;e.innerHTML=r}})(this.appConfig),this.initBootConfig(e),await v.initSettings(this.appConfig,this.bootConfig),await this.initAppBootableConfig(),this.finalizeAppConfig(),this.appBootableConfig}async load(){return await this.loader.load(this.appBootableConfig),this}start(){return this.starter.start(this)}setConfig(){return this.starter.setConfig(this)}init(t){this.initDependencies(),this.initProps(t)}initDependencies(){this.configExtractor=new d,this.loader=new h,this.starter=new y}finalizeAppConfig(){const t=this.appConfig,{version:e,urlWithVersion:r}=this.configExtractor;Object.assign(t,{publicPath:`${r}/`,version:e})}async initAppBootableConfig(){this.appBootableConfig=await this.configExtractor.extract(this.appConfig,this.bootConfig)}initBootConfig(t={}){if(!t.name)throw new Error('Please provide application `name`, { name: "" }');this.bootConfig=t}objToWindowOptions(t){return JSON.stringify(t).replace(/["{}]/g,"").replace(/:/g,"=")}addEventListener(t,e){return this.starter.addEventListener(t,e),this}removeEventListener(t,e){return this.starter.removeEventListener(t,e),this}dispatch(t,e){return this.starter.dispatchEvent(t,e),this}destroy(){var t,r;e.resolved=!1,this.removeScrollListener(),this.initProps(),this.loader.destroy(),this.starter.destroy(),this.configExtractor.destroy(),this.iframe&&this.iframe.remove(),this.iframe=null,null===(t=(r=this.socket).close)||void 0===t||t.call(r)}static async bootWebComponent(t,e){let r=document.getElementById(t.containerId);!r&&t.target&&(t.target instanceof HTMLElement?r=t.target:(t.containerId=t.target.replace("#",""),r=document.getElementById(t.containerId)));const o=`sport-${(0,u.kW)(e.name)}`,n=(0,u.W7)();window.spShadow.config[n]={appConfig:t,hash:n,tagName:o};let i=window.spShadow.config[n];window.spShadow.hashId=n,customElements.get(o)||customElements.define(o,class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.createElement("div");let e=window.spShadow.config[window.spShadow.hashId];t.id=e.tagName,this.shadowRoot.append(t),e.appConfig.shadowRoot=this.shadowRoot,e.appConfig.containerId=null,e.appConfig.target=t}});let a=document.createElement(o);t={...i.appConfig,webComponent:a},r&&r.append(a),this.validateBootConfig(e),await v.initSettings(t,e);const s=await this.getCustomBootFunction(t,e);if(s)return s(t,{...e,method:"bootWebComponent"}).then((t=>(t.configExtractor.links.forEach((e=>{t.appConfig.shadowRoot.prepend(e),t.appConfig.modalRoot&&(t.appConfig.modalRoot.shadowRoot.prepend(e.cloneNode(!0)),t.appConfig.betslipRoot.shadowRoot.prepend(e.cloneNode(!0)))})),t)));const l=await v.bootWebComponentBase(t,e);return l.configExtractor.links.forEach((e=>{t.shadowRoot.prepend(e),t.isLandingWidgets&&Object.values(i.appConfig.projects).forEach((({shadowRoot:t})=>{t.prepend(e.cloneNode(!0))})),t.modalRoot&&(t.modalRoot.shadowRoot.prepend(e.cloneNode(!0)),t.betslipRoot.shadowRoot.prepend(e.cloneNode(!0)))})),l}static async bootLandingWidgets(t){return b(v,t)}static async bootMaintenance(e,r){var o,n;if(null===(o=e.globalSettings)||void 0===o||null===(n=o.publicApis)||void 0===n||!n.HealthCheckUrlSocket)return;const i=e.sportPartner?`&systemRID=${e.sportPartner}`:"",a=`${e.globalSettings.publicApis.HealthCheckUrlSocket}${i}`;r.socket=new WebSocket(a),r.socket.onmessage=async function(o){if("false"!==o.data){const o=document.getElementById("jackpotHiddenContainer");setTimeout((()=>{o&&o.remove()}),100),null==r||r.destroy();let n=document.getElementById(e.containerId);if(this.maintenanceIframe&&n)n.appendChild(this.maintenanceIframe);else{const r=`${e.server}${t.B0}`;this.maintenanceIframe=await v.bootMaintenanceIFrame(e,r),e.target.remove()}}else this.maintenanceIframe&&(this.maintenanceIframe.remove(),this.maintenanceIframe=null,location.reload());return this.maintenanceIframe},r.socket.onerror=function(t){console.log(t)}}static async bootMaintenanceIFrame(t,e){var r,o;const n={width:"100%",height:"1000px",frameborder:"0",allowfullscreen:"",allow:"autoplay",scrolling:"no",src:e},i=document.createElement("iframe"),a=Object.assign({},n);Object.entries(a).forEach((([t,e])=>i.setAttribute(t,e))),Object.assign(i.style,{display:"block",width:0,opacity:0,margin:0,"min-height":"","min-width":"100%"}),null!==(r=t.target)&&void 0!==r&&null!==(o=r.style)&&void 0!==o&&o.height&&(t.target.style.height=0);const s=document.getElementById(t.containerId)||t.shadowRoot||document.createElement("div");return s?(s.appendChild(i),i.style.opacity="1",i):console.warn(`Provided container id "${t.containerId}" is not in the DOM`)}});const w=v})(),o.default})()));