@streamlayer/web-os 0.4.2 → 0.4.3

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("./index2.js"),u=require("react");require("nanostores");require("@noriginmedia/norigin-spatial-navigation");require("react-countdown-circle-timer");const S=require("react-dom");require("react-countup");require("lodash.throttle");const X=require("react-infinite-scroller"),Y=e.fileDesc("CjZzdHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbnMvaW52aXRhdGlvbnMucHJvdG8SJHN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucyLhAgoXVG90YWxJbnZpdGF0aW9uc1JlcXVlc3QSYAoGZmlsdGVyGAEgASgLMlAuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLlRvdGFsSW52aXRhdGlvbnNSZXF1ZXN0LlRvdGFsUmVxdWVzdEZpbHRlchrjAQoSVG90YWxSZXF1ZXN0RmlsdGVyEjcKBnBlcmlvZBgBIAEoCzInLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uUGVyaW9kEhEKCWV2ZW50X2lkcxgCIAMoBBJMCgpjYXRlZ29yaWVzGAMgAygOMjguc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLkludml0YXRpb25DYXRlZ29yeRIzCgRraW5kGAQgASgOMiUuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5LaW5kIrABChhUb3RhbEludml0YXRpb25zUmVzcG9uc2USXgoEZGF0YRgBIAMoCzJQLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucy5Ub3RhbEludml0YXRpb25zUmVzcG9uc2UuVG90YWxSZXNwb25zZURhdGEaNAoRVG90YWxSZXNwb25zZURhdGESEAoIZXZlbnRfaWQYASABKAQSDQoFY291bnQYAiABKAQiqQIKJVRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlcXVlc3QScQoGZmlsdGVyGAEgASgLMmEuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLlRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlcXVlc3QuVG90YWxCeVRpbWVMaW5lRmlsdGVyGowBChVUb3RhbEJ5VGltZUxpbmVGaWx0ZXISNwoGcGVyaW9kGAEgASgLMicuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5QZXJpb2QSEAoIZXZlbnRfaWQYAiABKAQSEQoJZXZlbnRfaWRzGAMgAygEEhUKDXN1bW1hcnlfY291bnQYBCABKAgikgIKJlRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlc3BvbnNlEhAKCGV2ZW50X2lkGAEgASgEEm4KBGRhdGEYAiADKAsyYC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuaW52aXRhdGlvbnMuVG90YWxJbnZpdGF0aW9uc1NlbnRCeVRpbWVsaW5lUmVzcG9uc2UuVG90YWxCeVRpbWVMaW5lRGF0YRIRCglldmVudF9pZHMYAyADKAQaUwoTVG90YWxCeVRpbWVMaW5lRGF0YRItCgl0aW1lX2xpbmUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg0KBWNvdW50GAIgASgEIrECCilUb3RhbEludml0YXRpb25zQWNjZXB0ZWRCeVRpbWVsaW5lUmVxdWVzdBJ1CgZmaWx0ZXIYASABKAsyZS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuaW52aXRhdGlvbnMuVG90YWxJbnZpdGF0aW9uc0FjY2VwdGVkQnlUaW1lbGluZVJlcXVlc3QuVG90YWxCeVRpbWVMaW5lRmlsdGVyGowBChVUb3RhbEJ5VGltZUxpbmVGaWx0ZXISNwoGcGVyaW9kGAEgASgLMicuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5QZXJpb2QSEAoIZXZlbnRfaWQYAiABKAQSEQoJZXZlbnRfaWRzGAMgAygEEhUKDXN1bW1hcnlfY291bnQYBCABKAgimgIKKlRvdGFsSW52aXRhdGlvbnNBY2NlcHRlZEJ5VGltZWxpbmVSZXNwb25zZRIQCghldmVudF9pZBgBIAEoBBIRCglldmVudF9pZHMYAyADKAQScgoEZGF0YRgCIAMoCzJkLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucy5Ub3RhbEludml0YXRpb25zQWNjZXB0ZWRCeVRpbWVsaW5lUmVzcG9uc2UuVG90YWxCeVRpbWVMaW5lRGF0YRpTChNUb3RhbEJ5VGltZUxpbmVEYXRhEi0KCXRpbWVfbGluZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDQoFY291bnQYAiABKAQi7gUKFlNlbmRJbnZpdGF0aW9uc1JlcXVlc3QSXAoEZGF0YRgBIAMoCzJOLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucy5TZW5kSW52aXRhdGlvbnNSZXF1ZXN0LkNyZWF0ZVJlcXVlc3REYXRhGvUEChFDcmVhdGVSZXF1ZXN0RGF0YRIQCghldmVudF9pZBgBIAEoBBIPCgd1c2VyX2lkGAIgASgEEkoKCGNhdGVnb3J5GAMgASgOMjguc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLkludml0YXRpb25DYXRlZ29yeRIzCgRraW5kGAQgASgOMiUuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5LaW5kEjMKD3RyYWNrX3RpbWVzdGFtcBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEQoJcm91dGVfbWFwGAYgASgJEhEKCWRldmljZV9pZBgHIAEoCRIKCgJvcxgIIAEoCRISCgp1c2VyX2FnZW50GAkgASgJEhYKDnNsX3Nka192ZXJzaW9uGAogASgJEhIKCnNlc3Npb25faWQYCyABKAkSGgoSb3ZlcmxheV9zZXNzaW9uX2lkGAwgASgJEhAKCHRvcGljX2lkGA0gASgJEhMKC3VzZXJfaWRfc3RyGA4gASgJEk4KEnNjcmVlbl9vcmllbnRhdGlvbhgPIAEoDjIyLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uU2NyZWVuT3JpZW50YXRpb24SPgoKdG9waWNfdHlwZRgQIAEoDjIqLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uVG9waWNUeXBlEkIKBGZyb20YESABKA4yNC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuaW52aXRhdGlvbnMuSW52aXRhdGlvbkZyb20izgEKF1NlbmRJbnZpdGF0aW9uc1Jlc3BvbnNlEl4KBGRhdGEYASABKAsyUC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuaW52aXRhdGlvbnMuU2VuZEludml0YXRpb25zUmVzcG9uc2UuQ3JlYXRlUmVzcG9uc2VEYXRhGlMKEkNyZWF0ZVJlc3BvbnNlRGF0YRI9CgZyZXN1bHQYASABKA4yLS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuY29tbW9uLlJlc3VsdFN0YXR1cyq4AQoSSW52aXRhdGlvbkNhdGVnb3J5Eh0KGUlOVklUQVRJT05fQ0FURUdPUllfVU5TRVQQABIgChxJTlZJVEFUSU9OX0NBVEVHT1JZX1dBVENISU5HEAESIQodSU5WSVRBVElPTl9DQVRFR09SWV9NRVNTQUdJTkcQAhIfChtJTlZJVEFUSU9OX0NBVEVHT1JZX1ZPSUNJTkcQAxIdChlJTlZJVEFUSU9OX0NBVEVHT1JZX0dBTUVTEAQqZQoOSW52aXRhdGlvbkZyb20SGQoVSU5WSVRBVElPTl9GUk9NX1VOU0VUEAASHgoaSU5WSVRBVElPTl9GUk9NX1RJVExFX0NBUkQQARIYChRJTlZJVEFUSU9OX0ZST01fTUVOVRACQrYBCihjb20uc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLmludml0YXRpb25zLnYxQhtTdHJlYW1MYXllckludml0YXRpb25zUHJvdG9QAVpiZ2l0aHViLmNvbS9zdHJlYW1sYXllci9zbC1wcm90b2ZpbGVzLy5idWlsZC9nby9zdHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbnM7c2xfaW52aXRhdGlvbnOiAgZTTF9BUEliBnByb3RvMw",[e.file_streamlayer_analytics_v1_common_analytics_common,e.file_google_protobuf_timestamp]),E=e.enumDesc(Y,1),f=e.tsEnum(E),N=(l,t,a)=>{const d=t>=e.A.lg&&t<e.A.xl?75:52;l.current&&window.scrollTo({top:l.current.offsetTop-d,...a})},F=e.styled_default("div")({name:"Container",class:"c1zy8a",propsAsIs:!1}),k=e.styled_default("div")({name:"Title",class:"t1vih9p5",propsAsIs:!1}),U=e.styled_default("div")({name:"Indicator",class:"i1fbnvpb",propsAsIs:!1}),I=({indicator:l,title:t})=>s.jsxs(F,{children:[s.jsx(k,{children:t}),s.jsx(U,{children:l})]}),_=e.styled_default("div")({name:"Container",class:"ctmhwyc",propsAsIs:!1}),L=e.styled_default("div")({name:"Indicator",class:"i1jri200",propsAsIs:!1}),B=e.styled_default("div")({name:"Title",class:"t8s05oq",propsAsIs:!1}),A=({indicator:l,title:t})=>s.jsxs(_,{children:[s.jsx(L,{children:l}),s.jsx(B,{children:t})]}),J=e.styled_default("div")({name:"Container",class:"c1yrpn9o",propsAsIs:!1}),$=e.styled_default("div")({name:"TopInfo",class:"t17fwahh",propsAsIs:!1}),Q=e.styled_default("div")({name:"BottomInfo",class:"by6w7e9",propsAsIs:!1}),M=e.styled_default("div")({name:"User",class:"u1g7arbm",propsAsIs:!1}),z=e.styled_default("img")({name:"Avatar",class:"a1ldeata",propsAsIs:!1}),w=e.styled_default("div")({name:"UserInfo",class:"u10d4koz",propsAsIs:!1}),T=e.styled_default("div")({name:"UserName",class:"u1q6roj0",propsAsIs:!1}),H=e.styled_default("div")({name:"UserRating",class:"ui0m425",propsAsIs:!1}),K=e.styled_default("img")({name:"TrophyIcon",class:"t1el3mrn",propsAsIs:!1}),q=e.styled_default("div")({name:"RtsContainer",class:"r2vgnxv",propsAsIs:!1}),D=e.styled_default("div")({name:"RtsDivider",class:"roqn06j",propsAsIs:!1}),O=e.styled_default("div")({name:"Rts",class:"r15adx7c",propsAsIs:!1}),R=e.styled_default("div")({name:"RtsIndicator",class:"rv59lta",propsAsIs:!1}),g=e.styled_default("div")({name:"RtsLabel",class:"r55lotb",propsAsIs:!1}),P=e.styled_default("div")({name:"Divider",class:"d1knfgqt",propsAsIs:!1}),ss=e.styled_default("div")({name:"Ranks",class:"r1mqo824",propsAsIs:!1}),es=e.styled_default("div")({name:"Statistics",class:"sxareh6",propsAsIs:!1}),ls=e.styled_default("div")({name:"AvatarPlaceholder",class:"amcu48h",propsAsIs:!1}),ts=e.styled_default("button")({name:"UserAccountBtn",class:"u32nfkp",propsAsIs:!1}),as="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e",ns=({loading:l,hideFriendsRank:t,avatar:a,name:d,points:n,friendsRank:i,rank:c,streak:o,correct:r,incorrect:p,inTop:m,successRate:x})=>s.jsxs(J,{"data-loading":l,children:[s.jsx($,{children:s.jsx(e.i,{loading:l,children:s.jsxs(M,{children:[s.jsxs(ts,{children:[a&&s.jsx(z,{alt:"avatar",src:a}),!a&&s.jsx(ls,{children:e.I(d||"")})]}),s.jsxs(w,{children:[s.jsx(T,{children:d}),s.jsxs(H,{children:[s.jsxs(q,{children:[s.jsxs(O,{children:[s.jsx(K,{alt:"rank-icon",src:as}),s.jsxs(R,{children:[e.s(n),s.jsx(g,{children:"PTS"})]})]}),t&&s.jsxs(R,{children:[s.jsx(D,{}),c||0,s.jsx(g,{children:"global rank"})]})]}),!t&&s.jsxs(s.Fragment,{children:[s.jsx(P,{}),s.jsxs("div",{children:["TOP ",m||0,"%"]})]})]})]})]})})}),s.jsxs(Q,{children:[!t&&s.jsxs(ss,{children:[s.jsx(e.i,{loading:l,style:{width:"100%"},children:s.jsx(I,{indicator:i||0,title:"Friends rank"})}),s.jsx(e.i,{loading:l,style:{width:"100%"},children:s.jsx(I,{indicator:c||0,title:"Global rank"})})]}),s.jsx(e.i,{loading:l,children:s.jsxs(es,{children:[s.jsx(A,{indicator:o||0,title:"Win streak"}),s.jsx(A,{indicator:r||0,title:"Correct"}),s.jsx(A,{indicator:p||0,title:"Incorrect"}),s.jsx(A,{indicator:`${x||0}%`,title:"Succ. rate"})]})})]})]}),ds=e.styled_default("div")({name:"Container",class:"c115qtkr",propsAsIs:!1}),is=e.styled_default("div")({name:"STabs",class:"sxnslc8",propsAsIs:!1}),rs=e.styled_default("button")({name:"Button",class:"b1umzux0",propsAsIs:!1}),cs=e.styled_default("span")({name:"Title",class:"tspsaas",propsAsIs:!1});var h=(l=>(l.HOME="home",l.LEADERBOARD="leaderboard",l))(h||{});const V=({title:l,active:t,onClick:a})=>s.jsx(rs,{"data-a":"intr",onClick:a,"data-selected":t,children:s.jsx(cs,{"data-a":"intr",children:l})}),os=({activePage:l="home",toggleActivePage:t})=>s.jsx(ds,{children:s.jsxs(is,{"data-position":l==="home"?"left":"right",children:[s.jsx(V,{title:"Home",active:l==="home",onClick:()=>t("home")}),s.jsx(V,{title:"Friends",active:l==="leaderboard",onClick:()=>t("leaderboard")})]})}),us=e.styled_default("button")({name:"Container",class:"cpjnajb",propsAsIs:!1}),ps=e.styled_default("div")({name:"Content",class:"c4m6kaz",propsAsIs:!1}),ms=e.styled_default("span")({name:"Title",class:"t1h8t9cc",propsAsIs:!1}),bs=()=>s.jsx(us,{children:s.jsxs(ps,{children:[s.jsx(e.B1,{name:"iconCopySuccess"}),s.jsx(ms,{children:"Link Copied to Clipboard"})]})}),C=l=>{const t=u.useRef(),[a,d]=u.useState(null),n=u.useCallback(async i=>{var c;if(i&&(c=navigator==null?void 0:navigator.clipboard)!=null&&c.writeText){t.current&&(clearTimeout(t.current),d(null));try{await navigator.clipboard.writeText(i),l.current&&(d(S.createPortal(s.jsx(bs,{}),l.current)),t.current=setTimeout(()=>{d(null)},1e3))}catch(o){console.error("Unable to copy to clipboard",o)}}},[l]);return u.useEffect(()=>()=>{clearTimeout(t.current)},[]),[n,a]},hs=e.styled_default("div")({name:"Container",class:"c1ux29ft",propsAsIs:!1}),As=()=>e.B1,xs=e.styled_default(As())({name:"FriendsIcon",class:"f10ncfg2",propsAsIs:!0}),vs=e.styled_default("div")({name:"Content",class:"c1yc07bd",propsAsIs:!1}),ys=e.styled_default("div")({name:"Title",class:"tj6cq7w",propsAsIs:!1}),Ws=e.styled_default("div")({name:"Description",class:"d1ag78xo",propsAsIs:!1}),Is=()=>e.B1,Rs=e.styled_default(Is())({name:"ArrowInviteIcon",class:"awohrz6",propsAsIs:!0}),gs=({title:l,description:t,onClick:a,className:d})=>{const[n]=e.f({type:"invitation",action:"sent",payload:{from:f.TITLE_CARD}});return s.jsxs(hs,{"data-a":"intr",onClick:n(a),className:d,children:[s.jsx(xs,{name:"icon-friends"}),s.jsxs(vs,{children:[s.jsx(ys,{children:l}),s.jsx(Ws,{children:t})]}),s.jsx(Rs,{name:"icon-copy"})]})},Vs=e.styled_default("div")({name:"Container",class:"culdu4a",propsAsIs:!1}),js=e.styled_default("div")({name:"Position",class:"pwf8e69",propsAsIs:!1}),fs=e.styled_default("img")({name:"Avatar",class:"atf4yh4",propsAsIs:!1}),Cs=e.styled_default("div")({name:"AvatarPlaceholder",class:"a1dg29ja",propsAsIs:!1}),Gs=e.styled_default("div")({name:"Content",class:"c10a68rc",propsAsIs:!1}),Zs=e.styled_default("div")({name:"NameContainer",class:"nc4kck5",propsAsIs:!1}),Ss=e.styled_default("span")({name:"Name",class:"njsrqgr",propsAsIs:!1}),Xs=()=>e.B1,Ys=e.styled_default(Xs())({name:"CurrentUserBadge",class:"c17uc4zr",propsAsIs:!0}),Es=({friendsRank:l,avatar:t,name:a,userId:d,points:n,isCurrentUser:i,style:c})=>s.jsxs(Vs,{"data-name":d,style:c,children:[s.jsx(js,{children:l||0}),s.jsxs(Gs,{children:[t?s.jsx(fs,{alt:"leaderboard-item-avatar",src:t}):s.jsx(Cs,{children:e.I(a||"")}),s.jsxs(Zs,{children:[s.jsx(Ss,{children:a||""}),i&&s.jsx(Ys,{name:"icon-star"})]})]}),s.jsx("div",{children:e.s(n)})]}),Ns=e.styled_default("div")({name:"Container",class:"c16btbfp",propsAsIs:!1}),Fs=({items:l,currentUserId:t,openItemDetail:a,fetchMore:d,scrollNode:n,hasMore:i})=>{const c=u.useCallback(o=>{const r=o.target.getAttribute("data-name");r&&a(r)},[a]);return s.jsx(X,{loadMore:d,initialLoad:!1,hasMore:i,useWindow:!1,getScrollParent:()=>n.current,children:s.jsx(Ns,{"data-a":"intr",onClick:c,children:l.map(o=>s.jsx(Es,{...o,isCurrentUser:!!t&&t===o.userId},o.userId))})})},ks=e.styled_default("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),Us=e.styled_default("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),_s=()=>e.B1,Ls=e.styled_default(_s())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),Bs=e.styled_default("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),Js=e.styled_default("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),$s=e.styled_default("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),Qs=e.styled_default("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),Ms=e.styled_default("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),zs=e.styled_default("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),ws=e.styled_default("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),Ts=()=>e.B1,Hs=e.styled_default(Ts())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),Ks=({inviteLink:l,inviteCardTitle:t,inviteCardSubtext:a,primaryColor:d,className:n})=>{const i=u.useRef(null),[c,o]=C(i),[r]=e.f({type:"invitation",action:"sent",payload:{from:f.MENU}});return s.jsxs(ks,{className:n,children:[s.jsx(Us,{style:{backgroundColor:d},children:s.jsx(Ls,{name:"invite-game-icon"})}),s.jsxs(Bs,{children:[s.jsx(Js,{children:t||""}),s.jsx($s,{children:a||""})]}),l&&s.jsxs(Qs,{ref:i,"data-a":"intr",onClick:r(()=>c(l)),children:[s.jsxs(Ms,{children:[s.jsx(zs,{children:"Invite link"}),s.jsx(ws,{children:l})]}),s.jsx(Hs,{name:"icon-copy"})]}),o]})},qs=e.styled_default("div")({name:"InviteFriendsContainer",class:"i1c9dygq",propsAsIs:!1}),Ds=({deepLink:l})=>s.jsx(qs,{children:s.jsx(Ks,{inviteLink:l,inviteCardTitle:"It’s More Fun With Friends",inviteCardSubtext:"Invite and compete against your friends for the top spot on the leaderboard."})}),Os=e.styled_default("div")({name:"InviteLinkContainer",class:"i1odbhm4",propsAsIs:!1}),Ps=({gamification:l,scrollNode:t,scrollStore:a})=>{const d=u.useRef(null),{data:n,hasMore:i,loading:c,key:o}=e.useStore(l.leaderboardList.$store),{data:r}=e.useStore(l.deepLink.$store),[p,m]=C(d);return!n.length&&!c?s.jsx(Ds,{deepLink:r}):s.jsxs(s.Fragment,{children:[s.jsx(Fs,{items:n,scrollNode:t,scrollStore:a,fetchMore:l.leaderboardList.fetchMore,hasMore:i,openItemDetail:l.openUser,currentUserId:l.currentUserId.get()},o),r&&s.jsx(Os,{ref:d,children:s.jsx(gs,{"data-a":"intr",onClick:()=>p(r),title:"Invite Friends",description:"Challenge them now!"})}),m]})},se=()=>e.r,ee=e.styled_default(se())({name:"Container",class:"cll3md7",propsAsIs:!0}),le=()=>e.S,te=e.styled_default(le())({name:"ActionBtn",class:"a10g1iik",propsAsIs:!0}),ae=({questionId:l,...t})=>s.jsxs(ee,{"data-a":"intr","data-name":l,children:[s.jsx(e.O,{questionId:l,...t}),s.jsx(te,{"data-a":"intr","data-name":l,children:"View Insight"})]}),ne=()=>e.r,de=e.styled_default(ne())({name:"Container",class:"cl56x6b",propsAsIs:!0}),ie=e.styled_default("button")({name:"ActionButton",class:"a11pzf92",propsAsIs:!1}),re=e.styled_default("blockquote")({name:"Quote",class:"q1hbaleq",propsAsIs:!1}),ce=({...l})=>s.jsxs(de,{"data-a":"intr","data-name":l.tweetId,children:[l.title&&s.jsx(re,{children:l.title}),s.jsx(e.b,{...l}),s.jsx(ie,{"data-a":"intr","data-name":l.tweetId,children:"View Insight"})]}),j=e.styled_default("div")({name:"QuestionsContainer",class:"qvghv3l",propsAsIs:!1}),oe=({questions:l,openQuestion:t,controlVideo:a})=>{const d=n=>{const i=n.target.getAttribute("data-name");i&&(e.wt(),t(i,{openedFrom:"list"}))};return l?s.jsx(j,{"data-a":"intr",onClick:d,children:l==null?void 0:l.map(n=>{var i,c,o;if(n.type==="question"&&((i=n.attributes)==null?void 0:i.attributes.case)==="question"){const r=n.attributes.attributes.value;return s.jsx(e.R,{...r},r.questionId)}if(n.type==="insight"&&((c=n.attributes)==null?void 0:c.attributes.case)==="insight"){const r=n.attributes.attributes.value;return s.jsx(ae,{controlVideo:a,...r},r.questionId)}if(n.type==="tweet"&&((o=n.attributes)==null?void 0:o.attributes.case)==="tweet"){const r=n.attributes.attributes.value,p=n.attributes.id;return s.jsx(ce,{controlVideo:a,...r,tweetId:p},p)}return null})}):s.jsx(j,{children:Array.from({length:5}).map((n,i)=>s.jsx(e.D,{},i))})},ue=({store:l,openQuestion:t})=>{const{sdk:a}=e.p(),d=e.useStore(l);return s.jsx(oe,{openQuestion:t,questions:d.data,controlVideo:a==null?void 0:a.controlVideoPlayer})},pe=({userSummary:l})=>{var t;const[a,d]=u.useState(void 0);return u.useEffect(()=>{const n=l.$store.subscribe(i=>{i&&d(i)});return()=>{n()}},[l]),s.jsx(ns,{loading:!(a!=null&&a.summary),...a==null?void 0:a.summary,successRate:(t=a==null?void 0:a.percentage)==null?void 0:t.correct})},me=({gamification:l,className:t,scrollStore:a,scrollNode:d,appNode:n,style:i,responsiveStore:c})=>{const{tabsShown:o}=e.useStore(a,{keys:["tabsShown"]}),r=e.useStore(l.friendsTabEnabled),[p,m]=u.useState(h.HOME),[,x]=e.useTransition(),{sdkInDesktopView:y,screen:G}=e.useStore(c,{keys:["sdkInDesktopView"]}),Z=b=>{x(()=>{var W;m(b),y===!1&&(((W=n.current)==null?void 0:W.getBoundingClientRect().y)||0)<0&&N(n,G.size,{behavior:"instant"})})};u.useEffect(()=>a.subscribe(b=>{if(b.scrollPosition===0){a.setKey("tabsShown",!0);return}c.get().sdkInDesktopView?a.setKey("tabsShown",b.scrollDirection==="backward"):a.setKey("tabsShown",b.scrollDirection==="forward")}),[a,c]),u.useEffect(()=>{r||m(h.HOME)},[r]);let v="0px";return y?v=o?"0px":"calc(0px - var(--header-height))":v=o?"var(--header-height)":"0px",s.jsxs(e.l,{className:e.cx_default(t,"SL-Tabs","sl-hide-on-modal"),style:i,children:[r&&s.jsx(e.S$1,{style:{top:v},children:s.jsx(os,{activePage:p,toggleActivePage:Z})}),p===h.HOME&&s.jsxs(s.Fragment,{children:[s.jsx(e.m,{children:s.jsx(e.d,{children:s.jsx(pe,{userSummary:l.userSummary})})}),s.jsx(e.n,{style:{flex:1},children:s.jsx(ue,{openQuestion:l.openQuestion,store:l.feedList.getStore()})})]}),p===h.LEADERBOARD&&s.jsx(e.C,{children:s.jsx(Ps,{scrollStore:a,scrollNode:d,gamification:l})})]})},be=({gamification:l,scrollStore:t,className:a,appNode:d,scrollNode:n,responsiveStore:i})=>s.jsx(me,{appNode:d,scrollStore:t,scrollNode:n,className:a,gamification:l,responsiveStore:i});exports.default=be;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("./index2.js");require("@noriginmedia/norigin-spatial-navigation");const u=require("react");require("react-countdown-circle-timer");const S=require("react-dom");require("react-countup");require("nanostores");require("lodash.throttle");const X=require("react-infinite-scroller"),Y=e.fileDesc("CjZzdHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbnMvaW52aXRhdGlvbnMucHJvdG8SJHN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucyLhAgoXVG90YWxJbnZpdGF0aW9uc1JlcXVlc3QSYAoGZmlsdGVyGAEgASgLMlAuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLlRvdGFsSW52aXRhdGlvbnNSZXF1ZXN0LlRvdGFsUmVxdWVzdEZpbHRlchrjAQoSVG90YWxSZXF1ZXN0RmlsdGVyEjcKBnBlcmlvZBgBIAEoCzInLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uUGVyaW9kEhEKCWV2ZW50X2lkcxgCIAMoBBJMCgpjYXRlZ29yaWVzGAMgAygOMjguc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLkludml0YXRpb25DYXRlZ29yeRIzCgRraW5kGAQgASgOMiUuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5LaW5kIrABChhUb3RhbEludml0YXRpb25zUmVzcG9uc2USXgoEZGF0YRgBIAMoCzJQLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucy5Ub3RhbEludml0YXRpb25zUmVzcG9uc2UuVG90YWxSZXNwb25zZURhdGEaNAoRVG90YWxSZXNwb25zZURhdGESEAoIZXZlbnRfaWQYASABKAQSDQoFY291bnQYAiABKAQiqQIKJVRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlcXVlc3QScQoGZmlsdGVyGAEgASgLMmEuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLlRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlcXVlc3QuVG90YWxCeVRpbWVMaW5lRmlsdGVyGowBChVUb3RhbEJ5VGltZUxpbmVGaWx0ZXISNwoGcGVyaW9kGAEgASgLMicuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5QZXJpb2QSEAoIZXZlbnRfaWQYAiABKAQSEQoJZXZlbnRfaWRzGAMgAygEEhUKDXN1bW1hcnlfY291bnQYBCABKAgikgIKJlRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlc3BvbnNlEhAKCGV2ZW50X2lkGAEgASgEEm4KBGRhdGEYAiADKAsyYC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuaW52aXRhdGlvbnMuVG90YWxJbnZpdGF0aW9uc1NlbnRCeVRpbWVsaW5lUmVzcG9uc2UuVG90YWxCeVRpbWVMaW5lRGF0YRIRCglldmVudF9pZHMYAyADKAQaUwoTVG90YWxCeVRpbWVMaW5lRGF0YRItCgl0aW1lX2xpbmUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg0KBWNvdW50GAIgASgEIrECCilUb3RhbEludml0YXRpb25zQWNjZXB0ZWRCeVRpbWVsaW5lUmVxdWVzdBJ1CgZmaWx0ZXIYASABKAsyZS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuaW52aXRhdGlvbnMuVG90YWxJbnZpdGF0aW9uc0FjY2VwdGVkQnlUaW1lbGluZVJlcXVlc3QuVG90YWxCeVRpbWVMaW5lRmlsdGVyGowBChVUb3RhbEJ5VGltZUxpbmVGaWx0ZXISNwoGcGVyaW9kGAEgASgLMicuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5QZXJpb2QSEAoIZXZlbnRfaWQYAiABKAQSEQoJZXZlbnRfaWRzGAMgAygEEhUKDXN1bW1hcnlfY291bnQYBCABKAgimgIKKlRvdGFsSW52aXRhdGlvbnNBY2NlcHRlZEJ5VGltZWxpbmVSZXNwb25zZRIQCghldmVudF9pZBgBIAEoBBIRCglldmVudF9pZHMYAyADKAQScgoEZGF0YRgCIAMoCzJkLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucy5Ub3RhbEludml0YXRpb25zQWNjZXB0ZWRCeVRpbWVsaW5lUmVzcG9uc2UuVG90YWxCeVRpbWVMaW5lRGF0YRpTChNUb3RhbEJ5VGltZUxpbmVEYXRhEi0KCXRpbWVfbGluZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDQoFY291bnQYAiABKAQi7gUKFlNlbmRJbnZpdGF0aW9uc1JlcXVlc3QSXAoEZGF0YRgBIAMoCzJOLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucy5TZW5kSW52aXRhdGlvbnNSZXF1ZXN0LkNyZWF0ZVJlcXVlc3REYXRhGvUEChFDcmVhdGVSZXF1ZXN0RGF0YRIQCghldmVudF9pZBgBIAEoBBIPCgd1c2VyX2lkGAIgASgEEkoKCGNhdGVnb3J5GAMgASgOMjguc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLkludml0YXRpb25DYXRlZ29yeRIzCgRraW5kGAQgASgOMiUuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5LaW5kEjMKD3RyYWNrX3RpbWVzdGFtcBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEQoJcm91dGVfbWFwGAYgASgJEhEKCWRldmljZV9pZBgHIAEoCRIKCgJvcxgIIAEoCRISCgp1c2VyX2FnZW50GAkgASgJEhYKDnNsX3Nka192ZXJzaW9uGAogASgJEhIKCnNlc3Npb25faWQYCyABKAkSGgoSb3ZlcmxheV9zZXNzaW9uX2lkGAwgASgJEhAKCHRvcGljX2lkGA0gASgJEhMKC3VzZXJfaWRfc3RyGA4gASgJEk4KEnNjcmVlbl9vcmllbnRhdGlvbhgPIAEoDjIyLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uU2NyZWVuT3JpZW50YXRpb24SPgoKdG9waWNfdHlwZRgQIAEoDjIqLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uVG9waWNUeXBlEkIKBGZyb20YESABKA4yNC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuaW52aXRhdGlvbnMuSW52aXRhdGlvbkZyb20izgEKF1NlbmRJbnZpdGF0aW9uc1Jlc3BvbnNlEl4KBGRhdGEYASABKAsyUC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuaW52aXRhdGlvbnMuU2VuZEludml0YXRpb25zUmVzcG9uc2UuQ3JlYXRlUmVzcG9uc2VEYXRhGlMKEkNyZWF0ZVJlc3BvbnNlRGF0YRI9CgZyZXN1bHQYASABKA4yLS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuY29tbW9uLlJlc3VsdFN0YXR1cyq4AQoSSW52aXRhdGlvbkNhdGVnb3J5Eh0KGUlOVklUQVRJT05fQ0FURUdPUllfVU5TRVQQABIgChxJTlZJVEFUSU9OX0NBVEVHT1JZX1dBVENISU5HEAESIQodSU5WSVRBVElPTl9DQVRFR09SWV9NRVNTQUdJTkcQAhIfChtJTlZJVEFUSU9OX0NBVEVHT1JZX1ZPSUNJTkcQAxIdChlJTlZJVEFUSU9OX0NBVEVHT1JZX0dBTUVTEAQqZQoOSW52aXRhdGlvbkZyb20SGQoVSU5WSVRBVElPTl9GUk9NX1VOU0VUEAASHgoaSU5WSVRBVElPTl9GUk9NX1RJVExFX0NBUkQQARIYChRJTlZJVEFUSU9OX0ZST01fTUVOVRACQrYBCihjb20uc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLmludml0YXRpb25zLnYxQhtTdHJlYW1MYXllckludml0YXRpb25zUHJvdG9QAVpiZ2l0aHViLmNvbS9zdHJlYW1sYXllci9zbC1wcm90b2ZpbGVzLy5idWlsZC9nby9zdHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbnM7c2xfaW52aXRhdGlvbnOiAgZTTF9BUEliBnByb3RvMw",[e.file_streamlayer_analytics_v1_common_analytics_common,e.file_google_protobuf_timestamp]),E=e.enumDesc(Y,1),f=e.tsEnum(E),N=(l,t,a)=>{const d=t>=e.A.lg&&t<e.A.xl?75:52;l.current&&window.scrollTo({top:l.current.offsetTop-d,...a})},F=e.styled_default("div")({name:"Container",class:"c1zy8a",propsAsIs:!1}),k=e.styled_default("div")({name:"Title",class:"t1vih9p5",propsAsIs:!1}),U=e.styled_default("div")({name:"Indicator",class:"i1fbnvpb",propsAsIs:!1}),I=({indicator:l,title:t})=>s.jsxs(F,{children:[s.jsx(k,{children:t}),s.jsx(U,{children:l})]}),_=e.styled_default("div")({name:"Container",class:"ctmhwyc",propsAsIs:!1}),L=e.styled_default("div")({name:"Indicator",class:"i1jri200",propsAsIs:!1}),B=e.styled_default("div")({name:"Title",class:"t8s05oq",propsAsIs:!1}),A=({indicator:l,title:t})=>s.jsxs(_,{children:[s.jsx(L,{children:l}),s.jsx(B,{children:t})]}),J=e.styled_default("div")({name:"Container",class:"c1yrpn9o",propsAsIs:!1}),$=e.styled_default("div")({name:"TopInfo",class:"t17fwahh",propsAsIs:!1}),Q=e.styled_default("div")({name:"BottomInfo",class:"by6w7e9",propsAsIs:!1}),M=e.styled_default("div")({name:"User",class:"u1g7arbm",propsAsIs:!1}),z=e.styled_default("img")({name:"Avatar",class:"a1ldeata",propsAsIs:!1}),w=e.styled_default("div")({name:"UserInfo",class:"u10d4koz",propsAsIs:!1}),T=e.styled_default("div")({name:"UserName",class:"u1q6roj0",propsAsIs:!1}),H=e.styled_default("div")({name:"UserRating",class:"ui0m425",propsAsIs:!1}),K=e.styled_default("img")({name:"TrophyIcon",class:"t1el3mrn",propsAsIs:!1}),q=e.styled_default("div")({name:"RtsContainer",class:"r2vgnxv",propsAsIs:!1}),D=e.styled_default("div")({name:"RtsDivider",class:"roqn06j",propsAsIs:!1}),O=e.styled_default("div")({name:"Rts",class:"r15adx7c",propsAsIs:!1}),R=e.styled_default("div")({name:"RtsIndicator",class:"rv59lta",propsAsIs:!1}),g=e.styled_default("div")({name:"RtsLabel",class:"r55lotb",propsAsIs:!1}),P=e.styled_default("div")({name:"Divider",class:"d1knfgqt",propsAsIs:!1}),ss=e.styled_default("div")({name:"Ranks",class:"r1mqo824",propsAsIs:!1}),es=e.styled_default("div")({name:"Statistics",class:"sxareh6",propsAsIs:!1}),ls=e.styled_default("div")({name:"AvatarPlaceholder",class:"amcu48h",propsAsIs:!1}),ts=e.styled_default("button")({name:"UserAccountBtn",class:"u32nfkp",propsAsIs:!1}),as="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e",ns=({loading:l,hideFriendsRank:t,avatar:a,name:d,points:n,friendsRank:i,rank:c,streak:o,correct:r,incorrect:p,inTop:m,successRate:x})=>s.jsxs(J,{"data-loading":l,children:[s.jsx($,{children:s.jsx(e.i,{loading:l,children:s.jsxs(M,{children:[s.jsxs(ts,{children:[a&&s.jsx(z,{alt:"avatar",src:a}),!a&&s.jsx(ls,{children:e.I(d||"")})]}),s.jsxs(w,{children:[s.jsx(T,{children:d}),s.jsxs(H,{children:[s.jsxs(q,{children:[s.jsxs(O,{children:[s.jsx(K,{alt:"rank-icon",src:as}),s.jsxs(R,{children:[e.s(n),s.jsx(g,{children:"PTS"})]})]}),t&&s.jsxs(R,{children:[s.jsx(D,{}),c||0,s.jsx(g,{children:"global rank"})]})]}),!t&&s.jsxs(s.Fragment,{children:[s.jsx(P,{}),s.jsxs("div",{children:["TOP ",m||0,"%"]})]})]})]})]})})}),s.jsxs(Q,{children:[!t&&s.jsxs(ss,{children:[s.jsx(e.i,{loading:l,style:{width:"100%"},children:s.jsx(I,{indicator:i||0,title:"Friends rank"})}),s.jsx(e.i,{loading:l,style:{width:"100%"},children:s.jsx(I,{indicator:c||0,title:"Global rank"})})]}),s.jsx(e.i,{loading:l,children:s.jsxs(es,{children:[s.jsx(A,{indicator:o||0,title:"Win streak"}),s.jsx(A,{indicator:r||0,title:"Correct"}),s.jsx(A,{indicator:p||0,title:"Incorrect"}),s.jsx(A,{indicator:`${x||0}%`,title:"Succ. rate"})]})})]})]}),ds=e.styled_default("div")({name:"Container",class:"c115qtkr",propsAsIs:!1}),is=e.styled_default("div")({name:"STabs",class:"sxnslc8",propsAsIs:!1}),rs=e.styled_default("button")({name:"Button",class:"b1umzux0",propsAsIs:!1}),cs=e.styled_default("span")({name:"Title",class:"tspsaas",propsAsIs:!1});var h=(l=>(l.HOME="home",l.LEADERBOARD="leaderboard",l))(h||{});const V=({title:l,active:t,onClick:a})=>s.jsx(rs,{"data-a":"intr",onClick:a,"data-selected":t,children:s.jsx(cs,{"data-a":"intr",children:l})}),os=({activePage:l="home",toggleActivePage:t})=>s.jsx(ds,{children:s.jsxs(is,{"data-position":l==="home"?"left":"right",children:[s.jsx(V,{title:"Home",active:l==="home",onClick:()=>t("home")}),s.jsx(V,{title:"Friends",active:l==="leaderboard",onClick:()=>t("leaderboard")})]})}),us=e.styled_default("button")({name:"Container",class:"cpjnajb",propsAsIs:!1}),ps=e.styled_default("div")({name:"Content",class:"c4m6kaz",propsAsIs:!1}),ms=e.styled_default("span")({name:"Title",class:"t1h8t9cc",propsAsIs:!1}),bs=()=>s.jsx(us,{children:s.jsxs(ps,{children:[s.jsx(e.B1,{name:"iconCopySuccess"}),s.jsx(ms,{children:"Link Copied to Clipboard"})]})}),C=l=>{const t=u.useRef(),[a,d]=u.useState(null),n=u.useCallback(async i=>{var c;if(i&&(c=navigator==null?void 0:navigator.clipboard)!=null&&c.writeText){t.current&&(clearTimeout(t.current),d(null));try{await navigator.clipboard.writeText(i),l.current&&(d(S.createPortal(s.jsx(bs,{}),l.current)),t.current=setTimeout(()=>{d(null)},1e3))}catch(o){console.error("Unable to copy to clipboard",o)}}},[l]);return u.useEffect(()=>()=>{clearTimeout(t.current)},[]),[n,a]},hs=e.styled_default("div")({name:"Container",class:"c1ux29ft",propsAsIs:!1}),As=()=>e.B1,xs=e.styled_default(As())({name:"FriendsIcon",class:"f10ncfg2",propsAsIs:!0}),vs=e.styled_default("div")({name:"Content",class:"c1yc07bd",propsAsIs:!1}),ys=e.styled_default("div")({name:"Title",class:"tj6cq7w",propsAsIs:!1}),Ws=e.styled_default("div")({name:"Description",class:"d1ag78xo",propsAsIs:!1}),Is=()=>e.B1,Rs=e.styled_default(Is())({name:"ArrowInviteIcon",class:"awohrz6",propsAsIs:!0}),gs=({title:l,description:t,onClick:a,className:d})=>{const[n]=e.f({type:"invitation",action:"sent",payload:{from:f.TITLE_CARD}});return s.jsxs(hs,{"data-a":"intr",onClick:n(a),className:d,children:[s.jsx(xs,{name:"icon-friends"}),s.jsxs(vs,{children:[s.jsx(ys,{children:l}),s.jsx(Ws,{children:t})]}),s.jsx(Rs,{name:"icon-copy"})]})},Vs=e.styled_default("div")({name:"Container",class:"culdu4a",propsAsIs:!1}),js=e.styled_default("div")({name:"Position",class:"pwf8e69",propsAsIs:!1}),fs=e.styled_default("img")({name:"Avatar",class:"atf4yh4",propsAsIs:!1}),Cs=e.styled_default("div")({name:"AvatarPlaceholder",class:"a1dg29ja",propsAsIs:!1}),Gs=e.styled_default("div")({name:"Content",class:"c10a68rc",propsAsIs:!1}),Zs=e.styled_default("div")({name:"NameContainer",class:"nc4kck5",propsAsIs:!1}),Ss=e.styled_default("span")({name:"Name",class:"njsrqgr",propsAsIs:!1}),Xs=()=>e.B1,Ys=e.styled_default(Xs())({name:"CurrentUserBadge",class:"c17uc4zr",propsAsIs:!0}),Es=({friendsRank:l,avatar:t,name:a,userId:d,points:n,isCurrentUser:i,style:c})=>s.jsxs(Vs,{"data-name":d,style:c,children:[s.jsx(js,{children:l||0}),s.jsxs(Gs,{children:[t?s.jsx(fs,{alt:"leaderboard-item-avatar",src:t}):s.jsx(Cs,{children:e.I(a||"")}),s.jsxs(Zs,{children:[s.jsx(Ss,{children:a||""}),i&&s.jsx(Ys,{name:"icon-star"})]})]}),s.jsx("div",{children:e.s(n)})]}),Ns=e.styled_default("div")({name:"Container",class:"c16btbfp",propsAsIs:!1}),Fs=({items:l,currentUserId:t,openItemDetail:a,fetchMore:d,scrollNode:n,hasMore:i})=>{const c=u.useCallback(o=>{const r=o.target.getAttribute("data-name");r&&a(r)},[a]);return s.jsx(X,{loadMore:d,initialLoad:!1,hasMore:i,useWindow:!1,getScrollParent:()=>n.current,children:s.jsx(Ns,{"data-a":"intr",onClick:c,children:l.map(o=>s.jsx(Es,{...o,isCurrentUser:!!t&&t===o.userId},o.userId))})})},ks=e.styled_default("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),Us=e.styled_default("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),_s=()=>e.B1,Ls=e.styled_default(_s())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),Bs=e.styled_default("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),Js=e.styled_default("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),$s=e.styled_default("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),Qs=e.styled_default("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),Ms=e.styled_default("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),zs=e.styled_default("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),ws=e.styled_default("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),Ts=()=>e.B1,Hs=e.styled_default(Ts())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),Ks=({inviteLink:l,inviteCardTitle:t,inviteCardSubtext:a,primaryColor:d,className:n})=>{const i=u.useRef(null),[c,o]=C(i),[r]=e.f({type:"invitation",action:"sent",payload:{from:f.MENU}});return s.jsxs(ks,{className:n,children:[s.jsx(Us,{style:{backgroundColor:d},children:s.jsx(Ls,{name:"invite-game-icon"})}),s.jsxs(Bs,{children:[s.jsx(Js,{children:t||""}),s.jsx($s,{children:a||""})]}),l&&s.jsxs(Qs,{ref:i,"data-a":"intr",onClick:r(()=>c(l)),children:[s.jsxs(Ms,{children:[s.jsx(zs,{children:"Invite link"}),s.jsx(ws,{children:l})]}),s.jsx(Hs,{name:"icon-copy"})]}),o]})},qs=e.styled_default("div")({name:"InviteFriendsContainer",class:"i1c9dygq",propsAsIs:!1}),Ds=({deepLink:l})=>s.jsx(qs,{children:s.jsx(Ks,{inviteLink:l,inviteCardTitle:"It’s More Fun With Friends",inviteCardSubtext:"Invite and compete against your friends for the top spot on the leaderboard."})}),Os=e.styled_default("div")({name:"InviteLinkContainer",class:"i1odbhm4",propsAsIs:!1}),Ps=({gamification:l,scrollNode:t,scrollStore:a})=>{const d=u.useRef(null),{data:n,hasMore:i,loading:c,key:o}=e.useStore(l.leaderboardList.$store),{data:r}=e.useStore(l.deepLink.$store),[p,m]=C(d);return!n.length&&!c?s.jsx(Ds,{deepLink:r}):s.jsxs(s.Fragment,{children:[s.jsx(Fs,{items:n,scrollNode:t,scrollStore:a,fetchMore:l.leaderboardList.fetchMore,hasMore:i,openItemDetail:l.openUser,currentUserId:l.currentUserId.get()},o),r&&s.jsx(Os,{ref:d,children:s.jsx(gs,{"data-a":"intr",onClick:()=>p(r),title:"Invite Friends",description:"Challenge them now!"})}),m]})},se=()=>e.r,ee=e.styled_default(se())({name:"Container",class:"cll3md7",propsAsIs:!0}),le=()=>e.S,te=e.styled_default(le())({name:"ActionBtn",class:"a10g1iik",propsAsIs:!0}),ae=({questionId:l,...t})=>s.jsxs(ee,{"data-a":"intr","data-name":l,children:[s.jsx(e.O,{questionId:l,...t}),s.jsx(te,{"data-a":"intr","data-name":l,children:"View Insight"})]}),ne=()=>e.r,de=e.styled_default(ne())({name:"Container",class:"cl56x6b",propsAsIs:!0}),ie=e.styled_default("button")({name:"ActionButton",class:"a11pzf92",propsAsIs:!1}),re=e.styled_default("blockquote")({name:"Quote",class:"q1hbaleq",propsAsIs:!1}),ce=({...l})=>s.jsxs(de,{"data-a":"intr","data-name":l.tweetId,children:[l.title&&s.jsx(re,{children:l.title}),s.jsx(e.b,{...l}),s.jsx(ie,{"data-a":"intr","data-name":l.tweetId,children:"View Insight"})]}),j=e.styled_default("div")({name:"QuestionsContainer",class:"qvghv3l",propsAsIs:!1}),oe=({questions:l,openQuestion:t,controlVideo:a})=>{const d=n=>{const i=n.target.getAttribute("data-name");i&&(e.wt(),t(i,{openedFrom:"list"}))};return l?s.jsx(j,{"data-a":"intr",onClick:d,children:l==null?void 0:l.map(n=>{var i,c,o;if(n.type==="question"&&((i=n.attributes)==null?void 0:i.attributes.case)==="question"){const r=n.attributes.attributes.value;return s.jsx(e.R,{...r},r.questionId)}if(n.type==="insight"&&((c=n.attributes)==null?void 0:c.attributes.case)==="insight"){const r=n.attributes.attributes.value;return s.jsx(ae,{controlVideo:a,...r},r.questionId)}if(n.type==="tweet"&&((o=n.attributes)==null?void 0:o.attributes.case)==="tweet"){const r=n.attributes.attributes.value,p=n.attributes.id;return s.jsx(ce,{controlVideo:a,...r,tweetId:p},p)}return null})}):s.jsx(j,{children:Array.from({length:5}).map((n,i)=>s.jsx(e.D,{},i))})},ue=({store:l,openQuestion:t})=>{const{sdk:a}=e.p(),d=e.useStore(l);return s.jsx(oe,{openQuestion:t,questions:d.data,controlVideo:a==null?void 0:a.controlVideoPlayer})},pe=({userSummary:l})=>{var t;const[a,d]=u.useState(void 0);return u.useEffect(()=>{const n=l.$store.subscribe(i=>{i&&d(i)});return()=>{n()}},[l]),s.jsx(ns,{loading:!(a!=null&&a.summary),...a==null?void 0:a.summary,successRate:(t=a==null?void 0:a.percentage)==null?void 0:t.correct})},me=({gamification:l,className:t,scrollStore:a,scrollNode:d,appNode:n,style:i,responsiveStore:c})=>{const{tabsShown:o}=e.useStore(a,{keys:["tabsShown"]}),r=e.useStore(l.friendsTabEnabled),[p,m]=u.useState(h.HOME),[,x]=e.useTransition(),{sdkInDesktopView:y,screen:G}=e.useStore(c,{keys:["sdkInDesktopView"]}),Z=b=>{x(()=>{var W;m(b),y===!1&&(((W=n.current)==null?void 0:W.getBoundingClientRect().y)||0)<0&&N(n,G.size,{behavior:"instant"})})};u.useEffect(()=>a.subscribe(b=>{if(b.scrollPosition===0){a.setKey("tabsShown",!0);return}c.get().sdkInDesktopView?a.setKey("tabsShown",b.scrollDirection==="backward"):a.setKey("tabsShown",b.scrollDirection==="forward")}),[a,c]),u.useEffect(()=>{r||m(h.HOME)},[r]);let v="0px";return y?v=o?"0px":"calc(0px - var(--header-height))":v=o?"var(--header-height)":"0px",s.jsxs(e.l,{className:e.cx_default(t,"SL-Tabs","sl-hide-on-modal"),style:i,children:[r&&s.jsx(e.S$1,{style:{top:v},children:s.jsx(os,{activePage:p,toggleActivePage:Z})}),p===h.HOME&&s.jsxs(s.Fragment,{children:[s.jsx(e.m,{children:s.jsx(e.d,{children:s.jsx(pe,{userSummary:l.userSummary})})}),s.jsx(e.n,{style:{flex:1},children:s.jsx(ue,{openQuestion:l.openQuestion,store:l.feedList.getStore()})})]}),p===h.LEADERBOARD&&s.jsx(e.C,{children:s.jsx(Ps,{scrollStore:a,scrollNode:d,gamification:l})})]})},be=({gamification:l,scrollStore:t,className:a,appNode:d,scrollNode:n,responsiveStore:i})=>s.jsx(me,{appNode:d,scrollStore:t,scrollNode:n,className:a,gamification:l,responsiveStore:i});exports.default=be;
package/lib/cjs/index2.js CHANGED
@@ -15,7 +15,7 @@
15
15
  `),s=`
