@maestro_io/maestro-web-sdk 1.0.0 → 2.0.0

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.
Files changed (106) hide show
  1. package/dist/1.maestro-web-sdk.umd.js +2 -0
  2. package/dist/1.maestro-web-sdk.umd.js.map +1 -0
  3. package/dist/2.maestro-web-sdk.umd.js +2 -0
  4. package/dist/2.maestro-web-sdk.umd.js.map +1 -0
  5. package/dist/3.maestro-web-sdk.umd.js +2 -0
  6. package/dist/3.maestro-web-sdk.umd.js.map +1 -0
  7. package/dist/4.maestro-web-sdk.umd.js +2 -0
  8. package/dist/4.maestro-web-sdk.umd.js.map +1 -0
  9. package/dist/5.maestro-web-sdk.umd.js +2 -0
  10. package/dist/5.maestro-web-sdk.umd.js.map +1 -0
  11. package/dist/6.maestro-web-sdk.umd.js +2 -0
  12. package/dist/6.maestro-web-sdk.umd.js.map +1 -0
  13. package/dist/MaestroEventDelegate.d.ts +9 -0
  14. package/dist/components/atoms/BaseButton/BaseButton.d.ts +9 -0
  15. package/dist/components/atoms/BaseButton/index.d.ts +2 -0
  16. package/dist/components/atoms/Image/index.d.ts +9 -0
  17. package/dist/components/atoms/SvgIcon/BetsIcon.d.ts +7 -0
  18. package/dist/components/atoms/SvgIcon/FantasyIcon.d.ts +6 -0
  19. package/dist/components/atoms/SvgIcon/Icon.d.ts +30 -0
  20. package/dist/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +6 -0
  21. package/dist/components/atoms/SvgIcon/PlayIcon.d.ts +6 -0
  22. package/dist/components/atoms/SvgIcon/StatsIcon.d.ts +6 -0
  23. package/dist/components/atoms/SvgIcon/WarningIcon.d.ts +6 -0
  24. package/dist/components/atoms/SvgIcon/index.d.ts +2 -0
  25. package/dist/components/core/App/App.d.ts +10 -0
  26. package/dist/components/core/App/index.d.ts +2 -0
  27. package/dist/components/core/PanelManager/PanelManager.d.ts +14 -0
  28. package/dist/components/core/PanelManager/index.d.ts +2 -0
  29. package/dist/components/molecules/ActionButton/ActionButton.d.ts +50 -0
  30. package/dist/components/molecules/ActionButton/index.d.ts +2 -0
  31. package/dist/components/molecules/PanelNavButton/PanelNavButton.d.ts +107 -0
  32. package/dist/components/molecules/PanelNavButton/index.d.ts +2 -0
  33. package/dist/components/molecules/ScrollableGradient/ScrollableGradient.d.ts +11 -0
  34. package/dist/components/molecules/ScrollableGradient/index.d.ts +2 -0
  35. package/dist/components/molecules/SegmentButton/SegmentButton.d.ts +10 -0
  36. package/dist/components/molecules/SegmentButton/index.d.ts +2 -0
  37. package/dist/components/molecules/WatchButton/WatchButton.d.ts +10 -0
  38. package/dist/components/molecules/WatchButton/index.d.ts +2 -0
  39. package/dist/components/organisms/PanelNavigation/PanelNavigation.d.ts +15 -0
  40. package/dist/components/organisms/PanelNavigation/index.d.ts +2 -0
  41. package/dist/components/organisms/SegmentController/SegmentController.d.ts +14 -0
  42. package/dist/components/organisms/SegmentController/index.d.ts +2 -0
  43. package/dist/external/AxiosNetworkClient.d.ts +15 -0
  44. package/dist/external/LocalStorageCacheManager.d.ts +10 -0
  45. package/dist/external/ReactRenderer.d.ts +26 -0
  46. package/dist/external/ports/cacheManager.d.ts +15 -0
  47. package/dist/external/ports/networkClient.d.ts +5 -0
  48. package/dist/external/ports/renderer.d.ts +9 -0
  49. package/dist/external/spatial-navigation/index.d.ts +5 -0
  50. package/dist/external/spatial-navigation/measureLayout.d.ts +2 -0
  51. package/dist/external/spatial-navigation/spatialNavigation.d.ts +166 -0
  52. package/dist/external/spatial-navigation/utils.d.ts +15 -0
  53. package/dist/external/spatial-navigation/visualDebugger.d.ts +17 -0
  54. package/dist/external/spatial-navigation/withFocusable.d.ts +81 -0
  55. package/dist/helpers/Observable.d.ts +12 -0
  56. package/dist/helpers/deliver-focus.d.ts +5 -0
  57. package/dist/helpers/withRemoteControl.d.ts +47 -0
  58. package/dist/index.d.ts +60 -382
  59. package/dist/interfaces/IMaestroEvent.d.ts +62 -0
  60. package/dist/interfaces/IMaestroEventDelegate.d.ts +18 -0
  61. package/dist/interfaces/IMaestroManager.d.ts +82 -0
  62. package/dist/maestro-web-sdk.umd.js +2 -3
  63. package/dist/maestro-web-sdk.umd.js.map +1 -1
  64. package/dist/models/IModel.d.ts +7 -0
  65. package/dist/models/IPanel.d.ts +20 -0
  66. package/dist/models/ITheme.d.ts +77 -0
  67. package/dist/modules/key-plays/constants.d.ts +3 -0
  68. package/dist/modules/key-plays/interfaces/IKeyPlays.d.ts +31 -0
  69. package/dist/modules/key-plays/interfaces/IKeyPlaysResponse.d.ts +44 -0
  70. package/dist/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +9 -0
  71. package/dist/modules/key-plays/view/KeyPlayCardView.d.ts +115 -0
  72. package/dist/modules/key-plays/view/KeyPlayErrorStateView.d.ts +11 -0
  73. package/dist/modules/key-plays/view/KeyPlaysView.d.ts +53 -0
  74. package/dist/modules/key-plays/view-model/KeyPlaysViewModel.d.ts +29 -0
  75. package/dist/services/NetworkManager.d.ts +13 -0
  76. package/dist/services/ThemeManager/constants.d.ts +2 -0
  77. package/dist/view-models/MaestroEventViewModel.d.ts +37 -0
  78. package/dist/view-models/PanelManagerViewModel.d.ts +18 -0
  79. package/dist/view-models/ViewModel.d.ts +12 -0
  80. package/dist/view-models/index.d.ts +17 -0
  81. package/package.json +57 -36
  82. package/dist/BetsIcon-UrnN4lvP.js +0 -22
  83. package/dist/BetsIcon-UrnN4lvP.js.map +0 -1
  84. package/dist/FantasyIcon-DmloKsq_.js +0 -24
  85. package/dist/FantasyIcon-DmloKsq_.js.map +0 -1
  86. package/dist/KeyPlayErrorStateView-Dk89rtUq.js +0 -112
  87. package/dist/KeyPlayErrorStateView-Dk89rtUq.js.map +0 -1
  88. package/dist/KeyPlaysIcon-Br9gu_Zu.js +0 -24
  89. package/dist/KeyPlaysIcon-Br9gu_Zu.js.map +0 -1
  90. package/dist/KeyPlaysView-Br-88ytG.js +0 -174
  91. package/dist/KeyPlaysView-Br-88ytG.js.map +0 -1
  92. package/dist/PlayIcon-CNKWNaLP.js +0 -24
  93. package/dist/PlayIcon-CNKWNaLP.js.map +0 -1
  94. package/dist/StatsIcon-Ds4hriWX.js +0 -25
  95. package/dist/StatsIcon-Ds4hriWX.js.map +0 -1
  96. package/dist/WarningIcon-BuzZKL26.js +0 -24
  97. package/dist/WarningIcon-BuzZKL26.js.map +0 -1
  98. package/dist/index-BaSckwps.js +0 -2998
  99. package/dist/index-BaSckwps.js.map +0 -1
  100. package/dist/index-DXErYNZH.js +0 -151
  101. package/dist/index-DXErYNZH.js.map +0 -1
  102. package/dist/index-q5GKgbOd.js +0 -56
  103. package/dist/index-q5GKgbOd.js.map +0 -1
  104. package/dist/maestro-web-sdk.esm.js +0 -6
  105. package/dist/maestro-web-sdk.esm.js.map +0 -1
  106. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,3 +1,2 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.sdk-wrapper{font-family:Arial,Helvetica,sans-serif;color:var(--sdk-text100)}.T01{font-size:1.125rem;font-weight:400;line-height:1.5rem}.T02{font-size:1.125rem;font-weight:700;line-height:1.5rem}.T05_ALT{font-size:1.313rem;font-weight:700;line-height:1.75rem}.T10{font-size:1.438rem;font-weight:700;line-height:2rem}.T20{font-size:1.688rem;font-weight:500;line-height:2.25rem}.T30{font-size:1.813rem;font-weight:700;line-height:2.25rem}.T70{font-size:3rem;font-weight:900;line-height:3.5rem}.sdk--panel-manager{padding:3.75rem 3.75rem 3.75rem 3rem;padding-bottom:0;display:flex;flex-direction:column;gap:3.75rem}.sdk--panel-manager .panel-coming-soon{display:flex;justify-content:center}.panel-nav-button-container{display:flex;flex-direction:column;align-items:center;gap:.625rem;color:var(--sdk-text300);flex:1}.panel-nav-button-container path{fill:var(--sdk-highlightSecondary)}.panel-nav-button-container button{padding:8px 0;background-color:var(--sdk-surface3);min-width:6.5rem;transition:background-color .2s ease-in-out,color .3s ease-in-out}.panel-nav-button-container[data-focused=true],.panel-nav-button-container:hover,.panel-nav-button-active{color:var(--sdk-text100)}.panel-nav-button-container[data-focused=true] path,.panel-nav-button-container:hover path{fill:var(--sdk-highlightTertiary)}.panel-nav-button-container[data-focused=true] button,.panel-nav-button-container:hover button{background-color:var(--sdk-accentPrimary)}.panel-nav-button-active button{background-color:var(--sdk-surface5)}.panel-nav-button-active path{fill:var(--sdk-highlightPrimary)}.panel-navigation{display:flex;flex-direction:row;align-items:center;gap:.75rem;overflow-x:auto;scrollbar-width:none}.key-play-card{display:flex;flex-direction:column;border-radius:.625rem;background-color:var(--sdk-surface2);contain:content;border:.188rem solid transparent;transition:border-color .2s ease-in-out;position:relative}.key-play-card progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:8px;background-color:var(--sdk-surface6);box-shadow:0 1px 3px #10111366 inset;overflow:hidden;border-radius:0;position:absolute;bottom:0}.key-play-card .error-state{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--sdk-surface2);gap:1rem}.key-play-card .error-state path{fill:var(--sdk-alertWarning)}.key-play-card .non-recent-error-state{position:absolute;top:1.125rem;right:1.125rem}.scrollable-gradient{position:relative}.scrollable-gradient:before{content:"";position:absolute;left:0;right:0;top:0;height:3.625rem;z-index:0;transition:z-index .3s ease}.scroll-container-scrolled:before{z-index:1;background:linear-gradient(0deg,#080a0c00 0%,var(--sdk-surface1) 100%)}.scrollable-gradient:after{content:"";position:absolute;left:0;right:0;bottom:0;height:6rem;background:linear-gradient(180deg,#080a0c00 0%,var(--sdk-surface1) 100%)}.key-plays-view{display:flex;flex-direction:column;gap:1rem;overflow-y:auto;max-height:calc(100vh - 86px - 7.5rem);scrollbar-width:none;scroll-behavior:smooth;overscroll-behavior:contain}.key-plays-view .key-plays-section:last-child{margin-bottom:4rem}.key-plays-view::-webkit-scrollbar{display:none}.key-plays-section{display:flex;flex-direction:column;gap:1rem;position:relative}.key-plays-section-title{position:sticky;top:0;z-index:1;margin:0}.key-plays-section-items{display:flex;flex-direction:column;gap:20px}.key-plays-section:last-of-type{margin-bottom:0}.key-plays-bottom-padding{height:calc(100vh - 240px);min-height:400px;width:100%}.key-play-card{display:flex;flex-direction:column;border-radius:.625rem;background-color:var(--sdk-surface2);contain:content;border:3px solid transparent;transition:border-color .2s ease-in-out}.key-play-card[data-focused=true]{border-color:var(--sdk-highlightPrimary)}.key-play-card-content{display:grid;grid-template-columns:1fr 2fr}.key-play-card-content .cardImage{width:100%;height:100%;object-fit:cover}.key-play-card-content .text-content{padding:2.75rem 2.25rem 2.75rem 1.5rem;align-items:center;display:flex}.key-play-card-content .multi-line{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}.key-play-card progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:8px;background-color:var(--sdk-surface6);box-shadow:0 1px 3px #10111366 inset;overflow:hidden;border-radius:0}.key-play-card progress::-webkit-progress-bar,.key-play-card progress::-moz-progress-bar{background-color:var(--sdk-surface6)}.key-play-card progress::-webkit-progress-value{background-color:var(--sdk-highlightPrimary)}.key-play-card .score{display:flex;align-items:center;justify-content:center;padding:10px;gap:4rem;background-color:var(--sdk-surface4)}.key-play-card .score-team{display:flex;align-items:center;gap:1rem}.action-button{padding:23px 0;background-color:var(--sdk-accentSecondary);color:var(--sdk-text100)}.action-button:hover,.action-button[data-focused=true]{background-color:var(--sdk-accentPrimary);color:var(--sdk-text500)}.sdk--key-play-error-state-unsupportedEvent{padding:2.25rem 1.5rem 0;display:flex;flex-direction:column;gap:1rem}.sdk--key-play-error-state-unsupportedEvent:after{background:linear-gradient(180deg,#0000,#ffffff14)}.sdk--key-play-error-state-unsupportedEvent h3{margin:0}.sdk--key-play-error-state-unsupportedEvent p{margin:0;color:var(--sdk-text200)}.sdk--key-play-error-state-unpopulatedEvent{overflow-y:hidden;max-height:calc(100vh - 86px - 7.5rem);padding:2.25rem 1.5rem 0;scrollbar-width:none;display:flex;flex-direction:column;gap:6.25rem}.sdk--key-play-error-state-unpopulatedEvent h3{margin:0}.sdk--key-play-error-state-unpopulatedEvent p{margin:0;color:var(--sdk-text200)}.sdk--key-play-error-state-unpopulatedEvent .main-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples{display:flex;flex-direction:column;gap:1rem;position:relative}.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples:after{content:"";width:100%;height:100%;position:absolute;bottom:0;background:linear-gradient(0deg,#000,#0000 92.2%)}.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example{display:flex;gap:1rem;padding:1.75rem 1.5rem;border-radius:.625rem;background-color:var(--sdk-surface3);height:8rem}.sdk--key-play-error-state-tabLoadFailure{display:flex;flex-direction:column;gap:1rem;border-radius:.625rem;border:.188rem solid transparent;transition:border-color .2s ease-in-out;padding:1.5rem;background-color:var(--sdk-surface4)}.sdk--key-play-error-state-tabLoadFailure h3{margin:0}.sdk--key-play-error-state-tabLoadFailure p{margin:0;height:5.375rem}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- (function(c,z){typeof exports=="object"&&typeof module<"u"?module.exports=z(require("react")):typeof define=="function"&&define.amd?define(["react"],z):(c=typeof globalThis<"u"?globalThis:c||self,c.MaestroWebSDK=z(c.React))})(this,function(c){"use strict";var kc=Object.defineProperty;var Uc=(c,z,Ae)=>z in c?kc(c,z,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):c[z]=Ae;var U=(c,z,Ae)=>Uc(c,typeof z!="symbol"?z+"":z,Ae);class z{constructor(e){U(this,"listeners",[]);U(this,"_value");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(r=>r!==e)}}notify(){this.listeners.forEach(e=>e(this._value))}}class Ae{constructor(){U(this,"_isLoading",new z(!1));U(this,"_error",new z(null))}get isLoading(){return this._isLoading}get error(){return this._error}setLoading(e){this._isLoading.value=e}setError(e){this._error.value=e}}class va{constructor(){U(this,"currentlyPlayingClipIndex",new z(null));U(this,"lastPlayedClipIndex",new z(null));U(this,"currentClipPlaybackProgress",new z(null));U(this,"errorState",new z("unpopulatedEvent"));U(this,"failedClips",new z({}));U(this,"items",new z([]))}isCurrentlyPlaying(e){return e===this.currentlyPlayingClipIndex.value}async setKeyPlays(e){if(e===null){this.errorState.value="tabLoadFailure";return}this.items.value=this.parseNetworkResponse(e),this.cleanErrors()}cleanErrors(){this.errorState.value==="tabLoadFailure"&&(this.errorState.value=null),this.errorState.value==="unpopulatedEvent"&&this.allItems.length&&(this.errorState.value=null)}async playKeyPlay(e){_e.getMaestroEventViewModel().delegate.playClip(e)}parseNetworkResponse(e){const r=Object.values(e.entities.team),n=Object.values(e.entities.athlete),a=r.find(h=>h.homeAway==="home"),i=r.find(h=>h.homeAway==="away");if(!a||!i)return console.log("Could not find home or away team"),[];const s=[],o=[];for(const h of e.sections){for(const f of h.items??[]){const A=f.team?r.find(C=>C.id===f.team):void 0,p=f.athlete?n.find(C=>C.id===f.athlete):void 0,P=A==null?void 0:A.logoRef,w=p==null?void 0:p.headshot,K=f.thumbnailType!=="headshot"?f.thumbnail:void 0,q=f.scoringPlay?parseInt(f.homeScore??"0"):void 0,_=f.scoringPlay?parseInt(f.awayScore??"0"):void 0,g={id:Math.random().toString(36).substring(2,15),description:f.description??"",homeTeamName:a==null?void 0:a.shortName,awayTeamName:i==null?void 0:i.shortName,homeTeamScore:q,awayTeamScore:_,clipID:f.clipID,teamImageUrl:P,playerImageUrl:w,thumbnailImageUrl:K,section:h.title};s.push(g)}if(s.length){const f=h.title,A=o.find(p=>p.title===f);A?A.items.push(...s):o.push({title:f,items:[...s]}),s.length=0}}return o}get allItems(){return this.items.value.reduce((e,r)=>e.concat(r.items),[])}clipID(e){var r;return(r=this.allItems[e])==null?void 0:r.clipID}handleKeyPlayLoadFailure(e){const r=this.clipID(e);if(r){const n=this.failedClips.value;n[r]="recentFailure",this.failedClips.value=n,setTimeout(()=>{if(this.loadFailureStatus(e)==="recentFailure"){const a=this.failedClips.value;a[r]="nonRecentFailure",this.failedClips.value=a}},5e3)}}loadFailureStatus(e){const r=this.clipID(e);return this.failedClips.value&&r?this.failedClips.value[r]:"noFailure"}clearLoadFailureStatus(e){const r=this.clipID(e);r&&this.failedClips&&delete this.failedClips.value[r]}async userRequestedNewKeyPlaysData(){await _e.getMaestroEventViewModel().delegate.userRequestedNewKeyPlaysData()}}var Ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Le={exports:{}},Ve,ya;function pe(){if(ya)return Ve;ya=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return Ve=t,Ve}var We,pa;function ga(){if(pa)return We;pa=1;var t=typeof Ne=="object"&&Ne&&Ne.Object===Object&&Ne;return We=t,We}var Ye,ba;function oe(){if(ba)return Ye;ba=1;var t=ga(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return Ye=r,Ye}var Ze,Aa;function Yo(){if(Aa)return Ze;Aa=1;var t=oe(),e=function(){return t.Date.now()};return Ze=e,Ze}var Je,ma;function Zo(){if(ma)return Je;ma=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return Je=e,Je}var $e,_a;function Jo(){if(_a)return $e;_a=1;var t=Zo(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return $e=r,$e}var et,Ca;function we(){if(Ca)return et;Ca=1;var t=oe(),e=t.Symbol;return et=e,et}var tt,wa;function $o(){if(wa)return tt;wa=1;var t=we(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,a=t?t.toStringTag:void 0;function i(s){var o=r.call(s,a),h=s[a];try{s[a]=void 0;var f=!0}catch{}var A=n.call(s);return f&&(o?s[a]=h:delete s[a]),A}return tt=i,tt}var rt,Pa;function eu(){if(Pa)return rt;Pa=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return rt=r,rt}var nt,Ea;function Pe(){if(Ea)return nt;Ea=1;var t=we(),e=$o(),r=eu(),n="[object Null]",a="[object Undefined]",i=t?t.toStringTag:void 0;function s(o){return o==null?o===void 0?a:n:i&&i in Object(o)?e(o):r(o)}return nt=s,nt}var at,Fa;function me(){if(Fa)return at;Fa=1;function t(e){return e!=null&&typeof e=="object"}return at=t,at}var it,qa;function Ee(){if(qa)return it;qa=1;var t=Pe(),e=me(),r="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&t(a)==r}return it=n,it}var st,Sa;function tu(){if(Sa)return st;Sa=1;var t=Jo(),e=pe(),r=Ee(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function h(f){if(typeof f=="number")return f;if(r(f))return n;if(e(f)){var A=typeof f.valueOf=="function"?f.valueOf():f;f=e(A)?A+"":A}if(typeof f!="string")return f===0?f:+f;f=t(f);var p=i.test(f);return p||s.test(f)?o(f.slice(2),p?2:8):a.test(f)?n:+f}return st=h,st}var ot,Ta;function Ia(){if(Ta)return ot;Ta=1;var t=pe(),e=Yo(),r=tu(),n="Expected a function",a=Math.max,i=Math.min;function s(o,h,f){var A,p,P,w,K,q,_=0,v=!1,g=!1,C=!0;if(typeof o!="function")throw new TypeError(n);h=r(h)||0,t(f)&&(v=!!f.leading,g="maxWait"in f,P=g?a(r(f.maxWait)||0,h):P,C="trailing"in f?!!f.trailing:C);function b(M){var X=A,$=p;return A=p=void 0,_=M,w=o.apply($,X),w}function B(M){return _=M,K=setTimeout(L,h),v?b(M):w}function T(M){var X=M-q,$=M-_,ue=h-X;return g?i(ue,P-$):ue}function E(M){var X=M-q,$=M-_;return q===void 0||X>=h||X<0||g&&$>=P}function L(){var M=e();if(E(M))return S(M);K=setTimeout(L,T(M))}function S(M){return K=void 0,C&&A?b(M):(A=p=void 0,w)}function D(){K!==void 0&&clearTimeout(K),_=0,A=q=p=K=void 0}function O(){return K===void 0?w:S(e())}function G(){var M=e(),X=E(M);if(A=arguments,p=this,q=M,X){if(K===void 0)return B(q);if(g)return clearTimeout(K),K=setTimeout(L,h),b(q)}return K===void 0&&(K=setTimeout(L,h)),w}return G.cancel=D,G.flush=O,G}return ot=s,ot}var ut,Ma;function xa(){if(Ma)return ut;Ma=1;var t=Pe(),e=pe(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function s(o){if(!e(o))return!1;var h=t(o);return h==n||h==a||h==r||h==i}return ut=s,ut}var lt,Ka;function ru(){if(Ka)return lt;Ka=1;var t=oe(),e=t["__core-js_shared__"];return lt=e,lt}var ct,Ba;function nu(){if(Ba)return ct;Ba=1;var t=ru(),e=function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!e&&e in n}return ct=r,ct}var ft,Da;function Oa(){if(Da)return ft;Da=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return ft=r,ft}var dt,Na;function au(){if(Na)return dt;Na=1;var t=xa(),e=nu(),r=pe(),n=Oa(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,h=s.toString,f=o.hasOwnProperty,A=RegExp("^"+h.call(f).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(P){if(!r(P)||e(P))return!1;var w=t(P)?A:i;return w.test(n(P))}return dt=p,dt}var ht,La;function iu(){if(La)return ht;La=1;function t(e,r){return e==null?void 0:e[r]}return ht=t,ht}var vt,Ra;function ge(){if(Ra)return vt;Ra=1;var t=au(),e=iu();function r(n,a){var i=e(n,a);return t(i)?i:void 0}return vt=r,vt}var yt,ja;function Re(){if(ja)return yt;ja=1;var t=ge(),e=t(Object,"create");return yt=e,yt}var pt,Ha;function su(){if(Ha)return pt;Ha=1;var t=Re();function e(){this.__data__=t?t(null):{},this.size=0}return pt=e,pt}var gt,ka;function ou(){if(ka)return gt;ka=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return gt=t,gt}var bt,Ua;function uu(){if(Ua)return bt;Ua=1;var t=Re(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var s=this.__data__;if(t){var o=s[i];return o===e?void 0:o}return n.call(s,i)?s[i]:void 0}return bt=a,bt}var At,Ga;function lu(){if(Ga)return At;Ga=1;var t=Re(),e=Object.prototype,r=e.hasOwnProperty;function n(a){var i=this.__data__;return t?i[a]!==void 0:r.call(i,a)}return At=n,At}var mt,Qa;function cu(){if(Qa)return mt;Qa=1;var t=Re(),e="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=t&&a===void 0?e:a,this}return mt=r,mt}var _t,za;function fu(){if(za)return _t;za=1;var t=su(),e=ou(),r=uu(),n=lu(),a=cu();function i(s){var o=-1,h=s==null?0:s.length;for(this.clear();++o<h;){var f=s[o];this.set(f[0],f[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,_t=i,_t}var Ct,Xa;function du(){if(Xa)return Ct;Xa=1;function t(){this.__data__=[],this.size=0}return Ct=t,Ct}var wt,Va;function Pt(){if(Va)return wt;Va=1;function t(e,r){return e===r||e!==e&&r!==r}return wt=t,wt}var Et,Wa;function je(){if(Wa)return Et;Wa=1;var t=Pt();function e(r,n){for(var a=r.length;a--;)if(t(r[a][0],n))return a;return-1}return Et=e,Et}var Ft,Ya;function hu(){if(Ya)return Ft;Ya=1;var t=je(),e=Array.prototype,r=e.splice;function n(a){var i=this.__data__,s=t(i,a);if(s<0)return!1;var o=i.length-1;return s==o?i.pop():r.call(i,s,1),--this.size,!0}return Ft=n,Ft}var qt,Za;function vu(){if(Za)return qt;Za=1;var t=je();function e(r){var n=this.__data__,a=t(n,r);return a<0?void 0:n[a][1]}return qt=e,qt}var St,Ja;function yu(){if(Ja)return St;Ja=1;var t=je();function e(r){return t(this.__data__,r)>-1}return St=e,St}var Tt,$a;function pu(){if($a)return Tt;$a=1;var t=je();function e(r,n){var a=this.__data__,i=t(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return Tt=e,Tt}var It,ei;function He(){if(ei)return It;ei=1;var t=du(),e=hu(),r=vu(),n=yu(),a=pu();function i(s){var o=-1,h=s==null?0:s.length;for(this.clear();++o<h;){var f=s[o];this.set(f[0],f[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,It=i,It}var Mt,ti;function xt(){if(ti)return Mt;ti=1;var t=ge(),e=oe(),r=t(e,"Map");return Mt=r,Mt}var Kt,ri;function gu(){if(ri)return Kt;ri=1;var t=fu(),e=He(),r=xt();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return Kt=n,Kt}var Bt,ni;function bu(){if(ni)return Bt;ni=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return Bt=t,Bt}var Dt,ai;function ke(){if(ai)return Dt;ai=1;var t=bu();function e(r,n){var a=r.__data__;return t(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Dt=e,Dt}var Ot,ii;function Au(){if(ii)return Ot;ii=1;var t=ke();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return Ot=e,Ot}var Nt,si;function mu(){if(si)return Nt;si=1;var t=ke();function e(r){return t(this,r).get(r)}return Nt=e,Nt}var Lt,oi;function _u(){if(oi)return Lt;oi=1;var t=ke();function e(r){return t(this,r).has(r)}return Lt=e,Lt}var Rt,ui;function Cu(){if(ui)return Rt;ui=1;var t=ke();function e(r,n){var a=t(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return Rt=e,Rt}var jt,li;function Ht(){if(li)return jt;li=1;var t=gu(),e=Au(),r=mu(),n=_u(),a=Cu();function i(s){var o=-1,h=s==null?0:s.length;for(this.clear();++o<h;){var f=s[o];this.set(f[0],f[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,jt=i,jt}var kt,ci;function wu(){if(ci)return kt;ci=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return kt=e,kt}var Ut,fi;function Pu(){if(fi)return Ut;fi=1;function t(e){return this.__data__.has(e)}return Ut=t,Ut}var Gt,di;function hi(){if(di)return Gt;di=1;var t=Ht(),e=wu(),r=Pu();function n(a){var i=-1,s=a==null?0:a.length;for(this.__data__=new t;++i<s;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Gt=n,Gt}var Qt,vi;function Eu(){if(vi)return Qt;vi=1;function t(e,r,n,a){for(var i=e.length,s=n+(a?1:-1);a?s--:++s<i;)if(r(e[s],s,e))return s;return-1}return Qt=t,Qt}var zt,yi;function Fu(){if(yi)return zt;yi=1;function t(e){return e!==e}return zt=t,zt}var Xt,pi;function qu(){if(pi)return Xt;pi=1;function t(e,r,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===r)return a;return-1}return Xt=t,Xt}var Vt,gi;function Su(){if(gi)return Vt;gi=1;var t=Eu(),e=Fu(),r=qu();function n(a,i,s){return i===i?r(a,i,s):t(a,e,s)}return Vt=n,Vt}var Wt,bi;function Tu(){if(bi)return Wt;bi=1;var t=Su();function e(r,n){var a=r==null?0:r.length;return!!a&&t(r,n,0)>-1}return Wt=e,Wt}var Yt,Ai;function Iu(){if(Ai)return Yt;Ai=1;function t(e,r,n){for(var a=-1,i=e==null?0:e.length;++a<i;)if(n(r,e[a]))return!0;return!1}return Yt=t,Yt}var Zt,mi;function Jt(){if(mi)return Zt;mi=1;function t(e,r){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=r(e[n],n,e);return i}return Zt=t,Zt}var $t,_i;function er(){if(_i)return $t;_i=1;function t(e){return function(r){return e(r)}}return $t=t,$t}var tr,Ci;function wi(){if(Ci)return tr;Ci=1;function t(e,r){return e.has(r)}return tr=t,tr}var rr,Pi;function Mu(){if(Pi)return rr;Pi=1;var t=hi(),e=Tu(),r=Iu(),n=Jt(),a=er(),i=wi(),s=200;function o(h,f,A,p){var P=-1,w=e,K=!0,q=h.length,_=[],v=f.length;if(!q)return _;A&&(f=n(f,a(A))),p?(w=r,K=!1):f.length>=s&&(w=i,K=!1,f=new t(f));e:for(;++P<q;){var g=h[P],C=A==null?g:A(g);if(g=p||g!==0?g:0,K&&C===C){for(var b=v;b--;)if(f[b]===C)continue e;_.push(g)}else w(f,C,p)||_.push(g)}return _}return rr=o,rr}var nr,Ei;function Fi(){if(Ei)return nr;Ei=1;function t(e,r){for(var n=-1,a=r.length,i=e.length;++n<a;)e[i+n]=r[n];return e}return nr=t,nr}var ar,qi;function xu(){if(qi)return ar;qi=1;var t=Pe(),e=me(),r="[object Arguments]";function n(a){return e(a)&&t(a)==r}return ar=n,ar}var ir,Si;function sr(){if(Si)return ir;Si=1;var t=xu(),e=me(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(s){return e(s)&&n.call(s,"callee")&&!a.call(s,"callee")};return ir=i,ir}var or,Ti;function re(){if(Ti)return or;Ti=1;var t=Array.isArray;return or=t,or}var ur,Ii;function Ku(){if(Ii)return ur;Ii=1;var t=we(),e=sr(),r=re(),n=t?t.isConcatSpreadable:void 0;function a(i){return r(i)||e(i)||!!(n&&i&&i[n])}return ur=a,ur}var lr,Mi;function xi(){if(Mi)return lr;Mi=1;var t=Fi(),e=Ku();function r(n,a,i,s,o){var h=-1,f=n.length;for(i||(i=e),o||(o=[]);++h<f;){var A=n[h];a>0&&i(A)?a>1?r(A,a-1,i,s,o):t(o,A):s||(o[o.length]=A)}return o}return lr=r,lr}var cr,Ki;function Fe(){if(Ki)return cr;Ki=1;function t(e){return e}return cr=t,cr}var fr,Bi;function Bu(){if(Bi)return fr;Bi=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return fr=t,fr}var dr,Di;function Du(){if(Di)return dr;Di=1;var t=Bu(),e=Math.max;function r(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var s=arguments,o=-1,h=e(s.length-a,0),f=Array(h);++o<h;)f[o]=s[a+o];o=-1;for(var A=Array(a+1);++o<a;)A[o]=s[o];return A[a]=i(f),t(n,this,A)}}return dr=r,dr}var hr,Oi;function Ou(){if(Oi)return hr;Oi=1;function t(e){return function(){return e}}return hr=t,hr}var vr,Ni;function Nu(){if(Ni)return vr;Ni=1;var t=ge(),e=function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}}();return vr=e,vr}var yr,Li;function Lu(){if(Li)return yr;Li=1;var t=Ou(),e=Nu(),r=Fe(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:r;return yr=n,yr}var pr,Ri;function Ru(){if(Ri)return pr;Ri=1;var t=800,e=16,r=Date.now;function n(a){var i=0,s=0;return function(){var o=r(),h=e-(o-s);if(s=o,h>0){if(++i>=t)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return pr=n,pr}var gr,ji;function ju(){if(ji)return gr;ji=1;var t=Lu(),e=Ru(),r=e(t);return gr=r,gr}var br,Hi;function ki(){if(Hi)return br;Hi=1;var t=Fe(),e=Du(),r=ju();function n(a,i){return r(e(a,i,t),a+"")}return br=n,br}var Ar,Ui;function mr(){if(Ui)return Ar;Ui=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Ar=e,Ar}var _r,Gi;function qe(){if(Gi)return _r;Gi=1;var t=xa(),e=mr();function r(n){return n!=null&&e(n.length)&&!t(n)}return _r=r,_r}var Cr,Qi;function Hu(){if(Qi)return Cr;Qi=1;var t=qe(),e=me();function r(n){return e(n)&&t(n)}return Cr=r,Cr}var wr,zi;function ku(){if(zi)return wr;zi=1;var t=Mu(),e=xi(),r=ki(),n=Hu(),a=r(function(i,s){return n(i)?t(i,e(s,1,n,!0)):[]});return wr=a,wr}var Pr,Xi;function Vi(){if(Xi)return Pr;Xi=1;function t(e,r){for(var n=-1,a=e==null?0:e.length,i=0,s=[];++n<a;){var o=e[n];r(o,n,e)&&(s[i++]=o)}return s}return Pr=t,Pr}var Er,Wi;function Uu(){if(Wi)return Er;Wi=1;function t(e){return function(r,n,a){for(var i=-1,s=Object(r),o=a(r),h=o.length;h--;){var f=o[e?h:++i];if(n(s[f],f,s)===!1)break}return r}}return Er=t,Er}var Fr,Yi;function Gu(){if(Yi)return Fr;Yi=1;var t=Uu(),e=t();return Fr=e,Fr}var qr,Zi;function Qu(){if(Zi)return qr;Zi=1;function t(e,r){for(var n=-1,a=Array(e);++n<e;)a[n]=r(n);return a}return qr=t,qr}var Se={exports:{}},Sr,Ji;function zu(){if(Ji)return Sr;Ji=1;function t(){return!1}return Sr=t,Sr}Se.exports;var $i;function es(){return $i||($i=1,function(t,e){var r=oe(),n=zu(),a=e&&!e.nodeType&&e,i=a&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===a,o=s?r.Buffer:void 0,h=o?o.isBuffer:void 0,f=h||n;t.exports=f}(Se,Se.exports)),Se.exports}var Tr,ts;function Ir(){if(ts)return Tr;ts=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??t,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return Tr=r,Tr}var Mr,rs;function Xu(){if(rs)return Mr;rs=1;var t=Pe(),e=mr(),r=me(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",s="[object Date]",o="[object Error]",h="[object Function]",f="[object Map]",A="[object Number]",p="[object Object]",P="[object RegExp]",w="[object Set]",K="[object String]",q="[object WeakMap]",_="[object ArrayBuffer]",v="[object DataView]",g="[object Float32Array]",C="[object Float64Array]",b="[object Int8Array]",B="[object Int16Array]",T="[object Int32Array]",E="[object Uint8Array]",L="[object Uint8ClampedArray]",S="[object Uint16Array]",D="[object Uint32Array]",O={};O[g]=O[C]=O[b]=O[B]=O[T]=O[E]=O[L]=O[S]=O[D]=!0,O[n]=O[a]=O[_]=O[i]=O[v]=O[s]=O[o]=O[h]=O[f]=O[A]=O[p]=O[P]=O[w]=O[K]=O[q]=!1;function G(M){return r(M)&&e(M.length)&&!!O[t(M)]}return Mr=G,Mr}var Te={exports:{}};Te.exports;var ns;function Vu(){return ns||(ns=1,function(t,e){var r=ga(),n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,s=i&&r.process,o=function(){try{var h=a&&a.require&&a.require("util").types;return h||s&&s.binding&&s.binding("util")}catch{}}();t.exports=o}(Te,Te.exports)),Te.exports}var xr,as;function is(){if(as)return xr;as=1;var t=Xu(),e=er(),r=Vu(),n=r&&r.isTypedArray,a=n?e(n):t;return xr=a,xr}var Kr,ss;function Wu(){if(ss)return Kr;ss=1;var t=Qu(),e=sr(),r=re(),n=es(),a=Ir(),i=is(),s=Object.prototype,o=s.hasOwnProperty;function h(f,A){var p=r(f),P=!p&&e(f),w=!p&&!P&&n(f),K=!p&&!P&&!w&&i(f),q=p||P||w||K,_=q?t(f.length,String):[],v=_.length;for(var g in f)(A||o.call(f,g))&&!(q&&(g=="length"||w&&(g=="offset"||g=="parent")||K&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||a(g,v)))&&_.push(g);return _}return Kr=h,Kr}var Br,os;function Yu(){if(os)return Br;os=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||t;return r===a}return Br=e,Br}var Dr,us;function Zu(){if(us)return Dr;us=1;function t(e,r){return function(n){return e(r(n))}}return Dr=t,Dr}var Or,ls;function Ju(){if(ls)return Or;ls=1;var t=Zu(),e=t(Object.keys,Object);return Or=e,Or}var Nr,cs;function $u(){if(cs)return Nr;cs=1;var t=Yu(),e=Ju(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!t(i))return e(i);var s=[];for(var o in Object(i))n.call(i,o)&&o!="constructor"&&s.push(o);return s}return Nr=a,Nr}var Lr,fs;function Rr(){if(fs)return Lr;fs=1;var t=Wu(),e=$u(),r=qe();function n(a){return r(a)?t(a):e(a)}return Lr=n,Lr}var jr,ds;function Hr(){if(ds)return jr;ds=1;var t=Gu(),e=Rr();function r(n,a){return n&&t(n,a,e)}return jr=r,jr}var kr,hs;function el(){if(hs)return kr;hs=1;var t=qe();function e(r,n){return function(a,i){if(a==null)return a;if(!t(a))return r(a,i);for(var s=a.length,o=n?s:-1,h=Object(a);(n?o--:++o<s)&&i(h[o],o,h)!==!1;);return a}}return kr=e,kr}var Ur,vs;function Gr(){if(vs)return Ur;vs=1;var t=Hr(),e=el(),r=e(t);return Ur=r,Ur}var Qr,ys;function tl(){if(ys)return Qr;ys=1;var t=Gr();function e(r,n){var a=[];return t(r,function(i,s,o){n(i,s,o)&&a.push(i)}),a}return Qr=e,Qr}var zr,ps;function rl(){if(ps)return zr;ps=1;var t=He();function e(){this.__data__=new t,this.size=0}return zr=e,zr}var Xr,gs;function nl(){if(gs)return Xr;gs=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return Xr=t,Xr}var Vr,bs;function al(){if(bs)return Vr;bs=1;function t(e){return this.__data__.get(e)}return Vr=t,Vr}var Wr,As;function il(){if(As)return Wr;As=1;function t(e){return this.__data__.has(e)}return Wr=t,Wr}var Yr,ms;function sl(){if(ms)return Yr;ms=1;var t=He(),e=xt(),r=Ht(),n=200;function a(i,s){var o=this.__data__;if(o instanceof t){var h=o.__data__;if(!e||h.length<n-1)return h.push([i,s]),this.size=++o.size,this;o=this.__data__=new r(h)}return o.set(i,s),this.size=o.size,this}return Yr=a,Yr}var Zr,_s;function Cs(){if(_s)return Zr;_s=1;var t=He(),e=rl(),r=nl(),n=al(),a=il(),i=sl();function s(o){var h=this.__data__=new t(o);this.size=h.size}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=a,s.prototype.set=i,Zr=s,Zr}var Jr,ws;function ol(){if(ws)return Jr;ws=1;function t(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}return Jr=t,Jr}var $r,Ps;function Es(){if(Ps)return $r;Ps=1;var t=hi(),e=ol(),r=wi(),n=1,a=2;function i(s,o,h,f,A,p){var P=h&n,w=s.length,K=o.length;if(w!=K&&!(P&&K>w))return!1;var q=p.get(s),_=p.get(o);if(q&&_)return q==o&&_==s;var v=-1,g=!0,C=h&a?new t:void 0;for(p.set(s,o),p.set(o,s);++v<w;){var b=s[v],B=o[v];if(f)var T=P?f(B,b,v,o,s,p):f(b,B,v,s,o,p);if(T!==void 0){if(T)continue;g=!1;break}if(C){if(!e(o,function(E,L){if(!r(C,L)&&(b===E||A(b,E,h,f,p)))return C.push(L)})){g=!1;break}}else if(!(b===B||A(b,B,h,f,p))){g=!1;break}}return p.delete(s),p.delete(o),g}return $r=i,$r}var en,Fs;function ul(){if(Fs)return en;Fs=1;var t=oe(),e=t.Uint8Array;return en=e,en}var tn,qs;function ll(){if(qs)return tn;qs=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(a,i){n[++r]=[i,a]}),n}return tn=t,tn}var rn,Ss;function cl(){if(Ss)return rn;Ss=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}return rn=t,rn}var nn,Ts;function fl(){if(Ts)return nn;Ts=1;var t=we(),e=ul(),r=Pt(),n=Es(),a=ll(),i=cl(),s=1,o=2,h="[object Boolean]",f="[object Date]",A="[object Error]",p="[object Map]",P="[object Number]",w="[object RegExp]",K="[object Set]",q="[object String]",_="[object Symbol]",v="[object ArrayBuffer]",g="[object DataView]",C=t?t.prototype:void 0,b=C?C.valueOf:void 0;function B(T,E,L,S,D,O,G){switch(L){case g:if(T.byteLength!=E.byteLength||T.byteOffset!=E.byteOffset)return!1;T=T.buffer,E=E.buffer;case v:return!(T.byteLength!=E.byteLength||!O(new e(T),new e(E)));case h:case f:case P:return r(+T,+E);case A:return T.name==E.name&&T.message==E.message;case w:case q:return T==E+"";case p:var M=a;case K:var X=S&s;if(M||(M=i),T.size!=E.size&&!X)return!1;var $=G.get(T);if($)return $==E;S|=o,G.set(T,E);var ue=n(M(T),M(E),S,D,O,G);return G.delete(T),ue;case _:if(b)return b.call(T)==b.call(E)}return!1}return nn=B,nn}var an,Is;function dl(){if(Is)return an;Is=1;var t=Fi(),e=re();function r(n,a,i){var s=a(n);return e(n)?s:t(s,i(n))}return an=r,an}var sn,Ms;function hl(){if(Ms)return sn;Ms=1;function t(){return[]}return sn=t,sn}var on,xs;function vl(){if(xs)return on;xs=1;var t=Vi(),e=hl(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(s){return s==null?[]:(s=Object(s),t(a(s),function(o){return n.call(s,o)}))}:e;return on=i,on}var un,Ks;function yl(){if(Ks)return un;Ks=1;var t=dl(),e=vl(),r=Rr();function n(a){return t(a,r,e)}return un=n,un}var ln,Bs;function pl(){if(Bs)return ln;Bs=1;var t=yl(),e=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,s,o,h,f,A){var p=o&e,P=t(i),w=P.length,K=t(s),q=K.length;if(w!=q&&!p)return!1;for(var _=w;_--;){var v=P[_];if(!(p?v in s:n.call(s,v)))return!1}var g=A.get(i),C=A.get(s);if(g&&C)return g==s&&C==i;var b=!0;A.set(i,s),A.set(s,i);for(var B=p;++_<w;){v=P[_];var T=i[v],E=s[v];if(h)var L=p?h(E,T,v,s,i,A):h(T,E,v,i,s,A);if(!(L===void 0?T===E||f(T,E,o,h,A):L)){b=!1;break}B||(B=v=="constructor")}if(b&&!B){var S=i.constructor,D=s.constructor;S!=D&&"constructor"in i&&"constructor"in s&&!(typeof S=="function"&&S instanceof S&&typeof D=="function"&&D instanceof D)&&(b=!1)}return A.delete(i),A.delete(s),b}return ln=a,ln}var cn,Ds;function gl(){if(Ds)return cn;Ds=1;var t=ge(),e=oe(),r=t(e,"DataView");return cn=r,cn}var fn,Os;function bl(){if(Os)return fn;Os=1;var t=ge(),e=oe(),r=t(e,"Promise");return fn=r,fn}var dn,Ns;function Al(){if(Ns)return dn;Ns=1;var t=ge(),e=oe(),r=t(e,"Set");return dn=r,dn}var hn,Ls;function ml(){if(Ls)return hn;Ls=1;var t=ge(),e=oe(),r=t(e,"WeakMap");return hn=r,hn}var vn,Rs;function _l(){if(Rs)return vn;Rs=1;var t=gl(),e=xt(),r=bl(),n=Al(),a=ml(),i=Pe(),s=Oa(),o="[object Map]",h="[object Object]",f="[object Promise]",A="[object Set]",p="[object WeakMap]",P="[object DataView]",w=s(t),K=s(e),q=s(r),_=s(n),v=s(a),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=P||e&&g(new e)!=o||r&&g(r.resolve())!=f||n&&g(new n)!=A||a&&g(new a)!=p)&&(g=function(C){var b=i(C),B=b==h?C.constructor:void 0,T=B?s(B):"";if(T)switch(T){case w:return P;case K:return o;case q:return f;case _:return A;case v:return p}return b}),vn=g,vn}var yn,js;function Cl(){if(js)return yn;js=1;var t=Cs(),e=Es(),r=fl(),n=pl(),a=_l(),i=re(),s=es(),o=is(),h=1,f="[object Arguments]",A="[object Array]",p="[object Object]",P=Object.prototype,w=P.hasOwnProperty;function K(q,_,v,g,C,b){var B=i(q),T=i(_),E=B?A:a(q),L=T?A:a(_);E=E==f?p:E,L=L==f?p:L;var S=E==p,D=L==p,O=E==L;if(O&&s(q)){if(!s(_))return!1;B=!0,S=!1}if(O&&!S)return b||(b=new t),B||o(q)?e(q,_,v,g,C,b):r(q,_,E,v,g,C,b);if(!(v&h)){var G=S&&w.call(q,"__wrapped__"),M=D&&w.call(_,"__wrapped__");if(G||M){var X=G?q.value():q,$=M?_.value():_;return b||(b=new t),C(X,$,v,g,b)}}return O?(b||(b=new t),n(q,_,v,g,C,b)):!1}return yn=K,yn}var pn,Hs;function ks(){if(Hs)return pn;Hs=1;var t=Cl(),e=me();function r(n,a,i,s,o){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:t(n,a,i,s,r,o)}return pn=r,pn}var gn,Us;function wl(){if(Us)return gn;Us=1;var t=Cs(),e=ks(),r=1,n=2;function a(i,s,o,h){var f=o.length,A=f,p=!h;if(i==null)return!A;for(i=Object(i);f--;){var P=o[f];if(p&&P[2]?P[1]!==i[P[0]]:!(P[0]in i))return!1}for(;++f<A;){P=o[f];var w=P[0],K=i[w],q=P[1];if(p&&P[2]){if(K===void 0&&!(w in i))return!1}else{var _=new t;if(h)var v=h(K,q,w,i,s,_);if(!(v===void 0?e(q,K,r|n,h,_):v))return!1}}return!0}return gn=a,gn}var bn,Gs;function Qs(){if(Gs)return bn;Gs=1;var t=pe();function e(r){return r===r&&!t(r)}return bn=e,bn}var An,zs;function Pl(){if(zs)return An;zs=1;var t=Qs(),e=Rr();function r(n){for(var a=e(n),i=a.length;i--;){var s=a[i],o=n[s];a[i]=[s,o,t(o)]}return a}return An=r,An}var mn,Xs;function Vs(){if(Xs)return mn;Xs=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return mn=t,mn}var _n,Ws;function El(){if(Ws)return _n;Ws=1;var t=wl(),e=Pl(),r=Vs();function n(a){var i=e(a);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(s){return s===a||t(s,a,i)}}return _n=n,_n}var Cn,Ys;function wn(){if(Ys)return Cn;Ys=1;var t=re(),e=Ee(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,s){if(t(i))return!1;var o=typeof i;return o=="number"||o=="symbol"||o=="boolean"||i==null||e(i)?!0:n.test(i)||!r.test(i)||s!=null&&i in Object(s)}return Cn=a,Cn}var Pn,Zs;function Fl(){if(Zs)return Pn;Zs=1;var t=Ht(),e="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var s=arguments,o=a?a.apply(this,s):s[0],h=i.cache;if(h.has(o))return h.get(o);var f=n.apply(this,s);return i.cache=h.set(o,f)||h,f};return i.cache=new(r.Cache||t),i}return r.Cache=t,Pn=r,Pn}var En,Js;function ql(){if(Js)return En;Js=1;var t=Fl(),e=500;function r(n){var a=t(n,function(s){return i.size===e&&i.clear(),s}),i=a.cache;return a}return En=r,En}var Fn,$s;function Sl(){if($s)return Fn;$s=1;var t=ql(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(s,o,h,f){i.push(h?f.replace(r,"$1"):o||s)}),i});return Fn=n,Fn}var qn,eo;function Tl(){if(eo)return qn;eo=1;var t=we(),e=Jt(),r=re(),n=Ee(),a=t?t.prototype:void 0,i=a?a.toString:void 0;function s(o){if(typeof o=="string")return o;if(r(o))return e(o,s)+"";if(n(o))return i?i.call(o):"";var h=o+"";return h=="0"&&1/o==-1/0?"-0":h}return qn=s,qn}var Sn,to;function ro(){if(to)return Sn;to=1;var t=Tl();function e(r){return r==null?"":t(r)}return Sn=e,Sn}var Tn,no;function ao(){if(no)return Tn;no=1;var t=re(),e=wn(),r=Sl(),n=ro();function a(i,s){return t(i)?i:e(i,s)?[i]:r(n(i))}return Tn=a,Tn}var In,io;function Ue(){if(io)return In;io=1;var t=Ee();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return In=e,In}var Mn,so;function xn(){if(so)return Mn;so=1;var t=ao(),e=Ue();function r(n,a){a=t(a,n);for(var i=0,s=a.length;n!=null&&i<s;)n=n[e(a[i++])];return i&&i==s?n:void 0}return Mn=r,Mn}var Kn,oo;function Il(){if(oo)return Kn;oo=1;var t=xn();function e(r,n,a){var i=r==null?void 0:t(r,n);return i===void 0?a:i}return Kn=e,Kn}var Bn,uo;function Ml(){if(uo)return Bn;uo=1;function t(e,r){return e!=null&&r in Object(e)}return Bn=t,Bn}var Dn,lo;function xl(){if(lo)return Dn;lo=1;var t=ao(),e=sr(),r=re(),n=Ir(),a=mr(),i=Ue();function s(o,h,f){h=t(h,o);for(var A=-1,p=h.length,P=!1;++A<p;){var w=i(h[A]);if(!(P=o!=null&&f(o,w)))break;o=o[w]}return P||++A!=p?P:(p=o==null?0:o.length,!!p&&a(p)&&n(w,p)&&(r(o)||e(o)))}return Dn=s,Dn}var On,co;function Kl(){if(co)return On;co=1;var t=Ml(),e=xl();function r(n,a){return n!=null&&e(n,a,t)}return On=r,On}var Nn,fo;function Bl(){if(fo)return Nn;fo=1;var t=ks(),e=Il(),r=Kl(),n=wn(),a=Qs(),i=Vs(),s=Ue(),o=1,h=2;function f(A,p){return n(A)&&a(p)?i(s(A),p):function(P){var w=e(P,A);return w===void 0&&w===p?r(P,A):t(p,w,o|h)}}return Nn=f,Nn}var Ln,ho;function Dl(){if(ho)return Ln;ho=1;function t(e){return function(r){return r==null?void 0:r[e]}}return Ln=t,Ln}var Rn,vo;function Ol(){if(vo)return Rn;vo=1;var t=xn();function e(r){return function(n){return t(n,r)}}return Rn=e,Rn}var jn,yo;function Nl(){if(yo)return jn;yo=1;var t=Dl(),e=Ol(),r=wn(),n=Ue();function a(i){return r(i)?t(n(i)):e(i)}return jn=a,jn}var Hn,po;function kn(){if(po)return Hn;po=1;var t=El(),e=Bl(),r=Fe(),n=re(),a=Nl();function i(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?e(s[0],s[1]):t(s):a(s)}return Hn=i,Hn}var Un,go;function Ll(){if(go)return Un;go=1;var t=Vi(),e=tl(),r=kn(),n=re();function a(i,s){var o=n(i)?t:e;return o(i,r(s,3))}return Un=a,Un}var Gn,bo;function Rl(){if(bo)return Gn;bo=1;function t(e,r,n){var a;return n(e,function(i,s,o){if(r(i,s,o))return a=s,!1}),a}return Gn=t,Gn}var Qn,Ao;function jl(){if(Ao)return Qn;Ao=1;var t=Rl(),e=Hr(),r=kn();function n(a,i){return t(a,r(i,3),e)}return Qn=n,Qn}var zn,mo;function Hl(){if(mo)return zn;mo=1;function t(e){return e&&e.length?e[0]:void 0}return zn=t,zn}var Xn,_o;function kl(){return _o||(_o=1,Xn=Hl()),Xn}var Vn,Co;function Ul(){if(Co)return Vn;Co=1;function t(e,r){for(var n=-1,a=e==null?0:e.length;++n<a&&r(e[n],n,e)!==!1;);return e}return Vn=t,Vn}var Wn,wo;function Po(){if(wo)return Wn;wo=1;var t=Fe();function e(r){return typeof r=="function"?r:t}return Wn=e,Wn}var Yn,Eo;function Gl(){if(Eo)return Yn;Eo=1;var t=Ul(),e=Gr(),r=Po(),n=re();function a(i,s){var o=n(i)?t:e;return o(i,r(s))}return Yn=a,Yn}var Zn,Fo;function Ql(){if(Fo)return Zn;Fo=1;var t=Hr(),e=Po();function r(n,a){return n&&t(n,e(a))}return Zn=r,Zn}var Jn,qo;function zl(){if(qo)return Jn;qo=1;function t(){}return Jn=t,Jn}var $n,So;function Xl(){if(So)return $n;So=1;var t=Gr(),e=qe();function r(n,a){var i=-1,s=e(n)?Array(n.length):[];return t(n,function(o,h,f){s[++i]=a(o,h,f)}),s}return $n=r,$n}var ea,To;function Vl(){if(To)return ea;To=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return ea=t,ea}var ta,Io;function Wl(){if(Io)return ta;Io=1;var t=Ee();function e(r,n){if(r!==n){var a=r!==void 0,i=r===null,s=r===r,o=t(r),h=n!==void 0,f=n===null,A=n===n,p=t(n);if(!f&&!p&&!o&&r>n||o&&h&&A&&!f&&!p||i&&h&&A||!a&&A||!s)return 1;if(!i&&!o&&!p&&r<n||p&&a&&s&&!i&&!o||f&&a&&s||!h&&s||!A)return-1}return 0}return ta=e,ta}var ra,Mo;function Yl(){if(Mo)return ra;Mo=1;var t=Wl();function e(r,n,a){for(var i=-1,s=r.criteria,o=n.criteria,h=s.length,f=a.length;++i<h;){var A=t(s[i],o[i]);if(A){if(i>=f)return A;var p=a[i];return A*(p=="desc"?-1:1)}}return r.index-n.index}return ra=e,ra}var na,xo;function Zl(){if(xo)return na;xo=1;var t=Jt(),e=xn(),r=kn(),n=Xl(),a=Vl(),i=er(),s=Yl(),o=Fe(),h=re();function f(A,p,P){p.length?p=t(p,function(q){return h(q)?function(_){return e(_,q.length===1?q[0]:q)}:q}):p=[o];var w=-1;p=t(p,i(r));var K=n(A,function(q,_,v){var g=t(p,function(C){return C(q)});return{criteria:g,index:++w,value:q}});return a(K,function(q,_){return s(q,_,P)})}return na=f,na}var aa,Ko;function Jl(){if(Ko)return aa;Ko=1;var t=Pt(),e=qe(),r=Ir(),n=pe();function a(i,s,o){if(!n(o))return!1;var h=typeof s;return(h=="number"?e(o)&&r(s,o.length):h=="string"&&s in o)?t(o[s],i):!1}return aa=a,aa}var ia,Bo;function $l(){if(Bo)return ia;Bo=1;var t=xi(),e=Zl(),r=ki(),n=Jl(),a=r(function(i,s){if(i==null)return[];var o=s.length;return o>1&&n(i,s[0],s[1])?s=[]:o>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),e(i,t(s,1),[])});return ia=a,ia}var sa,Do;function ec(){if(Do)return sa;Do=1;var t=Ia(),e=pe(),r="Expected a function";function n(a,i,s){var o=!0,h=!0;if(typeof a!="function")throw new TypeError(r);return e(s)&&(o="leading"in s?!!s.leading:o,h="trailing"in s?!!s.trailing:h),t(a,i,{leading:o,maxWait:i,trailing:h})}return sa=n,sa}var oa,Oo;function tc(){if(Oo)return oa;Oo=1;var t=ro(),e=0;function r(n){var a=++e;return t(n)+a}return oa=r,oa}var rc=Le.exports,No;function nc(){return No||(No=1,function(t,e){(function(r,n){t.exports=n(Ia(),ku(),Ll(),jl(),kl(),Gl(),Ql(),zl(),$l(),ec(),tc(),c)})(rc,function(r,n,a,i,s,o,h,f,A,p,P,w){return function(){var K={654:function(_,v,g){var C,b=this&&this.__assign||function(){return b=Object.assign||function(m){for(var u,l=1,d=arguments.length;l<d;l++)for(var y in u=arguments[l])Object.prototype.hasOwnProperty.call(u,y)&&(m[y]=u[y]);return m},b.apply(this,arguments)},B=this&&this.__createBinding||(Object.create?function(m,u,l,d){d===void 0&&(d=l);var y=Object.getOwnPropertyDescriptor(u,l);y&&!("get"in y?!u.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(m,d,y)}:function(m,u,l,d){d===void 0&&(d=l),m[d]=u[l]}),T=this&&this.__setModuleDefault||(Object.create?function(m,u){Object.defineProperty(m,"default",{enumerable:!0,value:u})}:function(m,u){m.default=u}),E=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var u={};if(m!=null)for(var l in m)l!=="default"&&Object.prototype.hasOwnProperty.call(m,l)&&B(u,m,l);return T(u,m),u},L=this&&this.__spreadArray||function(m,u,l){if(l||arguments.length===2)for(var d,y=0,F=u.length;y<F;y++)!d&&y in u||(d||(d=Array.prototype.slice.call(u,0,y)),d[y]=u[y]);return m.concat(d||Array.prototype.slice.call(u))},S=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(v,"__esModule",{value:!0}),v.updateRtl=v.doesFocusableExist=v.getCurrentFocusKey=v.updateAllLayouts=v.resume=v.pause=v.navigateByDirection=v.setFocus=v.setKeyMap=v.destroy=v.setThrottle=v.init=v.SpatialNavigation=v.ROOT_FOCUS_KEY=void 0;var D=S(g(150)),O=S(g(117)),G=S(g(747)),M=S(g(23)),X=S(g(842)),$=S(g(682)),ue=S(g(784)),Me=S(g(432)),ha=S(g(67)),Qe=S(g(35)),ae=S(g(119)),xe=E(g(964)),de="left",he="right",ve="up",le="down",Ke="enter",Be=((C={}).left=[37,"ArrowLeft"],C.up=[38,"ArrowUp"],C.right=[39,"ArrowRight"],C.down=[40,"ArrowDown"],C.enter=[13,"Enter"],C);v.ROOT_FOCUS_KEY="SN:ROOT";var De=["#0FF","#FF0","#F0F"],ze={leading:!0,trailing:!1},Xe=function(){function m(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=ae.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=Be,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.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,D.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return m.getCutoffCoordinate=function(u,l,d,y,F){var I=u?y.top:F===ae.default.LTR?y.left:y.right,x=u?y.bottom:F===ae.default.LTR?y.right:y.left;return l?d?I:x:d?x:I},m.getRefCorners=function(u,l,d){var y={a:{x:0,y:0},b:{x:0,y:0}};switch(u){case ve:var F=l?d.bottom:d.top;y.a={x:d.left,y:F},y.b={x:d.right,y:F};break;case le:F=l?d.top:d.bottom,y.a={x:d.left,y:F},y.b={x:d.right,y:F};break;case de:var I=l?d.right:d.left;y.a={x:I,y:d.top},y.b={x:I,y:d.bottom};break;case he:I=l?d.left:d.right,y.a={x:I,y:d.top},y.b={x:I,y:d.bottom}}return y},m.isAdjacentSlice=function(u,l,d){var y=u.a,F=u.b,I=l.a,x=l.b,N=d?"x":"y",Q=y[N],k=F[N],H=I[N],j=x[N],R=.2*(k-Q);return Math.max(0,Math.min(k,j)-Math.max(Q,H))>=R},m.getPrimaryAxisDistance=function(u,l,d){var y=u.a,F=l.a,I=d?"y":"x";return Math.abs(F[I]-y[I])},m.getSecondaryAxisDistance=function(u,l,d,y,F){if(F)return F(u,l,d,y);var I=u.a,x=u.b,N=l.a,Q=l.b,k=d?"x":"y",H=I[k],j=x[k],R=N[k],Z=Q[k];if(y==="center"){var W=(H+j)/2,ee=(R+Z)/2;return Math.abs(W-ee)}if(y==="edges"){var fe=Math.min(H,j),V=Math.min(R,Z),ie=Math.max(H,j),ye=Math.max(R,Z),ce=Math.abs(fe-V),se=Math.abs(ie-ye);return Math.min(ce,se)}var Oe=[Math.abs(R-H),Math.abs(R-j),Math.abs(Z-H),Math.abs(Z-j)];return Math.min.apply(Math,Oe)},m.prototype.sortSiblingsByPriority=function(u,l,d,y){var F=this,I=d===le||d===ve,x=m.getRefCorners(d,!1,l);return(0,Me.default)(u,function(N){var Q=m.getRefCorners(d,!0,N.layout),k=m.isAdjacentSlice(x,Q,I),H=k?m.getPrimaryAxisDistance:m.getSecondaryAxisDistance,j=k?m.getSecondaryAxisDistance:m.getPrimaryAxisDistance,R=H(x,Q,I,F.distanceCalculationMethod,F.customDistanceCalculationFunction),Z=j(x,Q,I,F.distanceCalculationMethod,F.customDistanceCalculationFunction),W=5*R+Z,ee=(W+1)/(k?5:1);return F.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(N.focusKey," relative to ").concat(y," is"),R,Z,W),F.log("smartNavigate","priority for ".concat(N.focusKey," relative to ").concat(y," is"),ee),F.visualDebugger&&(F.visualDebugger.drawPoint(Q.a.x,Q.a.y,"yellow",6),F.visualDebugger.drawPoint(Q.b.x,Q.b.y,"yellow",6)),ee})},m.prototype.init=function(u){var l=this,d=u===void 0?{}:u,y=d.debug,F=y!==void 0&&y,I=d.visualDebug,x=I!==void 0&&I,N=d.nativeMode,Q=N!==void 0&&N,k=d.throttle,H=k===void 0?0:k,j=d.throttleKeypresses,R=j!==void 0&&j,Z=d.useGetBoundingClientRect,W=Z!==void 0&&Z,ee=d.shouldFocusDOMNode,fe=ee!==void 0&&ee,V=d.domNodeFocusOptions,ie=V===void 0?{}:V,ye=d.shouldUseNativeEvents,ce=ye!==void 0&&ye,se=d.rtl,Oe=se!==void 0&&se,Y=d.distanceCalculationMethod,te=Y===void 0?"corners":Y,Xo=d.customDistanceCalculationFunction,jc=Xo===void 0?void 0:Xo;if(!this.enabled&&(this.domNodeFocusOptions=ie,this.enabled=!0,this.nativeMode=Q,this.throttleKeypresses=R,this.useGetBoundingClientRect=W,this.shouldFocusDOMNode=fe&&!Q,this.shouldUseNativeEvents=ce,this.writingDirection=Oe?ae.default.RTL:ae.default.LTR,this.distanceCalculationMethod=te,this.customDistanceCalculationFunction=jc,this.debug=F,!this.nativeMode&&(Number.isInteger(H)&&H>0&&(this.throttle=H),this.bindEventHandlers(),x))){this.visualDebugger=new Qe.default(this.writingDirection);var Vo=function(){requestAnimationFrame(function(){l.visualDebugger.clearLayouts(),(0,ue.default)(l.focusableComponents,function(Wo,Hc){l.visualDebugger.drawLayout(Wo.layout,Hc,Wo.parentFocusKey)}),Vo()})};Vo()}},m.prototype.setThrottle=function(u){var l=u===void 0?{}:u,d=l.throttle,y=d===void 0?0:d,F=l.throttleKeypresses,I=F!==void 0&&F;this.throttleKeypresses=I,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(y)&&(this.throttle=y),this.bindEventHandlers())},m.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=Be,this.unbindEventHandlers())},m.prototype.getEventType=function(u){return(0,M.default)(this.getKeyMap(),function(l){return l.includes(u)})},m.getKeyCode=function(u){return u.keyCode||u.code||u.key},m.prototype.bindEventHandlers=function(){var u=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(l){if(u.paused!==!0){u.debug&&(u.logIndex+=1);var d=m.getKeyCode(l),y=u.getEventType(d);if(y){u.pressedKeys[y]=u.pressedKeys[y]?u.pressedKeys[y]+1:1,u.shouldUseNativeEvents||(l.preventDefault(),l.stopPropagation());var F={pressedKeys:u.pressedKeys};if(y===Ke&&u.focusKey)u.onEnterPress(F);else{var I=u.onArrowPress(y,F)===!1;if(u.visualDebugger&&u.visualDebugger.clear(),I)u.log("keyDownEventListener","default navigation prevented");else{var x=(0,M.default)(u.getKeyMap(),function(N){return N.includes(d)});u.smartNavigate(x,null,{event:l})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,ha.default)(this.keyDownEventListener.bind(this),this.throttle,ze)),this.keyUpEventListener=function(l){var d=m.getKeyCode(l),y=u.getEventType(d);delete u.pressedKeys[y],u.throttle&&!u.throttleKeypresses&&u.keyDownEventListenerThrottled.cancel(),y===Ke&&u.focusKey&&u.onEnterRelease(),!u.focusKey||y!==de&&y!==he&&y!==ve&&y!==le||u.onArrowRelease(y)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},m.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var u=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",u),this.keyDownEventListener=null}},m.prototype.onEnterPress=function(u){var l=this.focusableComponents[this.focusKey];l?l.focusable?l.onEnterPress&&l.onEnterPress(u):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},m.prototype.onEnterRelease=function(){var u=this.focusableComponents[this.focusKey];u?u.focusable?u.onEnterRelease&&u.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},m.prototype.onArrowPress=function(u,l){var d=this.focusableComponents[this.focusKey];if(d)return d&&d.onArrowPress&&d.onArrowPress(u,l);this.log("onArrowPress","noComponent")},m.prototype.onArrowRelease=function(u){var l=this.focusableComponents[this.focusKey];l?l.focusable?l.onArrowRelease&&l.onArrowRelease(u):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},m.prototype.navigateByDirection=function(u,l){if(this.paused!==!0&&this.enabled&&!this.nativeMode){var d=[le,ve,de,he];d.includes(u)?(this.log("navigateByDirection","direction",u),this.smartNavigate(u,null,l)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(u,"`, but you can use only these: "),d)}},m.prototype.smartNavigate=function(u,l,d){var y=this;if(!this.nativeMode){var F=u===le||u===ve,I=u===le||(this.writingDirection===ae.default.LTR?u===he:u===de);this.log("smartNavigate","direction",u),this.log("smartNavigate","fromParentFocusKey",l),this.log("smartNavigate","this.focusKey",this.focusKey),l||(0,ue.default)(this.focusableComponents,function(V){V.layoutUpdated=!1});var x=this.focusableComponents[l||this.focusKey];if(l||x){if(this.log("smartNavigate","currentComponent",x?x.focusKey:void 0,x?x.node:void 0,x),x){this.updateLayout(x.focusKey);var N=x.parentFocusKey,Q=x.focusKey,k=x.layout,H=m.getCutoffCoordinate(F,I,!1,k,this.writingDirection),j=(0,G.default)(this.focusableComponents,function(V){if(V.parentFocusKey===N&&V.focusable){y.updateLayout(V.focusKey);var ie=m.getCutoffCoordinate(F,I,!0,V.layout,y.writingDirection);return F||y.writingDirection===ae.default.LTR?I?ie>=H:ie<=H:I?ie<=H:ie>=H}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",H),this.log("smartNavigate","siblings","".concat(j.length," elements:"),j.map(function(V){return V.focusKey}).join(", "),j.map(function(V){return V.node}),j.map(function(V){return V}))),this.visualDebugger){var R=m.getRefCorners(u,!1,k);this.visualDebugger.drawPoint(R.a.x,R.a.y),this.visualDebugger.drawPoint(R.b.x,R.b.y)}var Z=this.sortSiblingsByPriority(j,k,u,Q),W=(0,X.default)(Z);if(this.log("smartNavigate","nextComponent",W?W.focusKey:void 0,W?W.node:void 0,W),W)this.setFocus(W.focusKey,d);else{var ee=this.focusableComponents[N],fe=ee!=null&&ee.isFocusBoundary?ee.focusBoundaryDirections||[u]:[];ee&&fe.includes(u)||this.smartNavigate(u,N,d)}}}else this.setFocus(this.getForcedFocusKey())}},m.prototype.saveLastFocusedChildKey=function(u,l){u&&(this.log("saveLastFocusedChildKey","".concat(u.focusKey," lastFocusedChildKey set"),l),u.lastFocusedChildKey=l)},m.prototype.log=function(u,l){for(var d=[],y=2;y<arguments.length;y++)d[y-2]=arguments[y];this.debug&&console.log.apply(console,L(["%c".concat(u,"%c").concat(l),"background: ".concat(De[this.logIndex%De.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],d,!1))},m.prototype.getCurrentFocusKey=function(){return this.focusKey},m.prototype.getForcedFocusKey=function(){var u,l=(0,G.default)(this.focusableComponents,function(y){return y.focusable&&y.forceFocus}),d=this.sortSiblingsByPriority(l,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",v.ROOT_FOCUS_KEY);return(u=(0,X.default)(d))===null||u===void 0?void 0:u.focusKey},m.prototype.getNextFocusKey=function(u){var l=this,d=this.focusableComponents[u];if(!d||this.nativeMode)return u;var y=(0,G.default)(this.focusableComponents,function(N){return N.parentFocusKey===u&&N.focusable});if(y.length>0){var F=d.lastFocusedChildKey,I=d.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",F),this.log("getNextFocusKey","preferredChildFocusKey is",I),F&&d.saveLastFocusedChild&&this.isParticipatingFocusableComponent(F))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",F),this.getNextFocusKey(F);if(I&&this.isParticipatingFocusableComponent(I))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",I),this.getNextFocusKey(I);y.forEach(function(N){return l.updateLayout(N.focusKey)});var x=function(N,Q){var k=Q===ae.default.LTR?function(j){var R=j.layout;return Math.abs(R.left)+Math.abs(R.top)}:function(j){var R=j.layout;return Math.abs(window.innerWidth-R.right)+Math.abs(R.top)},H=(0,Me.default)(N,k);return(0,X.default)(H)}(y,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",x),this.getNextFocusKey(x)}return this.log("getNextFocusKey","targetFocusKey",u),u},m.prototype.addFocusable=function(u){var l=u.focusKey,d=u.node,y=u.parentFocusKey,F=u.onEnterPress,I=u.onEnterRelease,x=u.onArrowPress,N=u.onArrowRelease,Q=u.onFocus,k=u.onBlur,H=u.saveLastFocusedChild,j=u.trackChildren,R=u.onUpdateFocus,Z=u.onUpdateHasFocusedChild,W=u.preferredChildFocusKey,ee=u.autoRestoreFocus,fe=u.forceFocus,V=u.focusable,ie=u.isFocusBoundary,ye=u.focusBoundaryDirections;if(this.focusableComponents[l]={focusKey:l,node:d,parentFocusKey:y,onEnterPress:F,onEnterRelease:I,onArrowPress:x,onArrowRelease:N,onFocus:Q,onBlur:k,onUpdateFocus:R,onUpdateHasFocusedChild:Z,saveLastFocusedChild:H,trackChildren:j,preferredChildFocusKey:W,focusable:V,isFocusBoundary:ie,focusBoundaryDirections:ye,autoRestoreFocus:ee,forceFocus:fe,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:d},layoutUpdated:!1},d||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[l]),!this.nativeMode){this.updateLayout(l),this.log("addFocusable","Component added: ",this.focusableComponents[l]),l===this.focusKey&&this.setFocus(W||l);for(var ce=this.focusableComponents[this.focusKey];ce;){if(ce.parentFocusKey===l){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}ce=this.focusableComponents[ce.parentFocusKey]}}},m.prototype.removeFocusable=function(u){var l=u.focusKey,d=this.focusableComponents[l];if(d){var y=d.parentFocusKey;(0,d.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",d),delete this.focusableComponents[l];var F=this.parentsHavingFocusedChild.includes(l);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(N){return N!==l});var I=this.focusableComponents[y],x=l===this.focusKey;if(I&&I.lastFocusedChildKey===l&&(I.lastFocusedChildKey=null),this.nativeMode)return;(x||F)&&I&&I.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",x?"Leaf component":"Container component","Auto restoring focus to: ",y),this.setFocusDebounced(y))}},m.prototype.getNodeLayoutByFocusKey=function(u){var l=this.focusableComponents[u];return l?(this.updateLayout(l.focusKey),l.layout):null},m.prototype.setCurrentFocusedKey=function(u,l){var d,y,F,I;if(this.isFocusableComponent(this.focusKey)&&u!==this.focusKey){var x=this.focusableComponents[this.focusKey];x.onUpdateFocus(!1),x.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),l),(y=(d=x.node)===null||d===void 0?void 0:d.removeAttribute)===null||y===void 0||y.call(d,"data-focused"),this.log("setCurrentFocusedKey","onBlur",x)}if(this.focusKey=u,this.isFocusableComponent(this.focusKey)){var N=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&N.node&&N.node.focus(this.domNodeFocusOptions),(I=(F=N.node)===null||F===void 0?void 0:F.setAttribute)===null||I===void 0||I.call(F,"data-focused","true"),N.onUpdateFocus(!0),N.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),l),this.log("setCurrentFocusedKey","onFocus",N)}},m.prototype.updateParentsHasFocusedChild=function(u,l){for(var d=this,y=[],F=this.focusableComponents[u];F;){var I=F.parentFocusKey,x=this.focusableComponents[I];if(x){var N=x.focusKey;y.push(N)}F=x}var Q=(0,O.default)(this.parentsHavingFocusedChild,y),k=(0,O.default)(y,this.parentsHavingFocusedChild);(0,$.default)(Q,function(H){var j=d.focusableComponents[H];j&&j.trackChildren&&j.onUpdateHasFocusedChild(!1),d.onIntermediateNodeBecameBlurred(H,l)}),(0,$.default)(k,function(H){var j=d.focusableComponents[H];j&&j.trackChildren&&j.onUpdateHasFocusedChild(!0),d.onIntermediateNodeBecameFocused(H,l)}),this.parentsHavingFocusedChild=y},m.prototype.updateParentsLastFocusedChild=function(u){for(var l=this.focusableComponents[u];l;){var d=l.parentFocusKey,y=this.focusableComponents[d];y&&this.saveLastFocusedChildKey(y,l.focusKey),l=y}},m.prototype.getKeyMap=function(){return this.keyMap},m.prototype.setKeyMap=function(u){this.keyMap=b(b({},this.getKeyMap()),function(l){var d={};return Object.entries(l).forEach(function(y){var F=y[0],I=y[1];d[F]=Array.isArray(I)?I:[I]}),d}(u))},m.prototype.isFocusableComponent=function(u){return!!this.focusableComponents[u]},m.prototype.isParticipatingFocusableComponent=function(u){return this.isFocusableComponent(u)&&this.focusableComponents[u].focusable},m.prototype.onIntermediateNodeBecameFocused=function(u,l){this.isParticipatingFocusableComponent(u)&&this.focusableComponents[u].onFocus(this.getNodeLayoutByFocusKey(u),l)},m.prototype.onIntermediateNodeBecameBlurred=function(u,l){this.isParticipatingFocusableComponent(u)&&this.focusableComponents[u].onBlur(this.getNodeLayoutByFocusKey(u),l)},m.prototype.pause=function(){this.paused=!0},m.prototype.resume=function(){this.paused=!1},m.prototype.setFocus=function(u,l){if(l===void 0&&(l={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",u),u&&u!==v.ROOT_FOCUS_KEY||(u=this.getForcedFocusKey());var d=this.getNextFocusKey(u);this.log("setFocus","newFocusKey",d),this.setCurrentFocusedKey(d,l),this.updateParentsHasFocusedChild(d,l),this.updateParentsLastFocusedChild(d)}},m.prototype.updateAllLayouts=function(){var u=this;this.enabled&&!this.nativeMode&&(0,ue.default)(this.focusableComponents,function(l,d){u.updateLayout(d)})},m.prototype.updateLayout=function(u){var l=this.focusableComponents[u];if(l&&!this.nativeMode&&!l.layoutUpdated){var d=l.node,y=this.useGetBoundingClientRect?(0,xe.getBoundingClientRect)(d):(0,xe.default)(d);l.layout=b(b({},y),{node:d})}},m.prototype.updateFocusable=function(u,l){var d=l.node,y=l.preferredChildFocusKey,F=l.focusable,I=l.isFocusBoundary,x=l.focusBoundaryDirections,N=l.onEnterPress,Q=l.onEnterRelease,k=l.onArrowPress,H=l.onFocus,j=l.onBlur;if(!this.nativeMode){var R=this.focusableComponents[u];R&&(R.preferredChildFocusKey=y,R.focusable=F,R.isFocusBoundary=I,R.focusBoundaryDirections=x,R.onEnterPress=N,R.onEnterRelease=Q,R.onArrowPress=k,R.onFocus=H,R.onBlur=j,d&&(R.node=d))}},m.prototype.isNativeMode=function(){return this.nativeMode},m.prototype.doesFocusableExist=function(u){return!!this.focusableComponents[u]},m.prototype.updateRtl=function(u){this.writingDirection=u?ae.default.RTL:ae.default.LTR},m}();v.SpatialNavigation=new Xe,v.init=v.SpatialNavigation.init,v.setThrottle=v.SpatialNavigation.setThrottle,v.destroy=v.SpatialNavigation.destroy,v.setKeyMap=v.SpatialNavigation.setKeyMap,v.setFocus=v.SpatialNavigation.setFocus,v.navigateByDirection=v.SpatialNavigation.navigateByDirection,v.pause=v.SpatialNavigation.pause,v.resume=v.SpatialNavigation.resume,v.updateAllLayouts=v.SpatialNavigation.updateAllLayouts,v.getCurrentFocusKey=v.SpatialNavigation.getCurrentFocusKey,v.doesFocusableExist=v.SpatialNavigation.doesFocusableExist,v.updateRtl=v.SpatialNavigation.updateRtl},35:function(_,v,g){var C=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(v,"__esModule",{value:!0});var b=C(g(119)),B=typeof window<"u"&&window.document,T=B?window.innerWidth:0,E=B?window.innerHeight:0,L=function(){function S(D){B&&(this.debugCtx=S.createCanvas("sn-debug","1010",D),this.layoutsCtx=S.createCanvas("sn-layouts","1000",D),this.writingDirection=D)}return S.createCanvas=function(D,O,G){var M=document.querySelector("#".concat(D))||document.createElement("canvas");M.setAttribute("id",D),M.setAttribute("dir",G===b.default.LTR?"ltr":"rtl");var X=M.getContext("2d");return M.style.zIndex=O,M.style.position="fixed",M.style.top="0",M.style.left="0",document.body.appendChild(M),M.width=T,M.height=E,X},S.prototype.clear=function(){B&&this.debugCtx.clearRect(0,0,T,E)},S.prototype.clearLayouts=function(){B&&this.layoutsCtx.clearRect(0,0,T,E)},S.prototype.drawLayout=function(D,O,G){if(B){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(D.left,D.top,D.width,D.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var M=this.writingDirection===b.default.LTR?"left":"right",X=D[M];this.layoutsCtx.fillText(O,X,D.top+10),this.layoutsCtx.fillText(G,X,D.top+25),this.layoutsCtx.fillText("".concat(M,": ").concat(X),X,D.top+40),this.layoutsCtx.fillText("top: ".concat(D.top),X,D.top+55)}},S.prototype.drawPoint=function(D,O,G,M){G===void 0&&(G="blue"),M===void 0&&(M=10),B&&(this.debugCtx.strokeStyle=G,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(D-M/2,O-M/2,M,M))},S}();v.default=L},119:function(_,v){var g;Object.defineProperty(v,"__esModule",{value:!0}),function(C){C[C.LTR=0]="LTR",C[C.RTL=1]="RTL"}(g||(g={})),v.default=g},607:function(_,v,g){var C=this&&this.__createBinding||(Object.create?function(B,T,E,L){L===void 0&&(L=E);var S=Object.getOwnPropertyDescriptor(T,E);S&&!("get"in S?!T.__esModule:S.writable||S.configurable)||(S={enumerable:!0,get:function(){return T[E]}}),Object.defineProperty(B,L,S)}:function(B,T,E,L){L===void 0&&(L=E),B[L]=T[E]}),b=this&&this.__exportStar||function(B,T){for(var E in B)E==="default"||Object.prototype.hasOwnProperty.call(T,E)||C(T,B,E)};Object.defineProperty(v,"__esModule",{value:!0}),b(g(79),v),b(g(445),v),b(g(654),v)},964:function(_,v){Object.defineProperty(v,"__esModule",{value:!0}),v.getBoundingClientRect=void 0;var g=function(C){for(var b=C.offsetParent,B=C.offsetHeight,T=C.offsetWidth,E=C.offsetLeft,L=C.offsetTop;b&&b.nodeType===1;)E+=b.offsetLeft-b.scrollLeft,L+=b.offsetTop-b.scrollTop,b=b.offsetParent;return{height:B,left:E,top:L,width:T}};v.default=function(C){var b=C&&C.parentElement;if(C&&b){var B=g(b),T=g(C),E=T.height,L=T.left,S=T.top,D=T.width;return{x:L-B.left,y:S-B.top,width:D,height:E,left:L,top:S,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},v.getBoundingClientRect=function(C){if(C&&C.getBoundingClientRect){var b=C.getBoundingClientRect();return{x:b.x,y:b.y,width:b.width,height:b.height,left:b.left,top:b.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(_,v,g){Object.defineProperty(v,"__esModule",{value:!0}),v.useFocusContext=v.FocusContext=void 0;var C=g(156),b=g(654);v.FocusContext=(0,C.createContext)(b.ROOT_FOCUS_KEY),v.FocusContext.displayName="FocusContext",v.useFocusContext=function(){return(0,C.useContext)(v.FocusContext)}},79:function(_,v,g){var C=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(v,"__esModule",{value:!0}),v.useFocusable=void 0;var b=g(156),B=C(g(604)),T=C(g(461)),E=g(654),L=g(445);v.useFocusable=function(S){var D=S===void 0?{}:S,O=D.focusable,G=O===void 0||O,M=D.saveLastFocusedChild,X=M===void 0||M,$=D.trackChildren,ue=$!==void 0&&$,Me=D.autoRestoreFocus,ha=Me===void 0||Me,Qe=D.forceFocus,ae=Qe!==void 0&&Qe,xe=D.isFocusBoundary,de=xe!==void 0&&xe,he=D.focusBoundaryDirections,ve=D.focusKey,le=D.preferredChildFocusKey,Ke=D.onEnterPress,Be=Ke===void 0?B.default:Ke,De=D.onEnterRelease,ze=De===void 0?B.default:De,Xe=D.onArrowPress,m=Xe===void 0?function(){return!0}:Xe,u=D.onArrowRelease,l=u===void 0?B.default:u,d=D.onFocus,y=d===void 0?B.default:d,F=D.onBlur,I=F===void 0?B.default:F,x=D.extraProps,N=(0,b.useCallback)(function(Y){Be(x,Y)},[Be,x]),Q=(0,b.useCallback)(function(){ze(x)},[ze,x]),k=(0,b.useCallback)(function(Y,te){return m(Y,x,te)},[x,m]),H=(0,b.useCallback)(function(Y){l(Y,x)},[l,x]),j=(0,b.useCallback)(function(Y,te){y(Y,x,te)},[x,y]),R=(0,b.useCallback)(function(Y,te){I(Y,x,te)},[x,I]),Z=(0,b.useRef)(null),W=(0,b.useState)(!1),ee=W[0],fe=W[1],V=(0,b.useState)(!1),ie=V[0],ye=V[1],ce=(0,L.useFocusContext)(),se=(0,b.useMemo)(function(){return ve||(0,T.default)("sn:focusable-item-")},[ve]),Oe=(0,b.useCallback)(function(Y){Y===void 0&&(Y={}),E.SpatialNavigation.setFocus(se,Y)},[se]);return(0,b.useEffect)(function(){var Y=Z.current;return E.SpatialNavigation.addFocusable({focusKey:se,node:Y,parentFocusKey:ce,preferredChildFocusKey:le,onEnterPress:N,onEnterRelease:Q,onArrowPress:k,onArrowRelease:H,onFocus:j,onBlur:R,onUpdateFocus:function(te){return te===void 0&&(te=!1),fe(te)},onUpdateHasFocusedChild:function(te){return te===void 0&&(te=!1),ye(te)},saveLastFocusedChild:X,trackChildren:ue,isFocusBoundary:de,focusBoundaryDirections:he,autoRestoreFocus:ha,forceFocus:ae,focusable:G}),function(){E.SpatialNavigation.removeFocusable({focusKey:se})}},[]),(0,b.useEffect)(function(){var Y=Z.current;E.SpatialNavigation.updateFocusable(se,{node:Y,preferredChildFocusKey:le,focusable:G,isFocusBoundary:de,focusBoundaryDirections:he,onEnterPress:N,onEnterRelease:Q,onArrowPress:k,onArrowRelease:H,onFocus:j,onBlur:R})},[se,le,G,de,he,N,Q,k,H,j,R]),{ref:Z,focusSelf:Oe,focused:ee,hasFocusedChild:ie,focusKey:se}}},150:function(_){_.exports=r},117:function(_){_.exports=n},747:function(_){_.exports=a},23:function(_){_.exports=i},842:function(_){_.exports=s},682:function(_){_.exports=o},784:function(_){_.exports=h},604:function(_){_.exports=f},432:function(_){_.exports=A},67:function(_){_.exports=p},461:function(_){_.exports=P},156:function(_){_.exports=w}},q={};return function _(v){var g=q[v];if(g!==void 0)return g.exports;var C=q[v]={exports:{}};return K[v].call(C.exports,C,C.exports,_),C.exports}(607)}()})}(Le)),Le.exports}var J=nc();class Lo extends Ae{constructor(r="",n){super();U(this,"_eventId",new z(""));U(this,"_title",new z(""));U(this,"_isLive",new z(!1));U(this,"delegate");U(this,"keyPlaysViewModel",new va);this._eventId.value=r,this.delegate=n,J.init()}deinit(){J.destroy()}updateKeyPlaysData(r){return this.keyPlaysViewModel.setKeyPlays(r)}startFocusManagement(){return setTimeout(()=>{J.resume(),J.setFocus("PANEL_NAV_BUTTON_0")},0),Promise.resolve()}didStartPlayingClip(r){this.keyPlaysViewModel.lastPlayedClipIndex.value=r,this.keyPlaysViewModel.currentClipPlaybackProgress.value=0,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=r,this.keyPlaysViewModel.clearLoadFailureStatus(r)}didStopPlayingClip(r){this.keyPlaysViewModel.lastPlayedClipIndex.value=r,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=null,this.keyPlaysViewModel.currentClipPlaybackProgress.value=null}didFailToPlayClip(r){this.keyPlaysViewModel.handleKeyPlayLoadFailure(r)}didUpdatePlaybackProgressOfClip(r,n){this.keyPlaysViewModel.currentClipPlaybackProgress.value=n,this.keyPlaysViewModel.clearLoadFailureStatus(r)}didShowPanel(){return Promise.resolve()}async didHidePanel(){J.pause()}didShowOverlay(){throw new Error("Method not implemented.")}didHideOverlay(){throw new Error("Method not implemented.")}currentEventDoesNotSupportKeyPlays(){this.keyPlaysViewModel.errorState.value="unsupportedEvent"}getCurrentEventID(){return this.eventId.value}getCurrentlyPlayingClipIndex(){return this.keyPlaysViewModel.currentlyPlayingClipIndex.value}getLastPlayedClipIndex(){return this.keyPlaysViewModel.lastPlayedClipIndex.value}getCurrentClipPlaybackProgress(){return this.keyPlaysViewModel.currentClipPlaybackProgress.value}getKeyPlaysCount(){return this.keyPlaysViewModel.items.value.length}get eventId(){return this._eventId}get title(){return this._title}get isLive(){return this._isLive}}const Ie={KEY_PLAYS:"keyPlays",STATS:"stats",FANTASY:"fantasy",BETS:"bets"};class Ro{constructor(){U(this,"_panels",new z([Ie.KEY_PLAYS,Ie.STATS,Ie.FANTASY,Ie.BETS]));U(this,"_currentPanel",new z(Ie.KEY_PLAYS));U(this,"_newlyFocusedPanel",new z(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}get newlyFocusedPanel(){return this._newlyFocusedPanel.value}set newlyFocusedPanel(e){this._newlyFocusedPanel.value=e}getIndex(e){const r=this.panels.findIndex(n=>n===e);return r!==-1?r:null}getPanelType(e){return this.panels[e]||null}get panelTypeToLeft(){const e=this.getIndex(this.currentPanel);return e===null||e===0?null:this.getPanelType(e-1)}get panelTypeToRight(){const e=this.getIndex(this.currentPanel);return e===null||e===this.panels.length-1?null:this.getPanelType(e+1)}}class ua{constructor(e){U(this,"eventViewModel");U(this,"panelManagerViewModel");U(this,"keyPlaysViewModel");this.eventViewModel=e,this.panelManagerViewModel=new Ro,this.keyPlaysViewModel=new va}static async fromEventId(e,r){try{const n=new Lo(e,r);return new ua(n)}catch(n){return console.error("Error creating view models from event ID",n),null}}}class ac{constructor(){U(this,"renderersMap",new Map);U(this,"viewModels",null)}async setViewModels(e,r){try{return r?(this.viewModels=await ua.fromEventId(e,r),this.viewModels):(console.error("No event delegate provided"),null)}catch(n){return console.error("Error creating view models from event ID",n),null}}async renderPanel(e){const r=await this.getRenderer(e);if(!this.viewModels)throw new Error("Cannot render panel manager: No view models set");const n=(await Promise.resolve().then(()=>sc)).default,a=(await Promise.resolve().then(()=>mc)).default;return r.render(c.createElement(n,null,c.createElement(a,null))),()=>{r.unmount(),this.renderersMap.delete(e)}}async getRenderer(e){if(this.renderersMap.has(e))return this.renderersMap.get(e);const r=(await import("react-dom/client")).createRoot,n=r(document.getElementById(e));return this.renderersMap.set(e,n),n}}const ic=["664b9c57d59a7a431542d814"],be=class be{constructor(e){U(this,"renderer");U(this,"siteID");U(this,"jwt");U(this,"userID");U(this,"maestroEventViewModel",null);this.renderer=e}async userDidStartWatchingEvent(e,r){if(!this.isAuthorizedClient)throw new Error("Unauthorized use of SDK");return this.maestroEventViewModel=new Lo(e,r),this.maestroEventViewModel}userDidStopWatchingEvent(e){console.log("stop watching event"),this.maestroEventViewModel&&(this.maestroEventViewModel.deinit(),this.maestroEventViewModel=null)}authenticateUser(e,r){throw new Error("Method not implemented.")}deauthenticateUser(){throw new Error("Method not implemented.")}static getInstance(){if(!be.instance){const e=new ac;be.instance=new be(e)}return be.instance}configure(e){e.siteID&&this.setSiteID(e.siteID),e.jwt&&this.setJwt(e.jwt),console.info("MaestroWebSDK configured",e)}get isAuthorizedClient(){const e=this.getSiteID();return!!(e&&ic.includes(e))}setSiteID(e){this.siteID=e}getSiteID(){return this.siteID}setJwt(e){this.jwt=e}getJwt(){return this.jwt}setUserID(e){this.userID=e}getUserID(){return this.userID}getMaestroEventViewModel(){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set");return this.maestroEventViewModel}async renderPanel(e){if(!this.renderer.viewModels){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set.");await this.renderer.setViewModels(e??"default-event-id",this.maestroEventViewModel.delegate)}return this.renderer.renderPanel(e)}};U(be,"instance");let la=be;const _e=la.getInstance(),jo="BentonSans-Medium",Ho={colors:{accentPrimary:"#FFFFFF",accentSecondary:"#3C3F47",accentTertiary:"#0C0C0E",surface1:"#080A0C",surface2:"#12141A",surface3:"#1B1E26",surface4:"#242833",surface5:"#363C4D",surface6:"#3E4759",highlightPrimary:"#FFFFFF",highlightSecondary:"#9A9EA9",highlightTertiary:"#0A0C0F",alertConfirmation:"#43D48F",alertWarning:"#F58B00",alertError:"#FF0000",text100:"#F8F9FA",text200:"#C2C5CB",text300:"#8D919D",text400:"#5C606B",text500:"#0C0C0E"},typography:{body:jo,headline:jo}},ca=Ho.colors,fa=Ho.typography,sc=Object.freeze(Object.defineProperty({__proto__:null,default:t=>(c.useLayoutEffect(()=>(Object.keys(ca).forEach(e=>{document.documentElement.style.setProperty(`--sdk-${e}`,ca[e])}),Object.keys(fa).forEach(e=>{document.documentElement.style.setProperty(`--sdk-font-${e}`,fa[e])}),()=>{Object.keys(ca).forEach(e=>{document.documentElement.style.removeProperty(`--sdk-${e}`)}),Object.keys(fa).forEach(e=>{document.documentElement.style.removeProperty(`--sdk-font-${e}`)})}),[]),c.createElement("div",{className:"sdk-wrapper"},t.children))},Symbol.toStringTag,{value:"Module"})),oc={borderRadius:6,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:"100%",border:"none"},ko=t=>{const e={...oc,...t.style};return c.createElement("button",{style:e,...t},t.children)},uc=c.lazy(()=>Promise.resolve().then(()=>_c)),lc=c.lazy(()=>Promise.resolve().then(()=>Cc)),cc=c.lazy(()=>Promise.resolve().then(()=>wc)),fc=c.lazy(()=>Promise.resolve().then(()=>Pc)),dc=c.lazy(()=>Promise.resolve().then(()=>Ec)),hc=c.lazy(()=>Promise.resolve().then(()=>Fc)),vc={keyPlays:uc,play:lc,bets:cc,stats:fc,fantasy:dc,warning:hc},Uo=t=>c.createElement("div",{style:{width:t.width,height:t.height}}),da=t=>{const e=vc[t.iconName];return e?c.createElement(c.Suspense,{fallback:c.createElement(Uo,{width:t.width,height:t.height})},c.createElement(e,{iconName:t.iconName,height:t.height,width:t.width})):c.createElement(Uo,{width:t.width,height:t.height})},yc=10009,Go=({onBack:t,onLeft:e,active:r})=>{c.useEffect(()=>{const n=new AbortController;return window.addEventListener("keydown",a=>{r&&((a.keyCode===yc||a.key==="b")&&(t==null||t(a)),(a.key==="ArrowLeft"||a.keyCode===37)&&(e==null||e(a)))},{signal:n.signal}),()=>{n.abort()}},[r,t,e])},Qo=t=>{const e=_e.getMaestroEventViewModel();t.dataset.focused="false",J.pause(),e.delegate.startFocusManagement()},pc=t=>{const{ref:e,focused:r}=J.useFocusable({focusKey:`PANEL_NAV_BUTTON_${t.index}`,onFocus:t.onEnter});return Go({active:t.index===0&&r,onLeft:()=>{Qo(e.current)}}),c.createElement("div",{className:["panel-nav-button-container","T02",t.active?"panel-nav-button-active":""].join(" "),ref:e},c.createElement(ko,null,c.createElement(da,{iconName:t.iconName,height:36,width:36})),t.children)},gc=t=>{const{ref:e,focusKey:r}=J.useFocusable({focusKey:"PANEL_NAVIGATION"});return c.createElement(J.FocusContext.Provider,{value:r},c.createElement("div",{className:"panel-navigation",ref:e},t.items.map((n,a)=>c.createElement(pc,{iconName:n.iconName,key:n.title,index:a,onEnter:n.onEnter,active:n.active},n.title))))},Ce=new Ro,bc=c.lazy(()=>Promise.resolve().then(()=>Bc)),Ac={keyPlays:c.createElement(bc,null),bets:c.createElement("div",{className:"panel-coming-soon T02"},"Bets - Coming Soon"),stats:c.createElement("div",{className:"panel-coming-soon T02"},"Stats - Coming Soon"),fantasy:c.createElement("div",{className:"panel-coming-soon T02"},"Fantasy - Coming Soon")},mc=Object.freeze(Object.defineProperty({__proto__:null,default:()=>{const t=c.useSyncExternalStore(r=>Ce.currentPanelObservable.subscribe(r),()=>Ce.currentPanel),e=[{iconName:"keyPlays",onEnter:()=>{Ce.currentPanel="keyPlays"},title:"KEY PLAYS",active:t==="keyPlays"},{iconName:"bets",onEnter:()=>{Ce.currentPanel="bets"},title:"BETS",active:t==="bets"},{iconName:"stats",onEnter:()=>{Ce.currentPanel="stats"},title:"STATS",active:t==="stats"},{iconName:"fantasy",onEnter:()=>{Ce.currentPanel="fantasy"},title:"FANTASY",active:t==="fantasy"}];return c.createElement("div",{className:"sdk--panel-manager"},c.createElement(gc,{items:e}),c.createElement("div",{className:"sdk--panel-wrapper"},c.createElement(c.Suspense,{fallback:null},Ac[t])))}},Symbol.toStringTag,{value:"Module"})),_c=Object.freeze(Object.defineProperty({__proto__:null,default:t=>c.createElement("svg",{width:t.width,height:t.height,viewBox:"0 0 30 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{d:"M27.375 4.75H2.625V7H27.375V4.75Z",fill:"white"}),c.createElement("path",{d:"M25.125 0.25H4.875V2.5H25.125V0.25Z",fill:"white"}),c.createElement("path",{d:"M0.375 9.25V31.75H29.625V9.25H0.375ZM11.625 26.125V14.875L20.625 20.5L11.625 26.125Z",fill:"white"}))},Symbol.toStringTag,{value:"Module"})),Cc=Object.freeze(Object.defineProperty({__proto__:null,default:t=>c.createElement("svg",{width:t.width,height:t.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1891 8.29879C18.6116 8.5331 18.9367 8.80345 19.162 9.10985C19.3873 9.41624 19.5 9.71863 19.5 10.019C19.5 10.3194 19.396 10.6158 19.1837 10.9102C18.9713 11.2026 18.6463 11.4669 18.2108 11.7012L10.9111 15.6724L3.58975 19.6035C3.15207 19.8378 2.74256 19.9679 2.36122 19.994C1.98204 20.02 1.65703 19.9619 1.38836 19.8177C1.12185 19.6735 0.905177 19.4453 0.742673 19.1328C0.582335 18.8204 0.5 18.4419 0.5 17.9994V2.00062C0.5 1.55805 0.573669 1.17956 0.721006 0.867153C0.87051 0.554748 1.09152 0.326452 1.38836 0.182265C1.6852 0.0380777 2.02104 -0.0199976 2.39372 0.00603615C2.76639 0.0340725 3.16507 0.164241 3.58975 0.398545L10.9111 4.36769L18.1891 8.29879Z",fill:"white"}))},Symbol.toStringTag,{value:"Module"})),wc=Object.freeze(Object.defineProperty({__proto__:null,default:t=>c.createElement("svg",{width:t.width,height:t.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{d:"M26.4393 4.5H6.61944L3.34766 31.5C3.34766 31.5 19.7066 31.5 22.7432 31.5C23.3056 31.5 23.8679 31.4591 24.4251 31.3773C26.0406 31.1268 28.7193 30.3445 29.8491 27.6808C30.3501 26.4947 30.7387 23.1919 30.8665 22.3023C31.1783 20.1345 30.0178 18.8819 28.8625 18.1508C28.6069 17.9923 28.6733 17.6038 28.9647 17.5322C30.1814 17.2203 31.3266 16.571 31.6435 15.1906C31.8633 14.2192 32.0781 12.0872 32.2263 10.9011C32.9113 5.92643 29.568 4.5 26.4393 4.5ZM24.1542 19.792H15.8213L15.6117 21.5047H23.9497L23.4589 25.4773H10.1468L11.2715 16.3154H24.5836L24.1593 19.7869L24.1542 19.792ZM24.7779 14.7202H11.4658L11.9821 10.5227H25.2942L24.783 14.7202H24.7779Z",fill:"#9DA0A6"}))},Symbol.toStringTag,{value:"Module"})),Pc=Object.freeze(Object.defineProperty({__proto__:null,default:t=>c.createElement("svg",{width:t.width,height:t.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{clipPath:"url(#clip0_538_5831)"},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5925 1.7998V32.6941H10.4849V14.8588H3.671V32.6941H0.899902V34.7641H35.099V32.6941H32.3603V8.0125H25.514V32.6941H21.4397V1.7998H14.5925Z",fill:"#9DA0A6"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_538_5831"},c.createElement("rect",{width:"36",height:"36",fill:"white"}))))},Symbol.toStringTag,{value:"Module"})),Ec=Object.freeze(Object.defineProperty({__proto__:null,default:t=>c.createElement("svg",{width:t.width,height:t.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.96879 29.0297C11.6061 31.2694 14.6822 32.9334 18.0001 33.9152C21.3179 32.9334 24.394 31.2694 27.0313 29.0297C29.6686 26.7899 31.8089 24.0239 33.3151 20.9089C31.6987 16.1971 30.9721 11.2259 31.1722 6.24861C26.9818 4.51945 22.5273 3.51728 18.0001 3.28516C13.4728 3.51728 9.01831 4.51945 4.82788 6.24861C5.02804 11.2259 4.30143 16.1971 2.68506 20.9089C4.19119 24.0239 6.33149 26.7899 8.96879 29.0297ZM11.7503 14.7153L12.2646 10.5164H25.5772L25.0616 14.7153H11.7503ZM23.7355 25.4753H10.423L11.5486 16.3157H24.8599L24.4349 19.7871H16.1048L15.8917 21.4998H24.2282L23.7355 25.4753Z",fill:"#9DA0A6"}))},Symbol.toStringTag,{value:"Module"})),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:t=>c.createElement("svg",{width:t.width,height:t.height,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0022 0.75L21.8012 19.4545H0.203125L11.0022 0.75ZM11.7522 13.5V7.5H10.2522V13.5H11.7522ZM11.8022 14.95H10.2022V16.55H11.8022V14.95Z",fill:"#F58B00"}))},Symbol.toStringTag,{value:"Module"})),Ge=t=>c.createElement("img",{loading:"lazy",alt:t.alt||"Image",...t}),qc="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCACQALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4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MSSaYi9QIKACgAoAKACgAoAKACgAoAKACgAoAKACgChqGmafqtu1rqVnb3tuwP7ueNX2kjG+Nj88UgH3ZImSRTyrAjNAHzt46+HM2gpJqujmW60kZa4hfL3GnA8b2Ycz2vYykeZCP9duXM1S12KTPKN3+f8APP8An3oGJu9/8/596Xy/r8A/r+kQbvf/ADxRcNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==",zo=_e.getMaestroEventViewModel().keyPlaysViewModel,Sc=({isPlaying:t,isScoring:e,awayTeamName:r,homeTeamName:n,awayTeamScore:a,homeTeamScore:i,playerImageUrl:s,teamImageUrl:o,thumbnailImageUrl:h,description:f,playbackProgress:A,onEnter:p,clipID:P,onFocus:w,setRef:K})=>{const{ref:q,focused:_}=J.useFocusable({onEnterPress:p,onFocus:w});c.useEffect(()=>{K(q)},[q,K]);const v=c.useSyncExternalStore(C=>zo.failedClips.subscribe(C),()=>zo.failedClips.value[P]);Go({active:_,onLeft:()=>{Qo(q.current)}});const g=()=>s?c.createElement(Ge,{src:s,crossOrigin:"anonymous",alt:"Key Play Player Image",className:"cardImage"}):o?c.createElement(Ge,{src:o,crossOrigin:"anonymous",alt:"Key Play Team Image",className:"cardImage"}):h?c.createElement(Ge,{src:h,crossOrigin:"anonymous",alt:"Key Play Thumbnail Image",className:"cardImage"}):c.createElement(Ge,{src:qc,crossOrigin:"anonymous",alt:"Key Play Thumbnail Image",className:"cardImage"});return c.createElement("div",{ref:q,className:"key-play-card",id:P},c.createElement("div",{className:"key-play-card-content"},g(),c.createElement("div",{className:"text-content T05_ALT"},c.createElement("div",{className:"multi-line"},f))),t&&A!==null&&c.createElement("progress",{value:A,max:"1"}),e&&c.createElement(Tc,{awayTeamScore:a,homeTeamScore:i,homeTeamName:n,awayTeamName:r}),v==="recentFailure"&&c.createElement("div",{className:"error-state"},c.createElement(da,{iconName:"warning",width:21.6,height:18.7}),c.createElement("span",{className:"T05_ALT"},"Could not play this clip. ")),v==="nonRecentFailure"&&c.createElement("div",{className:"non-recent-error-state"},c.createElement(da,{iconName:"warning",width:21.6,height:18.7})))},Tc=({homeTeamName:t,awayTeamScore:e,homeTeamScore:r,awayTeamName:n})=>c.createElement("div",{className:"score"},c.createElement("div",{className:"score-team T05_ALT"},t,c.createElement("span",{className:"score-team T30"},r)),c.createElement("div",{className:"score-team T05_ALT"},c.createElement("span",{className:"score-team T30"},e),n)),Ic=t=>c.createElement("div",{className:["scrollable-gradient",t.scrolled?"scroll-container-scrolled":""].join(" ")},t.children),Mc=c.lazy(()=>Promise.resolve().then(()=>Rc)),xc=32,ne=_e.getMaestroEventViewModel().keyPlaysViewModel,Kc=()=>{const[t,e]=c.useState(!1),r=c.useRef({}),{ref:n,focusKey:a}=J.useFocusable(),i=c.useSyncExternalStore(p=>ne.currentClipPlaybackProgress.subscribe(p),()=>ne.currentClipPlaybackProgress.value),s=c.useSyncExternalStore(p=>ne.currentlyPlayingClipIndex.subscribe(p),()=>ne.currentlyPlayingClipIndex.value),o=c.useSyncExternalStore(p=>ne.items.subscribe(p),()=>ne.items.value),h=p=>async()=>{await ne.playKeyPlay(p)},f=p=>P=>{if(!n.current||!P.node)return;const w=n.current,K=w.getBoundingClientRect(),q=P.node.getBoundingClientRect(),_=Object.keys(r.current),v=_.map(b=>parseInt(b,10)).sort((b,B)=>b-B).slice(p,_.length);let g=!1;if(v.forEach(b=>{var T;const B=(T=r.current[b])==null?void 0:T.current;if(B){const E=B.getBoundingClientRect(),L=E.bottom>K.bottom||E.top<K.top;g||(g=L)}}),!g)return;const C=p===0?0:w.scrollTop+(q.top-K.top-xc);w.scrollTo({top:C,behavior:"auto"}),e(C>0)},A=p=>P=>{P?r.current[p]=P:delete r.current[p]};return c.createElement(J.FocusContext.Provider,{value:a},c.createElement(Ic,{scrolled:t},c.createElement("div",{ref:n,className:"key-plays-view"},o.map((p,P)=>c.createElement("div",{key:`section-${P}`,className:"key-plays-section"},c.createElement("h3",{className:"key-plays-section-title T10"},p.title),c.createElement("div",{className:"key-plays-section-items"},p.items.map(w=>{const K=ne.allItems.findIndex(q=>q.id===w.id);return c.createElement(Sc,{awayTeamScore:w.awayTeamScore,awayTeamName:w.awayTeamName,clipID:w.clipID,description:w.description,homeTeamName:w.homeTeamName,id:w.id,homeTeamScore:w.homeTeamScore,key:w.id,playerImageUrl:w.playerImageUrl,teamImageUrl:w.teamImageUrl,thumbnailImageUrl:w.thumbnailImageUrl,isPlaying:ne.isCurrentlyPlaying(K),isScoring:!!(w.awayTeamScore&&w.homeTeamScore),playbackProgress:K===s?i:null,onEnter:h(K),onFocus:f(K),setRef:A(K)})})))),c.createElement("div",{className:"key-plays-bottom-padding"}))))},Bc=Object.freeze(Object.defineProperty({__proto__:null,default:()=>{const t=c.useSyncExternalStore(r=>ne.errorState.subscribe(r),()=>ne.errorState.value),e=async()=>{await ne.userRequestedNewKeyPlaysData(),J.setFocus("PANEL_NAV_BUTTON_0")};return t?c.createElement(c.Suspense,{fallback:null},c.createElement(Mc,{errorState:t,onRetry:e})):c.createElement(Kc,null)}},Symbol.toStringTag,{value:"Module"})),Dc=({onEnter:t,...e})=>{const{ref:r}=J.useFocusable({onEnterPress:t});return c.createElement(ko,{className:"action-button T05_ALT",...e,ref:r},e.children)},Oc=()=>c.createElement("div",{className:"sdk--key-play-error-state-unpopulatedEvent"},c.createElement("div",{className:"main-content"},c.createElement("h3",{className:"T70"},"Greatness takes time."),c.createElement("p",{className:"T20"},"Key plays are still in the making! Come back soon to check ‘em out.")),c.createElement("div",{className:"unpopulatedEvent-examples"},Array.from({length:4}).map((t,e)=>c.createElement("div",{key:e,className:"example"})))),Nc=()=>c.createElement("div",{className:"sdk--key-play-error-state-unsupportedEvent"},c.createElement("h3",{className:"T70"},"No Key Plays Available"),c.createElement("svg",{viewBox:"0 0 520 359",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{opacity:"0.16"},c.createElement("path",{d:"M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z",fill:"#6D6D6D"}),c.createElement("rect",{x:"94.6687",y:"219.427",width:"51.6662",height:"25.259",fill:"#777777"}),c.createElement("rect",{x:"145.187",y:"39.1694",width:"20.6665",height:"149.258",fill:"#666666"}),c.createElement("path",{d:"M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z",fill:"#666666"}),c.createElement("path",{d:"M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z",fill:"#6D6D6D"}),c.createElement("rect",{width:"51.6662",height:"25.259",transform:"matrix(-1 0 0 1 427.055 219.427)",fill:"#777777"}),c.createElement("rect",{width:"20.6665",height:"149.258",transform:"matrix(-1 0 0 1 376.537 39.1694)",fill:"#666666"}),c.createElement("path",{d:"M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z",fill:"#666666"}),c.createElement("path",{d:"M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z",fill:"#B1B1B1"}),c.createElement("rect",{x:"23.4844",y:"141.354",width:"473.033",height:"19.5183",fill:"#777777"}),c.createElement("rect",{x:"72.8545",y:"51.7993",width:"374.293",height:"45.9255",fill:"#CDCDCD"})))),Lc=({onRetry:t})=>{const{hasFocusedChild:e,ref:r,focusKey:n}=J.useFocusable({trackChildren:!0});return c.createElement(J.FocusContext.Provider,{value:n},c.createElement("div",{ref:r,className:"sdk--key-play-error-state-tabLoadFailure",style:{borderColor:e?"var(--sdk-highlightPrimary)":"transparent"}},c.createElement("h3",{className:"T70"},"Let’s try that again..."),c.createElement("p",{className:"T20"},"We're having trouble loading this."),c.createElement(Dc,{onEnter:t},"Refresh")))},Rc=Object.freeze(Object.defineProperty({__proto__:null,default:({errorState:t,onRetry:e})=>t==="unsupportedEvent"?c.createElement(Nc,null):t==="unpopulatedEvent"?c.createElement(Oc,null):t==="tabLoadFailure"?c.createElement(Lc,{onRetry:e}):null},Symbol.toStringTag,{value:"Module"}));return _e});
