@streamlayer/react 1.23.0 → 1.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/pause-ad.d.ts +2 -4
- package/lib/app/polymarket.d.ts +7 -0
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +28 -223
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -0
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/cjs/index-eShKGO10.js +1 -5
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -4
- package/lib/cjs/index11.js +3 -1
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +3 -1
- package/lib/cjs/index14.js +1 -1
- package/lib/cjs/index15.js +1 -5
- package/lib/cjs/index16.js +3 -0
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +3 -5
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +1 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +1 -13
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +9 -0
- package/lib/cjs/sl-types.js +1 -15
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/style.css +1 -0
- package/lib/cjs/theme.js +1 -17
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +3 -17
- package/lib/cjs/utils.js +1 -47
- package/lib/classic/app/pause-ad.d.ts +2 -4
- package/lib/classic/app/polymarket.d.ts +7 -0
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +28 -223
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +3 -5
- package/lib/classic/cjs/feature.js +1 -0
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/classic/cjs/index-eShKGO10.js +1 -5
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -4
- package/lib/classic/cjs/index13.js +3 -0
- package/lib/classic/cjs/index2.js +3 -5
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -1
- package/lib/classic/cjs/index7.js +1 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +3 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +9 -0
- package/lib/classic/cjs/sl-types.js +1 -15
- package/lib/classic/cjs/style.css +1 -0
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +3 -17
- package/lib/classic/cjs/utils.js +1 -47
- package/lib/classic/es/Question.js +277 -264
- package/lib/classic/es/advertisement.js +34990 -18881
- package/lib/classic/es/analytics.js +58 -56
- package/lib/classic/es/auth.js +14 -8
- package/lib/classic/es/bet-pack.js +2448 -2418
- package/lib/classic/es/feature.js +108 -0
- package/lib/classic/es/gamification-feature.js +2 -2
- package/lib/classic/es/hooks-WfHlJH12.js +98 -0
- package/lib/classic/es/index-eShKGO10.js +948 -948
- package/lib/classic/es/index.js +13 -13
- package/lib/classic/es/index10.js +83 -2295
- package/lib/classic/es/index11.js +3095 -179
- package/lib/classic/es/index12.js +174 -821
- package/lib/classic/es/index13.js +850 -0
- package/lib/classic/es/index2.js +2099 -1763
- package/lib/classic/es/index3.js +11 -11
- package/lib/classic/es/index4.js +127 -127
- package/lib/classic/es/index5.js +3 -5
- package/lib/classic/es/index6.js +10 -11
- package/lib/classic/es/index7.js +6 -62
- package/lib/classic/es/index8.js +9 -316
- package/lib/classic/es/index9.js +316 -82
- package/lib/classic/es/insight.js +58 -53
- package/lib/classic/es/notification.js +5 -5
- package/lib/classic/es/notification2.js +765 -722
- package/lib/classic/es/pause-ad.js +190 -167
- package/lib/classic/es/points.js +55 -47
- package/lib/classic/es/polymarket.js +6848 -0
- package/lib/classic/es/sl-types.js +193 -125
- package/lib/classic/es/useStreamLayerApp.js +2 -2
- package/lib/classic/es/useStreamLayerApp2.js +9727 -7592
- package/lib/classic/es/utils.js +28 -28
- package/lib/classic/index.d.ts +1 -0
- package/lib/classic/style.css +1 -0
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/index-eShKGO10.js +1 -5
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +3 -77
- package/lib/dist/es/gamification-feature.js +2 -2
- package/lib/dist/es/index-eShKGO10.js +948 -948
- package/lib/dist/es/index.js +7 -8
- package/lib/dist/es/masters.js +18212 -14741
- package/lib/dist/index.d.ts +29 -8
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +108 -106
- package/lib/es/advertisement.js +34990 -18881
- package/lib/es/analytics.js +58 -56
- package/lib/es/auth.js +14 -8
- package/lib/es/bet-pack.js +29 -17
- package/lib/es/feature.js +108 -0
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/gamification-feature2.js +2 -2
- package/lib/es/hooks-WfHlJH12.js +98 -0
- package/lib/es/index-eShKGO10.js +948 -948
- package/lib/es/index.js +14 -13
- package/lib/es/index10.js +258 -816
- package/lib/es/index11.js +837 -170
- package/lib/es/index12.js +181 -312
- package/lib/es/index13.js +316 -82
- package/lib/es/index14.js +83 -2350
- package/lib/es/index15.js +3069 -1224
- package/lib/es/index16.js +1453 -0
- package/lib/es/index2.js +1118 -984
- package/lib/es/index3.js +3 -62
- package/lib/es/index4.js +2424 -2407
- package/lib/es/index5.js +11 -11
- package/lib/es/index6.js +127 -127
- package/lib/es/index7.js +10 -7
- package/lib/es/index8.js +5 -9
- package/lib/es/index9.js +10 -265
- package/lib/es/insight.js +58 -53
- package/lib/es/masters.js +6 -5
- package/lib/es/masters2.js +696 -558
- package/lib/es/notification.js +697 -655
- package/lib/es/pause-ad.js +190 -167
- package/lib/es/points.js +56 -48
- package/lib/es/polymarket.js +6848 -0
- package/lib/es/sl-types.js +200 -132
- package/lib/es/storage.js +75 -74
- package/lib/es/theme.js +177 -31
- package/lib/es/useStreamLayerApp.js +2 -2
- package/lib/es/useStreamLayerApp2.js +9727 -7592
- package/lib/es/utils.js +28 -28
- package/lib/index.d.ts +1 -0
- package/lib/style.css +1 -1
- package/package.json +33 -20
- package/lib/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/classic/es/hooks-B0Qttldg.js +0 -98
- package/lib/es/hooks-B0Qttldg.js +0 -98
package/lib/cjs/index15.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";const g2=require("nanostores"),M=require("./index3.js"),u=require("react"),s=require("./sl-types.js"),e=require("react/jsx-runtime"),T=require("./index8.js"),z=require("./index11.js"),O=require("react-dom"),v2=require("./utils.js"),q=require("./storage.js"),j2=require("./index9.js"),u2=require("./index12.js"),b=require("./useStreamLayerApp2.js"),$=require("./index6.js"),I2=require("./index5.js"),A2=require("./index10.js"),L2=require("./analytics.js"),w2=i=>g2.atom(i),b2=i=>{const t=s.useStore(i.getActiveFeature()),n=s.useStore(i.streamStore()),[l,r]=u.useState(null);return u.useEffect(()=>{const o=i.getFeatures();if(!t)r(null);else for(const[c,d]of o)c===t?(d.status.get()===M.FeatureStatus.Suspended&&d.enable(),r(d)):d.status.get()===M.FeatureStatus.Ready&&d.disable();return()=>{for(const[,c]of o)c.status.get()===M.FeatureStatus.Ready&&c.disable()}},[t,i,n]),[t,l]},$2=s.styled_default("div")({name:"Container",class:"c1zy8a",propsAsIs:!1}),T2=s.styled_default("div")({name:"Title",class:"t1vih9p5",propsAsIs:!1}),H2=s.styled_default("div")({name:"Indicator",class:"i1fbnvpb",propsAsIs:!1}),D=({indicator:i,title:t})=>e.jsxs($2,{children:[e.jsx(T2,{children:t}),e.jsx(H2,{children:i})]}),V2=s.styled_default("div")({name:"Container",class:"ctmhwyc",propsAsIs:!1}),k2=s.styled_default("div")({name:"Indicator",class:"i1jri200",propsAsIs:!1}),z2=s.styled_default("div")({name:"Title",class:"t8s05oq",propsAsIs:!1}),R=({indicator:i,title:t})=>e.jsxs(V2,{children:[e.jsx(k2,{children:i}),e.jsx(z2,{children:t})]}),S2=s.styled_default("div")({name:"Container",class:"c1yrpn9o",propsAsIs:!1}),q2=s.styled_default("div")({name:"TopInfo",class:"t17fwahh",propsAsIs:!1}),R2=s.styled_default("div")({name:"BottomInfo",class:"by6w7e9",propsAsIs:!1}),F2=s.styled_default("div")({name:"User",class:"u1g7arbm",propsAsIs:!1}),E2=s.styled_default("img")({name:"Avatar",class:"a1ldeata",propsAsIs:!1}),B2=s.styled_default("div")({name:"UserInfo",class:"u10d4koz",propsAsIs:!1}),M2=s.styled_default("div")({name:"UserName",class:"u1q6roj0",propsAsIs:!1}),N2=s.styled_default("div")({name:"UserRating",class:"ui0m425",propsAsIs:!1}),Z2=s.styled_default("img")({name:"TrophyIcon",class:"t1el3mrn",propsAsIs:!1}),O2=s.styled_default("div")({name:"RtsContainer",class:"r2vgnxv",propsAsIs:!1}),W2=s.styled_default("div")({name:"RtsDivider",class:"roqn06j",propsAsIs:!1}),G2=s.styled_default("div")({name:"Rts",class:"r15adx7c",propsAsIs:!1}),Q=s.styled_default("div")({name:"RtsIndicator",class:"rv59lta",propsAsIs:!1}),U=s.styled_default("div")({name:"RtsLabel",class:"r55lotb",propsAsIs:!1}),P2=s.styled_default("div")({name:"Divider",class:"d1knfgqt",propsAsIs:!1}),D2=s.styled_default("div")({name:"Ranks",class:"r1mqo824",propsAsIs:!1}),Q2=s.styled_default("div")({name:"Statistics",class:"sxareh6",propsAsIs:!1}),U2=s.styled_default("div")({name:"AvatarPlaceholder",class:"amcu48h",propsAsIs:!1}),Y2=s.styled_default("button")({name:"UserAccountBtn",class:"u32nfkp",propsAsIs:!1}),K2="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",J2=({loading:i,hideFriendsRank:t,avatar:n,name:l,points:r,friendsRank:o,rank:c,streak:d,correct:h,incorrect:y,inTop:j,successRate:v})=>e.jsxs(S2,{"data-loading":i,children:[e.jsx(q2,{children:e.jsx(T.i,{loading:i,children:e.jsxs(F2,{children:[e.jsxs(Y2,{children:[n&&e.jsx(E2,{alt:"avatar",src:n}),!n&&e.jsx(U2,{children:z.I(l||"")})]}),e.jsxs(B2,{children:[e.jsx(M2,{children:l}),e.jsxs(N2,{children:[e.jsxs(O2,{children:[e.jsxs(G2,{children:[e.jsx(Z2,{alt:"rank-icon",src:K2}),e.jsxs(Q,{children:[z.s(r),e.jsx(U,{children:"PTS"})]})]}),t&&e.jsxs(Q,{children:[e.jsx(W2,{}),c||0,e.jsx(U,{children:"global rank"})]})]}),!t&&e.jsxs(e.Fragment,{children:[e.jsx(P2,{}),e.jsxs("div",{children:["TOP ",j||0,"%"]})]})]})]})]})})}),e.jsxs(R2,{children:[!t&&e.jsxs(D2,{children:[e.jsx(T.i,{loading:i,style:{width:"100%"},children:e.jsx(D,{indicator:o||0,title:"Friends rank"})}),e.jsx(T.i,{loading:i,style:{width:"100%"},children:e.jsx(D,{indicator:c||0,title:"Global rank"})})]}),e.jsx(T.i,{loading:i,children:e.jsxs(Q2,{children:[e.jsx(R,{indicator:d||0,title:"Win streak"}),e.jsx(R,{indicator:h||0,title:"Correct"}),e.jsx(R,{indicator:y||0,title:"Incorrect"}),e.jsx(R,{indicator:`${v||0}%`,title:"Succ. rate"})]})})]})]}),X2=s.styled_default("div")({name:"StaticContainer",class:"svm502q",propsAsIs:!1}),e0=`
|
|
2
|
-
.sl-pill-button {
|
|
3
|
-
display: none !important;
|
|
4
|
-
}
|
|
5
|
-
`,h2=()=>window.innerWidth>=s.A.md&&window.innerWidth<s.A.lg?76:53,Y=i=>{var t;const n=h2();return Math.round((((t=i.current)==null?void 0:t.getBoundingClientRect().y)||0)-n)<=0},s0=({children:i,container:t,useContainer:n,staticStyles:l})=>{const[r]=u.useState(()=>Y(t)),[o,c]=u.useState(!1);return u.useEffect(()=>{if(!t.current||!r)return c(!0),()=>{};const d=window.scrollY;return c(!0),()=>{Y(t)&&window.scrollTo({top:d,behavior:"instant"})}},[]),u.useEffect(()=>{if(o&&t.current&&r){const d=h2();window.scrollTo({top:t.current.offsetTop-d,behavior:"instant"})}},[o]),!t.current||!o?null:n?O.createPortal(e.jsxs(X2,{className:"StaticContainer",children:[i,e.jsx("style",{children:v2.u}),e.jsx("style",{children:e0})]}),t.current,"modal-node"):O.createPortal(e.jsxs(e.Fragment,{children:[i,e.jsx("style",{children:l})]}),t.current,"modal-node")},t0=s.styled_default("button")({name:"Container",class:"cpjnajb",propsAsIs:!1}),i0=s.styled_default("div")({name:"Content",class:"c4m6kaz",propsAsIs:!1}),n0=s.styled_default("span")({name:"Title",class:"t1h8t9cc",propsAsIs:!1}),l0=()=>e.jsx(t0,{children:e.jsxs(i0,{children:[e.jsx($.B1,{name:"iconCopySuccess"}),e.jsx(n0,{children:"Link Copied to Clipboard"})]})}),C2=i=>{const t=u.useRef(),[n,l]=u.useState(null),r=u.useCallback(async o=>{var c;if(o&&(c=navigator==null?void 0:navigator.clipboard)!=null&&c.writeText){t.current&&(clearTimeout(t.current),l(null));try{await navigator.clipboard.writeText(o),i.current&&(l(O.createPortal(e.jsx(l0,{}),i.current)),t.current=setTimeout(()=>{l(null)},1e3))}catch(d){console.error("Unable to copy to clipboard",d)}}},[i]);return u.useEffect(()=>()=>{clearTimeout(t.current)},[]),[r,n]};let L;typeof window<"u"?L=window:typeof self<"u"?L=self:L=b.global;let W=null,G=null;const K=20,N=L.clearTimeout,J=L.setTimeout,Z=L.cancelAnimationFrame||L.mozCancelAnimationFrame||L.webkitCancelAnimationFrame,X=L.requestAnimationFrame||L.mozRequestAnimationFrame||L.webkitRequestAnimationFrame;Z==null||X==null?(W=N,G=function(t){return J(t,K)}):(W=function([t,n]){Z(t),N(n)},G=function(t){const n=X(function(){N(l),t()}),l=J(function(){Z(n),t()},K);return[n,l]});function a0(i){let t,n,l,r,o,c,d;const h=typeof document<"u"&&document.attachEvent;if(!h){c=function(f){const C=f.__resizeTriggers__,A=C.firstElementChild,g=C.lastElementChild,w=A.firstElementChild;g.scrollLeft=g.scrollWidth,g.scrollTop=g.scrollHeight,w.style.width=A.offsetWidth+1+"px",w.style.height=A.offsetHeight+1+"px",A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight},o=function(f){return f.offsetWidth!==f.__resizeLast__.width||f.offsetHeight!==f.__resizeLast__.height},d=function(f){if(f.target.className&&typeof f.target.className.indexOf=="function"&&f.target.className.indexOf("contract-trigger")<0&&f.target.className.indexOf("expand-trigger")<0)return;const C=this;c(this),this.__resizeRAF__&&W(this.__resizeRAF__),this.__resizeRAF__=G(function(){o(C)&&(C.__resizeLast__.width=C.offsetWidth,C.__resizeLast__.height=C.offsetHeight,C.__resizeListeners__.forEach(function(w){w.call(C,f)}))})};let a=!1,p="";l="animationstart";const m="Webkit Moz O ms".split(" ");let _="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),x="";{const f=document.createElement("fakeelement");if(f.style.animationName!==void 0&&(a=!0),a===!1){for(let C=0;C<m.length;C++)if(f.style[m[C]+"AnimationName"]!==void 0){x=m[C],p="-"+x.toLowerCase()+"-",l=_[C],a=!0;break}}}n="resizeanim",t="@"+p+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",r=p+"animation: 1ms "+n+"; "}const y=function(a){if(!a.getElementById("detectElementResize")){const p=(t||"")+".resize-triggers { "+(r||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',m=a.head||a.getElementsByTagName("head")[0],_=a.createElement("style");_.id="detectElementResize",_.type="text/css",i!=null&&_.setAttribute("nonce",i),_.styleSheet?_.styleSheet.cssText=p:_.appendChild(a.createTextNode(p)),m.appendChild(_)}};return{addResizeListener:function(a,p){if(h)a.attachEvent("onresize",p);else{if(!a.__resizeTriggers__){const m=a.ownerDocument,_=L.getComputedStyle(a);_&&_.position==="static"&&(a.style.position="relative"),y(m),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=m.createElement("div")).className="resize-triggers";const x=m.createElement("div");x.className="expand-trigger",x.appendChild(m.createElement("div"));const f=m.createElement("div");f.className="contract-trigger",a.__resizeTriggers__.appendChild(x),a.__resizeTriggers__.appendChild(f),a.appendChild(a.__resizeTriggers__),c(a),a.addEventListener("scroll",d,!0),l&&(a.__resizeTriggers__.__animationListener__=function(A){A.animationName===n&&c(a)},a.__resizeTriggers__.addEventListener(l,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(p)}},removeResizeListener:function(a,p){if(h)a.detachEvent("onresize",p);else if(a.__resizeListeners__.splice(a.__resizeListeners__.indexOf(p),1),!a.__resizeListeners__.length){a.removeEventListener("scroll",d,!0),a.__resizeTriggers__.__animationListener__&&(a.__resizeTriggers__.removeEventListener(l,a.__resizeTriggers__.__animationListener__),a.__resizeTriggers__.__animationListener__=null);try{a.__resizeTriggers__=!a.removeChild(a.__resizeTriggers__)}catch{}}}}}class r0 extends u.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:l,onResize:r}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},c=parseFloat(o.paddingLeft||"0"),d=parseFloat(o.paddingRight||"0"),h=parseFloat(o.paddingTop||"0"),y=parseFloat(o.paddingBottom||"0"),j=this._parentNode.getBoundingClientRect(),v=j.height-h-y,a=j.width-c-d,p=this._parentNode.offsetHeight-h-y,m=this._parentNode.offsetWidth-c-d;(!n&&(this.state.height!==p||this.state.scaledHeight!==v)||!l&&(this.state.width!==m||this.state.scaledWidth!==a))&&(this.setState({height:p,width:m,scaledHeight:v,scaledWidth:a}),typeof r=="function"&&r({height:p,scaledHeight:v,scaledWidth:a,width:m}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const l=n.ownerDocument.defaultView.ResizeObserver;l!=null?(this._resizeObserver=new l(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=a0(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:l,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:c=!1,nonce:d,onResize:h,style:y={},tagName:j="div",...v}=this.props,{height:a,scaledHeight:p,scaledWidth:m,width:_}=this.state,x={overflow:"visible"},f={};let C=!1;return r||(a===0&&(C=!0),x.height=0,f.height=a,f.scaledHeight=p),o||(_===0&&(C=!0),x.width=0,f.width=_,f.scaledWidth=m),c&&(C=!1),u.createElement(j,{ref:this._setRef,style:{...x,...y},...v},!C&&t(f))}}const o0=s.styled_default("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),d0=s.styled_default("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),c0=()=>$.B1,p0=s.styled_default(c0())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),u0=s.styled_default("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),h0=s.styled_default("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),C0=s.styled_default("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),f0=s.styled_default("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),m0=s.styled_default("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),_0=s.styled_default("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),x0=s.styled_default("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),y0=()=>$.B1,g0=s.styled_default(y0())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),f2=({inviteLink:i,inviteCardTitle:t,inviteCardSubtext:n,primaryColor:l,className:r})=>{const o=u.useRef(null),[c,d]=C2(o),[h]=L2.f$1({type:"invitation",action:"sent",payload:{from:b.InvitationFrom.MENU}});return e.jsxs(o0,{className:r,children:[e.jsx(d0,{style:{backgroundColor:l},children:e.jsx(p0,{name:"invite-game-icon"})}),e.jsxs(u0,{children:[e.jsx(h0,{children:t||""}),e.jsx(C0,{children:n||""})]}),i&&e.jsxs(f0,{ref:o,"data-a":"intr",onClick:h(()=>c(i)),children:[e.jsxs(m0,{children:[e.jsx(_0,{children:"Invite link"}),e.jsx(x0,{children:i})]}),e.jsx(g0,{name:"icon-copy"})]}),d]})},v0=()=>q.r,j0=s.styled_default(v0())({name:"Container",class:"cll3md7",propsAsIs:!0}),I0=()=>q.S,A0=s.styled_default(I0())({name:"ActionBtn",class:"a10g1iik",propsAsIs:!0}),L0=({questionId:i,...t})=>e.jsxs(j0,{"data-a":"intr","data-name":i,children:[e.jsx(j2.O,{questionId:i,...t}),e.jsx(A0,{"data-a":"intr","data-name":i,children:"View Insight"})]}),w0=()=>q.r,b0=s.styled_default(w0())({name:"Container",class:"cl56x6b",propsAsIs:!0}),$0=s.styled_default("button")({name:"ActionButton",class:"a11pzf92",propsAsIs:!1}),T0=s.styled_default("blockquote")({name:"Quote",class:"q1hbaleq",propsAsIs:!1}),H0=({...i})=>e.jsxs(b0,{"data-a":"intr","data-name":i.tweetId,children:[i.title&&e.jsx(T0,{children:i.title}),e.jsx(z.b,{...i}),e.jsx($0,{"data-a":"intr","data-name":i.tweetId,children:"View Insight"})]}),e2=s.styled_default("div")({name:"QuestionsContainer",class:"qvghv3l",propsAsIs:!1}),V0=({questions:i,openQuestion:t,controlVideo:n})=>{const l=r=>{const o=r.target.getAttribute("data-name");o&&(u2.wt(),t(o,{openedFrom:"list"}))};return i?e.jsx(e2,{"data-a":"intr",onClick:l,children:i==null?void 0:i.map(r=>{var o,c,d;if(r.type==="question"&&((o=r.attributes)==null?void 0:o.attributes.case)==="question"){const h=r.attributes.attributes.value;return e.jsx(q.R,{...h},h.questionId)}if(r.type==="insight"&&((c=r.attributes)==null?void 0:c.attributes.case)==="insight"){const h=r.attributes.attributes.value;return e.jsx(L0,{controlVideo:n,...h},h.questionId)}if(r.type==="tweet"&&((d=r.attributes)==null?void 0:d.attributes.case)==="tweet"){const h=r.attributes.attributes.value,y=r.attributes.id;return e.jsx(H0,{controlVideo:n,...h,tweetId:y},y)}return null})}):e.jsx(e2,{children:Array.from({length:5}).map((r,o)=>e.jsx(q.D,{},o))})},k0=s.styled_default("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),z0=s.styled_default("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),S0=s.styled_default("div")({name:"ImageContainer",class:"i1qne9g6",propsAsIs:!1}),q0=s.styled_default("div")({name:"InsightContent",class:"itpr98r",propsAsIs:!1}),R0=s.styled_default("h3")({name:"Title",class:"t17iaqp8",propsAsIs:!1}),F0=s.styled_default("div")({name:"Description",class:"d16t3y7s",propsAsIs:!1}),E0=s.styled_default("button")({name:"ActionBtn",class:"a12495er",propsAsIs:!1}),B0=({video:i,image:t,imageMode:n,heading:l,body:r,action:o,controlVideo:c})=>e.jsxs(k0,{children:[(i==null?void 0:i.url)&&e.jsx(u2.Et,{source:i.url,poster:i.thumbnailUrl,controlVideo:c}),t&&!(i!=null&&i.url)&&e.jsx(S0,{"data-rounded":n===b.QuestionImages.ROUNDED,children:e.jsx(z0,{src:t,alt:l})}),e.jsxs(q0,{children:[e.jsx(R0,{children:l}),e.jsx(F0,{children:r}),o&&e.jsx(E0,{onClick:o,children:"View Insight"})]})]}),M0=s.styled_default("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),N0=s.styled_default("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),Z0=()=>$.B1,O0=s.styled_default(Z0())({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),W0=s.styled_default("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),G0=()=>$.B1,P0=s.styled_default(G0())({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),D0=s.styled_default("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),Q0=s.styled_default("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),U0=s.styled_default("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),Y0=s.styled_default("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),K0=s.styled_default("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),J0=s.styled_default("div")({name:"QuoteWrap",class:"q14u54rf",propsAsIs:!1}),X0=s.styled_default("blockquote")({name:"Quote",class:"q1hxm6zo",propsAsIs:!1}),e1=({action:i,...t})=>e.jsxs(Y0,{children:[t.title&&e.jsx(J0,{children:e.jsx(X0,{children:t.title})}),e.jsx(z.b,{...t}),i&&e.jsx(K0,{onClick:i,children:"View Insight"})]}),s1=({close:i,action:t,controlVideo:n,data:{questionType:l,question:r,insight:o,tweet:c}})=>{const d=z.e[l];return d?e.jsxs(M0,{onClick:t,style:l===b.QuestionType.TWEET?{paddingTop:"12px"}:{},children:[e.jsx(N0,{"data-a":"intr",onClick:h=>{h.stopPropagation(),i&&i(h)},children:e.jsx(O0,{name:"icon-cross"})}),l!==b.QuestionType.TWEET&&e.jsxs(W0,{children:[e.jsx(P0,{"data-type-trivia":l===b.QuestionType.TRIVIA,"data-type-poll":l===b.QuestionType.POLL,name:d.iconName}),e.jsx(D0,{children:d.label})]}),l===b.QuestionType.FACTOID&&o&&e.jsx(B0,{...o,action:t,controlVideo:n}),l===b.QuestionType.TWEET&&c&&e.jsx(e1,{...c,action:t,controlVideo:n}),l!==b.QuestionType.FACTOID&&l!==b.QuestionType.TWEET&&e.jsxs(e.Fragment,{children:[e.jsx(Q0,{children:r==null?void 0:r.title}),e.jsx(U0,{children:"Answer"})]})]}):null},V=s.styled_default("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),I=s.styled_default("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),t1=()=>I,i1=s.styled_default(t1())({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),n1=()=>I,l1=s.styled_default(n1())({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),a1=()=>I,r1=s.styled_default(a1())({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),o1=()=>I,s2=s.styled_default(o1())({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),d1=()=>I,t2=s.styled_default(d1())({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),c1=()=>I,i2=s.styled_default(c1())({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),p1=()=>I,n2=s.styled_default(p1())({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),u1=()=>I,l2=s.styled_default(u1())({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),h1=()=>I,a2=s.styled_default(h1())({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),C1=()=>I,r2=s.styled_default(C1())({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),f1=()=>I,m1=s.styled_default(f1())({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),_1=()=>I,x1=s.styled_default(_1())({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),y1=()=>I,g1=s.styled_default(y1())({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),v1=()=>I,j1=s.styled_default(v1())({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),I1=({step:i,correct:t})=>e.jsxs(e.Fragment,{children:[e.jsxs(V,{"data-active":i===1,"data-first-screen":"true",children:[e.jsx(i1,{}),e.jsx(l1,{}),e.jsx(r1,{})]}),e.jsxs(V,{"data-active":i===2,children:[e.jsx(s2,{}),e.jsx(t2,{}),e.jsx(i2,{})]}),e.jsxs(V,{"data-active":i===3,children:[e.jsx(s2,{}),e.jsx(t2,{}),e.jsx(i2,{})]}),t?e.jsxs(e.Fragment,{children:[e.jsxs(V,{"data-active":i===4,"data-correct":"true",children:[e.jsx(n2,{}),e.jsx(l2,{}),e.jsx(a2,{}),e.jsx(r2,{})]}),e.jsxs(V,{"data-active":i===5,"data-correct":"true",children:[e.jsx(n2,{}),e.jsx(l2,{}),e.jsx(a2,{}),e.jsx(r2,{})]})]}):e.jsxs(V,{"data-active":i===4,"data-correct":"false",children:[e.jsx(m1,{}),e.jsx(x1,{}),e.jsx(g1,{}),e.jsx(j1,{})]})]}),A1=118,L1=()=>A2.f,w1=s.styled_default(L1())({name:"Container",class:"c10131zw",propsAsIs:!0}),b1=s.styled_default("div")({name:"InnerContainer",class:"ir6k2eo",propsAsIs:!1}),H=s.styled_default("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),S=s.styled_default("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),$1=()=>S,T1=s.styled_default($1())({name:"PointsTitle",class:"p1pjil1h",propsAsIs:!0}),F=s.styled_default("div")({name:"Subtitle",class:"s1iorwr9",propsAsIs:!1}),o2=s.styled_default("div")({name:"SubtitleFG",class:"s51sv9d",propsAsIs:!1}),E=s.styled_default("div")({name:"AnswerText",class:"a1lbk2ye",propsAsIs:!1}),H1=()=>$.B1,m2=s.styled_default(H1())({name:"FeedbackIcon",class:"frcvk3t",propsAsIs:!0}),V1=()=>m2,d2=s.styled_default(V1())({name:"FeedbackIconCorrect",class:"f33p82r",propsAsIs:!0}),k1=()=>m2,z1=s.styled_default(k1())({name:"FeedbackIconIncorrect",class:"f12r9net",propsAsIs:!0}),c2=s.styled_default("div")({name:"CloseIconWrap",class:"c1fw6699",propsAsIs:!1}),S1=()=>$.B1,p2=s.styled_default(S1())({name:"CloseIcon",class:"c115o126",propsAsIs:!0}),q1="data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e",R1="data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",F1=(i,t,n)=>i===t?"translateY(0px)":i>t?`translateY(${n}px)`:"translateY(-100%)",E1=({close:i,votedAnswer:t,mastersApp:n,correct:l,correctAnswerTitle:r,questionTitle:o,saveHeight:c,style:d,hiding:h})=>{const[y,j]=u.useState(1),v=u.useRef({});u.useEffect(()=>{const _=setInterval(()=>{j(x=>l&&x>4||!l&&x>3?x:++x)},3e3);return()=>clearInterval(_)},[l]),u.useEffect(()=>{var _,x;v.current[y]&&c(((x=(_=v.current[y])==null?void 0:_.getBoundingClientRect())==null?void 0:x.height)||A1)},[y,c]);const a=_=>x=>{v.current&&(v.current[_]=x)},p=_=>({transform:F1(_,y,d.height)}),m={...d};return n&&m.height&&typeof m.height=="number"&&(m.height+=32),e.jsx(w1,{style:d.height?m:{...d,paddingTop:0,paddingBottom:0},hiding:h,children:e.jsxs(b1,{style:{height:d.height,minHeight:d.height,backgroundColor:y>3?l?"var(--color-sdk-prediction-result-success-bg)":"var(--color-sdk-prediction-result-incorrect-bg)":"var(--color-primary-1)"},children:[e.jsx(I1,{step:y,correct:l}),n&&e.jsxs(H,{ref:a(1),style:p(1),children:[e.jsx("img",{alt:"sponsor-logo",src:q1}),e.jsx(o2,{children:"Featured Groups +"})]}),!n&&e.jsx(H,{ref:a(1),style:p(1),children:e.jsx("img",{alt:"sponsor-logo",src:R1})}),e.jsxs(H,{ref:a(2),style:p(2),children:[e.jsx(S,{children:"Prediction results are in!"}),n&&e.jsx(o2,{children:"Featured Groups +"})]}),e.jsxs(H,{ref:a(3),style:p(3),children:[e.jsx(S,{children:o}),e.jsx(F,{children:e.jsxs(E,{children:[e.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})})]}),l?e.jsxs(e.Fragment,{children:[e.jsxs(H,{ref:a(4),style:{...p(4),color:"var(--color-sdk-prediction-result-success-text)"},children:[e.jsxs(S,{children:["Congratulations!",e.jsx("br",{}),"You answered correctly."]}),e.jsxs(F,{children:[e.jsx(d2,{name:"selected"}),e.jsxs(E,{children:[e.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]})]}),e.jsxs(H,{ref:a(5),style:{...p(5),color:"var(--color-sdk-prediction-result-success-text)"},children:[e.jsx(T1,{children:y===5&&e.jsx(I2.d,{delay:.5,prefix:"+",suffix:" points",value:t==null?void 0:t.points})}),e.jsxs(F,{children:[e.jsx(d2,{name:"selected"}),e.jsxs(E,{children:[e.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]}),e.jsx(c2,{"data-a":"intr",onClick:i,children:e.jsx(p2,{name:"icon-cross"})})]})]}):e.jsxs(H,{ref:a(4),style:p(4),children:[e.jsxs(S,{style:{color:"var(--color-sdk-prediction-result-error-title)"},children:["Better luck next time!",e.jsx("br",{}),"Correct: ",r,"."]}),e.jsxs(F,{style:{color:"var(--color-sdk-prediction-result-error-subtitle)"},children:[e.jsx(z1,{name:"circleClose"}),e.jsxs(E,{children:[e.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]}),e.jsx(c2,{"data-a":"intr",onClick:i,children:e.jsx(p2,{name:"icon-cross"})})]})]})})},B1=i=>{const[t,n]=u.useState(!1),[l,r]=u.useState(!1),o=u.useRef(null),c=u.useCallback(()=>{r(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1)},1e3)},[]),d=u.useCallback(async h=>{n(!0);const y=h.map(j=>new Promise((v,a)=>{const p=new Image;p.onload=()=>v(j),p.onerror=()=>a(),p.src=j}));await Promise.allSettled(y),n(!1)},[]);return u.useEffect(()=>{i&&(c(),d(i))},[i,c,d]),{loading:t,throttled:l}},M1=s.styled_default("div")({name:"Container",class:"cl51m2q",propsAsIs:!1}),N1=s.styled_default("img")({name:"Avatar",class:"a2yhhhr",propsAsIs:!1}),Z1=s.styled_default("div")({name:"AvatarPlaceholder",class:"a1dtxxlr",propsAsIs:!1}),O1=s.styled_default("div")({name:"Content",class:"c12clm3w",propsAsIs:!1}),W1=s.styled_default("span")({name:"Name",class:"n14lctn7",propsAsIs:!1}),G1=({avatar:i,name:t})=>e.jsxs(M1,{children:[i&&e.jsx(N1,{src:i}),!i&&e.jsx(Z1,{children:z.I(t||"")}),e.jsxs(O1,{children:[e.jsxs(W1,{children:[t," "]}),"is waiting for you!"]})]}),P1=s.styled_default("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),D1=s.styled_default("div")({name:"Graphic",class:"gjyzpp7",propsAsIs:!1}),Q1=s.styled_default("img")({name:"GraphicImage",class:"g16mldgz",propsAsIs:!1}),U1=s.styled_default("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),Y1=s.styled_default("div")({name:"TaglineContainer",class:"tmm7qmo",propsAsIs:!1}),K1=s.styled_default("div")({name:"Tagline",class:"t17knuw2",propsAsIs:!1}),J1=s.styled_default("div")({name:"Content",class:"c1b74psg",propsAsIs:!1}),X1=s.styled_default("div")({name:"StepsContainer",class:"s1y99ug7",propsAsIs:!1}),ee=s.styled_default("span")({name:"StepIndicator",class:"sgf3v5n",propsAsIs:!1}),se=s.styled_default("div")({name:"InvitingUserWrap",class:"i1sj6gn8",propsAsIs:!1}),te=({loading:i,steps:t,currentStep:n,inviterName:l})=>{const{headline:r,tagline:o}=t[n];return e.jsxs(P1,{children:[o&&e.jsx(Y1,{children:e.jsx(T.i,{loading:i,children:e.jsx(K1,{children:o})})}),e.jsxs(J1,{"data-welcome-screen":n===0,children:[e.jsx(D1,{children:e.jsx(T.i,{loading:i,children:t.map(({graphicSrc:c},d)=>e.jsx(Q1,{src:c,"data-active":n===d}))})}),r&&e.jsx(T.i,{loading:i,children:e.jsx(U1,{children:r})})]}),l&&n===0&&e.jsx(se,{children:e.jsx(G1,{name:l})}),e.jsx(X1,{style:i?{visibility:"hidden"}:{},children:Array.from({length:t.length}).map((c,d)=>e.jsx(ee,{"data-active":n===d},d))})]})},ie=s.styled_default("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),ne=s.styled_default("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),le=s.styled_default("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),ae=s.styled_default("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),re=s.styled_default("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),oe=s.styled_default("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),de=s.styled_default("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),ce=s.styled_default("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),pe=({rules:i,rulesTitle:t,termsText:n,primaryColor:l,openTerms:r})=>e.jsxs(ie,{children:[e.jsxs(ne,{children:[e.jsx(le,{children:t}),e.jsx(ae,{children:i==null?void 0:i.map(({label:o,icon:c},d)=>e.jsxs(re,{children:[c&&e.jsx(oe,{style:{backgroundColor:l},children:e.jsx($.B1,{name:c,"data-icon":c})}),e.jsx(de,{children:o})]},d))})]}),n&&e.jsx(ce,{"data-a":"intr",onClick:r,children:"See Terms and Conditions"})]}),ue=s.styled_default("div")({name:"Container",class:"cj0g35h",propsAsIs:!1}),he=s.styled_default("div")({name:"Content",class:"c1xkhrbn",propsAsIs:!1}),Ce=s.styled_default("div")({name:"Title",class:"tifzb8b",propsAsIs:!1}),fe=s.styled_default("div")({name:"ScrollingText",class:"stduw5c",propsAsIs:!1}),me=({termsTitle:i,termsText:t})=>e.jsx(ue,{children:e.jsxs(he,{children:[e.jsx(Ce,{children:i}),e.jsx(fe,{children:t})]})}),_e=s.styled_default("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),xe=s.styled_default("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),ye=({disabled:i,variant:t="primary",onClick:n,children:l,...r})=>e.jsx(_e,{"data-a":"intr",onClick:n,disabled:i,"data-variant":t,...r,children:e.jsx(xe,{children:l})}),ge=s.styled_default("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),ve=s.styled_default("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),je=s.styled_default("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),Ie=s.styled_default("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),Ae=()=>$.B1,Le=s.styled_default(Ae())({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),we=s.styled_default("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),be=()=>ye,$e=s.styled_default(be())({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),k={steps:!1,rules:!1,inviteCard:!1},Te=({gamification:i,steps:t,rules:n,rulesBtnLabel:l,rulesTitle:r,termsTitle:o,termsText:c,primaryColor:d,inviteLink:h,inviteCardTitle:y,inviteCardSubtext:j,inviteCardBtnLabel:v,loading:a,inviterName:p,sdk:m,onClose:_})=>{const[x,f]=u.useState(0),[C,A]=u.useState(!1),[g,w]=u.useState(k);u.useEffect(()=>{t!=null&&t.length?w({...k,steps:!0}):n!=null&&n.length?w({...k,rules:!0}):w({...k,inviteCard:!0})},[]);const _2=u.useMemo(()=>g.steps&&x===0?"Continue":g.rules?C||!l?"Got it":l:g.inviteCard?v||"Play Now":"Next",[g,x,C,l,v]),x2=u.useCallback(()=>{t!=null&&t.length&&x<t.length-1?f(B=>++B):n!=null&&n.length&&g.steps?w({...k,rules:!0}):g.rules&&w({...k,inviteCard:!0})},[x,t==null?void 0:t.length,n==null?void 0:n.length,g,f,w]),y2=async()=>{g.inviteCard?await i.onboardingStatus.submitInplay():g.rules&&C?A(!1):x2()};return u.useEffect(()=>{!a&&p&&m.inviteDisplayed()},[a,p,m]),e.jsx(r0,{children:({width:B,height:P})=>e.jsxs(ge,{style:{width:B,height:P,maxHeight:P},children:[e.jsx(je,{children:e.jsx(Ie,{"data-a":"intr",onClick:_,children:e.jsx(Le,{name:"icon-close-btn-gray"})})}),e.jsxs(ve,{children:[g.steps&&(t==null?void 0:t.length)&&e.jsx(te,{loading:a,steps:t,currentStep:x,inviterName:p}),g.rules&&!C&&e.jsx(pe,{rules:n,rulesTitle:r,termsText:c,primaryColor:d,openTerms:()=>A(!0)}),g.rules&&C&&e.jsx(me,{termsTitle:o,termsText:c}),g.inviteCard&&e.jsx(f2,{inviteLink:h,inviteCardTitle:y,inviteCardSubtext:j,primaryColor:d})]}),e.jsx(we,{children:e.jsx(T.i,{loading:a,style:{width:"100%"},children:e.jsx($e,{"data-a":"intr",onClick:y2,children:_2})})})]})})},He=s.styled_default("button")({name:"Container",class:"crkmfw1",propsAsIs:!1}),Ve=s.styled_default("div")({name:"Content",class:"c11awpy4",propsAsIs:!1}),ke=s.styled_default("span")({name:"Title",class:"t154z7mh",propsAsIs:!1}),ze=({title:i,onClick:t,className:n,style:l})=>e.jsx(He,{"data-a":"intr",onClick:t,className:n,style:l,children:e.jsxs(Ve,{"data-a":"intr",children:[e.jsx($.B1,{"data-a":"intr",name:"iconUp"}),i&&e.jsx(ke,{"data-a":"intr",children:i})]})});exports.D=E1;exports.I=B1;exports.M=f2;exports.T=s0;exports.T$1=C2;exports.createSingleStore=w2;exports.f=ze;exports.k=V0;exports.p=b2;exports.tn=Te;exports.w=s1;exports.z=J2;
|
|
1
|
+
"use strict";require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.array.sort.js"),require("core-js/modules/es.array.splice.js"),require("core-js/modules/es.number.is-integer.js"),require("core-js/modules/es.object.assign.js"),require("core-js/modules/es.object.define-property.js"),require("core-js/modules/es.object.entries.js"),require("core-js/modules/es.object.get-own-property-descriptor.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.parse-int.js"),require("core-js/modules/es.reflect.construct.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/esnext.global-this.js"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/web.dom-collections.iterator.js");function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var e=require("react"),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n,o,i,u,s,a,c,f,l,d,h,p,v,y,g,b,m,F,C,_,j,w,x,K,O,E,M,A,D,P,L={exports:{}};function R(){if(o)return n;return o=1,n=function(e){var r=t(e);return null!=e&&("object"==r||"function"==r)}}function N(){if(u)return i;u=1;var e="object"==t(r)&&r&&r.Object===Object&&r;return i=e}function B(){if(a)return s;a=1;var e=N(),r="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,n=e||r||Function("return this")();return s=n}function S(){if(p)return h;p=1;var t=function(){if(d)return l;d=1;var t=/\s/;return l=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}}(),e=/^\s+/;return h=function(r){return r?r.slice(0,t(r)+1).replace(e,""):r}}function k(){if(y)return v;y=1;var t=B().Symbol;return v=t}function T(){if(_)return C;_=1;var t=k(),e=function(){if(b)return g;b=1;var t=k(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return g=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var u=!0}catch(Su){}var s=n.call(t);return u&&(e?t[o]=i:delete t[o]),s}}(),r=function(){if(F)return m;F=1;var t=Object.prototype.toString;return m=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function U(){if(w)return j;return w=1,j=function(e){return null!=e&&"object"==t(e)}}function q(){if(K)return x;K=1;var e=T(),r=U();return x=function(n){return"symbol"==t(n)||r(n)&&"[object Symbol]"==e(n)}}function z(){if(A)return M;A=1;var t=R(),e=function(){if(f)return c;f=1;var t=B();return c=function(){return t.Date.now()}}(),r=function(){if(E)return O;E=1;var t=S(),e=R(),r=q(),n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt;return O=function(s){if("number"==typeof s)return s;if(r(s))return NaN;if(e(s)){var a="function"==typeof s.valueOf?s.valueOf():s;s=e(a)?a+"":a}if("string"!=typeof s)return 0===s?s:+s;s=t(s);var c=o.test(s);return c||i.test(s)?u(s.slice(2),c?2:8):n.test(s)?NaN:+s}}(),n=Math.max,o=Math.min;return M=function(i,u,s){var a,c,f,l,d,h,p=0,v=!1,y=!1,g=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function b(t){var e=a,r=c;return a=c=void 0,p=t,l=i.apply(r,e)}function m(t){var e=t-h;return void 0===h||e>=u||e<0||y&&t-p>=f}function F(){var t=e();if(m(t))return C(t);d=setTimeout(F,function(t){var e=u-(t-h);return y?o(e,f-(t-p)):e}(t))}function C(t){return d=void 0,g&&a?b(t):(a=c=void 0,l)}function _(){var t=e(),r=m(t);if(a=arguments,c=this,h=t,r){if(void 0===d)return function(t){return p=t,d=setTimeout(F,u),v?b(t):l}(h);if(y)return clearTimeout(d),d=setTimeout(F,u),b(h)}return void 0===d&&(d=setTimeout(F,u)),l}return u=r(u)||0,t(s)&&(v=!!s.leading,f=(y="maxWait"in s)?n(r(s.maxWait)||0,u):f,g="trailing"in s?!!s.trailing:g),_.cancel=function(){void 0!==d&&clearTimeout(d),p=0,a=h=c=d=void 0},_.flush=function(){return void 0===d?l:C(e())},_},M}function H(){if(P)return D;P=1;var t=T(),e=R();return D=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}var I,$=B()["__core-js_shared__"],W=(I=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var G=function(t){return!!W&&W in t},Y=Function.prototype.toString;var V=function(t){if(null!=t){try{return Y.call(t)}catch(Su){}try{return t+""}catch(Su){}}return""},J=H(),Q=G,X=R(),Z=V,tt=/^\[object .+?Constructor\]$/,et=Function.prototype,rt=Object.prototype,nt=et.toString,ot=rt.hasOwnProperty,it=RegExp("^"+nt.call(ot).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ut=function(t){return!(!X(t)||Q(t))&&(J(t)?it:tt).test(Z(t))},st=function(t,e){return null==t?void 0:t[e]};var at,ct,ft,lt,dt,ht,pt,vt,yt,gt,bt,mt,Ft,Ct,_t=function(t,e){var r=st(t,e);return ut(r)?r:void 0};function jt(){if(ct)return at;ct=1;var t=_t(Object,"create");return at=t}function wt(){if(Ct)return Ft;Ct=1;var t=function(){if(lt)return ft;lt=1;var t=jt();return ft=function(){this.__data__=t?t(null):{},this.size=0}}(),e=ht?dt:(ht=1,dt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(vt)return pt;vt=1;var t=jt(),e=Object.prototype.hasOwnProperty;return pt=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(gt)return yt;gt=1;var t=jt(),e=Object.prototype.hasOwnProperty;return yt=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(mt)return bt;mt=1;var t=jt();return bt=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Ft=i}var xt,Kt,Ot=function(){this.__data__=[],this.size=0};function Et(){if(Kt)return xt;return Kt=1,xt=function(t,e){return t===e||t!=t&&e!=e}}var Mt=Et();var At=function(t,e){for(var r=t.length;r--;)if(Mt(t[r][0],e))return r;return-1},Dt=At,Pt=Array.prototype.splice;var Lt=At;var Rt=At;var Nt=At;var Bt=Ot,St=function(t){var e=this.__data__,r=Dt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Pt.call(e,r,1),--this.size,!0)},kt=function(t){var e=this.__data__,r=Lt(e,t);return r<0?void 0:e[r][1]},Tt=function(t){return Rt(this.__data__,t)>-1},Ut=function(t,e){var r=this.__data__,n=Nt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function qt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}qt.prototype.clear=Bt,qt.prototype.delete=St,qt.prototype.get=kt,qt.prototype.has=Tt,qt.prototype.set=Ut;var zt,Ht,It,$t,Wt,Gt,Yt,Vt,Jt,Qt,Xt,Zt,te,ee,re,ne,oe,ie,ue,se,ae,ce,fe,le,de,he,pe,ve,ye,ge,be,me,Fe,Ce,_e=qt,je=_t(B(),"Map");function we(){if(Gt)return Wt;Gt=1;var e=$t?It:($t=1,It=function(e){var r=t(e);return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e});return Wt=function(t,r){var n=t.__data__;return e(r)?n["string"==typeof r?"string":"hash"]:n.map}}function xe(){if(ne)return re;ne=1;var t=function(){if(Ht)return zt;Ht=1;var t=wt(),e=_e,r=je;return zt=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(Vt)return Yt;Vt=1;var t=we();return Yt=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Qt)return Jt;Qt=1;var t=we();return Jt=function(e){return t(this,e).get(e)}}(),n=function(){if(Zt)return Xt;Zt=1;var t=we();return Xt=function(e){return t(this,e).has(e)}}(),o=function(){if(ee)return te;ee=1;var t=we();return te=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,re=i}function Ke(){if(ce)return ae;ce=1;var t=xe(),e=ie?oe:(ie=1,oe=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=se?ue:(se=1,ue=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,ae=n}function Oe(){if(ge)return ye;ge=1;var t=le?fe:(le=1,fe=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}),e=he?de:(he=1,de=function(t){return t!=t}),r=ve?pe:(ve=1,pe=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1});return ye=function(n,o,i){return o==o?r(n,o,i):t(n,e,i)}}var Ee,Me,Ae,De,Pe,Le,Re,Ne,Be,Se,ke,Te,Ue,qe,ze,He,Ie,$e,We,Ge,Ye,Ve,Je,Qe,Xe,Ze,tr,er,rr,nr,or,ir,ur,sr,ar,cr,fr,lr,dr,hr,pr,vr,yr,gr,br,mr,Fr,Cr,_r,jr,wr,xr,Kr=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};function Or(){if(Me)return Ee;return Me=1,Ee=function(t){return function(e){return t(e)}}}function Er(){if(De)return Ae;return De=1,Ae=function(t,e){return t.has(e)}}function Mr(){if(Le)return Pe;Le=1;var t=Ke(),e=function(){if(me)return be;me=1;var t=Oe();return be=function(e,r){return!(null==e||!e.length)&&t(e,r,0)>-1}}(),r=Ce?Fe:(Ce=1,Fe=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}),n=Kr,o=Or(),i=Er();return Pe=function(u,s,a,c){var f=-1,l=e,d=!0,h=u.length,p=[],v=s.length;if(!h)return p;a&&(s=n(s,o(a))),c?(l=r,d=!1):s.length>=200&&(l=i,d=!1,s=new t(s));t:for(;++f<h;){var y=u[f],g=null==a?y:a(y);if(y=c||0!==y?y:0,d&&g==g){for(var b=v;b--;)if(s[b]===g)continue t;p.push(y)}else l(s,g,c)||p.push(y)}return p}}function Ar(){if(Ne)return Re;return Ne=1,Re=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}}function Dr(){if(Te)return ke;Te=1;var t=function(){if(Se)return Be;Se=1;var t=T(),e=U();return Be=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=U(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return ke=i}function Pr(){if(qe)return Ue;qe=1;var t=Array.isArray;return Ue=t}function Lr(){if($e)return Ie;$e=1;var t=Ar(),e=function(){if(He)return ze;He=1;var t=k(),e=Dr(),r=Pr(),n=t?t.isConcatSpreadable:void 0;return ze=function(t){return r(t)||e(t)||!!(n&&t&&t[n])}}();return Ie=function r(n,o,i,u,s){var a=-1,c=n.length;for(i||(i=e),s||(s=[]);++a<c;){var f=n[a];o>0&&i(f)?o>1?r(f,o-1,i,u,s):t(s,f):u||(s[s.length]=f)}return s},Ie}function Rr(){if(Ge)return We;return Ge=1,We=function(t){return t}}function Nr(){if(Qe)return Je;Qe=1;var t=Ve?Ye:(Ve=1,Ye=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}),e=Math.max;return Je=function(r,n,o){return n=e(void 0===n?r.length-1:n,0),function(){for(var i=arguments,u=-1,s=e(i.length-n,0),a=Array(s);++u<s;)a[u]=i[n+u];u=-1;for(var c=Array(n+1);++u<n;)c[u]=i[u];return c[n]=o(a),t(r,this,c)}},Je}function Br(){if(nr)return rr;nr=1;var t=Ze?Xe:(Ze=1,Xe=function(t){return function(){return t}}),e=function(){if(er)return tr;er=1;var t=_t,e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(Su){}}();return tr=e}(),r=Rr();return rr=e?function(r,n){return e(r,"toString",{configurable:!0,enumerable:!1,value:t(n),writable:!0})}:r}function Sr(){if(sr)return ur;sr=1;var t=Br(),e=function(){if(ir)return or;ir=1;var t=Date.now;return or=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}},or}(),r=e(t);return ur=r}function kr(){if(cr)return ar;cr=1;var t=Rr(),e=Nr(),r=Sr();return ar=function(n,o){return r(e(n,o,t),n+"")}}function Tr(){if(lr)return fr;lr=1;return fr=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Ur(){if(hr)return dr;hr=1;var t=H(),e=Tr();return dr=function(r){return null!=r&&e(r.length)&&!t(r)}}function qr(){if(gr)return yr;gr=1;var t=Mr(),e=Lr(),r=kr(),n=function(){if(vr)return pr;vr=1;var t=Ur(),e=U();return pr=function(r){return e(r)&&t(r)}}(),o=r(function(r,o){return n(r)?t(r,e(o,1,n,!0)):[]});return yr=o}function zr(){if(mr)return br;return mr=1,br=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}}function Hr(){if(jr)return _r;jr=1;var t=(Cr?Fr:(Cr=1,Fr=function(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),s=u.length;s--;){var a=u[t?s:++o];if(!1===r(i[a],a,i))break}return e}}))();return _r=t}var Ir={exports:{}};var $r,Wr,Gr,Yr,Vr,Jr,Qr,Xr,Zr=function(){return!1};$r=Ir,Wr=Ir.exports,Gr=B(),Yr=Zr,Vr=Wr&&!Wr.nodeType&&Wr,Jr=Vr&&$r&&!$r.nodeType&&$r,Qr=Jr&&Jr.exports===Vr?Gr.Buffer:void 0,Xr=(Qr?Qr.isBuffer:void 0)||Yr,$r.exports=Xr;var tn,en,rn,nn,on=Ir.exports;function un(){if(en)return tn;en=1;var e=/^(?:0|[1-9]\d*)$/;return tn=function(r,n){var o=t(r);return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&e.test(r))&&r>-1&&r%1==0&&r<n}}var sn={exports:{}};!function(t,e){var r=N(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(Su){}}();t.exports=u}(sn,sn.exports);var an,cn,fn,ln,dn=sn.exports;function hn(){if(cn)return an;cn=1;var t=function(){if(nn)return rn;nn=1;var t=T(),e=Tr(),r=U(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,rn=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Or(),r=dn&&dn.isTypedArray,n=r?e(r):t;return an=n}function pn(){if(ln)return fn;ln=1;var t=xr?wr:(xr=1,wr=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=Dr(),r=Pr(),n=on,o=un(),i=hn(),u=Object.prototype.hasOwnProperty;return fn=function(s,a){var c=r(s),f=!c&&e(s),l=!c&&!f&&n(s),d=!c&&!f&&!l&&i(s),h=c||f||l||d,p=h?t(s.length,String):[],v=p.length;for(var y in s)!a&&!u.call(s,y)||h&&("length"==y||l&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||o(y,v))||p.push(y);return p}}var vn=Object.prototype;var yn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||vn)};var gn,bn,mn,Fn,Cn,_n,jn,wn,xn,Kn,On,En,Mn,An,Dn=function(t,e){return function(r){return t(e(r))}};function Pn(){if(Fn)return mn;Fn=1;var t=yn,e=function(){if(bn)return gn;bn=1;var t=Dn(Object.keys,Object);return gn=t}(),r=Object.prototype.hasOwnProperty;return mn=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function Ln(){if(_n)return Cn;_n=1;var t=pn(),e=Pn(),r=Ur();return Cn=function(n){return r(n)?t(n):e(n)}}function Rn(){if(wn)return jn;wn=1;var t=Hr(),e=Ln();return jn=function(r,n){return r&&t(r,n,e)}}function Nn(){if(En)return On;En=1;var t=Rn(),e=function(){if(Kn)return xn;Kn=1;var t=Ur();return xn=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,u=r?i:-1,s=Object(n);(r?u--:++u<i)&&!1!==o(s[u],u,s););return n}}}()(t);return On=e}var Bn=_e;var Sn=function(){this.__data__=new Bn,this.size=0};var kn=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};var Tn=function(t){return this.__data__.get(t)};var Un=function(t){return this.__data__.has(t)},qn=_e,zn=je,Hn=xe();var In=_e,$n=Sn,Wn=kn,Gn=Tn,Yn=Un,Vn=function(t,e){var r=this.__data__;if(r instanceof qn){var n=r.__data__;if(!zn||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Hn(n)}return r.set(t,e),this.size=r.size,this};function Jn(t){var e=this.__data__=new In(t);this.size=e.size}Jn.prototype.clear=$n,Jn.prototype.delete=Wn,Jn.prototype.get=Gn,Jn.prototype.has=Yn,Jn.prototype.set=Vn;var Qn,Xn,Zn,to,eo=Jn;function ro(){if(to)return Zn;to=1;var t=Ke(),e=Xn?Qn:(Xn=1,Qn=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),r=Er();return Zn=function(n,o,i,u,s,a){var c=1&i,f=n.length,l=o.length;if(f!=l&&!(c&&l>f))return!1;var d=a.get(n),h=a.get(o);if(d&&h)return d==o&&h==n;var p=-1,v=!0,y=2&i?new t:void 0;for(a.set(n,o),a.set(o,n);++p<f;){var g=n[p],b=o[p];if(u)var m=c?u(b,g,p,o,n,a):u(g,b,p,n,o,a);if(void 0!==m){if(m)continue;v=!1;break}if(y){if(!e(o,function(t,e){if(!r(y,e)&&(g===t||s(g,t,i,u,a)))return y.push(e)})){v=!1;break}}else if(g!==b&&!s(g,b,i,u,a)){v=!1;break}}return a.delete(n),a.delete(o),v}}var no,oo,io=B().Uint8Array;var uo,so,ao=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r};function co(){if(so)return uo;so=1;var t=k(),e=io,r=Et(),n=ro(),o=oo?no:(oo=1,no=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),i=ao,u=t?t.prototype:void 0,s=u?u.valueOf:void 0;return uo=function(t,u,a,c,f,l,d){switch(a){case"[object DataView]":if(t.byteLength!=u.byteLength||t.byteOffset!=u.byteOffset)return!1;t=t.buffer,u=u.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=u.byteLength||!l(new e(t),new e(u)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+u);case"[object Error]":return t.name==u.name&&t.message==u.message;case"[object RegExp]":case"[object String]":return t==u+"";case"[object Map]":var h=o;case"[object Set]":var p=1&c;if(h||(h=i),t.size!=u.size&&!p)return!1;var v=d.get(t);if(v)return v==u;c|=2,d.set(t,u);var y=n(h(t),h(u),c,f,l,d);return d.delete(t),y;case"[object Symbol]":if(s)return s.call(t)==s.call(u)}return!1}}var fo=Ar(),lo=Pr();var ho=function(t,e,r){var n=e(t);return lo(t)?n:fo(n,r(t))};var po=function(){return[]},vo=zr(),yo=po,go=Object.prototype.propertyIsEnumerable,bo=Object.getOwnPropertySymbols,mo=ho,Fo=bo?function(t){return null==t?[]:(t=Object(t),vo(bo(t),function(e){return go.call(t,e)}))}:yo,Co=Ln();var _o,jo,wo=function(t){return mo(t,Co,Fo)};var xo=_t(B(),"DataView"),Ko=_t(B(),"Promise"),Oo=_t(B(),"Set"),Eo=_t(B(),"WeakMap"),Mo=xo,Ao=je,Do=Ko,Po=Oo,Lo=Eo,Ro=T(),No=V,Bo="[object Map]",So="[object Promise]",ko="[object Set]",To="[object WeakMap]",Uo="[object DataView]",qo=No(Mo),zo=No(Ao),Ho=No(Do),Io=No(Po),$o=No(Lo),Wo=Ro;(Mo&&Wo(new Mo(new ArrayBuffer(1)))!=Uo||Ao&&Wo(new Ao)!=Bo||Do&&Wo(Do.resolve())!=So||Po&&Wo(new Po)!=ko||Lo&&Wo(new Lo)!=To)&&(Wo=function(t){var e=Ro(t),r="[object Object]"==e?t.constructor:void 0,n=r?No(r):"";if(n)switch(n){case qo:return Uo;case zo:return Bo;case Ho:return So;case Io:return ko;case $o:return To}return e});var Go,Yo,Vo,Jo,Qo,Xo,Zo,ti,ei,ri,ni,oi,ii,ui,si,ai,ci=Wo;function fi(){if(Yo)return Go;Yo=1;var t=eo,e=ro(),r=co(),n=function(){if(jo)return _o;jo=1;var t=wo,e=Object.prototype.hasOwnProperty;return _o=function(r,n,o,i,u,s){var a=1&o,c=t(r),f=c.length;if(f!=t(n).length&&!a)return!1;for(var l=f;l--;){var d=c[l];if(!(a?d in n:e.call(n,d)))return!1}var h=s.get(r),p=s.get(n);if(h&&p)return h==n&&p==r;var v=!0;s.set(r,n),s.set(n,r);for(var y=a;++l<f;){var g=r[d=c[l]],b=n[d];if(i)var m=a?i(b,g,d,n,r,s):i(g,b,d,r,n,s);if(!(void 0===m?g===b||u(g,b,o,i,s):m)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var F=r.constructor,C=n.constructor;F==C||!("constructor"in r)||!("constructor"in n)||"function"==typeof F&&F instanceof F&&"function"==typeof C&&C instanceof C||(v=!1)}return s.delete(r),s.delete(n),v}}(),o=ci,i=Pr(),u=on,s=hn(),a="[object Arguments]",c="[object Array]",f="[object Object]",l=Object.prototype.hasOwnProperty;return Go=function(d,h,p,v,y,g){var b=i(d),m=i(h),F=b?c:o(d),C=m?c:o(h),_=(F=F==a?f:F)==f,j=(C=C==a?f:C)==f,w=F==C;if(w&&u(d)){if(!u(h))return!1;b=!0,_=!1}if(w&&!_)return g||(g=new t),b||s(d)?e(d,h,p,v,y,g):r(d,h,F,p,v,y,g);if(!(1&p)){var x=_&&l.call(d,"__wrapped__"),K=j&&l.call(h,"__wrapped__");if(x||K){var O=x?d.value():d,E=K?h.value():h;return g||(g=new t),y(O,E,p,v,g)}}return!!w&&(g||(g=new t),n(d,h,p,v,y,g))}}function li(){if(Jo)return Vo;Jo=1;var t=fi(),e=U();return Vo=function r(n,o,i,u,s){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,u,r,s))},Vo}function di(){if(ti)return Zo;ti=1;var t=R();return Zo=function(e){return e==e&&!t(e)}}function hi(){if(oi)return ni;return oi=1,ni=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}}function pi(){if(ui)return ii;ui=1;var t=function(){if(Xo)return Qo;Xo=1;var t=eo,e=li();return Qo=function(r,n,o,i){var u=o.length,s=u,a=!i;if(null==r)return!s;for(r=Object(r);u--;){var c=o[u];if(a&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++u<s;){var f=(c=o[u])[0],l=r[f],d=c[1];if(a&&c[2]){if(void 0===l&&!(f in r))return!1}else{var h=new t;if(i)var p=i(l,d,f,r,n,h);if(!(void 0===p?e(d,l,3,i,h):p))return!1}}return!0}}(),e=function(){if(ri)return ei;ri=1;var t=di(),e=Ln();return ei=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],u=r[i];n[o]=[i,u,t(u)]}return n}}(),r=hi();return ii=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}}}function vi(){if(ai)return si;ai=1;var e=Pr(),r=q(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;return si=function(i,u){if(e(i))return!1;var s=t(i);return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=i&&!r(i))||(o.test(i)||!n.test(i)||null!=u&&i in Object(u))}}var yi=xe();function gi(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(gi.Cache||yi),r}gi.Cache=yi;var bi=gi;var mi,Fi,Ci,_i,ji=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wi=/\\(\\)?/g,xi=function(t){var e=bi(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ji,function(t,r,n,o){e.push(n?o.replace(wi,"$1"):r||t)}),e});function Ki(){if(_i)return Ci;_i=1;var t=function(){if(Fi)return mi;Fi=1;var t=k(),e=Kr,r=Pr(),n=q(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return mi=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var u=o+"";return"0"==u&&1/o==-1/0?"-0":u},mi}();return Ci=function(e){return null==e?"":t(e)}}var Oi=Pr(),Ei=vi(),Mi=xi,Ai=Ki();var Di,Pi,Li,Ri,Ni,Bi,Si,ki,Ti,Ui,qi,zi,Hi,Ii,$i,Wi,Gi,Yi,Vi,Ji,Qi,Xi,Zi,tu,eu,ru,nu,ou,iu,uu,su,au,cu,fu,lu,du,hu,pu,vu,yu,gu,bu,mu,Fu,Cu,_u,ju,wu,xu,Ku,Ou,Eu,Mu,Au,Du,Pu,Lu,Ru,Nu,Bu,Su,ku,Tu,Uu,qu,zu,Hu,Iu,$u,Wu,Gu,Yu,Vu,Ju,Qu=function(t,e){return Oi(t)?t:Ei(t,e)?[t]:Mi(Ai(t))};function Xu(){if(Pi)return Di;Pi=1;var t=q();return Di=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Zu(){if(Ri)return Li;Ri=1;var t=Qu,e=Xu();return Li=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0}}function ts(){if(zi)return qi;zi=1;var t=ki?Si:(ki=1,Si=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(Ui)return Ti;Ui=1;var t=Qu,e=Dr(),r=Pr(),n=un(),o=Tr(),i=Xu();return Ti=function(u,s,a){for(var c=-1,f=(s=t(s,u)).length,l=!1;++c<f;){var d=i(s[c]);if(!(l=null!=u&&a(u,d)))break;u=u[d]}return l||++c!=f?l:!!(f=null==u?0:u.length)&&o(f)&&n(d,f)&&(r(u)||e(u))}}();return qi=function(r,n){return null!=r&&e(r,n,t)}}function es(){if(Ii)return Hi;Ii=1;var t=li(),e=function(){if(Bi)return Ni;Bi=1;var t=Zu();return Ni=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=ts(),n=vi(),o=di(),i=hi(),u=Xu();return Hi=function(s,a){return n(s)&&o(a)?i(u(s),a):function(n){var o=e(n,s);return void 0===o&&o===a?r(n,s):t(a,o,3)}}}function rs(){if(Ji)return Vi;Ji=1;var t=Wi?$i:(Wi=1,$i=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(Yi)return Gi;Yi=1;var t=Zu();return Gi=function(e){return function(r){return t(r,e)}}}(),r=vi(),n=Xu();return Vi=function(o){return r(o)?t(n(o)):e(o)}}function ns(){if(Xi)return Qi;Xi=1;var e=pi(),r=es(),n=Rr(),o=Pr(),i=rs();return Qi=function(u){return"function"==typeof u?u:null==u?n:"object"==t(u)?o(u)?r(u[0],u[1]):e(u):i(u)}}function os(){if(tu)return Zi;tu=1;var t=zr(),e=function(){if(An)return Mn;An=1;var t=Nn();return Mn=function(e,r){var n=[];return t(e,function(t,e,o){r(t,e,o)&&n.push(t)}),n}}(),r=ns(),n=Pr();return Zi=function(o,i){return(n(o)?t:e)(o,r(i,3))}}function is(){if(ou)return nu;ou=1;var t=ru?eu:(ru=1,eu=function(t,e,r){var n;return r(t,function(t,r,o){if(e(t,r,o))return n=r,!1}),n}),e=Rn(),r=ns();return nu=function(n,o){return t(n,r(o,3),e)}}function us(){return au?su:(au=1,su=uu?iu:(uu=1,iu=function(t){return t&&t.length?t[0]:void 0}))}function ss(){if(du)return lu;du=1;var t=Rr();return lu=function(e){return"function"==typeof e?e:t}}function as(){if(pu)return hu;pu=1;var t=fu?cu:(fu=1,cu=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),e=Nn(),r=ss(),n=Pr();return hu=function(o,i){return(n(o)?t:e)(o,r(i))}}function cs(){if(Ku)return xu;Ku=1;var t=function(){if(wu)return ju;wu=1;var t=q();return ju=function(e,r){if(e!==r){var n=void 0!==e,o=null===e,i=e==e,u=t(e),s=void 0!==r,a=null===r,c=r==r,f=t(r);if(!a&&!f&&!u&&e>r||u&&s&&c&&!a&&!f||o&&s&&c||!n&&c||!i)return 1;if(!o&&!u&&!f&&e<r||f&&n&&i&&!o&&!u||a&&n&&i||!s&&i||!c)return-1}return 0}}();return xu=function(e,r,n){for(var o=-1,i=e.criteria,u=r.criteria,s=i.length,a=n.length;++o<s;){var c=t(i[o],u[o]);if(c)return o>=a?c:c*("desc"==n[o]?-1:1)}return e.index-r.index}}function fs(){if(Eu)return Ou;Eu=1;var t=Kr,e=Zu(),r=ns(),n=function(){if(Fu)return mu;Fu=1;var t=Nn(),e=Ur();return mu=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,function(t,e,r){i[++o]=n(t,e,r)}),i}}(),o=_u?Cu:(_u=1,Cu=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}),i=Or(),u=cs(),s=Rr(),a=Pr();return Ou=function(c,f,l){f=f.length?t(f,function(t){return a(t)?function(r){return e(r,1===t.length?t[0]:t)}:t}):[s];var d=-1;f=t(f,i(r));var h=n(c,function(e,r,n){return{criteria:t(f,function(t){return t(e)}),index:++d,value:e}});return o(h,function(t,e){return u(t,e,l)})}}function ls(){if(Pu)return Du;Pu=1;var e=Lr(),r=fs(),n=kr(),o=function(){if(Au)return Mu;Au=1;var e=Et(),r=Ur(),n=un(),o=R();return Mu=function(i,u,s){if(!o(s))return!1;var a=t(u);return!!("number"==a?r(s)&&n(u,s.length):"string"==a&&u in s)&&e(s[u],i)}}(),i=n(function(t,n){if(null==t)return[];var i=n.length;return i>1&&o(t,n[0],n[1])?n=[]:i>2&&o(n[0],n[1],n[2])&&(n=[n[0]]),r(t,e(n,1),[])});return Du=i}var ds=L.exports=(Su=z(),ku=qr(),Tu=os(),Uu=is(),qu=us(),zu=as(),Hu=function(){if(yu)return vu;yu=1;var t=Rn(),e=ss();return vu=function(r,n){return r&&t(r,e(n))}}(),Iu=bu?gu:(bu=1,gu=function(){}),$u=ls(),Wu=function(){if(Ru)return Lu;Ru=1;var t=z(),e=R();return Lu=function(r,n,o){var i=!0,u=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return e(o)&&(i="leading"in o?!!o.leading:i,u="trailing"in o?!!o.trailing:u),t(r,n,{leading:i,maxWait:n,trailing:u})}}(),Gu=function(){if(Bu)return Nu;Bu=1;var t=Ki(),e=0;return Nu=function(r){var n=++e;return t(r)+n}}(),Yu=e,Vu={654:function(t,e,r){var n,o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),u=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return u(e,t),e},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.updateRtl=e.doesFocusableExist=e.getCurrentFocusKey=e.updateAllLayouts=e.resume=e.pause=e.navigateByDirection=e.setFocus=e.setKeyMap=e.destroy=e.setThrottle=e.init=e.SpatialNavigation=e.ROOT_FOCUS_KEY=void 0;var f=c(r(150)),l=c(r(117)),d=c(r(747)),h=c(r(23)),p=c(r(842)),v=c(r(682)),y=c(r(784)),g=c(r(432)),b=c(r(67)),m=c(r(35)),F=c(r(119)),C=s(r(964)),_="left",j="right",w="up",x="down",K="enter",O=((n={}).left=[37,"ArrowLeft"],n.up=[38,"ArrowUp"],n.right=[39,"ArrowRight"],n.down=[40,"ArrowDown"],n.enter=[13,"Enter"],n);e.ROOT_FOCUS_KEY="SN:ROOT";var E=["#0FF","#FF0","#F0F"],M={leading:!0,trailing:!1},A=function(){function t(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=F.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=O,this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,f.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return t.getCutoffCoordinate=function(t,e,r,n,o){var i=t?n.top:o===F.default.LTR?n.left:n.right,u=t?n.bottom:o===F.default.LTR?n.right:n.left;return e?r?i:u:r?u:i},t.getRefCorners=function(t,e,r){var n={a:{x:0,y:0},b:{x:0,y:0}};switch(t){case w:var o=e?r.bottom:r.top;n.a={x:r.left,y:o},n.b={x:r.right,y:o};break;case x:o=e?r.top:r.bottom,n.a={x:r.left,y:o},n.b={x:r.right,y:o};break;case _:var i=e?r.right:r.left;n.a={x:i,y:r.top},n.b={x:i,y:r.bottom};break;case j:i=e?r.left:r.right,n.a={x:i,y:r.top},n.b={x:i,y:r.bottom}}return n},t.isAdjacentSlice=function(t,e,r){var n=t.a,o=t.b,i=e.a,u=e.b,s=r?"x":"y",a=n[s],c=o[s],f=i[s],l=u[s],d=.2*(c-a);return Math.max(0,Math.min(c,l)-Math.max(a,f))>=d},t.getPrimaryAxisDistance=function(t,e,r){var n=t.a,o=e.a,i=r?"y":"x";return Math.abs(o[i]-n[i])},t.getSecondaryAxisDistance=function(t,e,r,n,o){if(o)return o(t,e,r,n);var i=t.a,u=t.b,s=e.a,a=e.b,c=r?"x":"y",f=i[c],l=u[c],d=s[c],h=a[c];if("center"===n){var p=(f+l)/2,v=(d+h)/2;return Math.abs(p-v)}if("edges"===n){var y=Math.min(f,l),g=Math.min(d,h),b=Math.max(f,l),m=Math.max(d,h),F=Math.abs(y-g),C=Math.abs(b-m);return Math.min(F,C)}var _=[Math.abs(d-f),Math.abs(d-l),Math.abs(h-f),Math.abs(h-l)];return Math.min.apply(Math,_)},t.prototype.sortSiblingsByPriority=function(e,r,n,o){var i=this,u=n===x||n===w,s=t.getRefCorners(n,!1,r);return(0,g.default)(e,function(e){var r=t.getRefCorners(n,!0,e.layout),a=t.isAdjacentSlice(s,r,u),c=a?t.getPrimaryAxisDistance:t.getSecondaryAxisDistance,f=a?t.getSecondaryAxisDistance:t.getPrimaryAxisDistance,l=c(s,r,u,i.distanceCalculationMethod,i.customDistanceCalculationFunction),d=f(s,r,u,i.distanceCalculationMethod,i.customDistanceCalculationFunction),h=5*l+d,p=(h+1)/(a?5:1);return i.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(e.focusKey," relative to ").concat(o," is"),l,d,h),i.log("smartNavigate","priority for ".concat(e.focusKey," relative to ").concat(o," is"),p),i.visualDebugger&&(i.visualDebugger.drawPoint(r.a.x,r.a.y,"yellow",6),i.visualDebugger.drawPoint(r.b.x,r.b.y,"yellow",6)),p})},t.prototype.init=function(t){var e=this,r=void 0===t?{}:t,n=r.debug,o=void 0!==n&&n,i=r.visualDebug,u=void 0!==i&&i,s=r.nativeMode,a=void 0!==s&&s,c=r.throttle,f=void 0===c?0:c,l=r.throttleKeypresses,d=void 0!==l&&l,h=r.useGetBoundingClientRect,p=void 0!==h&&h,v=r.shouldFocusDOMNode,g=void 0!==v&&v,b=r.domNodeFocusOptions,C=void 0===b?{}:b,_=r.shouldUseNativeEvents,j=void 0!==_&&_,w=r.rtl,x=void 0!==w&&w,K=r.distanceCalculationMethod,O=void 0===K?"corners":K,E=r.customDistanceCalculationFunction,M=void 0===E?void 0:E;if(!this.enabled&&(this.domNodeFocusOptions=C,this.enabled=!0,this.nativeMode=a,this.throttleKeypresses=d,this.useGetBoundingClientRect=p,this.shouldFocusDOMNode=g&&!a,this.shouldUseNativeEvents=j,this.writingDirection=x?F.default.RTL:F.default.LTR,this.distanceCalculationMethod=O,this.customDistanceCalculationFunction=M,this.debug=o,!this.nativeMode&&(Number.isInteger(f)&&f>0&&(this.throttle=f),this.bindEventHandlers(),u))){this.visualDebugger=new m.default(this.writingDirection);var A=function(){requestAnimationFrame(function(){e.visualDebugger.clearLayouts(),(0,y.default)(e.focusableComponents,function(t,r){e.visualDebugger.drawLayout(t.layout,r,t.parentFocusKey)}),A()})};A()}},t.prototype.setThrottle=function(t){var e=void 0===t?{}:t,r=e.throttle,n=void 0===r?0:r,o=e.throttleKeypresses,i=void 0!==o&&o;this.throttleKeypresses=i,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(n)&&(this.throttle=n),this.bindEventHandlers())},t.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=O,this.unbindEventHandlers())},t.prototype.getEventType=function(t){return(0,h.default)(this.getKeyMap(),function(e){return e.includes(t)})},t.getKeyCode=function(t){return t.keyCode||t.code||t.key},t.prototype.bindEventHandlers=function(){var e=this;"undefined"!=typeof window&&window.addEventListener&&(this.keyDownEventListener=function(r){if(!0!==e.paused){e.debug&&(e.logIndex+=1);var n=t.getKeyCode(r),o=e.getEventType(n);if(o){e.pressedKeys[o]=e.pressedKeys[o]?e.pressedKeys[o]+1:1,e.shouldUseNativeEvents||(r.preventDefault(),r.stopPropagation());var i={pressedKeys:e.pressedKeys};if(o===K&&e.focusKey)e.onEnterPress(i);else{var u=!1===e.onArrowPress(o,i);if(e.visualDebugger&&e.visualDebugger.clear(),u)e.log("keyDownEventListener","default navigation prevented");else{var s=(0,h.default)(e.getKeyMap(),function(t){return t.includes(n)});e.smartNavigate(s,null,{event:r})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,b.default)(this.keyDownEventListener.bind(this),this.throttle,M)),this.keyUpEventListener=function(r){var n=t.getKeyCode(r),o=e.getEventType(n);delete e.pressedKeys[o],e.throttle&&!e.throttleKeypresses&&e.keyDownEventListenerThrottled.cancel(),o===K&&e.focusKey&&e.onEnterRelease(),!e.focusKey||o!==_&&o!==j&&o!==w&&o!==x||e.onArrowRelease(o)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},t.prototype.unbindEventHandlers=function(){if("undefined"!=typeof window&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var t=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",t),this.keyDownEventListener=null}},t.prototype.onEnterPress=function(t){var e=this.focusableComponents[this.focusKey];e?e.focusable?e.onEnterPress&&e.onEnterPress(t):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},t.prototype.onEnterRelease=function(){var t=this.focusableComponents[this.focusKey];t?t.focusable?t.onEnterRelease&&t.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},t.prototype.onArrowPress=function(t,e){var r=this.focusableComponents[this.focusKey];if(r)return r&&r.onArrowPress&&r.onArrowPress(t,e);this.log("onArrowPress","noComponent")},t.prototype.onArrowRelease=function(t){var e=this.focusableComponents[this.focusKey];e?e.focusable?e.onArrowRelease&&e.onArrowRelease(t):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},t.prototype.navigateByDirection=function(t,e){if(!0!==this.paused&&this.enabled&&!this.nativeMode){var r=[x,w,_,j];r.includes(t)?(this.log("navigateByDirection","direction",t),this.smartNavigate(t,null,e)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(t,"`, but you can use only these: "),r)}},t.prototype.smartNavigate=function(e,r,n){var o=this;if(!this.nativeMode){var i=e===x||e===w,u=e===x||(this.writingDirection===F.default.LTR?e===j:e===_);this.log("smartNavigate","direction",e),this.log("smartNavigate","fromParentFocusKey",r),this.log("smartNavigate","this.focusKey",this.focusKey),r||(0,y.default)(this.focusableComponents,function(t){t.layoutUpdated=!1});var s=this.focusableComponents[r||this.focusKey];if(r||s){if(this.log("smartNavigate","currentComponent",s?s.focusKey:void 0,s?s.node:void 0,s),s){this.updateLayout(s.focusKey);var a=s.parentFocusKey,c=s.focusKey,f=s.layout,l=t.getCutoffCoordinate(i,u,!1,f,this.writingDirection),h=(0,d.default)(this.focusableComponents,function(e){if(e.parentFocusKey===a&&e.focusable){o.updateLayout(e.focusKey);var r=t.getCutoffCoordinate(i,u,!0,e.layout,o.writingDirection);return i||o.writingDirection===F.default.LTR?u?r>=l:r<=l:u?r<=l:r>=l}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",l),this.log("smartNavigate","siblings","".concat(h.length," elements:"),h.map(function(t){return t.focusKey}).join(", "),h.map(function(t){return t.node}),h.map(function(t){return t}))),this.visualDebugger){var v=t.getRefCorners(e,!1,f);this.visualDebugger.drawPoint(v.a.x,v.a.y),this.visualDebugger.drawPoint(v.b.x,v.b.y)}var g=this.sortSiblingsByPriority(h,f,e,c),b=(0,p.default)(g);if(this.log("smartNavigate","nextComponent",b?b.focusKey:void 0,b?b.node:void 0,b),b)this.setFocus(b.focusKey,n);else{var m=this.focusableComponents[a],C=(null==m?void 0:m.isFocusBoundary)?m.focusBoundaryDirections||[e]:[];m&&C.includes(e)||this.smartNavigate(e,a,n)}}}else this.setFocus(this.getForcedFocusKey())}},t.prototype.saveLastFocusedChildKey=function(t,e){t&&(this.log("saveLastFocusedChildKey","".concat(t.focusKey," lastFocusedChildKey set"),e),t.lastFocusedChildKey=e)},t.prototype.log=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.debug&&console.log.apply(console,a(["%c".concat(t,"%c").concat(e),"background: ".concat(E[this.logIndex%E.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],r,!1))},t.prototype.getCurrentFocusKey=function(){return this.focusKey},t.prototype.getForcedFocusKey=function(){var t,r=(0,d.default)(this.focusableComponents,function(t){return t.focusable&&t.forceFocus}),n=this.sortSiblingsByPriority(r,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",e.ROOT_FOCUS_KEY);return null===(t=(0,p.default)(n))||void 0===t?void 0:t.focusKey},t.prototype.getNextFocusKey=function(t){var e=this,r=this.focusableComponents[t];if(!r||this.nativeMode)return t;var n,o,i,u,s=(0,d.default)(this.focusableComponents,function(e){return e.parentFocusKey===t&&e.focusable});if(s.length>0){var a=r.lastFocusedChildKey,c=r.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",a),this.log("getNextFocusKey","preferredChildFocusKey is",c),a&&r.saveLastFocusedChild&&this.isParticipatingFocusableComponent(a))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",a),this.getNextFocusKey(a);if(c&&this.isParticipatingFocusableComponent(c))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",c),this.getNextFocusKey(c);s.forEach(function(t){return e.updateLayout(t.focusKey)});var f=(n=s,o=this.writingDirection,i=o===F.default.LTR?function(t){var e=t.layout;return Math.abs(e.left)+Math.abs(e.top)}:function(t){var e=t.layout;return Math.abs(window.innerWidth-e.right)+Math.abs(e.top)},u=(0,g.default)(n,i),(0,p.default)(u)).focusKey;return this.log("getNextFocusKey","childKey will be focused",f),this.getNextFocusKey(f)}return this.log("getNextFocusKey","targetFocusKey",t),t},t.prototype.addFocusable=function(t){var e=t.focusKey,r=t.node,n=t.parentFocusKey,o=t.onEnterPress,i=t.onEnterRelease,u=t.onArrowPress,s=t.onArrowRelease,a=t.onFocus,c=t.onBlur,f=t.saveLastFocusedChild,l=t.trackChildren,d=t.onUpdateFocus,h=t.onUpdateHasFocusedChild,p=t.preferredChildFocusKey,v=t.autoRestoreFocus,y=t.forceFocus,g=t.focusable,b=t.isFocusBoundary,m=t.focusBoundaryDirections;if(this.focusableComponents[e]={focusKey:e,node:r,parentFocusKey:n,onEnterPress:o,onEnterRelease:i,onArrowPress:u,onArrowRelease:s,onFocus:a,onBlur:c,onUpdateFocus:d,onUpdateHasFocusedChild:h,saveLastFocusedChild:f,trackChildren:l,preferredChildFocusKey:p,focusable:g,isFocusBoundary:b,focusBoundaryDirections:m,autoRestoreFocus:v,forceFocus:y,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:r},layoutUpdated:!1},r||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[e]),!this.nativeMode){this.updateLayout(e),this.log("addFocusable","Component added: ",this.focusableComponents[e]),e===this.focusKey&&this.setFocus(p||e);for(var F=this.focusableComponents[this.focusKey];F;){if(F.parentFocusKey===e){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}F=this.focusableComponents[F.parentFocusKey]}}},t.prototype.removeFocusable=function(t){var e=t.focusKey,r=this.focusableComponents[e];if(r){var n=r.parentFocusKey;(0,r.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",r),delete this.focusableComponents[e];var o=this.parentsHavingFocusedChild.includes(e);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(t){return t!==e});var i=this.focusableComponents[n],u=e===this.focusKey;if(i&&i.lastFocusedChildKey===e&&(i.lastFocusedChildKey=null),this.nativeMode)return;(u||o)&&i&&i.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",u?"Leaf component":"Container component","Auto restoring focus to: ",n),this.setFocusDebounced(n))}},t.prototype.getNodeLayoutByFocusKey=function(t){var e=this.focusableComponents[t];return e?(this.updateLayout(e.focusKey),e.layout):null},t.prototype.setCurrentFocusedKey=function(t,e){var r,n,o,i;if(this.isFocusableComponent(this.focusKey)&&t!==this.focusKey){var u=this.focusableComponents[this.focusKey];u.onUpdateFocus(!1),u.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),e),null===(n=null===(r=u.node)||void 0===r?void 0:r.removeAttribute)||void 0===n||n.call(r,"data-focused"),this.log("setCurrentFocusedKey","onBlur",u)}if(this.focusKey=t,this.isFocusableComponent(this.focusKey)){var s=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&s.node&&s.node.focus(this.domNodeFocusOptions),null===(i=null===(o=s.node)||void 0===o?void 0:o.setAttribute)||void 0===i||i.call(o,"data-focused","true"),s.onUpdateFocus(!0),s.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),e),this.log("setCurrentFocusedKey","onFocus",s)}},t.prototype.updateParentsHasFocusedChild=function(t,e){for(var r=this,n=[],o=this.focusableComponents[t];o;){var i=o.parentFocusKey,u=this.focusableComponents[i];if(u){var s=u.focusKey;n.push(s)}o=u}var a=(0,l.default)(this.parentsHavingFocusedChild,n),c=(0,l.default)(n,this.parentsHavingFocusedChild);(0,v.default)(a,function(t){var n=r.focusableComponents[t];n&&n.trackChildren&&n.onUpdateHasFocusedChild(!1),r.onIntermediateNodeBecameBlurred(t,e)}),(0,v.default)(c,function(t){var n=r.focusableComponents[t];n&&n.trackChildren&&n.onUpdateHasFocusedChild(!0),r.onIntermediateNodeBecameFocused(t,e)}),this.parentsHavingFocusedChild=n},t.prototype.updateParentsLastFocusedChild=function(t){for(var e=this.focusableComponents[t];e;){var r=e.parentFocusKey,n=this.focusableComponents[r];n&&this.saveLastFocusedChildKey(n,e.focusKey),e=n}},t.prototype.getKeyMap=function(){return this.keyMap},t.prototype.setKeyMap=function(t){var e,r;this.keyMap=o(o({},this.getKeyMap()),(e=t,r={},Object.entries(e).forEach(function(t){var e=t[0],n=t[1];r[e]=Array.isArray(n)?n:[n]}),r))},t.prototype.isFocusableComponent=function(t){return!!this.focusableComponents[t]},t.prototype.isParticipatingFocusableComponent=function(t){return this.isFocusableComponent(t)&&this.focusableComponents[t].focusable},t.prototype.onIntermediateNodeBecameFocused=function(t,e){this.isParticipatingFocusableComponent(t)&&this.focusableComponents[t].onFocus(this.getNodeLayoutByFocusKey(t),e)},t.prototype.onIntermediateNodeBecameBlurred=function(t,e){this.isParticipatingFocusableComponent(t)&&this.focusableComponents[t].onBlur(this.getNodeLayoutByFocusKey(t),e)},t.prototype.pause=function(){this.paused=!0},t.prototype.resume=function(){this.paused=!1},t.prototype.setFocus=function(t,r){if(void 0===r&&(r={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",t),t&&t!==e.ROOT_FOCUS_KEY||(t=this.getForcedFocusKey());var n=this.getNextFocusKey(t);this.log("setFocus","newFocusKey",n),this.setCurrentFocusedKey(n,r),this.updateParentsHasFocusedChild(n,r),this.updateParentsLastFocusedChild(n)}},t.prototype.updateAllLayouts=function(){var t=this;this.enabled&&!this.nativeMode&&(0,y.default)(this.focusableComponents,function(e,r){t.updateLayout(r)})},t.prototype.updateLayout=function(t){var e=this.focusableComponents[t];if(e&&!this.nativeMode&&!e.layoutUpdated){var r=e.node,n=this.useGetBoundingClientRect?(0,C.getBoundingClientRect)(r):(0,C.default)(r);e.layout=o(o({},n),{node:r})}},t.prototype.updateFocusable=function(t,e){var r=e.node,n=e.preferredChildFocusKey,o=e.focusable,i=e.isFocusBoundary,u=e.focusBoundaryDirections,s=e.onEnterPress,a=e.onEnterRelease,c=e.onArrowPress,f=e.onFocus,l=e.onBlur;if(!this.nativeMode){var d=this.focusableComponents[t];d&&(d.preferredChildFocusKey=n,d.focusable=o,d.isFocusBoundary=i,d.focusBoundaryDirections=u,d.onEnterPress=s,d.onEnterRelease=a,d.onArrowPress=c,d.onFocus=f,d.onBlur=l,r&&(d.node=r))}},t.prototype.isNativeMode=function(){return this.nativeMode},t.prototype.doesFocusableExist=function(t){return!!this.focusableComponents[t]},t.prototype.updateRtl=function(t){this.writingDirection=t?F.default.RTL:F.default.LTR},t}();e.SpatialNavigation=new A,e.init=e.SpatialNavigation.init,e.setThrottle=e.SpatialNavigation.setThrottle,e.destroy=e.SpatialNavigation.destroy,e.setKeyMap=e.SpatialNavigation.setKeyMap,e.setFocus=e.SpatialNavigation.setFocus,e.navigateByDirection=e.SpatialNavigation.navigateByDirection,e.pause=e.SpatialNavigation.pause,e.resume=e.SpatialNavigation.resume,e.updateAllLayouts=e.SpatialNavigation.updateAllLayouts,e.getCurrentFocusKey=e.SpatialNavigation.getCurrentFocusKey,e.doesFocusableExist=e.SpatialNavigation.doesFocusableExist,e.updateRtl=e.SpatialNavigation.updateRtl},35:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(119)),i="undefined"!=typeof window&&window.document,u=i?window.innerWidth:0,s=i?window.innerHeight:0,a=function(){function t(e){i&&(this.debugCtx=t.createCanvas("sn-debug","1010",e),this.layoutsCtx=t.createCanvas("sn-layouts","1000",e),this.writingDirection=e)}return t.createCanvas=function(t,e,r){var n=document.querySelector("#".concat(t))||document.createElement("canvas");n.setAttribute("id",t),n.setAttribute("dir",r===o.default.LTR?"ltr":"rtl");var i=n.getContext("2d");return n.style.zIndex=e,n.style.position="fixed",n.style.top="0",n.style.left="0",document.body.appendChild(n),n.width=u,n.height=s,i},t.prototype.clear=function(){i&&this.debugCtx.clearRect(0,0,u,s)},t.prototype.clearLayouts=function(){i&&this.layoutsCtx.clearRect(0,0,u,s)},t.prototype.drawLayout=function(t,e,r){if(i){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(t.left,t.top,t.width,t.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var n=this.writingDirection===o.default.LTR?"left":"right",u=t[n];this.layoutsCtx.fillText(e,u,t.top+10),this.layoutsCtx.fillText(r,u,t.top+25),this.layoutsCtx.fillText("".concat(n,": ").concat(u),u,t.top+40),this.layoutsCtx.fillText("top: ".concat(t.top),u,t.top+55)}},t.prototype.drawPoint=function(t,e,r,n){void 0===r&&(r="blue"),void 0===n&&(n=10),i&&(this.debugCtx.strokeStyle=r,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(t-n/2,e-n/2,n,n))},t}();e.default=a},119:function(t,e){var r,n;Object.defineProperty(e,"__esModule",{value:!0}),(n=r||(r={}))[n.LTR=0]="LTR",n[n.RTL=1]="RTL",e.default=r},607:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(79),e),o(r(445),e),o(r(654),e)},964:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getBoundingClientRect=void 0;var r=function(t){for(var e=t.offsetParent,r=t.offsetHeight,n=t.offsetWidth,o=t.offsetLeft,i=t.offsetTop;e&&1===e.nodeType;)o+=e.offsetLeft-e.scrollLeft,i+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{height:r,left:o,top:i,width:n}};e.default=function(t){var e=t&&t.parentElement;if(t&&e){var n=r(e),o=r(t),i=o.height,u=o.left,s=o.top,a=o.width;return{x:u-n.left,y:s-n.top,width:a,height:i,left:u,top:s,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},e.getBoundingClientRect=function(t){if(t&&t.getBoundingClientRect){var e=t.getBoundingClientRect();return{x:e.x,y:e.y,width:e.width,height:e.height,left:e.left,top:e.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.useFocusContext=e.FocusContext=void 0;var n=r(156),o=r(654);e.FocusContext=(0,n.createContext)(o.ROOT_FOCUS_KEY),e.FocusContext.displayName="FocusContext",e.useFocusContext=function(){return(0,n.useContext)(e.FocusContext)}},79:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useFocusable=void 0;var o=r(156),i=n(r(604)),u=n(r(461)),s=r(654),a=r(445);e.useFocusable=function(t){var e=void 0===t?{}:t,r=e.focusable,n=void 0===r||r,c=e.saveLastFocusedChild,f=void 0===c||c,l=e.trackChildren,d=void 0!==l&&l,h=e.autoRestoreFocus,p=void 0===h||h,v=e.forceFocus,y=void 0!==v&&v,g=e.isFocusBoundary,b=void 0!==g&&g,m=e.focusBoundaryDirections,F=e.focusKey,C=e.preferredChildFocusKey,_=e.onEnterPress,j=void 0===_?i.default:_,w=e.onEnterRelease,x=void 0===w?i.default:w,K=e.onArrowPress,O=void 0===K?function(){return!0}:K,E=e.onArrowRelease,M=void 0===E?i.default:E,A=e.onFocus,D=void 0===A?i.default:A,P=e.onBlur,L=void 0===P?i.default:P,R=e.extraProps,N=(0,o.useCallback)(function(t){j(R,t)},[j,R]),B=(0,o.useCallback)(function(){x(R)},[x,R]),S=(0,o.useCallback)(function(t,e){return O(t,R,e)},[R,O]),k=(0,o.useCallback)(function(t){M(t,R)},[M,R]),T=(0,o.useCallback)(function(t,e){D(t,R,e)},[R,D]),U=(0,o.useCallback)(function(t,e){L(t,R,e)},[R,L]),q=(0,o.useRef)(null),z=(0,o.useState)(!1),H=z[0],I=z[1],$=(0,o.useState)(!1),W=$[0],G=$[1],Y=(0,a.useFocusContext)(),V=(0,o.useMemo)(function(){return F||(0,u.default)("sn:focusable-item-")},[F]),J=(0,o.useCallback)(function(t){void 0===t&&(t={}),s.SpatialNavigation.setFocus(V,t)},[V]);return(0,o.useEffect)(function(){var t=q.current;return s.SpatialNavigation.addFocusable({focusKey:V,node:t,parentFocusKey:Y,preferredChildFocusKey:C,onEnterPress:N,onEnterRelease:B,onArrowPress:S,onArrowRelease:k,onFocus:T,onBlur:U,onUpdateFocus:function(t){return void 0===t&&(t=!1),I(t)},onUpdateHasFocusedChild:function(t){return void 0===t&&(t=!1),G(t)},saveLastFocusedChild:f,trackChildren:d,isFocusBoundary:b,focusBoundaryDirections:m,autoRestoreFocus:p,forceFocus:y,focusable:n}),function(){s.SpatialNavigation.removeFocusable({focusKey:V})}},[]),(0,o.useEffect)(function(){var t=q.current;s.SpatialNavigation.updateFocusable(V,{node:t,preferredChildFocusKey:C,focusable:n,isFocusBoundary:b,focusBoundaryDirections:m,onEnterPress:N,onEnterRelease:B,onArrowPress:S,onArrowRelease:k,onFocus:T,onBlur:U})},[V,C,n,b,m,N,B,S,k,T,U]),{ref:q,focusSelf:J,focused:H,hasFocusedChild:W,focusKey:V}}},150:function(t){t.exports=Su},117:function(t){t.exports=ku},747:function(t){t.exports=Tu},23:function(t){t.exports=Uu},842:function(t){t.exports=qu},682:function(t){t.exports=zu},784:function(t){t.exports=Hu},604:function(t){t.exports=Iu},432:function(t){t.exports=$u},67:function(t){t.exports=Wu},461:function(t){t.exports=Gu},156:function(t){t.exports=Yu}},Ju={},function t(e){var r=Ju[e];if(void 0!==r)return r.exports;var n=Ju[e]={exports:{}};return Vu[e].call(n.exports,n,n.exports,t),n.exports}(607));exports.commonjsGlobal=r,exports.distExports=ds,exports.getAugmentedNamespace=function(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r},exports.getDefaultExportFromCjs=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.symbol.to-primitive.js"),require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.date.to-primitive.js"),require("core-js/modules/es.number.constructor.js"),require("core-js/modules/es.object.define-properties.js"),require("core-js/modules/es.object.define-property.js"),require("core-js/modules/es.object.get-own-property-descriptor.js"),require("core-js/modules/es.object.get-own-property-descriptors.js"),require("core-js/modules/es.object.get-prototype-of.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.object.set-prototype-of.js"),require("core-js/modules/es.reflect.construct.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.array.from.js"),require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.array.splice.js"),require("core-js/modules/es.object.assign.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.parse-float.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/esnext.promise.all-settled.js"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/web.dom-collections.iterator.js");function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","doNotBailOutOnEmptyChildren","nonce","onResize","style","tagName"],s=["questionId"],r=["action"],n=["disabled","variant","onClick","children"];function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}function a(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(Object(s),!0).forEach(function(t){l(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function l(e,t,s){return(t=d(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function o(e,t){if(null==e)return{};var s,r,n=function(e,t){if(null==e)return{};var s={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;s[r]=e[r]}return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)s=i[r],-1===t.indexOf(s)&&{}.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function c(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(t){var s=function(t,s){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,s||"default");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(t)}(t,"string");return"symbol"==e(s)?s:s+""}function u(t,s,r){return s=f(s),function(t,s){if(s&&("object"==e(s)||"function"==typeof s))return s;if(void 0!==s)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,p()?Reflect.construct(s,r||[],f(t).constructor):s.apply(t,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!e})()}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(){
|
|
2
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
+
var e,t,s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",n=s.toStringTag||"@@toStringTag";function i(s,r,n,i){var o=r&&r.prototype instanceof l?r:l,c=Object.create(o.prototype);return C(c,"_invoke",function(s,r,n){var i,l,o,c=0,d=n||[],u=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,s){return i=t,l=0,o=e,p.n=s,a}};function f(s,r){for(l=s,o=r,t=0;!u&&c&&!n&&t<d.length;t++){var n,i=d[t],f=p.p,h=i[2];s>3?(n=h===r)&&(o=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((n=s<2&&f<i[1])?(l=0,p.v=r,p.n=i[1]):f<h&&(n=s<3||i[0]>r||r>h)&&(i[4]=s,i[5]=r,p.n=h,l=0))}if(n||s>1)return a;throw u=!0,r}return function(n,d,h){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&f(d,h),l=d,o=h;(t=l<2?e:o)||!u;){i||(l?l<3?(l>1&&(p.n=-1),f(l,o)):p.n=o:p.v=o);try{if(c=2,i){if(l||(n="next"),t=i[n]){if(!(t=t.call(i,o)))throw TypeError("iterator result is not an object");if(!t.done)return t;o=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(o=TypeError("The iterator does not provide a '"+n+"' method"),l=1);i=e}else if((t=(u=p.n<0)?o:s.call(r,p))!==a)break}catch(m){i=e,l=1,o=m}finally{c=1}}return{value:t,done:u}}}(s,n,i),!0),c}var a={};function l(){}function o(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(C(t={},r,function(){return this}),t),u=c.prototype=l.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,C(e,n,"GeneratorFunction")),e.prototype=Object.create(u),e}return o.prototype=c,C(u,"constructor",c),C(c,"constructor",o),o.displayName="GeneratorFunction",C(c,n,"GeneratorFunction"),C(u),C(u,n,"Generator"),C(u,r,function(){return this}),C(u,"toString",function(){return"[object Generator]"}),(m=function(){return{w:i,m:p}})()}function C(e,t,s,r){var n=Object.defineProperty;try{n({},"",{})}catch(i){n=0}(C=function(e,t,s,r){function i(t,s){C(e,t,function(e){return this._invoke(t,s,e)})}t?n?n(e,t,{value:s,enumerable:!r,configurable:!r,writable:!r}):e[t]=s:(i("next",0),i("throw",1),i("return",2))})(e,t,s,r)}function y(e,t,s,r,n,i,a){try{var l=e[i](a),o=l.value}catch(c){return void s(c)}l.done?t(o):Promise.resolve(o).then(r,n)}function v(e){return function(){var t=this,s=arguments;return new Promise(function(r,n){var i=e.apply(t,s);function a(e){y(i,r,n,a,l,"next",e)}function l(e){y(i,r,n,a,l,"throw",e)}a(void 0)})}}function j(e,t){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!s){if(Array.isArray(e)||(s=g(e))||t&&e&&"number"==typeof e.length){s&&(e=s);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){s=s.call(e)},n:function(){var e=s.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==s.return||s.return()}finally{if(l)throw i}}}}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var s=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=s){var r,n,i,a,l=[],o=!0,c=!1;try{if(i=(s=s.call(e)).next,0===t){if(Object(s)!==s)return;o=!1}else for(;!(o=(r=i.call(s)).done)&&(l.push(r.value),l.length!==t);o=!0);}catch(d){c=!0,n=d}finally{try{if(!o&&null!=s.return&&(a=s.return(),Object(a)!==a))return}finally{if(c)throw n}}return l}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return x(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}var b,w=require("./feature.js"),I=require("./useStreamLayerApp2.js"),A=require("react"),L=require("./sl-types.js"),T=require("react/jsx-runtime"),H=require("./index9.js"),k=require("./index12.js"),V=require("react-dom"),q=require("./utils.js"),z=require("./storage.js"),O=require("./index10.js"),S=require("./index13.js"),E=require("./index6.js"),R=require("./index5.js"),B=require("./index11.js"),M=require("./analytics.js"),P=L.styled_default("div")({name:"Container",class:"c1zy8a",propsAsIs:!1}),F=L.styled_default("div")({name:"Title",class:"t1vih9p5",propsAsIs:!1}),N=L.styled_default("div")({name:"Indicator",class:"i1fbnvpb",propsAsIs:!1}),Z=function(e){var t=e.indicator,s=e.title;return T.jsxs(P,{children:[T.jsx(F,{children:s}),T.jsx(N,{children:t})]})},W=L.styled_default("div")({name:"Container",class:"ctmhwyc",propsAsIs:!1}),G=L.styled_default("div")({name:"Indicator",class:"i1jri200",propsAsIs:!1}),D=L.styled_default("div")({name:"Title",class:"t8s05oq",propsAsIs:!1}),Q=function(e){var t=e.indicator,s=e.title;return T.jsxs(W,{children:[T.jsx(G,{children:t}),T.jsx(D,{children:s})]})},U=L.styled_default("div")({name:"Container",class:"c1yrpn9o",propsAsIs:!1}),Y=L.styled_default("div")({name:"TopInfo",class:"t17fwahh",propsAsIs:!1}),$=L.styled_default("div")({name:"BottomInfo",class:"by6w7e9",propsAsIs:!1}),J=L.styled_default("div")({name:"User",class:"u1g7arbm",propsAsIs:!1}),K=L.styled_default("img")({name:"Avatar",class:"a1ldeata",propsAsIs:!1}),X=L.styled_default("div")({name:"UserInfo",class:"u10d4koz",propsAsIs:!1}),ee=L.styled_default("div")({name:"UserName",class:"u1q6roj0",propsAsIs:!1}),te=L.styled_default("div")({name:"UserRating",class:"ui0m425",propsAsIs:!1}),se=L.styled_default("img")({name:"TrophyIcon",class:"t1el3mrn",propsAsIs:!1}),re=L.styled_default("div")({name:"RtsContainer",class:"r2vgnxv",propsAsIs:!1}),ne=L.styled_default("div")({name:"RtsDivider",class:"roqn06j",propsAsIs:!1}),ie=L.styled_default("div")({name:"Rts",class:"r15adx7c",propsAsIs:!1}),ae=L.styled_default("div")({name:"RtsIndicator",class:"rv59lta",propsAsIs:!1}),le=L.styled_default("div")({name:"RtsLabel",class:"r55lotb",propsAsIs:!1}),oe=L.styled_default("div")({name:"Divider",class:"d1knfgqt",propsAsIs:!1}),ce=L.styled_default("div")({name:"Ranks",class:"r1mqo824",propsAsIs:!1}),de=L.styled_default("div")({name:"Statistics",class:"sxareh6",propsAsIs:!1}),ue=L.styled_default("div")({name:"AvatarPlaceholder",class:"amcu48h",propsAsIs:!1}),pe=L.styled_default("button")({name:"UserAccountBtn",class:"u32nfkp",propsAsIs:!1}),fe=L.styled_default("div")({name:"StaticContainer",class:"svm502q",propsAsIs:!1}),he=function(){return window.innerWidth>=L.A.md&&window.innerWidth<L.A.lg?76:53},me=function(e){var t,s=he();return Math.round(((null==(t=e.current)?void 0:t.getBoundingClientRect().y)||0)-s)<=0},Ce=L.styled_default("button")({name:"Container",class:"cpjnajb",propsAsIs:!1}),ye=L.styled_default("div")({name:"Content",class:"c4m6kaz",propsAsIs:!1}),ve=L.styled_default("span")({name:"Title",class:"t1h8t9cc",propsAsIs:!1}),je=function(){return T.jsx(Ce,{children:T.jsxs(ye,{children:[T.jsx(E.B1,{name:"iconCopySuccess"}),T.jsx(ve,{children:"Link Copied to Clipboard"})]})})},_e=function(e){var t=A.useRef(),s=_(A.useState(null),2),r=s[0],n=s[1],i=A.useCallback(function(){var s=v(m().m(function s(r){var i,a;return m().w(function(s){for(;;)switch(s.p=s.n){case 0:if(!r||null==(i=null==navigator?void 0:navigator.clipboard)||!i.writeText){s.n=4;break}return t.current&&(clearTimeout(t.current),n(null)),s.p=1,s.n=2,navigator.clipboard.writeText(r);case 2:e.current&&(n(V.createPortal(T.jsx(je,{}),e.current)),t.current=setTimeout(function(){n(null)},1e3)),s.n=4;break;case 3:s.p=3,a=s.v,console.error("Unable to copy to clipboard",a);case 4:return s.a(2)}},s,null,[[1,3]])}));return function(e){return s.apply(this,arguments)}}(),[e]);return A.useEffect(function(){return function(){clearTimeout(t.current)}},[]),[i,r]};b="undefined"!=typeof window?window:"undefined"!=typeof self?self:I.global;var ge=null,xe=null,be=b.clearTimeout,we=b.setTimeout,Ie=b.cancelAnimationFrame||b.mozCancelAnimationFrame||b.webkitCancelAnimationFrame,Ae=b.requestAnimationFrame||b.mozRequestAnimationFrame||b.webkitRequestAnimationFrame;function Le(e){var t,s,r,n,i,a,l,o="undefined"!=typeof document&&document.attachEvent;if(!o){a=function(e){var t=e.__resizeTriggers__,s=t.firstElementChild,r=t.lastElementChild,n=s.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,n.style.width=s.offsetWidth+1+"px",n.style.height=s.offsetHeight+1+"px",s.scrollLeft=s.scrollWidth,s.scrollTop=s.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&ge(this.__resizeRAF__),this.__resizeRAF__=xe(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(s){s.call(t,e)}))})}};var c=!1,d="";r="animationstart";var u="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var h=0;h<u.length;h++)if(void 0!==f.style[u[h]+"AnimationName"]){d="-"+u[h].toLowerCase()+"-",r=p[h],c=!0;break}t="@"+d+"keyframes "+(s="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",n=d+"animation: 1ms "+s+"; "}return{addResizeListener:function(i,c){if(o)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){var d=i.ownerDocument,u=b.getComputedStyle(i);u&&"static"===u.position&&(i.style.position="relative"),function(s){if(!s.getElementById("detectElementResize")){var r=(t||"")+".resize-triggers { "+(n||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=s.head||s.getElementsByTagName("head")[0],a=s.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(s.createTextNode(r)),i.appendChild(a)}}(d),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=d.createElement("div")).className="resize-triggers";var p=d.createElement("div");p.className="expand-trigger",p.appendChild(d.createElement("div"));var f=d.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(p),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===s&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(s){}}}}}null==Ie||null==Ae?(ge=be,xe=function(e){return we(e,20)}):(ge=function(e){var t=_(e,2),s=t[0],r=t[1];Ie(s),be(r)},xe=function(e){var t=Ae(function(){be(s),e()}),s=we(function(){Ie(t),e()},20);return[t,s]});var Te=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return(t=u(this,e,[].concat(r))).state={height:t.props.defaultHeight||0,scaledHeight:t.props.defaultHeight||0,scaledWidth:t.props.defaultWidth||0,width:t.props.defaultWidth||0},t._autoSizer=null,t._detectElementResize=null,t._parentNode=null,t._resizeObserver=null,t._timeoutId=null,t._onResize=function(){t._timeoutId=null;var e=t.props,s=e.disableHeight,r=e.disableWidth,n=e.onResize;if(t._parentNode){var i=window.getComputedStyle(t._parentNode)||{},a=parseFloat(i.paddingLeft||"0"),l=parseFloat(i.paddingRight||"0"),o=parseFloat(i.paddingTop||"0"),c=parseFloat(i.paddingBottom||"0"),d=t._parentNode.getBoundingClientRect(),u=d.height-o-c,p=d.width-a-l,f=t._parentNode.offsetHeight-o-c,h=t._parentNode.offsetWidth-a-l;(s||t.state.height===f&&t.state.scaledHeight===u)&&(r||t.state.width===h&&t.state.scaledWidth===p)||(t.setState({height:f,width:h,scaledHeight:u,scaledWidth:p}),"function"==typeof n&&n({height:f,scaledHeight:u,scaledWidth:p,width:h}))}},t._setRef=function(e){t._autoSizer=e},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(e,A.Component),s=e,(r=[{key:"componentDidMount",value:function(){var e=this,t=this.props.nonce,s=this._autoSizer?this._autoSizer.parentNode:null;if(null!=s&&s.ownerDocument&&s.ownerDocument.defaultView&&s instanceof s.ownerDocument.defaultView.HTMLElement){this._parentNode=s;var r=s.ownerDocument.defaultView.ResizeObserver;null!=r?(this._resizeObserver=new r(function(){e._timeoutId=setTimeout(e._onResize,0)}),this._resizeObserver.observe(s)):(this._detectElementResize=Le(t),this._detectElementResize.addResizeListener(s,this._onResize)),this._onResize()}}},{key:"componentWillUnmount",value:function(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}},{key:"render",value:function(){var e=this.props,s=e.children,r=(e.defaultHeight,e.defaultWidth,e.disableHeight),n=void 0!==r&&r,i=e.disableWidth,l=void 0!==i&&i,c=e.doNotBailOutOnEmptyChildren,d=void 0!==c&&c,u=(e.nonce,e.onResize,e.style),p=void 0===u?{}:u,f=e.tagName,h=void 0===f?"div":f,m=o(e,t),C=this.state,y=C.height,v=C.scaledHeight,j=C.scaledWidth,_=C.width,g={overflow:"visible"},x={},b=!1;return n||(0===y&&(b=!0),g.height=0,x.height=y,x.scaledHeight=v),l||(0===_&&(b=!0),g.width=0,x.width=_,x.scaledWidth=j),d&&(b=!1),A.createElement(h,a({ref:this._setRef,style:a(a({},g),p)},m),!b&&s(x))}}])&&c(s.prototype,r),n&&c(s,n),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,r,n}(),He=L.styled_default("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),ke=L.styled_default("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),Ve=L.styled_default(E.B1)({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),qe=L.styled_default("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),ze=L.styled_default("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),Oe=L.styled_default("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),Se=L.styled_default("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),Ee=L.styled_default("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),Re=L.styled_default("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),Be=L.styled_default("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),Me=L.styled_default(E.B1)({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),Pe=function(e){var t=e.inviteLink,s=e.inviteCardTitle,r=e.inviteCardSubtext,n=e.primaryColor,i=e.className,a=A.useRef(null),l=_(_e(a),2),o=l[0],c=l[1],d=_(M.f$1({type:"invitation",action:"sent",payload:{from:I.InvitationFrom.MENU}}),1)[0];return T.jsxs(He,{className:i,children:[T.jsx(ke,{style:{backgroundColor:n},children:T.jsx(Ve,{name:"invite-game-icon"})}),T.jsxs(qe,{children:[T.jsx(ze,{children:s||""}),T.jsx(Oe,{children:r||""})]}),t&&T.jsxs(Se,{ref:a,"data-a":"intr",onClick:d(function(){return o(t)}),children:[T.jsxs(Ee,{children:[T.jsx(Re,{children:"Invite link"}),T.jsx(Be,{children:t})]}),T.jsx(Me,{name:"icon-copy"})]}),c]})},Fe=L.styled_default(z.r)({name:"Container",class:"cll3md7",propsAsIs:!0}),Ne=L.styled_default(z.S)({name:"ActionBtn",class:"a10g1iik",propsAsIs:!0}),Ze=function(e){var t=e.questionId,r=o(e,s);return T.jsxs(Fe,{"data-a":"intr","data-name":t,children:[T.jsx(O.O,a({questionId:t},r)),T.jsx(Ne,{"data-a":"intr","data-name":t,children:"View Insight"})]})},We=L.styled_default(z.r)({name:"Container",class:"cl56x6b",propsAsIs:!0}),Ge=L.styled_default("button")({name:"ActionButton",class:"a11pzf92",propsAsIs:!1}),De=L.styled_default("blockquote")({name:"Quote",class:"q1hbaleq",propsAsIs:!1}),Qe=function(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return T.jsxs(We,{"data-a":"intr","data-name":t.tweetId,children:[t.title&&T.jsx(De,{children:t.title}),T.jsx(k.b,a({},t)),T.jsx(Ge,{"data-a":"intr","data-name":t.tweetId,children:"View Insight"})]})},Ue=L.styled_default("div")({name:"QuestionsContainer",class:"qvghv3l",propsAsIs:!1}),Ye=L.styled_default("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),$e=L.styled_default("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),Je=L.styled_default("div")({name:"ImageContainer",class:"i1qne9g6",propsAsIs:!1}),Ke=L.styled_default("div")({name:"InsightContent",class:"itpr98r",propsAsIs:!1}),Xe=L.styled_default("h3")({name:"Title",class:"t17iaqp8",propsAsIs:!1}),et=L.styled_default("div")({name:"Description",class:"d16t3y7s",propsAsIs:!1}),tt=L.styled_default("button")({name:"ActionBtn",class:"a12495er",propsAsIs:!1}),st=function(e){var t=e.video,s=e.image,r=e.imageMode,n=e.heading,i=e.body,a=e.action,l=e.controlVideo;return T.jsxs(Ye,{children:[(null==t?void 0:t.url)&&T.jsx(S.Et,{source:t.url,poster:t.thumbnailUrl,controlVideo:l}),s&&!(null!=t&&t.url)&&T.jsx(Je,{"data-rounded":r===I.QuestionImages.ROUNDED,children:T.jsx($e,{src:s,alt:n})}),T.jsxs(Ke,{children:[T.jsx(Xe,{children:n}),T.jsx(et,{children:i}),a&&T.jsx(tt,{onClick:a,children:"View Insight"})]})]})},rt=L.styled_default("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),nt=L.styled_default("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),it=L.styled_default(E.B1)({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),at=L.styled_default("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),lt=L.styled_default(E.B1)({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),ot=L.styled_default("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),ct=L.styled_default("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),dt=L.styled_default("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),ut=L.styled_default("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),pt=L.styled_default("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),ft=L.styled_default("div")({name:"QuoteWrap",class:"q14u54rf",propsAsIs:!1}),ht=L.styled_default("blockquote")({name:"Quote",class:"q1hxm6zo",propsAsIs:!1}),mt=function(e){var t=e.action,s=o(e,r);return T.jsxs(ut,{children:[s.title&&T.jsx(ft,{children:T.jsx(ht,{children:s.title})}),T.jsx(k.b,a({},s)),t&&T.jsx(pt,{onClick:t,children:"View Insight"})]})},Ct=L.styled_default("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),yt=L.styled_default("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),vt=L.styled_default(yt)({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),jt=L.styled_default(yt)({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),_t=L.styled_default(yt)({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),gt=L.styled_default(yt)({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),xt=L.styled_default(yt)({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),bt=L.styled_default(yt)({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),wt=L.styled_default(yt)({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),It=L.styled_default(yt)({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),At=L.styled_default(yt)({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),Lt=L.styled_default(yt)({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),Tt=L.styled_default(yt)({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),Ht=L.styled_default(yt)({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),kt=L.styled_default(yt)({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),Vt=L.styled_default(yt)({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),qt=function(e){var t=e.step,s=e.correct;return T.jsxs(T.Fragment,{children:[T.jsxs(Ct,{"data-active":1===t,"data-first-screen":"true",children:[T.jsx(vt,{}),T.jsx(jt,{}),T.jsx(_t,{})]}),T.jsxs(Ct,{"data-active":2===t,children:[T.jsx(gt,{}),T.jsx(xt,{}),T.jsx(bt,{})]}),T.jsxs(Ct,{"data-active":3===t,children:[T.jsx(gt,{}),T.jsx(xt,{}),T.jsx(bt,{})]}),s?T.jsxs(T.Fragment,{children:[T.jsxs(Ct,{"data-active":4===t,"data-correct":"true",children:[T.jsx(wt,{}),T.jsx(It,{}),T.jsx(At,{}),T.jsx(Lt,{})]}),T.jsxs(Ct,{"data-active":5===t,"data-correct":"true",children:[T.jsx(wt,{}),T.jsx(It,{}),T.jsx(At,{}),T.jsx(Lt,{})]})]}):T.jsxs(Ct,{"data-active":4===t,"data-correct":"false",children:[T.jsx(Tt,{}),T.jsx(Ht,{}),T.jsx(kt,{}),T.jsx(Vt,{})]})]})},zt=L.styled_default(B.f)({name:"Container",class:"c10131zw",propsAsIs:!0}),Ot=L.styled_default("div")({name:"InnerContainer",class:"ir6k2eo",propsAsIs:!1}),St=L.styled_default("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),Et=L.styled_default("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),Rt=L.styled_default(Et)({name:"PointsTitle",class:"p1pjil1h",propsAsIs:!0}),Bt=L.styled_default("div")({name:"Subtitle",class:"s1iorwr9",propsAsIs:!1}),Mt=L.styled_default("div")({name:"SubtitleFG",class:"s51sv9d",propsAsIs:!1}),Pt=L.styled_default("div")({name:"AnswerText",class:"a1lbk2ye",propsAsIs:!1}),Ft=L.styled_default(E.B1)({name:"FeedbackIcon",class:"frcvk3t",propsAsIs:!0}),Nt=L.styled_default(Ft)({name:"FeedbackIconCorrect",class:"f33p82r",propsAsIs:!0}),Zt=L.styled_default(Ft)({name:"FeedbackIconIncorrect",class:"f12r9net",propsAsIs:!0}),Wt=L.styled_default("div")({name:"CloseIconWrap",class:"c1fw6699",propsAsIs:!1}),Gt=L.styled_default(E.B1)({name:"CloseIcon",class:"c115o126",propsAsIs:!0}),Dt=function(e,t,s){return e===t?"translateY(0px)":e>t?"translateY(".concat(s,"px)"):"translateY(-100%)"},Qt=L.styled_default("div")({name:"Container",class:"cl51m2q",propsAsIs:!1}),Ut=L.styled_default("img")({name:"Avatar",class:"a2yhhhr",propsAsIs:!1}),Yt=L.styled_default("div")({name:"AvatarPlaceholder",class:"a1dtxxlr",propsAsIs:!1}),$t=L.styled_default("div")({name:"Content",class:"c12clm3w",propsAsIs:!1}),Jt=L.styled_default("span")({name:"Name",class:"n14lctn7",propsAsIs:!1}),Kt=function(e){var t=e.avatar,s=e.name;return T.jsxs(Qt,{children:[t&&T.jsx(Ut,{src:t}),!t&&T.jsx(Yt,{children:k.I(s||"")}),T.jsxs($t,{children:[T.jsxs(Jt,{children:[s," "]}),"is waiting for you!"]})]})},Xt=L.styled_default("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),es=L.styled_default("div")({name:"Graphic",class:"gjyzpp7",propsAsIs:!1}),ts=L.styled_default("img")({name:"GraphicImage",class:"g16mldgz",propsAsIs:!1}),ss=L.styled_default("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),rs=L.styled_default("div")({name:"TaglineContainer",class:"tmm7qmo",propsAsIs:!1}),ns=L.styled_default("div")({name:"Tagline",class:"t17knuw2",propsAsIs:!1}),is=L.styled_default("div")({name:"Content",class:"c1b74psg",propsAsIs:!1}),as=L.styled_default("div")({name:"StepsContainer",class:"s1y99ug7",propsAsIs:!1}),ls=L.styled_default("span")({name:"StepIndicator",class:"sgf3v5n",propsAsIs:!1}),os=L.styled_default("div")({name:"InvitingUserWrap",class:"i1sj6gn8",propsAsIs:!1}),cs=function(e){var t=e.loading,s=e.steps,r=e.currentStep,n=e.inviterName,i=s[r],a=i.headline,l=i.tagline;return T.jsxs(Xt,{children:[l&&T.jsx(rs,{children:T.jsx(H.i,{loading:t,children:T.jsx(ns,{children:l})})}),T.jsxs(is,{"data-welcome-screen":0===r,children:[T.jsx(es,{children:T.jsx(H.i,{loading:t,children:s.map(function(e,t){var s=e.graphicSrc;return T.jsx(ts,{src:s,"data-active":r===t})})})}),a&&T.jsx(H.i,{loading:t,children:T.jsx(ss,{children:a})})]}),n&&0===r&&T.jsx(os,{children:T.jsx(Kt,{name:n})}),T.jsx(as,{style:t?{visibility:"hidden"}:{},children:Array.from({length:s.length}).map(function(e,t){return T.jsx(ls,{"data-active":r===t},t)})})]})},ds=L.styled_default("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),us=L.styled_default("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),ps=L.styled_default("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),fs=L.styled_default("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),hs=L.styled_default("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),ms=L.styled_default("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),Cs=L.styled_default("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),ys=L.styled_default("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),vs=function(e){var t=e.rules,s=e.rulesTitle,r=e.termsText,n=e.primaryColor,i=e.openTerms;return T.jsxs(ds,{children:[T.jsxs(us,{children:[T.jsx(ps,{children:s}),T.jsx(fs,{children:null==t?void 0:t.map(function(e,t){var s=e.label,r=e.icon;return T.jsxs(hs,{children:[r&&T.jsx(ms,{style:{backgroundColor:n},children:T.jsx(E.B1,{name:r,"data-icon":r})}),T.jsx(Cs,{children:s})]},t)})})]}),r&&T.jsx(ys,{"data-a":"intr",onClick:i,children:"See Terms and Conditions"})]})},js=L.styled_default("div")({name:"Container",class:"cj0g35h",propsAsIs:!1}),_s=L.styled_default("div")({name:"Content",class:"c1xkhrbn",propsAsIs:!1}),gs=L.styled_default("div")({name:"Title",class:"tifzb8b",propsAsIs:!1}),xs=L.styled_default("div")({name:"ScrollingText",class:"stduw5c",propsAsIs:!1}),bs=function(e){var t=e.termsTitle,s=e.termsText;return T.jsx(js,{children:T.jsxs(_s,{children:[T.jsx(gs,{children:t}),T.jsx(xs,{children:s})]})})},ws=L.styled_default("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),Is=L.styled_default("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),As=function(e){var t=e.disabled,s=e.variant,r=void 0===s?"primary":s,i=e.onClick,l=e.children,c=o(e,n);return T.jsx(ws,a(a({"data-a":"intr",onClick:i,disabled:t,"data-variant":r},c),{},{children:T.jsx(Is,{children:l})}))},Ls=L.styled_default("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),Ts=L.styled_default("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),Hs=L.styled_default("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),ks=L.styled_default("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),Vs=L.styled_default(E.B1)({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),qs=L.styled_default("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),zs=L.styled_default(As)({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),Os={steps:!1,rules:!1,inviteCard:!1},Ss=L.styled_default("button")({name:"Container",class:"crkmfw1",propsAsIs:!1}),Es=L.styled_default("div")({name:"Content",class:"c11awpy4",propsAsIs:!1}),Rs=L.styled_default("span")({name:"Title",class:"t154z7mh",propsAsIs:!1});exports.D=function(e){var t=e.close,s=e.votedAnswer,r=e.mastersApp,n=e.correct,i=e.correctAnswerTitle,l=e.questionTitle,o=e.saveHeight,c=e.style,d=e.hiding,u=_(A.useState(1),2),p=u[0],f=u[1],h=A.useRef({});A.useEffect(function(){var e=setInterval(function(){f(function(e){return n&&e>4||!n&&e>3?e:++e})},3e3);return function(){return clearInterval(e)}},[n]),A.useEffect(function(){var e,t;h.current[p]&&o((null==(t=null==(e=h.current[p])?void 0:e.getBoundingClientRect())?void 0:t.height)||118)},[p,o]);var m=function(e){return function(t){h.current&&(h.current[e]=t)}},C=function(e){return{transform:Dt(e,p,c.height)}},y=a({},c);return r&&y.height&&"number"==typeof y.height&&(y.height+=32),T.jsx(zt,{style:c.height?y:a(a({},c),{},{paddingTop:0,paddingBottom:0}),hiding:d,children:T.jsxs(Ot,{style:{height:c.height,minHeight:c.height,backgroundColor:p>3?n?"var(--color-sdk-prediction-result-success-bg)":"var(--color-sdk-prediction-result-incorrect-bg)":"var(--color-primary-1)"},children:[T.jsx(qt,{step:p,correct:n}),r&&T.jsxs(St,{ref:m(1),style:C(1),children:[T.jsx("img",{alt:"sponsor-logo",src:"data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e"}),T.jsx(Mt,{children:"Featured Groups +"})]}),!r&&T.jsx(St,{ref:m(1),style:C(1),children:T.jsx("img",{alt:"sponsor-logo",src:"data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"})}),T.jsxs(St,{ref:m(2),style:C(2),children:[T.jsx(Et,{children:"Prediction results are in!"}),r&&T.jsx(Mt,{children:"Featured Groups +"})]}),T.jsxs(St,{ref:m(3),style:C(3),children:[T.jsx(Et,{children:l}),T.jsx(Bt,{children:T.jsxs(Pt,{children:[T.jsx("span",{children:"Your Pick:"})," ",null==s?void 0:s.title]})})]}),n?T.jsxs(T.Fragment,{children:[T.jsxs(St,{ref:m(4),style:a(a({},C(4)),{},{color:"var(--color-sdk-prediction-result-success-text)"}),children:[T.jsxs(Et,{children:["Congratulations!",T.jsx("br",{}),"You answered correctly."]}),T.jsxs(Bt,{children:[T.jsx(Nt,{name:"selected"}),T.jsxs(Pt,{children:[T.jsx("span",{children:"Your Pick:"})," ",null==s?void 0:s.title]})]})]}),T.jsxs(St,{ref:m(5),style:a(a({},C(5)),{},{color:"var(--color-sdk-prediction-result-success-text)"}),children:[T.jsx(Rt,{children:5===p&&T.jsx(R.d,{delay:.5,prefix:"+",suffix:" points",value:null==s?void 0:s.points})}),T.jsxs(Bt,{children:[T.jsx(Nt,{name:"selected"}),T.jsxs(Pt,{children:[T.jsx("span",{children:"Your Pick:"})," ",null==s?void 0:s.title]})]}),T.jsx(Wt,{"data-a":"intr",onClick:t,children:T.jsx(Gt,{name:"icon-cross"})})]})]}):T.jsxs(St,{ref:m(4),style:C(4),children:[T.jsxs(Et,{style:{color:"var(--color-sdk-prediction-result-error-title)"},children:["Better luck next time!",T.jsx("br",{}),"Correct: ",i,"."]}),T.jsxs(Bt,{style:{color:"var(--color-sdk-prediction-result-error-subtitle)"},children:[T.jsx(Zt,{name:"circleClose"}),T.jsxs(Pt,{children:[T.jsx("span",{children:"Your Pick:"})," ",null==s?void 0:s.title]})]}),T.jsx(Wt,{"data-a":"intr",onClick:t,children:T.jsx(Gt,{name:"icon-cross"})})]})]})})},exports.I=function(e){var t=_(A.useState(!1),2),s=t[0],r=t[1],n=_(A.useState(!1),2),i=n[0],a=n[1],l=A.useRef(null),o=A.useCallback(function(){a(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(function(){a(!1)},1e3)},[]),c=A.useCallback(function(){var e=v(m().m(function e(t){var s;return m().w(function(e){for(;;)switch(e.n){case 0:return r(!0),s=t.map(function(e){return new Promise(function(t,s){var r=new Image;r.onload=function(){return t(e)},r.onerror=function(){return s()},r.src=e})}),e.n=1,Promise.allSettled(s);case 1:r(!1);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),[]);return A.useEffect(function(){e&&(o(),c(e))},[e,o,c]),{loading:s,throttled:i}},exports.M=Pe,exports.T=function(e){var t=e.children,s=e.container,r=e.useContainer,n=e.staticStyles,i=_(A.useState(function(){return me(s)}),1)[0],a=_(A.useState(!1),2),l=a[0],o=a[1];return A.useEffect(function(){if(!s.current||!i)return o(!0),function(){};var e=window.scrollY;return o(!0),function(){me(s)&&window.scrollTo({top:e,behavior:"instant"})}},[]),A.useEffect(function(){if(l&&s.current&&i){var e=he();window.scrollTo({top:s.current.offsetTop-e,behavior:"instant"})}},[l]),s.current&&l?r?V.createPortal(T.jsxs(fe,{className:"StaticContainer",children:[t,T.jsx("style",{children:q.u}),T.jsx("style",{children:"\n .sl-pill-button {\n display: none !important;\n }\n"})]}),s.current,"modal-node"):V.createPortal(T.jsxs(T.Fragment,{children:[t,T.jsx("style",{children:n})]}),s.current,"modal-node"):null},exports.T$1=_e,exports.createSingleStore=function(e){return I.atom(e)},exports.f=function(e){var t=e.title,s=e.onClick,r=e.className,n=e.style;return T.jsx(Ss,{"data-a":"intr",onClick:s,className:r,style:n,children:T.jsxs(Es,{"data-a":"intr",children:[T.jsx(E.B1,{"data-a":"intr",name:"iconUp"}),t&&T.jsx(Rs,{"data-a":"intr",children:t})]})})},exports.k=function(e){var t=e.questions,s=e.openQuestion,r=e.controlVideo;return t?T.jsx(Ue,{"data-a":"intr",onClick:function(e){var t=e.target.getAttribute("data-name");t&&(S.wt(),s(t,{openedFrom:"list"}))},children:null==t?void 0:t.map(function(e){var t,s,n;if("question"===e.type&&"question"===(null==(t=e.attributes)?void 0:t.attributes.case)){var i=e.attributes.attributes.value;return T.jsx(z.R,a({},i),i.questionId)}if("insight"===e.type&&"insight"===(null==(s=e.attributes)?void 0:s.attributes.case)){var l=e.attributes.attributes.value;return T.jsx(Ze,a({controlVideo:r},l),l.questionId)}if("tweet"===e.type&&"tweet"===(null==(n=e.attributes)?void 0:n.attributes.case)){var o=e.attributes.attributes.value,c=e.attributes.id;return T.jsx(Qe,a(a({controlVideo:r},o),{},{tweetId:c}),c)}return null})}):T.jsx(Ue,{children:Array.from({length:5}).map(function(e,t){return T.jsx(z.D,{},t)})})},exports.p=function(e){var t=L.useStore(e.getActiveFeature()),s=L.useStore(e.streamStore()),r=_(A.useState(null),2),n=r[0],i=r[1];return A.useEffect(function(){var s=e.getFeatures();if(t){var r,n=j(s);try{for(n.s();!(r=n.n()).done;){var a=_(r.value,2),l=a[0],o=a[1];l===t?(o.status.get()===w.FeatureStatus.Suspended&&o.enable(),i(o)):o.status.get()===w.FeatureStatus.Ready&&o.disable()}}catch(c){n.e(c)}finally{n.f()}}else i(null);return function(){var e,t=j(s);try{for(t.s();!(e=t.n()).done;){var r=_(e.value,2)[1];r.status.get()===w.FeatureStatus.Ready&&r.disable()}}catch(c){t.e(c)}finally{t.f()}}},[t,e,s]),[t,n]},exports.tn=function(e){var t=e.gamification,s=e.steps,r=e.rules,n=e.rulesBtnLabel,i=e.rulesTitle,l=e.termsTitle,o=e.termsText,c=e.primaryColor,d=e.inviteLink,u=e.inviteCardTitle,p=e.inviteCardSubtext,f=e.inviteCardBtnLabel,h=e.loading,C=e.inviterName,y=e.sdk,j=e.onClose,g=_(A.useState(0),2),x=g[0],b=g[1],w=_(A.useState(!1),2),I=w[0],L=w[1],k=_(A.useState(Os),2),V=k[0],q=k[1];A.useEffect(function(){null!=s&&s.length?q(a(a({},Os),{},{steps:!0})):null!=r&&r.length?q(a(a({},Os),{},{rules:!0})):q(a(a({},Os),{},{inviteCard:!0}))},[]);var z=A.useMemo(function(){return V.steps&&0===x?"Continue":V.rules?I||!n?"Got it":n:V.inviteCard?f||"Play Now":"Next"},[V,x,I,n,f]),O=A.useCallback(function(){null!=s&&s.length&&x<s.length-1?b(function(e){return++e}):null!=r&&r.length&&V.steps?q(a(a({},Os),{},{rules:!0})):V.rules&&q(a(a({},Os),{},{inviteCard:!0}))},[x,null==s?void 0:s.length,null==r?void 0:r.length,V,b,q]),S=function(){var e=v(m().m(function e(){return m().w(function(e){for(;;)switch(e.n){case 0:if(!V.inviteCard){e.n=2;break}return e.n=1,t.onboardingStatus.submitInplay();case 1:e.n=3;break;case 2:V.rules&&I?L(!1):O();case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return A.useEffect(function(){!h&&C&&y.inviteDisplayed()},[h,C,y]),T.jsx(Te,{children:function(e){var t=e.width,n=e.height;return T.jsxs(Ls,{style:{width:t,height:n,maxHeight:n},children:[T.jsx(Hs,{children:T.jsx(ks,{"data-a":"intr",onClick:j,children:T.jsx(Vs,{name:"icon-close-btn-gray"})})}),T.jsxs(Ts,{children:[V.steps&&(null==s?void 0:s.length)&&T.jsx(cs,{loading:h,steps:s,currentStep:x,inviterName:C}),V.rules&&!I&&T.jsx(vs,{rules:r,rulesTitle:i,termsText:o,primaryColor:c,openTerms:function(){return L(!0)}}),V.rules&&I&&T.jsx(bs,{termsTitle:l,termsText:o}),V.inviteCard&&T.jsx(Pe,{inviteLink:d,inviteCardTitle:u,inviteCardSubtext:p,primaryColor:c})]}),T.jsx(qs,{children:T.jsx(H.i,{loading:h,style:{width:"100%"},children:T.jsx(zs,{"data-a":"intr",onClick:S,children:z})})})]})}})},exports.w=function(e){var t=e.close,s=e.action,r=e.controlVideo,n=e.data,i=n.questionType,l=n.question,o=n.insight,c=n.tweet,d=k.e[i];return d?T.jsxs(rt,{onClick:s,style:i===I.QuestionType.TWEET?{paddingTop:"12px"}:{},children:[T.jsx(nt,{"data-a":"intr",onClick:function(e){e.stopPropagation(),t&&t(e)},children:T.jsx(it,{name:"icon-cross"})}),i!==I.QuestionType.TWEET&&T.jsxs(at,{children:[T.jsx(lt,{"data-type-trivia":i===I.QuestionType.TRIVIA,"data-type-poll":i===I.QuestionType.POLL,name:d.iconName}),T.jsx(ot,{children:d.label})]}),i===I.QuestionType.FACTOID&&o&&T.jsx(st,a(a({},o),{},{action:s,controlVideo:r})),i===I.QuestionType.TWEET&&c&&T.jsx(mt,a(a({},c),{},{action:s,controlVideo:r})),i!==I.QuestionType.FACTOID&&i!==I.QuestionType.TWEET&&T.jsxs(T.Fragment,{children:[T.jsx(ct,{children:null==l?void 0:l.title}),T.jsx(dt,{children:"Answer"})]})]}):null},exports.z=function(e){var t=e.loading,s=e.hideFriendsRank,r=e.avatar,n=e.name,i=e.points,a=e.friendsRank,l=e.rank,o=e.streak,c=e.correct,d=e.incorrect,u=e.inTop,p=e.successRate;return T.jsxs(U,{"data-loading":t,children:[T.jsx(Y,{children:T.jsx(H.i,{loading:t,children:T.jsxs(J,{children:[T.jsxs(pe,{children:[r&&T.jsx(K,{alt:"avatar",src:r}),!r&&T.jsx(ue,{children:k.I(n||"")})]}),T.jsxs(X,{children:[T.jsx(ee,{children:n}),T.jsxs(te,{children:[T.jsxs(re,{children:[T.jsxs(ie,{children:[T.jsx(se,{alt:"rank-icon",src:"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"}),T.jsxs(ae,{children:[k.s(i),T.jsx(le,{children:"PTS"})]})]}),s&&T.jsxs(ae,{children:[T.jsx(ne,{}),l||0,T.jsx(le,{children:"global rank"})]})]}),!s&&T.jsxs(T.Fragment,{children:[T.jsx(oe,{}),T.jsxs("div",{children:["TOP ",u||0,"%"]})]})]})]})]})})}),T.jsxs($,{children:[!s&&T.jsxs(ce,{children:[T.jsx(H.i,{loading:t,style:{width:"100%"},children:T.jsx(Z,{indicator:a||0,title:"Friends rank"})}),T.jsx(H.i,{loading:t,style:{width:"100%"},children:T.jsx(Z,{indicator:l||0,title:"Global rank"})})]}),T.jsx(H.i,{loading:t,children:T.jsxs(de,{children:[T.jsx(Q,{indicator:o||0,title:"Win streak"}),T.jsx(Q,{indicator:c||0,title:"Correct"}),T.jsx(Q,{indicator:d||0,title:"Incorrect"}),T.jsx(Q,{indicator:"".concat(p||0,"%"),title:"Succ. rate"})]})})]})]})};
|