16
16
  `+n+(i.length?o("│"):" ")+" ";return n+a.join(s)+`
17
17
  `+i.map(function(r,c){var u=c===i.length-1,h=r.nodes&&r.nodes.length,g=n+(u?" ":o("│"))+" ";return n+o(u?"└":"├")+o("─")+o(h?"┬":"─")+" "+e(r,g,l).slice(n.length+2)}).join("")};const LW=wW,lu=Symbol("avvio.TimeTree.untrackNode"),va=Symbol("avvio.TimeTree.trackNode"),ou=Symbol("avvio.TimeTree.getParent"),iu=Symbol("avvio.TimeTree.getNode"),au=Symbol("avvio.TimeTree.addNode");let kW=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[va](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[lu](e){this.tableId.delete(e.id);const t=this.tableLabel.get(e.label);if(t.id){this.tableLabel.delete(e.label);return}t.pop(),t.length===0&&this.tableLabel.delete(e.label)}[ou](e){if(e===null)return this.root;const t=this.tableLabel.get(e);return t.id?t:t[t.length-1]}[iu](e){return this.tableId.get(e)}[au](e,t,n){if(e===null)return this.root={id:"root",label:t,start:n,nodes:[]},this[va](this.root),this.root.id;const l=this[ou](e),o=`${t}-${Math.random()}`,i={id:o,parent:e,start:n,label:t,nodes:[]};return l.nodes.push(i),this[va](i),o}start(e,t,n=Date.now()){return this[au](e,t,n)}stop(e,t=Date.now()){const n=this[iu](e);n&&(n.stop=t,n.diff=n.stop-n.start||0,this[lu](n))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const e=n=>(n.label=`${n.label} ${n.diff} ms`,n.nodes.length>0&&(n.nodes=n.nodes.map(l=>e(l))),n),t=e(this.toJSON());return LW(t)}};var JW=kW,Nc={exports:{}},o0={exports:{}},Ba,su;function xW(){if(su)return Ba;su=1;var e=1e3,t=e*60,n=t*60,l=n*24,o=l*7,i=l*365.25;Ba=function(u,h){h=h||{};var g=typeof u;if(g==="string"&&u.length>0)return a(u);if(g==="number"&&isFinite(u))return h.long?r(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(h){var g=parseFloat(h[1]),p=(h[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return g*i;case"weeks":case"week":case"w":return g*o;case"days":case"day":case"d":return g*l;case"hours":case"hour":case"hrs":case"hr":case"h":return g*n;case"minutes":case"minute":case"mins":case"min":case"m":return g*t;case"seconds":case"second":case"secs":case"sec":case"s":return g*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function s(u){var h=Math.abs(u);return h>=l?Math.round(u/l)+"d":h>=n?Math.round(u/n)+"h":h>=t?Math.round(u/t)+"m":h>=e?Math.round(u/e)+"s":u+"ms"}function r(u){var h=Math.abs(u);return h>=l?c(u,h,l,"day"):h>=n?c(u,h,n,"hour"):h>=t?c(u,h,t,"minute"):h>=e?c(u,h,e,"second"):u+" ms"}function c(u,h,g,p){var b=h>=g*1.5;return Math.round(u/g)+" "+p+(b?"s":"")}return Ba}function QW(e){n.debug=n,n.default=n,n.coerce=r,n.disable=i,n.enable=o,n.enabled=a,n.humanize=xW(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let h=0;for(let g=0;g<u.length;g++)h=(h<<5)-h+u.charCodeAt(g),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=t;function n(u){let h,g=null,p,b;function V(...f){if(!V.enabled)return;const R=V,E=Number(new Date),I=E-(h||E);R.diff=I,R.prev=h,R.curr=E,h=E,f[0]=n.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");let N=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,(G,S)=>{if(G==="%%")return"%";N++;const F=n.formatters[S];if(typeof F=="function"){const Q=f[N];G=F.call(R,Q),f.splice(N,1),N--}return G}),n.formatArgs.call(R,f),(R.log||n.log).apply(R,f)}return V.namespace=u,V.useColors=n.useColors(),V.color=n.selectColor(u),V.extend=l,V.destroy=n.destroy,Object.defineProperty(V,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(p!==n.namespaces&&(p=n.namespaces,b=n.enabled(u)),b),set:f=>{g=f}}),typeof n.init=="function"&&n.init(V),V}function l(u,h){const g=n(this.namespace+(typeof h>"u"?":":h)+u);return g.log=this.log,g}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let h;const g=(typeof u=="string"?u:"").split(/[\s,]+/),p=g.length;for(h=0;h<p;h++)g[h]&&(u=g[h].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function i(){const u=[...n.names.map(s),...n.skips.map(s).map(h=>"-"+h)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return!0;let h,g;for(h=0,g=n.skips.length;h<g;h++)if(n.skips[h].test(u))return!1;for(h=0,g=n.names.length;h<g;h++)if(n.names[h].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function r(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var KW=QW;(function(e,t){t.formatArgs=l,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let r=!1;return()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function l(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;r.splice(1,0,c,"color: inherit");let u=0,h=0;r[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(u++,g==="%c"&&(h=u))}),r.splice(h,0,c)}t.log=console.debug||console.log||(()=>{});function o(r){try{r?t.storage.setItem("debug",r):t.storage.removeItem("debug")}catch{}}function i(){let r;try{r=t.storage.getItem("debug")}catch{}return!r&&typeof pe<"u"&&"env"in pe&&(r=pe.env.DEBUG),r}function a(){try{return localStorage}catch{}}e.exports=KW(t);const{formatters:s}=e.exports;s.j=function(r){try{return JSON.stringify(r)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(o0,o0.exports);var Gm=o0.exports;const MW=om,zW=hm.EventEmitter,HW=xi.inherits,st=Gm("avvio"),{AVV_ERR_READY_TIMEOUT:OW}=Um,Ya=Symbol.for("plugin-meta");function DW(e,t){return e[Ya]&&e[Ya].name?e[Ya].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(`