3
- //# sourceMappingURL=maestro-web-sdk.umd.js.map
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("MaestroWebSDK",["react","react-dom"],t):"object"==typeof exports?exports.MaestroWebSDK=t(require("react"),require("react-dom")):e.MaestroWebSDK=t(e.React,e.ReactDOM)}(this,(function(e,t){return function(e){function t(t){for(var n,o,a=t[0],i=t[1],s=0,c=[];s<a.length;s++)o=a[s],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&c.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={0:0};function o(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,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=a);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.src=function(e){return o.p+""+e+".maestro-web-sdk.umd.js"}(e);var l=new Error;i=function(t){s.onerror=s.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpMaestroWebSDK=this.webpackJsonpMaestroWebSDK||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var l=i;return o(o.s=8)}([function(t,n){t.exports=e},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 o}));class o{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";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=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]}}(),i=[];function s(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var a=e[o],l=t.base?a[0]+t.base:a[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),A={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(i[d].references++,i[d].updater(A)):i.push({identifier:u,updater:f(A,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 o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function A(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function p(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function f(e,t){var n,r,o;if(t.singleton){var a=m++;n=h||(h=c(t)),r=A.bind(null,n,a,!1),o=A.bind(null,n,a,!0)}else n=c(t),r=p.bind(null,n,t),o=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 o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());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 o=s(n[r]);i[o].references--}for(var a=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=a}}}},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,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(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 o(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 o(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],o=t[3];if(!o)return n;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),s="/*# ".concat(i," */"),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([s]).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 o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&o[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.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return s}));var r=n(7);const{destroy:o,pause:a,resume:i,setFocus:s,init:l,setKeyMap:c}=r.b},function(e,t,n){e.exports=n(21)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));const r=e=>{let{offsetParent:t}=e;const n=e.offsetHeight,r=e.offsetWidth;let o=e.offsetLeft,a=e.offsetTop;for(;t&&1===t.nodeType;)o+=t.offsetLeft-t.scrollLeft,a+=t.offsetTop-t.scrollTop,({offsetParent:t}=t);return{height:n,left:o,top:a,width:r}};var o=(e,t)=>{const n=e&&e.parentNode;if(n){const o=r(n),{height:a,left:i,top:s,width:l}=r(e);t(i-o.left,s-o.top,l,a,i,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}const i="undefined"!=typeof window&&window.document,s=i?window.innerWidth:0,l=i?window.innerHeight:0;class c{constructor(){a(this,"debugCtx",void 0),a(this,"layoutsCtx",void 0),i?(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=s,n.height=l,r}clear(){i&&this.debugCtx&&this.debugCtx.clearRect(0,0,s,l)}clearLayouts(){i&&this.layoutsCtx&&this.layoutsCtx.clearRect(0,0,s,l)}drawLayout(e,t,n){i&&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){i&&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 d(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="SN:ROOT",p={left:37,up:38,right:39,down:40,enter:13},h=["#0FF","#FF0","#F0F"],m={leading:!0,trailing:!1},f=(e,t,n={})=>{let r=null,o=0;const{leading:a=!0,trailing:i=!0}=n;return function(...n){const s=Date.now();o||a||(o=s);const l=t-(s-o);l<=0||l>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(this,n)):!r&&i&&(r=window.setTimeout(()=>{o=a?Date.now():0,r=null,e.apply(this,n)},l))}},y=(e,t)=>[...e].sort((e,n)=>{const r=t(e),o=t(n);return r<o?-1:r>o?1:0}),v=e=>e[0],g=(e,t)=>Object.keys(e).find(n=>t(e[n])),b=(e,t)=>e.filter(e=>!t.includes(e)),E=(e,t)=>e.forEach(t);class C{static getCutoffCoordinate(e,t,n,r){const o=r.left,a=r.top,i=r.width,s=r.height,l=e?a:o,c=e?s:i;return t?n?l:l+c:n?l+c:l}static getRefCorners(e,t,n){const r=n.left,o=n.top,a=n.width,i=n.height,s={a:{x:0,y:0},b:{x:0,y:0}};switch(e){case"up":{const e=t?o+i:o;s.a={x:r,y:e},s.b={x:r+a,y:e};break}case"down":{const e=t?o:o+i;s.a={x:r,y:e},s.b={x:r+a,y:e};break}case"left":{const e=t?r+a:r;s.a={x:e,y:o},s.b={x:e,y:o+i};break}case"right":{const e=t?r:r+a;s.a={x:e,y:o},s.b={x:e,y:o+i};break}}return s}static isAdjacentSlice(e,t,n){const{a:r,b:o}=e,{a:a,b:i}=t,s=n?"x":"y",l=r[s],c=o[s],u=a[s],d=i[s],A=.2*(c-l);return Math.max(0,Math.min(c,d)-Math.max(l,u))>=A}static getPrimaryAxisDistance(e,t,n){const{a:r}=e,{a:o}=t,a=n?"y":"x";return Math.abs(o[a]-r[a])}static getSecondaryAxisDistance(e,t,n){const{a:r,b:o}=e,{a:a,b:i}=t,s=n?"x":"y",l=r[s],c=o[s],u=a[s],d=i[s],A=[];return A.push(Math.abs(u-l)),A.push(Math.abs(u-c)),A.push(Math.abs(d-l)),A.push(Math.abs(d-c)),Math.min(...A)}sortSiblingsByPriority(e,t,n,r){const o="down"===n||"up"===n,a=C.getRefCorners(n,!1,t);return[...e].sort((e,t)=>{const r=C.getRefCorners(n,!0,e.layout),i=C.getRefCorners(n,!0,t.layout),s=C.isAdjacentSlice(a,r,o),l=C.isAdjacentSlice(a,i,o),c=s?C.getPrimaryAxisDistance:C.getSecondaryAxisDistance,u=l?C.getPrimaryAxisDistance:C.getSecondaryAxisDistance,d=s?C.getSecondaryAxisDistance:C.getPrimaryAxisDistance,A=l?C.getSecondaryAxisDistance:C.getPrimaryAxisDistance,p=c(a,r,o),h=u(a,i,o);return(5*p+d(a,r,o)+1)/(s?5:1)-(5*h+A(a,i,o)+1)/(l?5:1)})}constructor(){d(this,"focusableComponents",void 0),d(this,"focusKey",void 0),d(this,"parentsHavingFocusedChild",void 0),d(this,"enabled",void 0),d(this,"nativeMode",void 0),d(this,"throttle",void 0),d(this,"throttleKeypresses",void 0),d(this,"pressedKeys",void 0),d(this,"paused",void 0),d(this,"keyDownEventListener",void 0),d(this,"keyUpEventListener",void 0),d(this,"keyMap",void 0),d(this,"debug",void 0),d(this,"visualDebugger",void 0),d(this,"logIndex",void 0),this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=p,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)}init({debug:e=!1,visualDebug:t=!1,nativeMode:n=!1,throttle:r=0,throttleKeypresses:o=!1}={}){this.enabled||(this.enabled=!0,this.nativeMode=n,this.throttleKeypresses=o,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.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=p,this.unbindEventHandlers())}getEventType(e){return g(this.getKeyMap(),t=>e===t)}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("enter"===t&&this.focusKey)return void this.onEnterPress(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?f(e,this.throttle,m):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()},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.keyDownEventListener)}}unbindEventHandlers(){"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("keydown",this.keyDownEventListener),this.keyDownEventListener=null,this.throttle&&(window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null))}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")}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={}){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=g(this.getKeyMap(),t=>e.keyCode===t);n&&this.smartNavigate(n,null,{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:o,layout:a}=r,i="down"===e||"up"===e,s="down"===e||"right"===e,l=C.getCutoffCoordinate(i,s,!1,a),c=Object.values(this.focusableComponents).filter(e=>{if(e.parentFocusKey===t&&e.focusable){this.updateLayout(e.focusKey);const t=C.getCutoffCoordinate(i,s,!0,e.layout);return s?t>=l:t<=l}return!1});if(this.debug&&this.log("smartNavigate","siblings",c),c.length>0){const t=this.sortSiblingsByPriority(c,a,e,o);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: ${h[this.logIndex%h.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:o,preferredChildFocusKey:a}=t;if(o&&!t.forgetLastFocusedChild&&this.isParticipatingFocusableComponent(o))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",o),this.getNextFocusKey(o);if(a&&this.isParticipatingFocusableComponent(a))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",a),this.getNextFocusKey(a);r.forEach(e=>this.updateLayout(e.focusKey));const{focusKey:i}=(e=>{const t=y(e,({layout:e})=>Math.abs(e.left)+Math.abs(e.top));return v(t)})(r);return this.log("getNextFocusKey","childKey will be focused",i),this.getNextFocusKey(i)}addFocusable({focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:o,onArrowPressHandler:a,onBecameFocusedHandler:i,onBecameBlurredHandler:s,forgetLastFocusedChild:l,trackChildren:c,onUpdateFocus:u,onUpdateHasFocusedChild:d,preferredChildFocusKey:A,autoRestoreFocus:p,focusable:h=!0,blockNavigationOut:m}){this.focusableComponents[e]={focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:o,onArrowPressHandler:a,onBecameFocusedHandler:i,onBecameBlurredHandler:s,onUpdateFocus:u,onUpdateHasFocusedChild:d,forgetLastFocusedChild:l,trackChildren:c,lastFocusedChildKey:null,preferredChildFocusKey:A,focusable:h,blockNavigationOut:m,autoRestoreFocus:p,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],o=e===this.focusKey;if(r&&r.lastFocusedChildKey===e&&(r.lastFocusedChildKey=null),this.nativeMode)return;o&&r&&r.autoRestoreFocus&&this.setFocus(n)}}getNodeLayoutByFocusKey(e){const t=this.focusableComponents[e];return t?(this.updateLayout(t.focusKey),t.layout):null}setCurrentFocusedKey(e,t){if(this.isFocusableComponent(this.focusKey)&&e!==this.focusKey){var n,r;const e=this.focusableComponents[this.focusKey],o=this.focusableComponents[e.parentFocusKey];this.saveLastFocusedChildKey(o,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 o,a;const e=this.focusableComponents[this.focusKey];null===(o=e.onUpdateFocus)||void 0===o||o.call(e,!0),null===(a=e.onBecameFocusedHandler)||void 0===a||a.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 o=b(this.parentsHavingFocusedChild,n),a=b(n,this.parentsHavingFocusedChild);E(o,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)}),E(a,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(){this.paused=!0}resume(){this.paused=!1}setFocus(e,t={}){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;o(n,(e,r,o,a,i,s)=>{t.layout={x:e,y:r,width:o,height:a,left:i,top:s,node:n}})}updateFocusable(e,{node:t,preferredChildFocusKey:n,focusable:r,blockNavigationOut:o}){if(this.nativeMode)return;const a=this.focusableComponents[e];a&&(a.preferredChildFocusKey=n,a.focusable=null!=r?r:a.focusable,a.blockNavigationOut=o,t&&(a.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=new C},function(e,t,n){"use strict";n.r(t);var r=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}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 i=class{constructor(){a(this,"currentlyPlayingClipIndex",new r.a(null)),a(this,"lastPlayedClipIndex",new r.a(null)),a(this,"currentClipPlaybackProgress",new r.a(null)),a(this,"errorState",new r.a("unpopulatedEvent")),a(this,"failedClips",new r.a({})),a(this,"items",new r.a([]))}isCurrentlyPlaying(e){return e===this.currentlyPlayingClipIndex.value}async setKeyPlays(e){null!==e?(this.items.value=this.parseNetworkResponse(e),this.cleanErrors()):this.errorState.value="tabLoadFailure"}cleanErrors(){"tabLoadFailure"===this.errorState.value&&(this.errorState.value=null),"unpopulatedEvent"===this.errorState.value&&this.allItems.length&&(this.errorState.value=null),this.allItems.length||(this.errorState.value="unpopulatedEvent")}async playKeyPlay(e){B.getMaestroEventViewModel().delegate.playClip(e)}parseNetworkResponse(e){const t=Object.values(e.entities.team),n=Object.values(e.entities.athlete),r=t.find(e=>"home"===e.homeAway),o=t.find(e=>"away"===e.homeAway);if(!r||!o)return console.log("Could not find home or away team"),[];const a=[],i=[];for(const s of e.sections){for(const e of s.items){const i=e.team?t.find(t=>t.id===e.team):void 0,l=e.athlete?n.find(t=>t.id===e.athlete):void 0,c=i?i.logoRef:void 0,u=l?l.headshot:void 0,d="headshot"!==e.thumbnailType?e.thumbnail:void 0,A=e.homeScore?e.homeScore:"0",p=e.awayScore?e.awayScore:"0",h=e.scoringPlay?parseInt(A):void 0,m=e.scoringPlay?parseInt(p):void 0,f={id:Math.random().toString(36).substring(2,15),description:e.description?e.description:"",homeTeamName:r?r.shortName:"",awayTeamName:o?o.shortName:"",homeTeamScore:h,awayTeamScore:m,clipID:e.clipID,teamImageUrl:c,playerImageUrl:u,thumbnailImageUrl:d,section:s.title};a.push(f)}if(a.length){const e=s.title,t=i.find(t=>t.title===e);t?t.items.push(...a):i.push({title:e,items:[...a]}),a.length=0}}return i}get allItems(){return this.items.value.reduce((e,t)=>e.concat(t.items),[])}clipID(e){if(this.allItems[e])return this.allItems[e].clipID}handleKeyPlayLoadFailure(e){const t=this.clipID(e);if(t){const n=this.failedClips.value;n[t]="recentFailure",this.failedClips.value=n,setTimeout(()=>{if("recentFailure"===this.loadFailureStatus(e)){const e=this.failedClips.value;e[t]="nonRecentFailure",this.failedClips.value=e}},5e3)}}loadFailureStatus(e){const t=this.clipID(e);return this.failedClips.value&&t?this.failedClips.value[t]:"noFailure"}clearLoadFailureStatus(e){const t=this.clipID(e);t&&this.failedClips&&(this.failedClips.value={...this.failedClips.value,[t]:"noFailure"})}async userRequestedNewKeyPlaysData(){const e=B.getMaestroEventViewModel();await e.delegate.userRequestedNewKeyPlaysData()}},s=n(5);function l(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 c extends class{constructor(){o(this,"_isLoading",new r.a(!1)),o(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}}{constructor(e="",t){super(),l(this,"_eventId",new r.a("")),l(this,"_title",new r.a("")),l(this,"_isLive",new r.a(!1)),l(this,"_isShowingPanel",new r.a(!1)),l(this,"delegate",void 0),l(this,"keyPlaysViewModel",new i),this._eventId.value=e,this.delegate=t,Object(s.b)()}deinit(){Object(s.a)()}updateKeyPlaysData(e){return this.keyPlaysViewModel.setKeyPlays(e)}startFocusManagement(){return Object(s.e)(""),Object(s.d)(),setTimeout(()=>{Object(s.e)("PANEL_NAV_BUTTON_0")},0),Promise.resolve()}didStartPlayingClip(e){this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentClipPlaybackProgress.value=0,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=e,this.keyPlaysViewModel.clearLoadFailureStatus(e)}didStopPlayingClip(e){this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=null,this.keyPlaysViewModel.currentClipPlaybackProgress.value=null}didFailToPlayClip(e){this.keyPlaysViewModel.handleKeyPlayLoadFailure(e)}didUpdatePlaybackProgressOfClip(e,t){this.keyPlaysViewModel.currentClipPlaybackProgress.value=t,this.keyPlaysViewModel.clearLoadFailureStatus(e)}didShowPanel(){return this.isShowingPanel=!0,Promise.resolve()}async didHidePanel(){this.isShowingPanel=!1,Object(s.c)()}didShowOverlay(){throw new Error("Method not implemented.")}didHideOverlay(){throw new Error("Method not implemented.")}currentEventDoesNotSupportKeyPlays(){this.keyPlaysViewModel.errorState.value="unsupportedEvent"}getCurrentEventID(){return this.eventId.value}getCurrentlyPlayingClipIndex(){return this.keyPlaysViewModel.currentlyPlayingClipIndex.value}getLastPlayedClipIndex(){return this.keyPlaysViewModel.lastPlayedClipIndex.value}getCurrentClipPlaybackProgress(){return this.keyPlaysViewModel.currentClipPlaybackProgress.value}getKeyPlaysCount(){return this.keyPlaysViewModel.allItems.length}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}}var u=n(10);function d(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{constructor(e){d(this,"eventViewModel",void 0),d(this,"panelManagerViewModel",void 0),d(this,"keyPlaysViewModel",void 0),this.eventViewModel=e,this.panelManagerViewModel=new u.a,this.keyPlaysViewModel=new i}static async fromEventId(e,t){try{const n=new c(e,t);return new A(n)}catch(e){return console.error("Error creating view models from event ID",e),null}}}var p=n(0),h=n.n(p),m=n(9),f=n.n(m);function y(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 v=class{constructor(){y(this,"renderersMap",new Map),y(this,"viewModels",null)}async setViewModels(e,t){try{return t?(this.viewModels=await A.fromEventId(e,t),this.viewModels):(console.error("No event delegate provided"),null)}catch(e){return console.error("Error creating view models from event ID",e),null}}async renderPanel(e){const t=await this.getRenderer(e);if(!this.viewModels)throw new Error("Cannot render panel manager: No view models set");const r=n(24).default,o=n(23).default;return t.render(h.a.createElement(r,null,h.a.createElement(o,null))),()=>{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=>{f.a.render(e,t)},unmount:()=>{f.a.unmountComponentAtNode(t)}};return this.renderersMap.set(e,n),n}};function g(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 b=["664b9c57d59a7a431542d814"];class E{constructor(e){g(this,"renderer",void 0),g(this,"siteID",void 0),g(this,"jwt",void 0),g(this,"userID",void 0),g(this,"maestroEventViewModel",null),this.renderer=e}async userDidStartWatchingEvent(e,t){if(!this.isAuthorizedClient)throw new Error("Unauthorized use of SDK");return this.maestroEventViewModel=new c(e,t),this.maestroEventViewModel}userDidStopWatchingEvent(e){console.log("stop watching event",e),this.maestroEventViewModel&&(this.maestroEventViewModel.deinit(),this.maestroEventViewModel=null)}authenticateUser(e,t){throw new Error("Method not implemented")}deauthenticateUser(){throw new Error("Method not implemented.")}static getInstance(){if(!E.instance){const e=new v;E.instance=new E(e)}return E.instance}configure(e){e.siteID&&this.setSiteID(e.siteID),e.jwt&&this.setJwt(e.jwt),console.info("MaestroWebSDK configured",e)}get isAuthorizedClient(){const e=this.getSiteID();return Boolean(e&&b.includes(e))}setSiteID(e){this.siteID=e}getSiteID(){return this.siteID}setJwt(e){this.jwt=e}getJwt(){return this.jwt}setUserID(e){this.userID=e}getUserID(){return this.userID}getMaestroEventViewModel(){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set");return this.maestroEventViewModel}async renderPanel(e){if(!this.renderer.viewModels){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set.");let t="default-event-id";e&&(t=e),await this.renderer.setViewModels(t,this.maestroEventViewModel.delegate)}return this.renderer.renderPanel(e)}}g(E,"instance",void 0);const C=E.getInstance();var B=t.default=C},function(e,n){e.exports=t},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);const o={KEY_PLAYS:"keyPlays",STATS:"stats",FANTASY:"fantasy",BETS:"bets"};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}class i{constructor(){a(this,"_panels",new r.a([o.KEY_PLAYS,o.STATS,o.FANTASY,o.BETS])),a(this,"_currentPanel",new r.a(o.KEY_PLAYS)),a(this,"_newlyFocusedPanel",new r.a(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}get newlyFocusedPanel(){return this._newlyFocusedPanel.value}set newlyFocusedPanel(e){this._newlyFocusedPanel.value=e}getIndex(e){const t=this.panels.findIndex(t=>t===e);return-1!==t?t:null}getPanelType(e){return this.panels[e]||null}get panelTypeToLeft(){const e=this.getIndex(this.currentPanel);return null===e||0===e?null:this.getPanelType(e-1)}get panelTypeToRight(){const e=this.getIndex(this.currentPanel);return null===e||e===this.panels.length-1?null:this.getPanelType(e+1)}}},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,"/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: Arial, Helvetica, sans-serif;\n color: var(--sdk-text100);\n}\n\n.T01 {\n font-size: 1.125rem;\n font-weight: normal;\n line-height: 1.5rem;\n}\n\n.T02 {\n font-size: 1.125rem;\n font-weight: bold;\n line-height: 1.5rem;\n}\n\n.T05_ALT {\n font-size: 1.313rem;\n font-weight: bold;\n line-height: 1.75rem;\n}\n\n.T10 {\n font-size: 1.438rem;\n font-weight: bold;\n line-height: 2rem;\n}\n\n.T20 {\n font-size: 1.688rem;\n font-weight: 500;\n line-height: 2.25rem;\n}\n\n.T30 {\n font-size: 1.813rem;\n font-weight: bold;\n line-height: 2.25rem;\n}\n\n.T70 {\n font-size: 3rem;\n font-weight: 900;\n line-height: 3.5rem;\n}\n","",{version:3,sources:["webpack://./src/components/core/App/App.styles.css"],names:[],mappings:"AAAA,oCAAoC;AACpC;EACE,yCAAyC;EACzC,yBAAyB;AAC3B;;AAEA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,mBAAmB;AACrB",sourcesContent:["/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: Arial, Helvetica, sans-serif;\n color: var(--sdk-text100);\n}\n\n.T01 {\n font-size: 1.125rem;\n font-weight: normal;\n line-height: 1.5rem;\n}\n\n.T02 {\n font-size: 1.125rem;\n font-weight: bold;\n line-height: 1.5rem;\n}\n\n.T05_ALT {\n font-size: 1.313rem;\n font-weight: bold;\n line-height: 1.75rem;\n}\n\n.T10 {\n font-size: 1.438rem;\n font-weight: bold;\n line-height: 2rem;\n}\n\n.T20 {\n font-size: 1.688rem;\n font-weight: 500;\n line-height: 2.25rem;\n}\n\n.T30 {\n font-size: 1.813rem;\n font-weight: bold;\n line-height: 2.25rem;\n}\n\n.T70 {\n font-size: 3rem;\n font-weight: 900;\n line-height: 3.5rem;\n}\n"],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,".sdk--panel-manager {\n padding: 3.75rem;\n padding-left: 3rem;\n padding-bottom: 0;\n\n display: flex;\n flex-direction: column;\n gap: 3.75rem;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: flex;\n justify-content: center;\n}\n","",{version:3,sources:["webpack://./src/components/core/PanelManager/PanelManager.styles.css"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;;EAEjB,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,aAAa;EACb,uBAAuB;AACzB",sourcesContent:[".sdk--panel-manager {\n padding: 3.75rem;\n padding-left: 3rem;\n padding-bottom: 0;\n\n display: flex;\n flex-direction: column;\n gap: 3.75rem;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: flex;\n justify-content: center;\n}\n"],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,".key-plays-view {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n overflow-y: auto;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n scrollbar-width: none;\n scroll-behavior: smooth;\n overscroll-behavior: contain;\n}\n\n.key-plays-view .key-plays-section:last-child {\n margin-bottom: 4rem;\n} \n\n.key-plays-view::-webkit-scrollbar {\n display: none;\n}\n\n.key-plays-section {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n position: relative;\n}\n\n/* Sticky section title using CSS position: sticky */\n.key-plays-section-title {\n position: sticky;\n top: 0;\n z-index: 1;\n margin: 0;\n}\n\n.key-plays-section-items {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.key-plays-section:last-of-type {\n margin-bottom: 0;\n}\n\n.key-plays-bottom-padding {\n height: calc(\n 100vh - 240px\n );\n min-height: 400px;\n width: 100%;\n}\n\n.key-play-card {\n display: flex;\n flex-direction: column;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n}\n\n.key-play-card[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card-content {\n display: grid;\n grid-template-columns: 1fr 2fr;\n}\n\n.key-play-card-content .cardImage {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n align-items: center;\n display: flex;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar,\n.key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 4rem;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlaysView.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,gBAAgB;EAChB,kDAAkD;EAClD,qBAAqB;EACrB,uBAAuB;EACvB,4BAA4B;AAC9B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA,oDAAoD;AACpD;EACE,gBAAgB;EAChB,MAAM;EACN,UAAU;EACV,SAAS;AACX;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE;;GAEC;EACD,iBAAiB;EACjB,WAAW;AACb;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,6BAA6B;EAC7B,yCAAyC;AAC3C;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;;AAEA;EACE,uCAAuC;EACvC,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,oBAAoB;EACpB,4BAA4B;EAC5B,qBAAqB;EACrB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;AAClB;;AAEA;;EAEE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,SAAS;EACT,qCAAqC;AACvC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX",sourcesContent:[".key-plays-view {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n overflow-y: auto;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n scrollbar-width: none;\n scroll-behavior: smooth;\n overscroll-behavior: contain;\n}\n\n.key-plays-view .key-plays-section:last-child {\n margin-bottom: 4rem;\n} \n\n.key-plays-view::-webkit-scrollbar {\n display: none;\n}\n\n.key-plays-section {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n position: relative;\n}\n\n/* Sticky section title using CSS position: sticky */\n.key-plays-section-title {\n position: sticky;\n top: 0;\n z-index: 1;\n margin: 0;\n}\n\n.key-plays-section-items {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.key-plays-section:last-of-type {\n margin-bottom: 0;\n}\n\n.key-plays-bottom-padding {\n height: calc(\n 100vh - 240px\n );\n min-height: 400px;\n width: 100%;\n}\n\n.key-play-card {\n display: flex;\n flex-direction: column;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n}\n\n.key-play-card[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card-content {\n display: grid;\n grid-template-columns: 1fr 2fr;\n}\n\n.key-play-card-content .cardImage {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n align-items: center;\n display: flex;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar,\n.key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 4rem;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n"],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,'.scrollable-gradient {\n position: relative;\n}\n\n\n.scrollable-gradient::before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 3.625rem; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scroll-container-scrolled::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-gradient::after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 6rem; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n',"",{version:3,sources:["webpack://./src/components/molecules/ScrollableGradient/ScrollableGradient.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;;AAGA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,gBAAgB,EAAE,+BAA+B;EACjD,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",sourcesContent:['.scrollable-gradient {\n position: relative;\n}\n\n\n.scrollable-gradient::before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 3.625rem; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scroll-container-scrolled::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-gradient::after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 6rem; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n'],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,".key-play-card {\n display: flex;\n flex-direction: column;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n position: relative;\n}\n\n.key-play-card[data-focused=true] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card-content {\n display: grid;\n grid-template-columns: 1fr 2fr;\n}\n\n.key-play-card-content .cardImage {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n align-items: center;\n display: flex;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box; /* This sets up the box for the flex behavior */\n -webkit-box-orient: vertical; /* Defines the orientation of the box's children (vertical for lines) */\n -webkit-line-clamp: 3; /* Limit the content to 3 lines */\n overflow: hidden; /* Hide any overflow text */\n text-overflow: ellipsis; /* Add an ellipsis at the end of the last visible line */\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n position: absolute;\n bottom: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar, .key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 4rem;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n\n.key-play-card .error-state {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--sdk-surface2);\n gap: 1rem;\n}\n\n.key-play-card .error-state path {\n fill: var(--sdk-alertWarning);\n}\n\n.key-play-card .non-recent-error-state {\n position: absolute;\n top: 1.125rem;\n right: 1.125rem;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlayCardView.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,kCAAkC;EAClC,yCAAyC;EACzC,kBAAkB;AACpB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;;AAEA;EACE,uCAAuC;EACvC,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,oBAAoB,EAAE,+CAA+C;EACrE,4BAA4B,EAAE,uEAAuE;EACrG,qBAAqB,EAAE,iCAAiC;EACxD,gBAAgB,EAAE,2BAA2B;EAC7C,uBAAuB,EAAE,wDAAwD;AACnF;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;AACX;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,SAAS;EACT,qCAAqC;AACvC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,qCAAqC;EACrC,SAAS;AACX;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,eAAe;AACjB",sourcesContent:[".key-play-card {\n display: flex;\n flex-direction: column;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n position: relative;\n}\n\n.key-play-card[data-focused=true] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card-content {\n display: grid;\n grid-template-columns: 1fr 2fr;\n}\n\n.key-play-card-content .cardImage {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n align-items: center;\n display: flex;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box; /* This sets up the box for the flex behavior */\n -webkit-box-orient: vertical; /* Defines the orientation of the box's children (vertical for lines) */\n -webkit-line-clamp: 3; /* Limit the content to 3 lines */\n overflow: hidden; /* Hide any overflow text */\n text-overflow: ellipsis; /* Add an ellipsis at the end of the last visible line */\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n position: absolute;\n bottom: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar, .key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 4rem;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n\n.key-play-card .error-state {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--sdk-surface2);\n gap: 1rem;\n}\n\n.key-play-card .error-state path {\n fill: var(--sdk-alertWarning);\n}\n\n.key-play-card .non-recent-error-state {\n position: absolute;\n top: 1.125rem;\n right: 1.125rem;\n}\n"],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,".sdk--key-play-error-state-unsupportedEvent {\n padding: 2.25rem 1.5rem 0 1.5rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n.sdk--key-play-error-state-unsupportedEvent::after {\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.08) 100%);\n}\n\n.sdk--key-play-error-state-unsupportedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unsupportedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent {\n overflow-y: hidden;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n padding: 2.25rem 1.5rem 0 1.5rem;\n scrollbar-width: none;\n display: flex;\n flex-direction: column;\n gap: 6.25rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 1rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n position: relative;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n bottom: 0;\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example {\n display: flex;\n gap: 1rem;\n padding: 1.75rem 1.5rem;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface3);\n height: 8rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n border-radius: 0.625rem;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n padding: 1.5rem;\n background-color: var(--sdk-surface4);\n}\n\n.sdk--key-play-error-state-tabLoadFailure h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-tabLoadFailure p {\n margin: 0;\n height: 5.375rem;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css"],names:[],mappings:"AAAA;EACE,gCAAgC;EAChC,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;AACA;EACE,wFAAwF;AAC1F;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,kBAAkB;EAClB,kDAAkD;EAClD,gCAAgC;EAChC,qBAAqB;EACrB,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;EACvB,SAAS;AACX;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,qEAAqE;AACvE;;AAEA;EACE,aAAa;EACb,SAAS;EACT,uBAAuB;EACvB,uBAAuB;EACvB,qCAAqC;EACrC,YAAY;AACd;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,uBAAuB;EACvB,kCAAkC;EAClC,yCAAyC;EACzC,eAAe;EACf,qCAAqC;AACvC;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,gBAAgB;AAClB",sourcesContent:[".sdk--key-play-error-state-unsupportedEvent {\n padding: 2.25rem 1.5rem 0 1.5rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n.sdk--key-play-error-state-unsupportedEvent::after {\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.08) 100%);\n}\n\n.sdk--key-play-error-state-unsupportedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unsupportedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent {\n overflow-y: hidden;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n padding: 2.25rem 1.5rem 0 1.5rem;\n scrollbar-width: none;\n display: flex;\n flex-direction: column;\n gap: 6.25rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 1rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n position: relative;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n bottom: 0;\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example {\n display: flex;\n gap: 1rem;\n padding: 1.75rem 1.5rem;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface3);\n height: 8rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n border-radius: 0.625rem;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n padding: 1.5rem;\n background-color: var(--sdk-surface4);\n}\n\n.sdk--key-play-error-state-tabLoadFailure h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-tabLoadFailure p {\n margin: 0;\n height: 5.375rem;\n}\n"],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,".action-button {\n padding: 23px 0;\n background-color: var(--sdk-accentSecondary);\n color: var(--sdk-text100);\n}\n\n.action-button:hover, .action-button[data-focused=true] {\n background-color: var(--sdk-accentPrimary);\n color: var(--sdk-text500);\n}\n","",{version:3,sources:["webpack://./src/components/molecules/ActionButton/ActionButton.styles.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,4CAA4C;EAC5C,yBAAyB;AAC3B;;AAEA;EACE,0CAA0C;EAC1C,yBAAyB;AAC3B",sourcesContent:[".action-button {\n padding: 23px 0;\n background-color: var(--sdk-accentSecondary);\n color: var(--sdk-text100);\n}\n\n.action-button:hover, .action-button[data-focused=true] {\n background-color: var(--sdk-accentPrimary);\n color: var(--sdk-text500);\n}\n"],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,".panel-navigation {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.75rem;\n overflow-x: auto;\n scrollbar-width: none;\n}\n","",{version:3,sources:["webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;AACvB",sourcesContent:[".panel-navigation {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.75rem;\n overflow-x: auto;\n scrollbar-width: none;\n}\n"],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a)()(o.a);i.push([e.i,".panel-nav-button-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.625rem;\n color: var(--sdk-text300);\n flex: 1;\n\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 min-width: 6.5rem;\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container[data-focused=true], .panel-nav-button-container:hover, .panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused=true] path, .panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused=true] button, .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","",{version:3,sources:["webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,aAAa;EACb,yBAAyB;EACzB,OAAO;;AAET;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;EACrC,iBAAiB;;EAEjB,qEAAqE;AACvE;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC",sourcesContent:[".panel-nav-button-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.625rem;\n color: var(--sdk-text300);\n flex: 1;\n\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 min-width: 6.5rem;\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container[data-focused=true], .panel-nav-button-container:hover, .panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused=true] path, .panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused=true] button, .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"],sourceRoot:""}]),t.a=i},function(e,t,n){"use strict";var r=n(9),o=n(6),a=n.n(o),i=n(0),s=n(7);function l(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 c=()=>{};t.a=({forgetLastFocusedChild:e=!1,trackChildren:t=!1,autoRestoreFocus:n,blockNavigationOut:o=!1}={})=>u=>{var d;return d=class extends i.Component{constructor(...e){var t;super(...e),l(this,"state",{realFocusKey:this.props.focusKey||(t="sn:focusable-item-",`${t}${Math.random().toString(36).substr(2,9)}`),focused:!1,hasFocusedChild:!1,parentFocusKey:this.props.parentFocusKey||s.a}),l(this,"setFocus",e=>{s.b.isNativeMode()||s.b.setFocus(e)}),l(this,"navigateByDirection",s.b.navigateByDirection),l(this,"stealFocus",()=>{s.b.setFocus(this.state.realFocusKey,{focusKey:this.state.realFocusKey})}),l(this,"onUpdateFocus",e=>{this.setState({focused:e})}),l(this,"onUpdateHasFocusedChild",e=>{this.setState({hasFocusedChild:e})}),l(this,"onEnterPressHandler",e=>{const{onEnterPress:t=c,...n}=this.props;t(n,e)}),l(this,"onEnterReleaseHandler",()=>{const{onEnterRelease:e=c,...t}=this.props;e(t)}),l(this,"onArrowPressHandler",(e,t)=>{const{onArrowPress:n=c,...r}=this.props;return n(e,r,t)}),l(this,"onBecameFocusedHandler",(e,t)=>{const{onBecameFocused:n=c,...r}=this.props;n(e,r,t)}),l(this,"onBecameBlurredHandler",(e,t)=>{const{onBecameBlurred:n=c,...r}=this.props;n(e,r,t)})}getChildContext(){return{parentFocusKey:this.state.realFocusKey}}componentDidMount(){const{realFocusKey:a,parentFocusKey:i}=this.state,{preferredChildFocusKey:l,forgetLastFocusedChild:c=!1,trackChildren:u,focusable:d=!0,autoRestoreFocus:A=!0,blockNavigationOut:p=!1}=this.props;let h;if(s.b.isNativeMode())h=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");h=e}s.b.addFocusable({focusKey:a,node:h,parentFocusKey:i,preferredChildFocusKey:l,onEnterPressHandler:this.onEnterPressHandler,onEnterReleaseHandler:this.onEnterReleaseHandler,onArrowPressHandler:this.onArrowPressHandler,onBecameFocusedHandler:this.onBecameFocusedHandler,onBecameBlurredHandler:this.onBecameBlurredHandler,onUpdateFocus:this.onUpdateFocus,onUpdateHasFocusedChild:this.onUpdateHasFocusedChild,forgetLastFocusedChild:e||c,trackChildren:t||u,blockNavigationOut:o||p,autoRestoreFocus:void 0!==n?n:A,focusable:d})}componentDidUpdate(){const{realFocusKey:e}=this.state,{preferredChildFocusKey:t,focusable:n=!0,blockNavigationOut:a=!1}=this.props;let i;if(s.b.isNativeMode())i=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");i=e}s.b.updateFocusable(e,{node:i,preferredChildFocusKey:t,focusable:n,blockNavigationOut:o||a})}componentWillUnmount(){const{realFocusKey:e}=this.state;s.b.removeFocusable({focusKey:e})}render(){const e=((e,t)=>{const n={...e};return t.forEach(e=>delete n[e]),n})({...this.props,...this.state,setFocus:this.setFocus,navigateByDirection:this.navigateByDirection,stealFocus:this.stealFocus,onUpdateFocus:this.onUpdateFocus,onUpdateHasFocusedChild:this.onUpdateHasFocusedChild},["onBecameFocusedHandler","onBecameBlurredHandler","onEnterPressHandler","onEnterReleaseHandler","onArrowPressHandler","onUpdateFocus","onUpdateHasFocusedChild","forgetLastFocusedChild","trackChildren","autoRestoreFocus"]);return Object(i.createElement)(u,e)}},l(d,"contextTypes",{parentFocusKey:a.a.string}),l(d,"childContextTypes",{parentFocusKey:a.a.string}),d}},function(e,t,n){"use strict";var r=n(22);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(10),i=n(2),s=n.n(i),l=n(12),c={insert:"head",singleton:!1};s()(l.a,c),l.a.locals;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)}const d={borderRadius:6,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:"100%",border:"none"};class A extends o.a.Component{constructor(e){super(e)}render(){const e={...d,...this.props.style};return o.a.createElement("button",u({style:e},this.props),this.props.children)}}var p=A;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 m={keyPlays:{loading:!1,component:null,requestCount:0,promise:null},play:{loading:!1,component:null,requestCount:0,promise:null},bets:{loading:!1,component:null,requestCount:0,promise:null},stats:{loading:!1,component:null,requestCount:0,promise:null},fantasy:{loading:!1,component:null,requestCount:0,promise:null},warning:{loading:!1,component:null,requestCount:0,promise:null}},f={keyPlays:()=>n.e(3).then(n.bind(null,25)),play:()=>n.e(4).then(n.bind(null,26)),bets:()=>n.e(1).then(n.bind(null,27)),stats:()=>n.e(5).then(n.bind(null,28)),fantasy:()=>n.e(2).then(n.bind(null,29)),warning:()=>n.e(6).then(n.bind(null,30))},y=e=>o.a.createElement("div",{style:{width:e.width,height:e.height}}),v=[];let g=!1;const b=()=>{if(g||0===v.length)return;g=!0;const e=v.shift(),t=m[e];if(t.component||t.loading)return g=!1,void setTimeout(b,0);t.loading=!0;const n=f[e]().then(n=>{t.component=n.default,t.loading=!1,t.promise=null,"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("icon-loaded",{detail:{iconName:e}})),g=!1,setTimeout(b,0)}).catch(n=>{console.error(`Error loading icon "${e}":`,n),t.loading=!1,t.promise=null,g=!1,setTimeout(b,0)});t.promise=n};class E extends o.a.Component{constructor(e){var t;super(e),h(this,"_isMounted",!1),h(this,"_eventHandler",null),this.state={loaded:!(null===(t=m[e.iconName])||void 0===t||!t.component)}}componentDidMount(){this._isMounted=!0,this.loadIcon()}componentWillUnmount(){this._isMounted=!1,this.removeEventListener()}componentDidUpdate(e){if(e.iconName!==this.props.iconName){var t;const e=!(null===(t=m[this.props.iconName])||void 0===t||!t.component);this.setState({loaded:e}),e||(this.removeEventListener(),this.loadIcon())}}removeEventListener(){this._eventHandler&&"undefined"!=typeof window&&(window.removeEventListener("icon-loaded",this._eventHandler),this._eventHandler=null)}loadIcon(){var e;const{iconName:t}=this.props;null!==(e=m[t])&&void 0!==e&&e.component?this.setState({loaded:!0}):(this._eventHandler=e=>{var n;(null===(n=e.detail)||void 0===n?void 0:n.iconName)===t&&this._isMounted&&(this.setState({loaded:!0}),this.removeEventListener())},"undefined"!=typeof window&&window.addEventListener("icon-loaded",this._eventHandler),(e=>{const t=m[e];t.component?Promise.resolve():(t.loading&&t.promise||(-1===v.indexOf(e)&&(v.push(e),setTimeout(b,0)),t.promise||(t.promise=new Promise(t=>{const n=r=>{var o;(null===(o=r.detail)||void 0===o?void 0:o.iconName)===e&&("undefined"!=typeof window&&window.removeEventListener("icon-loaded",n),t())};"undefined"!=typeof window&&window.addEventListener("icon-loaded",n)}))),t.promise)})(t))}render(){var e;const{iconName:t,width:n,height:r}=this.props,{loaded:a}=this.state;if(!a)return o.a.createElement(y,{width:n,height:r});const i=null===(e=m[t])||void 0===e?void 0:e.component;return i?o.a.createElement(i,{iconName:t,width:n,height:r}):o.a.createElement(y,{width:n,height:r})}}var C=E,B=n(19),w={insert:"head",singleton:!1},k=(s()(B.a,w),B.a.locals,n(6)),P=n.n(k),x=n(20);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}var F=e=>class extends o.a.Component{constructor(e){super(e),S(this,"cleanup",void 0),S(this,"handleKeyDown",e=>{const{onBackPressed:t,onLeftPressed:n}=this.props;this.props.remoteControlActive&&(10009!==e.keyCode&&"b"!==e.key||!t||t(e),"ArrowLeft"!==e.key&&37!==e.keyCode||!n||n(e))}),this.state={active:e.remoteControlActive||!1}}componentDidUpdate(e){e.remoteControlActive&&!this.props.remoteControlActive?window.removeEventListener("keydown",this.handleKeyDown):!e.remoteControlActive&&this.props.remoteControlActive&&window.addEventListener("keydown",this.handleKeyDown)}componentDidMount(){window.addEventListener("keydown",this.handleKeyDown),this.cleanup=()=>{window.removeEventListener("keydown",this.handleKeyDown)}}componentWillUnmount(){this.cleanup&&this.cleanup()}render(){const{...t}=this.props;return o.a.createElement(e,t)}};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}class j extends o.a.Component{render(){const{iconName:e,active:t,children:n,focused:r,buttonRef:a}=this.props;return o.a.createElement("div",{className:["panel-nav-button-container","T02",t?"panel-nav-button-active":""].join(" "),"data-focused":r,ref:a},o.a.createElement(p,null,o.a.createElement(C,{iconName:e,height:36,width:36})),n)}}N(j,"displayName","PanelNavButton"),N(j,"propTypes",{iconName:P.a.string.isRequired,index:P.a.number.isRequired,active:P.a.bool.isRequired,children:P.a.node,focused:P.a.bool,onBecameFocused:P.a.func,buttonRef:P.a.oneOfType([P.a.func,P.a.object])});var K=F(Object(x.a)()(j)),T=n(18),D={insert:"head",singleton:!1},M=(s()(T.a,D),T.a.locals,n(5)),I=n(8);var L=e=>{const t=I.default.getMaestroEventViewModel();e.dataset.focused="false",Object(M.c)(),t.delegate.startFocusManagement()};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}class O extends o.a.Component{constructor(...e){super(...e),H(this,"buttonElement",null),H(this,"state",{itemFocused:null}),H(this,"setButtonRef",e=>{this.buttonElement=e}),H(this,"handleLeftPressed",()=>{this.buttonElement&&L(this.buttonElement)}),H(this,"handleBecameFocused",(e,t)=>()=>{this.setState({itemFocused:e},t)}),H(this,"handleBecameBlurred",()=>{this.setState({itemFocused:null})})}render(){const{item:e,index:t}=this.props;return o.a.createElement(K,{iconName:e.iconName,key:e.title,index:t,onBecameFocused:this.handleBecameFocused(t,e.onEnter),onBecameBlurred:this.handleBecameBlurred,active:e.active,focusKey:"PANEL_NAV_BUTTON_"+t,remoteControlActive:0===this.state.itemFocused,onLeftPressed:this.handleLeftPressed,buttonRef:this.setButtonRef},e.title)}}class U extends o.a.Component{render(){return o.a.createElement("div",{className:"panel-navigation"},this.props.items.map((e,t)=>o.a.createElement(O,{key:e.title,item:e,index:t})))}}var R=U;function X(){return(X=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 Q extends o.a.Component{constructor(e){super(e)}render(){return o.a.createElement("img",X({alt:this.props.alt||"Image"},this.props))}}var z=Q;var q=n(15),W={insert:"head",singleton:!1},V=(s()(q.a,W),q.a.locals,C);class Y extends o.a.Component{render(){const{awayTeamScore:e,homeTeamScore:t,homeTeamName:n,awayTeamName:r}=this.props;return o.a.createElement("div",{className:"score"},o.a.createElement("div",{className:"score-team T05_ALT"},n,o.a.createElement("span",{className:"T30"},t)),o.a.createElement("div",{className:"score-team T05_ALT"},o.a.createElement("span",{className:"T30"},e),r))}}function G(){return(G=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)}function J(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 _ extends o.a.Component{constructor(e){super(e),J(this,"failedClipListener",()=>{}),J(this,"ref",null),J(this,"vm",void 0),J(this,"state",{failedClip:null}),J(this,"renderImage",()=>{const{playerImageUrl:e,teamImageUrl:t,thumbnailImageUrl:n}=this.props;return e?o.a.createElement(z,{src:e,crossOrigin:"anonymous",alt:"Key Play Player Image",className:"cardImage"}):t?o.a.createElement(z,{src:t,crossOrigin:"anonymous",alt:"Key Play Team Image",className:"cardImage"}):n?o.a.createElement(z,{src:n,crossOrigin:"anonymous",alt:"Key Play Thumbnail Image",className:"cardImage"}):o.a.createElement(z,{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ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axsystyf9iW5Ia3hPXPki54OA6nkOwrnsWj+G9F0GIR6ZYQwNjDXBXzLuTPXzLmTdMQeuwMI1yQiKOKYjcoEFABQAUAFABQAUAFABQAUAFAGBrXhnRPEEZTU7GKWTbtS6QeVeRY+75dymJNqnny3Lwk/fjYcUDvY8c174R39v5k+gXa30Iyy2V2VhvFA6JHPhbadveQWnHHzHqrdh3PJr6wvtLuGtdQtLizuF5MVxE8bEdAy7gA6H+F0LI3VWIpev9f1/THdf1/X9eRS3f45/z/k0Bfy/r/gChv8AP4H/ABzRcPz/AK/rUN359/50XC+xX3e/+f0pBdCbvf05/wA9v8igD1zwN8N5dbji1bW/MttKfElrbITHc365BEjNjMFm4+66kTTqd0JjjKTPSXcTf9bn0Np+m2GlW62unWcFnboABHBGqAkcbnYfNI56tJIzOxJLMSSaYi9QIKACgAoAKACgAoAKACgAoAKACgAoAKACgChqGmafqtu1rqVnb3tuwP7ueNX2kjG+Nj88UgH3ZImSRTyrAjNAHzt46+HM2gpJqujmW60kZa4hfL3GnA8b2Ycz2vYykeZCP9duXM1S12KTPKN3+f8APP8An3oGJu9/8/596Xy/r8A/r+kQbvf/ADxRcNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==",crossOrigin:"anonymous",alt:"Key Play Thumbnail Image",className:"cardImage"})}),this.vm=I.default.getMaestroEventViewModel().keyPlaysViewModel}componentDidMount(){this.failedClipListener=this.vm.failedClips.subscribe(e=>{this.setState({failedClip:e[this.props.clipID]})}),this.props.setRef(this.ref)}componentWillUnmount(){this.failedClipListener&&this.failedClipListener()}render(){const{clipID:e,description:t,isPlaying:n,playbackProgress:r,isScoring:a,focused:i,awayTeamScore:s,homeTeamScore:l,homeTeamName:c,awayTeamName:u}=this.props,{failedClip:d}=this.state;return o.a.createElement("div",{className:"key-play-card",id:e,"data-focused":i,ref:e=>this.ref=e},o.a.createElement("div",{className:"key-play-card-content"},this.renderImage(),o.a.createElement("div",{className:"text-content T05_ALT"},o.a.createElement("div",{className:"multi-line"},t))),n&&null!==r&&o.a.createElement("progress",{value:r,max:"1"}),a&&o.a.createElement(Y,{awayTeamScore:s,homeTeamScore:l,homeTeamName:c,awayTeamName:u}),"recentFailure"===d&&o.a.createElement("div",{className:"error-state"},o.a.createElement(V,{iconName:"warning",width:21.6,height:18.7}),o.a.createElement("span",{className:"T05_ALT"},"Could not play this clip. ")),"nonRecentFailure"===d&&o.a.createElement("div",{className:"non-recent-error-state"},o.a.createElement(V,{iconName:"warning",width:21.6,height:18.7})))}}const Z=F(_);class $ extends o.a.Component{constructor(...e){super(...e),J(this,"ref",null),J(this,"setRef",e=>{this.ref=e,this.props.setRef(e)}),J(this,"handleLeftPressed",()=>{this.ref&&L(this.ref)})}render(){return o.a.createElement(Z,G({},this.props,{setRef:this.setRef,remoteControlActive:this.props.focused,onLeftPressed:this.handleLeftPressed}))}}var ee=Object(x.a)()($),te=n(14),ne={insert:"head",singleton:!1};s()(te.a,ne),te.a.locals;class re extends o.a.Component{constructor(e){super(e)}render(){const e=["scrollable-gradient",this.props.scrolled?"scroll-container-scrolled":""].join(" ");return o.a.createElement("div",{className:e},this.props.children)}}var oe=re,ae=n(13),ie={insert:"head",singleton:!1},se=(s()(ae.a,ie),ae.a.locals,p),le=n(17),ce={insert:"head",singleton:!1};s()(le.a,ce),le.a.locals;function ue(){return(ue=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 de extends o.a.Component{render(){return o.a.createElement(se,ue({className:"action-button T05_ALT"},this.props),this.props.children)}}var Ae=Object(x.a)()(de),pe=n(16),he={insert:"head",singleton:!1};s()(pe.a,he),pe.a.locals;class me extends o.a.Component{render(){return o.a.createElement("div",{className:"sdk--key-play-error-state-unpopulatedEvent"},o.a.createElement("div",{className:"main-content"},o.a.createElement("h3",{className:"T70"},"Greatness takes time."),o.a.createElement("p",{className:"T20"},"Key plays are still in the making! Come back soon to check 'em out.")),o.a.createElement("div",{className:"unpopulatedEvent-examples"},Array.from({length:4}).map((e,t)=>o.a.createElement("div",{key:t,className:"example"}))))}}class fe extends o.a.Component{render(){return o.a.createElement("div",{className:"sdk--key-play-error-state-unsupportedEvent"},o.a.createElement("h3",{className:"T70"},"No Key Plays Available"),o.a.createElement("svg",{viewBox:"0 0 520 359",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("g",{opacity:"0.16"},o.a.createElement("path",{d:"M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z",fill:"#6D6D6D"}),o.a.createElement("rect",{x:"94.6687",y:"219.427",width:"51.6662",height:"25.259",fill:"#777777"}),o.a.createElement("rect",{x:"145.187",y:"39.1694",width:"20.6665",height:"149.258",fill:"#666666"}),o.a.createElement("path",{d:"M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z",fill:"#666666"}),o.a.createElement("path",{d:"M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z",fill:"#6D6D6D"}),o.a.createElement("rect",{width:"51.6662",height:"25.259",transform:"matrix(-1 0 0 1 427.055 219.427)",fill:"#777777"}),o.a.createElement("rect",{width:"20.6665",height:"149.258",transform:"matrix(-1 0 0 1 376.537 39.1694)",fill:"#666666"}),o.a.createElement("path",{d:"M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z",fill:"#666666"}),o.a.createElement("path",{d:"M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z",fill:"#B1B1B1"}),o.a.createElement("rect",{x:"23.4844",y:"141.354",width:"473.033",height:"19.5183",fill:"#777777"}),o.a.createElement("rect",{x:"72.8545",y:"51.7993",width:"374.293",height:"45.9255",fill:"#CDCDCD"}))))}}class ye extends o.a.Component{render(){const{focused:e}=this.props;return o.a.createElement("div",{className:"sdk--key-play-error-state-tabLoadFailure",style:{borderColor:e?"var(--sdk-highlightPrimary)":"transparent"}},o.a.createElement("h3",{className:"T70"},"Let's try that again..."),o.a.createElement("p",{className:"T20"},"We're having trouble loading this."),o.a.createElement(Ae,{"data-focused":e,onEnterPress:this.props.onEnterPress},"Refresh"))}}const ve=Object(x.a)()(ye);class ge extends o.a.Component{render(){const{errorState:e,onRetry:t}=this.props;return"unsupportedEvent"===e?o.a.createElement(fe,null):"unpopulatedEvent"===e?o.a.createElement(me,null):"tabLoadFailure"===e?o.a.createElement(ve,{onEnterPress:t}):null}}var be=ge;function Ee(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 Ce extends r.Component{constructor(e){var t,n;super(e),Ee(this,"container",null),Ee(this,"refsMap",{}),Ee(this,"playbackProgressUnsub",null),Ee(this,"playbackIndexUnsub",null),Ee(this,"itemsUnsub",null),Ee(this,"vm",void 0),Ee(this,"handlePlayClip",e=>async()=>{await this.vm.playKeyPlay(e)}),Ee(this,"handleItemFocus",e=>t=>{if(!this.container||!t.node)return;const n=this.container.getBoundingClientRect(),r=t.node.getBoundingClientRect(),o=Object.keys(this.refsMap).map(e=>parseInt(e,10)).sort((e,t)=>e-t).slice(e);let a=!1;if(o.forEach(e=>{const t=this.refsMap[e];if(!t)return;const r=t.getBoundingClientRect();(r.bottom>n.bottom||r.top<n.top)&&(a=!0)}),!a)return;const i=0===e?0:this.container.scrollTop+(r.top-n.top-32);this.container.scrollTop=i,this.setState({scrolled:i>0})}),Ee(this,"setRef",e=>t=>{t?this.refsMap[e]=t:delete this.refsMap[e]}),this.vm=I.default.getMaestroEventViewModel().keyPlaysViewModel;const r=this.vm.items.value;this.state={scrolled:!1,playbackProgress:null!==(t=this.vm.currentClipPlaybackProgress.value)&&void 0!==t?t:null,playbackIndex:null!==(n=this.vm.currentlyPlayingClipIndex.value)&&void 0!==n?n:null,items:r.map(e=>({title:e.title,items:e.items.map(e=>({id:e.id,clipID:e.clipID,awayTeamScore:e.awayTeamScore,homeTeamScore:e.homeTeamScore,awayTeamName:e.awayTeamName,homeTeamName:e.homeTeamName,description:e.description,playerImageUrl:e.playerImageUrl||"",teamImageUrl:e.teamImageUrl||"",thumbnailImageUrl:e.thumbnailImageUrl||""}))}))}}componentDidMount(){this.playbackProgressUnsub=this.vm.currentClipPlaybackProgress.subscribe(e=>{this.setState({playbackProgress:null!=e?e:null})}),this.playbackIndexUnsub=this.vm.currentlyPlayingClipIndex.subscribe(e=>{this.setState({playbackIndex:null!=e?e:null})}),this.itemsUnsub=this.vm.items.subscribe(e=>{this.setState({items:e.map(e=>({title:e.title,items:e.items.map(e=>({id:e.id,clipID:e.clipID,awayTeamScore:e.awayTeamScore,homeTeamScore:e.homeTeamScore,awayTeamName:e.awayTeamName,homeTeamName:e.homeTeamName,description:e.description,playerImageUrl:e.playerImageUrl||"",teamImageUrl:e.teamImageUrl||"",thumbnailImageUrl:e.thumbnailImageUrl||""}))}))})})}componentWillUnmount(){this.playbackProgressUnsub&&this.playbackProgressUnsub(),this.playbackIndexUnsub&&this.playbackIndexUnsub(),this.itemsUnsub&&this.itemsUnsub()}render(){const{scrolled:e,playbackProgress:t,playbackIndex:n,items:r}=this.state;return o.a.createElement(oe,{scrolled:e},o.a.createElement("div",{ref:e=>{this.container=e},className:"key-plays-view"},r.map((e,r)=>o.a.createElement("div",{key:"section-"+r,className:"key-plays-section"},o.a.createElement("h3",{className:"key-plays-section-title T10"},e.title),o.a.createElement("div",{className:"key-plays-section-items"},e.items.map(e=>{const r=this.vm.allItems.findIndex(t=>t.id===e.id);return o.a.createElement(ee,{key:e.id,id:e.id,clipID:e.clipID,description:e.description,awayTeamName:e.awayTeamName,homeTeamName:e.homeTeamName,awayTeamScore:e.awayTeamScore,homeTeamScore:e.homeTeamScore,playerImageUrl:e.playerImageUrl,teamImageUrl:e.teamImageUrl,thumbnailImageUrl:e.thumbnailImageUrl,isPlaying:this.vm.isCurrentlyPlaying(r),isScoring:Boolean(e.awayTeamScore&&e.homeTeamScore),playbackProgress:r===n?t:null,onEnterPress:this.handlePlayClip(r),onBecameFocused:this.handleItemFocus(r),setRef:this.setRef(r)})})))),o.a.createElement("div",{className:"key-plays-bottom-padding"})))}}class Be extends r.Component{constructor(e){super(e),Ee(this,"errorStateUnsub",null),Ee(this,"vm",void 0),Ee(this,"handleRetry",async()=>{await this.vm.userRequestedNewKeyPlaysData(),Object(M.e)("PANEL_NAV_BUTTON_0")}),this.vm=I.default.getMaestroEventViewModel().keyPlaysViewModel,this.state={errorState:this.vm.errorState.value}}componentDidMount(){this.errorStateUnsub=this.vm.errorState.subscribe(e=>{this.setState({errorState:e})})}componentWillUnmount(){this.errorStateUnsub&&this.errorStateUnsub()}render(){const{errorState:e}=this.state;return e?o.a.createElement(be,{errorState:e,onRetry:this.handleRetry}):o.a.createElement(Ce,null)}}function we(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 ke=new a.a,Pe={keyPlays:o.a.createElement(Be,null),bets:o.a.createElement("div",{className:"panel-coming-soon T02"},"Bets - Coming Soon"),stats:o.a.createElement("div",{className:"panel-coming-soon T02"},"Stats - Coming Soon"),fantasy:o.a.createElement("div",{className:"panel-coming-soon T02"},"Fantasy - Coming Soon")};class xe extends o.a.Component{constructor(e){super(e),we(this,"unsubscribe",null),this.state={activePanel:ke.currentPanel}}componentDidMount(){this.unsubscribe=ke.currentPanelObservable.subscribe(()=>{this.setState({activePanel:ke.currentPanel})})}componentWillUnmount(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}render(){const{activePanel:e}=this.state,t=[{iconName:"keyPlays",onEnter:()=>{ke.currentPanel="keyPlays"},title:"KEY PLAYS",active:"keyPlays"===e},{iconName:"bets",onEnter:()=>{ke.currentPanel="bets"},title:"BETS",active:"bets"===e},{iconName:"stats",onEnter:()=>{ke.currentPanel="stats"},title:"STATS",active:"stats"===e},{iconName:"fantasy",onEnter:()=>{ke.currentPanel="fantasy"},title:"FANTASY",active:"fantasy"===e}];return o.a.createElement("div",{className:"sdk--panel-manager"},o.a.createElement(R,{items:t}),o.a.createElement("div",{className:"sdk--panel-wrapper"},Pe[e]))}}var Se=xe;t.default=Se},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r);const a={_id:"6274067af74b66a544018dac",button:{borderRadius:"rounded",textCapitalization:"uppercase"},colors:{accentPrimary:"#FFFFFF",accentSecondary:"#3C3F47",accentTertiary:"#0C0C0E",surface1:"#080A0C",surface2:"#12141A",surface3:"#1B1E26",surface4:"#242833",surface5:"#363C4D",surface6:"#3E4759",highlightPrimary:"#FFFFFF",highlightSecondary:"#9A9EA9",highlightTertiary:"#0A0C0F",alertConfirmation:"#43D48F",alertWarning:"#F58B00",alertError:"#FF0000",text100:"#F8F9FA",text200:"#C2C5CB",text300:"#8D919D",text400:"#5C606B",text500:"#0C0C0E"},creator:"016901e60000000000000000",name:"Dark Mode",type:"classic",mode:"dark",owner:"016901e60000000000000000",typography:{body:"BentonSans-Medium",headline:"BentonSans-Medium"}};var i=n(2),s=n.n(i),l=n(11),c={insert:"head",singleton:!1};s()(l.a,c),l.a.locals;const u=a.colors,d=a.typography;class A extends o.a.Component{componentDidMount(){Object.keys(u).forEach(e=>{document.documentElement.style.setProperty("--sdk-"+e,u[e])}),Object.keys(d).forEach(e=>{document.documentElement.style.setProperty("--sdk-font-"+e,d[e])})}componentWillUnmount(){Object.keys(u).forEach(e=>{document.documentElement.style.removeProperty("--sdk-"+e)}),Object.keys(d).forEach(e=>{document.documentElement.style.removeProperty("--sdk-font-"+e)})}render(){return o.a.createElement("div",{className:"sdk-wrapper"},this.props.children)}}var p=A;t.default=p}])}));
2
+ //# sourceMappingURL=maestro-web-sdk.umd.js.map