@maestro_io/maestro-web-sdk 5.1.0 → 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/12.maestro-web-sdk.esm.js +1 -1
- package/dist/12.maestro-web-sdk.esm.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/maestro-web-sdk.esm.js +1 -1
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +2 -2
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/src/interfaces/IMaestroEventDelegate.d.ts +8 -1
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.js +7 -0
- package/dist/src/modules/fox/multi-view/types.d.ts +62 -0
- package/dist/src/modules/fox/multi-view/types.js +89 -0
- package/dist/src/modules/fox/multi-view/view/components/LayoutSelector/LayoutSelector.d.ts +13 -0
- package/dist/src/modules/fox/multi-view/view/components/LayoutSelector/LayoutSelector.js +43 -0
- package/dist/src/modules/fox/multi-view/view/components/LayoutSelector/index.d.ts +2 -0
- package/dist/src/modules/fox/multi-view/view/components/LayoutSelector/index.js +2 -0
- package/dist/src/services/StaticService/StaticService.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,14 @@ declare module '@maestro_io/maestro-web-sdk/interfaces/IMaestroEventDelegate' {
|
|
|
65
65
|
onLoginSuccess: () => void;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Generic panel event type that supports client-specific events
|
|
70
|
+
* without exposing specific event structures in the SDK interface
|
|
71
|
+
*/
|
|
72
|
+
export type PanelEvent = {
|
|
73
|
+
type: string;
|
|
74
|
+
payload: unknown;
|
|
75
|
+
};
|
|
69
76
|
/**
|
|
70
77
|
* @description Interface for the client app to implement in order to handle Maestro TV SDK events.
|
|
71
78
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=function(e){function t(t){for(var n,i,s=t[0],o=t[1],a=0,c=[];a<s.length;a++)i=s[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&c.push(r[i][0]),r[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var s=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=s);var o,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({}[e]||e)+".maestro-web-sdk.esm.js"}(e);var l=new Error;o=function(t){a.onerror=a.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+s+")",l.name="ChunkLoadError",l.type=i,l.request=s,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){o({type:"timeout",target:a})}),12e4);a.onerror=a.onload=o,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var s=window.webpackJsonp=window.webpackJsonp||[],o=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var l=o;return i(i.s=8)}([function(e,t){e.exports=require("react")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={ESPN_KEY_PLAYS:"espnKeyPlays",ESPN_STATS:"espnStats",ESPN_BETS:"espnBet",ESPN_FANTASY:"espnFantasy",ESPN_SHOP:"espnShop",HELLO_WORLD:"helloWorld",FOX_KEY_PLAYS:"foxKeyPlays",FOX_MULTI_VIEW:"foxMultiview",FOX_STATS:"foxStats",BUILDER_BLOCK_PANEL:"builderBlockPanel"}},function(e,t,n){"use strict";var r,i=n(37),s=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=s.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function h(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=a("Date"),p=a("File"),g=a("Blob"),y=a("FileList");function v(e){return"[object Function]"===s.call(e)}var m=a("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var A,w=(A="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return A&&e instanceof A});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===s.call(e)||v(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:d,isUndefined:c,isDate:f,isFile:p,isBlob:g,isFunction:v,isStream:function(e){return h(e)&&v(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,s,o={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)o[s=r[i]]||(t[s]=e[s],o[s]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}));class i{constructor(e){r(this,"listeners",[]),r(this,"_value",void 0),this._value=e}get value(){return this._value}set value(e){this._value=e,this.notify()}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}notify(){this.listeners.forEach(e=>e(this._value))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(9);const i=[/bbd-web-sdk\.us-central1-dev\.gcp\.maestro\.io/];let s=null,o=[],a=!1;const l=async()=>{if(!s&&!a){0,a=!0;try{const{BrowserClient:e,defaultStackParser:t,defaultIntegrations:l,makeFetchTransport:c}=await n.e(2).then(n.bind(null,97)),u=null!==i.find(e=>e.test(window.location.href));s=new e({dsn:"https://91444a71cbaefc62e8dc813f22bad3bf@o4506894189330432.ingest.us.sentry.io/4509946717470720",transport:c,stackParser:t,integrations:l.filter(e=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name)),tracesSampleRate:u?1:.1,release:r.version,environment:u?"development":"production",enabled:!/localhost/.test(window.location.href)}),o.forEach(({error:e,extra:t})=>{var n;null===(n=s)||void 0===n||n.captureException(e,t)}),o=[]}catch(e){console.error("[maestro-web-sdk] Failed to load Sentry:",e)}finally{a=!1}}},c=(e,t)=>{s?s.captureException(e,t):(o.push({error:e,extra:t}),l())}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==h?(o[h].references++,o[h].updater(d)):o.push({identifier:u,updater:y(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=s(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var s=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(s,o[t]):e.appendChild(s)}}function f(e,t,n){var r=n.css,i=n.media,s=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function y(e,t){var n,r,i;if(t.singleton){var s=g++;n=p||(p=c(t)),r=d.bind(null,n,s,!1),i=d.bind(null,n,s,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var s=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=s}}}},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){a=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw i}}return s}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(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}e.exports=function(e){var t=r(e,4),n=t[1],i=t[3];if(!i)return n;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),a="/*# ".concat(o," */"),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([a]).join("\n")}return[n].join("\n")}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(i[o]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"ActionTrackEvent",(function(){})),n.d(t,"ImpressionTrackEvent",(function(){})),n.d(t,"Metadata",(function(){})),n.d(t,"PanelClickAction",(function(){})),n.d(t,"PanelViewAction",(function(){})),n.d(t,"PanelEvent",(function(){return c.PanelEvent})),n.d(t,"IMaestroEventDelegate",(function(){return u.a})),n.d(t,"IMaestroEvent",(function(){return f.a})),n.d(t,"IMaestroKeyPlaysResponse",(function(){return _.a})),n.d(t,"MaestroPanelType",(function(){return m.a})),n.d(t,"SDKEventConfigParams",(function(){return h.SDKEventConfigParams})),n.d(t,"SDKStopEventParams",(function(){return h.SDKStopEventParams})),n.d(t,"IUserSettings",(function(){return L.IUserSettings})),n.d(t,"DEFAULT_USER_SETTINGS",(function(){return L.a}));var r=n(0),i=n.n(r),s=n(14),o=n.n(s);function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=class{constructor(){a(this,"renderersMap",new Map)}async renderPanel(e){if(this.renderersMap.has(e)){this.renderersMap.get(e).unmount(),this.renderersMap.delete(e)}const t=await this.getRenderer(e),r=n(75).default,s=n(74).default;return t.render(i.a.createElement(r,null,i.a.createElement(s,null))),()=>{this.renderersMap.has(e)&&this.renderersMap.get(e)===t&&(t.unmount(),this.renderersMap.delete(e))}}async getRenderer(e){if(this.renderersMap.has(e))return this.renderersMap.get(e);const t=document.getElementById(e);if(!t)throw new Error(`Element with id ${e} not found`);const n={render:e=>{o.a.render(e,t)},unmount:()=>{o.a.unmountComponentAtNode(t),t.innerHTML=""}};return this.renderersMap.set(e,n),n}},c=n(18),u=n.n(c),h=n(19),d=n(35),f=n.n(d),p=n(3),g=n(33),y=n(17),v=n(10),m=n(1);function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class A{getAvailablePanelsFromConfig(){const e=z.getPageConfig();return e&&Array.isArray(e.panels)&&e.panels.length>0?e.panels.filter(e=>{var t,n;return!1!==(null===(t=e.renderer)||void 0===t||null===(n=t.supported_platforms)||void 0===n?void 0:n.bbd)}).map(e=>{const t=e.panel_type;return t&&Object.values(m.a).includes(t)?{type:t,title:e.panel_name||""}:null}).filter(e=>null!==e):[]}constructor(){b(this,"_panels",new p.a([])),b(this,"_currentPanel",new p.a(null)),b(this,"settingsManager",void 0),b(this,"settingsUnsubscribe",null),this.settingsManager=v.a.getInstance(),this.initializePanels(),this.subscribeToSettingsChanges()}initializePanels(){const e=this.filterPanels(),t=z.getIsProdEnv();e.length||t?this._panels.value=e:this._panels.value=[{type:"helloWorld",title:"HELLO WORLD"}],this.updateActivePanel()}subscribeToSettingsChanges(){this.settingsUnsubscribe=this.settingsManager.settings.subscribe(()=>{this.updatePanelsBasedOnSettings()})}filterPanels(){return this.getAvailablePanelsFromConfig().filter(e=>!this.settingsManager.isPanelHidden(e.type))}updateActivePanel(){!this.currentPanel&&this.panels[0]&&(this.currentPanel=this.panels[0].type),this.panels.length>0&&this._currentPanel.value&&!this.panels.find(e=>e.type===this._currentPanel.value)&&(this._currentPanel.value=this.panels[0].type)}updatePanelsBasedOnSettings(){const e=this.filterPanels();this._panels.value=e,this.updateActivePanel()}cleanup(){this.settingsUnsubscribe&&(this.settingsUnsubscribe(),this.settingsUnsubscribe=null)}get panels(){return this._panels.value}get panelsObservable(){return this._panels}get currentPanel(){return this._currentPanel.value}set currentPanel(e){this._currentPanel.value=e}get currentPanelObservable(){return this._currentPanel}setActivePanel(e){e!==this.currentPanel&&void 0!==this.panels.find(t=>t.type===e)&&(this.currentPanel=e,this.updateActivePanel())}getIndex(e){const t=this.panels.findIndex(t=>t.type===e);return-1!==t?t:null}getPanelType(e){var t;return(null===(t=this.panels[e])||void 0===t?void 0:t.type)||null}get panelTypeToLeft(){if(!this.currentPanel)return null;const e=this.getIndex(this.currentPanel);return null===e||0===e?null:this.getPanelType(e-1)}get panelTypeToRight(){if(!this.currentPanel)return null;const e=this.getIndex(this.currentPanel);return null===e||e===this.panels.length-1?null:this.getPanelType(e+1)}getUnlistedPanels(){const e=z.getPageConfig();return e&&Array.isArray(e.panels)?e.panels.filter(e=>!!e.panel_type&&!Object.values(m.a).includes(e.panel_type)).map(e=>({type:e.panel_type,title:e.panel_name||""})):[]}}var w=n(11),E=n(4),C=n(34);function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S={"664b9c57d59a7a431542d814":"https://static-prod.us-central1-espn-prod.gcp.maestro.io"};var k=class{constructor(e){P(this,"configObservable",new p.a(null)),P(this,"client",void 0);const t=S[e]||"https://static.gcp.maestro.io";this.client=new C.b({externalNetworkClient:new w.a({backoff:2,baseURL:t,delay:1e3,retries:5})})}async fetchPageConfigByMetadata(e,t){try{return await this.client.externalApiRequest({endpoint:`/pages/sites/${e}/metadata/${t}.json`})}catch(n){return Object(E.a)(n,{siteId:e,metadataValue:t}),console.error(`Failed to fetch page configuration for site ${e} and metadata value: ${t}:`,n instanceof Error?n.message:String(n)),Promise.resolve(null)}}fetchPageConfig({siteId:e,metadataValue:t,pageId:n}){return n?this.fetchPageConfigById(e,n):t?this.fetchPageConfigByMetadata(e,t):Promise.resolve(null)}async fetchPageConfigById(e,t){try{return await this.client.externalApiRequest({endpoint:`/pages/sites/${e}/pages/${t}.json`})}catch(n){return Object(E.a)(n,{siteId:e,pageId:t}),console.error(`Failed to fetch page configuration for site ${e} and page ID: ${t}:`,n instanceof Error?n.message:String(n)),Promise.resolve(null)}}static isPanelAvailable(e,t){var n;return null==e||null===(n=e.panels)||void 0===n?void 0:n.some(e=>{var n,r;return e.panel_type===t&&!1!==(null===(n=e.renderer)||void 0===n||null===(r=n.supported_platforms)||void 0===r?void 0:r.bbd)})}pollGlobalConfig(e){const t=24e4+Math.floor(12e4*Math.random());return this.client.pollExternalApiRequest({endpoint:"/config/global.json",interval:t,onData:e,onError:e=>{Object(E.a)(e,{context:"StaticService.pollGlobalConfig"}),console.error("Failed to poll global configuration",e instanceof Error?e.message:String(e))}})}};function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class x extends g.a{constructor(e="",t="",n,r){super(),B(this,"_eventId",new p.a("")),B(this,"_pageId",new p.a("")),B(this,"_title",new p.a("")),B(this,"_isLive",new p.a(!1)),B(this,"_isShowingPanel",new p.a(!1)),B(this,"playerTimeCode",null),B(this,"analyticsService",void 0),B(this,"delegate",void 0),B(this,"keyPlaysViewModel",null),B(this,"fantasyViewModel",null),B(this,"betsViewModel",null),B(this,"statsViewModel",null),B(this,"shopViewModel",null),B(this,"builderPanelViewModel",null),B(this,"panelManagerViewModel",void 0),B(this,"navigation",void 0),this._pageId.value=t,this._eventId.value=e,this.delegate=n,this.analyticsService=r,this.panelManagerViewModel=new A,this.navigation=new y.b}async initViewModels(){const e=z.getPageConfig(),t=[];if(k.isPanelAvailable(e,"espnKeyPlays")&&t.push(n.e(14).then(n.bind(null,229)).then(({default:e})=>{this.keyPlaysViewModel=new e(this.analyticsService)}).catch(e=>{console.warn("Failed to load KeyPlaysViewModel:",e)})),k.isPanelAvailable(e,"espnBet")&&t.push(n.e(11).then(n.bind(null,240)).then(({default:e})=>{this.betsViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load BetsViewModel:",e)})),k.isPanelAvailable(e,"espnStats")&&t.push(n.e(9).then(n.bind(null,237)).then(({default:e})=>{this.statsViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load StatsViewModel:",e)})),k.isPanelAvailable(e,"espnFantasy")&&t.push(n.e(12).then(n.bind(null,235)).then(({default:e})=>{this.fantasyViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load FantasyViewModel:",e)})),k.isPanelAvailable(e,"espnShop")&&t.push(n.e(10).then(n.bind(null,238)).then(({default:e})=>{this.shopViewModel=new e(this._eventId.value,this.analyticsService)}).catch(e=>{console.warn("Failed to load ShopViewModel:",e)})),k.isPanelAvailable(e,"builderBlockPanel")){var r;const i=null==e||null===(r=e.panels)||void 0===r?void 0:r.find(e=>"builderBlockPanel"===e.panel_type);i&&t.push(n.e(13).then(n.bind(null,123)).then(({BuilderPanelViewModel:e})=>{this.builderPanelViewModel=new e(i,this.analyticsService)}).catch(e=>{console.warn("Failed to load BuilderPanelViewModel:",e)}))}await Promise.all(t)}setActivePanel(e){const t=this.panelManagerViewModel.getIndex(e);null!==t?this.navigation.paused?(this.panelManagerViewModel.setActivePanel(e),this.navigation.focusKey="PANEL_NAV_BUTTON_"+t):console.warn("Cannot set active panel while navigation is not paused. Doing so will cause focus issues."):console.warn(`Panel type "${e}" not found.`)}updatePlayerTimeCode(e){var t,n;const r=new Date(e);if(isNaN(r.getTime()))return console.warn("Invalid timestamp provided:",e),void console.warn("Make sure the timestamp is a valid number. \nhttps://developers.maestro.io/sdk/web/maestro-event-interface/state/updatePlayerTimeCode");this.playerTimeCode=e,null===(t=this.keyPlaysViewModel)||void 0===t||t.onUpdatePlayerTimeCode(this.playerTimeCode),null===(n=this.statsViewModel)||void 0===n||n.onUpdatePlayerTimeCode(this.playerTimeCode)}getPlayerTimeCode(){return this.playerTimeCode}setDataToPanel(e){const t=Object.keys(e),n={espnStats:this.statsViewModel,espnBet:this.betsViewModel,espnKeyPlays:this.keyPlaysViewModel,espnFantasy:this.fantasyViewModel,espnShop:this.shopViewModel,builderBlockPanel:this.builderPanelViewModel,foxKeyPlays:null,foxMultiview:null,foxStats:null,helloWorld:null};for(const r of t){const t=e[r];if(!t)continue;const i=n[r];i?i.setDataToPanel&&i.setDataToPanel(t):console.log(`[setDataToPanel] Panel '${r}' not initialized/supported. Data ignored.`)}}async deinit(){var e,t,n,r,i;null===(e=this.betsViewModel)||void 0===e||e.cleanup(),null===(t=this.statsViewModel)||void 0===t||t.cleanup(),null===(n=this.fantasyViewModel)||void 0===n||n.cleanup(),null===(r=this.shopViewModel)||void 0===r||r.cleanup(),null===(i=this.builderPanelViewModel)||void 0===i||i.cleanup(),this.navigation.destroy();try{await this.didHidePanel()}catch(e){console.error("Error during didHidePanel in deinit:",e)}}updateKeyPlaysData(e){return this.keyPlaysViewModel?this.keyPlaysViewModel.setKeyPlays(e,this.playerTimeCode):Promise.resolve()}updateUserSettings(e){return new Promise(t=>{v.a.getInstance().updateSettings(e),t()})}startFocusManagement(){return this.navigation.setCurrentFocusedKey(this.navigation.focusKey||"PANEL_NAV_BUTTON_0"),setTimeout(()=>{this.navigation.resume()},0),Promise.resolve()}didStartPlayingClip(e){this.keyPlaysViewModel&&(this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentClipPlaybackProgress.value=0,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=e,this.keyPlaysViewModel.clearLoadFailureStatus(e))}didStopPlayingClip(e){this.keyPlaysViewModel&&(this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=null,this.keyPlaysViewModel.currentClipPlaybackProgress.value=null)}didFailToPlayClip(e){var t;null===(t=this.keyPlaysViewModel)||void 0===t||t.handleKeyPlayLoadFailure(e)}didUpdatePlaybackProgressOfClip(e,t){this.keyPlaysViewModel&&(this.keyPlaysViewModel.currentClipPlaybackProgress.value=t,this.keyPlaysViewModel.clearLoadFailureStatus(e))}async didShowPanel(){this.isShowingPanel=!0}async didHidePanel(){this.isShowingPanel=!1,this.navigation.focusKey=null}currentEventDoesNotSupportKeyPlays(){this.keyPlaysViewModel&&(this.keyPlaysViewModel.errorState.value="unsupportedEvent")}getCurrentEventID(){return this.eventId.value}getCurrentlyPlayingClipIndex(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.currentlyPlayingClipIndex.value)&&void 0!==e?e:null}getLastPlayedClipIndex(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.lastPlayedClipIndex.value)&&void 0!==e?e:null}getCurrentClipPlaybackProgress(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.currentClipPlaybackProgress.value)&&void 0!==e?e:null}getKeyPlaysCount(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.allItems.length)&&void 0!==e?e:0}get eventId(){return this._eventId}get title(){return this._title}get isLive(){return this._isLive}get isShowingPanel(){return this._isShowingPanel.value}set isShowingPanel(e){this._isShowingPanel.value=e}deliverFocus(){this.navigation.pause(),this.delegate.startFocusManagement()}}var T=n(36),_=n.n(T);function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class F{constructor(){O(this,"client",void 0),this.client=new w.a({baseURL:"https://insights.maestro.io",backoff:2,delay:1e3,retries:1})}isEnabled(){var e,t,n;const r=z.getGlobalConfig();return null===(e=null==r||null===(t=r.bbd)||void 0===t||null===(n=t.analytics)||void 0===n?void 0:n.enabled)||void 0===e||e}async action(e){if(this.isEnabled())try{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))null!=r&&t.append(n,r.toString());await this.client.post("/action",t,void 0,{"Content-Type":"application/x-www-form-urlencoded"})}catch(t){Object(E.a)(t,{payload:e}),console.error("Failed to send insights action:",t)}else console.warn("InsightsService: Analytics is disabled in global config")}async getServerTime(){if(!this.isEnabled())return{time:Date.now(),diff:0};const e=Date.now();try{return await this.client.get("/time",{_:`${Date.now()}-${this.randomId()}`,client_time:e})}catch(e){return Object(E.a)(e),console.error("Failed to get server time:",e),{time:Date.now(),diff:0}}}randomId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}}var R=n(16);function M(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class j{constructor(){M(this,"currentTime",0),M(this,"serverOffsetTime",0),M(this,"insightsService",void 0),M(this,"cacheManager",void 0),M(this,"pageConfig",null),this.insightsService=new F,this.cacheManager=new R.a}async getPayload(e){return this.currentTime=Date.now(),this.serverOffsetTime=await this.getDeviceOffset(),this.pageConfig=z.getPageConfig(),{...this.getPageInsights(),...this.getDeviceInsights(),...this.getInsightsInsights(),...this.getMetadataInsights(),...this.getReferrerInsights(),...this.getSessionInsights(),...this.getSiteInsights(),...this.getUserInsights(),...this.getEventInsights(e)}}getEventInsights(e){const t=e.ontology;return{e_d:"maestro",e_m:Object.values(e.metadata||{}).length>0?JSON.stringify(e.metadata):null,e_t:this.currentTime+this.serverOffsetTime,e_u:window.location.href,e0:t.kingdom,e1:t.phylum,e2:t.class,e3:t.order,e4:t.family,e5:t.genus,e6:t.species,t:this.currentTime}}getPageInsights(){const e=z.getPageConfig();return{p_c:"pages",p_id:null==e?void 0:e.page._id,p_n:null==e?void 0:e.page.name,p_s:null==e?void 0:e.page.slug,p_t:null==e?void 0:e.page.type}}getDevicePermanentID(){const e=localStorage.getItem("mio:device:permanentId");if(e)return e;const t=this.randomId();return localStorage.setItem("mio:device:permanentId",t),t}getDeviceCreated(){const e=this.cacheManager.getCache("mio:device:created");if(e)return Number(e);const t=(new Date).getTime();return this.cacheManager.setCache("mio:device:created",t.toString()),t}getTabID(){const e=sessionStorage.getItem("mio:device:tabId");if(e)return e;const t=this.randomId();return sessionStorage.setItem("mio:device:tabId",t),t}getDeviceInsights(){return{d_ct:this.getDeviceCreated(),d_nd:!1,d_np:window.navigator.platform,d_pid:this.getDevicePermanentID(),d_sh:window.screen.height,d_sw:window.screen.width,d_tid:this.getTabID(),d_tim:this.currentTime,d_tof:this.serverOffsetTime,d_ua:window.navigator.userAgent}}randomId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}async getDeviceOffset(){const e=Date.now(),{diff:t,time:n}=await this.insightsService.getServerTime(),r=Date.now();return(t-(r-e)-(r-n))/2}getInsightsInsights(){var e;return{i_id:null===(e=this.pageConfig)||void 0===e?void 0:e.insights._id}}getMetadataInsights(){return{m_iv:"1.00.0"}}getReferrerInsights(){return{r_d:"$direct",r_s:null,r_u:"$direct"}}getSessionID(){const e=sessionStorage.getItem("mio:session:id");if(e)return e;const t=this.randomId();return sessionStorage.setItem("mio:session:id",t),t}getSessionInsights(){return{se_id:this.getSessionID(),se_s:this.currentTime}}getSiteInsights(){var e,t,n,r,i;return{si_d:null===(e=this.pageConfig)||void 0===e?void 0:e.site.domainUrl,si_id:null===(t=this.pageConfig)||void 0===t?void 0:t.site._id,si_pid:(null===(n=this.pageConfig)||void 0===n?void 0:n.site.package.id)+"-sapphire",si_pv:(null===(r=this.pageConfig)||void 0===r?void 0:r.site.package.version)+"-sapphire",si_s:null===(i=this.pageConfig)||void 0===i?void 0:i.site.slug}}getUserInsights(){return{u_a:null,u_c:null,u_e:null,u_id:null,u_li:!1,u_n:null,u_nu:!1,u_s:null,u_u:null,u_un:null}}}var I=n(9);function N(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=class{constructor(){N(this,"insightsService",void 0),N(this,"insightsPayloadBuilder",void 0),N(this,"SDKSessionId",""),N(this,"pageSessionId",""),N(this,"pinchBackSessionId",""),N(this,"pageSessionBeaconTimeoutId",null),N(this,"isPageSessionBeaconRunning",!1),N(this,"isPageSessionActive",!1),this.insightsService=new F,this.insightsPayloadBuilder=new j}async trackAction(e){z.getMaestroEventViewModel().delegate.trackAction(e);const t=await this.insightsPayloadBuilder.getPayload({ontology:{class:e.e2_class,family:e.e4_family,order:e.e3_order,kingdom:e.e0_kingdom,phylum:e.e1_phylum,genus:e.e5_genus,species:e.e6_species},metadata:e.metadata});await this.insightsService.action(t)}async trackImpression(e){z.getMaestroEventViewModel().delegate.trackImpression(e);const t=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:e.e0_kingdom,phylum:e.e1_phylum,class:e.e2_class,order:e.e3_order,family:e.e4_family,genus:e.e5_genus,species:e.e6_species},metadata:e.metadata});await this.insightsService.action(t)}async panelView(e,t){const n=z.getPageConfig(),r=this.getPanelDataFromPageConfig(e,n);await this.trackImpression({name:"panel_selected",e0_kingdom:"panel",e1_phylum:"view",e2_class:r.panel_type,e3_order:r.panel_id,e4_family:r.panel_name,metadata:{...t||{},...this.getBaseMetadataFromPageConfig(n)}})}async panelClick({type:e,metadata:t,name:n}){const r=z.getPageConfig(),i=this.getPanelDataFromPageConfig(e,r);await this.trackAction({name:n,e0_kingdom:"panel",e1_phylum:"engage",e2_class:i.panel_type,e3_order:i.panel_id,e4_family:i.panel_name,metadata:{...this.getBaseMetadataFromPageConfig(r),...t}})}getBaseMetadataFromPageConfig(e){if(!e)return console.warn("Page Config not found. Could not extract metadata."),{league:"",airing:"",event:"",sport:""};const t=e.page.metadata,n="airing"===(null==t?void 0:t.external_field_4)&&t.external_field_1||"",r="event"===(null==t?void 0:t.external_field_4)&&t.external_field_1||"unknown",i=(null==t?void 0:t.external_field_2)||"";return{league:(null==t?void 0:t.external_field_3)||"",airing:n,event:r,sport:i}}getPanelDataFromPageConfig(e,t){if(!t)return console.warn("Page Config not found. Could not extract panel data."),{panel_id:"",panel_name:"",panel_type:""};const n=t.panels.find(t=>t.panel_type===e);return n?{panel_id:n._id,panel_name:n.panel_name||"",panel_type:n.panel_type||""}:(console.warn(`Panel of type ${e} not found in Page Config.`),{panel_id:"",panel_name:"",panel_type:""})}async SDKSessionStart(){try{this.SDKSessionId=Math.random().toString(36).substring(2,15);const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"sdk"},metadata:{version:I.version}});await this.insightsService.action(e)}catch(e){console.error("Failed to start SDK session: "+e),Object(E.a)(e,{context:"AnalyticsService.SDKSessionStart"})}}async pageSessionStart(){try{this.pageSessionId=Math.random().toString(36).substring(2,15),this.isPageSessionActive=!0;const e=z.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"page"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId}});await this.insightsService.action(n),this.scheduleNextBeacon()}catch(e){console.error("Failed to start page session: "+e),Object(E.a)(e,{context:"AnalyticsService.pageSessionStart"})}}async pageSessionEnd(){try{this.isPageSessionActive=!1;const e=z.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"page"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId}});console.log("AnalyticsService: pageSessionEnd",n),await this.insightsService.action(n)}catch(e){console.error("Failed to end page session: "+e),Object(E.a)(e,{context:"AnalyticsService.pageSessionEnd"})}finally{this.pageSessionBeaconTimeoutId&&(clearTimeout(this.pageSessionBeaconTimeoutId),this.pageSessionBeaconTimeoutId=null),this.pageSessionId=""}}async pinchBackSessionStart(){try{this.pinchBackSessionId=Math.random().toString(36).substring(2,15);const e=z.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"pinchback"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});await this.insightsService.action(n)}catch(e){console.error("Failed to start pinchback session: "+e),Object(E.a)(e,{context:"AnalyticsService.pinchBackSessionStart"})}}async pinchBackSessionEnd(){try{const e=z.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"pinchback"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});console.log("AnalyticsService: pinchBackSessionEnd",n),await this.insightsService.action(n)}catch(e){console.error("Failed to end pinchback session: "+e),Object(E.a)(e,{context:"AnalyticsService.pinchBackSessionEnd"})}finally{this.pinchBackSessionId=""}}async SDKSessionEnd(){try{const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"sdk"},metadata:{version:I.version}});await this.insightsService.action(e)}catch(e){console.error("Failed to end SDK session: "+e),Object(E.a)(e,{context:"AnalyticsService.SDKSessionEnd"})}finally{this.SDKSessionId=""}}scheduleNextBeacon(){var e,t;if(!this.isPageSessionActive)return;const n=z.getGlobalConfig(),r=(null==n||null===(e=n.bbd)||void 0===e||null===(t=e.analytics)||void 0===t?void 0:t.beacon_interval)||240;this.pageSessionBeaconTimeoutId=setTimeout(async()=>{await this.sendSessionBeacon()},1e3*r)}async sendSessionBeacon(){if(!this.isPageSessionBeaconRunning&&this.isPageSessionActive){this.isPageSessionBeaconRunning=!0;try{await this.sessionBeacon()}catch(e){console.error("Failed to send session beacon: "+e),Object(E.a)(e,{context:"AnalyticsService.sendSessionBeacon",SDKSessionId:this.SDKSessionId,pageSessionId:this.pageSessionId})}finally{this.isPageSessionBeaconRunning=!1,this.isPageSessionActive&&this.scheduleNextBeacon()}}}async sessionBeacon(){const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"beacon",class:"frequent"},metadata:{paywall_gated:!1,viewer_id:this.insightsPayloadBuilder.getDevicePermanentID(),is_billable:!1,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});await this.insightsService.action(e)}},L=n(13);function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class U{constructor(e){K(this,"renderer",void 0),K(this,"siteID",""),K(this,"maestroEventViewModel",null),K(this,"pageConfig",null),K(this,"globalConfig",null),K(this,"globalConfigPoller",null),K(this,"_analyticsService",null),K(this,"isProdEnv",!0),K(this,"activePanelUnmountFn",null),this.renderer=e}get analyticsService(){return this._analyticsService||(this._analyticsService=new D),this._analyticsService}static getInstance(){if(!U.instance){const e=new l;U.instance=new U(e)}return U.instance}async userDidStartWatchingEvent({eventId:e,pageId:t,userSettings:n,delegate:r,useProdEnv:i=!0}){this.isProdEnv=i;const s=this.getSiteID();if(!s||""===s.trim())throw new Error("siteID must be set before calling userDidStartWatchingEvent.");if(!e&&!t)throw new Error("Either eventId or pageId must be provided to load the page configuration.");const o=new k(s);if(this.pageConfig=await o.fetchPageConfig({siteId:s,metadataValue:e,pageId:t}),!this.pageConfig)throw new Error(`Could not determine page configuration for siteId: ${s}, pageId: ${t} and eventId: ${e}.`);return this.globalConfigPoller=o.pollGlobalConfig(e=>{this.globalConfig=e}),n&&v.a.getInstance().updateSettings(n),await this.analyticsService.SDKSessionStart(),this.maestroEventViewModel=new x(e,t,r,this.analyticsService),await this.maestroEventViewModel.initViewModels(),await this.analyticsService.pageSessionStart(),this.maestroEventViewModel}async userDidStopWatchingEvent(e){this.activePanelUnmountFn&&await this.activePanelUnmountFn(),await this.analyticsService.pageSessionEnd(),this.maestroEventViewModel&&(await this.maestroEventViewModel.deinit(),this.maestroEventViewModel=null),await this.analyticsService.SDKSessionEnd(),this.globalConfigPoller&&(this.globalConfigPoller.stop(),this.globalConfigPoller=null)}configure(e){this.setSiteID(e.siteID),e.userSettings&&v.a.getInstance().updateSettings(e.userSettings),console.info("MaestroWebSDK configured",e)}setSiteID(e){if(!e||""===e.trim())throw new Error("Site ID must be provided");this.siteID=e}getSiteID(){return this.siteID}getIsProdEnv(){return this.isProdEnv}getMaestroEventViewModel(){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set");return this.maestroEventViewModel}async renderPanel(e){await this.analyticsService.pinchBackSessionStart();const t=await this.renderer.renderPanel(e);let n=!1;const r=async()=>{n||(n=!0,t(),await this.analyticsService.pinchBackSessionEnd(),this.activePanelUnmountFn===r&&(this.activePanelUnmountFn=null))};return this.activePanelUnmountFn=r,r}getPageConfig(){return this.pageConfig}getGlobalConfig(){return this.globalConfig}}K(U,"instance",void 0);const H=U.getInstance();var z=t.default=H},function(e){e.exports=JSON.parse('{"name":"@maestro_io/maestro-web-sdk","private":false,"version":"5.0.0","type":"commonjs","license":"MIT","main":"dist/maestro-web-sdk.umd.js","module":"dist/maestro-web-sdk.esm.js","types":"dist/index.d.ts","files":["dist"],"exports":{".":{"import":"./dist/maestro-web-sdk.esm.js","require":"./dist/maestro-web-sdk.umd.js","types":"./dist/index.d.ts"}},"sideEffects":["*.css"],"engines":{"node":">=10"},"scripts":{"dev":"nodemon","sdk-only":"webpack-dev-server --config webpack/webpack.dev.js","lint":"eslint src --ext .ts,.tsx --ignore-pattern \'**/*.test.*\'","test":"jest","build":"webpack --config webpack/webpack.prod.js && tsc --emitDeclarationOnly --declarationDir dist/types && dts-bundle --name @maestro_io/maestro-web-sdk --main dist/types/src/index.d.ts --out ../../index.d.ts && rm -rf dist/types","types":"tsc -b","analyze":"ANALYZE=true webpack --config webpack/webpack.prod.js","format":"prettier --write .","format:check":"prettier --check ."},"devDependencies":{"@babel/core":"7.12.3","@babel/plugin-proposal-class-properties":"7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"7.12.1","@babel/preset-react":"7.12.1","@babel/preset-typescript":"7.12.1","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"24.0.25","@types/node":"10","@types/prop-types":"^15.7.10","@types/react":"16.14.34","@types/react-dom":"16.9.18","@typescript-eslint/eslint-plugin":"2.34.0","@typescript-eslint/parser":"2.34.0","babel-jest":"26.6.3","babel-loader":"8","css-loader":"5","dts-bundle":"^0.7.3","enzyme":"3.11.0","enzyme-adapter-react-16":"1.15.7","eslint":"6.8.0","eslint-config-prettier":"6.0.0","eslint-plugin-react":"7.20.0","file-loader":"^6.2.0","globals":"^10","html-webpack-plugin":"4","husky":"^6.0.0","identity-obj-proxy":"^3.0.0","jest":"26.6.3","nodemon":"^3.1.9","prettier":"2.0.5","react-test-renderer":"16.14.0","style-loader":"2","tsconfig-paths-webpack-plugin":"^4.2.0","typescript":"^4","webpack":"4","webpack-bundle-analyzer":"3.9.0","webpack-cli":"3.3.12","webpack-dev-server":"3.11.2"},"dependencies":{"@sentry/browser":"7.68.0","axios":"^0.27.2","prop-types":"15.8.1","react":"16.14.0","react-dom":"16.14.0"},"peerDependencies":{"react":"^16.0.0","react-dom":"^16.0.0"},"resolutions":{"sockjs-client":"1.5.1","cheerio":"0.22.0","@sentry/replay":"0.6.14"}}')},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),i=n(13),s=n(1);function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={[s.a.ESPN_BETS]:"bets",[s.a.ESPN_STATS]:"stats",[s.a.ESPN_KEY_PLAYS]:"keyPlays",[s.a.ESPN_FANTASY]:"fantasy",[s.a.ESPN_SHOP]:"shop"};class l{constructor(){o(this,"_settings",void 0),this._settings=new r.a(i.a)}static getInstance(){return l.instance||(l.instance=new l),l.instance}get settings(){return this._settings}getCurrentSettings(){return this._settings.value}updateSettings(e){if(!this.validateSettings(e))return void console.warn("Invalid user settings provided, using default setting");const t=this.mergeSettings(this._settings.value,e);this._settings.value=t}getPanelSettings(e){var t;return null===(t=this._settings.value.panels)||void 0===t?void 0:t[e]}isPanelHidden(e){const t=this.mapPanelTypeToSettingsKey(e);if(!t)return!1;const n=this.getPanelSettings(t);return!0===(null==n?void 0:n.hidePanel)}shouldHideWagers(){const e=this.getPanelSettings("bets");return!0===(null==e?void 0:e.hideWagers)}resetToDefaults(){this._settings.value=i.a}validateSettings(e){if(!e||"object"!=typeof e)return!1;if(e.panels&&"object"!=typeof e.panels)return!1;if(e.panels)for(const[t,n]of Object.entries(e.panels)){if(n&&"object"!=typeof n)return!1;if(n)for(const[e,r]of Object.entries(n))if(void 0!==r&&"boolean"!=typeof r)return console.warn(`Invalid setting value for ${t}.${e}: expected boolean, got ${typeof r}`),!1}return!0}mergeSettings(e,t){const n={panels:{...e.panels}};if(t.panels)for(const[e,r]of Object.entries(t.panels))if(r){const t={...n.panels[e]};for(const[e,n]of Object.entries(r))void 0!==n&&(t[e]=n);n.panels[e]=t}return n}mapPanelTypeToSettingsKey(e){return e in a?a[e]:null}}o(l,"instance",void 0)},function(e,t,n){"use strict";var r=n(46),i=n.n(r);function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=class{constructor({baseURL:e,retries:t,delay:n,backoff:r,axiosInstance:o}){s(this,"client",void 0),s(this,"retries",void 0),s(this,"delay",void 0),s(this,"backoff",void 0),this.retries=t,this.delay=n,this.backoff=r,this.client=o||i.a.create({baseURL:e,headers:{"Content-Type":"application/json"},timeout:5e3})}async retry(e,t=0){try{return await e()}catch(n){const r=n;if(t<this.retries&&(r.response&&429===r.response.status||"ECONNABORTED"===r.code)){const n=this.delay*Math.pow(this.backoff,t);return console.log(`Retrying request in ${n}ms due to: ${r.message}`),await new Promise(e=>setTimeout(e,n)),this.retry(e,t+1)}throw n}}async get(e,t,n){return this.retry(async()=>(await this.client.get(e,{params:t,headers:n})).data)}async getWithHeaders(e,t,n){return this.retry(async()=>{const r=await this.client.get(e,{params:t,headers:n});return{data:r.data,headers:r.headers}})}async post(e,t,n,r){return this.retry(async()=>(await this.client.post(e,t,{params:n,headers:r})).data)}async postWithHeaders(e,t,n,r){return this.retry(async()=>{const i=await this.client.post(e,t,{params:n,headers:r});return{data:i.data,headers:i.headers}})}setAuthentication(e,t){this.client.defaults.headers.common.Authorization=e?"Bearer "+e:"",this.client.defaults.headers.common["x-maestro-api-key"]=t||""}}},function(e,t,n){"use strict";var r=n(2);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=i.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(i,o),Object.defineProperty(s,"isAxiosError",{value:!0}),i.from=function(e,t,n,o,a,l){var c=Object.create(s);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,o,a),c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={panels:{bets:{hidePanel:!1,hideWagers:!1},stats:{hidePanel:!1},keyPlays:{hidePanel:!1},fantasy:{hidePanel:!1}}}},function(e,t){e.exports=require("react-dom")},function(e,t,n){"use strict";var r=n(12);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(2).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}));class i{constructor(e=36e5,t=5242880,n="1.0"){r(this,"prefix","maestro-cache-"),r(this,"cacheDuration",void 0),r(this,"maxSize",void 0),r(this,"version",void 0),r(this,"accessLog",void 0),this.cacheDuration=e,this.maxSize=t,this.version=n,this.accessLog=new Map}produceCacheKey(e){return`${this.prefix}${this.version}:${e}`}getCurrentSize(){let e=0;for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);if(null!=n&&n.startsWith(this.prefix)){const t=localStorage.getItem(n);t&&(e+=n.length+t.length)}}return e}cleanupOldEntries(){const e=Date.now(),t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(null!=r&&r.startsWith(this.prefix)){const n=localStorage.getItem(r);if(n)try{const{timestamp:i}=JSON.parse(n);e-i>this.cacheDuration&&t.push(r)}catch(e){t.push(r)}}}t.forEach(e=>{localStorage.removeItem(e);const t=e.replace(this.prefix+this.version+":","");this.accessLog.delete(t)})}cleanupLRUEntries(e){const t=Array.from(this.accessLog.entries()).sort(([,e],[,t])=>e-t);for(;this.getCurrentSize()+e>this.maxSize&&t.length>0;){const[e]=t.shift();localStorage.removeItem(this.produceCacheKey(e)),this.accessLog.delete(e)}}setCache(e,t){this.cleanupOldEntries();const n=this.produceCacheKey(e),r={data:t,timestamp:Date.now()},i=n.length+JSON.stringify(r).length;this.cleanupLRUEntries(i),this.getCurrentSize()+i>this.maxSize||(localStorage.setItem(n,JSON.stringify(r)),this.accessLog.set(e,Date.now()))}getCache(e){this.cleanupOldEntries();const t=this.produceCacheKey(e),n=localStorage.getItem(t);if(!n)return null;try{const{data:r,timestamp:i}=JSON.parse(n),s=Date.now();return s-i>this.cacheDuration?(localStorage.removeItem(t),this.accessLog.delete(e),null):(this.accessLog.set(e,s),r)}catch(n){return localStorage.removeItem(t),this.accessLog.delete(e),null}}clearCache(e){const t=this.produceCacheKey(e);localStorage.removeItem(t),this.accessLog.delete(e)}clearCacheByPattern(e){const t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);null!=r&&r.startsWith(this.prefix)&&r.includes(e)&&t.push(r)}t.forEach(e=>{localStorage.removeItem(e);const t=e.replace(this.prefix+this.version+":","");this.accessLog.delete(t)})}clearAllCache(){const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);null!=n&&n.startsWith(this.prefix)&&e.push(n)}e.forEach(e=>localStorage.removeItem(e)),this.accessLog.clear()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));const r=e=>{let{offsetParent:t}=e;const n=e.offsetHeight,r=e.offsetWidth;let i=e.offsetLeft,s=e.offsetTop;for(;t&&1===t.nodeType;)i+=t.offsetLeft-t.scrollLeft,s+=t.offsetTop-t.scrollTop,({offsetParent:t}=t);return{height:n,left:i,top:s,width:r}};var i=(e,t)=>{const n=e&&e.parentNode;if(n){const i=r(n),{height:s,left:o,top:a,width:l}=r(e);t(o-i.left,a-i.top,l,s,o,a)}};function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o="undefined"!=typeof window&&window.document,a=o?window.innerWidth:0,l=o?window.innerHeight:0;class c{constructor(){s(this,"debugCtx",void 0),s(this,"layoutsCtx",void 0),o?(this.debugCtx=c.createCanvas("sn-debug",1010),this.layoutsCtx=c.createCanvas("sn-layouts",1e3)):(this.debugCtx=null,this.layoutsCtx=null)}static createCanvas(e,t){const n=document.querySelector("#"+e)||document.createElement("canvas");n.setAttribute("id",e);const r=n.getContext("2d");if(!r)throw new Error("Could not get 2d context from canvas");return n.style.cssText="position: fixed; top: 0; left: 0; z-index: "+t,document.body.appendChild(n),n.width=a,n.height=l,r}clear(){o&&this.debugCtx&&this.debugCtx.clearRect(0,0,a,l)}clearLayouts(){o&&this.layoutsCtx&&this.layoutsCtx.clearRect(0,0,a,l)}drawLayout(e,t,n){o&&this.layoutsCtx&&(this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(e.left,e.top,e.width,e.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red",this.layoutsCtx.fillText(t,e.left,e.top+10),this.layoutsCtx.fillText(n,e.left,e.top+25),this.layoutsCtx.fillText("left: "+e.left,e.left,e.top+40),this.layoutsCtx.fillText("top: "+e.top,e.left,e.top+55))}drawPoint(e,t,n="blue",r=10){o&&this.debugCtx&&(this.debugCtx.strokeStyle=n,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(e-r/2,t-r/2,r,r))}}var u=c;function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d="SN:ROOT",f={left:[37],up:[38],right:[39],down:[40],enter:[13],back:[8,10009,461]},p=["#0FF","#FF0","#F0F"],g={leading:!0,trailing:!1},y=(e,t,n={})=>{let r=null,i=0;const{leading:s=!0,trailing:o=!0}=n;return function(...n){const a=Date.now();i||s||(i=a);const l=t-(a-i);l<=0||l>t?(r&&(clearTimeout(r),r=null),i=a,e.apply(this,n)):!r&&o&&(r=window.setTimeout(()=>{i=s?Date.now():0,r=null,e.apply(this,n)},l))}},v=(e,t)=>[...e].sort((e,n)=>{const r=t(e),i=t(n);return r<i?-1:r>i?1:0}),m=e=>e[0],b=(e,t)=>e.filter(e=>!t.includes(e)),A=(e,t)=>e.forEach(t);class w{static getCutoffCoordinate(e,t,n,r){const i=r.left,s=r.top,o=r.width,a=r.height,l=e?s:i,c=e?a:o;return t?n?l:l+c:n?l+c:l}static getRefCorners(e,t,n){const r=n.left,i=n.top,s=n.width,o=n.height,a={a:{x:0,y:0},b:{x:0,y:0}};switch(e){case"up":{const e=t?i+o:i;a.a={x:r,y:e},a.b={x:r+s,y:e};break}case"down":{const e=t?i:i+o;a.a={x:r,y:e},a.b={x:r+s,y:e};break}case"left":{const e=t?r+s:r;a.a={x:e,y:i},a.b={x:e,y:i+o};break}case"right":{const e=t?r:r+s;a.a={x:e,y:i},a.b={x:e,y:i+o};break}}return a}static isAdjacentSlice(e,t,n){const{a:r,b:i}=e,{a:s,b:o}=t,a=n?"x":"y",l=r[a],c=i[a],u=s[a],h=o[a],d=.2*(c-l);return Math.max(0,Math.min(c,h)-Math.max(l,u))>=d}static getPrimaryAxisDistance(e,t,n){const{a:r}=e,{a:i}=t,s=n?"y":"x";return Math.abs(i[s]-r[s])}static getSecondaryAxisDistance(e,t,n){const{a:r,b:i}=e,{a:s,b:o}=t,a=n?"x":"y",l=r[a],c=i[a],u=s[a],h=o[a],d=[];return d.push(Math.abs(u-l)),d.push(Math.abs(u-c)),d.push(Math.abs(h-l)),d.push(Math.abs(h-c)),Math.min(...d)}sortSiblingsByPriority(e,t,n,r){const i="down"===n||"up"===n,s=w.getRefCorners(n,!1,t);return[...e].sort((e,t)=>{const r=w.getRefCorners(n,!0,e.layout),o=w.getRefCorners(n,!0,t.layout),a=w.isAdjacentSlice(s,r,i),l=w.isAdjacentSlice(s,o,i),c=a?w.getPrimaryAxisDistance:w.getSecondaryAxisDistance,u=l?w.getPrimaryAxisDistance:w.getSecondaryAxisDistance,h=a?w.getSecondaryAxisDistance:w.getPrimaryAxisDistance,d=l?w.getSecondaryAxisDistance:w.getPrimaryAxisDistance,f=c(s,r,i),p=u(s,o,i);return(5*f+h(s,r,i)+1)/(a?5:1)-(5*p+d(s,o,i)+1)/(l?5:1)})}constructor(e={}){h(this,"focusableComponents",void 0),h(this,"focusKey",void 0),h(this,"parentsHavingFocusedChild",void 0),h(this,"nativeMode",void 0),h(this,"throttle",void 0),h(this,"throttleKeypresses",void 0),h(this,"pressedKeys",void 0),h(this,"paused",void 0),h(this,"keyDownEventListener",void 0),h(this,"clickEventListener",void 0),h(this,"keyUpEventListener",void 0),h(this,"keyMap",void 0),h(this,"debug",void 0),h(this,"visualDebugger",void 0),h(this,"logIndex",void 0),this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.pressedKeys={},this.paused=!0,this.keyDownEventListener=null,this.clickEventListener=null,this.keyUpEventListener=null,this.keyMap=f,this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.onKeyEvent=this.onKeyEvent.bind(this),this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.init(e)}init({debug:e=!1,visualDebug:t=!1,nativeMode:n=!1,throttle:r=0,throttleKeypresses:i=!1}={}){this.nativeMode=n,this.throttleKeypresses=i,this.debug=e,this.nativeMode||(Number.isInteger(r)&&r>0&&(this.throttle=r),this.bindEventHandlers(),t&&(this.visualDebugger=new u,this.startDrawLayouts()))}startDrawLayouts(){const e=()=>{requestAnimationFrame(()=>{var t;null===(t=this.visualDebugger)||void 0===t||t.clearLayouts(),Object.entries(this.focusableComponents).forEach(([e,t])=>{var n;null===(n=this.visualDebugger)||void 0===n||n.drawLayout(t.layout,e,t.parentFocusKey)}),e()})};e()}destroy(){this.unbindEventHandlers()}getEventType(e){return Object.keys(this.getKeyMap()).find(t=>this.getKeyMap()[t].includes(e))}bindEventHandlers(){if("undefined"!=typeof window&&window.addEventListener){const e=e=>{if(!0===this.paused)return;this.debug&&(this.logIndex+=1);const t=this.getEventType(e.keyCode);if(!t)return;this.pressedKeys[t]=this.pressedKeys[t]?this.pressedKeys[t]+1:1,e.preventDefault(),e.stopPropagation();const n={pressedKeys:this.pressedKeys};if(this.focusKey&&this.getNodeLayoutByFocusKey(this.focusKey)&&(n.layout=this.getNodeLayoutByFocusKey(this.focusKey)),"enter"===t&&this.focusKey)return void this.onEnterPress(n);if("back"===t&&this.focusKey)return void this.onBackPress(n);var r;!1===this.onArrowPress(t,n)?(this.log("keyDownEventListener","default navigation prevented"),null===(r=this.visualDebugger)||void 0===r||r.clear()):this.onKeyEvent(e)};this.keyDownEventListener=this.throttle?y(e,this.throttle,g):e,this.keyUpEventListener=e=>{const t=this.getEventType(e.keyCode);var n,r;(t&&delete this.pressedKeys[t],this.throttle&&!this.throttleKeypresses)&&(null===(n=this.keyDownEventListener)||void 0===n||null===(r=n.cancel)||void 0===r||r.call(n));"enter"===t&&this.focusKey&&this.onEnterRelease()},this.clickEventListener=e=>{if(!0===this.paused)return;const t=e.target;if(!t)return;const n=this.findFocusKeyForElement(t);if(!n)return;const r={pressedKeys:{},event:e,mouseClick:!0},i=this.getNodeLayoutByFocusKey(n);i&&(r.layout=i);this.focusKey===n||this.setFocus(n,r),this.onClickPress(r)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.keyDownEventListener),window.addEventListener("click",this.clickEventListener)}}unbindEventHandlers(){"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("keydown",this.keyDownEventListener),window.removeEventListener("click",this.clickEventListener),this.keyDownEventListener=null,this.clickEventListener=null,this.throttle&&(window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null))}findFocusKeyForElement(e){for(const t of Object.keys(this.focusableComponents)){const n=this.focusableComponents[t];if(n&&n.node&&n.focusable&&(n.node===e||n.node.contains(e)))return t}return null}onClickPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onClickPressHandler)||void 0===t||t.call(n,e):this.log("onClickPress","componentNotFocusable"):this.log("onClickPress","noComponent")}onEnterPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onEnterPressHandler)||void 0===t||t.call(n,e):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")}onBackPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onBackPressHandler)||void 0===t||t.call(n,e):this.log("onBackPress","componentNotFocusable"):this.log("onBackPress","noComponent")}onEnterRelease(){var e;const t=this.focusableComponents[this.focusKey];t?t.focusable?null===(e=t.onEnterReleaseHandler)||void 0===e||e.call(t):this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")}onArrowPress(e,t){var n;const r=this.focusableComponents[this.focusKey];if(r)return null===(n=r.onArrowPressHandler)||void 0===n?void 0:n.call(r,e,t);this.log("onArrowPress","noComponent")}navigateByDirection(e,t={pressedKeys:{}}){if(!0===this.paused)return;const n=["down","up","left","right"];n.includes(e)?(this.log("navigateByDirection","direction",e),this.smartNavigate(e,null,t)):this.log("navigateByDirection",`Invalid direction. You passed: \`${e}\`, but you can use only these: `,n)}onKeyEvent(e){var t;null===(t=this.visualDebugger)||void 0===t||t.clear();const n=Object.keys(this.getKeyMap()).find(t=>this.getKeyMap()[t].includes(e.keyCode));n&&this.smartNavigate(n,null,{pressedKeys:{},event:e})}smartNavigate(e,t,n){this.log("smartNavigate","direction",e),this.log("smartNavigate","fromParentFocusKey",t),this.log("smartNavigate","this.focusKey",this.focusKey),this.nativeMode||t||Object.values(this.focusableComponents).forEach(e=>{e.layoutUpdated=!1});const r=this.focusableComponents[t||this.focusKey];if(this.log("smartNavigate","currentComponent",r?r.focusKey:void 0,r?r.node:void 0),r){this.updateLayout(r.focusKey);const{parentFocusKey:t,focusKey:i,layout:s}=r,o="down"===e||"up"===e,a="down"===e||"right"===e,l=w.getCutoffCoordinate(o,a,!1,s),c=Object.values(this.focusableComponents).filter(e=>{if(e.parentFocusKey===t&&e.focusable){this.updateLayout(e.focusKey);const t=w.getCutoffCoordinate(o,a,!0,e.layout);return a?t>=l:t<=l}return!1});if(this.debug&&this.log("smartNavigate","siblings",c),c.length>0){const t=this.sortSiblingsByPriority(c,s,e,i);this.debug&&this.log("smartNavigate","sortedSiblings",t);const r=t[0];r&&this.setFocus(r.focusKey,n)}else this.log("smartNavigate","noSiblings"),t&&this.smartNavigate(e,t,n)}}saveLastFocusedChildKey(e,t){e&&(this.log("saveLastFocusedChildKey",e.focusKey+" lastFocusedChildKey set",t),e.lastFocusedChildKey=t)}log(e,t,...n){this.debug&&console.log(`%c${e}%c${t}`,`background: ${p[this.logIndex%p.length]}; color: black; padding: 1px 5px;`,"background: #333; color: #BADA55; padding: 1px 5px;",...n)}getNextFocusKey(e){this.log("getNextFocusKey","targetFocusKey",e);const t=this.focusableComponents[e];if(!t)return e;const{trackChildren:n}=t;if(!n)return e;const r=Object.values(this.focusableComponents).filter(t=>t.parentFocusKey===e&&t.focusable);if(0===r.length)return e;const{lastFocusedChildKey:i,preferredChildFocusKey:s}=t;if(i&&!t.forgetLastFocusedChild&&this.isParticipatingFocusableComponent(i))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",i),this.getNextFocusKey(i);if(s&&this.isParticipatingFocusableComponent(s))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",s),this.getNextFocusKey(s);r.forEach(e=>this.updateLayout(e.focusKey));const{focusKey:o}=(e=>{const t=v(e,({layout:e})=>Math.abs(e.left)+Math.abs(e.top));return m(t)})(r);return this.log("getNextFocusKey","childKey will be focused",o),this.getNextFocusKey(o)}addFocusable({focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:s,onArrowPressHandler:o,onBecameFocusedHandler:a,onBecameBlurredHandler:l,forgetLastFocusedChild:c,trackChildren:u,onUpdateFocus:h,onUpdateHasFocusedChild:d,preferredChildFocusKey:f,onClickPressHandler:p,autoRestoreFocus:g,focusable:y=!0,blockNavigationOut:v}){this.focusableComponents[e]={focusKey:e,node:t,parentFocusKey:n,onClickPressHandler:p,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:s,onArrowPressHandler:o,onBecameFocusedHandler:a,onBecameBlurredHandler:l,onUpdateFocus:h,onUpdateHasFocusedChild:d,forgetLastFocusedChild:c,trackChildren:u,lastFocusedChildKey:null,preferredChildFocusKey:f,focusable:y,blockNavigationOut:v,autoRestoreFocus:g,layout:{x:0,y:0,width:0,height:0,left:0,top:0,node:t},layoutUpdated:!1},this.nativeMode||(this.updateLayout(e),e===this.focusKey&&this.setFocus(e))}removeFocusable({focusKey:e}){const t=this.focusableComponents[e];if(t){const{parentFocusKey:n}=t;Reflect.deleteProperty(this.focusableComponents,e);const r=this.focusableComponents[n],i=e===this.focusKey;if(i&&(this.paused?this.focusKey=null:this.setFocus("PANEL_NAVIGATION")),r&&r.lastFocusedChildKey===e&&(r.lastFocusedChildKey=null),this.nativeMode)return;i&&r&&r.autoRestoreFocus&&!this.paused&&this.setFocus(n)}}getNodeLayoutByFocusKey(e){const t=this.focusableComponents[e];return t?(this.updateLayout(t.focusKey),t.layout):null}setCurrentFocusedKey(e,t={pressedKeys:{}}){if(this.isFocusableComponent(this.focusKey)&&e!==this.focusKey){var n,r;const e=this.focusableComponents[this.focusKey],i=this.focusableComponents[e.parentFocusKey];this.saveLastFocusedChildKey(i,this.focusKey),null===(n=e.onUpdateFocus)||void 0===n||n.call(e,!1),null===(r=e.onBecameBlurredHandler)||void 0===r||r.call(e,this.getNodeLayoutByFocusKey(this.focusKey),t)}if(this.focusKey=e,this.isFocusableComponent(this.focusKey)){var i,s;const e=this.focusableComponents[this.focusKey];null===(i=e.onUpdateFocus)||void 0===i||i.call(e,!0),this.updateParentsHasFocusedChild(this.focusKey,t),null===(s=e.onBecameFocusedHandler)||void 0===s||s.call(e,this.getNodeLayoutByFocusKey(this.focusKey),t)}}updateParentsHasFocusedChild(e,t){const n=[];let r=this.focusableComponents[e];for(;r;){const{parentFocusKey:e}=r,t=this.focusableComponents[e];if(t){const{focusKey:e}=t;n.push(e)}r=t}const i=b(this.parentsHavingFocusedChild,n),s=b(n,this.parentsHavingFocusedChild);A(i,e=>{var n;const r=this.focusableComponents[e];r&&r.trackChildren&&(null===(n=r.onUpdateHasFocusedChild)||void 0===n||n.call(r,!1)),this.onIntermediateNodeBecameBlurred(e,t)}),A(s,e=>{var n;const r=this.focusableComponents[e];r&&r.trackChildren&&(null===(n=r.onUpdateHasFocusedChild)||void 0===n||n.call(r,!0)),this.onIntermediateNodeBecameFocused(e,t)}),this.parentsHavingFocusedChild=n}updateParentsLastFocusedChild(e){let t=this.focusableComponents[e];for(;t;){const{parentFocusKey:e}=t,n=this.focusableComponents[e];n&&this.saveLastFocusedChildKey(n,t.focusKey),t=n}}getKeyMap(){return this.keyMap}setKeyMap(e){this.keyMap={...this.getKeyMap(),...e}}isFocusableComponent(e){return!!this.focusableComponents[e]}isParticipatingFocusableComponent(e){return this.isFocusableComponent(e)&&this.focusableComponents[e].focusable}onIntermediateNodeBecameFocused(e,t){var n,r;this.isParticipatingFocusableComponent(e)&&(null===(n=(r=this.focusableComponents[e]).onBecameFocusedHandler)||void 0===n||n.call(r,this.getNodeLayoutByFocusKey(e),t))}onIntermediateNodeBecameBlurred(e,t){var n,r;this.isParticipatingFocusableComponent(e)&&(null===(n=(r=this.focusableComponents[e]).onBecameBlurredHandler)||void 0===n||n.call(r,this.getNodeLayoutByFocusKey(e),t))}pause(){var e,t;this.parentsHavingFocusedChild=[],this.pressedKeys={},this.log("pause","paused"),null===(e=this.visualDebugger)||void 0===e||e.clear(),null===(t=this.visualDebugger)||void 0===t||t.clearLayouts(),this.getFocusableComponents().forEach(e=>{var t,n;null===(t=e.onUpdateFocus)||void 0===t||t.call(e,!1),null===(n=e.onUpdateHasFocusedChild)||void 0===n||n.call(e,!1)}),this.paused=!0}resume(){this.paused=!1}setFocus(e,t={pressedKeys:{}}){const n=this.focusKey,r=this.getNextFocusKey(e);this.log("setFocus","newFocusKey",r),this.setCurrentFocusedKey(r,t),this.updateParentsHasFocusedChild(r,t),this.updateParentsLastFocusedChild(n)}updateAllLayouts(){this.nativeMode||Object.entries(this.focusableComponents).forEach(([e])=>{this.updateLayout(e)})}updateLayout(e){const t=this.focusableComponents[e];if(!t||this.nativeMode||t.layoutUpdated)return;const{node:n}=t;i(n,(e,r,i,s,o,a)=>{t.layout={x:e,y:r,width:i,height:s,left:o,top:a,node:n}})}updateFocusable(e,{node:t,preferredChildFocusKey:n,focusable:r,blockNavigationOut:i}){if(this.nativeMode)return;const s=this.focusableComponents[e];s&&(s.preferredChildFocusKey=n,s.focusable=null!=r?r:s.focusable,s.blockNavigationOut=i,t&&(s.node=t))}isNativeMode(){return this.nativeMode}getFocusableComponents(){return Object.values(this.focusableComponents)}getFocusableComponentsByParentFocusKey(e){return Object.values(this.focusableComponents).filter(t=>t.parentFocusKey===e)}}t.b=w},function(e,t){},function(e,t){},function(e,t,n){"use strict";(function(t){var r=n(2),i=n(55),s=n(12),o=n(39),a=n(40),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,h={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(u=n(41)),u),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,s=r.isObject(e),o=t&&t["Content-Type"];if((n=r.isFileList(e))||s&&"multipart/form-data"===o){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return s||"application/json"===o?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw s.from(e,s.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(67)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){h.headers[e]=r.merge(l)})),e.exports=h}).call(this,n(49))},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,"/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: var(--sdk-font-body);\n color: var(--sdk-text100);\n --sdk-bets: #20f4ca;\n --sdk-highlightPrimary-rgb: 255, 255, 255;\n}\n\n.sdk-wrapper .focus-ring {\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 10px;\n}\n\n.sdk-wrapper .focus-ring[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.sdk-wrapper .focus-opacity {\n background-color: transparent;\n transition: background-color 0.2s ease-in-out;\n}\n\n.sdk-wrapper .focus-opacity[data-focused='true'] {\n background-color: rgba(var(--sdk-highlightPrimary-rgb), 0.078);\n}\n\n.FONT_BOLD_HEADLINE {\n font-family: var(--sdk-font-headline);\n}\n\n.FONT_BOLD {\n font-family: var(--sdk-font-title);\n}\n\n.TEXT_200 {\n color: var(--sdk-text200);\n}\n\n.T01 {\n font-size: 18px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.T02 {\n font-size: 18px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T04 {\n font-size: 20px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T05_ALT {\n font-size: 21px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.T10 {\n font-size: 23px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.T20 {\n font-size: 27px;\n font-weight: 500;\n line-height: 36px;\n}\n\n.T30 {\n font-size: 29px;\n font-weight: 700;\n line-height: 36px;\n}\n\n.T50 {\n font-size: 34px;\n line-height: 40px;\n}\n\n.T60 {\n font-size: 38px;\n font-weight: 500;\n line-height: 44px;\n}\n\n.T70 {\n font-size: 48px;\n font-weight: 900;\n line-height: 56px;\n}\n","",{version:3,sources:["webpack://./src/components/core/App/App.styles.css"],names:[],mappings:"AAAA,oCAAoC;AACpC;EACE,iCAAiC;EACjC,yBAAyB;EACzB,mBAAmB;EACnB,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,yCAAyC;EACzC,mBAAmB;AACrB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,6CAA6C;AAC/C;;AAEA;EACE,8DAA8D;AAChE;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB",sourcesContent:["/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: var(--sdk-font-body);\n color: var(--sdk-text100);\n --sdk-bets: #20f4ca;\n --sdk-highlightPrimary-rgb: 255, 255, 255;\n}\n\n.sdk-wrapper .focus-ring {\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 10px;\n}\n\n.sdk-wrapper .focus-ring[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.sdk-wrapper .focus-opacity {\n background-color: transparent;\n transition: background-color 0.2s ease-in-out;\n}\n\n.sdk-wrapper .focus-opacity[data-focused='true'] {\n background-color: rgba(var(--sdk-highlightPrimary-rgb), 0.078);\n}\n\n.FONT_BOLD_HEADLINE {\n font-family: var(--sdk-font-headline);\n}\n\n.FONT_BOLD {\n font-family: var(--sdk-font-title);\n}\n\n.TEXT_200 {\n color: var(--sdk-text200);\n}\n\n.T01 {\n font-size: 18px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.T02 {\n font-size: 18px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T04 {\n font-size: 20px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T05_ALT {\n font-size: 21px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.T10 {\n font-size: 23px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.T20 {\n font-size: 27px;\n font-weight: 500;\n line-height: 36px;\n}\n\n.T30 {\n font-size: 29px;\n font-weight: 700;\n line-height: 36px;\n}\n\n.T50 {\n font-size: 34px;\n line-height: 40px;\n}\n\n.T60 {\n font-size: 38px;\n font-weight: 500;\n line-height: 44px;\n}\n\n.T70 {\n font-size: 48px;\n font-weight: 900;\n line-height: 56px;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".sdk--panel-manager {\n padding: 60px;\n padding-left: 48px;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n\n.sdk--panel-loading {\n display: block;\n padding: 40px 20px;\n}\n","",{version:3,sources:["webpack://./src/components/core/PanelManager/PanelManager.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,kBAAkB;EAClB,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB",sourcesContent:[".sdk--panel-manager {\n padding: 60px;\n padding-left: 48px;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n\n.sdk--panel-loading {\n display: block;\n padding: 40px 20px;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".panel-navigation {\n width: 100%;\n}\n\n.panel-navigation > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: inline-block;\n margin-right: 12px;\n}\n\n.panel-navigation .panel-nav-button-container:last-child {\n margin-right: 0;\n}\n","",{version:3,sources:["webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css"],names:[],mappings:"AAAA;EACE,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA;EACE,eAAe;AACjB",sourcesContent:[".panel-navigation {\n width: 100%;\n}\n\n.panel-navigation > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: inline-block;\n margin-right: 12px;\n}\n\n.panel-navigation .panel-nav-button-container:last-child {\n margin-right: 0;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\n font-family: var(--sdk-font-title);\n box-sizing: border-box;\n}\n\n.panel-nav-button-container > * {\n margin-bottom: 0;\n}\n\n.panel-nav-button-container path {\n fill: var(--sdk-highlightSecondary);\n}\n\n.panel-nav-button-container button {\n padding: 8px 0;\n background-color: var(--sdk-surface3);\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container .panel-nav-label {\n margin-top: 10px;\n}\n\n.panel-nav-button-container[data-focused='true'],\n.panel-nav-button-container:hover,\n.panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused='true'] path,\n.panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] rect,\n.panel-nav-button-container:hover rect {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] button,\n.panel-nav-button-container:hover button {\n background-color: var(--sdk-accentPrimary);\n}\n\n.panel-nav-button-active button {\n background-color: var(--sdk-surface5);\n}\n\n.panel-nav-button-active path {\n fill: var(--sdk-highlightPrimary);\n}\n\n.panel-nav-button-container .FONT_BOLD {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--sdk-font-headline);\n}\n","",{version:3,sources:["webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css"],names:[],mappings:"AAAA;EACE,cAAc;EACd,kBAAkB;EAClB,yBAAyB;EACzB,kCAAkC;EAClC,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;;EAErC,qEAAqE;AACvE;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;;EAGE,yBAAyB;AAC3B;;AAEA;;EAEE,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;;EAEE,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;;EAEE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;EACvB,qCAAqC;AACvC",sourcesContent:[".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\n font-family: var(--sdk-font-title);\n box-sizing: border-box;\n}\n\n.panel-nav-button-container > * {\n margin-bottom: 0;\n}\n\n.panel-nav-button-container path {\n fill: var(--sdk-highlightSecondary);\n}\n\n.panel-nav-button-container button {\n padding: 8px 0;\n background-color: var(--sdk-surface3);\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container .panel-nav-label {\n margin-top: 10px;\n}\n\n.panel-nav-button-container[data-focused='true'],\n.panel-nav-button-container:hover,\n.panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused='true'] path,\n.panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] rect,\n.panel-nav-button-container:hover rect {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] button,\n.panel-nav-button-container:hover button {\n background-color: var(--sdk-accentPrimary);\n}\n\n.panel-nav-button-active button {\n background-color: var(--sdk-surface5);\n}\n\n.panel-nav-button-active path {\n fill: var(--sdk-highlightPrimary);\n}\n\n.panel-nav-button-container .FONT_BOLD {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--sdk-font-headline);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".base-button {\n border-radius: 6px;\n display: block;\n text-align: center;\n cursor: pointer;\n width: 100%;\n border: none;\n font-family: var(--sdk-font-title);\n}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n","",{version:3,sources:["webpack://./src/components/atoms/BaseButton/BaseButton.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,eAAe;EACf,WAAW;EACX,YAAY;EACZ,kCAAkC;AACpC;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB",sourcesContent:[".base-button {\n border-radius: 6px;\n display: block;\n text-align: center;\n cursor: pointer;\n width: 100%;\n border: none;\n font-family: var(--sdk-font-title);\n}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".scrollable-container {\n position: relative;\n}\n\n.scrollable-container::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 58px; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scrollable-container[data-scrolled='true']::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-container::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 96px; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.focusable-item {\n width: 100%;\n height: 100%;\n}\n","",{version:3,sources:["webpack://./src/components/core/ScrollableContainer/ScrollableContainer.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,YAAY,EAAE,+BAA+B;EAC7C,UAAU;EACV,6BAA6B;AAC/B;;AAEA;EACE,UAAU;EACV,yEAAyE;AAC3E;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY,EAAE,kCAAkC;EAChD,2EAA2E;AAC7E;;AAEA;EACE,WAAW;EACX,YAAY;AACd",sourcesContent:[".scrollable-container {\n position: relative;\n}\n\n.scrollable-container::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 58px; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scrollable-container[data-scrolled='true']::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-container::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 96px; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.focusable-item {\n width: 100%;\n height: 100%;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){e.exports=n(72)()},function(e,t,n){"use strict";var r=n(0),i=n.n(r),s=n(30);t.a=({children:e})=>{const t=Object(r.useRef)(null),{setRef:n,removeRef:o}=Object(s.a)();return Object(r.useEffect)(()=>{const e=t.current;return e&&n(e),()=>{e&&o(e)}},[n,o]),i.a.createElement("div",{className:"focusable-item",ref:t},e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),s=n(5),o=n.n(s),a=n(26),l={insert:"head",singleton:!1};o()(a.a,l),a.a.locals;function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}const u=i.a.createContext({setRef:()=>{},removeRef:()=>{},scrollToFocusedElement:()=>{}});t.b=({children:e,scrollableContainerRef:t,containerTopOffset:n=0,...s})=>{const[o,a]=Object(r.useState)(!1),l=Object(r.useRef)(new Set),h=Object(r.useRef)(""),d=Object(r.useRef)(""),f=Object(r.useRef)([]),p=Object(r.useCallback)(e=>{l.current.add(e),h.current=Math.random().toString(36).substring(2,15)},[]),g=Object(r.useCallback)(e=>{l.current.delete(e),h.current=Math.random().toString(36).substring(2,15)},[]),y=Object(r.useCallback)(()=>{if(h.current===d.current)return f.current;const e=Array.from(l.current);return f.current=e.sort((e,n)=>{if(!t)return 0;const r=t.getBoundingClientRect(),i=e?e.getBoundingClientRect():{top:0,bottom:0},s=n?n.getBoundingClientRect():{top:0,bottom:0};return i.top-r.top-(s.top-r.top)}),d.current=h.current,f.current},[t]),v=Object(r.useCallback)(async(e,r)=>{if(!t||!e.node)return;const i=(null==r?void 0:r.offsetTop)||0,s=y();var o;await(o=0,new Promise(e=>setTimeout(e,o)));const l=t.getBoundingClientRect(),c=e.node.getBoundingClientRect();let u=-1;for(let t=s.length-1;t>=0;t--)if(s[t].contains(e.node)){u=t;break}if(-1===u)return void console.warn("Element not found in refsMap to focus to. Register the element wrapping it with <FocusableItem />");let h=!1;if(s.slice(u).forEach(e=>{const t=e.getBoundingClientRect();(t.bottom>l.bottom||t.top<l.top)&&(h=!0)}),!h)return;const d=0===u?0:t.scrollTop+(c.top-l.top-n-i);t.scrollTop=d,a(e=>{const t=d>0;return e!==t?t:e})},[t,n,y]),m=Object(r.useMemo)(()=>({setRef:p,removeRef:g,scrollToFocusedElement:v}),[p,g,v]);return i.a.createElement(u.Provider,{value:m},i.a.createElement("div",c({className:"scrollable-container","data-scrolled":o},s),e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),i=n(29);const s=()=>{const e=Object(r.useContext)(i.a);if(!e)throw new Error("useScrollableContainer must be used within a ScrollableContainer");return e}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),s=n(1);const o=Object(r.lazy)(()=>n.e(28).then(n.bind(null,76))),a=Object(r.lazy)(()=>n.e(30).then(n.bind(null,77))),l=Object(r.lazy)(()=>n.e(15).then(n.bind(null,78))),c=Object(r.lazy)(()=>n.e(33).then(n.bind(null,79))),u=Object(r.lazy)(()=>n.e(35).then(n.bind(null,80))),h=Object(r.lazy)(()=>n.e(21).then(n.bind(null,81))),d=Object(r.lazy)(()=>n.e(20).then(n.bind(null,82))),f=Object(r.lazy)(()=>n.e(34).then(n.bind(null,83))),p=Object(r.lazy)(()=>n.e(19).then(n.bind(null,84))),g=Object(r.lazy)(()=>n.e(23).then(n.bind(null,85))),y=Object(r.lazy)(()=>n.e(16).then(n.bind(null,86))),v=Object(r.lazy)(()=>n.e(29).then(n.bind(null,87))),m=Object(r.lazy)(()=>n.e(22).then(n.bind(null,88))),b=Object(r.lazy)(()=>n.e(31).then(n.bind(null,89))),A=Object(r.lazy)(()=>n.e(27).then(n.bind(null,90))),w=Object(r.lazy)(()=>n.e(18).then(n.bind(null,91))),E=Object(r.lazy)(()=>n.e(32).then(n.bind(null,92))),C=Object(r.lazy)(()=>n.e(17).then(n.bind(null,93))),P=Object(r.lazy)(()=>n.e(24).then(n.bind(null,94))),S=Object(r.lazy)(()=>n.e(26).then(n.bind(null,95))),k=Object(r.lazy)(()=>n.e(25).then(n.bind(null,96))),B={...{[s.a.ESPN_KEY_PLAYS]:o,[s.a.ESPN_BETS]:l,[s.a.ESPN_STATS]:c,[s.a.ESPN_FANTASY]:m,[s.a.ESPN_SHOP]:b,[s.a.HELLO_WORLD]:A,[s.a.FOX_STATS]:S,[s.a.FOX_KEY_PLAYS]:P,[s.a.FOX_MULTI_VIEW]:k,[s.a.BUILDER_BLOCK_PANEL]:C},...{play:a,warning:u,expand:h,collapse:d,times:f,checkmark:p,flame:g,betsWarning:y,mobilePhone:v,chat:w,shopifyBlockPanel:E}},x=e=>i.a.createElement("div",{style:{width:e.width,height:e.height}});class T extends i.a.Component{render(){const{iconName:e,width:t,height:n}=this.props,s=B[e];return s?i.a.createElement(r.Suspense,{fallback:i.a.createElement(x,{width:t,height:n})},i.a.createElement(s,{iconName:e,width:t,height:n})):i.a.createElement(x,{width:t,height:n})}}t.a=T},function(e,t,n){"use strict";var r=n(0),i=n.n(r),s=n(5),o=n.n(s),a=n(25),l={insert:"head",singleton:!1},c=(o()(a.a,l),a.a.locals,n(28));function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}class h extends i.a.Component{render(){const e=["base-button",this.props.className].join(" ");return i.a.createElement(c.a,null,i.a.createElement("button",u({},this.props,{className:e}),this.props.children))}}t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3);function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s{constructor(){i(this,"_isLoading",new r.a(!1)),i(this,"_error",new r.a(null))}get isLoading(){return this._isLoading}get error(){return this._error}setLoading(e){this._isLoading.value=e}setError(e){this._error.value=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),i=n(16);function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o extends Error{constructor(e){super(e),this.name="NetworkError"}}class a extends Error{constructor(e){super(e),this.name="AuthError"}}class l extends Error{constructor(e){super(e),this.name="NotFoundError"}}class c extends Error{constructor(e,t){super(t),s(this,"statusCode",void 0),this.name="ServerError",this.statusCode=e}}class u extends Error{constructor(e,t){super(t),s(this,"statusCode",void 0),this.name="BadRequestError",this.statusCode=e}}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE"};t.b=class{constructor(e={},t){h(this,"cacheManager",void 0),h(this,"maestroClient",void 0),h(this,"externalClient",void 0),h(this,"pollingTasks",void 0),h(this,"localStorage",void 0),this.pollingTasks=new Map,this.cacheManager=e.cacheManager||new i.a(e.defaultCacheDuration),this.maestroClient=e.networkClient||new r.a({baseURL:"https://api.maestro.io",retries:3,delay:1e3,backoff:2}),this.externalClient=e.externalNetworkClient||new r.a({baseURL:e.externalBaseURL||"",retries:3,delay:1e3,backoff:2}),this.localStorage=t||"undefined"!=typeof globalThis&&globalThis.localStorage||{length:0,clear:()=>{},getItem:()=>null,key:()=>null,removeItem:()=>{},setItem:()=>{}}}setAuthentication(e,t){this.maestroClient.setAuthentication(e,t)}async withCache(e,t,n){const r=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e.endpoint,params:e.params,data:null}));if(t){const e=this.cacheManager.getCache(r);if(e)return e}const i=await n();return t&&this.cacheManager.setCache(r,i),i}handleError(e){if(e.response){var t;const n=e.response.status,r=(null===(t=e.response.data)||void 0===t?void 0:t.message)||e.message;throw 401===n||403===n?new a(r):404===n?new l(r):n>=500?new c(n,r):new u(n,r)}throw e.request?new o("Network request failed"):e}async maestroApiRequest({endpoint:e,method:t=d.GET,params:n={},data:r=null,headers:i={},useCache:s=!1,maestroDefaultHeaders:o=null,skipResponseBodyDeserialization:a=!1}){const l={"x-maestro-maestro-kit-flavor":"MaestroKit_Web",...i};o&&(l["x-maestro-client-id"]=o.siteId,l.Authorization="Bearer "+o.jwt,l["Content-type"]="application/json");const c=t===d.GET&&s,u=async()=>{let i;if(t===d.GET)i=await this.maestroClient.get(e,n,l);else{if(t!==d.POST)throw new Error(`Method ${t} not implemented`);i=await this.maestroClient.post(e,r)}return a&&!i&&(i={}),i};try{return await this.withCache({endpoint:e,params:n},c,u)}catch(e){return this.handleError(e)}}async externalApiRequest({endpoint:e,method:t=d.GET,params:n={},data:r=null,headers:i={},useCache:s=!1,skipResponseBodyDeserialization:o=!1}){const a=t===d.GET&&s,l=async()=>{let s;if(t===d.GET)s=await this.externalClient.get(e,n,i);else{if(t!==d.POST)throw new Error(`Method ${t} not implemented`);s=await this.externalClient.post(e,r)}return o&&!s&&(s={}),s};try{return await this.withCache({endpoint:e,params:n},a,l)}catch(e){return this.handleError(e)}}async externalApiRequestWithHeaders({endpoint:e,method:t=d.GET,params:n={},data:r=null,headers:i={},useCache:s=!1,skipResponseBodyDeserialization:o=!1}){const a=t===d.GET&&s,l=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e,params:n,data:null}));if(a){const e=this.cacheManager.getCache(l);if(e)return{data:e,headers:{}}}try{let s;if(t===d.GET)s=await this.externalClient.getWithHeaders(e,n,i);else{if(t!==d.POST)throw new Error(`Method ${t} not implemented`);s=await this.externalClient.postWithHeaders(e,r,n,i)}return o&&!s.data&&(s.data={}),a&&this.cacheManager.setCache(l,s.data),s}catch(e){return this.handleError(e)}}pollMaestroApiRequest({endpoint:e,interval:t,method:n=d.GET,params:r={},data:i=null,headers:s={},maestroDefaultHeaders:o=null,skipResponseBodyDeserialization:a=!1,onData:l,onError:c}){const u=`${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var h;this.pollingTasks.has(u)&&(null===(h=this.pollingTasks.get(u))||void 0===h||h.controller.abort(),this.pollingTasks.delete(u));const f=new AbortController,p=f.signal;return(async()=>{for(;!p.aborted;){try{const t=await this.maestroApiRequest({endpoint:e,method:n,params:r,data:i,headers:s,maestroDefaultHeaders:o,skipResponseBodyDeserialization:a,useCache:!1});l(t)}catch(e){c&&c(e)}p.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(u,{controller:f,interval:t}),{stop:()=>{var e;this.pollingTasks.has(u)&&(null===(e=this.pollingTasks.get(u))||void 0===e||e.controller.abort(),this.pollingTasks.delete(u))}}}pollExternalApiRequest({endpoint:e,interval:t,method:n=d.GET,params:r={},data:i=null,headers:s={},skipResponseBodyDeserialization:o=!1,onData:a,onError:l}){const c=`external-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var u;this.pollingTasks.has(c)&&(null===(u=this.pollingTasks.get(c))||void 0===u||u.controller.abort(),this.pollingTasks.delete(c));const h=new AbortController,f=h.signal;return(async()=>{for(;!f.aborted;){try{const t=await this.externalApiRequest({endpoint:e,method:n,params:r,data:i,headers:s,skipResponseBodyDeserialization:o,useCache:!1});a(t)}catch(e){l&&l(e)}f.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(c,{controller:h,interval:t}),{stop:()=>{var e;this.pollingTasks.has(c)&&(null===(e=this.pollingTasks.get(c))||void 0===e||e.controller.abort(),this.pollingTasks.delete(c))}}}pollExternalApiRequestWithHeaders({endpoint:e,interval:t,method:n=d.GET,params:r={},data:i=null,headers:s={},skipResponseBodyDeserialization:o=!1,onData:a,onError:l}){const c=`external-headers-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var u;this.pollingTasks.has(c)&&(null===(u=this.pollingTasks.get(c))||void 0===u||u.controller.abort(),this.pollingTasks.delete(c));const h=new AbortController,f=h.signal;return(async()=>{for(;!f.aborted;){try{const t=await this.externalApiRequestWithHeaders({endpoint:e,method:n,params:r,data:i,headers:s,skipResponseBodyDeserialization:o,useCache:!1});a(t)}catch(e){l&&l(e)}f.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(c,{controller:h,interval:t}),{stop:()=>{var e;this.pollingTasks.has(c)&&(null===(e=this.pollingTasks.get(c))||void 0===e||e.controller.abort(),this.pollingTasks.delete(c))}}}stopAllPolling(){for(const[e,{controller:t}]of this.pollingTasks.entries())t.abort(),this.pollingTasks.delete(e)}clearAllCache(){const e=this.localStorage.length;for(let t=0;t<e;t++){const e=this.localStorage.key(t);e&&e.startsWith("maestro-cache-")&&this.localStorage.removeItem(e)}}}},function(e,t){},function(e,t){},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(2);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(r.isURLSearchParams(t))s=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),s=o.join("&")}if(s){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){var r=n(2);e.exports=function(e,n){n=n||new FormData;var i=[];function s(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,o){if(r.isPlainObject(t)||r.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+o);i.push(t),r.forEach(t,(function(t,i){if(!r.isUndefined(t)){var a,l=o?o+"."+i:i;if(t&&!o&&"object"==typeof t)if(r.endsWith(i,"{}"))t=JSON.stringify(t);else if(r.endsWith(i,"[]")&&(a=r.toArray(t)))return void a.forEach((function(e){!r.isUndefined(e)&&n.append(l,s(e))}));e(t,l)}})),i.pop()}else n.append(o,s(t))}(e),n}}).call(this,n(56).Buffer)},function(e,t,n){"use strict";var r=n(2),i=n(60),s=n(61),o=n(38),a=n(42),l=n(64),c=n(65),u=n(39),h=n(12),d=n(15),f=n(66);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,y=e.headers,v=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(g)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var A=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(A+":"+w)}var E=a(e.baseURL,e.url);function C(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,s={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),m()}),(function(e){n(e),m()}),s),b=null}}if(b.open(e.method.toUpperCase(),o(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(n(new h("Request aborted",h.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new h(t,r.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var P=(e.withCredentials||c(E))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;P&&(y[e.xsrfHeaderName]=P)}"setRequestHeader"in b&&r.forEach(y,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete y[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),g||(g=null);var S=f(E);S&&-1===["http","https","file"].indexOf(S)?n(new h("Unsupported protocol "+S+":",h.ERR_BAD_REQUEST,e)):b.send(g)}))}},function(e,t,n){"use strict";var r=n(62),i=n(63);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||s,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){e.exports=n(50)},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(2),i=n(37),s=n(51),o=n(44);var a=function e(t){var n=new s(t),a=i(s.prototype.request,n);return r.extend(a,s.prototype,n),r.extend(a,n),a.create=function(n){return e(o(t,n))},a}(n(20));a.Axios=s,a.CanceledError=n(15),a.CancelToken=n(69),a.isCancel=n(43),a.VERSION=n(45).version,a.toFormData=n(40),a.AxiosError=n(12),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(70),a.isAxiosError=n(71),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";var r=n(2),i=n(38),s=n(52),o=n(53),a=n(44),l=n(42),c=n(68),u=c.validators;function h(e){this.defaults=e,this.interceptors={request:new s,response:new s}}h.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var s,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var h=[o,void 0];for(Array.prototype.unshift.apply(h,r),h=h.concat(l),s=Promise.resolve(t);h.length;)s=s.then(h.shift(),h.shift());return s}for(var d=t;r.length;){var f=r.shift(),p=r.shift();try{d=f(d)}catch(e){p(e);break}}try{s=o(d)}catch(e){return Promise.reject(e)}for(;l.length;)s=s.then(l.shift(),l.shift());return s},h.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){h.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(a(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[e]=t(),h.prototype[e+"Form"]=t(!0)})),e.exports=h},function(e,t,n){"use strict";var r=n(2);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(2),i=n(54),s=n(43),o=n(20),a=n(15);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return s(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(2),i=n(20);e.exports=function(e,t,n){var s=this||i;return r.forEach(n,(function(n){e=n.call(s,e,t)})),e}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";(function(e){
|
|
1
|
+
module.exports=function(e){function t(t){for(var n,i,s=t[0],o=t[1],a=0,c=[];a<s.length;a++)i=s[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&c.push(r[i][0]),r[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var s=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=s);var o,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({}[e]||e)+".maestro-web-sdk.esm.js"}(e);var l=new Error;o=function(t){a.onerror=a.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+s+")",l.name="ChunkLoadError",l.type=i,l.request=s,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){o({type:"timeout",target:a})}),12e4);a.onerror=a.onload=o,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var s=window.webpackJsonp=window.webpackJsonp||[],o=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var l=o;return i(i.s=8)}([function(e,t){e.exports=require("react")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={ESPN_KEY_PLAYS:"espnKeyPlays",ESPN_STATS:"espnStats",ESPN_BETS:"espnBet",ESPN_FANTASY:"espnFantasy",ESPN_SHOP:"espnShop",HELLO_WORLD:"helloWorld",FOX_KEY_PLAYS:"foxKeyPlays",FOX_MULTI_VIEW:"foxMultiview",FOX_STATS:"foxStats",BUILDER_BLOCK_PANEL:"builderBlockPanel"}},function(e,t,n){"use strict";var r,i=n(37),s=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=s.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function h(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=a("Date"),p=a("File"),g=a("Blob"),y=a("FileList");function v(e){return"[object Function]"===s.call(e)}var m=a("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var A,w=(A="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return A&&e instanceof A});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===s.call(e)||v(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:d,isUndefined:c,isDate:f,isFile:p,isBlob:g,isFunction:v,isStream:function(e){return h(e)&&v(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,s,o={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)o[s=r[i]]||(t[s]=e[s],o[s]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}));class i{constructor(e){r(this,"listeners",[]),r(this,"_value",void 0),this._value=e}get value(){return this._value}set value(e){this._value=e,this.notify()}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}notify(){this.listeners.forEach(e=>e(this._value))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(9);const i=[/bbd-web-sdk\.us-central1-dev\.gcp\.maestro\.io/];let s=null,o=[],a=!1;const l=async()=>{if(!s&&!a){0,a=!0;try{const{BrowserClient:e,defaultStackParser:t,defaultIntegrations:l,makeFetchTransport:c}=await n.e(2).then(n.bind(null,97)),u=null!==i.find(e=>e.test(window.location.href));s=new e({dsn:"https://91444a71cbaefc62e8dc813f22bad3bf@o4506894189330432.ingest.us.sentry.io/4509946717470720",transport:c,stackParser:t,integrations:l.filter(e=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name)),tracesSampleRate:u?1:.1,release:r.version,environment:u?"development":"production",enabled:!/localhost/.test(window.location.href)}),o.forEach(({error:e,extra:t})=>{var n;null===(n=s)||void 0===n||n.captureException(e,t)}),o=[]}catch(e){console.error("[maestro-web-sdk] Failed to load Sentry:",e)}finally{a=!1}}},c=(e,t)=>{s?s.captureException(e,t):(o.push({error:e,extra:t}),l())}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==h?(o[h].references++,o[h].updater(d)):o.push({identifier:u,updater:y(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=s(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var s=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(s,o[t]):e.appendChild(s)}}function f(e,t,n){var r=n.css,i=n.media,s=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function y(e,t){var n,r,i;if(t.singleton){var s=g++;n=p||(p=c(t)),r=d.bind(null,n,s,!1),i=d.bind(null,n,s,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var s=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=s}}}},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){a=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw i}}return s}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(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}e.exports=function(e){var t=r(e,4),n=t[1],i=t[3];if(!i)return n;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),a="/*# ".concat(o," */"),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([a]).join("\n")}return[n].join("\n")}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(i[o]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"ActionTrackEvent",(function(){})),n.d(t,"ImpressionTrackEvent",(function(){})),n.d(t,"Metadata",(function(){})),n.d(t,"PanelClickAction",(function(){})),n.d(t,"PanelViewAction",(function(){})),n.d(t,"PanelEvent",(function(){return c.PanelEvent})),n.d(t,"IMaestroEventDelegate",(function(){return u.a})),n.d(t,"IMaestroEvent",(function(){return f.a})),n.d(t,"IMaestroKeyPlaysResponse",(function(){return _.a})),n.d(t,"MaestroPanelType",(function(){return m.a})),n.d(t,"SDKEventConfigParams",(function(){return h.SDKEventConfigParams})),n.d(t,"SDKStopEventParams",(function(){return h.SDKStopEventParams})),n.d(t,"IUserSettings",(function(){return L.IUserSettings})),n.d(t,"DEFAULT_USER_SETTINGS",(function(){return L.a}));var r=n(0),i=n.n(r),s=n(14),o=n.n(s);function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=class{constructor(){a(this,"renderersMap",new Map)}async renderPanel(e){if(this.renderersMap.has(e)){this.renderersMap.get(e).unmount(),this.renderersMap.delete(e)}const t=await this.getRenderer(e),r=n(75).default,s=n(74).default;return t.render(i.a.createElement(r,null,i.a.createElement(s,null))),()=>{this.renderersMap.has(e)&&this.renderersMap.get(e)===t&&(t.unmount(),this.renderersMap.delete(e))}}async getRenderer(e){if(this.renderersMap.has(e))return this.renderersMap.get(e);const t=document.getElementById(e);if(!t)throw new Error(`Element with id ${e} not found`);const n={render:e=>{o.a.render(e,t)},unmount:()=>{o.a.unmountComponentAtNode(t),t.innerHTML=""}};return this.renderersMap.set(e,n),n}},c=n(18),u=n.n(c),h=n(19),d=n(35),f=n.n(d),p=n(3),g=n(33),y=n(17),v=n(10),m=n(1);function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class A{getAvailablePanelsFromConfig(){const e=z.getPageConfig();return e&&Array.isArray(e.panels)&&e.panels.length>0?e.panels.filter(e=>{var t,n;return!1!==(null===(t=e.renderer)||void 0===t||null===(n=t.supported_platforms)||void 0===n?void 0:n.bbd)}).map(e=>{const t=e.panel_type;return t&&Object.values(m.a).includes(t)?{type:t,title:e.panel_name||""}:null}).filter(e=>null!==e):[]}constructor(){b(this,"_panels",new p.a([])),b(this,"_currentPanel",new p.a(null)),b(this,"settingsManager",void 0),b(this,"settingsUnsubscribe",null),this.settingsManager=v.a.getInstance(),this.initializePanels(),this.subscribeToSettingsChanges()}initializePanels(){const e=this.filterPanels(),t=z.getIsProdEnv();e.length||t?this._panels.value=e:this._panels.value=[{type:"helloWorld",title:"HELLO WORLD"}],this.updateActivePanel()}subscribeToSettingsChanges(){this.settingsUnsubscribe=this.settingsManager.settings.subscribe(()=>{this.updatePanelsBasedOnSettings()})}filterPanels(){return this.getAvailablePanelsFromConfig().filter(e=>!this.settingsManager.isPanelHidden(e.type))}updateActivePanel(){!this.currentPanel&&this.panels[0]&&(this.currentPanel=this.panels[0].type),this.panels.length>0&&this._currentPanel.value&&!this.panels.find(e=>e.type===this._currentPanel.value)&&(this._currentPanel.value=this.panels[0].type)}updatePanelsBasedOnSettings(){const e=this.filterPanels();this._panels.value=e,this.updateActivePanel()}cleanup(){this.settingsUnsubscribe&&(this.settingsUnsubscribe(),this.settingsUnsubscribe=null)}get panels(){return this._panels.value}get panelsObservable(){return this._panels}get currentPanel(){return this._currentPanel.value}set currentPanel(e){this._currentPanel.value=e}get currentPanelObservable(){return this._currentPanel}setActivePanel(e){e!==this.currentPanel&&void 0!==this.panels.find(t=>t.type===e)&&(this.currentPanel=e,this.updateActivePanel())}getIndex(e){const t=this.panels.findIndex(t=>t.type===e);return-1!==t?t:null}getPanelType(e){var t;return(null===(t=this.panels[e])||void 0===t?void 0:t.type)||null}get panelTypeToLeft(){if(!this.currentPanel)return null;const e=this.getIndex(this.currentPanel);return null===e||0===e?null:this.getPanelType(e-1)}get panelTypeToRight(){if(!this.currentPanel)return null;const e=this.getIndex(this.currentPanel);return null===e||e===this.panels.length-1?null:this.getPanelType(e+1)}getUnlistedPanels(){const e=z.getPageConfig();return e&&Array.isArray(e.panels)?e.panels.filter(e=>!!e.panel_type&&!Object.values(m.a).includes(e.panel_type)).map(e=>({type:e.panel_type,title:e.panel_name||""})):[]}}var w=n(11),E=n(4),C=n(34);function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S={"664b9c57d59a7a431542d814":"https://static-prod.us-central1-espn-prod.gcp.maestro.io","6930c214fcb9633b5484de81":"https://static-prod.us-central1-espn-prod.gcp.maestro.io"};var k=class{constructor(e){P(this,"configObservable",new p.a(null)),P(this,"client",void 0);const t=S[e]||"https://static.gcp.maestro.io";this.client=new C.b({externalNetworkClient:new w.a({backoff:2,baseURL:t,delay:1e3,retries:5})})}async fetchPageConfigByMetadata(e,t){try{return await this.client.externalApiRequest({endpoint:`/pages/sites/${e}/metadata/${t}.json`})}catch(n){return Object(E.a)(n,{siteId:e,metadataValue:t}),console.error(`Failed to fetch page configuration for site ${e} and metadata value: ${t}:`,n instanceof Error?n.message:String(n)),Promise.resolve(null)}}fetchPageConfig({siteId:e,metadataValue:t,pageId:n}){return n?this.fetchPageConfigById(e,n):t?this.fetchPageConfigByMetadata(e,t):Promise.resolve(null)}async fetchPageConfigById(e,t){try{return await this.client.externalApiRequest({endpoint:`/pages/sites/${e}/pages/${t}.json`})}catch(n){return Object(E.a)(n,{siteId:e,pageId:t}),console.error(`Failed to fetch page configuration for site ${e} and page ID: ${t}:`,n instanceof Error?n.message:String(n)),Promise.resolve(null)}}static isPanelAvailable(e,t){var n;return null==e||null===(n=e.panels)||void 0===n?void 0:n.some(e=>{var n,r;return e.panel_type===t&&!1!==(null===(n=e.renderer)||void 0===n||null===(r=n.supported_platforms)||void 0===r?void 0:r.bbd)})}pollGlobalConfig(e){const t=24e4+Math.floor(12e4*Math.random());return this.client.pollExternalApiRequest({endpoint:"/config/global.json",interval:t,onData:e,onError:e=>{Object(E.a)(e,{context:"StaticService.pollGlobalConfig"}),console.error("Failed to poll global configuration",e instanceof Error?e.message:String(e))}})}};function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class x extends g.a{constructor(e="",t="",n,r){super(),B(this,"_eventId",new p.a("")),B(this,"_pageId",new p.a("")),B(this,"_title",new p.a("")),B(this,"_isLive",new p.a(!1)),B(this,"_isShowingPanel",new p.a(!1)),B(this,"playerTimeCode",null),B(this,"analyticsService",void 0),B(this,"delegate",void 0),B(this,"keyPlaysViewModel",null),B(this,"fantasyViewModel",null),B(this,"betsViewModel",null),B(this,"statsViewModel",null),B(this,"shopViewModel",null),B(this,"builderPanelViewModel",null),B(this,"panelManagerViewModel",void 0),B(this,"navigation",void 0),this._pageId.value=t,this._eventId.value=e,this.delegate=n,this.analyticsService=r,this.panelManagerViewModel=new A,this.navigation=new y.b}async initViewModels(){const e=z.getPageConfig(),t=[];if(k.isPanelAvailable(e,"espnKeyPlays")&&t.push(n.e(14).then(n.bind(null,229)).then(({default:e})=>{this.keyPlaysViewModel=new e(this.analyticsService)}).catch(e=>{console.warn("Failed to load KeyPlaysViewModel:",e)})),k.isPanelAvailable(e,"espnBet")&&t.push(n.e(11).then(n.bind(null,240)).then(({default:e})=>{this.betsViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load BetsViewModel:",e)})),k.isPanelAvailable(e,"espnStats")&&t.push(n.e(9).then(n.bind(null,237)).then(({default:e})=>{this.statsViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load StatsViewModel:",e)})),k.isPanelAvailable(e,"espnFantasy")&&t.push(n.e(12).then(n.bind(null,235)).then(({default:e})=>{this.fantasyViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load FantasyViewModel:",e)})),k.isPanelAvailable(e,"espnShop")&&t.push(n.e(10).then(n.bind(null,238)).then(({default:e})=>{this.shopViewModel=new e(this._eventId.value,this.analyticsService)}).catch(e=>{console.warn("Failed to load ShopViewModel:",e)})),k.isPanelAvailable(e,"builderBlockPanel")){var r;const i=null==e||null===(r=e.panels)||void 0===r?void 0:r.find(e=>"builderBlockPanel"===e.panel_type);i&&t.push(n.e(13).then(n.bind(null,123)).then(({BuilderPanelViewModel:e})=>{this.builderPanelViewModel=new e(i,this.analyticsService)}).catch(e=>{console.warn("Failed to load BuilderPanelViewModel:",e)}))}await Promise.all(t)}setActivePanel(e){const t=this.panelManagerViewModel.getIndex(e);null!==t?this.navigation.paused?(this.panelManagerViewModel.setActivePanel(e),this.navigation.focusKey="PANEL_NAV_BUTTON_"+t):console.warn("Cannot set active panel while navigation is not paused. Doing so will cause focus issues."):console.warn(`Panel type "${e}" not found.`)}updatePlayerTimeCode(e){var t,n;const r=new Date(e);if(isNaN(r.getTime()))return console.warn("Invalid timestamp provided:",e),void console.warn("Make sure the timestamp is a valid number. \nhttps://developers.maestro.io/sdk/web/maestro-event-interface/state/updatePlayerTimeCode");this.playerTimeCode=e,null===(t=this.keyPlaysViewModel)||void 0===t||t.onUpdatePlayerTimeCode(this.playerTimeCode),null===(n=this.statsViewModel)||void 0===n||n.onUpdatePlayerTimeCode(this.playerTimeCode)}getPlayerTimeCode(){return this.playerTimeCode}setDataToPanel(e){const t=Object.keys(e),n={espnStats:this.statsViewModel,espnBet:this.betsViewModel,espnKeyPlays:this.keyPlaysViewModel,espnFantasy:this.fantasyViewModel,espnShop:this.shopViewModel,builderBlockPanel:this.builderPanelViewModel,foxKeyPlays:null,foxMultiview:null,foxStats:null,helloWorld:null};for(const r of t){const t=e[r];if(!t)continue;const i=n[r];i?i.setDataToPanel&&i.setDataToPanel(t):console.log(`[setDataToPanel] Panel '${r}' not initialized/supported. Data ignored.`)}}async deinit(){var e,t,n,r,i;null===(e=this.betsViewModel)||void 0===e||e.cleanup(),null===(t=this.statsViewModel)||void 0===t||t.cleanup(),null===(n=this.fantasyViewModel)||void 0===n||n.cleanup(),null===(r=this.shopViewModel)||void 0===r||r.cleanup(),null===(i=this.builderPanelViewModel)||void 0===i||i.cleanup(),this.navigation.destroy();try{await this.didHidePanel()}catch(e){console.error("Error during didHidePanel in deinit:",e)}}updateKeyPlaysData(e){return this.keyPlaysViewModel?this.keyPlaysViewModel.setKeyPlays(e,this.playerTimeCode):Promise.resolve()}updateUserSettings(e){return new Promise(t=>{v.a.getInstance().updateSettings(e),t()})}startFocusManagement(){return this.navigation.setCurrentFocusedKey(this.navigation.focusKey||"PANEL_NAV_BUTTON_0"),setTimeout(()=>{this.navigation.resume()},0),Promise.resolve()}didStartPlayingClip(e){this.keyPlaysViewModel&&(this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentClipPlaybackProgress.value=0,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=e,this.keyPlaysViewModel.clearLoadFailureStatus(e))}didStopPlayingClip(e){this.keyPlaysViewModel&&(this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=null,this.keyPlaysViewModel.currentClipPlaybackProgress.value=null)}didFailToPlayClip(e){var t;null===(t=this.keyPlaysViewModel)||void 0===t||t.handleKeyPlayLoadFailure(e)}didUpdatePlaybackProgressOfClip(e,t){this.keyPlaysViewModel&&(this.keyPlaysViewModel.currentClipPlaybackProgress.value=t,this.keyPlaysViewModel.clearLoadFailureStatus(e))}async didShowPanel(){this.isShowingPanel=!0}async didHidePanel(){this.isShowingPanel=!1,this.navigation.focusKey=null}currentEventDoesNotSupportKeyPlays(){this.keyPlaysViewModel&&(this.keyPlaysViewModel.errorState.value="unsupportedEvent")}getCurrentEventID(){return this.eventId.value}getCurrentlyPlayingClipIndex(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.currentlyPlayingClipIndex.value)&&void 0!==e?e:null}getLastPlayedClipIndex(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.lastPlayedClipIndex.value)&&void 0!==e?e:null}getCurrentClipPlaybackProgress(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.currentClipPlaybackProgress.value)&&void 0!==e?e:null}getKeyPlaysCount(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.allItems.length)&&void 0!==e?e:0}get eventId(){return this._eventId}get title(){return this._title}get isLive(){return this._isLive}get isShowingPanel(){return this._isShowingPanel.value}set isShowingPanel(e){this._isShowingPanel.value=e}deliverFocus(){this.navigation.pause(),this.delegate.startFocusManagement()}}var T=n(36),_=n.n(T);function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class F{constructor(){O(this,"client",void 0),this.client=new w.a({baseURL:"https://insights.maestro.io",backoff:2,delay:1e3,retries:1})}isEnabled(){var e,t,n;const r=z.getGlobalConfig();return null===(e=null==r||null===(t=r.bbd)||void 0===t||null===(n=t.analytics)||void 0===n?void 0:n.enabled)||void 0===e||e}async action(e){if(this.isEnabled())try{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))null!=r&&t.append(n,r.toString());await this.client.post("/action",t,void 0,{"Content-Type":"application/x-www-form-urlencoded"})}catch(t){Object(E.a)(t,{payload:e}),console.error("Failed to send insights action:",t)}else console.warn("InsightsService: Analytics is disabled in global config")}async getServerTime(){if(!this.isEnabled())return{time:Date.now(),diff:0};const e=Date.now();try{return await this.client.get("/time",{_:`${Date.now()}-${this.randomId()}`,client_time:e})}catch(e){return Object(E.a)(e),console.error("Failed to get server time:",e),{time:Date.now(),diff:0}}}randomId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}}var R=n(16);function M(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class j{constructor(){M(this,"currentTime",0),M(this,"serverOffsetTime",0),M(this,"insightsService",void 0),M(this,"cacheManager",void 0),M(this,"pageConfig",null),this.insightsService=new F,this.cacheManager=new R.a}async getPayload(e){return this.currentTime=Date.now(),this.serverOffsetTime=await this.getDeviceOffset(),this.pageConfig=z.getPageConfig(),{...this.getPageInsights(),...this.getDeviceInsights(),...this.getInsightsInsights(),...this.getMetadataInsights(),...this.getReferrerInsights(),...this.getSessionInsights(),...this.getSiteInsights(),...this.getUserInsights(),...this.getEventInsights(e)}}getEventInsights(e){const t=e.ontology;return{e_d:"maestro",e_m:Object.values(e.metadata||{}).length>0?JSON.stringify(e.metadata):null,e_t:this.currentTime+this.serverOffsetTime,e_u:window.location.href,e0:t.kingdom,e1:t.phylum,e2:t.class,e3:t.order,e4:t.family,e5:t.genus,e6:t.species,t:this.currentTime}}getPageInsights(){const e=z.getPageConfig();return{p_c:"pages",p_id:null==e?void 0:e.page._id,p_n:null==e?void 0:e.page.name,p_s:null==e?void 0:e.page.slug,p_t:null==e?void 0:e.page.type}}getDevicePermanentID(){const e=localStorage.getItem("mio:device:permanentId");if(e)return e;const t=this.randomId();return localStorage.setItem("mio:device:permanentId",t),t}getDeviceCreated(){const e=this.cacheManager.getCache("mio:device:created");if(e)return Number(e);const t=(new Date).getTime();return this.cacheManager.setCache("mio:device:created",t.toString()),t}getTabID(){const e=sessionStorage.getItem("mio:device:tabId");if(e)return e;const t=this.randomId();return sessionStorage.setItem("mio:device:tabId",t),t}getDeviceInsights(){return{d_ct:this.getDeviceCreated(),d_nd:!1,d_np:window.navigator.platform,d_pid:this.getDevicePermanentID(),d_sh:window.screen.height,d_sw:window.screen.width,d_tid:this.getTabID(),d_tim:this.currentTime,d_tof:this.serverOffsetTime,d_ua:window.navigator.userAgent}}randomId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}async getDeviceOffset(){const e=Date.now(),{diff:t,time:n}=await this.insightsService.getServerTime(),r=Date.now();return(t-(r-e)-(r-n))/2}getInsightsInsights(){var e;return{i_id:null===(e=this.pageConfig)||void 0===e?void 0:e.insights._id}}getMetadataInsights(){return{m_iv:"1.00.0"}}getReferrerInsights(){return{r_d:"$direct",r_s:null,r_u:"$direct"}}getSessionID(){const e=sessionStorage.getItem("mio:session:id");if(e)return e;const t=this.randomId();return sessionStorage.setItem("mio:session:id",t),t}getSessionInsights(){return{se_id:this.getSessionID(),se_s:this.currentTime}}getSiteInsights(){var e,t,n,r,i;return{si_d:null===(e=this.pageConfig)||void 0===e?void 0:e.site.domainUrl,si_id:null===(t=this.pageConfig)||void 0===t?void 0:t.site._id,si_pid:(null===(n=this.pageConfig)||void 0===n?void 0:n.site.package.id)+"-sapphire",si_pv:(null===(r=this.pageConfig)||void 0===r?void 0:r.site.package.version)+"-sapphire",si_s:null===(i=this.pageConfig)||void 0===i?void 0:i.site.slug}}getUserInsights(){return{u_a:null,u_c:null,u_e:null,u_id:null,u_li:!1,u_n:null,u_nu:!1,u_s:null,u_u:null,u_un:null}}}var I=n(9);function N(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=class{constructor(){N(this,"insightsService",void 0),N(this,"insightsPayloadBuilder",void 0),N(this,"SDKSessionId",""),N(this,"pageSessionId",""),N(this,"pinchBackSessionId",""),N(this,"pageSessionBeaconTimeoutId",null),N(this,"isPageSessionBeaconRunning",!1),N(this,"isPageSessionActive",!1),this.insightsService=new F,this.insightsPayloadBuilder=new j}async trackAction(e){z.getMaestroEventViewModel().delegate.trackAction(e);const t=await this.insightsPayloadBuilder.getPayload({ontology:{class:e.e2_class,family:e.e4_family,order:e.e3_order,kingdom:e.e0_kingdom,phylum:e.e1_phylum,genus:e.e5_genus,species:e.e6_species},metadata:e.metadata});await this.insightsService.action(t)}async trackImpression(e){z.getMaestroEventViewModel().delegate.trackImpression(e);const t=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:e.e0_kingdom,phylum:e.e1_phylum,class:e.e2_class,order:e.e3_order,family:e.e4_family,genus:e.e5_genus,species:e.e6_species},metadata:e.metadata});await this.insightsService.action(t)}async panelView(e,t){const n=z.getPageConfig(),r=this.getPanelDataFromPageConfig(e,n);await this.trackImpression({name:"panel_selected",e0_kingdom:"panel",e1_phylum:"view",e2_class:r.panel_type,e3_order:r.panel_id,e4_family:r.panel_name,metadata:{...t||{},...this.getBaseMetadataFromPageConfig(n)}})}async panelClick({type:e,metadata:t,name:n}){const r=z.getPageConfig(),i=this.getPanelDataFromPageConfig(e,r);await this.trackAction({name:n,e0_kingdom:"panel",e1_phylum:"engage",e2_class:i.panel_type,e3_order:i.panel_id,e4_family:i.panel_name,metadata:{...this.getBaseMetadataFromPageConfig(r),...t}})}getBaseMetadataFromPageConfig(e){if(!e)return console.warn("Page Config not found. Could not extract metadata."),{league:"",airing:"",event:"",sport:""};const t=e.page.metadata,n="airing"===(null==t?void 0:t.external_field_4)&&t.external_field_1||"",r="event"===(null==t?void 0:t.external_field_4)&&t.external_field_1||"unknown",i=(null==t?void 0:t.external_field_2)||"";return{league:(null==t?void 0:t.external_field_3)||"",airing:n,event:r,sport:i}}getPanelDataFromPageConfig(e,t){if(!t)return console.warn("Page Config not found. Could not extract panel data."),{panel_id:"",panel_name:"",panel_type:""};const n=t.panels.find(t=>t.panel_type===e);return n?{panel_id:n._id,panel_name:n.panel_name||"",panel_type:n.panel_type||""}:(console.warn(`Panel of type ${e} not found in Page Config.`),{panel_id:"",panel_name:"",panel_type:""})}async SDKSessionStart(){try{this.SDKSessionId=Math.random().toString(36).substring(2,15);const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"sdk"},metadata:{version:I.version}});await this.insightsService.action(e)}catch(e){console.error("Failed to start SDK session: "+e),Object(E.a)(e,{context:"AnalyticsService.SDKSessionStart"})}}async pageSessionStart(){try{this.pageSessionId=Math.random().toString(36).substring(2,15),this.isPageSessionActive=!0;const e=z.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"page"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId}});await this.insightsService.action(n),this.scheduleNextBeacon()}catch(e){console.error("Failed to start page session: "+e),Object(E.a)(e,{context:"AnalyticsService.pageSessionStart"})}}async pageSessionEnd(){try{this.isPageSessionActive=!1;const e=z.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"page"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId}});console.log("AnalyticsService: pageSessionEnd",n),await this.insightsService.action(n)}catch(e){console.error("Failed to end page session: "+e),Object(E.a)(e,{context:"AnalyticsService.pageSessionEnd"})}finally{this.pageSessionBeaconTimeoutId&&(clearTimeout(this.pageSessionBeaconTimeoutId),this.pageSessionBeaconTimeoutId=null),this.pageSessionId=""}}async pinchBackSessionStart(){try{this.pinchBackSessionId=Math.random().toString(36).substring(2,15);const e=z.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"pinchback"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});await this.insightsService.action(n)}catch(e){console.error("Failed to start pinchback session: "+e),Object(E.a)(e,{context:"AnalyticsService.pinchBackSessionStart"})}}async pinchBackSessionEnd(){try{const e=z.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"pinchback"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});console.log("AnalyticsService: pinchBackSessionEnd",n),await this.insightsService.action(n)}catch(e){console.error("Failed to end pinchback session: "+e),Object(E.a)(e,{context:"AnalyticsService.pinchBackSessionEnd"})}finally{this.pinchBackSessionId=""}}async SDKSessionEnd(){try{const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"sdk"},metadata:{version:I.version}});await this.insightsService.action(e)}catch(e){console.error("Failed to end SDK session: "+e),Object(E.a)(e,{context:"AnalyticsService.SDKSessionEnd"})}finally{this.SDKSessionId=""}}scheduleNextBeacon(){var e,t;if(!this.isPageSessionActive)return;const n=z.getGlobalConfig(),r=(null==n||null===(e=n.bbd)||void 0===e||null===(t=e.analytics)||void 0===t?void 0:t.beacon_interval)||240;this.pageSessionBeaconTimeoutId=setTimeout(async()=>{await this.sendSessionBeacon()},1e3*r)}async sendSessionBeacon(){if(!this.isPageSessionBeaconRunning&&this.isPageSessionActive){this.isPageSessionBeaconRunning=!0;try{await this.sessionBeacon()}catch(e){console.error("Failed to send session beacon: "+e),Object(E.a)(e,{context:"AnalyticsService.sendSessionBeacon",SDKSessionId:this.SDKSessionId,pageSessionId:this.pageSessionId})}finally{this.isPageSessionBeaconRunning=!1,this.isPageSessionActive&&this.scheduleNextBeacon()}}}async sessionBeacon(){const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"beacon",class:"frequent"},metadata:{paywall_gated:!1,viewer_id:this.insightsPayloadBuilder.getDevicePermanentID(),is_billable:!1,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});await this.insightsService.action(e)}},L=n(13);function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class U{constructor(e){K(this,"renderer",void 0),K(this,"siteID",""),K(this,"maestroEventViewModel",null),K(this,"pageConfig",null),K(this,"globalConfig",null),K(this,"globalConfigPoller",null),K(this,"_analyticsService",null),K(this,"isProdEnv",!0),K(this,"activePanelUnmountFn",null),this.renderer=e}get analyticsService(){return this._analyticsService||(this._analyticsService=new D),this._analyticsService}static getInstance(){if(!U.instance){const e=new l;U.instance=new U(e)}return U.instance}async userDidStartWatchingEvent({eventId:e,pageId:t,userSettings:n,delegate:r,useProdEnv:i=!0}){this.isProdEnv=i;const s=this.getSiteID();if(!s||""===s.trim())throw new Error("siteID must be set before calling userDidStartWatchingEvent.");if(!e&&!t)throw new Error("Either eventId or pageId must be provided to load the page configuration.");const o=new k(s);if(this.pageConfig=await o.fetchPageConfig({siteId:s,metadataValue:e,pageId:t}),!this.pageConfig)throw new Error(`Could not determine page configuration for siteId: ${s}, pageId: ${t} and eventId: ${e}.`);return this.globalConfigPoller=o.pollGlobalConfig(e=>{this.globalConfig=e}),n&&v.a.getInstance().updateSettings(n),await this.analyticsService.SDKSessionStart(),this.maestroEventViewModel=new x(e,t,r,this.analyticsService),await this.maestroEventViewModel.initViewModels(),await this.analyticsService.pageSessionStart(),this.maestroEventViewModel}async userDidStopWatchingEvent(e){this.activePanelUnmountFn&&await this.activePanelUnmountFn(),await this.analyticsService.pageSessionEnd(),this.maestroEventViewModel&&(await this.maestroEventViewModel.deinit(),this.maestroEventViewModel=null),await this.analyticsService.SDKSessionEnd(),this.globalConfigPoller&&(this.globalConfigPoller.stop(),this.globalConfigPoller=null)}configure(e){this.setSiteID(e.siteID),e.userSettings&&v.a.getInstance().updateSettings(e.userSettings),console.info("MaestroWebSDK configured",e)}setSiteID(e){if(!e||""===e.trim())throw new Error("Site ID must be provided");this.siteID=e}getSiteID(){return this.siteID}getIsProdEnv(){return this.isProdEnv}getMaestroEventViewModel(){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set");return this.maestroEventViewModel}async renderPanel(e){await this.analyticsService.pinchBackSessionStart();const t=await this.renderer.renderPanel(e);let n=!1;const r=async()=>{n||(n=!0,t(),await this.analyticsService.pinchBackSessionEnd(),this.activePanelUnmountFn===r&&(this.activePanelUnmountFn=null))};return this.activePanelUnmountFn=r,r}getPageConfig(){return this.pageConfig}getGlobalConfig(){return this.globalConfig}}K(U,"instance",void 0);const H=U.getInstance();var z=t.default=H},function(e){e.exports=JSON.parse('{"name":"@maestro_io/maestro-web-sdk","private":false,"version":"5.1.2","type":"commonjs","license":"MIT","main":"dist/maestro-web-sdk.umd.js","module":"dist/maestro-web-sdk.esm.js","types":"dist/index.d.ts","files":["dist"],"exports":{".":{"import":"./dist/maestro-web-sdk.esm.js","require":"./dist/maestro-web-sdk.umd.js","types":"./dist/index.d.ts"}},"sideEffects":["*.css"],"engines":{"node":">=10"},"scripts":{"dev":"nodemon","sdk-only":"webpack-dev-server --config webpack/webpack.dev.js","lint":"eslint src --ext .ts,.tsx --ignore-pattern \'**/*.test.*\'","test":"jest","build":"webpack --config webpack/webpack.prod.js && tsc --emitDeclarationOnly --declarationDir dist/types && dts-bundle --name @maestro_io/maestro-web-sdk --main dist/types/src/index.d.ts --out ../../index.d.ts && rm -rf dist/types","types":"tsc -b","analyze":"ANALYZE=true webpack --config webpack/webpack.prod.js","format":"prettier --write .","format:check":"prettier --check ."},"devDependencies":{"@babel/core":"7.12.3","@babel/plugin-proposal-class-properties":"7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"7.12.1","@babel/preset-react":"7.12.1","@babel/preset-typescript":"7.12.1","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"24.0.25","@types/node":"10","@types/prop-types":"^15.7.10","@types/react":"16.14.34","@types/react-dom":"16.9.18","@typescript-eslint/eslint-plugin":"2.34.0","@typescript-eslint/parser":"2.34.0","babel-jest":"26.6.3","babel-loader":"8","css-loader":"5","dts-bundle":"^0.7.3","enzyme":"3.11.0","enzyme-adapter-react-16":"1.15.7","eslint":"6.8.0","eslint-config-prettier":"6.0.0","eslint-plugin-react":"7.20.0","file-loader":"^6.2.0","globals":"^10","html-webpack-plugin":"4","husky":"^6.0.0","identity-obj-proxy":"^3.0.0","jest":"26.6.3","nodemon":"^3.1.9","prettier":"2.0.5","react-test-renderer":"16.14.0","style-loader":"2","tsconfig-paths-webpack-plugin":"^4.2.0","typescript":"^4","webpack":"4","webpack-bundle-analyzer":"3.9.0","webpack-cli":"3.3.12","webpack-dev-server":"3.11.2"},"dependencies":{"@sentry/browser":"7.68.0","axios":"^0.27.2","prop-types":"15.8.1","react":"16.14.0","react-dom":"16.14.0"},"peerDependencies":{"react":"^16.0.0","react-dom":"^16.0.0"},"resolutions":{"sockjs-client":"1.5.1","cheerio":"0.22.0","@sentry/replay":"0.6.14"}}')},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),i=n(13),s=n(1);function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={[s.a.ESPN_BETS]:"bets",[s.a.ESPN_STATS]:"stats",[s.a.ESPN_KEY_PLAYS]:"keyPlays",[s.a.ESPN_FANTASY]:"fantasy",[s.a.ESPN_SHOP]:"shop"};class l{constructor(){o(this,"_settings",void 0),this._settings=new r.a(i.a)}static getInstance(){return l.instance||(l.instance=new l),l.instance}get settings(){return this._settings}getCurrentSettings(){return this._settings.value}updateSettings(e){if(!this.validateSettings(e))return void console.warn("Invalid user settings provided, using default setting");const t=this.mergeSettings(this._settings.value,e);this._settings.value=t}getPanelSettings(e){var t;return null===(t=this._settings.value.panels)||void 0===t?void 0:t[e]}isPanelHidden(e){const t=this.mapPanelTypeToSettingsKey(e);if(!t)return!1;const n=this.getPanelSettings(t);return!0===(null==n?void 0:n.hidePanel)}shouldHideWagers(){const e=this.getPanelSettings("bets");return!0===(null==e?void 0:e.hideWagers)}resetToDefaults(){this._settings.value=i.a}validateSettings(e){if(!e||"object"!=typeof e)return!1;if(e.panels&&"object"!=typeof e.panels)return!1;if(e.panels)for(const[t,n]of Object.entries(e.panels)){if(n&&"object"!=typeof n)return!1;if(n)for(const[e,r]of Object.entries(n))if(void 0!==r&&"boolean"!=typeof r)return console.warn(`Invalid setting value for ${t}.${e}: expected boolean, got ${typeof r}`),!1}return!0}mergeSettings(e,t){const n={panels:{...e.panels}};if(t.panels)for(const[e,r]of Object.entries(t.panels))if(r){const t={...n.panels[e]};for(const[e,n]of Object.entries(r))void 0!==n&&(t[e]=n);n.panels[e]=t}return n}mapPanelTypeToSettingsKey(e){return e in a?a[e]:null}}o(l,"instance",void 0)},function(e,t,n){"use strict";var r=n(46),i=n.n(r);function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=class{constructor({baseURL:e,retries:t,delay:n,backoff:r,axiosInstance:o}){s(this,"client",void 0),s(this,"retries",void 0),s(this,"delay",void 0),s(this,"backoff",void 0),this.retries=t,this.delay=n,this.backoff=r,this.client=o||i.a.create({baseURL:e,headers:{"Content-Type":"application/json"},timeout:5e3})}async retry(e,t=0){try{return await e()}catch(n){const r=n;if(t<this.retries&&(r.response&&429===r.response.status||"ECONNABORTED"===r.code)){const n=this.delay*Math.pow(this.backoff,t);return console.log(`Retrying request in ${n}ms due to: ${r.message}`),await new Promise(e=>setTimeout(e,n)),this.retry(e,t+1)}throw n}}async get(e,t,n){return this.retry(async()=>(await this.client.get(e,{params:t,headers:n})).data)}async getWithHeaders(e,t,n){return this.retry(async()=>{const r=await this.client.get(e,{params:t,headers:n});return{data:r.data,headers:r.headers}})}async post(e,t,n,r){return this.retry(async()=>(await this.client.post(e,t,{params:n,headers:r})).data)}async postWithHeaders(e,t,n,r){return this.retry(async()=>{const i=await this.client.post(e,t,{params:n,headers:r});return{data:i.data,headers:i.headers}})}setAuthentication(e,t){this.client.defaults.headers.common.Authorization=e?"Bearer "+e:"",this.client.defaults.headers.common["x-maestro-api-key"]=t||""}}},function(e,t,n){"use strict";var r=n(2);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=i.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(i,o),Object.defineProperty(s,"isAxiosError",{value:!0}),i.from=function(e,t,n,o,a,l){var c=Object.create(s);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,o,a),c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={panels:{bets:{hidePanel:!1,hideWagers:!1},stats:{hidePanel:!1},keyPlays:{hidePanel:!1},fantasy:{hidePanel:!1}}}},function(e,t){e.exports=require("react-dom")},function(e,t,n){"use strict";var r=n(12);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(2).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}));class i{constructor(e=36e5,t=5242880,n="1.0"){r(this,"prefix","maestro-cache-"),r(this,"cacheDuration",void 0),r(this,"maxSize",void 0),r(this,"version",void 0),r(this,"accessLog",void 0),this.cacheDuration=e,this.maxSize=t,this.version=n,this.accessLog=new Map}produceCacheKey(e){return`${this.prefix}${this.version}:${e}`}getCurrentSize(){let e=0;for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);if(null!=n&&n.startsWith(this.prefix)){const t=localStorage.getItem(n);t&&(e+=n.length+t.length)}}return e}cleanupOldEntries(){const e=Date.now(),t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(null!=r&&r.startsWith(this.prefix)){const n=localStorage.getItem(r);if(n)try{const{timestamp:i}=JSON.parse(n);e-i>this.cacheDuration&&t.push(r)}catch(e){t.push(r)}}}t.forEach(e=>{localStorage.removeItem(e);const t=e.replace(this.prefix+this.version+":","");this.accessLog.delete(t)})}cleanupLRUEntries(e){const t=Array.from(this.accessLog.entries()).sort(([,e],[,t])=>e-t);for(;this.getCurrentSize()+e>this.maxSize&&t.length>0;){const[e]=t.shift();localStorage.removeItem(this.produceCacheKey(e)),this.accessLog.delete(e)}}setCache(e,t){this.cleanupOldEntries();const n=this.produceCacheKey(e),r={data:t,timestamp:Date.now()},i=n.length+JSON.stringify(r).length;this.cleanupLRUEntries(i),this.getCurrentSize()+i>this.maxSize||(localStorage.setItem(n,JSON.stringify(r)),this.accessLog.set(e,Date.now()))}getCache(e){this.cleanupOldEntries();const t=this.produceCacheKey(e),n=localStorage.getItem(t);if(!n)return null;try{const{data:r,timestamp:i}=JSON.parse(n),s=Date.now();return s-i>this.cacheDuration?(localStorage.removeItem(t),this.accessLog.delete(e),null):(this.accessLog.set(e,s),r)}catch(n){return localStorage.removeItem(t),this.accessLog.delete(e),null}}clearCache(e){const t=this.produceCacheKey(e);localStorage.removeItem(t),this.accessLog.delete(e)}clearCacheByPattern(e){const t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);null!=r&&r.startsWith(this.prefix)&&r.includes(e)&&t.push(r)}t.forEach(e=>{localStorage.removeItem(e);const t=e.replace(this.prefix+this.version+":","");this.accessLog.delete(t)})}clearAllCache(){const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);null!=n&&n.startsWith(this.prefix)&&e.push(n)}e.forEach(e=>localStorage.removeItem(e)),this.accessLog.clear()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));const r=e=>{let{offsetParent:t}=e;const n=e.offsetHeight,r=e.offsetWidth;let i=e.offsetLeft,s=e.offsetTop;for(;t&&1===t.nodeType;)i+=t.offsetLeft-t.scrollLeft,s+=t.offsetTop-t.scrollTop,({offsetParent:t}=t);return{height:n,left:i,top:s,width:r}};var i=(e,t)=>{const n=e&&e.parentNode;if(n){const i=r(n),{height:s,left:o,top:a,width:l}=r(e);t(o-i.left,a-i.top,l,s,o,a)}};function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o="undefined"!=typeof window&&window.document,a=o?window.innerWidth:0,l=o?window.innerHeight:0;class c{constructor(){s(this,"debugCtx",void 0),s(this,"layoutsCtx",void 0),o?(this.debugCtx=c.createCanvas("sn-debug",1010),this.layoutsCtx=c.createCanvas("sn-layouts",1e3)):(this.debugCtx=null,this.layoutsCtx=null)}static createCanvas(e,t){const n=document.querySelector("#"+e)||document.createElement("canvas");n.setAttribute("id",e);const r=n.getContext("2d");if(!r)throw new Error("Could not get 2d context from canvas");return n.style.cssText="position: fixed; top: 0; left: 0; z-index: "+t,document.body.appendChild(n),n.width=a,n.height=l,r}clear(){o&&this.debugCtx&&this.debugCtx.clearRect(0,0,a,l)}clearLayouts(){o&&this.layoutsCtx&&this.layoutsCtx.clearRect(0,0,a,l)}drawLayout(e,t,n){o&&this.layoutsCtx&&(this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(e.left,e.top,e.width,e.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red",this.layoutsCtx.fillText(t,e.left,e.top+10),this.layoutsCtx.fillText(n,e.left,e.top+25),this.layoutsCtx.fillText("left: "+e.left,e.left,e.top+40),this.layoutsCtx.fillText("top: "+e.top,e.left,e.top+55))}drawPoint(e,t,n="blue",r=10){o&&this.debugCtx&&(this.debugCtx.strokeStyle=n,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(e-r/2,t-r/2,r,r))}}var u=c;function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d="SN:ROOT",f={left:[37],up:[38],right:[39],down:[40],enter:[13],back:[8,10009,461]},p=["#0FF","#FF0","#F0F"],g={leading:!0,trailing:!1},y=(e,t,n={})=>{let r=null,i=0;const{leading:s=!0,trailing:o=!0}=n;return function(...n){const a=Date.now();i||s||(i=a);const l=t-(a-i);l<=0||l>t?(r&&(clearTimeout(r),r=null),i=a,e.apply(this,n)):!r&&o&&(r=window.setTimeout(()=>{i=s?Date.now():0,r=null,e.apply(this,n)},l))}},v=(e,t)=>[...e].sort((e,n)=>{const r=t(e),i=t(n);return r<i?-1:r>i?1:0}),m=e=>e[0],b=(e,t)=>e.filter(e=>!t.includes(e)),A=(e,t)=>e.forEach(t);class w{static getCutoffCoordinate(e,t,n,r){const i=r.left,s=r.top,o=r.width,a=r.height,l=e?s:i,c=e?a:o;return t?n?l:l+c:n?l+c:l}static getRefCorners(e,t,n){const r=n.left,i=n.top,s=n.width,o=n.height,a={a:{x:0,y:0},b:{x:0,y:0}};switch(e){case"up":{const e=t?i+o:i;a.a={x:r,y:e},a.b={x:r+s,y:e};break}case"down":{const e=t?i:i+o;a.a={x:r,y:e},a.b={x:r+s,y:e};break}case"left":{const e=t?r+s:r;a.a={x:e,y:i},a.b={x:e,y:i+o};break}case"right":{const e=t?r:r+s;a.a={x:e,y:i},a.b={x:e,y:i+o};break}}return a}static isAdjacentSlice(e,t,n){const{a:r,b:i}=e,{a:s,b:o}=t,a=n?"x":"y",l=r[a],c=i[a],u=s[a],h=o[a],d=.2*(c-l);return Math.max(0,Math.min(c,h)-Math.max(l,u))>=d}static getPrimaryAxisDistance(e,t,n){const{a:r}=e,{a:i}=t,s=n?"y":"x";return Math.abs(i[s]-r[s])}static getSecondaryAxisDistance(e,t,n){const{a:r,b:i}=e,{a:s,b:o}=t,a=n?"x":"y",l=r[a],c=i[a],u=s[a],h=o[a],d=[];return d.push(Math.abs(u-l)),d.push(Math.abs(u-c)),d.push(Math.abs(h-l)),d.push(Math.abs(h-c)),Math.min(...d)}sortSiblingsByPriority(e,t,n,r){const i="down"===n||"up"===n,s=w.getRefCorners(n,!1,t);return[...e].sort((e,t)=>{const r=w.getRefCorners(n,!0,e.layout),o=w.getRefCorners(n,!0,t.layout),a=w.isAdjacentSlice(s,r,i),l=w.isAdjacentSlice(s,o,i),c=a?w.getPrimaryAxisDistance:w.getSecondaryAxisDistance,u=l?w.getPrimaryAxisDistance:w.getSecondaryAxisDistance,h=a?w.getSecondaryAxisDistance:w.getPrimaryAxisDistance,d=l?w.getSecondaryAxisDistance:w.getPrimaryAxisDistance,f=c(s,r,i),p=u(s,o,i);return(5*f+h(s,r,i)+1)/(a?5:1)-(5*p+d(s,o,i)+1)/(l?5:1)})}constructor(e={}){h(this,"focusableComponents",void 0),h(this,"focusKey",void 0),h(this,"parentsHavingFocusedChild",void 0),h(this,"nativeMode",void 0),h(this,"throttle",void 0),h(this,"throttleKeypresses",void 0),h(this,"pressedKeys",void 0),h(this,"paused",void 0),h(this,"keyDownEventListener",void 0),h(this,"clickEventListener",void 0),h(this,"keyUpEventListener",void 0),h(this,"keyMap",void 0),h(this,"debug",void 0),h(this,"visualDebugger",void 0),h(this,"logIndex",void 0),this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.pressedKeys={},this.paused=!0,this.keyDownEventListener=null,this.clickEventListener=null,this.keyUpEventListener=null,this.keyMap=f,this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.onKeyEvent=this.onKeyEvent.bind(this),this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.init(e)}init({debug:e=!1,visualDebug:t=!1,nativeMode:n=!1,throttle:r=0,throttleKeypresses:i=!1}={}){this.nativeMode=n,this.throttleKeypresses=i,this.debug=e,this.nativeMode||(Number.isInteger(r)&&r>0&&(this.throttle=r),this.bindEventHandlers(),t&&(this.visualDebugger=new u,this.startDrawLayouts()))}startDrawLayouts(){const e=()=>{requestAnimationFrame(()=>{var t;null===(t=this.visualDebugger)||void 0===t||t.clearLayouts(),Object.entries(this.focusableComponents).forEach(([e,t])=>{var n;null===(n=this.visualDebugger)||void 0===n||n.drawLayout(t.layout,e,t.parentFocusKey)}),e()})};e()}destroy(){this.unbindEventHandlers()}getEventType(e){return Object.keys(this.getKeyMap()).find(t=>this.getKeyMap()[t].includes(e))}bindEventHandlers(){if("undefined"!=typeof window&&window.addEventListener){const e=e=>{if(!0===this.paused)return;this.debug&&(this.logIndex+=1);const t=this.getEventType(e.keyCode);if(!t)return;this.pressedKeys[t]=this.pressedKeys[t]?this.pressedKeys[t]+1:1,e.preventDefault(),e.stopPropagation();const n={pressedKeys:this.pressedKeys};if(this.focusKey&&this.getNodeLayoutByFocusKey(this.focusKey)&&(n.layout=this.getNodeLayoutByFocusKey(this.focusKey)),"enter"===t&&this.focusKey)return void this.onEnterPress(n);if("back"===t&&this.focusKey)return void this.onBackPress(n);var r;!1===this.onArrowPress(t,n)?(this.log("keyDownEventListener","default navigation prevented"),null===(r=this.visualDebugger)||void 0===r||r.clear()):this.onKeyEvent(e)};this.keyDownEventListener=this.throttle?y(e,this.throttle,g):e,this.keyUpEventListener=e=>{const t=this.getEventType(e.keyCode);var n,r;(t&&delete this.pressedKeys[t],this.throttle&&!this.throttleKeypresses)&&(null===(n=this.keyDownEventListener)||void 0===n||null===(r=n.cancel)||void 0===r||r.call(n));"enter"===t&&this.focusKey&&this.onEnterRelease()},this.clickEventListener=e=>{if(!0===this.paused)return;const t=e.target;if(!t)return;const n=this.findFocusKeyForElement(t);if(!n)return;const r={pressedKeys:{},event:e,mouseClick:!0},i=this.getNodeLayoutByFocusKey(n);i&&(r.layout=i);this.focusKey===n||this.setFocus(n,r),this.onClickPress(r)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.keyDownEventListener),window.addEventListener("click",this.clickEventListener)}}unbindEventHandlers(){"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("keydown",this.keyDownEventListener),window.removeEventListener("click",this.clickEventListener),this.keyDownEventListener=null,this.clickEventListener=null,this.throttle&&(window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null))}findFocusKeyForElement(e){for(const t of Object.keys(this.focusableComponents)){const n=this.focusableComponents[t];if(n&&n.node&&n.focusable&&(n.node===e||n.node.contains(e)))return t}return null}onClickPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onClickPressHandler)||void 0===t||t.call(n,e):this.log("onClickPress","componentNotFocusable"):this.log("onClickPress","noComponent")}onEnterPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onEnterPressHandler)||void 0===t||t.call(n,e):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")}onBackPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onBackPressHandler)||void 0===t||t.call(n,e):this.log("onBackPress","componentNotFocusable"):this.log("onBackPress","noComponent")}onEnterRelease(){var e;const t=this.focusableComponents[this.focusKey];t?t.focusable?null===(e=t.onEnterReleaseHandler)||void 0===e||e.call(t):this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")}onArrowPress(e,t){var n;const r=this.focusableComponents[this.focusKey];if(r)return null===(n=r.onArrowPressHandler)||void 0===n?void 0:n.call(r,e,t);this.log("onArrowPress","noComponent")}navigateByDirection(e,t={pressedKeys:{}}){if(!0===this.paused)return;const n=["down","up","left","right"];n.includes(e)?(this.log("navigateByDirection","direction",e),this.smartNavigate(e,null,t)):this.log("navigateByDirection",`Invalid direction. You passed: \`${e}\`, but you can use only these: `,n)}onKeyEvent(e){var t;null===(t=this.visualDebugger)||void 0===t||t.clear();const n=Object.keys(this.getKeyMap()).find(t=>this.getKeyMap()[t].includes(e.keyCode));n&&this.smartNavigate(n,null,{pressedKeys:{},event:e})}smartNavigate(e,t,n){this.log("smartNavigate","direction",e),this.log("smartNavigate","fromParentFocusKey",t),this.log("smartNavigate","this.focusKey",this.focusKey),this.nativeMode||t||Object.values(this.focusableComponents).forEach(e=>{e.layoutUpdated=!1});const r=this.focusableComponents[t||this.focusKey];if(this.log("smartNavigate","currentComponent",r?r.focusKey:void 0,r?r.node:void 0),r){this.updateLayout(r.focusKey);const{parentFocusKey:t,focusKey:i,layout:s}=r,o="down"===e||"up"===e,a="down"===e||"right"===e,l=w.getCutoffCoordinate(o,a,!1,s),c=Object.values(this.focusableComponents).filter(e=>{if(e.parentFocusKey===t&&e.focusable){this.updateLayout(e.focusKey);const t=w.getCutoffCoordinate(o,a,!0,e.layout);return a?t>=l:t<=l}return!1});if(this.debug&&this.log("smartNavigate","siblings",c),c.length>0){const t=this.sortSiblingsByPriority(c,s,e,i);this.debug&&this.log("smartNavigate","sortedSiblings",t);const r=t[0];r&&this.setFocus(r.focusKey,n)}else this.log("smartNavigate","noSiblings"),t&&this.smartNavigate(e,t,n)}}saveLastFocusedChildKey(e,t){e&&(this.log("saveLastFocusedChildKey",e.focusKey+" lastFocusedChildKey set",t),e.lastFocusedChildKey=t)}log(e,t,...n){this.debug&&console.log(`%c${e}%c${t}`,`background: ${p[this.logIndex%p.length]}; color: black; padding: 1px 5px;`,"background: #333; color: #BADA55; padding: 1px 5px;",...n)}getNextFocusKey(e){this.log("getNextFocusKey","targetFocusKey",e);const t=this.focusableComponents[e];if(!t)return e;const{trackChildren:n}=t;if(!n)return e;const r=Object.values(this.focusableComponents).filter(t=>t.parentFocusKey===e&&t.focusable);if(0===r.length)return e;const{lastFocusedChildKey:i,preferredChildFocusKey:s}=t;if(i&&!t.forgetLastFocusedChild&&this.isParticipatingFocusableComponent(i))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",i),this.getNextFocusKey(i);if(s&&this.isParticipatingFocusableComponent(s))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",s),this.getNextFocusKey(s);r.forEach(e=>this.updateLayout(e.focusKey));const{focusKey:o}=(e=>{const t=v(e,({layout:e})=>Math.abs(e.left)+Math.abs(e.top));return m(t)})(r);return this.log("getNextFocusKey","childKey will be focused",o),this.getNextFocusKey(o)}addFocusable({focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:s,onArrowPressHandler:o,onBecameFocusedHandler:a,onBecameBlurredHandler:l,forgetLastFocusedChild:c,trackChildren:u,onUpdateFocus:h,onUpdateHasFocusedChild:d,preferredChildFocusKey:f,onClickPressHandler:p,autoRestoreFocus:g,focusable:y=!0,blockNavigationOut:v}){this.focusableComponents[e]={focusKey:e,node:t,parentFocusKey:n,onClickPressHandler:p,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:s,onArrowPressHandler:o,onBecameFocusedHandler:a,onBecameBlurredHandler:l,onUpdateFocus:h,onUpdateHasFocusedChild:d,forgetLastFocusedChild:c,trackChildren:u,lastFocusedChildKey:null,preferredChildFocusKey:f,focusable:y,blockNavigationOut:v,autoRestoreFocus:g,layout:{x:0,y:0,width:0,height:0,left:0,top:0,node:t},layoutUpdated:!1},this.nativeMode||(this.updateLayout(e),e===this.focusKey&&this.setFocus(e))}removeFocusable({focusKey:e}){const t=this.focusableComponents[e];if(t){const{parentFocusKey:n}=t;Reflect.deleteProperty(this.focusableComponents,e);const r=this.focusableComponents[n],i=e===this.focusKey;if(i&&(this.paused?this.focusKey=null:this.setFocus("PANEL_NAVIGATION")),r&&r.lastFocusedChildKey===e&&(r.lastFocusedChildKey=null),this.nativeMode)return;i&&r&&r.autoRestoreFocus&&!this.paused&&this.setFocus(n)}}getNodeLayoutByFocusKey(e){const t=this.focusableComponents[e];return t?(this.updateLayout(t.focusKey),t.layout):null}setCurrentFocusedKey(e,t={pressedKeys:{}}){if(this.isFocusableComponent(this.focusKey)&&e!==this.focusKey){var n,r;const e=this.focusableComponents[this.focusKey],i=this.focusableComponents[e.parentFocusKey];this.saveLastFocusedChildKey(i,this.focusKey),null===(n=e.onUpdateFocus)||void 0===n||n.call(e,!1),null===(r=e.onBecameBlurredHandler)||void 0===r||r.call(e,this.getNodeLayoutByFocusKey(this.focusKey),t)}if(this.focusKey=e,this.isFocusableComponent(this.focusKey)){var i,s;const e=this.focusableComponents[this.focusKey];null===(i=e.onUpdateFocus)||void 0===i||i.call(e,!0),this.updateParentsHasFocusedChild(this.focusKey,t),null===(s=e.onBecameFocusedHandler)||void 0===s||s.call(e,this.getNodeLayoutByFocusKey(this.focusKey),t)}}updateParentsHasFocusedChild(e,t){const n=[];let r=this.focusableComponents[e];for(;r;){const{parentFocusKey:e}=r,t=this.focusableComponents[e];if(t){const{focusKey:e}=t;n.push(e)}r=t}const i=b(this.parentsHavingFocusedChild,n),s=b(n,this.parentsHavingFocusedChild);A(i,e=>{var n;const r=this.focusableComponents[e];r&&r.trackChildren&&(null===(n=r.onUpdateHasFocusedChild)||void 0===n||n.call(r,!1)),this.onIntermediateNodeBecameBlurred(e,t)}),A(s,e=>{var n;const r=this.focusableComponents[e];r&&r.trackChildren&&(null===(n=r.onUpdateHasFocusedChild)||void 0===n||n.call(r,!0)),this.onIntermediateNodeBecameFocused(e,t)}),this.parentsHavingFocusedChild=n}updateParentsLastFocusedChild(e){let t=this.focusableComponents[e];for(;t;){const{parentFocusKey:e}=t,n=this.focusableComponents[e];n&&this.saveLastFocusedChildKey(n,t.focusKey),t=n}}getKeyMap(){return this.keyMap}setKeyMap(e){this.keyMap={...this.getKeyMap(),...e}}isFocusableComponent(e){return!!this.focusableComponents[e]}isParticipatingFocusableComponent(e){return this.isFocusableComponent(e)&&this.focusableComponents[e].focusable}onIntermediateNodeBecameFocused(e,t){var n,r;this.isParticipatingFocusableComponent(e)&&(null===(n=(r=this.focusableComponents[e]).onBecameFocusedHandler)||void 0===n||n.call(r,this.getNodeLayoutByFocusKey(e),t))}onIntermediateNodeBecameBlurred(e,t){var n,r;this.isParticipatingFocusableComponent(e)&&(null===(n=(r=this.focusableComponents[e]).onBecameBlurredHandler)||void 0===n||n.call(r,this.getNodeLayoutByFocusKey(e),t))}pause(){var e,t;this.parentsHavingFocusedChild=[],this.pressedKeys={},this.log("pause","paused"),null===(e=this.visualDebugger)||void 0===e||e.clear(),null===(t=this.visualDebugger)||void 0===t||t.clearLayouts(),this.getFocusableComponents().forEach(e=>{var t,n;null===(t=e.onUpdateFocus)||void 0===t||t.call(e,!1),null===(n=e.onUpdateHasFocusedChild)||void 0===n||n.call(e,!1)}),this.paused=!0}resume(){this.paused=!1}setFocus(e,t={pressedKeys:{}}){const n=this.focusKey,r=this.getNextFocusKey(e);this.log("setFocus","newFocusKey",r),this.setCurrentFocusedKey(r,t),this.updateParentsHasFocusedChild(r,t),this.updateParentsLastFocusedChild(n)}updateAllLayouts(){this.nativeMode||Object.entries(this.focusableComponents).forEach(([e])=>{this.updateLayout(e)})}updateLayout(e){const t=this.focusableComponents[e];if(!t||this.nativeMode||t.layoutUpdated)return;const{node:n}=t;i(n,(e,r,i,s,o,a)=>{t.layout={x:e,y:r,width:i,height:s,left:o,top:a,node:n}})}updateFocusable(e,{node:t,preferredChildFocusKey:n,focusable:r,blockNavigationOut:i}){if(this.nativeMode)return;const s=this.focusableComponents[e];s&&(s.preferredChildFocusKey=n,s.focusable=null!=r?r:s.focusable,s.blockNavigationOut=i,t&&(s.node=t))}isNativeMode(){return this.nativeMode}getFocusableComponents(){return Object.values(this.focusableComponents)}getFocusableComponentsByParentFocusKey(e){return Object.values(this.focusableComponents).filter(t=>t.parentFocusKey===e)}}t.b=w},function(e,t){},function(e,t){},function(e,t,n){"use strict";(function(t){var r=n(2),i=n(55),s=n(12),o=n(39),a=n(40),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,h={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(u=n(41)),u),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,s=r.isObject(e),o=t&&t["Content-Type"];if((n=r.isFileList(e))||s&&"multipart/form-data"===o){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return s||"application/json"===o?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw s.from(e,s.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(67)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){h.headers[e]=r.merge(l)})),e.exports=h}).call(this,n(49))},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,"/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: var(--sdk-font-body);\n color: var(--sdk-text100);\n --sdk-bets: #20f4ca;\n --sdk-highlightPrimary-rgb: 255, 255, 255;\n}\n\n.sdk-wrapper .focus-ring {\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 10px;\n}\n\n.sdk-wrapper .focus-ring[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.sdk-wrapper .focus-opacity {\n background-color: transparent;\n transition: background-color 0.2s ease-in-out;\n}\n\n.sdk-wrapper .focus-opacity[data-focused='true'] {\n background-color: rgba(var(--sdk-highlightPrimary-rgb), 0.078);\n}\n\n.FONT_BOLD_HEADLINE {\n font-family: var(--sdk-font-headline);\n}\n\n.FONT_BOLD {\n font-family: var(--sdk-font-title);\n}\n\n.TEXT_200 {\n color: var(--sdk-text200);\n}\n\n.T01 {\n font-size: 18px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.T02 {\n font-size: 18px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T04 {\n font-size: 20px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T05_ALT {\n font-size: 21px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.T10 {\n font-size: 23px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.T20 {\n font-size: 27px;\n font-weight: 500;\n line-height: 36px;\n}\n\n.T30 {\n font-size: 29px;\n font-weight: 700;\n line-height: 36px;\n}\n\n.T50 {\n font-size: 34px;\n line-height: 40px;\n}\n\n.T60 {\n font-size: 38px;\n font-weight: 500;\n line-height: 44px;\n}\n\n.T70 {\n font-size: 48px;\n font-weight: 900;\n line-height: 56px;\n}\n","",{version:3,sources:["webpack://./src/components/core/App/App.styles.css"],names:[],mappings:"AAAA,oCAAoC;AACpC;EACE,iCAAiC;EACjC,yBAAyB;EACzB,mBAAmB;EACnB,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,yCAAyC;EACzC,mBAAmB;AACrB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,6CAA6C;AAC/C;;AAEA;EACE,8DAA8D;AAChE;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB",sourcesContent:["/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: var(--sdk-font-body);\n color: var(--sdk-text100);\n --sdk-bets: #20f4ca;\n --sdk-highlightPrimary-rgb: 255, 255, 255;\n}\n\n.sdk-wrapper .focus-ring {\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 10px;\n}\n\n.sdk-wrapper .focus-ring[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.sdk-wrapper .focus-opacity {\n background-color: transparent;\n transition: background-color 0.2s ease-in-out;\n}\n\n.sdk-wrapper .focus-opacity[data-focused='true'] {\n background-color: rgba(var(--sdk-highlightPrimary-rgb), 0.078);\n}\n\n.FONT_BOLD_HEADLINE {\n font-family: var(--sdk-font-headline);\n}\n\n.FONT_BOLD {\n font-family: var(--sdk-font-title);\n}\n\n.TEXT_200 {\n color: var(--sdk-text200);\n}\n\n.T01 {\n font-size: 18px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.T02 {\n font-size: 18px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T04 {\n font-size: 20px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T05_ALT {\n font-size: 21px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.T10 {\n font-size: 23px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.T20 {\n font-size: 27px;\n font-weight: 500;\n line-height: 36px;\n}\n\n.T30 {\n font-size: 29px;\n font-weight: 700;\n line-height: 36px;\n}\n\n.T50 {\n font-size: 34px;\n line-height: 40px;\n}\n\n.T60 {\n font-size: 38px;\n font-weight: 500;\n line-height: 44px;\n}\n\n.T70 {\n font-size: 48px;\n font-weight: 900;\n line-height: 56px;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".sdk--panel-manager {\n padding: 60px;\n padding-left: 48px;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n\n.sdk--panel-loading {\n display: block;\n padding: 40px 20px;\n}\n","",{version:3,sources:["webpack://./src/components/core/PanelManager/PanelManager.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,kBAAkB;EAClB,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB",sourcesContent:[".sdk--panel-manager {\n padding: 60px;\n padding-left: 48px;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n\n.sdk--panel-loading {\n display: block;\n padding: 40px 20px;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".panel-navigation {\n width: 100%;\n}\n\n.panel-navigation > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: inline-block;\n margin-right: 12px;\n}\n\n.panel-navigation .panel-nav-button-container:last-child {\n margin-right: 0;\n}\n","",{version:3,sources:["webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css"],names:[],mappings:"AAAA;EACE,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA;EACE,eAAe;AACjB",sourcesContent:[".panel-navigation {\n width: 100%;\n}\n\n.panel-navigation > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: inline-block;\n margin-right: 12px;\n}\n\n.panel-navigation .panel-nav-button-container:last-child {\n margin-right: 0;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\n font-family: var(--sdk-font-title);\n box-sizing: border-box;\n}\n\n.panel-nav-button-container > * {\n margin-bottom: 0;\n}\n\n.panel-nav-button-container path {\n fill: var(--sdk-highlightSecondary);\n}\n\n.panel-nav-button-container button {\n padding: 8px 0;\n background-color: var(--sdk-surface3);\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container .panel-nav-label {\n margin-top: 10px;\n}\n\n.panel-nav-button-container[data-focused='true'],\n.panel-nav-button-container:hover,\n.panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused='true'] path,\n.panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] rect,\n.panel-nav-button-container:hover rect {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] button,\n.panel-nav-button-container:hover button {\n background-color: var(--sdk-accentPrimary);\n}\n\n.panel-nav-button-active button {\n background-color: var(--sdk-surface5);\n}\n\n.panel-nav-button-active path {\n fill: var(--sdk-highlightPrimary);\n}\n\n.panel-nav-button-container .FONT_BOLD {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--sdk-font-headline);\n}\n","",{version:3,sources:["webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css"],names:[],mappings:"AAAA;EACE,cAAc;EACd,kBAAkB;EAClB,yBAAyB;EACzB,kCAAkC;EAClC,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;;EAErC,qEAAqE;AACvE;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;;EAGE,yBAAyB;AAC3B;;AAEA;;EAEE,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;;EAEE,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;;EAEE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;EACvB,qCAAqC;AACvC",sourcesContent:[".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\n font-family: var(--sdk-font-title);\n box-sizing: border-box;\n}\n\n.panel-nav-button-container > * {\n margin-bottom: 0;\n}\n\n.panel-nav-button-container path {\n fill: var(--sdk-highlightSecondary);\n}\n\n.panel-nav-button-container button {\n padding: 8px 0;\n background-color: var(--sdk-surface3);\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container .panel-nav-label {\n margin-top: 10px;\n}\n\n.panel-nav-button-container[data-focused='true'],\n.panel-nav-button-container:hover,\n.panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused='true'] path,\n.panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] rect,\n.panel-nav-button-container:hover rect {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] button,\n.panel-nav-button-container:hover button {\n background-color: var(--sdk-accentPrimary);\n}\n\n.panel-nav-button-active button {\n background-color: var(--sdk-surface5);\n}\n\n.panel-nav-button-active path {\n fill: var(--sdk-highlightPrimary);\n}\n\n.panel-nav-button-container .FONT_BOLD {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--sdk-font-headline);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".base-button {\n border-radius: 6px;\n display: block;\n text-align: center;\n cursor: pointer;\n width: 100%;\n border: none;\n font-family: var(--sdk-font-title);\n}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n","",{version:3,sources:["webpack://./src/components/atoms/BaseButton/BaseButton.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,eAAe;EACf,WAAW;EACX,YAAY;EACZ,kCAAkC;AACpC;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB",sourcesContent:[".base-button {\n border-radius: 6px;\n display: block;\n text-align: center;\n cursor: pointer;\n width: 100%;\n border: none;\n font-family: var(--sdk-font-title);\n}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(6),i=n.n(r),s=n(7),o=n.n(s)()(i.a);o.push([e.i,".scrollable-container {\n position: relative;\n}\n\n.scrollable-container::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 58px; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scrollable-container[data-scrolled='true']::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-container::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 96px; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.focusable-item {\n width: 100%;\n height: 100%;\n}\n","",{version:3,sources:["webpack://./src/components/core/ScrollableContainer/ScrollableContainer.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,YAAY,EAAE,+BAA+B;EAC7C,UAAU;EACV,6BAA6B;AAC/B;;AAEA;EACE,UAAU;EACV,yEAAyE;AAC3E;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY,EAAE,kCAAkC;EAChD,2EAA2E;AAC7E;;AAEA;EACE,WAAW;EACX,YAAY;AACd",sourcesContent:[".scrollable-container {\n position: relative;\n}\n\n.scrollable-container::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 58px; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scrollable-container[data-scrolled='true']::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-container::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 96px; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.focusable-item {\n width: 100%;\n height: 100%;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){e.exports=n(72)()},function(e,t,n){"use strict";var r=n(0),i=n.n(r),s=n(30);t.a=({children:e})=>{const t=Object(r.useRef)(null),{setRef:n,removeRef:o}=Object(s.a)();return Object(r.useEffect)(()=>{const e=t.current;return e&&n(e),()=>{e&&o(e)}},[n,o]),i.a.createElement("div",{className:"focusable-item",ref:t},e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),s=n(5),o=n.n(s),a=n(26),l={insert:"head",singleton:!1};o()(a.a,l),a.a.locals;function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}const u=i.a.createContext({setRef:()=>{},removeRef:()=>{},scrollToFocusedElement:()=>{}});t.b=({children:e,scrollableContainerRef:t,containerTopOffset:n=0,...s})=>{const[o,a]=Object(r.useState)(!1),l=Object(r.useRef)(new Set),h=Object(r.useRef)(""),d=Object(r.useRef)(""),f=Object(r.useRef)([]),p=Object(r.useCallback)(e=>{l.current.add(e),h.current=Math.random().toString(36).substring(2,15)},[]),g=Object(r.useCallback)(e=>{l.current.delete(e),h.current=Math.random().toString(36).substring(2,15)},[]),y=Object(r.useCallback)(()=>{if(h.current===d.current)return f.current;const e=Array.from(l.current);return f.current=e.sort((e,n)=>{if(!t)return 0;const r=t.getBoundingClientRect(),i=e?e.getBoundingClientRect():{top:0,bottom:0},s=n?n.getBoundingClientRect():{top:0,bottom:0};return i.top-r.top-(s.top-r.top)}),d.current=h.current,f.current},[t]),v=Object(r.useCallback)(async(e,r)=>{if(!t||!e.node)return;const i=(null==r?void 0:r.offsetTop)||0,s=y();var o;await(o=0,new Promise(e=>setTimeout(e,o)));const l=t.getBoundingClientRect(),c=e.node.getBoundingClientRect();let u=-1;for(let t=s.length-1;t>=0;t--)if(s[t].contains(e.node)){u=t;break}if(-1===u)return void console.warn("Element not found in refsMap to focus to. Register the element wrapping it with <FocusableItem />");let h=!1;if(s.slice(u).forEach(e=>{const t=e.getBoundingClientRect();(t.bottom>l.bottom||t.top<l.top)&&(h=!0)}),!h)return;const d=0===u?0:t.scrollTop+(c.top-l.top-n-i);t.scrollTop=d,a(e=>{const t=d>0;return e!==t?t:e})},[t,n,y]),m=Object(r.useMemo)(()=>({setRef:p,removeRef:g,scrollToFocusedElement:v}),[p,g,v]);return i.a.createElement(u.Provider,{value:m},i.a.createElement("div",c({className:"scrollable-container","data-scrolled":o},s),e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),i=n(29);const s=()=>{const e=Object(r.useContext)(i.a);if(!e)throw new Error("useScrollableContainer must be used within a ScrollableContainer");return e}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),s=n(1);const o=Object(r.lazy)(()=>n.e(28).then(n.bind(null,76))),a=Object(r.lazy)(()=>n.e(30).then(n.bind(null,77))),l=Object(r.lazy)(()=>n.e(15).then(n.bind(null,78))),c=Object(r.lazy)(()=>n.e(33).then(n.bind(null,79))),u=Object(r.lazy)(()=>n.e(35).then(n.bind(null,80))),h=Object(r.lazy)(()=>n.e(21).then(n.bind(null,81))),d=Object(r.lazy)(()=>n.e(20).then(n.bind(null,82))),f=Object(r.lazy)(()=>n.e(34).then(n.bind(null,83))),p=Object(r.lazy)(()=>n.e(19).then(n.bind(null,84))),g=Object(r.lazy)(()=>n.e(23).then(n.bind(null,85))),y=Object(r.lazy)(()=>n.e(16).then(n.bind(null,86))),v=Object(r.lazy)(()=>n.e(29).then(n.bind(null,87))),m=Object(r.lazy)(()=>n.e(22).then(n.bind(null,88))),b=Object(r.lazy)(()=>n.e(31).then(n.bind(null,89))),A=Object(r.lazy)(()=>n.e(27).then(n.bind(null,90))),w=Object(r.lazy)(()=>n.e(18).then(n.bind(null,91))),E=Object(r.lazy)(()=>n.e(32).then(n.bind(null,92))),C=Object(r.lazy)(()=>n.e(17).then(n.bind(null,93))),P=Object(r.lazy)(()=>n.e(24).then(n.bind(null,94))),S=Object(r.lazy)(()=>n.e(26).then(n.bind(null,95))),k=Object(r.lazy)(()=>n.e(25).then(n.bind(null,96))),B={...{[s.a.ESPN_KEY_PLAYS]:o,[s.a.ESPN_BETS]:l,[s.a.ESPN_STATS]:c,[s.a.ESPN_FANTASY]:m,[s.a.ESPN_SHOP]:b,[s.a.HELLO_WORLD]:A,[s.a.FOX_STATS]:S,[s.a.FOX_KEY_PLAYS]:P,[s.a.FOX_MULTI_VIEW]:k,[s.a.BUILDER_BLOCK_PANEL]:C},...{play:a,warning:u,expand:h,collapse:d,times:f,checkmark:p,flame:g,betsWarning:y,mobilePhone:v,chat:w,shopifyBlockPanel:E}},x=e=>i.a.createElement("div",{style:{width:e.width,height:e.height}});class T extends i.a.Component{render(){const{iconName:e,width:t,height:n}=this.props,s=B[e];return s?i.a.createElement(r.Suspense,{fallback:i.a.createElement(x,{width:t,height:n})},i.a.createElement(s,{iconName:e,width:t,height:n})):i.a.createElement(x,{width:t,height:n})}}t.a=T},function(e,t,n){"use strict";var r=n(0),i=n.n(r),s=n(5),o=n.n(s),a=n(25),l={insert:"head",singleton:!1},c=(o()(a.a,l),a.a.locals,n(28));function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}class h extends i.a.Component{render(){const e=["base-button",this.props.className].join(" ");return i.a.createElement(c.a,null,i.a.createElement("button",u({},this.props,{className:e}),this.props.children))}}t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3);function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s{constructor(){i(this,"_isLoading",new r.a(!1)),i(this,"_error",new r.a(null))}get isLoading(){return this._isLoading}get error(){return this._error}setLoading(e){this._isLoading.value=e}setError(e){this._error.value=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),i=n(16);function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o extends Error{constructor(e){super(e),this.name="NetworkError"}}class a extends Error{constructor(e){super(e),this.name="AuthError"}}class l extends Error{constructor(e){super(e),this.name="NotFoundError"}}class c extends Error{constructor(e,t){super(t),s(this,"statusCode",void 0),this.name="ServerError",this.statusCode=e}}class u extends Error{constructor(e,t){super(t),s(this,"statusCode",void 0),this.name="BadRequestError",this.statusCode=e}}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE"};t.b=class{constructor(e={},t){h(this,"cacheManager",void 0),h(this,"maestroClient",void 0),h(this,"externalClient",void 0),h(this,"pollingTasks",void 0),h(this,"localStorage",void 0),this.pollingTasks=new Map,this.cacheManager=e.cacheManager||new i.a(e.defaultCacheDuration),this.maestroClient=e.networkClient||new r.a({baseURL:"https://api.maestro.io",retries:3,delay:1e3,backoff:2}),this.externalClient=e.externalNetworkClient||new r.a({baseURL:e.externalBaseURL||"",retries:3,delay:1e3,backoff:2}),this.localStorage=t||"undefined"!=typeof globalThis&&globalThis.localStorage||{length:0,clear:()=>{},getItem:()=>null,key:()=>null,removeItem:()=>{},setItem:()=>{}}}setAuthentication(e,t){this.maestroClient.setAuthentication(e,t)}async withCache(e,t,n){const r=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e.endpoint,params:e.params,data:null}));if(t){const e=this.cacheManager.getCache(r);if(e)return e}const i=await n();return t&&this.cacheManager.setCache(r,i),i}handleError(e){if(e.response){var t;const n=e.response.status,r=(null===(t=e.response.data)||void 0===t?void 0:t.message)||e.message;throw 401===n||403===n?new a(r):404===n?new l(r):n>=500?new c(n,r):new u(n,r)}throw e.request?new o("Network request failed"):e}async maestroApiRequest({endpoint:e,method:t=d.GET,params:n={},data:r=null,headers:i={},useCache:s=!1,maestroDefaultHeaders:o=null,skipResponseBodyDeserialization:a=!1}){const l={"x-maestro-maestro-kit-flavor":"MaestroKit_Web",...i};o&&(l["x-maestro-client-id"]=o.siteId,l.Authorization="Bearer "+o.jwt,l["Content-type"]="application/json");const c=t===d.GET&&s,u=async()=>{let i;if(t===d.GET)i=await this.maestroClient.get(e,n,l);else{if(t!==d.POST)throw new Error(`Method ${t} not implemented`);i=await this.maestroClient.post(e,r)}return a&&!i&&(i={}),i};try{return await this.withCache({endpoint:e,params:n},c,u)}catch(e){return this.handleError(e)}}async externalApiRequest({endpoint:e,method:t=d.GET,params:n={},data:r=null,headers:i={},useCache:s=!1,skipResponseBodyDeserialization:o=!1}){const a=t===d.GET&&s,l=async()=>{let s;if(t===d.GET)s=await this.externalClient.get(e,n,i);else{if(t!==d.POST)throw new Error(`Method ${t} not implemented`);s=await this.externalClient.post(e,r)}return o&&!s&&(s={}),s};try{return await this.withCache({endpoint:e,params:n},a,l)}catch(e){return this.handleError(e)}}async externalApiRequestWithHeaders({endpoint:e,method:t=d.GET,params:n={},data:r=null,headers:i={},useCache:s=!1,skipResponseBodyDeserialization:o=!1}){const a=t===d.GET&&s,l=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e,params:n,data:null}));if(a){const e=this.cacheManager.getCache(l);if(e)return{data:e,headers:{}}}try{let s;if(t===d.GET)s=await this.externalClient.getWithHeaders(e,n,i);else{if(t!==d.POST)throw new Error(`Method ${t} not implemented`);s=await this.externalClient.postWithHeaders(e,r,n,i)}return o&&!s.data&&(s.data={}),a&&this.cacheManager.setCache(l,s.data),s}catch(e){return this.handleError(e)}}pollMaestroApiRequest({endpoint:e,interval:t,method:n=d.GET,params:r={},data:i=null,headers:s={},maestroDefaultHeaders:o=null,skipResponseBodyDeserialization:a=!1,onData:l,onError:c}){const u=`${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var h;this.pollingTasks.has(u)&&(null===(h=this.pollingTasks.get(u))||void 0===h||h.controller.abort(),this.pollingTasks.delete(u));const f=new AbortController,p=f.signal;return(async()=>{for(;!p.aborted;){try{const t=await this.maestroApiRequest({endpoint:e,method:n,params:r,data:i,headers:s,maestroDefaultHeaders:o,skipResponseBodyDeserialization:a,useCache:!1});l(t)}catch(e){c&&c(e)}p.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(u,{controller:f,interval:t}),{stop:()=>{var e;this.pollingTasks.has(u)&&(null===(e=this.pollingTasks.get(u))||void 0===e||e.controller.abort(),this.pollingTasks.delete(u))}}}pollExternalApiRequest({endpoint:e,interval:t,method:n=d.GET,params:r={},data:i=null,headers:s={},skipResponseBodyDeserialization:o=!1,onData:a,onError:l}){const c=`external-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var u;this.pollingTasks.has(c)&&(null===(u=this.pollingTasks.get(c))||void 0===u||u.controller.abort(),this.pollingTasks.delete(c));const h=new AbortController,f=h.signal;return(async()=>{for(;!f.aborted;){try{const t=await this.externalApiRequest({endpoint:e,method:n,params:r,data:i,headers:s,skipResponseBodyDeserialization:o,useCache:!1});a(t)}catch(e){l&&l(e)}f.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(c,{controller:h,interval:t}),{stop:()=>{var e;this.pollingTasks.has(c)&&(null===(e=this.pollingTasks.get(c))||void 0===e||e.controller.abort(),this.pollingTasks.delete(c))}}}pollExternalApiRequestWithHeaders({endpoint:e,interval:t,method:n=d.GET,params:r={},data:i=null,headers:s={},skipResponseBodyDeserialization:o=!1,onData:a,onError:l}){const c=`external-headers-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var u;this.pollingTasks.has(c)&&(null===(u=this.pollingTasks.get(c))||void 0===u||u.controller.abort(),this.pollingTasks.delete(c));const h=new AbortController,f=h.signal;return(async()=>{for(;!f.aborted;){try{const t=await this.externalApiRequestWithHeaders({endpoint:e,method:n,params:r,data:i,headers:s,skipResponseBodyDeserialization:o,useCache:!1});a(t)}catch(e){l&&l(e)}f.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(c,{controller:h,interval:t}),{stop:()=>{var e;this.pollingTasks.has(c)&&(null===(e=this.pollingTasks.get(c))||void 0===e||e.controller.abort(),this.pollingTasks.delete(c))}}}stopAllPolling(){for(const[e,{controller:t}]of this.pollingTasks.entries())t.abort(),this.pollingTasks.delete(e)}clearAllCache(){const e=this.localStorage.length;for(let t=0;t<e;t++){const e=this.localStorage.key(t);e&&e.startsWith("maestro-cache-")&&this.localStorage.removeItem(e)}}}},function(e,t){},function(e,t){},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(2);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(r.isURLSearchParams(t))s=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),s=o.join("&")}if(s){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){var r=n(2);e.exports=function(e,n){n=n||new FormData;var i=[];function s(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,o){if(r.isPlainObject(t)||r.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+o);i.push(t),r.forEach(t,(function(t,i){if(!r.isUndefined(t)){var a,l=o?o+"."+i:i;if(t&&!o&&"object"==typeof t)if(r.endsWith(i,"{}"))t=JSON.stringify(t);else if(r.endsWith(i,"[]")&&(a=r.toArray(t)))return void a.forEach((function(e){!r.isUndefined(e)&&n.append(l,s(e))}));e(t,l)}})),i.pop()}else n.append(o,s(t))}(e),n}}).call(this,n(56).Buffer)},function(e,t,n){"use strict";var r=n(2),i=n(60),s=n(61),o=n(38),a=n(42),l=n(64),c=n(65),u=n(39),h=n(12),d=n(15),f=n(66);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,y=e.headers,v=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(g)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var A=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(A+":"+w)}var E=a(e.baseURL,e.url);function C(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,s={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),m()}),(function(e){n(e),m()}),s),b=null}}if(b.open(e.method.toUpperCase(),o(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(n(new h("Request aborted",h.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new h(t,r.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var P=(e.withCredentials||c(E))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;P&&(y[e.xsrfHeaderName]=P)}"setRequestHeader"in b&&r.forEach(y,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete y[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),g||(g=null);var S=f(E);S&&-1===["http","https","file"].indexOf(S)?n(new h("Unsupported protocol "+S+":",h.ERR_BAD_REQUEST,e)):b.send(g)}))}},function(e,t,n){"use strict";var r=n(62),i=n(63);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||s,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){e.exports=n(50)},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(2),i=n(37),s=n(51),o=n(44);var a=function e(t){var n=new s(t),a=i(s.prototype.request,n);return r.extend(a,s.prototype,n),r.extend(a,n),a.create=function(n){return e(o(t,n))},a}(n(20));a.Axios=s,a.CanceledError=n(15),a.CancelToken=n(69),a.isCancel=n(43),a.VERSION=n(45).version,a.toFormData=n(40),a.AxiosError=n(12),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(70),a.isAxiosError=n(71),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";var r=n(2),i=n(38),s=n(52),o=n(53),a=n(44),l=n(42),c=n(68),u=c.validators;function h(e){this.defaults=e,this.interceptors={request:new s,response:new s}}h.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var s,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var h=[o,void 0];for(Array.prototype.unshift.apply(h,r),h=h.concat(l),s=Promise.resolve(t);h.length;)s=s.then(h.shift(),h.shift());return s}for(var d=t;r.length;){var f=r.shift(),p=r.shift();try{d=f(d)}catch(e){p(e);break}}try{s=o(d)}catch(e){return Promise.reject(e)}for(;l.length;)s=s.then(l.shift(),l.shift());return s},h.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){h.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(a(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[e]=t(),h.prototype[e+"Form"]=t(!0)})),e.exports=h},function(e,t,n){"use strict";var r=n(2);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(2),i=n(54),s=n(43),o=n(20),a=n(15);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return s(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(2),i=n(20);e.exports=function(e,t,n){var s=this||i;return r.forEach(n,(function(n){e=n.call(s,e,t)})),e}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";(function(e){
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|