18
- `).slice(0,2).map(n=>n.trim()).join(" -- ")}function jW(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function Vl(e,t,n,l,o){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=o===void 0?e._timeout:o,this.name=DW(t,n),this.isAfter=l,this.q=MW(e,PW,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}HW(Vl,zW);Vl.prototype.exec=function(e,t){const n=this.func;let l=!1;const o=this.name;if(this.parent._error&&!this.isAfter){st("skipping loading of plugin as parent errored and it is not an after",o),pe.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(r){return st("override errored",o),t(r)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,st("exec",o);let i;const a=r=>{if(l){st("loading complete",o);return}this._error=r,st(r?"exec errored":"exec completed",o),l=!0,i&&clearTimeout(i),t(r)};this.timeout>0&&(st("setting up timeout",o,this.timeout),i=setTimeout(function(){st("timed out",o),i=null;const r=new OW(o);r.fn=n,a(r)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const s=n(this.server,this.opts,a);s&&typeof s.then=="function"&&(st("exec: resolving promise",o),s.then(()=>pe.nextTick(a),r=>pe.nextTick(a,r)))};Vl.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,l)=>{this._error=n,this.q.pause(),n?(st("rejecting promise",this.name,n),this._promise.reject(n)):(st("resolving promise",this.name),this._promise.resolve()),this._promise=null,pe.nextTick(l,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=jW(),t=this._promise.promise,this.server?e():this.on("start",e)),t};Vl.prototype.enqueue=function(e,t){st("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};Vl.prototype.finish=function(e,t){st("finish",this.name,e);const n=()=>{this.loaded||(st("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const l=()=>{if(st("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const o=()=>{st("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(o,o),this._promise=null}else n();else st("delayed",this.name),this.q.drain=()=>{st("drain",this.name),this.q.drain=_W,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function PW(e,t){const n=this;pe.nextTick(Ic.bind(n),e,t)}function Ic(e,t){if(typeof e.func.then=="function"){e.func.then(l=>{typeof l.default=="function"&&(l=l.default),e.func=l,Ic.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,l=>{e.finish(l,o=>{this._current.shift(),t(o)})})}function _W(){}Nc.exports=Vl;Nc.exports.loadPlugin=Ic;var $W=Nc.exports;const ru=om,qW=hm.EventEmitter,eN=xi.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Ta,AVV_ERR_CALLBACK_NOT_FN:xl,AVV_ERR_PLUGIN_NOT_VALID:tN,AVV_ERR_ROOT_PLG_BOOTED:nN,AVV_ERR_READY_TIMEOUT:lN}=Um,oN=JW,i0=$W,ml=Gm("avvio"),Ii=Symbol("kAvvio"),wa=Symbol("kThenifyDoNotWrap");function iN(e,t,n){const l=t.expose||{},o=l.use||"use",i=l.after||"after",a=l.ready||"ready",s=l.onClose||"onClose",r=l.close||"close";if(e[o])throw new Ta(o);if(e[i])throw new Ta(i);if(e[a])throw new Ta(a);e[o]=function(c,u){return n.use(c,u),this},Object.defineProperty(e,"then",{get:Xm.bind(n)}),e[Ii]=!0,e[i]=function(c){return typeof c!="function"?n._loadRegistered():(n.after(La(c,this)),this)},e[a]=function(c){if(c&&typeof c!="function")throw new xl(a,typeof c);return n.ready(c?La(c,this):void 0)},e[s]=function(c){if(typeof c!="function")throw new xl(s,typeof c);return n.onClose(dN(c,this)),this},e[r]=function(c){if(c&&typeof c!="function")throw new xl(r,typeof c);return c?(n.close(La(c,this)),this):n.close()}}function ot(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof ot)){const l=new ot(e,t,n);return e&&iN(e,t,l),l}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new oN,this._readyQ=ru(this,vm,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=cu},this._closeQ=ru(this,cN,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=cu},this._doStart=null,this._root=new i0(this,aN.bind(this),t,!1,0),this._root.once("start",(l,o,i)=>{const a=this.pluginTree.start(null,o,i);this._root.once("loaded",(s,r,c)=>{this.pluginTree.stop(a,c)})}),i0.loadPlugin.call(this,this._root,l=>{ml("root plugin ready");try{this.emit("preReady"),this._root=null}catch(o){l=l||this._error||o}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function aN(e,t,n){this._doStart=n,t.autostart&&this.start()}eN(ot,qW);ot.prototype.start=function(){return this.started=!0,pe.nextTick(this._doStart),this};ot.prototype.override=function(e,t,n){return e};function sN(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new tN(typeof e);return e}ot.prototype[Ii]=!0;ot.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};ot.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&pe.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(ot.prototype,"then",{get:Xm});ot.prototype._addPlugin=function(e,t,n){if(e=sN(e),t=t||{},this.booted)throw new nN;const l=this._current[0],o=new i0(this,e,t,n);if(o.once("start",(i,a,s)=>{const r=this.pluginTree.start(l.name,a,s);o.once("loaded",(c,u,h)=>{this.pluginTree.stop(r,h)})}),l.loaded)throw new Error(o.name,l.name);return l.enqueue(o,i=>{i&&(this._error=i)}),o};ot.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,l,o){vm.call(this,e,o)}return this};ot.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};ot.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new xl("close",typeof e)}else t=new Promise(function(n,l){e=function(o){if(o)return l(o);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),pe.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};ot.prototype.ready=function(e){if(e){if(typeof e!="function")throw new xl("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(o),this.start();const l=this._current[0].server;function o(i,a,s){i?n(i):t(l),pe.nextTick(s)}})};ot.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ot.prototype.toJSON=function(){return this.pluginTree.toJSON()};function cu(){}function Xm(){if(this.booted){ml("thenify returning null because we are already booted");return}if(this[wa]){this[wa]=!1;return}return ml("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[wa]=!0,e(this._server)),t)}function vm(e,t){const n=this._server,l=this._error;let o;if(this._error=null,e.length===0)this._error=l,o=e(),o&&!o[Ii]&&typeof o.then=="function"?o.then(()=>pe.nextTick(t),i=>pe.nextTick(t,i)):pe.nextTick(t);else if(e.length===1)o=e(l),o&&!o[Ii]&&typeof o.then=="function"?o.then(()=>pe.nextTick(t),i=>pe.nextTick(t,i)):pe.nextTick(t);else if(this._timeout===0){const i=a=>{this._error=a,t(this._error)};e.length===2?e(l,i):e(l,n,i)}else rN.call(this,e,l,n,t)}function rN(e,t,n,l){const o=e.name;ml("setting up ready timeout",o,this._timeout);let i=setTimeout(()=>{ml("timed out",o),i=null;const s=new lN(o);s.fn=e,this._error=s,l(s)},this._timeout);e.length===2?e(t,a.bind(this)):e(t,n,a.bind(this));function a(s){i&&(clearTimeout(i),this._error=s,l(this._error))}}function cN(e,t){const n=this._server,l=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let o;l?o=e(n):o=e(this._error),o&&typeof o.then=="function"?(ml("resolving close/onClose promise"),o.then(()=>pe.nextTick(t),i=>pe.nextTick(t,i))):pe.nextTick(t)}else e.length===2?e(l?n:this._error,t):l?e(n,t):e(this._error,n,t)}function dN(e,t){return n.bind(t);function n(l,o){let i;e.length===0?(i=e(),i&&i.then?i.then(function(){pe.nextTick(o)},o):pe.nextTick(o)):e.length===1?(i=e(this),i&&i.then?i.then(function(){pe.nextTick(o)},o):pe.nextTick(o)):e(this,o)}}function La(e,t){return n.bind(t);function n(l,o){let i;e?e.length===0?(i=e(),i&&i.then?i.then(function(){pe.nextTick(o,l)},o):pe.nextTick(o,l)):e.length===1?(i=e(l),i&&i.then?i.then(function(){pe.nextTick(o)},o):pe.nextTick(o)):e.length===2?e(l,o):e(l,this,o):pe.nextTick(o)}}gc.exports=ot;gc.exports.express=function(e){return ot(e,{expose:{use:"load"}})};var uN=gc.exports;const mN=Jy(uN);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const e=["webkit","moz","ms","o"];for(const t of e)window.requestAnimationFrame=window.requestAnimationFrame||window[`${t}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${t}CancelAnimationFrame`]||window[`${t}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let t=0;const n=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const o=n?window.performance.now():new Date().getTime(),i=Math.max(0,16-(o-t)),a=window.setTimeout(function(){l(o+i)},i);return t=o+i,a},window.cancelAnimationFrame=clearTimeout}})();function hN(e,t=!0,n=!0,l={friendsTab:"enabled"}){const o=t?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",i=t?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",a=mN(Object.create({}),{autostart:!1});return a.use(by,{hideFriends:l.hideFriends,skipOnboarding:l.skipOnboarding,betPack:l.betPack,friendsTab:l.friendsTab,theme:l.theme,themeMode:l.themeMode}),a.use(dy,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),a.use(py,{videoPlayerController:l==null?void 0:l.videoPlayerController}),a.use(Vy,{onContentActivate:l==null?void 0:l.onContentActivate,withAd:l==null?void 0:l.withAd,withAdNotification:l==null?void 0:l.withAdNotification}),a.use(UC,{sdkKey:e,host:o,analyticsHost:i,version:l==null?void 0:l.version,webOS:l==null?void 0:l.webOS}),a.use(YC),a.use(hy),a.use(Sy),a.use(ly),a.use(ky),a.after((s,r,c)=>{if(s)throw s;r.ready(),c()}),n&&a.after(async(s,r,c)=>{if(s)throw s;await r.sdk.initializeApp(),c()}),a.onClose(()=>{console.log("close StreamLayer instance")}),a}const pN=({sdkKey:e,plugins:t,production:n,autoEnable:l,onDeepLinkHandled:o,videoPlayerController:i,onContentActivate:a,hideFriends:s,skipOnboarding:r,withAdNotification:c,withAd:u,friendsTab:h,betPack:g,webOS:p})=>{const[b,V]=y.useState(null);return y.useEffect(()=>{let f=!1;if(!e)return console.error("streamlayer sdk key should be provided"),V(E=>(E!==null&&typeof E.disableApp=="function"&&E.disableApp(),null)),()=>{f=!0};const R=hN(e,n,l,{version:"1.21.2",onDeepLinkHandled:o,videoPlayerController:i,onContentActivate:a,skipOnboarding:r,withAdNotification:c,withAd:u,hideFriends:s,friendsTab:h,betPack:g,webOS:p});if(t)for(const E of t)R.use(E);return R.ready().then(E=>{f||(V(E.sdk),typeof window<"u")}).catch(E=>console.log(E)),()=>{f=!0,R.close(function(E){if(E)throw E})}},[e,n]),b};var gN=Object.defineProperty,VN=(e,t,n)=>t in e?gN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,De=(e,t,n)=>VN(e,typeof t!="symbol"?t+"":t,n);const bN=g0.pino({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:e=>{console.log(e)}}}),bl=(e,t)=>bN.child({name:e},t);class RN extends Event{constructor(t,n){super(t),De(this,"slEventBus"),this.slEventBus=n}}const AN=bl("event-bus");class EN{constructor(t="sl-event-bus"){De(this,"name"),De(this,"listeners"),De(this,"emit",(n,l)=>{const o=new RN(this.name,{...l,type:n});AN.debug(o,"Emitting event"),window.dispatchEvent(o)}),De(this,"destroy",()=>{this.listeners.forEach(n=>{window.removeEventListener(this.name,n),this.listeners.delete(n)}),this.listeners.clear()}),this.name=t,this.listeners=new Set}listen(t){return window.addEventListener(this.name,t),this.listeners.add(t),()=>{this.off(t)}}off(t){window.removeEventListener(this.name,t),this.listeners.delete(t)}}var du;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(du||(du={}));window.slStore=Object.create(null);var uu;(function(e){e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM"})(uu||(uu={}));We.BETTING+"",We.GAMES+"",We.PUBLIC_CHAT+"",We.TWITTER+"";var mu;(function(e){e.Ready="ready",e.Suspended="suspended"})(mu||(mu={}));const fN=new EN;window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));function CN(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")}class yN{constructor(t="main",n=window.localStorage){De(this,"delimiter",":"),De(this,"prefix"),De(this,"storage"),De(this,"clear",()=>{for(const l in window.localStorage)l.startsWith(this.prefix)&&this.storage.removeItem(l)}),De(this,"generateKey",l=>`${this.prefix}${this.delimiter}${l.join(this.delimiter)}`),De(this,"write",(...l)=>{const o=l.pop()||"",i=this.generateKey(l);try{this.storage.setItem(i,o)}catch(a){CN(a)&&this.storage===window.sessionStorage&&(window.sessionStorage.removeItem("slstreamlogs"),this.storage.setItem(i,o))}}),De(this,"read",(...l)=>{const o=this.storage.getItem(this.generateKey(l));return o===null?void 0:o}),De(this,"remove",(...l)=>{this.storage.removeItem(this.generateKey(l))}),this.prefix=`sl-sdk${this.delimiter}${t}`,this.storage=n}}var hu;(function(e){e.Init="init",e.Ready="ready",e.Connecting="connecting",e.Connected="connected",e.Disconnected="disconnected",e.Failed="failed",e.Reconnect="reconnect",e.Reconnecting="reconnecting"})(hu||(hu={}));bl("grpc:stream");ge.Code.Unknown,ge.Code.Internal,ge.Code.DeadlineExceeded,ge.Code.ResourceExhausted,ge.Code.FailedPrecondition,ge.Code.Unavailable,ge.Code.DataLoss;bl("grpc:retry");ge.createContextKey(10,{description:"Number of attempts to retry"}),ge.createContextKey(3e4,{description:"Max delay between retries in milliseconds"});var f1;(function(e){e.SCHEMA="schema",e.EXTERNAL_TOKEN="eToken",e.TOKEN="token"})(f1||(f1={}));class ZN extends yN{constructor(){super("user"),De(this,"setSchema",t=>{this.write(f1.SCHEMA,t)}),De(this,"getSchema",()=>this.read(f1.SCHEMA)),De(this,"setToken",t=>{this.write(f1.TOKEN,t)}),De(this,"getToken",()=>this.read(f1.TOKEN)),De(this,"setExternalToken",t=>{this.write(f1.EXTERNAL_TOKEN,t)}),De(this,"getExternalToken",()=>this.read(f1.EXTERNAL_TOKEN)),De(this,"removeToken",()=>{this.remove(f1.TOKEN)})}}var pu;(function(e){e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended"})(pu||(pu={}));bl("deep_link");bl("bypass");new ZN;bl("video_player");oe.FACTOID+"",oe.POLL+"",oe.TRIVIA+"",oe.PREDICTION+"",oe.TWEET+"";var gu;(function(e){e.SHOWED="showed",e.EVENT="ev"})(gu||(gu={}));var Vu;(function(e){e.ONBOARDING="onboarding",e.ONBOARDING_IO="onboarding_io",e.QUESTION_RECEIVED="q-received",e.QUESTION_OPENED="q-opened"})(Vu||(Vu={}));var bu;(function(e){e.ALLOWED="allowed",e.DISALLOWED="disallowed"})(bu||(bu={}));var Ru;(function(e){e.OPENED="opened"})(Ru||(Ru={}));var Au;(function(e){e.UNKNOWN="unknown",e.ALREADY_VOTED="already_voted"})(Au||(Au={}));var Eu;(function(e){e.Unset="unset",e.Required="required",e.Optional="optional",e.Completed="completed",e.Disabled="disabled",e.Unavailable="unavailable"})(Eu||(Eu={}));oe.POLL,oe.PREDICTION,oe.TRIVIA;const WN={[We.GAMES]:!0};var NN=function(){const e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach(o=>{(o?o.split(" "):[]).forEach(i=>{if(i.startsWith("atm_")){const[,a]=i.split("_");t[a]=i}else n.push(i)})});const l=[];for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&l.push(t[o]);return l.push(...n),l.join(" ")},Vn=NN;function IN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var SN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ka=IN(function(e){return SN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FN=e=>e.toUpperCase()===e,UN=e=>t=>e.indexOf(t)===-1,Bm=(e,t)=>{const n={};return Object.keys(e).filter(UN(t)).forEach(l=>{n[l]=e[l]}),n};function GN(e,t,n){const l=Bm(t,n);if(!e){const o=typeof ka=="function"?{default:ka}:ka;Object.keys(l).forEach(i=>{o.default(i)||delete l[i]})}return l}var XN=(e,t)=>{};function vN(e){let t="";return n=>{const l=(i,a)=>{const{as:s=e,class:r=t}=i,c=n.propsAsIs===void 0?!(typeof s=="string"&&s.indexOf("-")===-1&&!FN(s[0])):n.propsAsIs,u=GN(c,i,["as","class"]);u.ref=a,u.className=n.atomic?Vn(n.class,u.className||r):Vn(u.className||r,n.class);const{vars:h}=n;if(h){const g={};for(const V in h){const f=h[V],R=f[0],E=f[1]||"",I=typeof R=="function"?R(i):R;XN(I,n.name),g[`--${V}`]=`${I}${E}`}const p=u.style||{},b=Object.keys(p);b.length>0&&b.forEach(V=>{g[V]=p[V]}),u.style=g}return e.__wyw_meta&&e!==s?(u.as=s,y.createElement(e,u)):y.createElement(s,u)},o=y.forwardRef?y.forwardRef(l):i=>{const a=Bm(i,["innerRef"]);return l(a,i.innerRef)};return o.displayName=n.name,o.__wyw_meta={className:n.class||t,extends:e},o}}var v=vN;const Sc=v("div")({name:"SDKContentContainer",class:"s1meqjjv",propsAsIs:!1}),BN=()=>Sc,Ym=v(BN())({name:"SDKWhiteContainer",class:"s1burm22",propsAsIs:!0}),YN=()=>Ym,TN=v(YN())({name:"SDKSummaryContainer",class:"sm5r3j5",propsAsIs:!0}),wN=v("div")({name:"TabsContainer",class:"tysxwr6",propsAsIs:!1}),LN=()=>Sc,kN=v(LN())({name:"LeaderboardContainer",class:"l9er3b1",propsAsIs:!0}),JN=()=>Ym,xN=v(JN())({name:"TabsNavContainer",class:"t19dtrb3",propsAsIs:!0}),QN=v("div")({name:"UserSummaryContainer",class:"u1552n3j",propsAsIs:!1});var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof L2<"u"?L2:typeof self<"u"?self:{},Tm={exports:{}},wm={};/**
18
+ `).slice(0,2).map(n=>n.trim()).join(" -- ")}function jW(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function Vl(e,t,n,l,o){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=o===void 0?e._timeout:o,this.name=DW(t,n),this.isAfter=l,this.q=MW(e,PW,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}HW(Vl,zW);Vl.prototype.exec=function(e,t){const n=this.func;let l=!1;const o=this.name;if(this.parent._error&&!this.isAfter){st("skipping loading of plugin as parent errored and it is not an after",o),pe.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(r){return st("override errored",o),t(r)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,st("exec",o);let i;const a=r=>{if(l){st("loading complete",o);return}this._error=r,st(r?"exec errored":"exec completed",o),l=!0,i&&clearTimeout(i),t(r)};this.timeout>0&&(st("setting up timeout",o,this.timeout),i=setTimeout(function(){st("timed out",o),i=null;const r=new OW(o);r.fn=n,a(r)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const s=n(this.server,this.opts,a);s&&typeof s.then=="function"&&(st("exec: resolving promise",o),s.then(()=>pe.nextTick(a),r=>pe.nextTick(a,r)))};Vl.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,l)=>{this._error=n,this.q.pause(),n?(st("rejecting promise",this.name,n),this._promise.reject(n)):(st("resolving promise",this.name),this._promise.resolve()),this._promise=null,pe.nextTick(l,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=jW(),t=this._promise.promise,this.server?e():this.on("start",e)),t};Vl.prototype.enqueue=function(e,t){st("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};Vl.prototype.finish=function(e,t){st("finish",this.name,e);const n=()=>{this.loaded||(st("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const l=()=>{if(st("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const o=()=>{st("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(o,o),this._promise=null}else n();else st("delayed",this.name),this.q.drain=()=>{st("drain",this.name),this.q.drain=_W,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function PW(e,t){const n=this;pe.nextTick(Ic.bind(n),e,t)}function Ic(e,t){if(typeof e.func.then=="function"){e.func.then(l=>{typeof l.default=="function"&&(l=l.default),e.func=l,Ic.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,l=>{e.finish(l,o=>{this._current.shift(),t(o)})})}function _W(){}Nc.exports=Vl;Nc.exports.loadPlugin=Ic;var $W=Nc.exports;const ru=om,qW=hm.EventEmitter,eN=xi.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Ta,AVV_ERR_CALLBACK_NOT_FN:xl,AVV_ERR_PLUGIN_NOT_VALID:tN,AVV_ERR_ROOT_PLG_BOOTED:nN,AVV_ERR_READY_TIMEOUT:lN}=Um,oN=JW,i0=$W,ml=Gm("avvio"),Ii=Symbol("kAvvio"),wa=Symbol("kThenifyDoNotWrap");function iN(e,t,n){const l=t.expose||{},o=l.use||"use",i=l.after||"after",a=l.ready||"ready",s=l.onClose||"onClose",r=l.close||"close";if(e[o])throw new Ta(o);if(e[i])throw new Ta(i);if(e[a])throw new Ta(a);e[o]=function(c,u){return n.use(c,u),this},Object.defineProperty(e,"then",{get:Xm.bind(n)}),e[Ii]=!0,e[i]=function(c){return typeof c!="function"?n._loadRegistered():(n.after(La(c,this)),this)},e[a]=function(c){if(c&&typeof c!="function")throw new xl(a,typeof c);return n.ready(c?La(c,this):void 0)},e[s]=function(c){if(typeof c!="function")throw new xl(s,typeof c);return n.onClose(dN(c,this)),this},e[r]=function(c){if(c&&typeof c!="function")throw new xl(r,typeof c);return c?(n.close(La(c,this)),this):n.close()}}function ot(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof ot)){const l=new ot(e,t,n);return e&&iN(e,t,l),l}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new oN,this._readyQ=ru(this,vm,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=cu},this._closeQ=ru(this,cN,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=cu},this._doStart=null,this._root=new i0(this,aN.bind(this),t,!1,0),this._root.once("start",(l,o,i)=>{const a=this.pluginTree.start(null,o,i);this._root.once("loaded",(s,r,c)=>{this.pluginTree.stop(a,c)})}),i0.loadPlugin.call(this,this._root,l=>{ml("root plugin ready");try{this.emit("preReady"),this._root=null}catch(o){l=l||this._error||o}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function aN(e,t,n){this._doStart=n,t.autostart&&this.start()}eN(ot,qW);ot.prototype.start=function(){return this.started=!0,pe.nextTick(this._doStart),this};ot.prototype.override=function(e,t,n){return e};function sN(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new tN(typeof e);return e}ot.prototype[Ii]=!0;ot.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};ot.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&pe.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(ot.prototype,"then",{get:Xm});ot.prototype._addPlugin=function(e,t,n){if(e=sN(e),t=t||{},this.booted)throw new nN;const l=this._current[0],o=new i0(this,e,t,n);if(o.once("start",(i,a,s)=>{const r=this.pluginTree.start(l.name,a,s);o.once("loaded",(c,u,h)=>{this.pluginTree.stop(r,h)})}),l.loaded)throw new Error(o.name,l.name);return l.enqueue(o,i=>{i&&(this._error=i)}),o};ot.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,l,o){vm.call(this,e,o)}return this};ot.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};ot.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new xl("close",typeof e)}else t=new Promise(function(n,l){e=function(o){if(o)return l(o);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),pe.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};ot.prototype.ready=function(e){if(e){if(typeof e!="function")throw new xl("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(o),this.start();const l=this._current[0].server;function o(i,a,s){i?n(i):t(l),pe.nextTick(s)}})};ot.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ot.prototype.toJSON=function(){return this.pluginTree.toJSON()};function cu(){}function Xm(){if(this.booted){ml("thenify returning null because we are already booted");return}if(this[wa]){this[wa]=!1;return}return ml("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[wa]=!0,e(this._server)),t)}function vm(e,t){const n=this._server,l=this._error;let o;if(this._error=null,e.length===0)this._error=l,o=e(),o&&!o[Ii]&&typeof o.then=="function"?o.then(()=>pe.nextTick(t),i=>pe.nextTick(t,i)):pe.nextTick(t);else if(e.length===1)o=e(l),o&&!o[Ii]&&typeof o.then=="function"?o.then(()=>pe.nextTick(t),i=>pe.nextTick(t,i)):pe.nextTick(t);else if(this._timeout===0){const i=a=>{this._error=a,t(this._error)};e.length===2?e(l,i):e(l,n,i)}else rN.call(this,e,l,n,t)}function rN(e,t,n,l){const o=e.name;ml("setting up ready timeout",o,this._timeout);let i=setTimeout(()=>{ml("timed out",o),i=null;const s=new lN(o);s.fn=e,this._error=s,l(s)},this._timeout);e.length===2?e(t,a.bind(this)):e(t,n,a.bind(this));function a(s){i&&(clearTimeout(i),this._error=s,l(this._error))}}function cN(e,t){const n=this._server,l=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let o;l?o=e(n):o=e(this._error),o&&typeof o.then=="function"?(ml("resolving close/onClose promise"),o.then(()=>pe.nextTick(t),i=>pe.nextTick(t,i))):pe.nextTick(t)}else e.length===2?e(l?n:this._error,t):l?e(n,t):e(this._error,n,t)}function dN(e,t){return n.bind(t);function n(l,o){let i;e.length===0?(i=e(),i&&i.then?i.then(function(){pe.nextTick(o)},o):pe.nextTick(o)):e.length===1?(i=e(this),i&&i.then?i.then(function(){pe.nextTick(o)},o):pe.nextTick(o)):e(this,o)}}function La(e,t){return n.bind(t);function n(l,o){let i;e?e.length===0?(i=e(),i&&i.then?i.then(function(){pe.nextTick(o,l)},o):pe.nextTick(o,l)):e.length===1?(i=e(l),i&&i.then?i.then(function(){pe.nextTick(o)},o):pe.nextTick(o)):e.length===2?e(l,o):e(l,this,o):pe.nextTick(o)}}gc.exports=ot;gc.exports.express=function(e){return ot(e,{expose:{use:"load"}})};var uN=gc.exports;const mN=Jy(uN);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const e=["webkit","moz","ms","o"];for(const t of e)window.requestAnimationFrame=window.requestAnimationFrame||window[`${t}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${t}CancelAnimationFrame`]||window[`${t}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let t=0;const n=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const o=n?window.performance.now():new Date().getTime(),i=Math.max(0,16-(o-t)),a=window.setTimeout(function(){l(o+i)},i);return t=o+i,a},window.cancelAnimationFrame=clearTimeout}})();function hN(e,t=!0,n=!0,l={friendsTab:"enabled"}){const o=t?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",i=t?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",a=mN(Object.create({}),{autostart:!1});return a.use(by,{hideFriends:l.hideFriends,skipOnboarding:l.skipOnboarding,betPack:l.betPack,friendsTab:l.friendsTab,theme:l.theme,themeMode:l.themeMode}),a.use(dy,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),a.use(py,{videoPlayerController:l==null?void 0:l.videoPlayerController}),a.use(Vy,{onContentActivate:l==null?void 0:l.onContentActivate,withAd:l==null?void 0:l.withAd,withAdNotification:l==null?void 0:l.withAdNotification}),a.use(UC,{sdkKey:e,host:o,analyticsHost:i,version:l==null?void 0:l.version,webOS:l==null?void 0:l.webOS}),a.use(YC),a.use(hy),a.use(Sy),a.use(ly),a.use(ky),a.after((s,r,c)=>{if(s)throw s;r.ready(),c()}),n&&a.after(async(s,r,c)=>{if(s)throw s;await r.sdk.initializeApp(),c()}),a.onClose(()=>{console.log("close StreamLayer instance")}),a}const pN=({sdkKey:e,plugins:t,production:n,autoEnable:l,onDeepLinkHandled:o,videoPlayerController:i,onContentActivate:a,hideFriends:s,skipOnboarding:r,withAdNotification:c,withAd:u,friendsTab:h,betPack:g,webOS:p})=>{const[b,V]=y.useState(null);return y.useEffect(()=>{let f=!1;if(!e)return console.error("streamlayer sdk key should be provided"),V(E=>(E!==null&&typeof E.disableApp=="function"&&E.disableApp(),null)),()=>{f=!0};const R=hN(e,n,l,{version:"1.21.3",onDeepLinkHandled:o,videoPlayerController:i,onContentActivate:a,skipOnboarding:r,withAdNotification:c,withAd:u,hideFriends:s,friendsTab:h,betPack:g,webOS:p});if(t)for(const E of t)R.use(E);return R.ready().then(E=>{f||(V(E.sdk),typeof window<"u")}).catch(E=>console.log(E)),()=>{f=!0,R.close(function(E){if(E)throw E})}},[e,n]),b};var gN=Object.defineProperty,VN=(e,t,n)=>t in e?gN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,De=(e,t,n)=>VN(e,typeof t!="symbol"?t+"":t,n);const bN=g0.pino({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:e=>{console.log(e)}}}),bl=(e,t)=>bN.child({name:e},t);class RN extends Event{constructor(t,n){super(t),De(this,"slEventBus"),this.slEventBus=n}}const AN=bl("event-bus");class EN{constructor(t="sl-event-bus"){De(this,"name"),De(this,"listeners"),De(this,"emit",(n,l)=>{const o=new RN(this.name,{...l,type:n});AN.debug(o,"Emitting event"),window.dispatchEvent(o)}),De(this,"destroy",()=>{this.listeners.forEach(n=>{window.removeEventListener(this.name,n),this.listeners.delete(n)}),this.listeners.clear()}),this.name=t,this.listeners=new Set}listen(t){return window.addEventListener(this.name,t),this.listeners.add(t),()=>{this.off(t)}}off(t){window.removeEventListener(this.name,t),this.listeners.delete(t)}}var du;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(du||(du={}));window.slStore=Object.create(null);var uu;(function(e){e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM"})(uu||(uu={}));We.BETTING+"",We.GAMES+"",We.PUBLIC_CHAT+"",We.TWITTER+"";var mu;(function(e){e.Ready="ready",e.Suspended="suspended"})(mu||(mu={}));const fN=new EN;window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));function CN(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")}class yN{constructor(t="main",n=window.localStorage){De(this,"delimiter",":"),De(this,"prefix"),De(this,"storage"),De(this,"clear",()=>{for(const l in window.localStorage)l.startsWith(this.prefix)&&this.storage.removeItem(l)}),De(this,"generateKey",l=>`${this.prefix}${this.delimiter}${l.join(this.delimiter)}`),De(this,"write",(...l)=>{const o=l.pop()||"",i=this.generateKey(l);try{this.storage.setItem(i,o)}catch(a){CN(a)&&this.storage===window.sessionStorage&&(window.sessionStorage.removeItem("slstreamlogs"),this.storage.setItem(i,o))}}),De(this,"read",(...l)=>{const o=this.storage.getItem(this.generateKey(l));return o===null?void 0:o}),De(this,"remove",(...l)=>{this.storage.removeItem(this.generateKey(l))}),this.prefix=`sl-sdk${this.delimiter}${t}`,this.storage=n}}var hu;(function(e){e.Init="init",e.Ready="ready",e.Connecting="connecting",e.Connected="connected",e.Disconnected="disconnected",e.Failed="failed",e.Reconnect="reconnect",e.Reconnecting="reconnecting"})(hu||(hu={}));bl("grpc:stream");ge.Code.Unknown,ge.Code.Internal,ge.Code.DeadlineExceeded,ge.Code.ResourceExhausted,ge.Code.FailedPrecondition,ge.Code.Unavailable,ge.Code.DataLoss;bl("grpc:retry");ge.createContextKey(10,{description:"Number of attempts to retry"}),ge.createContextKey(3e4,{description:"Max delay between retries in milliseconds"});var f1;(function(e){e.SCHEMA="schema",e.EXTERNAL_TOKEN="eToken",e.TOKEN="token"})(f1||(f1={}));class ZN extends yN{constructor(){super("user"),De(this,"setSchema",t=>{this.write(f1.SCHEMA,t)}),De(this,"getSchema",()=>this.read(f1.SCHEMA)),De(this,"setToken",t=>{this.write(f1.TOKEN,t)}),De(this,"getToken",()=>this.read(f1.TOKEN)),De(this,"setExternalToken",t=>{this.write(f1.EXTERNAL_TOKEN,t)}),De(this,"getExternalToken",()=>this.read(f1.EXTERNAL_TOKEN)),De(this,"removeToken",()=>{this.remove(f1.TOKEN)})}}var pu;(function(e){e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended"})(pu||(pu={}));bl("deep_link");bl("bypass");new ZN;bl("video_player");oe.FACTOID+"",oe.POLL+"",oe.TRIVIA+"",oe.PREDICTION+"",oe.TWEET+"";var gu;(function(e){e.SHOWED="showed",e.EVENT="ev"})(gu||(gu={}));var Vu;(function(e){e.ONBOARDING="onboarding",e.ONBOARDING_IO="onboarding_io",e.QUESTION_RECEIVED="q-received",e.QUESTION_OPENED="q-opened"})(Vu||(Vu={}));var bu;(function(e){e.ALLOWED="allowed",e.DISALLOWED="disallowed"})(bu||(bu={}));var Ru;(function(e){e.OPENED="opened"})(Ru||(Ru={}));var Au;(function(e){e.UNKNOWN="unknown",e.ALREADY_VOTED="already_voted"})(Au||(Au={}));var Eu;(function(e){e.Unset="unset",e.Required="required",e.Optional="optional",e.Completed="completed",e.Disabled="disabled",e.Unavailable="unavailable"})(Eu||(Eu={}));oe.POLL,oe.PREDICTION,oe.TRIVIA;const WN={[We.GAMES]:!0};var NN=function(){const e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach(o=>{(o?o.split(" "):[]).forEach(i=>{if(i.startsWith("atm_")){const[,a]=i.split("_");t[a]=i}else n.push(i)})});const l=[];for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&l.push(t[o]);return l.push(...n),l.join(" ")},Vn=NN;function IN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var SN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ka=IN(function(e){return SN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FN=e=>e.toUpperCase()===e,UN=e=>t=>e.indexOf(t)===-1,Bm=(e,t)=>{const n={};return Object.keys(e).filter(UN(t)).forEach(l=>{n[l]=e[l]}),n};function GN(e,t,n){const l=Bm(t,n);if(!e){const o=typeof ka=="function"?{default:ka}:ka;Object.keys(l).forEach(i=>{o.default(i)||delete l[i]})}return l}var XN=(e,t)=>{};function vN(e){let t="";return n=>{const l=(i,a)=>{const{as:s=e,class:r=t}=i,c=n.propsAsIs===void 0?!(typeof s=="string"&&s.indexOf("-")===-1&&!FN(s[0])):n.propsAsIs,u=GN(c,i,["as","class"]);u.ref=a,u.className=n.atomic?Vn(n.class,u.className||r):Vn(u.className||r,n.class);const{vars:h}=n;if(h){const g={};for(const V in h){const f=h[V],R=f[0],E=f[1]||"",I=typeof R=="function"?R(i):R;XN(I,n.name),g[`--${V}`]=`${I}${E}`}const p=u.style||{},b=Object.keys(p);b.length>0&&b.forEach(V=>{g[V]=p[V]}),u.style=g}return e.__wyw_meta&&e!==s?(u.as=s,y.createElement(e,u)):y.createElement(s,u)},o=y.forwardRef?y.forwardRef(l):i=>{const a=Bm(i,["innerRef"]);return l(a,i.innerRef)};return o.displayName=n.name,o.__wyw_meta={className:n.class||t,extends:e},o}}var v=vN;const Sc=v("div")({name:"SDKContentContainer",class:"s1meqjjv",propsAsIs:!1}),BN=()=>Sc,Ym=v(BN())({name:"SDKWhiteContainer",class:"s1burm22",propsAsIs:!0}),YN=()=>Ym,TN=v(YN())({name:"SDKSummaryContainer",class:"sm5r3j5",propsAsIs:!0}),wN=v("div")({name:"TabsContainer",class:"tysxwr6",propsAsIs:!1}),LN=()=>Sc,kN=v(LN())({name:"LeaderboardContainer",class:"l9er3b1",propsAsIs:!0}),JN=()=>Ym,xN=v(JN())({name:"TabsNavContainer",class:"t19dtrb3",propsAsIs:!0}),QN=v("div")({name:"UserSummaryContainer",class:"u1552n3j",propsAsIs:!1});var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof L2<"u"?L2:typeof self<"u"?self:{},Tm={exports:{}},wm={};/**
19
19
  * @license React
20
20
  * use-sync-external-store-shim.production.js
21
21
  *
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var hl=y;function KN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MN=typeof Object.is=="function"?Object.is:KN,zN=hl.useState,HN=hl.useEffect,ON=hl.useLayoutEffect,DN=hl.useDebugValue;function jN(e,t){var n=t(),l=zN({inst:{value:n,getSnapshot:t}}),o=l[0].inst,i=l[1];return ON(function(){o.value=n,o.getSnapshot=t,Ja(o)&&i({inst:o})},[e,n,t]),HN(function(){return Ja(o)&&i({inst:o}),e(function(){Ja(o)&&i({inst:o})})},[e]),DN(n),n}function Ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!MN(e,n)}catch{return!0}}function PN(e,t){return t()}var _N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PN:jN;wm.useSyncExternalStore=hl.useSyncExternalStore!==void 0?hl.useSyncExternalStore:_N;Tm.exports=wm;var $N=Tm.exports;const xa=(e,t)=>n=>{e.current!==n&&(e.current=n,t())};function qN(e,{keys:t,deps:n=[e,t]}={}){const l=y.useRef();l.current=e.get();const o=y.useCallback(a=>(xa(l,a)(e.value),(t==null?void 0:t.length)>0?bt.listenKeys(e,t,xa(l,a)):e.listen(xa(l,a))),n),i=()=>l.current;return y.useSyncExternalStore?y.useSyncExternalStore(o,i,i):$N.useSyncExternalStore(o,i,i)}const B1=qN,eI=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],tI=m.useTransition||eI,nI={BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",BLUE:"#2d6ffd",GREY_PRIMARY:"#909395",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",PRIMARY_1:"#1D7BFF",PRIMARY_2:"#095CD1",PRIMARY_TEXT:"#090E13",SECONDARY_TEXT:"rgba(10, 14, 19, 0.70)",QUESTION_TYPE_ICON:"#1D7BFF",QUESTION_BODY_TEXT:"#090E13",PRESENTED_BY_TEXT:"#090E13",SUCCESS:"#107D57",UNSUCCESS:"#DF2F3B",SECONDARY_RED1:"#DF2F3B",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_WHITE1:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY9:"#25282A",SDK_CONTAINER_BG:"#F7F7F7",SDK_WHITE_CONTAINER_BG:"#fff",SDK_DARK_CONTAINER_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_BG:"#fff",SDK_PREDICTION_RESULT_INCORRECT_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_TEXT:"#107D57",SDK_PREDICTION_RESULT_ERROR_TITLE:"#090E13",SDK_PREDICTION_RESULT_ERROR_SUBTITLE:"#DF2F3B",SDK_PREDICTION_RESULT_CLOSE_ICON:"#6B6F73",SDK_PREDICTION_FEEDBACK_SUCCESS_ICON:"#107D57",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1:"#CD2525",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2:"#fff",PREDICTION_BG_LINES_CORRECT:"#01AB58",PREDICTION_BG_LINES_INCORRECT:"#888B8D",SKELETON_COLOR_1:"#f1efef",SKELETON_COLOR_2:"#f9f8f8",TABS_CONTAINER_BG:"#F2F2F1",TABS_ACTIVE_BG:"#FFFFFF",TABS_COLOR:"#6B6F73",TABS_ACTIVE_COLOR:"#1D7BFF",CARD_BG:"#FFFFFF",CARD_BORDER:"#fff",BORDER:"#E8E8E8",VOTE_BTN_BG:"#F7F7F7",VOTE_BTN_BORDER:"rgb(232, 232, 232)",VOTE_BTN_DISABLED_BORDER:"#B1B3B3",VOTE_BTN_SELECTED_BORDER:"#25282A",VOTE_BTN_NOT_SELECTED_BORDER:"#E8E8E8",VOTE_BTN_SELECTED_BG:"#FFFFFF",VOTE_BTN_SELECTED_BG_AD_UNIT:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG_UNSET:"rgb(196, 196, 196)",VOTED_ANSWER_BG:"#FFFFFF",VOTED_BTN_RCT_BG:"#2d5694",IN_APP_BG:"rgba(255, 255, 255, 0.90)",IN_APP_QUESTION_TYPE_ICON:"#1D7BFF",IN_APP_QUESTION_TYPE_LABEL:"#82899E",IN_APP_QUESTION_QUOTE:"rgba(10, 14, 19, 0.70)",IN_APP_QUESTION_RESULT_SUBTITLE_BG:"#1D7BFF",IN_APP_QUESTION_RESULT_LINE:"#babfc5",QUOTE_BORDER:"#E8E8E8",QUOTE_TEXT:"rgba(10, 14, 19, 0.70)"},lI={BG_PRIMARY:"#13212b",BG_SECONDARY:"#152430",BG_SECONDARY1:"#435059",BORDER_PRIMARY:"rgba(255, 255, 255, 0.1)",TEXT_PRIMARY:"#f9f9f9",TEXT_PRIMARY1:"#f9f9f9",TEXT_SECONDARY:"rgba(255, 255, 255, 0.8)",TEXT_SECONDARY1:"#878787",WHITE:"#fff"},fu={xs:324,sm:576,md:768,lg:992,xl:1200,xxl:1440};Object.entries(nI).reduce((e,[t,n])=>`
26
+ */var hl=y;function KN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MN=typeof Object.is=="function"?Object.is:KN,zN=hl.useState,HN=hl.useEffect,ON=hl.useLayoutEffect,DN=hl.useDebugValue;function jN(e,t){var n=t(),l=zN({inst:{value:n,getSnapshot:t}}),o=l[0].inst,i=l[1];return ON(function(){o.value=n,o.getSnapshot=t,Ja(o)&&i({inst:o})},[e,n,t]),HN(function(){return Ja(o)&&i({inst:o}),e(function(){Ja(o)&&i({inst:o})})},[e]),DN(n),n}function Ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!MN(e,n)}catch{return!0}}function PN(e,t){return t()}var _N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PN:jN;wm.useSyncExternalStore=hl.useSyncExternalStore!==void 0?hl.useSyncExternalStore:_N;Tm.exports=wm;var $N=Tm.exports;const xa=(e,t)=>n=>{e.current!==n&&(e.current=n,t())};function qN(e,{keys:t,deps:n=[e,t]}={}){const l=y.useRef();l.current=e.get();const o=y.useCallback(a=>(xa(l,a)(e.value),(t==null?void 0:t.length)>0?bt.listenKeys(e,t,xa(l,a)):e.listen(xa(l,a))),n),i=()=>l.current;return y.useSyncExternalStore?y.useSyncExternalStore(o,i,i):$N.useSyncExternalStore(o,i,i)}const B1=qN,eI=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],tI=y.useTransition||eI,nI={BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",BLUE:"#2d6ffd",GREY_PRIMARY:"#909395",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",PRIMARY_1:"#1D7BFF",PRIMARY_2:"#095CD1",PRIMARY_TEXT:"#090E13",SECONDARY_TEXT:"rgba(10, 14, 19, 0.70)",QUESTION_TYPE_ICON:"#1D7BFF",QUESTION_BODY_TEXT:"#090E13",PRESENTED_BY_TEXT:"#090E13",SUCCESS:"#107D57",UNSUCCESS:"#DF2F3B",SECONDARY_RED1:"#DF2F3B",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_WHITE1:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY9:"#25282A",SDK_CONTAINER_BG:"#F7F7F7",SDK_WHITE_CONTAINER_BG:"#fff",SDK_DARK_CONTAINER_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_BG:"#fff",SDK_PREDICTION_RESULT_INCORRECT_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_TEXT:"#107D57",SDK_PREDICTION_RESULT_ERROR_TITLE:"#090E13",SDK_PREDICTION_RESULT_ERROR_SUBTITLE:"#DF2F3B",SDK_PREDICTION_RESULT_CLOSE_ICON:"#6B6F73",SDK_PREDICTION_FEEDBACK_SUCCESS_ICON:"#107D57",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1:"#CD2525",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2:"#fff",PREDICTION_BG_LINES_CORRECT:"#01AB58",PREDICTION_BG_LINES_INCORRECT:"#888B8D",SKELETON_COLOR_1:"#f1efef",SKELETON_COLOR_2:"#f9f8f8",TABS_CONTAINER_BG:"#F2F2F1",TABS_ACTIVE_BG:"#FFFFFF",TABS_COLOR:"#6B6F73",TABS_ACTIVE_COLOR:"#1D7BFF",CARD_BG:"#FFFFFF",CARD_BORDER:"#fff",BORDER:"#E8E8E8",VOTE_BTN_BG:"#F7F7F7",VOTE_BTN_BORDER:"rgb(232, 232, 232)",VOTE_BTN_DISABLED_BORDER:"#B1B3B3",VOTE_BTN_SELECTED_BORDER:"#25282A",VOTE_BTN_NOT_SELECTED_BORDER:"#E8E8E8",VOTE_BTN_SELECTED_BG:"#FFFFFF",VOTE_BTN_SELECTED_BG_AD_UNIT:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG_UNSET:"rgb(196, 196, 196)",VOTED_ANSWER_BG:"#FFFFFF",VOTED_BTN_RCT_BG:"#2d5694",IN_APP_BG:"rgba(255, 255, 255, 0.90)",IN_APP_QUESTION_TYPE_ICON:"#1D7BFF",IN_APP_QUESTION_TYPE_LABEL:"#82899E",IN_APP_QUESTION_QUOTE:"rgba(10, 14, 19, 0.70)",IN_APP_QUESTION_RESULT_SUBTITLE_BG:"#1D7BFF",IN_APP_QUESTION_RESULT_LINE:"#babfc5",QUOTE_BORDER:"#E8E8E8",QUOTE_TEXT:"rgba(10, 14, 19, 0.70)"},lI={BG_PRIMARY:"#13212b",BG_SECONDARY:"#152430",BG_SECONDARY1:"#435059",BORDER_PRIMARY:"rgba(255, 255, 255, 0.1)",TEXT_PRIMARY:"#f9f9f9",TEXT_PRIMARY1:"#f9f9f9",TEXT_SECONDARY:"rgba(255, 255, 255, 0.8)",TEXT_SECONDARY1:"#878787",WHITE:"#fff"},fu={xs:324,sm:576,md:768,lg:992,xl:1200,xxl:1440};Object.entries(nI).reduce((e,[t,n])=>`
27
27
  ${e}
28
28
  --color-${t.toLowerCase().replaceAll("_","-")}: ${n};
29
29
  `,"");Object.entries(lI).reduce((e,[t,n])=>`
@@ -37,7 +37,7 @@
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
- */var pl=y;function UT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var GT=typeof Object.is=="function"?Object.is:UT,XT=pl.useState,vT=pl.useEffect,BT=pl.useLayoutEffect,YT=pl.useDebugValue;function TT(e,t){var n=t(),l=XT({inst:{value:n,getSnapshot:t}}),o=l[0].inst,i=l[1];return BT(function(){o.value=n,o.getSnapshot=t,i2(o)&&i({inst:o})},[e,n,t]),vT(function(){return i2(o)&&i({inst:o}),e(function(){i2(o)&&i({inst:o})})},[e]),YT(n),n}function i2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!GT(e,n)}catch{return!0}}function wT(e,t){return t()}var LT=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wT:TT;fh.useSyncExternalStore=pl.useSyncExternalStore!==void 0?pl.useSyncExternalStore:LT;Eh.exports=fh;var kT=Eh.exports;const a2=(e,t)=>n=>{e.current!==n&&(e.current=n,t())};function JT(e,{keys:t,deps:n=[e,t]}={}){const l=y.useRef();l.current=e.get();const o=y.useCallback(a=>(a2(l,a)(e.value),(t==null?void 0:t.length)>0?bt.listenKeys(e,t,a2(l,a)):e.listen(a2(l,a))),n),i=()=>l.current;return y.useSyncExternalStore?y.useSyncExternalStore(o,i,i):kT.useSyncExternalStore(o,i,i)}const Pe=JT,xT=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],QT=m.useTransition||xT;var KT=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},l=[];t.forEach(i=>{(i?i.split(" "):[]).forEach(s=>{if(s.startsWith("atm_")){const[,r]=s.split("_");n[r]=s}else l.push(s)})});const o=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(n[i]);return o.push(...l),o.join(" ")},mt=KT;function MT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s2=MT(function(e){return zT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),HT=e=>e.toUpperCase()===e,OT=e=>t=>e.indexOf(t)===-1,Ch=(e,t)=>{const n={};return Object.keys(e).filter(OT(t)).forEach(l=>{n[l]=e[l]}),n};function DT(e,t,n){const l=Ch(t,n);if(!e){const o=typeof s2=="function"?{default:s2}:s2;Object.keys(l).forEach(i=>{o.default(i)||delete l[i]})}return l}var jT=(e,t)=>{};function PT(e){let t="";return n=>{const l=(i,a)=>{const{as:s=e,class:r=t}=i,c=n.propsAsIs===void 0?!(typeof s=="string"&&s.indexOf("-")===-1&&!HT(s[0])):n.propsAsIs,u=DT(c,i,["as","class"]);u.ref=a,u.className=n.atomic?mt(n.class,u.className||r):mt(u.className||r,n.class);const{vars:h}=n;if(h){const g={};for(const V in h){const f=h[V],R=f[0],E=f[1]||"",I=typeof R=="function"?R(i):R;jT(I,n.name),g[`--${V}`]=`${I}${E}`}const p=u.style||{},b=Object.keys(p);b.length>0&&b.forEach(V=>{g[V]=p[V]}),u.style=g}return e.__wyw_meta&&e!==s?(u.as=s,y.createElement(e,u)):y.createElement(s,u)},o=y.forwardRef?y.forwardRef(l):i=>{const a=Ch(i,["innerRef"]);return l(a,i.innerRef)};return o.displayName=n.name,o.__wyw_meta={className:n.class||t,extends:e},o}}var A=PT;const _T=A("div")({name:"SDKScrollContainer",class:"s102vcph",propsAsIs:!1}),Dc=A("div")({name:"SDKContentContainer",class:"s1meqjjv",propsAsIs:!1}),$T=()=>Dc,yh=A($T())({name:"SDKWhiteContainer",class:"s1burm22",propsAsIs:!0}),qT=()=>yh,ew=A(qT())({name:"SDKSummaryContainer",class:"sm5r3j5",propsAsIs:!0}),tw=A("div")({name:"TabsContainer",class:"tysxwr6",propsAsIs:!1}),nw=()=>Dc,lw=A(nw())({name:"LeaderboardContainer",class:"l9er3b1",propsAsIs:!0}),ow=()=>yh,iw=A(ow())({name:"TabsNavContainer",class:"t19dtrb3",propsAsIs:!0}),aw=A("div")({name:"UserSummaryContainer",class:"u1552n3j",propsAsIs:!1}),sw={BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",BLUE:"#2d6ffd",GREY_PRIMARY:"#909395",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",PRIMARY_1:"#1D7BFF",PRIMARY_2:"#095CD1",PRIMARY_TEXT:"#090E13",SECONDARY_TEXT:"rgba(10, 14, 19, 0.70)",QUESTION_TYPE_ICON:"#1D7BFF",QUESTION_BODY_TEXT:"#090E13",PRESENTED_BY_TEXT:"#090E13",SUCCESS:"#107D57",UNSUCCESS:"#DF2F3B",SECONDARY_RED1:"#DF2F3B",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_WHITE1:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY9:"#25282A",SDK_CONTAINER_BG:"#F7F7F7",SDK_WHITE_CONTAINER_BG:"#fff",SDK_DARK_CONTAINER_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_BG:"#fff",SDK_PREDICTION_RESULT_INCORRECT_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_TEXT:"#107D57",SDK_PREDICTION_RESULT_ERROR_TITLE:"#090E13",SDK_PREDICTION_RESULT_ERROR_SUBTITLE:"#DF2F3B",SDK_PREDICTION_RESULT_CLOSE_ICON:"#6B6F73",SDK_PREDICTION_FEEDBACK_SUCCESS_ICON:"#107D57",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1:"#CD2525",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2:"#fff",PREDICTION_BG_LINES_CORRECT:"#01AB58",PREDICTION_BG_LINES_INCORRECT:"#888B8D",SKELETON_COLOR_1:"#f1efef",SKELETON_COLOR_2:"#f9f8f8",TABS_CONTAINER_BG:"#F2F2F1",TABS_ACTIVE_BG:"#FFFFFF",TABS_COLOR:"#6B6F73",TABS_ACTIVE_COLOR:"#1D7BFF",CARD_BG:"#FFFFFF",CARD_BORDER:"#fff",BORDER:"#E8E8E8",VOTE_BTN_BG:"#F7F7F7",VOTE_BTN_BORDER:"rgb(232, 232, 232)",VOTE_BTN_DISABLED_BORDER:"#B1B3B3",VOTE_BTN_SELECTED_BORDER:"#25282A",VOTE_BTN_NOT_SELECTED_BORDER:"#E8E8E8",VOTE_BTN_SELECTED_BG:"#FFFFFF",VOTE_BTN_SELECTED_BG_AD_UNIT:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG_UNSET:"rgb(196, 196, 196)",VOTED_ANSWER_BG:"#FFFFFF",VOTED_BTN_RCT_BG:"#2d5694",IN_APP_BG:"rgba(255, 255, 255, 0.90)",IN_APP_QUESTION_TYPE_ICON:"#1D7BFF",IN_APP_QUESTION_TYPE_LABEL:"#82899E",IN_APP_QUESTION_QUOTE:"rgba(10, 14, 19, 0.70)",IN_APP_QUESTION_RESULT_SUBTITLE_BG:"#1D7BFF",IN_APP_QUESTION_RESULT_LINE:"#babfc5",QUOTE_BORDER:"#E8E8E8",QUOTE_TEXT:"rgba(10, 14, 19, 0.70)"},rw={BG_PRIMARY:"#13212b",BG_SECONDARY:"#152430",BG_SECONDARY1:"#435059",BORDER_PRIMARY:"rgba(255, 255, 255, 0.1)",TEXT_PRIMARY:"#f9f9f9",TEXT_PRIMARY1:"#f9f9f9",TEXT_SECONDARY:"rgba(255, 255, 255, 0.8)",TEXT_SECONDARY1:"#878787",WHITE:"#fff"},cw=["#107D57","#DF2F3B","#DF2F3B","#E8E8E8"],dw="#cee5de",uw="#f9d6d8",mw="#E8E8E8",Zh={xs:324,sm:576,md:768,lg:992,xl:1200,xxl:1440};Object.entries(sw).reduce((e,[t,n])=>`
40
+ */var pl=y;function UT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var GT=typeof Object.is=="function"?Object.is:UT,XT=pl.useState,vT=pl.useEffect,BT=pl.useLayoutEffect,YT=pl.useDebugValue;function TT(e,t){var n=t(),l=XT({inst:{value:n,getSnapshot:t}}),o=l[0].inst,i=l[1];return BT(function(){o.value=n,o.getSnapshot=t,i2(o)&&i({inst:o})},[e,n,t]),vT(function(){return i2(o)&&i({inst:o}),e(function(){i2(o)&&i({inst:o})})},[e]),YT(n),n}function i2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!GT(e,n)}catch{return!0}}function wT(e,t){return t()}var LT=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wT:TT;fh.useSyncExternalStore=pl.useSyncExternalStore!==void 0?pl.useSyncExternalStore:LT;Eh.exports=fh;var kT=Eh.exports;const a2=(e,t)=>n=>{e.current!==n&&(e.current=n,t())};function JT(e,{keys:t,deps:n=[e,t]}={}){const l=y.useRef();l.current=e.get();const o=y.useCallback(a=>(a2(l,a)(e.value),(t==null?void 0:t.length)>0?bt.listenKeys(e,t,a2(l,a)):e.listen(a2(l,a))),n),i=()=>l.current;return y.useSyncExternalStore?y.useSyncExternalStore(o,i,i):kT.useSyncExternalStore(o,i,i)}const Pe=JT,xT=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],QT=y.useTransition||xT;var KT=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},l=[];t.forEach(i=>{(i?i.split(" "):[]).forEach(s=>{if(s.startsWith("atm_")){const[,r]=s.split("_");n[r]=s}else l.push(s)})});const o=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(n[i]);return o.push(...l),o.join(" ")},mt=KT;function MT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s2=MT(function(e){return zT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),HT=e=>e.toUpperCase()===e,OT=e=>t=>e.indexOf(t)===-1,Ch=(e,t)=>{const n={};return Object.keys(e).filter(OT(t)).forEach(l=>{n[l]=e[l]}),n};function DT(e,t,n){const l=Ch(t,n);if(!e){const o=typeof s2=="function"?{default:s2}:s2;Object.keys(l).forEach(i=>{o.default(i)||delete l[i]})}return l}var jT=(e,t)=>{};function PT(e){let t="";return n=>{const l=(i,a)=>{const{as:s=e,class:r=t}=i,c=n.propsAsIs===void 0?!(typeof s=="string"&&s.indexOf("-")===-1&&!HT(s[0])):n.propsAsIs,u=DT(c,i,["as","class"]);u.ref=a,u.className=n.atomic?mt(n.class,u.className||r):mt(u.className||r,n.class);const{vars:h}=n;if(h){const g={};for(const V in h){const f=h[V],R=f[0],E=f[1]||"",I=typeof R=="function"?R(i):R;jT(I,n.name),g[`--${V}`]=`${I}${E}`}const p=u.style||{},b=Object.keys(p);b.length>0&&b.forEach(V=>{g[V]=p[V]}),u.style=g}return e.__wyw_meta&&e!==s?(u.as=s,y.createElement(e,u)):y.createElement(s,u)},o=y.forwardRef?y.forwardRef(l):i=>{const a=Ch(i,["innerRef"]);return l(a,i.innerRef)};return o.displayName=n.name,o.__wyw_meta={className:n.class||t,extends:e},o}}var A=PT;const _T=A("div")({name:"SDKScrollContainer",class:"s102vcph",propsAsIs:!1}),Dc=A("div")({name:"SDKContentContainer",class:"s1meqjjv",propsAsIs:!1}),$T=()=>Dc,yh=A($T())({name:"SDKWhiteContainer",class:"s1burm22",propsAsIs:!0}),qT=()=>yh,ew=A(qT())({name:"SDKSummaryContainer",class:"sm5r3j5",propsAsIs:!0}),tw=A("div")({name:"TabsContainer",class:"tysxwr6",propsAsIs:!1}),nw=()=>Dc,lw=A(nw())({name:"LeaderboardContainer",class:"l9er3b1",propsAsIs:!0}),ow=()=>yh,iw=A(ow())({name:"TabsNavContainer",class:"t19dtrb3",propsAsIs:!0}),aw=A("div")({name:"UserSummaryContainer",class:"u1552n3j",propsAsIs:!1}),sw={BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",BLUE:"#2d6ffd",GREY_PRIMARY:"#909395",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",PRIMARY_1:"#1D7BFF",PRIMARY_2:"#095CD1",PRIMARY_TEXT:"#090E13",SECONDARY_TEXT:"rgba(10, 14, 19, 0.70)",QUESTION_TYPE_ICON:"#1D7BFF",QUESTION_BODY_TEXT:"#090E13",PRESENTED_BY_TEXT:"#090E13",SUCCESS:"#107D57",UNSUCCESS:"#DF2F3B",SECONDARY_RED1:"#DF2F3B",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_WHITE1:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY9:"#25282A",SDK_CONTAINER_BG:"#F7F7F7",SDK_WHITE_CONTAINER_BG:"#fff",SDK_DARK_CONTAINER_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_BG:"#fff",SDK_PREDICTION_RESULT_INCORRECT_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_TEXT:"#107D57",SDK_PREDICTION_RESULT_ERROR_TITLE:"#090E13",SDK_PREDICTION_RESULT_ERROR_SUBTITLE:"#DF2F3B",SDK_PREDICTION_RESULT_CLOSE_ICON:"#6B6F73",SDK_PREDICTION_FEEDBACK_SUCCESS_ICON:"#107D57",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1:"#CD2525",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2:"#fff",PREDICTION_BG_LINES_CORRECT:"#01AB58",PREDICTION_BG_LINES_INCORRECT:"#888B8D",SKELETON_COLOR_1:"#f1efef",SKELETON_COLOR_2:"#f9f8f8",TABS_CONTAINER_BG:"#F2F2F1",TABS_ACTIVE_BG:"#FFFFFF",TABS_COLOR:"#6B6F73",TABS_ACTIVE_COLOR:"#1D7BFF",CARD_BG:"#FFFFFF",CARD_BORDER:"#fff",BORDER:"#E8E8E8",VOTE_BTN_BG:"#F7F7F7",VOTE_BTN_BORDER:"rgb(232, 232, 232)",VOTE_BTN_DISABLED_BORDER:"#B1B3B3",VOTE_BTN_SELECTED_BORDER:"#25282A",VOTE_BTN_NOT_SELECTED_BORDER:"#E8E8E8",VOTE_BTN_SELECTED_BG:"#FFFFFF",VOTE_BTN_SELECTED_BG_AD_UNIT:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG_UNSET:"rgb(196, 196, 196)",VOTED_ANSWER_BG:"#FFFFFF",VOTED_BTN_RCT_BG:"#2d5694",IN_APP_BG:"rgba(255, 255, 255, 0.90)",IN_APP_QUESTION_TYPE_ICON:"#1D7BFF",IN_APP_QUESTION_TYPE_LABEL:"#82899E",IN_APP_QUESTION_QUOTE:"rgba(10, 14, 19, 0.70)",IN_APP_QUESTION_RESULT_SUBTITLE_BG:"#1D7BFF",IN_APP_QUESTION_RESULT_LINE:"#babfc5",QUOTE_BORDER:"#E8E8E8",QUOTE_TEXT:"rgba(10, 14, 19, 0.70)"},rw={BG_PRIMARY:"#13212b",BG_SECONDARY:"#152430",BG_SECONDARY1:"#435059",BORDER_PRIMARY:"rgba(255, 255, 255, 0.1)",TEXT_PRIMARY:"#f9f9f9",TEXT_PRIMARY1:"#f9f9f9",TEXT_SECONDARY:"rgba(255, 255, 255, 0.8)",TEXT_SECONDARY1:"#878787",WHITE:"#fff"},cw=["#107D57","#DF2F3B","#DF2F3B","#E8E8E8"],dw="#cee5de",uw="#f9d6d8",mw="#E8E8E8",Zh={xs:324,sm:576,md:768,lg:992,xl:1200,xxl:1440};Object.entries(sw).reduce((e,[t,n])=>`
41
41
  ${e}
42
42
  --color-${t.toLowerCase().replaceAll("_","-")}: ${n};
43
43
  `,"");Object.entries(rw).reduce((e,[t,n])=>`