/*! For license information please see dkDataLayer.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("dkDataLayer",[],t):"object"==typeof exports?exports.dkDataLayer=t():e.dkDataLayer=t()}(self,(function(){return(()=>{var e={986:()=>{},7091:()=>{},1711:()=>{},544:()=>{},9932:()=>{},9558:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConnectionNames:()=>c});var r=n(544),o={};for(const e in r)["default","ConnectionNames"].indexOf(e)<0&&(o[e]=()=>r[e]);n.d(t,o);var i=n(4512);o={};for(const e in i)["default","ConnectionNames"].indexOf(e)<0&&(o[e]=()=>i[e]);n.d(t,o);var s=n(8063);o={};for(const e in s)["default","ConnectionNames"].indexOf(e)<0&&(o[e]=()=>s[e]);n.d(t,o);var a=n(9932);o={};for(const e in a)["default","ConnectionNames"].indexOf(e)<0&&(o[e]=()=>a[e]);n.d(t,o);var c,u=n(6631);o={};for(const e in u)["default","ConnectionNames"].indexOf(e)<0&&(o[e]=()=>u[e]);n.d(t,o),function(e){e.sports="SportsbookConnection",e.stadium="StadiumConnection",e.clank="ClankConnection",e.sherpa="SherpaConnection"}(c||(c={}))},6631:()=>{},4043:()=>{},6060:()=>{},668:()=>{},8843:()=>{},4512:(e,t,n)=>{"use strict";n.r(t);var r=n(4043),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(6060);o={};for(const e in i)"default"!==e&&(o[e]=()=>i[e]);n.d(t,o);var s=n(668);o={};for(const e in s)"default"!==e&&(o[e]=()=>s[e]);n.d(t,o);var a=n(8843);o={};for(const e in a)"default"!==e&&(o[e]=()=>a[e]);n.d(t,o)},8063:()=>{},1574:(e,t,n)=>{"use strict";n.r(t);var r=n(9558),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o)},967:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SupportedMessageFormats:()=>s.d,ClearConnectionResults:()=>a.e});var r=n(1574),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);var i=n(1711);o={};for(const e in i)"default"!==e&&(o[e]=()=>i[e]);n.d(t,o);var s=n(5718),a=n(5760),c=n(4945);o={};for(const e in c)["default","SupportedMessageFormats","ClearConnectionResults"].indexOf(e)<0&&(o[e]=()=>c[e]);n.d(t,o);var u=n(9890);o={};for(const e in u)["default","SupportedMessageFormats","ClearConnectionResults"].indexOf(e)<0&&(o[e]=()=>u[e]);n.d(t,o);var l=n(986);o={};for(const e in l)["default","SupportedMessageFormats","ClearConnectionResults"].indexOf(e)<0&&(o[e]=()=>l[e]);n.d(t,o);var p=n(7091);o={};for(const e in p)["default","SupportedMessageFormats","ClearConnectionResults"].indexOf(e)<0&&(o[e]=()=>p[e]);n.d(t,o);var f=n(1209);o={};for(const e in f)["default","SupportedMessageFormats","ClearConnectionResults"].indexOf(e)<0&&(o[e]=()=>f[e]);n.d(t,o)},5718:(e,t,n)=>{"use strict";var r;n.d(t,{d:()=>r}),function(e){e["jsonrpc2.0"]="jsonrpc2.0"}(r||(r={}))},5760:(e,t,n)=>{"use strict";var r;n.d(t,{e:()=>r}),function(e){e.RemovedConnection="RemovedConnection",e.QueryNotFound="QueryNotFound"}(r||(r={}))},9890:()=>{},1209:()=>{},4945:()=>{},1924:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),o=n(210),i=n(7771),s=n(4453),a=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(c,a),l=n(4429),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=u(r,c,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(r,a,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},7171:e=>{"use strict";function t(e){return(t="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})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=function(){function e(t){n(this,e),this._listeners=[],this._mute=!1,this._accumulate=!1,this._accumulatedEvents=[],this._name=t||"",this._onListenerAdded=null,this._onFirstListenerAdded=null,this._onListenerRemoved=null,this._onLastListenerRemoved=null}return o(e,[{key:"addListener",value:function(e,t){this._pushListener(e,t,!1)}},{key:"addOnceListener",value:function(e,t){this._pushListener(e,t,!0)}},{key:"removeListener",value:function(e,t){this._ensureListener(e);var n=this._indexOfListener(e,t);0<=n&&this._spliceListener(n)}},{key:"removeAllListeners",value:function(){for(;this.hasListeners();)this._spliceListener(0)}},{key:"hasListener",value:function(e,t){return this._ensureListener(e),0<=this._indexOfListener(e,t)}},{key:"hasListeners",value:function(){return 0<this._listeners.length}},{key:"dispatch",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._invokeListeners({args:t,async:!1})}},{key:"dispatchAsync",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._invokeListeners({args:t,async:!0})}},{key:"mute",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};this._mute=!0,t.accumulate?this._accumulate=!0:(this._accumulate=!1,this._accumulatedEvents=[])}},{key:"unmute",value:function(){this._mute=!1,this._accumulate&&(this._dispatchAccumulated(),this._accumulate=!1)}},{key:"_invokeListeners",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:{args:[],async:!1};this._mute?this._accumulate&&this._accumulatedEvents.push(n):this._listeners.slice().forEach((function(e){t._invokeListener(e,n),e.once&&t.removeListener(e.callback,e.context)}))}},{key:"_invokeListener",value:function(t,n){var r,o,i=t.callback instanceof e;n.async?i?(r=t.callback).dispatchAsync.apply(r,u(n.args)):setTimeout((function(){return t.callback.apply(t.context,n.args)}),0):i?(o=t.callback).dispatch.apply(o,u(n.args)):t.callback.apply(t.context,n.args)}},{key:"_ensureListener",value:function(t){if(!e.isValidListener(t))throw new Error("Channel "+this._name+": listener is not a function and not a Channel")}},{key:"_dispatchInnerAddEvents",value:function(){var e,t;this._onListenerAdded&&(e=this._onListenerAdded).dispatch.apply(e,arguments),this._onFirstListenerAdded&&1===this._listeners.length&&(t=this._onFirstListenerAdded).dispatch.apply(t,arguments)}},{key:"_dispatchInnerRemoveEvents",value:function(){var e,t;this._onListenerRemoved&&(e=this._onListenerRemoved).dispatch.apply(e,arguments),this._onLastListenerRemoved&&0===this._listeners.length&&(t=this._onLastListenerRemoved).dispatch.apply(t,arguments)}},{key:"_indexOfListener",value:function(t,n){for(var r=0;r<this._listeners.length;r++){var o=this._listeners[r],i=o.callback===t,s=t instanceof e,a=void 0===n&&void 0===o.context,c=n===o.context;if(i&&(s||a||c))return r}}},{key:"_dispatchAccumulated",value:function(){var e=this;this._accumulatedEvents.forEach((function(t){return e._invokeListeners(t)})),this._accumulatedEvents=[]}},{key:"_pushListener",value:function(e,t,n){this._ensureListener(e),this._checkForDuplicates(e,t),this._listeners.push({callback:e,context:t,once:n}),this._dispatchInnerAddEvents(e,t,n)}},{key:"_checkForDuplicates",value:function(e,t){if(this.hasListener(e,t))throw new Error("Channel "+this._name+": duplicating listeners")}},{key:"_spliceListener",value:function(e){var t=this._listeners[e],n=t.callback,r=t.context,o=t.once;this._listeners.splice(e,1),this._dispatchInnerRemoveEvents(n,r,o)}},{key:"onListenerAdded",get:function(){return this._onListenerAdded||(this._onListenerAdded=new e("".concat(this._name,":onListenerAdded"))),this._onListenerAdded}},{key:"onFirstListenerAdded",get:function(){return this._onFirstListenerAdded||(this._onFirstListenerAdded=new e("".concat(this._name,":onFirstListenerAdded"))),this._onFirstListenerAdded}},{key:"onListenerRemoved",get:function(){return this._onListenerRemoved||(this._onListenerRemoved=new e("".concat(this._name,":onListenerRemoved"))),this._onListenerRemoved}},{key:"onLastListenerRemoved",get:function(){return this._onLastListenerRemoved||(this._onLastListenerRemoved=new e("".concat(this._name,":onLastListenerRemoved"))),this._onLastListenerRemoved}}],[{key:"isValidListener",value:function(t){return"function"==typeof t||t instanceof e}}]),e}(),f=function(){function e(){n(this,e),this._channels=new Map}return o(e,[{key:"addListener",value:function(e,t,n){this._getChannel(e).addListener(t,n)}},{key:"on",value:function(e,t,n){this.addListener(e,t,n)}},{key:"addOnceListener",value:function(e,t,n){this._getChannel(e).addOnceListener(t,n)}},{key:"once",value:function(e,t,n){this.addOnceListener(e,t,n)}},{key:"removeListener",value:function(e,t,n){this._getChannel(e).removeListener(t,n)}},{key:"off",value:function(e,t,n){this.removeListener(e,t,n)}},{key:"hasListener",value:function(e,t,n){return this._getChannel(e).hasListener(t,n)}},{key:"has",value:function(e,t,n){return this.hasListener(e,t,n)}},{key:"hasListeners",value:function(e){return this._getChannel(e).hasListeners()}},{key:"dispatch",value:function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this._getChannel(e)).dispatch.apply(t,r)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.dispatch.apply(this,[e].concat(n))}},{key:"_getChannel",value:function(e){return this._channels.has(e)||this._channels.set(e,new p(e)),this._channels.get(e)}}]),e}(),h=function(){function e(t){n(this,e),this._params=t,this._isOn=!1,this._assertParams()}return o(e,[{key:"on",value:function(){if(!this._isOn){var e=this._params.channel,t=e.addListener||e.addEventListener||e.on;this._applyMethod(t),this._isOn=!0}}},{key:"off",value:function(){if(this._isOn){var e=this._params.channel,t=e.removeListener||e.removeEventListener||e.off;this._applyMethod(t),this._isOn=!1}}},{key:"_applyMethod",value:function(e){var t=this._params,n=t.channel,r=t.event,o=t.listener,i=r?[r,o]:[o];e.apply(n,i)}},{key:"_assertParams",value:function(){var e=this._params,n=e.channel,r=e.event,o=e.listener;if(!n||"object"!==t(n))throw new Error("Channel should be object");if(r&&"string"!=typeof r)throw new Error("Event should be string");if(!o||!p.isValidListener(o))throw new Error("Listener should be function or Channel")}}]),e}(),d=function(){function e(t){n(this,e),this._items=t.map((function(e){return new h(e)}))}return o(e,[{key:"on",value:function(){return this._items.forEach((function(e){return e.on()})),this}},{key:"off",value:function(){return this._items.forEach((function(e){return e.off()})),this}}]),e}(),y=function(){i(t,d);var e=c(t);function t(r,o){var i;return n(this,t),(i=e.call(this,o))._overrideComponentCallback(r,"componentDidMount","on"),i._overrideComponentCallback(r,"componentWillUnmount","off"),i}return o(t,[{key:"_overrideComponentCallback",value:function(e,t,n){var r=this,o=e[t];e[t]=function(){if(r[n](),"function"==typeof o){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return o.apply(e,i)}}}}]),t}(),m=p;m.EventEmitter=f,m.Subscription=d,m.ReactSubscription=y,e.exports=m},4020:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var c=s[a];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},2296:(e,t,n)=>{"use strict";var r=n(4429),o=n(3464),i=n(4453),s=n(7296);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],p=!!s&&s(e,t);if(r)r(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===a&&p?p.enumerable:!a,value:n,writable:null===c&&p?p.writable:!c});else{if(!l&&(a||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4289:(e,t,n)=>{"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=n(2296),c=n(1044)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;c?a(e,t,n,!0):a(e,t,n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;a<i.length;a+=1)u(e,i[a],t[i[a]],n[i[a]])};l.supportsDescriptors=!!c,e.exports=l},4831:(e,t,n)=>{"use strict";var r=n(4453),o=n(9036),i=n(509),s=n(1203),a=n(9917),c=n(9660),u=n(768),l=n(9502),p=n(9369);e.exports=function(e,t,n){if("Object"!==p(e))throw new r("Assertion failed: Type(O) is not Object");if(!c(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=o(n)?n:l(n);if(!o(f))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return i(a,u,s,e,t,f)}},1203:(e,t,n)=>{"use strict";var r=n(4453),o=n(9036),i=n(3005);e.exports=function(e){if(void 0!==e&&!o(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return i(e)}},4439:(e,t,n)=>{"use strict";e.exports=n(5320)},4186:(e,t,n)=>{"use strict";var r=n(8769)("%Reflect.construct%",!0),o=n(4831);try{o({},"",{"[[Get]]":function(){}})}catch(e){o=null}if(o&&r){var i={},s={};o(s,"length",{"[[Get]]":function(){throw i},"[[Enumerable]]":!0}),e.exports=function(e){try{r(e,s)}catch(e){return e===i}}}else e.exports=function(e){return"function"==typeof e&&!!e.prototype}},9917:(e,t,n)=>{"use strict";var r=n(4453),o=n(8824),i=n(9036);e.exports=function(e){if(void 0===e)return!1;if(!i(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return!(!o(e,"[[Value]]")&&!o(e,"[[Writable]]"))}},9660:e=>{"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},8946:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=n(3464),s=r("%Promise.resolve%",!0),a=s&&o(s);e.exports=function(e,t){if(!a)throw new i("This environment does not support Promises.");return a(e,t)}},768:(e,t,n)=>{"use strict";var r=n(1214);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},1341:(e,t,n)=>{"use strict";var r=n(210)("%Symbol.species%",!0),o=n(4453),i=n(4186),s=n(9369);e.exports=function(e,t){if("Object"!==s(e))throw new o("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==s(n))throw new o("O.constructor is not an Object");var a=r?n[r]:void 0;if(null==a)return t;if(i(a))return a;throw new o("no constructor found")}},6891:e=>{"use strict";e.exports=function(e){return!!e}},9502:(e,t,n)=>{"use strict";var r=n(8824),o=n(4453),i=n(9369),s=n(6891),a=n(4439);e.exports=function(e){if("Object"!==i(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=s(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=s(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=s(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!a(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var c=e.set;if(void 0!==c&&!a(c))throw new o("setter must be a function");t["[[Set]]"]=c}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},9369:(e,t,n)=>{"use strict";var r=n(1276);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},1276:e=>{"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},8769:(e,t,n)=>{"use strict";e.exports=n(210)},509:(e,t,n)=>{"use strict";var r=n(1044),o=n(4429),i=r.hasArrayLengthDefineBug(),s=i&&n(7097),a=n(1924)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,r,c,u){if(!o){if(!e(u))return!1;if(!u["[[Configurable]]"]||!u["[[Writable]]"])return!1;if(c in r&&a(r,c)!==!!u["[[Enumerable]]"])return!1;var l=u["[[Value]]"];return r[c]=l,t(r[c],l)}return i&&"length"===c&&"[[Value]]"in u&&s(r)&&r.length!==u["[[Value]]"]?(r.length=u["[[Value]]"],r.length===u["[[Value]]"]):(o(r,c,n(u)),!0)}},7097:(e,t,n)=>{"use strict";var r=n(210)("%Array%"),o=!r.isArray&&n(1924)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},3005:e=>{"use strict";e.exports=function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}},1214:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},9036:(e,t,n)=>{"use strict";var r=n(4453),o=n(8824),i={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};e.exports=function(e){if(!e||"object"!=typeof e)return!1;for(var t in e)if(o(e,t)&&!i[t])return!1;var n=o(e,"[[Value]]")||o(e,"[[Writable]]"),s=o(e,"[[Get]]")||o(e,"[[Set]]");if(n&&s)throw new r("Property Descriptors may not be both accessor and data descriptors");return!0}},4429:(e,t,n)=>{"use strict";var r=n(210)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},3981:e=>{"use strict";e.exports=EvalError},1648:e=>{"use strict";e.exports=Error},4726:e=>{"use strict";e.exports=RangeError},6712:e=>{"use strict";e.exports=ReferenceError},3464:e=>{"use strict";e.exports=SyntaxError},4453:e=>{"use strict";e.exports=TypeError},3915:e=>{"use strict";e.exports=URIError},2806:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var s=r[i],a=e[s];(o?-1!==t.indexOf(s):t(s,a,e))&&(n[s]=a)}return n}},7648:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e,t){for(var n=[],r=1,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments),a=n(0,o.length-s.length),c=[],u=0;u<a;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=",");return n}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},8612:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},5972:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},210:(e,t,n)=>{"use strict";var r,o=n(1648),i=n(3981),s=n(4726),a=n(6712),c=n(3464),u=n(4453),l=n(3915),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var d=function(){throw new u},y=h?function(){try{return d}catch(e){try{return h(arguments,"callee").get}catch(e){return d}}}():d,m=n(1405)(),v=n(8185)(),g=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&g?g(Uint8Array):r,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&g?g([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&g?g(g([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&g?g((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&g?g((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&g?g(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":y,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(g)try{null.error}catch(e){var S=g(g(e));_["%Error.prototype%"]=S}var x=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&g&&(n=g(o.prototype))}return _[t]=n,n},k={__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"]},A=n(8612),O=n(8824),E=A.call(Function.call,Array.prototype.concat),j=A.call(Function.apply,Array.prototype.splice),C=A.call(Function.call,String.prototype.replace),U=A.call(Function.call,String.prototype.slice),I=A.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,R=function(e,t){var n,r=e;if(O(k,r)&&(r="%"+(n=k[r])[0]+"%"),O(_,r)){var o=_[r];if(o===b&&(o=x(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=U(e,0,1),n=U(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,P,(function(e,t,n,o){r[r.length]=n?C(o,L,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(r=l[0],j(n,E([0,1],l)));for(var p=1,f=!0;p<n.length;p+=1){var d=n[p],y=U(d,0,1),m=U(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&f||(a=!0),O(_,i="%"+(r+="."+d)+"%"))s=_[i];else if(null!=s){if(!(d in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&p+1>=n.length){var v=h(s,d);s=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[d]}else f=O(s,d),s=s[d];f&&!a&&(_[i]=s)}}return s}},7296:(e,t,n)=>{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1044:(e,t,n)=>{"use strict";var r=n(4429),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8185:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},8824:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(8612);e.exports=i.call(r,o)},5320:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},a=function(e){try{return!s(e)&&(r.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;c.call(f)===c.call(document.all)&&(p=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!s(e)&&a(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return a(e);if(s(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}},8987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=n(1414),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=s(e),a=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=u&&n;if(a&&e.length>0&&!o.call(e,0))for(var y=0;y<e.length;++y)f.push(String(y));if(r&&e.length>0)for(var m=0;m<e.length;++m)f.push(String(m));else for(var v in e)d&&"prototype"===v||!o.call(e,v)||f.push(String(v));if(c)for(var g=function(e){if("undefined"==typeof window||!h)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<l.length;++b)g&&"constructor"===l[b]||!o.call(e,l[b])||f.push(l[b]);return f}}e.exports=r},2215:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,s=i?function(e){return i(e)}:n(8987),a=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?a(r.call(e)):a(e)})}else Object.keys=s;return Object.keys||s},e.exports=s},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},4231:e=>{e.exports={timeout:0,timeoutReason:"Promise rejected by PromiseController timeout {timeout} ms.",resetReason:"Promise rejected by PromiseController reset."}},4492:(e,t,n)=>{const r=n(4231),{isPromise:o,createErrorType:i,tryCall:s}=n(8189);class a{constructor(e){this._options=Object.assign({},r,e),this._resolve=null,this._reject=null,this._isPending=!1,this._isFulfilled=!1,this._isRejected=!1,this._value=void 0,this._promise=null,this._timer=null}get promise(){return this._promise}get value(){return this._value}get isPending(){return this._isPending}get isFulfilled(){return this._isFulfilled}get isRejected(){return this._isRejected}get isSettled(){return this._isFulfilled||this._isRejected}call(e){return this._isPending||(this.reset(),this._createPromise(),this._createTimer(),this._callFn(e)),this._promise}resolve(e){this._isPending&&(o(e)?this._tryAttachToPromise(e):(this._settle(e),this._isFulfilled=!0,this._resolve(e)))}reject(e){this._isPending&&(this._settle(e),this._isRejected=!0,this._reject(e))}reset(){if(this._isPending){const e=s(this._options.resetReason),t=new a.ResetError(e);this.reject(t)}this._promise=null,this._isPending=!1,this._isFulfilled=!1,this._isRejected=!1,this._value=void 0,this._clearTimer()}configure(e){Object.assign(this._options,e)}_createPromise(){this._promise=new Promise(((e,t)=>{this._isPending=!0,this._resolve=e,this._reject=t}))}_handleTimeout(){const e=s(this._options.timeoutReason),t="string"==typeof e?e.replace("{timeout}",this._options.timeout):"",n=new a.TimeoutError(t);this.reject(n)}_createTimer(){this._options.timeout&&(this._timer=setTimeout((()=>this._handleTimeout()),this._options.timeout))}_clearTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_settle(e){this._isPending=!1,this._value=e,this._clearTimer()}_callFn(e){if("function"==typeof e)try{const t=e();this._tryAttachToPromise(t)}catch(e){this.reject(e)}}_tryAttachToPromise(e){o(e)&&e.then((e=>this.resolve(e)),(e=>this.reject(e)))}}a.TimeoutError=i("TimeoutError"),a.ResetError=i("ResetError"),e.exports=a},8189:(e,t)=>{t.isPromise=function(e){return e&&"function"==typeof e.then},t.tryCall=function(e){return"function"==typeof e?e():e},t.createErrorType=function(e){function t(e){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}},8385:(e,t,n)=>{"use strict";n(7971)();var r=n(4453),o=n(8946),i=n(4439),s=n(1341),a=n(9369),c=n(8052),u=Promise;e.exports=c((function(e){var t=this;if("Object"!==a(t))throw new r("receiver is not an Object");var n=s(t,u),c=e,l=e;return i(e)&&(c=function(e,t){return function(n){var r=t();return o(e,r).then((function(){return n}))}}(n,e),l=function(e,t){return function(n){var r=t();return o(e,r).then((function(){throw n}))}}(n,e)),t.then(c,l)}),"finally",!0)},7628:(e,t,n)=>{"use strict";var r=n(5559),o=n(4289),i=n(8385),s=n(8076),a=n(3547),c=r(s());o(c,{getPolyfill:s,implementation:i,shim:a}),e.exports=c},8076:(e,t,n)=>{"use strict";var r=n(7971),o=n(8385);e.exports=function(){return r(),"function"==typeof Promise.prototype.finally?Promise.prototype.finally:o}},7971:e=>{"use strict";e.exports=function(){if("function"!=typeof Promise)throw new TypeError("`Promise.prototype.finally` requires a global `Promise` be available.")}},3547:(e,t,n)=>{"use strict";var r=n(7971),o=n(8076),i=n(4289);e.exports=function(){r();var e=o();return i(Promise.prototype,{finally:e},{finally:function(){return Promise.prototype.finally!==e}}),e}},7487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisedMap=void 0;var n=function(){function e(){this.map=new Map}return Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!1,configurable:!0}),e.prototype.set=function(e,t){var n=this.createMapItem(t);return this.map.set(e,n),n.promise},e.prototype.get=function(e){var t=this.map.get(e);return t&&t.data},e.prototype.has=function(e){return this.map.has(e)},e.prototype.delete=function(e){return this.map.delete(e)},e.prototype.resolve=function(e,t){var n=this.map.get(e);n&&(this.delete(e),n.resolve(t))},e.prototype.reject=function(e,t){var n=this.map.get(e);n&&(this.delete(e),n.reject(t))},e.prototype.resolveAll=function(e){this.map.forEach((function(t){return t.resolve(e)})),this.map.clear()},e.prototype.rejectAll=function(e){this.map.forEach((function(t){return t.reject(e)})),this.map.clear()},e.prototype.forEach=function(e){this.map.forEach((function(t,n,r){return e(t.data,n,r)}))},e.prototype.clear=function(){return this.map.clear()},e.prototype.createMapItem=function(e){var t={data:e};return t.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),t},e}();t.PromisedMap=n},7563:(e,t,n)=>{"use strict";const r=n(610),o=n(4020),i=n(500),s=n(2806),a=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?o(e):e}function p(e){return Array.isArray(e)?e.sort():"object"==typeof e?p(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function y(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&l(n,e).includes(e.arrayFormatSeparator);n=i?l(n,e):n;const s=o||i?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=s};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?l(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>l(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:l(s,t),n(l(e,t),s,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=d(n[e],t);else r[e]=d(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=p(n):e[t]=n,e}),Object.create(null))}t.extract=h,t.parse=y,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[",o,"]"].join("")]:[...n,[u(t,e),"[",u(o,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[]"].join("")]:[...n,[u(t,e),"[]=",u(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),":list="].join("")]:[...n,[u(t,e),":list=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[u(n,e),t,u(o,e)].join("")]:[[r,u(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,u(t,e)]:[...n,[u(t,e),"=",u(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?u(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?u(n,t)+"[]":o.reduce(r(n),[]).join("&"):u(n,t)+"="+u(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:y(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[a]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let c=t.stringify(s,n);c&&(c=`?${c}`);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l=`#${n[a]?u(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${c}${l}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[a]:!1},r);const{url:o,query:i,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:s(i,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},7771:(e,t,n)=>{"use strict";var r=n(210),o=n(2296),i=n(1044)(),s=n(7296),a=n(4453),c=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&s){var l=s(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(u=!1)}return(r||u||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},8052:(e,t,n)=>{"use strict";var r=n(2296),o=n(1044)(),i=n(5972).functionsHaveConfigurableNames(),s=n(4453);e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!i||(o?r(e,"name",t,!0,!0):r(e,"name",t)),e}},500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},5937:(e,t,n)=>{const r=n(7171),o=n(4492),{PromisedMap:i}=n(7487),s=n(3183),a=n(1237),{throwIf:c,isPromise:u}=n(8094);e.exports=class{constructor(e,t){this._assertOptions(t),this._url=e,this._options=Object.assign({},a,t),this._requests=new s,this._promisedMap=new i,this._ws=null,this._wsSubscription=null,this._createOpeningController(),this._createClosingController(),this._createChannels()}get ws(){return this._ws}get url(){return this._url}get isOpening(){return Boolean(this._ws&&0===this._ws.readyState)}get isOpened(){return Boolean(this._ws&&1===this._ws.readyState)}get isClosing(){return Boolean(this._ws&&2===this._ws.readyState)}get isClosed(){return Boolean(!this._ws||3===this._ws.readyState)}get onOpen(){return this._onOpen}get onSend(){return this._onSend}get onMessage(){return this._onMessage}get onUnpackedMessage(){return this._onUnpackedMessage}get onResponse(){return this._onResponse}get onClose(){return this._onClose}get onError(){return this._onError}open(){return this.isClosing?Promise.reject(new Error("Can't open WebSocket while closing.")):this.isOpened?this._opening.promise:this._opening.call((()=>{this._opening.promise.catch((e=>this._cleanup(e))),this._createWS()}))}sendRequest(e,t={}){const n=t.requestId||`${Math.random()}`,r=void 0!==t.timeout?t.timeout:this._options.timeout;return this._requests.create(n,(()=>{this._assertRequestIdHandlers();const t=this._options.attachRequestId(e,n);this.sendPacked(t)}),r)}sendPacked(e){this._assertPackingHandlers();const t=this._options.packMessage(e);this.send(t)}send(e){c(!this.isOpened,"Can't send data because WebSocket is not opened."),this._ws.send(e),this._onSend.dispatchAsync(e)}waitUnpackedMessage(e,t={}){return c("function"!=typeof e,"Predicate must be a function, got "+typeof e),t.timeout&&setTimeout((()=>{if(this._promisedMap.has(e)){const n=t.timeoutError||new Error("Timeout");this._promisedMap.reject(e,n)}}),t.timeout),this._promisedMap.set(e)}close(e,t){return this.isClosed?Promise.resolve(this._closing.value):this._closing.call((()=>this._ws.close(e,t)))}removeAllListeners(){this._onOpen.removeAllListeners(),this._onMessage.removeAllListeners(),this._onUnpackedMessage.removeAllListeners(),this._onResponse.removeAllListeners(),this._onSend.removeAllListeners(),this._onClose.removeAllListeners(),this._onError.removeAllListeners()}_createOpeningController(){const e=this._options.connectionTimeout||this._options.timeout;this._opening=new o({timeout:e,timeoutReason:`Can't open WebSocket within allowed timeout: ${e} ms.`})}_createClosingController(){const e=this._options.timeout;this._closing=new o({timeout:e,timeoutReason:`Can't close WebSocket within allowed timeout: ${e} ms.`})}_createChannels(){this._onOpen=new r,this._onMessage=new r,this._onUnpackedMessage=new r,this._onResponse=new r,this._onSend=new r,this._onClose=new r,this._onError=new r}_createWS(){this._ws=this._options.createWebSocket(this._url),this._wsSubscription=new r.Subscription([{channel:this._ws,event:"open",listener:e=>this._handleOpen(e)},{channel:this._ws,event:"message",listener:e=>this._handleMessage(e)},{channel:this._ws,event:"error",listener:e=>this._handleError(e)},{channel:this._ws,event:"close",listener:e=>this._handleClose(e)}]).on()}_handleOpen(e){this._onOpen.dispatchAsync(e),this._opening.resolve(e)}_handleMessage(e){const t=this._options.extractMessageData(e);this._onMessage.dispatchAsync(t),this._tryUnpack(t)}_tryUnpack(e){this._options.unpackMessage&&(e=this._options.unpackMessage(e),u(e)?e.then((e=>this._handleUnpackedData(e))):this._handleUnpackedData(e))}_handleUnpackedData(e){void 0!==e&&(this._onUnpackedMessage.dispatchAsync(e),this._tryHandleResponse(e)),this._tryHandleWaitingMessage(e)}_tryHandleResponse(e){if(this._options.extractRequestId){const t=this._options.extractRequestId(e);t&&(this._onResponse.dispatchAsync(e,t),this._requests.resolve(t,e))}}_tryHandleWaitingMessage(e){this._promisedMap.forEach(((t,n)=>{let r=!1;try{r=n(e)}catch(e){return void this._promisedMap.reject(n,e)}r&&this._promisedMap.resolve(n,e)}))}_handleError(e){this._onError.dispatchAsync(e)}_handleClose(e){this._onClose.dispatchAsync(e),this._closing.resolve(e);const t=new Error(`WebSocket closed with reason: ${e.reason} (${e.code}).`);this._opening.isPending&&this._opening.reject(t),this._cleanup(t)}_cleanupWS(){this._wsSubscription&&(this._wsSubscription.off(),this._wsSubscription=null),this._ws=null}_cleanup(e){this._cleanupWS(),this._requests.rejectAll(e)}_assertOptions(e){Object.keys(e||{}).forEach((e=>{if(!a.hasOwnProperty(e))throw new Error(`Unknown option: ${e}`)}))}_assertPackingHandlers(){const{packMessage:e,unpackMessage:t}=this._options;c(!e||!t,"Please define 'options.packMessage / options.unpackMessage' for sending packed messages.")}_assertRequestIdHandlers(){const{attachRequestId:e,extractRequestId:t}=this._options;c(!e||!t,"Please define 'options.attachRequestId / options.extractRequestId' for sending requests.")}}},1237:e=>{e.exports={createWebSocket:e=>new WebSocket(e),packMessage:null,unpackMessage:null,attachRequestId:null,extractRequestId:null,extractMessageData:e=>e.data,timeout:0,connectionTimeout:0}},3183:(e,t,n)=>{const r=n(4492),o=n(7628);e.exports=class{constructor(){this._items=new Map}create(e,t,n){return this._rejectExistingRequest(e),this._createNewRequest(e,t,n)}resolve(e,t){e&&this._items.has(e)&&this._items.get(e).resolve(t)}rejectAll(e){this._items.forEach((t=>t.isPending?t.reject(e):null))}_rejectExistingRequest(e){const t=this._items.get(e);t&&t.isPending&&t.reject(new Error(`WebSocket request is replaced, id: ${e}`))}_createNewRequest(e,t,n){const i=new r({timeout:n,timeoutReason:`WebSocket request was rejected by timeout (${n} ms). RequestId: ${e}`});return this._items.set(e,i),o(i.call(t),(()=>this._deleteRequest(e,i)))}_deleteRequest(e,t){this._items.get(e)===t&&this._items.delete(e)}}},8094:(e,t)=>{t.throwIf=(e,t)=>{if(e)throw new Error(t)},t.isPromise=e=>e&&"function"==typeof e.then}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Clank:()=>Jt,ContractTypes:()=>e,Sherpa:()=>Kt,SportMarkets:()=>Mt,SportsEmptySubscriber:()=>st,SportsEvent:()=>qt,SportsEventGroup:()=>Dt,SportsEventOffers:()=>Bt,SportsMarketOffers:()=>Gt,SportsbookEvent:()=>$t,SportsbookLeague:()=>Wt,SportsbookMarkets:()=>zt,Stadium:()=>Ht,init:()=>Xe});var e=n(967);const t={config:{inactiveTTL_MS:1e4,connections:{},urls:{},requestToken:()=>Promise.resolve("default-token"),onTokenRenew:()=>()=>{},siteName:"dk-sandbox",tracking:{[e.ConnectionNames.sports]:{trackError:()=>{},trackData:()=>{}}}}},o={NoConnectionsAvailable:"No connection class was found, did you initialize the data layer?",ReachedTimeLimitForOpeningConnection:"Reched the time limit for openning a connection",NoMessageBus:"Wrong configuration! Please provide the message bus",NoConnectionUrls:"Wrong configuration! Please provide connection URLs",MaxNumberOfRetriesExceeded:"A request was not send due to missing authorization, or network down in the allotted time limit",SameMessageAlreadyPending:"Same request is already pending. Message won't be repeated",EmptyResponse:"Empty or unreadable response",InvalidBaseUrl:"Invalid base URL",NoChannel:"Channel was not found",NoChannelMappingForConnection:"Connection does not have channel mapping",SDQRequestFormatRequiresActiveQuery:"SDQRequestFormatRequiresActiveQuery",NoDeviceType:"No device type detected, did you pass it to the data layer?",BadGateway:"Bad Gateway"},i="jsonrpc2.0";function s(e){t.config.connections.jwt=e}var a=n(5937),c=n.n(a),u=n(7563),l=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};class p{constructor(e){this.open=e=>{this.handlers.open(e)},this.close=e=>{this.handlers.close(e)},this.error=e=>{this.handlers.error(e)},this.message=e=>{this.handlers.message(this.handlers.responseFormatter(e))},this.url=e.url,this.handlers=e.handlers}isConnected(){if(void 0===this.socket)return Promise.resolve(!1);const e=Date.now(),t=this.socket,n=this.handlers;return new Promise(((r,i)=>function s(){return t.isClosing||t.isClosed?r(!1):t.isOpened?r(!0):void setTimeout((function(){if(Date.now()-e>5e3)return n.close({code:4001}),i(o.ReachedTimeLimitForOpeningConnection);s()}),50)}()))}isConnectedSync(){var e;return Boolean(null===(e=this.socket)||void 0===e?void 0:e.isOpened)}deactivate(){var e,t;return l(this,void 0,void 0,(function*(){return yield null===(e=this.socket)||void 0===e?void 0:e.close(),null===(t=this.socket)||void 0===t||t.removeAllListeners(),this.socket=void 0,yield this.isConnected()}))}send(e){var t;return null===(t=this.socket)||void 0===t?void 0:t.send(this.handlers.requestFormatter(e))}connect(e=this.url){return l(this,void 0,void 0,(function*(){if(!1===this.validateUrl(e))return this.handlers.close({code:4e3}),Promise.resolve(!1);if(this.socket&&this.diffUrl(e)&&(yield this.deactivate()),void 0===this.socket){const t=this.composeWebsocketUrl(e);this.socket=this.constructWS(t),this.url={baseUrl:e.baseUrl,queryParams:Object.assign({},e.queryParams)}}return yield this.socket.open(),Promise.resolve(this)}))}composeWebsocketUrl(e){return`${e.baseUrl}${Object.keys(e.queryParams).length>0?"?":""}${(0,u.stringify)(e.queryParams)}`}diffUrl(e){return e.baseUrl!==this.url.baseUrl||Object.keys(e.queryParams).some((t=>e.queryParams[t]!==this.url.queryParams[t]))}constructWS(e){const t=new(c())(e,{unpackMessage:e=>({data:e})});return this.addListeners(t),t}addListeners(e){e.onOpen.addListener(this.open),e.onError.addListener(this.error),e.onClose.addListener(this.close),e.onUnpackedMessage.addListener(this.message)}updateToken(e){this.url.queryParams.jwt=e}validateUrl(e){return e.baseUrl.startsWith("wss://")}}const f=new Map;function h(e){"function"==typeof e.deactivate&&e.deactivate().catch(void 0)}const d={set:(e,t)=>(f.set(e,t),t),get:e=>f.get(e),getAll:()=>[...f.values()],has:e=>f.has(e),delete:e=>{const t=f.get(e);return void 0!==t&&h(t),f.delete(e)},clear:()=>{f.forEach(h),f.clear()}};window.addEventListener("beforeunload",(()=>{d.clear()}));const y=[!0,1e3],m=[!1,-1],v={1006:y,4e3:m,4001:[!0,5e3]};new Map([[1e3,["Normal Closure","Normal closure; the connection successfully completed whatever purpose for which it was created."]],[1001,["Going Away","The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection."]],[1002,["Protocol Error","The endpoint is terminating the connection due to a protocol error."]],[1003,["Unsupported Data","The connection is being terminated because the endpoint received data of a type it cannot accept (for example, a text-only endpoint received binary data)."]],[1004,["Reserved","Reserved. A meaning might be defined in the future."]],[1005,["No Status Received","Indicates that no status code was provided even though one was expected."]],[1006,["Abnormal Closure","Used to indicate that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected."]],[1007,["Invalid frame payload data","The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message)."]],[1008,["Policy Violation","The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable."]],[1009,["Message too big","The endpoint is terminating the connection because a data frame was received that is too large."]],[1010,["Missing Extension","The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't."]],[1011,["Internal Error","The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request."]],[1012,["Service Restart","The server is terminating the connection because it is restarting."]],[1013,["Try Again Later","The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients."]],[1014,["Bad Gateway","The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code."]],[1015,["TLS Handshake","Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified)."]],[4e3,["Insufficient params","Tried to init socket connection without mandatory parameters. These could include, different query string params such as jwt, locale, etc."]],[4001,["Connection timeout in 5000ms.","Could not establish socket connection within the specified time limit."]],[4002,["Connection inactive for 5000ms.","Connection was closed because it was not used for the last 5 seconds."]]]);const g=e=>{let t;return t=e instanceof Error?e.message:e instanceof Response?`${e.status} ${e.statusText}`:JSON.stringify(e),t};var b=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};let w,_=0;var S=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function x(e,t,n){return S(this,void 0,void 0,(function*(){if(t.getAllQueries().length>0){const r=t.getAllQueries(),o=yield e.connect(n);return function(e,t,n){n.forEach((n=>{const r=t.getQueryID(n),o=JSON.parse(n);Object.keys(o.params).length>0&&r&&e.send(o)}))}(e,t,r),o}return e.isConnected()}))}function k(n,r){return function(o){let i=[!1,-1];const s=d.get(n);return s&&(i=function(n,r,o){const[i,s]=function(e){return!1===window.navigator.onLine?m:void 0===v[e.code]?y:v[e.code]}(o);return i&&(clearTimeout(w),w=setTimeout((()=>b(this,void 0,void 0,(function*(){try{yield r(),_=0,t.config.tracking[e.ConnectionNames.sports].trackData({message:"Reconnection Success",clientAction:"RECONNECTION"})}catch(n){_+=1,t.config.tracking[e.ConnectionNames.sports].trackError({message:`Reconnection Failed with reason: ${g(n)}`,clientAction:"RECONNECTION_ERROR"})}}))),s+_*n)),[i,s]}(1e3,x.bind(void 0,s,r),o)),i}}function A(e){return function(t){return n=this,r=void 0,i=function*(){const n=yield t;return function(e,t){const n=e.getQueryByID(t);return n?e.getConnectionsForQuery(n):[]}(e,n.id).map((e=>(void 0!==n.error&&"function"==typeof e.onError?e.onError(n.error):void 0!==n.result&&e.onData(n.result),e)))},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{c(i.next(e))}catch(e){t(e)}}function a(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}c((i=i.apply(n,r||[])).next())}));var n,r,o,i}}const O={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let E;const j=new Uint8Array(16);function C(){if(!E&&(E="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!E))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return E(j)}const U=[];for(let e=0;e<256;++e)U.push((e+256).toString(16).slice(1));const I=function(e,t,n){if(O.randomUUID&&!t&&!e)return O.randomUUID();const r=(e=e||{}).random||(e.rng||C)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return U[e[t+0]]+U[e[t+1]]+U[e[t+2]]+U[e[t+3]]+"-"+U[e[t+4]]+U[e[t+5]]+"-"+U[e[t+6]]+U[e[t+7]]+"-"+U[e[t+8]]+U[e[t+9]]+"-"+U[e[t+10]]+U[e[t+11]]+U[e[t+12]]+U[e[t+13]]+U[e[t+14]]+U[e[t+15]]}(r)};var P=n(5760);const L=(e,t)=>e||t,R=new Map,N=new Map,T=new Map,F=new Map;function D(e){return"string"==typeof e?e:JSON.stringify(e)}const M={set:(e,t)=>{const n=D(e),r=M.getQueryForConnection(t);if(r){if(M.getConnectionsForQuery(r).length<=1){const e=L(R.get(r),"");R.delete(r),N.delete(e)}M.clearConnection(t)}if(!R.get(n)){const e=I();R.set(n,e),N.set(e,n)}const o=L(T.get(n),[]);o.push(t),T.set(n,o),F.set(t,n)},getConnectionsForQuery:e=>T.get(D(e))||[],getQueryForConnection:e=>F.get(e),getQueryID:e=>R.get(D(e)),getQueryByID:e=>N.get(e),getAllQueries:()=>[...R.keys()],getAllConnections:e=>[...F].filter((t=>!e||D(e)===t[1])).map((e=>e[0])),clearConnection:e=>{const t=F.get(e);if(!t)return P.e.QueryNotFound;const n=L(T.get(t),[]),r=n.findIndex((t=>t===e));if(n.splice(r,1),F.delete(e),0===n.length){const e=R.get(t)||"";return T.delete(t),N.delete(e),R.delete(t),e}return P.e.RemovedConnection},clear:()=>{R.clear(),N.clear(),T.clear(),F.clear()}};var q=n(5718);const B=e=>{var n;return"msgpack"===(null===(n=t.config.urls[e])||void 0===n?void 0:n.format)};var $,W,z,G=4294967295;function Q(e,t,n){var r=Math.floor(n/4294967296),o=n;e.setUint32(t,r),e.setUint32(t+4,o)}function V(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}var H=("undefined"==typeof process||"never"!==(null===($=null===process||void 0===process?void 0:{NODE_ENV:"production"})||void 0===$?void 0:$.TEXT_ENCODING))&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function J(e){for(var t=e.length,n=0,r=0;r<t;){var o=e.charCodeAt(r++);if(4294967168&o)if(4294965248&o){if(o>=55296&&o<=56319&&r<t){var i=e.charCodeAt(r);56320==(64512&i)&&(++r,o=((1023&o)<<10)+(1023&i)+65536)}n+=4294901760&o?4:3}else n+=2;else n++}return n}var K=H?new TextEncoder:void 0,X=H?"undefined"!=typeof process&&"force"!==(null===(W=null===process||void 0===process?void 0:{NODE_ENV:"production"})||void 0===W?void 0:W.TEXT_ENCODING)?200:0:G,Y=(null==K?void 0:K.encodeInto)?function(e,t,n){K.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(K.encode(e),n)};function Z(e,t,n){for(var r=t,o=r+n,i=[],s="";r<o;){var a=e[r++];if(128&a)if(192==(224&a)){var c=63&e[r++];i.push((31&a)<<6|c)}else if(224==(240&a)){c=63&e[r++];var u=63&e[r++];i.push((31&a)<<12|c<<6|u)}else if(240==(248&a)){var l=(7&a)<<18|(c=63&e[r++])<<12|(u=63&e[r++])<<6|63&e[r++];l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l)}else i.push(a);else i.push(a);i.length>=4096&&(s+=String.fromCharCode.apply(String,i),i.length=0)}return i.length>0&&(s+=String.fromCharCode.apply(String,i)),s}var ee,te=H?new TextDecoder:null,ne=H?"undefined"!=typeof process&&"force"!==(null===(z=null===process||void 0===process?void 0:{NODE_ENV:"production"})||void 0===z?void 0:z.TEXT_DECODER)?200:0:G,re=function(e,t){this.type=e,this.data=t},oe=(ee=function(e,t){return ee=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])},ee(e,t)},function(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}ee(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ie=function(e){function t(n){var r=e.call(this,n)||this,o=Object.create(t.prototype);return Object.setPrototypeOf(r,o),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:t.name}),r}return oe(t,e),t}(Error),se={type:-1,encode:function(e){var t,n,r,o;return e instanceof Date?function(e){var t,n=e.sec,r=e.nsec;if(n>=0&&r>=0&&n<=17179869183){if(0===r&&n<=4294967295){var o=new Uint8Array(4);return(t=new DataView(o.buffer)).setUint32(0,n),o}var i=n/4294967296,s=4294967295&n;return o=new Uint8Array(8),(t=new DataView(o.buffer)).setUint32(0,r<<2|3&i),t.setUint32(4,s),o}return o=new Uint8Array(12),(t=new DataView(o.buffer)).setUint32(0,r),Q(t,4,n),o}((r=1e6*((t=e.getTime())-1e3*(n=Math.floor(t/1e3))),{sec:n+(o=Math.floor(r/1e9)),nsec:r-1e9*o})):null},decode:function(e){var t=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var n=t.getUint32(0);return{sec:4294967296*(3&n)+t.getUint32(4),nsec:n>>>2};case 12:return{sec:V(t,4),nsec:t.getUint32(0)};default:throw new ie("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}},ae=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(se)}return e.prototype.register=function(e){var t=e.type,n=e.encode,r=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=r;else{var o=1+t;this.builtInEncoders[o]=n,this.builtInDecoders[o]=r}},e.prototype.tryToEncode=function(e,t){for(var n=0;n<this.builtInEncoders.length;n++)if(null!=(r=this.builtInEncoders[n])&&null!=(o=r(e,t)))return new re(-1-n,o);for(n=0;n<this.encoders.length;n++){var r,o;if(null!=(r=this.encoders[n])&&null!=(o=r(e,t)))return new re(n,o)}return e instanceof re?e:null},e.prototype.decode=function(e,t,n){var r=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return r?r(e,t,n):new re(t,e)},e.defaultCodec=new e,e}();function ce(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}var ue=function(){function e(e,t,n,r,o,i,s,a){void 0===e&&(e=ae.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===o&&(o=!1),void 0===i&&(i=!1),void 0===s&&(s=!1),void 0===a&&(a=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=o,this.forceFloat32=i,this.ignoreUndefined=s,this.forceIntegerToFloat=a,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(e){var t=new ArrayBuffer(e),n=new Uint8Array(t),r=new DataView(t);n.set(this.bytes),this.view=r,this.bytes=n},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){Number.isSafeInteger(e)&&!this.forceIntegerToFloat?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too long string: ".concat(e," bytes in UTF-8"));this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(e){if(e.length>X){var t=J(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),Y(e,this.bytes,this.pos),this.pos+=t}else t=J(e),this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var r=e.length,o=n,i=0;i<r;){var s=e.charCodeAt(i++);if(4294967168&s){if(4294965248&s){if(s>=55296&&s<=56319&&i<r){var a=e.charCodeAt(i);56320==(64512&a)&&(++i,s=((1023&s)<<10)+(1023&a)+65536)}4294901760&s?(t[o++]=s>>18&7|240,t[o++]=s>>12&63|128,t[o++]=s>>6&63|128):(t[o++]=s>>12&15|224,t[o++]=s>>6&63|128)}else t[o++]=s>>6&31|192;t[o++]=63&s|128}else t[o++]=s}}(e,this.bytes,this.pos),this.pos+=t},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)));this.encodeMap(e,t)}},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large binary: ".concat(t));this.writeU8(198),this.writeU32(t)}var n=ce(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else{if(!(n<4294967296))throw new Error("Too large array: ".concat(n));this.writeU8(221),this.writeU32(n)}for(var r=0,o=e;r<o.length;r++){var i=o[r];this.doEncode(i,t+1)}},e.prototype.countWithoutUndefined=function(e,t){for(var n=0,r=0,o=t;r<o.length;r++)void 0!==e[o[r]]&&n++;return n},e.prototype.encodeMap=function(e,t){var n=Object.keys(e);this.sortKeys&&n.sort();var r=this.ignoreUndefined?this.countWithoutUndefined(e,n):n.length;if(r<16)this.writeU8(128+r);else if(r<65536)this.writeU8(222),this.writeU16(r);else{if(!(r<4294967296))throw new Error("Too large map object: ".concat(r));this.writeU8(223),this.writeU32(r)}for(var o=0,i=n;o<i.length;o++){var s=i[o],a=e[s];this.ignoreUndefined&&void 0===a||(this.encodeString(s),this.doEncode(a,t+1))}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large extension object: ".concat(t));this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=n/4294967296,o=n;e.setUint32(t,r),e.setUint32(t+4,o)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),Q(this.view,this.pos,e),this.pos+=8},e}(),le={},pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fe={[q.d[i]]:({channel:e,data:t,id:n})=>({jsonrpc:"2.0",params:t,method:e,id:n})};function he(e,t){const{type:n}=e,r=pe(e,["type"]);return B(t)?(o=fe[n](r),void 0===i&&(i=le),new ue(i.extensionCodec,i.context,i.maxDepth,i.initialBufferSize,i.sortKeys,i.forceFloat32,i.ignoreUndefined,i.forceIntegerToFloat).encodeSharedRef(o)):JSON.stringify(fe[n](r));var o,i}const de="SDQRequestFormatRequiresActiveQuery";function ye(n){const r=M.getQueryID(n);let o;if("unsubscribe"===n.name)o=he({type:q.d[i],channel:n.name,data:{},id:n.params.id||""},e.ConnectionNames.sports);else{if(void 0===r)throw new Error(de);o=he({type:q.d[i],channel:n.name,data:Object.assign(Object.assign({},n.params),{jwt:t.config.connections.jwt||"",siteName:t.config.siteName}),id:r},e.ConnectionNames.sports)}return o}function me(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var ve=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},e.prototype.find=function(e,t,n){e:for(var r=0,o=this.caches[n-1];r<o.length;r++){for(var i=o[r],s=i.bytes,a=0;a<n;a++)if(s[a]!==e[t+a])continue e;return i.str}return null},e.prototype.store=function(e,t){var n=this.caches[e.length-1],r={bytes:e,str:t};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},e.prototype.decode=function(e,t,n){var r=this.find(e,t,n);if(null!=r)return this.hit++,r;this.miss++;var o=Z(e,t,n),i=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(i,o),o},e}(),ge=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},be=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},we=function(e){return this instanceof we?(this.v=e,this):new we(e)},_e=new DataView(new ArrayBuffer(0)),Se=new Uint8Array(_e.buffer),xe=function(){try{_e.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),ke=new xe("Insufficient data"),Ae=new ve,Oe=function(){function e(e,t,n,r,o,i,s,a){void 0===e&&(e=ae.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=G),void 0===r&&(r=G),void 0===o&&(o=G),void 0===i&&(i=G),void 0===s&&(s=G),void 0===a&&(a=Ae),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=r,this.maxArrayLength=o,this.maxMapLength=i,this.maxExtLength=s,this.keyDecoder=a,this.totalPos=0,this.pos=0,this.view=_e,this.bytes=Se,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},e.prototype.setBuffer=function(e){this.bytes=ce(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=ce(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining(1)){var t=this.bytes.subarray(this.pos),n=ce(e),r=new Uint8Array(t.length+n.length);r.set(t),r.set(n,t.length),this.setBuffer(r)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},e.prototype.createExtraByteError=function(e){var t=this.view,n=this.pos;return new RangeError("Extra ".concat(t.byteLength-n," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))},e.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t},e.prototype.decodeMulti=function(e){return ge(this,(function(t){switch(t.label){case 0:this.reinitializeState(),this.setBuffer(e),t.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return t.sent(),[3,1];case 3:return[2]}}))},e.prototype.decodeAsync=function(e){var t,n,r,o,i,s,a,c;return i=this,s=void 0,c=function(){var i,s,a,c,u,l,p,f;return ge(this,(function(h){switch(h.label){case 0:i=!1,h.label=1;case 1:h.trys.push([1,6,7,12]),t=be(e),h.label=2;case 2:return[4,t.next()];case 3:if((n=h.sent()).done)return[3,5];if(a=n.value,i)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a);try{s=this.doDecodeSync(),i=!0}catch(e){if(!(e instanceof xe))throw e}this.totalPos+=this.pos,h.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return c=h.sent(),r={error:c},[3,12];case 7:return h.trys.push([7,,10,11]),n&&!n.done&&(o=t.return)?[4,o.call(t)]:[3,9];case 8:h.sent(),h.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(i){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw l=(u=this).headByte,p=u.pos,f=u.totalPos,new RangeError("Insufficient data in parsing ".concat(me(l)," at ").concat(f," (").concat(p," in the current buffer)"))}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}o((c=c.apply(i,s||[])).next())}))},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof we?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,s,a,c,u,l;return ge(this,(function(p){switch(p.label){case 0:n=t,r=-1,p.label=1;case 1:p.trys.push([1,13,14,19]),o=be(e),p.label=2;case 2:return[4,we(o.next())];case 3:if((i=p.sent()).done)return[3,12];if(s=i.value,t&&0===r)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s),n&&(r=this.readArraySize(),n=!1,this.complete()),p.label=4;case 4:p.trys.push([4,9,,10]),p.label=5;case 5:return[4,we(this.doDecodeSync())];case 6:return[4,p.sent()];case 7:return p.sent(),0==--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((a=p.sent())instanceof xe))throw a;return[3,10];case 10:this.totalPos+=this.pos,p.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return c=p.sent(),u={error:c},[3,19];case 14:return p.trys.push([14,,17,18]),i&&!i.done&&(l=o.return)?[4,we(l.call(o))]:[3,16];case 15:p.sent(),p.label=16;case 16:return[3,18];case 17:if(u)throw u.error;return[7];case 18:return[7];case 19:return[2]}}))}))},e.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192)if(e<128)t=e;else if(e<144){if(0!=(r=e-128)){this.pushMapState(r),this.complete();continue e}t={}}else if(e<160){if(0!=(r=e-144)){this.pushArrayState(r),this.complete();continue e}t=[]}else{var n=e-160;t=this.decodeUtf8String(n,0)}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e)n=this.lookU8(),t=this.decodeUtf8String(n,1);else if(218===e)n=this.lookU16(),t=this.decodeUtf8String(n,2);else if(219===e)n=this.lookU32(),t=this.decodeUtf8String(n,4);else if(220===e){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(221===e){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(222===e){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue e}t={}}else if(223===e){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue e}t={}}else if(196===e){var r=this.lookU8();t=this.decodeBinary(r,1)}else if(197===e)r=this.lookU16(),t=this.decodeBinary(r,2);else if(198===e)r=this.lookU32(),t=this.decodeBinary(r,4);else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e)r=this.lookU8(),t=this.decodeExtension(r,1);else if(200===e)r=this.lookU16(),t=this.decodeExtension(r,2);else{if(201!==e)throw new ie("Unrecognized type byte: ".concat(me(e)));r=this.lookU32(),t=this.decodeExtension(r,4)}this.complete();for(var o=this.stack;o.length>0;){var i=o[o.length-1];if(0===i.type){if(i.array[i.position]=t,i.position++,i.position!==i.size)continue e;o.pop(),t=i.array}else{if(1===i.type){if(void 0,"string"!=(s=typeof t)&&"number"!==s)throw new ie("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new ie("The key __proto__ is not allowed");i.key=t,i.type=2;continue e}if(i.map[i.key]=t,i.readCount++,i.readCount!==i.size){i.key=null,i.type=1;continue e}o.pop(),t=i.map}}return t}var s},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new ie("Unrecognized array type byte: ".concat(me(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new ie("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new ie("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:new Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){var n;if(e>this.maxStrLength)throw new ie("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw ke;var r,o=this.pos+t;return r=this.stateIsMapKey()&&(null===(n=this.keyDecoder)||void 0===n?void 0:n.canBeCached(e))?this.keyDecoder.decode(this.bytes,o,e):e>ne?function(e,t,n){var r=e.subarray(t,t+n);return te.decode(r)}(this.bytes,o,e):Z(this.bytes,o,e),this.pos+=t+e,r},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new ie("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw ke;var n=this.pos+t,r=this.bytes.subarray(n,n+e);return this.pos+=t+e,r},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new ie("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n=(e=this.view,t=this.pos,4294967296*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,n},e.prototype.readI64=function(){var e=V(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),Ee=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},je=function(e){return this instanceof je?(this.v=e,this):new je(e)},Ce=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof je?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}};function Ue(e){return null!=e[Symbol.asyncIterator]?e:function(e){return Ce(this,arguments,(function(){var t,n,r,o;return Ee(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,je(t.read())];case 3:return n=i.sent(),r=n.done,o=n.value,r?[4,je(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return function(e){if(null==e)throw new Error("Assertion Failure: value must not be null nor undefined")}(o),[4,je(o)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e)}var Ie={},Pe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};const Le=e=>Pe(void 0,void 0,void 0,(function*(){if("function"==typeof e.data.stream||"function"==typeof e.data.arrayBuffer)try{let r;if(e.data.stream)r=yield function(e,t){return void 0===t&&(t=Ie),n=this,r=void 0,i=function(){var n;return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(r){return n=Ue(e),[2,new Oe(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeAsync(n)]}))},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{c(i.next(e))}catch(e){t(e)}}function a(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}c((i=i.apply(n,r||[])).next())}));var n,r,o,i}(e.data.stream());else{t=yield e.data.arrayBuffer(),void 0===n&&(n=Ie),r=new Oe(n.extensionCodec,n.context,n.maxStrLength,n.maxBinLength,n.maxArrayLength,n.maxMapLength,n.maxExtLength).decode(t)}return(e=>{const[t,n,r,o]=e,[i,s,a]=o||[];return"unsubscribed"===n?{id:"unsubscribed",result:{}}:{id:t,result:r,error:o?{code:i,data:s,message:a}:void 0}})(r)}catch(e){}var t,n;return{id:"",result:{}}}));function Re(t){return Pe(this,void 0,void 0,(function*(){return B(e.ConnectionNames.sports)?yield Le(t):(e=>{const t=JSON.parse(e.data);return"event"in t&&"unsubscribed"===t.event?{id:"unsubscribed",result:{}}:{id:t.id,result:t.data,error:t.error}})(t)}))}function Ne(){return window.navigator.onLine}function Te(e){if(Ne())return function(e){return t=this,n=void 0,o=function*(){const{url:t,method:n,headers:r,body:o}=e.requestFormatter(e.message),i=yield fetch(t,{method:n,headers:r,body:o});return yield e.responseFormatter(i)},new((r=void 0)||(r=Promise))((function(e,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,a)}c((o=o.apply(t,n||[])).next())}));var t,n,r,o}(e.request).then((t=>{e.resolve(t)})).catch((t=>{e.reject(t)}));const t=e.retryAttempt+1;if(e.retryAttempt>=e.maxRetryAttempts)return e.reject(o.MaxNumberOfRetriesExceeded);e.retryAttempt=e.retryAttempt+1,setTimeout((()=>Te(e)),e.retryInterval*t)}function Fe(e,t,n){return{message:e,requestFormatter:t,responseFormatter:n}}class De{constructor(e){this.clearCachedMessage=e=>{delete this.cachedMessages[e]},this.retryInterval=e.retryInterval||1e3,this.maxRetryAttempts=e.maxRetryAttempts||5,this.handlers=e.handlers,this.cachedMessages={}}connect(){return Promise.resolve(Ne())}deactivate(){return Promise.resolve(!0)}isConnected(){return Promise.resolve(Ne())}isConnectedSync(){return Ne()}send(e){const t=JSON.stringify(e);return void 0===this.cachedMessages[t]&&(this.cachedMessages[t]=new Promise(((n,r)=>{Te({request:Fe(e,this.handlers.requestFormatter,this.handlers.responseFormatter),resolve:e=>{this.clearCachedMessage(t),n(e)},reject:e=>{this.clearCachedMessage(t),r(e)},retryAttempt:0,retryInterval:this.retryInterval,maxRetryAttempts:this.maxRetryAttempts})}))),this.cachedMessages[t]}}function Me(e){const t=new De({handlers:{requestFormatter:e.handlers.requestFormatter,responseFormatter:e.handlers.responseFormatter}});return d.set(e.name,t),t}function qe(e){return new Promise(((t,n)=>e.ok?t(e.json()):502===e.status?n(o.BadGateway):"function"==typeof e.json?e.json().then((e=>n(e))).catch((()=>n(e.statusText))):n(o.EmptyResponse)))}const Be=e=>e?"":`/${t.config.siteName}/`,$e={[e.ConnectionNames.stadium]:{getLeagueData:{path:(e,t)=>({channel:`${Be(t)}v1/leagues/${e.leagueId}`,params:e})},getCategoryData:{path:(e,t)=>({channel:`${Be(t)}v1/leagues/${e.leagueId}/categories/${e.categoryId}`,params:e})},getSubCategoryData:{path:(e,t)=>({channel:`${Be(t)}v1/leagues/${e.leagueId}/categories/${e.categoryId}/subcategories/${e.subcategoryId}`,params:e})},getEventCategories:{path:(e,t)=>({channel:`${Be(t)}v1/events/${e.eventId}/categories${e.categoryName?`?categoryName=${e.categoryName}`:""}`,params:e})},getEventCategoryData:{path:(e,t)=>({channel:`${Be(t)}v1/events/${e.eventId}/categories/${e.categoryId}`,params:e})}},[e.ConnectionNames.clank]:{getWidgetZones:{path:e=>({channel:"/api/widgets/markets/v1/zones"+(e.zoneId?`?zones=${e.zoneId}`:""),params:e})}},[e.ConnectionNames.sherpa]:{getNavigationEventsData:{path:e=>({channel:`/v2/nav/leagues/${e.leagueId}`,params:e})}}};function We(e="GET"){return e}function ze(e,n){const r=t.config.urls[e];let i,s={},a=!1;if("object"==typeof r?(i=r.baseUrl,a=Boolean(r.skipAppendSiteName),s=r.headerParams||{}):i=r,void 0===i)throw new Error(o.InvalidBaseUrl);const{channel:c,method:u,params:l,meta:p}=function(e,t,n){const r=$e[e];if(void 0===r)throw new Error(o.NoChannelMappingForConnection);const i=r[t.name];if(void 0===i)throw new Error(o.NoChannel);return"function"==typeof i.path?Object.assign(Object.assign({},i.path(t.params,n)),{method:We(i.method),meta:t.meta}):{channel:i.path,method:We(i.method),params:t.params,meta:t.meta}}(e,n,a);if(p)for(const e of Object.keys(p))s[e]=p[e];return{baseUrl:i,endpoint:c,method:u,headers:s,body:void 0,params:l}}function Ge(t){const{baseUrl:n,endpoint:r,method:o,headers:i}=ze(e.ConnectionNames.stadium,t);i["Content-Type"]="application/json; charset=utf-8";const s=(0,u.stringifyUrl)({url:`${n}${r}`},{skipNull:!0});return new Request(s,{method:o,headers:i})}function Qe(t){const{baseUrl:n,endpoint:r,method:o,headers:i}=ze(e.ConnectionNames.clank,t);i["Content-Type"]="application/json; charset=utf-8";const s=(0,u.stringifyUrl)({url:`${n}${r}`},{skipNull:!0});return new Request(s,{method:o,headers:i})}function Ve(t){const{baseUrl:n,endpoint:r,method:o,headers:i}=ze(e.ConnectionNames.sherpa,t);i["Content-Type"]="application/json; charset=utf-8";const s=(0,u.stringifyUrl)({url:`${n}${r}`},{skipNull:!0});return new Request(s,{method:o,headers:i})}const He={[e.ConnectionNames.sports]:function(t){const n=new p({url:{baseUrl:t.baseUrl,queryParams:{format:t.format}},handlers:(r=ye,o=Re,{open:e=>e,close:k(e.ConnectionNames.sports,M),message:A(M),error:e=>e,requestFormatter:r,responseFormatter:o})});var r,o;return d.set(e.ConnectionNames.sports,n),n},[e.ConnectionNames.stadium]:function(){return Me({name:e.ConnectionNames.stadium,handlers:{requestFormatter:Ge,responseFormatter:qe}})},[e.ConnectionNames.clank]:function(){return Me({name:e.ConnectionNames.clank,handlers:{requestFormatter:Qe,responseFormatter:qe}})},[e.ConnectionNames.sherpa]:function(){return Me({name:e.ConnectionNames.sherpa,handlers:{requestFormatter:Ve,responseFormatter:qe}})}},Je={[e.ConnectionNames.sports]:function(e,n,r){const o=d.get(e),i=t.config.urls[e];return o&&"object"==typeof i&&x(o,n).catch(console.error),r}.bind(void 0,e.ConnectionNames.sports,M)};let Ke=()=>{};function Xe(e){if(t.config=Object.assign(Object.assign({},t.config),e),0===Object.keys(t.config.urls).length)throw new Error(o.NoConnectionUrls);Ke=t.config.onTokenRenew((e=>s(e)));const n=Object.keys(t.config.urls);t.config.connections.jwt||t.config.requestToken().then((e=>{s(e),n.forEach((t=>function(e,...t){if("function"==typeof e)return e(t)}(Je[t],e)))})).catch(void 0),n.forEach((e=>He[e](t.config.urls[e])))}window.addEventListener("beforeunload",(()=>{Ke()}));class Ye{constructor(e,t){this.name="subscribe",this.query=void 0,this.onDataCallback=e,this.onErrorCallback=t}onData(e){e&&this.onDataCallback(e)}getLocale(){var e;return(null===(e=t.config.urls.SportsbookConnection)||void 0===e?void 0:e.queryParams.locale)||"en-US"}getName(){return this.name}onError(n){this.onErrorCallback(n),t.config.requestToken().then((e=>{s(e),this.reInitQuery()})).catch((n=>{t.config.tracking[e.ConnectionNames.sports].trackError({message:`Token request failed with reason: ${g(n)}`,clientAction:"TOKEN_REQUEST_ERROR"})}))}deactivate(){this.query=void 0}reInitQuery(){const n=this.query;this.query=void 0,this.query=n?Object.assign(Object.assign({},n),{params:Object.assign({},n.params)}):void 0,t.config.tracking[e.ConnectionNames.sports].trackData({message:`Reinit query: ${JSON.stringify(this.query)} with token: ${t.config.connections.jwt}`,clientAction:"RE_INIT_QUERY"})}}function Ze(e,t){return Reflect.get(e,t)}var et;!function(e){e.query="query"}(et||(et={}));let tt=0;function nt(e,t){t.query&&e.set(t.query,t)}function rt(n,r,i,s,a,c){return a===et.query?(s[a]=c,function(n,r,i,s=!1){const a=d.get(r);if(void 0===a)throw new Error(o.NoConnectionsAvailable);if(void 0===i.query)return function(e,t,n){const r=e.clearConnection(n);t.isConnectedSync()&&r!==P.e.RemovedConnection&&r!==P.e.QueryNotFound&&t.send({name:"unsubscribe",params:{id:r}})}(n,a,i),void(0===n.getAllConnections().length&&(window.clearTimeout(tt),tt=window.setTimeout((()=>{a.deactivate().catch(void 0)}),t.config.inactiveTTL_MS)));clearTimeout(tt),a.isConnected().then((e=>e||a.connect())).then((e=>{const r=function(e,t){const n=t.query&&e.getQueryID(t.query),r=function(e,t){const n=e.getQueryForConnection(t);return n&&e.getQueryID(n)}(e,t),o=function(e,t){return t&&e.getQueryByID(t)}(e,r);return{qID:n,qPrevID:r,qPrev:o}}(n,i);return nt(n,i),!s&&t.config.connections.jwt&&function(e,t,n,r){const{qID:o,qPrevID:i,qPrev:s}=r;void 0===n.query||o&&!e.getQueryByID(o)||(function(e,t,n){return void 0!==t||void 0!==n&&0===e.getConnectionsForQuery(n).length}(e,o,s)&&t.send({name:"unsubscribe",params:{id:o||i}}),t.send(n.query))}(n,a,i,r),e})).catch((r=>{nt(n,i),t.config.tracking[e.ConnectionNames.sports].trackError({message:`Connection Failed with reason: ${g(r)}`,clientAction:"CONNECTION_ERROR"})}))}(r,n,s,i),!0):Reflect.set(s,a,c)}const ot=e.ConnectionNames.sports;function it(e,t,n=!1){const r=(i={get:Ze,set:rt.bind(void 0,ot,M,n)},function(e){return function(e){const t=function(...t){const n=new Proxy(new e(...t),i);return(e=>{if(void 0===d.get(ot))throw new Error(o.NoConnectionsAvailable);e.query&&(e.query=e.query,e.onData=e.onData.bind(e)),e.onError&&(e.onError=e.onError.bind(e))})(n),n};return t.prototype=e.prototype,t}})(t)(e);var i;return class extends r{constructor(...e){super(...e)}}}const st=it(class extends Ye{constructor(e){super((()=>{}),e),this.query={name:"subscribe",params:{}}}},{},!0);function at(e,t,n){return e&&e[t]&&e[t][n]||[]}function ct(e,t){return e[t]||[]}function ut(e){return{state:e[0],isClockDisabled:e[1],period:e[2],minute:e[3],second:e[4],isClockRunning:e[5],homeTeamScore:e[6],awayTeamScore:e[7]}}function lt(e){return{mainScorecard:e[0]?pt(e[0]):void 0,scoreCards:e[1]?e[1].map(pt):void 0,scorecardComponentId:e[2]}}function pt(e){return{intervalName:e[1],intervalNumber:e[2],firstTeamScore:e[3],secondTeamScore:e[4],liveScoreData:e[6]}}function ft(e){return{name:e[1]}}function ht(e,t){return e?t(e):e}function dt(e){return{id:e[0],betOfferTypeId:e[1],name:e[2]}}function yt(e){return e.map((e=>({type:e[0],prefix:e[1],value:e[2]})))}function mt(e){return{live:ht(e[0],yt)}}function vt(e){return ht(e,mt)}function gt(e){return{providerOutcomeId:e[0],label:e[1],providerOfferId:e[2],oddsAmerican:e[3],oddsDecimal:e[4],oddsDecimalDisplay:e[5],oddsFractional:e[6],line:e[7],participant:e[8],main:e[9],dkPlayerId:e[10]||void 0}}function bt(e){return e.map((e=>({id:e[0],name:e[1],type:e[2],seoIdentifier:e[3]})))}function wt(e){return{american:e[0],decimal:e[1],fractional:e[2]}}function _t(e){return{id:e[0],betSlipLine:e[1],trueOdds:e[2],displayOdds:wt(e[3]),points:e[4],displayPoints:e[5],tags:e[6],marketId:e[7],replacedSelectionId:e[8]}}function St(e){return{id:e[0],betSlipLine:e[1],isLive:e[2],eventId:e[3],isSuspended:e[4],tags:e[5],oppositeMarketId:e[6],blurb:e[7],blurbId:e[8]}}function xt(e){return e.map((e=>({id:e[0],name:e[2],tags:e[3],sortOrder:e[4]})))}function kt(e){return e.map((e=>({id:e[0],categoryId:e[1],name:e[2],componentId:e[3],sortOrder:e[4],tags:e[5]})))}function At(e){return ht(e,xt)}function Ot(e){return ht(e,kt)}function Et(e){return{mainScorecard:ht(e[0],Ut),scoreCards:ht(e[1],jt),scorecardComponentId:e[2]}}function jt(e){return e.map(Ct)}function Ct(e){return{intervalName:e[1],intervalNumber:e[2],firstTeamScore:e[3],secondTeamScore:e[4],liveInfo:e[5],liveScoreData:e[6]}}function Ut(e){return Object.assign(Object.assign({},Ct(e)),{metadata:e[8]})}function It(e){return{period:e[0],gameTime:e[1],isClockRunning:e[2]}}function Pt(e){return e.map((e=>({id:e[0],name:e[1],venueRole:e[2],type:e[3],metadata:e[4],sortOrder:e[5],seoIdentifier:e[6]})))}function Lt(e){return e.map((e=>({providerName:e[0],providerEventId:e[1],mediaType:e[2],metadata:e[3],allowedDmas:e[4]})))}const Rt=e=>{return{eventId:(t=e[1])[0],displayGroupId:t[1],eventGroupId:t[2],eventGroupName:t[3],name:t[4],startDate:t[5].toString(),teamName1:t[6],teamName2:t[7],eventStatus:ut(t[8]),tags:t[9],eventScorecard:t[11]?lt(t[11]):void 0,team1:t[12]?ft(t[12]):void 0,team2:t[13]?ft(t[13]):void 0};var t},Nt=e=>{return{providerOfferId:(t=e[1])[0],label:t[1],eventId:t[2],eventGroupId:t[3],displayGroupId:t[4],offerSubcategoryId:t[5],betOfferTypeId:t[6],isSuspended:t[7],outcomes:t[8]?t[8].map(gt):void 0,dkPlayerId:t[9]||void 0,tags:t[10],statistics:vt(t[11]),correlatedId:t[12]};var t};function Tt(e){const t=at(e,0,0),n=ct(t,0),r=ct(t,1),o=at(e,0,1),i=ct(o,0),s=ct(o,1),a=at(e,0,2),c=ct(a,0),u=ct(a,1);return{data:{add:{events:n.map(Rt),markets:r.map(Nt)},change:{events:c.map(Rt),markets:u.map(Nt)},remove:{events:i,markets:s}},metadata:e[2]||void 0}}function Ft(e){const t=at(e,0,0),n=ct(t,0),r=ct(t,1),o=ct(t,2),i=ct(t,3),s=ct(t,4),a=at(e,0,1),c=ct(a,0),u=ct(a,1),l=ct(a,2),p=at(e,0,2),f=ct(p,0),h=ct(p,1),d=ct(p,2);return{data:{add:{leagues:i.map((e=>function(e){return{id:e[0],seoIdentifier:e[1],name:e[2],sportId:e[3],tags:e[4],conferences:e[5],regions:e[6],sortOrder:e[7],isTeamSwap:e[8],categories:At(e[9]),subcategories:Ot(e[10])}}(e[1]))),events:n.map((e=>function(e){return{id:e[0],seoIdentifier:e[1],name:e[2],startEventDate:e[3],participants:ht(e[4],Pt),eventParticipantType:e[5],status:e[6],liveGameState:ht(e[7],It),eventScorecard:ht(e[8],Et),media:ht(e[9],Lt),tags:e[10],metadata:e[11],categories:At(e[12]),subcategories:Ot(e[13]),sportId:e[14],leagueId:e[15],sortOrder:e[16]}}(e[1]))),markets:r.map((e=>function(e){return{id:e[0],eventId:e[1],sportId:e[2],leagueId:e[3],name:e[4],isSuspended:e[5],subcategoryId:e[6],marketType:dt(e[7]),tags:e[8],sortOrder:e[9],statistics:vt(e[10]),correlatedId:e[11]}}(e[1]))),selections:o.map((e=>function(e){return{id:e[0],marketId:e[1],label:e[2],displayOdds:wt(e[3]),trueOdds:e[4],points:e[5],outcomeType:e[6],participants:ht(e[7],bt),sortOrder:e[8]}}(e[1]))),sports:s.map((e=>function(e){return{id:e[0],seoIdentifier:e[1],name:e[2],sortOrder:e[3],categories:At(e[4]),subcategories:Ot(e[5])}}(e[1])))},change:{events:f.map((e=>function(e){return{id:e[0],startEventDate:e[1],participants:ht(e[2],Pt),status:e[3],liveGameState:ht(e[4],It),eventScorecard:ht(e[5],Et),tags:e[6],metadata:e[7],sortOrder:e[8]}}(e[1]))),markets:h.map((e=>function(e){return{id:e[0],name:e[1],isSuspended:e[2],tags:e[3],sortOrder:e[4],statistics:vt(e[5])}}(e[1]))),selections:d.map((e=>function(e){return{id:e[0],label:e[1],displayOdds:wt(e[2]),trueOdds:e[3],points:e[4],sortOrder:e[5]}}(e[1])))},remove:{events:c,markets:u,selections:l}},metadata:e[2]}}const Dt=it(class extends Ye{constructor(e,t,n,r,o){super(r,o),this.query={name:this.getName(),params:{entity:"events",queryParams:{query:`$filter=leagueId eq '${e}'`,initialData:n,includeMarkets:"none",projection:"betOffers",locale:super.getLocale()},forwardedHeaders:{},clientMetadata:{feature:t}}}}onData(t){B(e.ConnectionNames.sports)&&t instanceof Array?super.onData(Tt(t)):super.onData(t)}},{},!1),Mt=it(class extends Ye{constructor(e,t,n,r,o,i){super(o,i),this.query={name:this.getName(),params:{entity:"markets",queryParams:{query:`$filter=leagueId eq '${e}' and clientMetadata/subCategoryId eq '${t}' and tags/all(t: t ne 'SportcastBetBuilder')`,initialData:r,projection:"betOffers",locale:super.getLocale()},forwardedHeaders:{},clientMetadata:{feature:n}}}}onData(t){B(e.ConnectionNames.sports)&&t instanceof Array?super.onData(function(e){const t=at(e,0,0),n=at(e,0,1),r=at(e,0,2);return{data:{add:t.map(Nt),change:r.map(Nt),remove:n},metadata:e[2]||void 0}}(t)):super.onData(t)}},{},!1),qt=it(class extends Ye{constructor(e,t,n,r,o){super(r,o),this.query={name:this.getName(),params:{entity:"events",queryParams:{query:`$filter=id eq '${e}'`,initialData:n,includeMarkets:"$filter=tags/all(t: t ne 'SportcastBetBuilder')",projection:"betOffers",locale:super.getLocale()},forwardedHeaders:{},clientMetadata:{feature:t}}}}onData(t){B(e.ConnectionNames.sports)&&t instanceof Array?super.onData(Tt(t)):super.onData(t)}},{},!1),Bt=it(class extends Ye{constructor(e,t,n,r,o,i){super(o,i),this.query={name:this.getName(),params:{entity:"events",queryParams:{query:`$filter=id eq '${e}'`,initialData:r,projection:"betOffers",includeMarkets:`$filter=id in (${t})`,locale:super.getLocale()},forwardedHeaders:{},clientMetadata:{feature:n}}}}onData(t){B(e.ConnectionNames.sports)&&t instanceof Array?super.onData(Tt(t)):super.onData(t)}},{},!1),$t=it(class extends Ye{constructor(e,t,n,r,o){super(r,o),this.query={name:this.getName(),params:{entity:"events",queryParams:{query:e.query,initialData:n,includeMarkets:e.includeMarkets,projection:"sportsbook",locale:super.getLocale()},forwardedHeaders:{},clientMetadata:{feature:t}}}}onData(t){B(e.ConnectionNames.sports)&&t instanceof Array?super.onData(Ft(t)):super.onData(t)}},{},!1),Wt=it(class extends Ye{constructor(e,t,n,r,o){super(r,o),this.query={name:this.getName(),params:{entity:"events",queryParams:{query:`$filter=leagueId eq '${e}'`,initialData:n,includeMarkets:"none",projection:"sportsbook",locale:super.getLocale()},forwardedHeaders:{},clientMetadata:{feature:t}}}}onData(t){B(e.ConnectionNames.sports)&&t instanceof Array?super.onData(Ft(t)):super.onData(t)}},{},!1),zt=it(class extends Ye{constructor(e,t,n,r,o,i){super(o,i),this.query={name:this.getName(),params:{entity:"markets",queryParams:{query:`$filter=leagueId eq '${e}' and clientMetadata/subCategoryId eq '${t}' and tags/all(t: t ne 'SportcastBetBuilder')`,initialData:r,projection:"sportsbook",locale:super.getLocale()},forwardedHeaders:{},clientMetadata:{feature:n}}}}onData(e){super.onData(e)}},{},!1),Gt=it(class extends Ye{constructor(e,t,n,r,o,i){super(o,i),this.query={name:this.getName(),params:{entity:"markets",queryParams:{query:e,initialData:n,projection:r,locale:super.getLocale()},forwardedHeaders:{},clientMetadata:{feature:t}}}}onData(t){B(e.ConnectionNames.sports)&&t instanceof Array?super.onData(function(e){const t=at(e,0,0),n=ct(t,0),r=ct(t,1),o=at(e,0,1),i=ct(o,0),s=ct(o,1),a=at(e,0,2),c=ct(a,0),u=ct(a,1);return{data:{add:{markets:n.map((e=>St(e[1]))),selections:r.map((e=>_t(e[1])))},change:{markets:c.map((e=>St(e[1]))),selections:u.map((e=>_t(e[1])))},remove:{markets:i,selections:s}},metadata:e[2]||void 0}}(t)):super.onData(t)}},{},!1);class Qt{constructor(e,t){this.name=e,this.meta=t}applyQuery(e){return function(e,t,n){const r=d.get(e);return r?r.send(Object.assign(Object.assign({},t),{meta:n})):Promise.reject(o.NoConnectionsAvailable)}(this.name,e,this.meta)}}var Vt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};class Ht extends Qt{constructor(t){super(e.ConnectionNames.stadium,t)}getEventCategoriesData(e){return Vt(this,void 0,void 0,(function*(){return this.applyQuery({name:"getEventCategories",params:e})}))}getEventCategoryData(e){return Vt(this,void 0,void 0,(function*(){return this.applyQuery({name:"getEventCategoryData",params:e})}))}getLeagueData(e){return Vt(this,void 0,void 0,(function*(){return this.applyQuery({name:"getLeagueData",params:e})}))}getCategoryData(e){return Vt(this,void 0,void 0,(function*(){return this.applyQuery({name:"getCategoryData",params:e})}))}getSubCategoryData(e){return Vt(this,void 0,void 0,(function*(){return this.applyQuery({name:"getSubCategoryData",params:e})}))}}class Jt extends Qt{constructor(t){super(e.ConnectionNames.clank,t)}getWidgetZones(e){return t=this,n=void 0,o=function*(){return this.applyQuery({name:"getWidgetZones",params:e})},new((r=void 0)||(r=Promise))((function(e,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,a)}c((o=o.apply(t,n||[])).next())}));var t,n,r,o}}class Kt extends Qt{constructor(t){super(e.ConnectionNames.sherpa,t)}getNavigationEventsData(e){return t=this,n=void 0,o=function*(){return this.applyQuery({name:"getNavigationEventsData",params:e})},new((r=void 0)||(r=Promise))((function(e,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,a)}c((o=o.apply(t,n||[])).next())}));var t,n,r,o}}})(),r})()}));
//# sourceMappingURL=dkDataLayer.js.map