@streamlayer/react 0.32.9 → 0.32.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";const s=require("react/jsx-runtime"),le=require("./index2.js"),A=require("react"),U=require("@streamlayer/sdk-web-types"),Z=require("@nanostores/react"),he=require("@streamlayer/sdk-web-interfaces"),d=require("./index4.js"),me=require("@streamlayer/sdk-web-notifications"),Pt=({feature:o,sdk:n,children:c,className:f})=>{const m=Z.useStore(o.status),y=Z.useStore(n.sdkStore.slStreamId);return y!=null&&y.loading?s.jsx("div",{className:f,children:"event is loading..."}):y!=null&&y.data?m!==he.FeatureStatus.Ready?s.jsx("div",{className:f,children:"wait feature..."}):c:s.jsx("div",{className:f,children:"event is forbidden..."})},Mt=A.lazy(()=>Promise.resolve().then(()=>require("./gamification-feature.js"))),Wt=({sdk:o,feature:n,className:c})=>{const f=A.useMemo(()=>n&&n.featureConfig.get().type===U.FeatureType.GAMES?s.jsx(Pt,{className:c,sdk:o,feature:n,children:s.jsx(Mt,{className:c,gamification:n,sdk:o})}):null,[o,n,c]);return s.jsx(A.Suspense,{fallback:s.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"page loading..."}),children:f})},Gt=d.styled_default("button")({name:"SButton",class:"sxxa0c",propsAsIs:!1}),Ht=d.styled_default("span")({name:"ButtonIcon",class:"b193dcyu",propsAsIs:!1}),Qt=d.styled_default("span")({name:"ButtonLabel",class:"b40tuix",propsAsIs:!1}),ke=({disabled:o,active:n,onClick:c,label:f,icon:m})=>s.jsx(Gt,{onClick:c,disabled:o,"data-selected":n,children:s.jsxs(s.Fragment,{children:[m&&s.jsx(Ht,{children:m}),s.jsx(Qt,{children:f})]})}),Yt=()=>d.o1,Vt=d.styled_default(Yt())({name:"ButtonIcon",class:"b1whzxvd",propsAsIs:!0}),ce="channels",Kt=o=>{var n;return s.jsx(ke,{...o,id:"channels",label:"Channels",icon:s.jsx(Vt,{name:"icon-btn-channels","data-selected":(n=o.active)==null?void 0:n.toString()})})},Xt=()=>d.o1,Jt=d.styled_default(Xt())({name:"ButtonIcon",class:"b11des7c",propsAsIs:!0}),X="featuredGroups",Zt=o=>{var n;return s.jsx(ke,{...o,label:"FG+",id:"featuredGroups",icon:s.jsx(Jt,{name:"icon-btn-feature-groups","data-selected":(n=o.active)==null?void 0:n.toString()})})},ei=()=>d.o1,ti=d.styled_default(ei())({name:"ButtonIcon",class:"b180jd7l",propsAsIs:!0}),ge="leaderboard",ii=o=>{var n;return s.jsx(ke,{...o,label:"Leader Board",id:"leaderboard",icon:s.jsx(ti,{name:"icon-btn-leaderboard","data-selected":(n=o.active)==null?void 0:n.toString()})})},ri=d.styled_default("div")({name:"Buttons",class:"b6tbwuy",propsAsIs:!1}),ni=({children:o,className:n})=>s.jsx(ri,{className:n,children:o}),si=()=>ni,oi=d.styled_default(si())({name:"Navigation",class:"n19lpak2",propsAsIs:!0}),ai=({activeOverlay:o,setActiveOverlay:n,sdkReady:c,className:f})=>s.jsxs(oi,{className:f,children:[s.jsx(Kt,{active:o===ce,onClick:()=>n(ce)}),s.jsx(Zt,{active:o===X,disabled:!c,onClick:()=>{n(X)}}),s.jsx(ii,{active:o===ge,onClick:()=>n(ge)})]}),ut={[U.QuestionType.TWEET]:{label:"Insight",iconName:"icon-insight"},[U.QuestionType.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[U.QuestionType.UNSET]:void 0,[U.QuestionType.FACTOID]:{label:"Insight",iconName:"icon-insight"},[U.QuestionType.POLL]:{label:"Poll",iconName:"icon-poll"},[U.QuestionType.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[U.QuestionType.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}},li=d.styled_default("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),ci=d.styled_default("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),ui=d.styled_default("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),di=d.styled_default("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),dt=({poster:o,source:n})=>{const c=A.useRef(null),[f,m]=A.useState(!1),[y,h]=A.useState(!0);return s.jsxs(li,{onClick:()=>{const a=c==null?void 0:c.current;a&&m(g=>g?(a.pause(),!1):(a.play(),h(!1),!0))},children:[s.jsx(ci,{ref:c,src:n,onEnded:()=>{var a;(a=c==null?void 0:c.current)==null||a.load(),m(!1),h(!0)},style:{visibility:y?"hidden":"visible"}}),s.jsx(ui,{src:o,style:{visibility:y?"visible":"hidden"}}),s.jsx(di,{children:!f&&s.jsx(d.o1,{name:"icon-play"})})]})},hi=d.styled_default("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),pi=d.styled_default("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),fi=d.styled_default("div")({name:"InsightContent",class:"i1qne9g6",propsAsIs:!1}),yi=d.styled_default("h3")({name:"Title",class:"ttpr98r",propsAsIs:!1}),mi=d.styled_default("div")({name:"Description",class:"d17iaqp8",propsAsIs:!1}),xi=d.styled_default("button")({name:"ActionBtn",class:"a16t3y7s",propsAsIs:!1}),gi=({video:o,image:n,heading:c,body:f,action:m})=>s.jsxs(hi,{children:[(o==null?void 0:o.url)&&s.jsx(dt,{source:o.url,poster:o.thumbnailUrl}),n&&!(o!=null&&o.url)&&s.jsx(pi,{src:n}),s.jsxs(fi,{children:[s.jsx(yi,{children:c}),s.jsx(mi,{children:f}),m&&s.jsx(xi,{onClick:m,children:"View Insight"})]})]}),wi=d.styled_default("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),_i=d.styled_default("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),Ii=()=>d.o1,Ai=d.styled_default(Ii())({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),vi=d.styled_default("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),bi=()=>d.o1,Ei=d.styled_default(bi())({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),Bi=d.styled_default("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),ji=d.styled_default("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),Ti=d.styled_default("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),Ci=d.styled_default("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),Fi=d.styled_default("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),$i=d.styled_default("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),Si=()=>d.o1,ki=d.styled_default(Si())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),Li=d.styled_default("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),Ri=d.styled_default("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),Ni=d.styled_default("div")({name:"UserName",class:"u1p051g3",propsAsIs:!1}),Ui=({image:o,name:n,userName:c,verified:f})=>s.jsxs(Ci,{children:[o&&s.jsxs(Fi,{children:[s.jsx($i,{src:o}),s.jsx(ki,{name:"twitter"})]}),s.jsxs(Li,{children:[s.jsxs(Ri,{children:[n," ",f&&s.jsx(d.o1,{name:"icon-twitter-verified"})]}),c&&s.jsxs(Ni,{children:["@",c]})]})]}),zi=d.styled_default("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),Oi=d.styled_default("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),Di=d.styled_default("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),ht=({image:o,body:n,account:c,accountVerified:f})=>s.jsx(zi,{children:s.jsxs(Oi,{children:[s.jsx(Ui,{image:o,name:c,userName:c,verified:f}),s.jsx(Di,{children:n})]})}),qi=d.styled_default("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),Pi=d.styled_default("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),Mi=d.styled_default("div")({name:"QuoteWrap",class:"q14u54rf",propsAsIs:!1}),Wi=d.styled_default("blockquote")({name:"Quote",class:"q1hxm6zo",propsAsIs:!1}),Gi=({action:o,...n})=>s.jsxs(qi,{children:[n.title&&s.jsx(Mi,{children:s.jsx(Wi,{children:n.title})}),s.jsx(ht,{...n}),o&&s.jsx(Pi,{onClick:o,children:"View Insight"})]}),Qe=({close:o,action:n,data:{questionType:c,question:f,insight:m,tweet:y}})=>{const h=ut[c];return h?s.jsxs(wi,{children:[s.jsx(_i,{onClick:o,children:s.jsx(Ai,{name:"icon-cross"})}),c!==U.QuestionType.TWEET&&s.jsxs(vi,{children:[s.jsx(Ei,{"data-type-trivia":c===U.QuestionType.TRIVIA,"data-type-poll":c===U.QuestionType.POLL,name:h.iconName}),s.jsx(Bi,{children:h.label})]}),c===U.QuestionType.FACTOID&&s.jsx(gi,{...m,action:n}),c===U.QuestionType.TWEET&&s.jsx(Gi,{...y,action:n}),c!==U.QuestionType.FACTOID&&c!==U.QuestionType.TWEET&&s.jsxs(s.Fragment,{children:[s.jsx(ji,{children:f==null?void 0:f.title}),s.jsx(Ti,{onClick:n,children:"Answer"})]})]}):null},ie=d.styled_default("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),O=d.styled_default("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),Hi=()=>O,Qi=d.styled_default(Hi())({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),Yi=()=>O,Vi=d.styled_default(Yi())({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),Ki=()=>O,Xi=d.styled_default(Ki())({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),Ji=()=>O,Ye=d.styled_default(Ji())({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),Zi=()=>O,Ve=d.styled_default(Zi())({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),er=()=>O,Ke=d.styled_default(er())({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),tr=()=>O,Xe=d.styled_default(tr())({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),ir=()=>O,Je=d.styled_default(ir())({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),rr=()=>O,Ze=d.styled_default(rr())({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),nr=()=>O,et=d.styled_default(nr())({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),sr=()=>O,or=d.styled_default(sr())({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),ar=()=>O,lr=d.styled_default(ar())({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),cr=()=>O,ur=d.styled_default(cr())({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),dr=()=>O,hr=d.styled_default(dr())({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),pr=({step:o,correct:n})=>s.jsxs(s.Fragment,{children:[s.jsxs(ie,{"data-active":o===1,"data-first-screen":"true",children:[s.jsx(Qi,{}),s.jsx(Vi,{}),s.jsx(Xi,{})]}),s.jsxs(ie,{"data-active":o===2,children:[s.jsx(Ye,{}),s.jsx(Ve,{}),s.jsx(Ke,{})]}),s.jsxs(ie,{"data-active":o===3,children:[s.jsx(Ye,{}),s.jsx(Ve,{}),s.jsx(Ke,{})]}),n?s.jsxs(s.Fragment,{children:[s.jsxs(ie,{"data-active":o===4,"data-correct":"false",children:[s.jsx(Xe,{}),s.jsx(Je,{}),s.jsx(Ze,{}),s.jsx(et,{})]}),s.jsxs(ie,{"data-active":o===5,"data-correct":"false","data-last-screen":"true",children:[s.jsx(Xe,{}),s.jsx(Je,{}),s.jsx(Ze,{}),s.jsx(et,{})]})]}):s.jsxs(ie,{"data-active":o===4,"data-correct":"false","data-last-screen":"true",children:[s.jsx(or,{}),s.jsx(lr,{}),s.jsx(ur,{}),s.jsx(hr,{})]})]}),fr=d.styled_default("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),yr="hx17qu6",we=({children:o,style:n,className:c,hiding:f})=>s.jsx(fr,{style:n,className:d.cx_default(c,f&&yr),children:o}),mr=118,xr=()=>we,gr=d.styled_default(xr())({name:"Container",class:"c10131zw",propsAsIs:!0}),wr=d.styled_default("div")({name:"InnerContainer",class:"ir6k2eo",propsAsIs:!1}),re=d.styled_default("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),ne=d.styled_default("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),pe=d.styled_default("div")({name:"Subtitle",class:"s1pjil1h",propsAsIs:!1}),_r=()=>pe,tt=d.styled_default(_r())({name:"SubtitleFG",class:"s1iorwr9",propsAsIs:!0}),ye=d.styled_default("div")({name:"AnswerText",class:"a51sv9d",propsAsIs:!1}),Ir=()=>d.o1,be=d.styled_default(Ir())({name:"FeedbackIcon",class:"f1lbk2ye",propsAsIs:!0}),it=d.styled_default("button")({name:"CloseButton",class:"crcvk3t",propsAsIs:!1}),Ar=()=>d.o1,rt=d.styled_default(Ar())({name:"CloseIcon",class:"c33p82r",propsAsIs:!0}),se=(o,n)=>o===n?"translateY(0px)":o>n?"translateY(100%)":"translateY(-100%)",vr=({close:o,votedAnswer:n,correct:c,correctAnswerTitle:f,questionTitle:m,saveHeight:y,style:h,hiding:a})=>{const[g,I]=A.useState(1),_=A.useRef({});A.useEffect(()=>{const x=setInterval(()=>{I(w=>c&&w>4||!c&&w>3?w:++w)},6e3);return()=>clearInterval(x)},[c]),A.useEffect(()=>{var x,w;_.current[g]&&y(((w=(x=_.current[g])==null?void 0:x.getBoundingClientRect())==null?void 0:w.height)||mr)},[g,y]);const E=x=>w=>{_.current&&(_.current[x]=w)};return s.jsx(gr,{style:h.height?h:{...h,paddingTop:0,paddingBottom:0},hiding:a,children:s.jsxs(wr,{style:{height:h.height,minHeight:h.height,backgroundColor:g>3?"var(--color-white)":"var(--color-primary-green2)"},children:[s.jsx(pr,{step:g,correct:c}),s.jsxs(re,{ref:E(1),style:{transform:se(1,g)},children:[s.jsx(ne,{children:"Master"}),s.jsx(tt,{children:"FEATURED GROUPS +"})]}),s.jsxs(re,{ref:E(2),style:{transform:se(2,g)},children:[s.jsx(ne,{children:"Prediction results are in!"}),s.jsx(tt,{children:"FEATURED GROUPS +"})]}),s.jsxs(re,{ref:E(3),style:{transform:se(3,g)},children:[s.jsx(ne,{children:m}),s.jsx(pe,{children:s.jsxs(ye,{children:["Your Pick: ",n==null?void 0:n.title]})})]}),c?s.jsxs(s.Fragment,{children:[s.jsxs(re,{ref:E(4),style:{transform:se(4,g),color:"var(--color-primary-green1)"},children:[s.jsx(ne,{children:"Congratulations! You answered correctly."}),s.jsxs(pe,{children:[s.jsx(be,{name:"selected"}),s.jsxs(ye,{children:["Your Pick: ",n==null?void 0:n.title]})]})]}),s.jsxs(re,{ref:E(5),style:{transform:se(5,g),color:"var(--color-primary-green1)"},children:[s.jsxs(ne,{children:["+",n==null?void 0:n.points," points"]}),s.jsxs(pe,{children:[s.jsx(be,{name:"selected"}),s.jsxs(ye,{children:["Your Pick: ",n==null?void 0:n.title]})]}),s.jsx(it,{onClick:o,children:s.jsx(rt,{name:"icon-cross"})})]})]}):s.jsxs(re,{ref:E(4),style:{transform:se(4,g)},children:[s.jsxs(ne,{style:{color:"var(--color-neutrals-gray9)"},children:["Better luck next time! Correct: ",f,"."]}),s.jsxs(pe,{style:{color:"var(--color-secondary-red1)"},children:[s.jsx(be,{name:"circleClose"}),s.jsxs(ye,{children:["Your Pick: ",n==null?void 0:n.title]})]}),s.jsx(it,{onClick:o,children:s.jsx(rt,{name:"icon-cross"})})]})]})})};var pt={},ft={},_e={};_e.byteLength=Br;_e.toByteArray=Tr;_e.fromByteArray=$r;var H=[],q=[],br=typeof Uint8Array<"u"?Uint8Array:Array,Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var oe=0,Er=Ee.length;oe<Er;++oe)H[oe]=Ee[oe],q[Ee.charCodeAt(oe)]=oe;q["-".charCodeAt(0)]=62;q["_".charCodeAt(0)]=63;function yt(o){var n=o.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=o.indexOf("=");c===-1&&(c=n);var f=c===n?0:4-c%4;return[c,f]}function Br(o){var n=yt(o),c=n[0],f=n[1];return(c+f)*3/4-f}function jr(o,n,c){return(n+c)*3/4-c}function Tr(o){var n,c=yt(o),f=c[0],m=c[1],y=new br(jr(o,f,m)),h=0,a=m>0?f-4:f,g;for(g=0;g<a;g+=4)n=q[o.charCodeAt(g)]<<18|q[o.charCodeAt(g+1)]<<12|q[o.charCodeAt(g+2)]<<6|q[o.charCodeAt(g+3)],y[h++]=n>>16&255,y[h++]=n>>8&255,y[h++]=n&255;return m===2&&(n=q[o.charCodeAt(g)]<<2|q[o.charCodeAt(g+1)]>>4,y[h++]=n&255),m===1&&(n=q[o.charCodeAt(g)]<<10|q[o.charCodeAt(g+1)]<<4|q[o.charCodeAt(g+2)]>>2,y[h++]=n>>8&255,y[h++]=n&255),y}function Cr(o){return H[o>>18&63]+H[o>>12&63]+H[o>>6&63]+H[o&63]}function Fr(o,n,c){for(var f,m=[],y=n;y<c;y+=3)f=(o[y]<<16&16711680)+(o[y+1]<<8&65280)+(o[y+2]&255),m.push(Cr(f));return m.join("")}function $r(o){for(var n,c=o.length,f=c%3,m=[],y=16383,h=0,a=c-f;h<a;h+=y)m.push(Fr(o,h,h+y>a?a:h+y));return f===1?(n=o[c-1],m.push(H[n>>2]+H[n<<4&63]+"==")):f===2&&(n=(o[c-2]<<8)+o[c-1],m.push(H[n>>10]+H[n>>4&63]+H[n<<2&63]+"=")),m.join("")}var Le={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Le.read=function(o,n,c,f,m){var y,h,a=m*8-f-1,g=(1<<a)-1,I=g>>1,_=-7,E=c?m-1:0,x=c?-1:1,w=o[n+E];for(E+=x,y=w&(1<<-_)-1,w>>=-_,_+=a;_>0;y=y*256+o[n+E],E+=x,_-=8);for(h=y&(1<<-_)-1,y>>=-_,_+=f;_>0;h=h*256+o[n+E],E+=x,_-=8);if(y===0)y=1-I;else{if(y===g)return h?NaN:(w?-1:1)*(1/0);h=h+Math.pow(2,f),y=y-I}return(w?-1:1)*h*Math.pow(2,y-f)};Le.write=function(o,n,c,f,m,y){var h,a,g,I=y*8-m-1,_=(1<<I)-1,E=_>>1,x=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=f?0:y-1,v=f?1:-1,B=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,h=_):(h=Math.floor(Math.log(n)/Math.LN2),n*(g=Math.pow(2,-h))<1&&(h--,g*=2),h+E>=1?n+=x/g:n+=x*Math.pow(2,1-E),n*g>=2&&(h++,g/=2),h+E>=_?(a=0,h=_):h+E>=1?(a=(n*g-1)*Math.pow(2,m),h=h+E):(a=n*Math.pow(2,E-1)*Math.pow(2,m),h=0));m>=8;o[c+w]=a&255,w+=v,a/=256,m-=8);for(h=h<<m|a,I+=m;I>0;o[c+w]=h&255,w+=v,h/=256,I-=8);o[c+w-v]|=B*128};/*!
1
+ "use strict";const s=require("react/jsx-runtime"),Me=require("./index2.js"),p=require("react"),Q=require("@streamlayer/sdk-web-types"),K=require("@nanostores/react"),Ne=require("@streamlayer/sdk-web-interfaces"),l=require("./index4.js"),De=require("@streamlayer/sdk-web-notifications"),$t=({feature:o,sdk:n,children:c,className:d})=>{const D=K.useStore(o.status),j=K.useStore(n.sdkStore.slStreamId);return j!=null&&j.loading?s.jsx("div",{className:d,children:"event is loading..."}):j!=null&&j.data?D!==Ne.FeatureStatus.Ready?s.jsx("div",{className:d,children:"wait feature..."}):c:s.jsx("div",{className:d,children:"event is forbidden..."})},Rt=p.lazy(()=>Promise.resolve().then(()=>require("./gamification-feature.js"))),Wt=({sdk:o,feature:n,className:c})=>{const d=p.useMemo(()=>n&&n.featureConfig.get().type===Q.FeatureType.GAMES?s.jsx($t,{className:c,sdk:o,feature:n,children:s.jsx(Rt,{className:c,gamification:n,sdk:o})}):null,[o,n,c]);return s.jsx(p.Suspense,{fallback:s.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"page loading..."}),children:d})},Pt=l.styled_default("button")({name:"SButton",class:"sxxa0c",propsAsIs:!1}),Gt=l.styled_default("span")({name:"ButtonIcon",class:"b193dcyu",propsAsIs:!1}),qt=l.styled_default("span")({name:"ButtonLabel",class:"b40tuix",propsAsIs:!1}),Ce=({disabled:o,active:n,onClick:c,label:d,icon:D})=>s.jsx(Pt,{onClick:c,disabled:o,"data-selected":n,children:s.jsxs(s.Fragment,{children:[D&&s.jsx(Gt,{children:D}),s.jsx(qt,{children:d})]})}),Zt=()=>l.o1,Vt=l.styled_default(Zt())({name:"ButtonIcon",class:"b1whzxvd",propsAsIs:!0}),ce="channels",Ht=o=>{var n;return s.jsx(Ce,{...o,id:"channels",label:"Channels",icon:s.jsx(Vt,{name:"icon-btn-channels","data-selected":(n=o.active)==null?void 0:n.toString()})})},Jt=()=>l.o1,Xt=l.styled_default(Jt())({name:"ButtonIcon",class:"b11des7c",propsAsIs:!0}),J="featuredGroups",Kt=o=>{var n;return s.jsx(Ce,{...o,label:"FG+",id:"featuredGroups",icon:s.jsx(Xt,{name:"icon-btn-feature-groups","data-selected":(n=o.active)==null?void 0:n.toString()})})},ei=()=>l.o1,ti=l.styled_default(ei())({name:"ButtonIcon",class:"b180jd7l",propsAsIs:!0}),Te="leaderboard",ii=o=>{var n;return s.jsx(Ce,{...o,label:"Leader Board",id:"leaderboard",icon:s.jsx(ti,{name:"icon-btn-leaderboard","data-selected":(n=o.active)==null?void 0:n.toString()})})},ri=l.styled_default("div")({name:"Buttons",class:"b6tbwuy",propsAsIs:!1}),ni=({children:o,className:n})=>s.jsx(ri,{className:n,children:o}),si=()=>ni,oi=l.styled_default(si())({name:"Navigation",class:"n19lpak2",propsAsIs:!0}),ui=({activeOverlay:o,setActiveOverlay:n,sdkReady:c,className:d})=>s.jsxs(oi,{className:d,children:[s.jsx(Ht,{active:o===ce,onClick:()=>n(ce)}),s.jsx(Kt,{active:o===J,disabled:!c,onClick:()=>{n(J)}}),s.jsx(ii,{active:o===Te,onClick:()=>n(Te)})]}),at={[Q.QuestionType.TWEET]:{label:"Insight",iconName:"icon-insight"},[Q.QuestionType.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[Q.QuestionType.UNSET]:void 0,[Q.QuestionType.FACTOID]:{label:"Insight",iconName:"icon-insight"},[Q.QuestionType.POLL]:{label:"Poll",iconName:"icon-poll"},[Q.QuestionType.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[Q.QuestionType.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}},Mi=l.styled_default("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),ci=l.styled_default("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),ai=l.styled_default("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),li=l.styled_default("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),lt=({poster:o,source:n})=>{const c=p.useRef(null),[d,D]=p.useState(!1),[j,N]=p.useState(!0);return s.jsxs(Mi,{onClick:()=>{const u=c==null?void 0:c.current;u&&D(T=>T?(u.pause(),!1):(u.play(),N(!1),!0))},children:[s.jsx(ci,{ref:c,src:n,onEnded:()=>{var u;(u=c==null?void 0:c.current)==null||u.load(),D(!1),N(!0)},style:{visibility:j?"hidden":"visible"}}),s.jsx(ai,{src:o,style:{visibility:j?"visible":"hidden"}}),s.jsx(li,{children:!d&&s.jsx(l.o1,{name:"icon-play"})})]})},Ni=l.styled_default("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),gi=l.styled_default("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),di=l.styled_default("div")({name:"InsightContent",class:"i1qne9g6",propsAsIs:!1}),ji=l.styled_default("h3")({name:"Title",class:"ttpr98r",propsAsIs:!1}),Di=l.styled_default("div")({name:"Description",class:"d17iaqp8",propsAsIs:!1}),Ii=l.styled_default("button")({name:"ActionBtn",class:"a16t3y7s",propsAsIs:!1}),Ti=({video:o,image:n,heading:c,body:d,action:D})=>s.jsxs(Ni,{children:[(o==null?void 0:o.url)&&s.jsx(lt,{source:o.url,poster:o.thumbnailUrl}),n&&!(o!=null&&o.url)&&s.jsx(gi,{src:n}),s.jsxs(di,{children:[s.jsx(ji,{children:c}),s.jsx(Di,{children:d}),D&&s.jsx(Ii,{onClick:D,children:"View Insight"})]})]}),yi=l.styled_default("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),xi=l.styled_default("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),hi=()=>l.o1,pi=l.styled_default(hi())({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),Ai=l.styled_default("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),fi=()=>l.o1,zi=l.styled_default(fi())({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),Ei=l.styled_default("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),Oi=l.styled_default("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),Li=l.styled_default("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),wi=l.styled_default("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),mi=l.styled_default("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),ki=l.styled_default("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),Si=()=>l.o1,Ci=l.styled_default(Si())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),Ui=l.styled_default("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),Yi=l.styled_default("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),_i=l.styled_default("div")({name:"UserName",class:"u1p051g3",propsAsIs:!1}),Qi=({image:o,name:n,userName:c,verified:d})=>s.jsxs(wi,{children:[o&&s.jsxs(mi,{children:[s.jsx(ki,{src:o}),s.jsx(Ci,{name:"twitter"})]}),s.jsxs(Ui,{children:[s.jsxs(Yi,{children:[n," ",d&&s.jsx(l.o1,{name:"icon-twitter-verified"})]}),c&&s.jsxs(_i,{children:["@",c]})]})]}),bi=l.styled_default("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),vi=l.styled_default("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),Bi=l.styled_default("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),Nt=({image:o,body:n,account:c,accountVerified:d})=>s.jsx(bi,{children:s.jsxs(vi,{children:[s.jsx(Qi,{image:o,name:c,userName:c,verified:d}),s.jsx(Bi,{children:n})]})}),Fi=l.styled_default("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),$i=l.styled_default("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),Ri=l.styled_default("div")({name:"QuoteWrap",class:"q14u54rf",propsAsIs:!1}),Wi=l.styled_default("blockquote")({name:"Quote",class:"q1hxm6zo",propsAsIs:!1}),Pi=({action:o,...n})=>s.jsxs(Fi,{children:[n.title&&s.jsx(Ri,{children:s.jsx(Wi,{children:n.title})}),s.jsx(Nt,{...n}),o&&s.jsx($i,{onClick:o,children:"View Insight"})]}),qe=({close:o,action:n,data:{questionType:c,question:d,insight:D,tweet:j}})=>{const N=at[c];return N?s.jsxs(yi,{children:[s.jsx(xi,{onClick:o,children:s.jsx(pi,{name:"icon-cross"})}),c!==Q.QuestionType.TWEET&&s.jsxs(Ai,{children:[s.jsx(zi,{"data-type-trivia":c===Q.QuestionType.TRIVIA,"data-type-poll":c===Q.QuestionType.POLL,name:N.iconName}),s.jsx(Ei,{children:N.label})]}),c===Q.QuestionType.FACTOID&&s.jsx(Ti,{...D,action:n}),c===Q.QuestionType.TWEET&&s.jsx(Pi,{...j,action:n}),c!==Q.QuestionType.FACTOID&&c!==Q.QuestionType.TWEET&&s.jsxs(s.Fragment,{children:[s.jsx(Oi,{children:d==null?void 0:d.title}),s.jsx(Li,{onClick:n,children:"Answer"})]})]}):null},ie=l.styled_default("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),v=l.styled_default("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),Gi=()=>v,qi=l.styled_default(Gi())({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),Zi=()=>v,Vi=l.styled_default(Zi())({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),Hi=()=>v,Ji=l.styled_default(Hi())({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),Xi=()=>v,Ze=l.styled_default(Xi())({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),Ki=()=>v,Ve=l.styled_default(Ki())({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),er=()=>v,He=l.styled_default(er())({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),tr=()=>v,Je=l.styled_default(tr())({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),ir=()=>v,Xe=l.styled_default(ir())({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),rr=()=>v,Ke=l.styled_default(rr())({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),nr=()=>v,et=l.styled_default(nr())({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),sr=()=>v,or=l.styled_default(sr())({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),ur=()=>v,Mr=l.styled_default(ur())({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),cr=()=>v,ar=l.styled_default(cr())({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),lr=()=>v,Nr=l.styled_default(lr())({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),gr=({step:o,correct:n})=>s.jsxs(s.Fragment,{children:[s.jsxs(ie,{"data-active":o===1,"data-first-screen":"true",children:[s.jsx(qi,{}),s.jsx(Vi,{}),s.jsx(Ji,{})]}),s.jsxs(ie,{"data-active":o===2,children:[s.jsx(Ze,{}),s.jsx(Ve,{}),s.jsx(He,{})]}),s.jsxs(ie,{"data-active":o===3,children:[s.jsx(Ze,{}),s.jsx(Ve,{}),s.jsx(He,{})]}),n?s.jsxs(s.Fragment,{children:[s.jsxs(ie,{"data-active":o===4,"data-correct":"false",children:[s.jsx(Je,{}),s.jsx(Xe,{}),s.jsx(Ke,{}),s.jsx(et,{})]}),s.jsxs(ie,{"data-active":o===5,"data-correct":"false","data-last-screen":"true",children:[s.jsx(Je,{}),s.jsx(Xe,{}),s.jsx(Ke,{}),s.jsx(et,{})]})]}):s.jsxs(ie,{"data-active":o===4,"data-correct":"false","data-last-screen":"true",children:[s.jsx(or,{}),s.jsx(Mr,{}),s.jsx(ar,{}),s.jsx(Nr,{})]})]}),dr=l.styled_default("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),jr="hx17qu6",ye=({children:o,style:n,className:c,hiding:d})=>s.jsx(dr,{style:n,className:l.cx_default(c,d&&jr),children:o}),Dr=118,Ir=()=>ye,Tr=l.styled_default(Ir())({name:"Container",class:"c10131zw",propsAsIs:!0}),yr=l.styled_default("div")({name:"InnerContainer",class:"ir6k2eo",propsAsIs:!1}),re=l.styled_default("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),ne=l.styled_default("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),ge=l.styled_default("div")({name:"Subtitle",class:"s1pjil1h",propsAsIs:!1}),xr=()=>ge,tt=l.styled_default(xr())({name:"SubtitleFG",class:"s1iorwr9",propsAsIs:!0}),je=l.styled_default("div")({name:"AnswerText",class:"a51sv9d",propsAsIs:!1}),hr=()=>l.o1,fe=l.styled_default(hr())({name:"FeedbackIcon",class:"f1lbk2ye",propsAsIs:!0}),it=l.styled_default("button")({name:"CloseButton",class:"crcvk3t",propsAsIs:!1}),pr=()=>l.o1,rt=l.styled_default(pr())({name:"CloseIcon",class:"c33p82r",propsAsIs:!0}),se=(o,n)=>o===n?"translateY(0px)":o>n?"translateY(100%)":"translateY(-100%)",Ar=({close:o,votedAnswer:n,correct:c,correctAnswerTitle:d,questionTitle:D,saveHeight:j,style:N,hiding:u})=>{const[T,h]=p.useState(1),x=p.useRef({});p.useEffect(()=>{const I=setInterval(()=>{h(y=>c&&y>4||!c&&y>3?y:++y)},6e3);return()=>clearInterval(I)},[c]),p.useEffect(()=>{var I,y;x.current[T]&&j(((y=(I=x.current[T])==null?void 0:I.getBoundingClientRect())==null?void 0:y.height)||Dr)},[T,j]);const z=I=>y=>{x.current&&(x.current[I]=y)};return s.jsx(Tr,{style:N.height?N:{...N,paddingTop:0,paddingBottom:0},hiding:u,children:s.jsxs(yr,{style:{height:N.height,minHeight:N.height,backgroundColor:T>3?"var(--color-white)":"var(--color-primary-green2)"},children:[s.jsx(gr,{step:T,correct:c}),s.jsxs(re,{ref:z(1),style:{transform:se(1,T)},children:[s.jsx(ne,{children:"Master"}),s.jsx(tt,{children:"FEATURED GROUPS +"})]}),s.jsxs(re,{ref:z(2),style:{transform:se(2,T)},children:[s.jsx(ne,{children:"Prediction results are in!"}),s.jsx(tt,{children:"FEATURED GROUPS +"})]}),s.jsxs(re,{ref:z(3),style:{transform:se(3,T)},children:[s.jsx(ne,{children:D}),s.jsx(ge,{children:s.jsxs(je,{children:["Your Pick: ",n==null?void 0:n.title]})})]}),c?s.jsxs(s.Fragment,{children:[s.jsxs(re,{ref:z(4),style:{transform:se(4,T),color:"var(--color-primary-green1)"},children:[s.jsx(ne,{children:"Congratulations! You answered correctly."}),s.jsxs(ge,{children:[s.jsx(fe,{name:"selected"}),s.jsxs(je,{children:["Your Pick: ",n==null?void 0:n.title]})]})]}),s.jsxs(re,{ref:z(5),style:{transform:se(5,T),color:"var(--color-primary-green1)"},children:[s.jsxs(ne,{children:["+",n==null?void 0:n.points," points"]}),s.jsxs(ge,{children:[s.jsx(fe,{name:"selected"}),s.jsxs(je,{children:["Your Pick: ",n==null?void 0:n.title]})]}),s.jsx(it,{onClick:o,children:s.jsx(rt,{name:"icon-cross"})})]})]}):s.jsxs(re,{ref:z(4),style:{transform:se(4,T)},children:[s.jsxs(ne,{style:{color:"var(--color-neutrals-gray9)"},children:["Better luck next time! Correct: ",d,"."]}),s.jsxs(ge,{style:{color:"var(--color-secondary-red1)"},children:[s.jsx(fe,{name:"circleClose"}),s.jsxs(je,{children:["Your Pick: ",n==null?void 0:n.title]})]}),s.jsx(it,{onClick:o,children:s.jsx(rt,{name:"icon-cross"})})]})]})})};var gt={},dt={},xe={};xe.byteLength=Er;xe.toByteArray=Lr;xe.fromByteArray=kr;var G=[],F=[],fr=typeof Uint8Array<"u"?Uint8Array:Array,ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var oe=0,zr=ze.length;oe<zr;++oe)G[oe]=ze[oe],F[ze.charCodeAt(oe)]=oe;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function jt(o){var n=o.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=o.indexOf("=");c===-1&&(c=n);var d=c===n?0:4-c%4;return[c,d]}function Er(o){var n=jt(o),c=n[0],d=n[1];return(c+d)*3/4-d}function Or(o,n,c){return(n+c)*3/4-c}function Lr(o){var n,c=jt(o),d=c[0],D=c[1],j=new fr(Or(o,d,D)),N=0,u=D>0?d-4:d,T;for(T=0;T<u;T+=4)n=F[o.charCodeAt(T)]<<18|F[o.charCodeAt(T+1)]<<12|F[o.charCodeAt(T+2)]<<6|F[o.charCodeAt(T+3)],j[N++]=n>>16&255,j[N++]=n>>8&255,j[N++]=n&255;return D===2&&(n=F[o.charCodeAt(T)]<<2|F[o.charCodeAt(T+1)]>>4,j[N++]=n&255),D===1&&(n=F[o.charCodeAt(T)]<<10|F[o.charCodeAt(T+1)]<<4|F[o.charCodeAt(T+2)]>>2,j[N++]=n>>8&255,j[N++]=n&255),j}function wr(o){return G[o>>18&63]+G[o>>12&63]+G[o>>6&63]+G[o&63]}function mr(o,n,c){for(var d,D=[],j=n;j<c;j+=3)d=(o[j]<<16&16711680)+(o[j+1]<<8&65280)+(o[j+2]&255),D.push(wr(d));return D.join("")}function kr(o){for(var n,c=o.length,d=c%3,D=[],j=16383,N=0,u=c-d;N<u;N+=j)D.push(mr(o,N,N+j>u?u:N+j));return d===1?(n=o[c-1],D.push(G[n>>2]+G[n<<4&63]+"==")):d===2&&(n=(o[c-2]<<8)+o[c-1],D.push(G[n>>10]+G[n>>4&63]+G[n<<2&63]+"=")),D.join("")}var Ue={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ue.read=function(o,n,c,d,D){var j,N,u=D*8-d-1,T=(1<<u)-1,h=T>>1,x=-7,z=c?D-1:0,I=c?-1:1,y=o[n+z];for(z+=I,j=y&(1<<-x)-1,y>>=-x,x+=u;x>0;j=j*256+o[n+z],z+=I,x-=8);for(N=j&(1<<-x)-1,j>>=-x,x+=d;x>0;N=N*256+o[n+z],z+=I,x-=8);if(j===0)j=1-h;else{if(j===T)return N?NaN:(y?-1:1)*(1/0);N=N+Math.pow(2,d),j=j-h}return(y?-1:1)*N*Math.pow(2,j-d)};Ue.write=function(o,n,c,d,D,j){var N,u,T,h=j*8-D-1,x=(1<<h)-1,z=x>>1,I=D===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=d?0:j-1,A=d?1:-1,E=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,N=x):(N=Math.floor(Math.log(n)/Math.LN2),n*(T=Math.pow(2,-N))<1&&(N--,T*=2),N+z>=1?n+=I/T:n+=I*Math.pow(2,1-z),n*T>=2&&(N++,T/=2),N+z>=x?(u=0,N=x):N+z>=1?(u=(n*T-1)*Math.pow(2,D),N=N+z):(u=n*Math.pow(2,z-1)*Math.pow(2,D),N=0));D>=8;o[c+y]=u&255,y+=A,u/=256,D-=8);for(N=N<<D|u,h+=D;h>0;o[c+y]=N&255,y+=A,N/=256,h-=8);o[c+y-A]|=E*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */(function(o){const n=_e,c=Le,f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.Buffer=a,o.SlowBuffer=C,o.INSPECT_MAX_BYTES=50;const m=2147483647;o.kMaxLength=m,a.TYPED_ARRAY_SUPPORT=y(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function y(){try{const i=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(i,e),i.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function h(i){if(i>m)throw new RangeError('The value "'+i+'" is invalid for option "size"');const e=new Uint8Array(i);return Object.setPrototypeOf(e,a.prototype),e}function a(i,e,t){if(typeof i=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(i)}return g(i,e,t)}a.poolSize=8192;function g(i,e,t){if(typeof i=="string")return x(i,e);if(ArrayBuffer.isView(i))return v(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(M(i,ArrayBuffer)||i&&M(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(M(i,SharedArrayBuffer)||i&&M(i.buffer,SharedArrayBuffer)))return B(i,e,t);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const r=i.valueOf&&i.valueOf();if(r!=null&&r!==i)return a.from(r,e,t);const l=L(i);if(l)return l;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return a.from(i[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}a.from=function(i,e,t){return g(i,e,t)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function I(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function _(i,e,t){return I(i),i<=0?h(i):e!==void 0?typeof t=="string"?h(i).fill(e,t):h(i).fill(e):h(i)}a.alloc=function(i,e,t){return _(i,e,t)};function E(i){return I(i),h(i<0?0:j(i)|0)}a.allocUnsafe=function(i){return E(i)},a.allocUnsafeSlow=function(i){return E(i)};function x(i,e){if((typeof e!="string"||e==="")&&(e="utf8"),!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=N(i,e)|0;let r=h(t);const l=r.write(i,e);return l!==t&&(r=r.slice(0,l)),r}function w(i){const e=i.length<0?0:j(i.length)|0,t=h(e);for(let r=0;r<e;r+=1)t[r]=i[r]&255;return t}function v(i){if(M(i,Uint8Array)){const e=new Uint8Array(i);return B(e.buffer,e.byteOffset,e.byteLength)}return w(i)}function B(i,e,t){if(e<0||i.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let r;return e===void 0&&t===void 0?r=new Uint8Array(i):t===void 0?r=new Uint8Array(i,e):r=new Uint8Array(i,e,t),Object.setPrototypeOf(r,a.prototype),r}function L(i){if(a.isBuffer(i)){const e=j(i.length)|0,t=h(e);return t.length===0||i.copy(t,0,0,e),t}if(i.length!==void 0)return typeof i.length!="number"||ve(i.length)?h(0):w(i);if(i.type==="Buffer"&&Array.isArray(i.data))return w(i.data)}function j(i){if(i>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return i|0}function C(i){return+i!=i&&(i=0),a.alloc(+i)}a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,t){if(M(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,l=t.length;for(let u=0,p=Math.min(r,l);u<p;++u)if(e[u]!==t[u]){r=e[u],l=t[u];break}return r<l?-1:l<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);let r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const l=a.allocUnsafe(t);let u=0;for(r=0;r<e.length;++r){let p=e[r];if(M(p,Uint8Array))u+p.length>l.length?(a.isBuffer(p)||(p=a.from(p)),p.copy(l,u)):Uint8Array.prototype.set.call(l,p,u);else if(a.isBuffer(p))p.copy(l,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=p.length}return l};function N(i,e){if(a.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||M(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const t=i.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&t===0)return 0;let l=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Ae(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return He(i).length;default:if(l)return r?-1:Ae(i).length;e=(""+e).toLowerCase(),l=!0}}a.byteLength=N;function Q(i,e,t){let r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(i||(i="utf8");;)switch(i){case"hex":return kt(this,e,t);case"utf8":case"utf-8":return Ue(this,e,t);case"ascii":return $t(this,e,t);case"latin1":case"binary":return St(this,e,t);case"base64":return Ct(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lt(this,e,t);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),r=!0}}a.prototype._isBuffer=!0;function D(i,e,t){const r=i[e];i[e]=i[t],i[t]=r}a.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)D(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)D(this,t,t+3),D(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)D(this,t,t+7),D(this,t+1,t+6),D(this,t+2,t+5),D(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?Ue(this,0,e):Q.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:a.compare(this,e)===0},a.prototype.inspect=function(){let e="";const t=o.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},f&&(a.prototype[f]=a.prototype.inspect),a.prototype.compare=function(e,t,r,l,u){if(M(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),l===void 0&&(l=0),u===void 0&&(u=this.length),t<0||r>e.length||l<0||u>this.length)throw new RangeError("out of range index");if(l>=u&&t>=r)return 0;if(l>=u)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,l>>>=0,u>>>=0,this===e)return 0;let p=u-l,b=r-t;const $=Math.min(p,b),F=this.slice(l,u),S=e.slice(t,r);for(let T=0;T<$;++T)if(F[T]!==S[T]){p=F[T],b=S[T];break}return p<b?-1:b<p?1:0};function Re(i,e,t,r,l){if(i.length===0)return-1;if(typeof t=="string"?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ve(t)&&(t=l?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(l)return-1;t=i.length-1}else if(t<0)if(l)t=0;else return-1;if(typeof e=="string"&&(e=a.from(e,r)),a.isBuffer(e))return e.length===0?-1:Ne(i,e,t,r,l);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(i,e,t):Uint8Array.prototype.lastIndexOf.call(i,e,t):Ne(i,[e],t,r,l);throw new TypeError("val must be string, number or Buffer")}function Ne(i,e,t,r,l){let u=1,p=i.length,b=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(i.length<2||e.length<2)return-1;u=2,p/=2,b/=2,t/=2}function $(S,T){return u===1?S[T]:S.readUInt16BE(T*u)}let F;if(l){let S=-1;for(F=t;F<p;F++)if($(i,F)===$(e,S===-1?0:F-S)){if(S===-1&&(S=F),F-S+1===b)return S*u}else S!==-1&&(F-=F-S),S=-1}else for(t+b>p&&(t=p-b),F=t;F>=0;F--){let S=!0;for(let T=0;T<b;T++)if($(i,F+T)!==$(e,T)){S=!1;break}if(S)return F}return-1}a.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},a.prototype.indexOf=function(e,t,r){return Re(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return Re(this,e,t,r,!1)};function bt(i,e,t,r){t=Number(t)||0;const l=i.length-t;r?(r=Number(r),r>l&&(r=l)):r=l;const u=e.length;r>u/2&&(r=u/2);let p;for(p=0;p<r;++p){const b=parseInt(e.substr(p*2,2),16);if(ve(b))return p;i[t+p]=b}return p}function Et(i,e,t,r){return fe(Ae(e,i.length-t),i,t,r)}function Bt(i,e,t,r){return fe(zt(e),i,t,r)}function jt(i,e,t,r){return fe(He(e),i,t,r)}function Tt(i,e,t,r){return fe(Ot(e,i.length-t),i,t,r)}a.prototype.write=function(e,t,r,l){if(t===void 0)l="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")l=t,r=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(r)?(r=r>>>0,l===void 0&&(l="utf8")):(l=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const u=this.length-t;if((r===void 0||r>u)&&(r=u),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");let p=!1;for(;;)switch(l){case"hex":return bt(this,e,t,r);case"utf8":case"utf-8":return Et(this,e,t,r);case"ascii":case"latin1":case"binary":return Bt(this,e,t,r);case"base64":return jt(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tt(this,e,t,r);default:if(p)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ct(i,e,t){return e===0&&t===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(e,t))}function Ue(i,e,t){t=Math.min(i.length,t);const r=[];let l=e;for(;l<t;){const u=i[l];let p=null,b=u>239?4:u>223?3:u>191?2:1;if(l+b<=t){let $,F,S,T;switch(b){case 1:u<128&&(p=u);break;case 2:$=i[l+1],($&192)===128&&(T=(u&31)<<6|$&63,T>127&&(p=T));break;case 3:$=i[l+1],F=i[l+2],($&192)===128&&(F&192)===128&&(T=(u&15)<<12|($&63)<<6|F&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:$=i[l+1],F=i[l+2],S=i[l+3],($&192)===128&&(F&192)===128&&(S&192)===128&&(T=(u&15)<<18|($&63)<<12|(F&63)<<6|S&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,b=1):p>65535&&(p-=65536,r.push(p>>>10&1023|55296),p=56320|p&1023),r.push(p),l+=b}return Ft(r)}const ze=4096;function Ft(i){const e=i.length;if(e<=ze)return String.fromCharCode.apply(String,i);let t="",r=0;for(;r<e;)t+=String.fromCharCode.apply(String,i.slice(r,r+=ze));return t}function $t(i,e,t){let r="";t=Math.min(i.length,t);for(let l=e;l<t;++l)r+=String.fromCharCode(i[l]&127);return r}function St(i,e,t){let r="";t=Math.min(i.length,t);for(let l=e;l<t;++l)r+=String.fromCharCode(i[l]);return r}function kt(i,e,t){const r=i.length;(!e||e<0)&&(e=0),(!t||t<0||t>r)&&(t=r);let l="";for(let u=e;u<t;++u)l+=Dt[i[u]];return l}function Lt(i,e,t){const r=i.slice(e,t);let l="";for(let u=0;u<r.length-1;u+=2)l+=String.fromCharCode(r[u]+r[u+1]*256);return l}a.prototype.slice=function(e,t){const r=this.length;e=~~e,t=t===void 0?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e);const l=this.subarray(e,t);return Object.setPrototypeOf(l,a.prototype),l};function R(i,e,t){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+e>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||R(e,t,this.length);let l=this[e],u=1,p=0;for(;++p<t&&(u*=256);)l+=this[e+p]*u;return l},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||R(e,t,this.length);let l=this[e+--t],u=1;for(;t>0&&(u*=256);)l+=this[e+--t]*u;return l},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e=e>>>0,t||R(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||R(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||R(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||R(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=K(function(e){e=e>>>0,te(e,"offset");const t=this[e],r=this[e+7];(t===void 0||r===void 0)&&de(e,this.length-8);const l=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,u=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(l)+(BigInt(u)<<BigInt(32))}),a.prototype.readBigUInt64BE=K(function(e){e=e>>>0,te(e,"offset");const t=this[e],r=this[e+7];(t===void 0||r===void 0)&&de(e,this.length-8);const l=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],u=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(l)<<BigInt(32))+BigInt(u)}),a.prototype.readIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||R(e,t,this.length);let l=this[e],u=1,p=0;for(;++p<t&&(u*=256);)l+=this[e+p]*u;return u*=128,l>=u&&(l-=Math.pow(2,8*t)),l},a.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||R(e,t,this.length);let l=t,u=1,p=this[e+--l];for(;l>0&&(u*=256);)p+=this[e+--l]*u;return u*=128,p>=u&&(p-=Math.pow(2,8*t)),p},a.prototype.readInt8=function(e,t){return e=e>>>0,t||R(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){e=e>>>0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r},a.prototype.readInt16BE=function(e,t){e=e>>>0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r},a.prototype.readInt32LE=function(e,t){return e=e>>>0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e=e>>>0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=K(function(e){e=e>>>0,te(e,"offset");const t=this[e],r=this[e+7];(t===void 0||r===void 0)&&de(e,this.length-8);const l=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(l)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),a.prototype.readBigInt64BE=K(function(e){e=e>>>0,te(e,"offset");const t=this[e],r=this[e+7];(t===void 0||r===void 0)&&de(e,this.length-8);const l=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(l)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r)}),a.prototype.readFloatLE=function(e,t){return e=e>>>0,t||R(e,4,this.length),c.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e=e>>>0,t||R(e,4,this.length),c.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||R(e,8,this.length),c.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||R(e,8,this.length),c.read(this,e,!1,52,8)};function z(i,e,t,r,l,u){if(!a.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>l||e<u)throw new RangeError('"value" argument is out of bounds');if(t+r>i.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,l){if(e=+e,t=t>>>0,r=r>>>0,!l){const b=Math.pow(2,8*r)-1;z(this,e,t,r,b,0)}let u=1,p=0;for(this[t]=e&255;++p<r&&(u*=256);)this[t+p]=e/u&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,l){if(e=+e,t=t>>>0,r=r>>>0,!l){const b=Math.pow(2,8*r)-1;z(this,e,t,r,b,0)}let u=r-1,p=1;for(this[t+u]=e&255;--u>=0&&(p*=256);)this[t+u]=e/p&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,1,255,0),this[t]=e&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Oe(i,e,t,r,l){Ge(e,r,l,i,t,7);let u=Number(e&BigInt(4294967295));i[t++]=u,u=u>>8,i[t++]=u,u=u>>8,i[t++]=u,u=u>>8,i[t++]=u;let p=Number(e>>BigInt(32)&BigInt(4294967295));return i[t++]=p,p=p>>8,i[t++]=p,p=p>>8,i[t++]=p,p=p>>8,i[t++]=p,t}function De(i,e,t,r,l){Ge(e,r,l,i,t,7);let u=Number(e&BigInt(4294967295));i[t+7]=u,u=u>>8,i[t+6]=u,u=u>>8,i[t+5]=u,u=u>>8,i[t+4]=u;let p=Number(e>>BigInt(32)&BigInt(4294967295));return i[t+3]=p,p=p>>8,i[t+2]=p,p=p>>8,i[t+1]=p,p=p>>8,i[t]=p,t+8}a.prototype.writeBigUInt64LE=K(function(e,t=0){return Oe(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=K(function(e,t=0){return De(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,l){if(e=+e,t=t>>>0,!l){const $=Math.pow(2,8*r-1);z(this,e,t,r,$-1,-$)}let u=0,p=1,b=0;for(this[t]=e&255;++u<r&&(p*=256);)e<0&&b===0&&this[t+u-1]!==0&&(b=1),this[t+u]=(e/p>>0)-b&255;return t+r},a.prototype.writeIntBE=function(e,t,r,l){if(e=+e,t=t>>>0,!l){const $=Math.pow(2,8*r-1);z(this,e,t,r,$-1,-$)}let u=r-1,p=1,b=0;for(this[t+u]=e&255;--u>=0&&(p*=256);)e<0&&b===0&&this[t+u+1]!==0&&(b=1),this[t+u]=(e/p>>0)-b&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},a.prototype.writeBigInt64LE=K(function(e,t=0){return Oe(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=K(function(e,t=0){return De(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(i,e,t,r,l,u){if(t+r>i.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Pe(i,e,t,r,l){return e=+e,t=t>>>0,l||qe(i,e,t,4),c.write(i,e,t,r,23,4),t+4}a.prototype.writeFloatLE=function(e,t,r){return Pe(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return Pe(this,e,t,!1,r)};function Me(i,e,t,r,l){return e=+e,t=t>>>0,l||qe(i,e,t,8),c.write(i,e,t,r,52,8),t+8}a.prototype.writeDoubleLE=function(e,t,r){return Me(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return Me(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,l){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!l&&l!==0&&(l=this.length),t>=e.length&&(t=e.length),t||(t=0),l>0&&l<r&&(l=r),l===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),e.length-t<l-r&&(l=e.length-t+r);const u=l-r;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,r,l):Uint8Array.prototype.set.call(e,this.subarray(r,l),t),u},a.prototype.fill=function(e,t,r,l){if(typeof e=="string"){if(typeof t=="string"?(l=t,t=0,r=this.length):typeof r=="string"&&(l=r,r=this.length),l!==void 0&&typeof l!="string")throw new TypeError("encoding must be a string");if(typeof l=="string"&&!a.isEncoding(l))throw new TypeError("Unknown encoding: "+l);if(e.length===1){const p=e.charCodeAt(0);(l==="utf8"&&p<128||l==="latin1")&&(e=p)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t=t>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let u;if(typeof e=="number")for(u=t;u<r;++u)this[u]=e;else{const p=a.isBuffer(e)?e:a.from(e,l),b=p.length;if(b===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(u=0;u<r-t;++u)this[u+t]=p[u%b]}return this};const ee={};function Ie(i,e,t){ee[i]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(l){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:l,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}Ie("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ie("ERR_INVALID_ARG_TYPE",function(i,e){return`The "${i}" argument must be of type number. Received type ${typeof e}`},TypeError),Ie("ERR_OUT_OF_RANGE",function(i,e,t){let r=`The value of "${i}" is out of range.`,l=t;return Number.isInteger(t)&&Math.abs(t)>2**32?l=We(String(t)):typeof t=="bigint"&&(l=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(l=We(l)),l+="n"),r+=` It must be ${e}. Received ${l}`,r},RangeError);function We(i){let e="",t=i.length;const r=i[0]==="-"?1:0;for(;t>=r+4;t-=3)e=`_${i.slice(t-3,t)}${e}`;return`${i.slice(0,t)}${e}`}function Rt(i,e,t){te(e,"offset"),(i[e]===void 0||i[e+t]===void 0)&&de(e,i.length-(t+1))}function Ge(i,e,t,r,l,u){if(i>t||i<e){const p=typeof e=="bigint"?"n":"";let b;throw u>3?e===0||e===BigInt(0)?b=`>= 0${p} and < 2${p} ** ${(u+1)*8}${p}`:b=`>= -(2${p} ** ${(u+1)*8-1}${p}) and < 2 ** ${(u+1)*8-1}${p}`:b=`>= ${e}${p} and <= ${t}${p}`,new ee.ERR_OUT_OF_RANGE("value",b,i)}Rt(r,l,u)}function te(i,e){if(typeof i!="number")throw new ee.ERR_INVALID_ARG_TYPE(e,"number",i)}function de(i,e,t){throw Math.floor(i)!==i?(te(i,t),new ee.ERR_OUT_OF_RANGE(t||"offset","an integer",i)):e<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,i)}const Nt=/[^+/0-9A-Za-z-_]/g;function Ut(i){if(i=i.split("=")[0],i=i.trim().replace(Nt,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function Ae(i,e){e=e||1/0;let t;const r=i.length;let l=null;const u=[];for(let p=0;p<r;++p){if(t=i.charCodeAt(p),t>55295&&t<57344){if(!l){if(t>56319){(e-=3)>-1&&u.push(239,191,189);continue}else if(p+1===r){(e-=3)>-1&&u.push(239,191,189);continue}l=t;continue}if(t<56320){(e-=3)>-1&&u.push(239,191,189),l=t;continue}t=(l-55296<<10|t-56320)+65536}else l&&(e-=3)>-1&&u.push(239,191,189);if(l=null,t<128){if((e-=1)<0)break;u.push(t)}else if(t<2048){if((e-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function zt(i){const e=[];for(let t=0;t<i.length;++t)e.push(i.charCodeAt(t)&255);return e}function Ot(i,e){let t,r,l;const u=[];for(let p=0;p<i.length&&!((e-=2)<0);++p)t=i.charCodeAt(p),r=t>>8,l=t%256,u.push(l),u.push(r);return u}function He(i){return n.toByteArray(Ut(i))}function fe(i,e,t,r){let l;for(l=0;l<r&&!(l+t>=e.length||l>=i.length);++l)e[l+t]=i[l];return l}function M(i,e){return i instanceof e||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===e.name}function ve(i){return i!==i}const Dt=function(){const i="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const r=t*16;for(let l=0;l<16;++l)e[r+l]=i[t]+i[l]}return e}();function K(i){return typeof BigInt>"u"?qt:i}function qt(){throw new Error("BigInt not supported")}})(ft);var mt={exports:{}},k=mt.exports={},W,G;function Te(){throw new Error("setTimeout has not been defined")}function Ce(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?W=setTimeout:W=Te}catch{W=Te}try{typeof clearTimeout=="function"?G=clearTimeout:G=Ce}catch{G=Ce}})();function xt(o){if(W===setTimeout)return setTimeout(o,0);if((W===Te||!W)&&setTimeout)return W=setTimeout,setTimeout(o,0);try{return W(o,0)}catch{try{return W.call(null,o,0)}catch{return W.call(this,o,0)}}}function Sr(o){if(G===clearTimeout)return clearTimeout(o);if((G===Ce||!G)&&clearTimeout)return G=clearTimeout,clearTimeout(o);try{return G(o)}catch{try{return G.call(null,o)}catch{return G.call(this,o)}}}var Y=[],ue=!1,J,xe=-1;function kr(){!ue||!J||(ue=!1,J.length?Y=J.concat(Y):xe=-1,Y.length&&gt())}function gt(){if(!ue){var o=xt(kr);ue=!0;for(var n=Y.length;n;){for(J=Y,Y=[];++xe<n;)J&&J[xe].run();xe=-1,n=Y.length}J=null,ue=!1,Sr(o)}}k.nextTick=function(o){var n=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)n[c-1]=arguments[c];Y.push(new wt(o,n)),Y.length===1&&!ue&&xt(gt)};function wt(o,n){this.fun=o,this.array=n}wt.prototype.run=function(){this.fun.apply(null,this.array)};k.title="browser";k.browser=!0;k.env={};k.argv=[];k.version="";k.versions={};function V(){}k.on=V;k.addListener=V;k.once=V;k.off=V;k.removeListener=V;k.removeAllListeners=V;k.emit=V;k.prependListener=V;k.prependOnceListener=V;k.listeners=function(o){return[]};k.binding=function(o){throw new Error("process.binding is not supported")};k.cwd=function(){return"/"};k.chdir=function(o){throw new Error("process.chdir is not supported")};k.umask=function(){return 0};var Lr=mt.exports;(function(o){Object.defineProperty(o,Symbol.toStringTag,{value:"Module"});const n=ft,c=Lr,f=h=>h&&h.__esModule?h:{default:h},m=f(c),y=globalThis||void 0||self;Object.defineProperty(o,"Buffer",{enumerable:!0,get:()=>n.Buffer}),Object.defineProperty(o,"process",{enumerable:!0,get:()=>m.default}),o.global=y})(pt);let P;typeof window<"u"?P=window:typeof self<"u"?P=self:P=pt.global;let Fe=null,$e=null;const nt=20,Be=P.clearTimeout,st=P.setTimeout,je=P.cancelAnimationFrame||P.mozCancelAnimationFrame||P.webkitCancelAnimationFrame,ot=P.requestAnimationFrame||P.mozRequestAnimationFrame||P.webkitRequestAnimationFrame;je==null||ot==null?(Fe=Be,$e=function(n){return st(n,nt)}):(Fe=function([n,c]){je(n),Be(c)},$e=function(n){const c=ot(function(){Be(f),n()}),f=st(function(){je(c),n()},nt);return[c,f]});function Rr(o){let n,c,f,m,y,h,a;const g=typeof document<"u"&&document.attachEvent;if(!g){h=function(j){const C=j.__resizeTriggers__,N=C.firstElementChild,Q=C.lastElementChild,D=N.firstElementChild;Q.scrollLeft=Q.scrollWidth,Q.scrollTop=Q.scrollHeight,D.style.width=N.offsetWidth+1+"px",D.style.height=N.offsetHeight+1+"px",N.scrollLeft=N.scrollWidth,N.scrollTop=N.scrollHeight},y=function(j){return j.offsetWidth!==j.__resizeLast__.width||j.offsetHeight!==j.__resizeLast__.height},a=function(j){if(j.target.className&&typeof j.target.className.indexOf=="function"&&j.target.className.indexOf("contract-trigger")<0&&j.target.className.indexOf("expand-trigger")<0)return;const C=this;h(this),this.__resizeRAF__&&Fe(this.__resizeRAF__),this.__resizeRAF__=$e(function(){y(C)&&(C.__resizeLast__.width=C.offsetWidth,C.__resizeLast__.height=C.offsetHeight,C.__resizeListeners__.forEach(function(D){D.call(C,j)}))})};let x=!1,w="";f="animationstart";const v="Webkit Moz O ms".split(" ");let B="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),L="";{const j=document.createElement("fakeelement");if(j.style.animationName!==void 0&&(x=!0),x===!1){for(let C=0;C<v.length;C++)if(j.style[v[C]+"AnimationName"]!==void 0){L=v[C],w="-"+L.toLowerCase()+"-",f=B[C],x=!0;break}}}c="resizeanim",n="@"+w+"keyframes "+c+" { from { opacity: 0; } to { opacity: 0; } } ",m=w+"animation: 1ms "+c+"; "}const I=function(x){if(!x.getElementById("detectElementResize")){const w=(n||"")+".resize-triggers { "+(m||"")+'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%; }',v=x.head||x.getElementsByTagName("head")[0],B=x.createElement("style");B.id="detectElementResize",B.type="text/css",o!=null&&B.setAttribute("nonce",o),B.styleSheet?B.styleSheet.cssText=w:B.appendChild(x.createTextNode(w)),v.appendChild(B)}};return{addResizeListener:function(x,w){if(g)x.attachEvent("onresize",w);else{if(!x.__resizeTriggers__){const v=x.ownerDocument,B=P.getComputedStyle(x);B&&B.position==="static"&&(x.style.position="relative"),I(v),x.__resizeLast__={},x.__resizeListeners__=[],(x.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const L=v.createElement("div");L.className="expand-trigger",L.appendChild(v.createElement("div"));const j=v.createElement("div");j.className="contract-trigger",x.__resizeTriggers__.appendChild(L),x.__resizeTriggers__.appendChild(j),x.appendChild(x.__resizeTriggers__),h(x),x.addEventListener("scroll",a,!0),f&&(x.__resizeTriggers__.__animationListener__=function(N){N.animationName===c&&h(x)},x.__resizeTriggers__.addEventListener(f,x.__resizeTriggers__.__animationListener__))}x.__resizeListeners__.push(w)}},removeResizeListener:function(x,w){if(g)x.detachEvent("onresize",w);else if(x.__resizeListeners__.splice(x.__resizeListeners__.indexOf(w),1),!x.__resizeListeners__.length){x.removeEventListener("scroll",a,!0),x.__resizeTriggers__.__animationListener__&&(x.__resizeTriggers__.removeEventListener(f,x.__resizeTriggers__.__animationListener__),x.__resizeTriggers__.__animationListener__=null);try{x.__resizeTriggers__=!x.removeChild(x.__resizeTriggers__)}catch{}}}}}class _t extends A.Component{constructor(...n){super(...n),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:c,disableWidth:f,onResize:m}=this.props;if(this._parentNode){var y,h,a,g;const I=window.getComputedStyle(this._parentNode)||{},_=parseFloat((y=I.paddingLeft)!==null&&y!==void 0?y:"0"),E=parseFloat((h=I.paddingRight)!==null&&h!==void 0?h:"0"),x=parseFloat((a=I.paddingTop)!==null&&a!==void 0?a:"0"),w=parseFloat((g=I.paddingBottom)!==null&&g!==void 0?g:"0"),v=this._parentNode.getBoundingClientRect(),B=v.height-x-w,L=v.width-_-E,j=this._parentNode.offsetHeight-x-w,C=this._parentNode.offsetWidth-_-E;(!c&&(this.state.height!==j||this.state.scaledHeight!==B)||!f&&(this.state.width!==C||this.state.scaledWidth!==L))&&(this.setState({height:j,width:C,scaledHeight:B,scaledWidth:L}),typeof m=="function"&&m({height:j,scaledHeight:B,scaledWidth:L,width:C}))}},this._setRef=c=>{this._autoSizer=c}}componentDidMount(){const{nonce:n}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=Rr(n),this._detectElementResize.addResizeListener(this._parentNode,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.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:n,defaultHeight:c,defaultWidth:f,disableHeight:m=!1,disableWidth:y=!1,nonce:h,onResize:a,style:g={},tagName:I="div",..._}=this.props,{height:E,scaledHeight:x,scaledWidth:w,width:v}=this.state,B={overflow:"visible"},L={};let j=!1;return m||(E===0&&(j=!0),B.height=0,L.height=E,L.scaledHeight=x),y||(v===0&&(j=!0),B.width=0,L.width=v,L.scaledWidth=w),A.createElement(I,{ref:this._setRef,style:{...B,...g},..._},!j&&n(L))}}const Nr=d.styled_default("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),Ur=d.styled_default("div")({name:"Content",class:"cjyzpp7",propsAsIs:!1}),zr=d.styled_default("div")({name:"Graphic",class:"g16mldgz",propsAsIs:!1}),Or=d.styled_default("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),Dr=d.styled_default("div")({name:"StepsContainer",class:"smm7qmo",propsAsIs:!1}),qr=d.styled_default("span")({name:"StepIndicator",class:"s17knuw2",propsAsIs:!1}),Pr=({width:o,graphicSrc:n,headline:c,stepsCount:f,currentStep:m})=>s.jsxs(Nr,{children:[s.jsxs(Ur,{children:[s.jsx(zr,{"data-centered":m===0,children:s.jsx("img",{src:n,alt:c,width:o||300})}),c&&s.jsx(Or,{children:c})]}),s.jsx(Dr,{children:Array.from({length:f}).map((y,h)=>s.jsx(qr,{"data-active":m===h},h))})]}),Mr=d.styled_default("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),Wr=d.styled_default("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),Gr=()=>d.o1,Hr=d.styled_default(Gr())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),Qr=d.styled_default("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),Yr=d.styled_default("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),Vr=d.styled_default("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),Kr=d.styled_default("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),Xr=d.styled_default("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),Jr=d.styled_default("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),Zr=d.styled_default("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),en=()=>d.o1,tn=d.styled_default(en())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),rn=d.styled_default("div")({name:"SocialLinksContainer",class:"s1n7kzeh",propsAsIs:!1}),nn=d.styled_default("a")({name:"SocialLink",class:"s2m9o9y",propsAsIs:!1}),sn=d.styled_default("span")({name:"SocialLinkLabel",class:"sewjbbn",propsAsIs:!1}),It=({inviteLink:o,socialLinks:n,inviteCardTitle:c,inviteCardSubtext:f,primaryColor:m,className:y})=>s.jsxs(Mr,{className:y,children:[s.jsx(Wr,{style:{backgroundColor:m},children:s.jsx(Hr,{name:"invite-game-icon"})}),s.jsxs(Qr,{children:[s.jsx(Yr,{children:c||""}),s.jsx(Vr,{children:f||""})]}),o&&s.jsxs(Kr,{onClick:async()=>{if(o)try{await navigator.clipboard.writeText(o)}catch(h){console.error("Unable to copy to clipboard",h)}},children:[s.jsxs(Xr,{children:[s.jsx(Jr,{children:"Invite link"}),s.jsx(Zr,{children:o})]}),s.jsx(tn,{name:"icon-copy"})]}),n&&n.length>0&&s.jsx(rn,{children:n.map(({icon:h,link:a,label:g})=>s.jsxs(nn,{href:a,target:"_blank",children:[s.jsx(d.o1,{name:h}),s.jsx(sn,{children:g})]},a))})]}),on=d.styled_default("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),an=d.styled_default("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),ln=d.styled_default("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),cn=d.styled_default("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),un=d.styled_default("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),dn=d.styled_default("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),hn=d.styled_default("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),pn=d.styled_default("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),fn=({rules:o,rulesTitle:n,primaryColor:c})=>s.jsxs(on,{children:[s.jsxs(an,{children:[s.jsx(ln,{children:n}),s.jsx(cn,{children:o==null?void 0:o.map(({label:f,icon:m},y)=>s.jsxs(un,{children:[m&&s.jsx(dn,{style:{backgroundColor:c},children:s.jsx(d.o1,{name:m,"data-icon":m})}),s.jsx(hn,{children:f})]},y))})]}),s.jsx(pn,{children:"See Terms and Conditions"})]}),yn=d.styled_default("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),mn=d.styled_default("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),At=({disabled:o,variant:n="primary",onClick:c,children:f,...m})=>s.jsx(yn,{onClick:c,disabled:o,"data-variant":n,...m,children:s.jsx(mn,{children:f})}),xn=d.styled_default("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),gn=d.styled_default("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),wn=d.styled_default("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),_n=d.styled_default("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),In=()=>d.o1,An=d.styled_default(In())({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),vn=d.styled_default("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),bn=()=>At,En=d.styled_default(bn())({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),ae={steps:!1,rules:!1,inviteCard:!1},Bn=({gamification:o,steps:n,rules:c,rulesBtnLabel:f,rulesTitle:m,primaryColor:y,inviteLink:h,socialLinks:a,inviteCardTitle:g,inviteCardSubtext:I,inviteCardBtnLabel:_,onClose:E})=>{const[x,w]=A.useState(0),[v,B]=A.useState(ae);A.useEffect(()=>{n!=null&&n.length?B({...ae,steps:!0}):c!=null&&c.length?B({...ae,rules:!0}):B({...ae,inviteCard:!0})},[]);const L=A.useMemo(()=>v.steps&&x===0?"Continue":v.rules?f||"Got it":v.inviteCard?_||"Play Now":"Next",[v,x,f,_]),j=A.useCallback(()=>{n!=null&&n.length&&x<n.length-1?w(N=>++N):c!=null&&c.length&&v.steps?B({...ae,rules:!0}):v.rules&&B({...ae,inviteCard:!0})},[x,n==null?void 0:n.length,c==null?void 0:c.length,v,w,B]),C=async()=>{await o.onboardingStatus.submitInplay()};return s.jsx(_t,{children:({width:N,height:Q})=>s.jsxs(xn,{style:{width:N,height:Q},children:[s.jsx(wn,{children:s.jsx(_n,{onClick:E,children:s.jsx(An,{name:"icon-close-btn-gray"})})}),s.jsxs(gn,{children:[v.steps&&(n==null?void 0:n.length)&&s.jsx(Pr,{stepsCount:n.length,currentStep:x,...n[x]}),v.rules&&s.jsx(fn,{rules:c,rulesTitle:m,primaryColor:y}),v.inviteCard&&s.jsx(It,{inviteLink:h,inviteCardTitle:g,inviteCardSubtext:I,primaryColor:y,socialLinks:a})]}),s.jsx(vn,{children:s.jsx(En,{onClick:v.inviteCard?C:j,children:L})})]})})},jn=d.styled_default("div")({name:"Container",class:"cocfo2g",propsAsIs:!1}),Tn=d.styled_default("div")({name:"CloseIconWrap",class:"c1pdhxdk",propsAsIs:!1}),Cn=()=>d.o1,Fn=d.styled_default(Cn())({name:"CloseIcon",class:"c1funj3r",propsAsIs:!0}),$n=d.styled_default("div")({name:"Title",class:"t1okg06y",propsAsIs:!1}),Sn=d.styled_default("img")({name:"SponsorLogo",class:"sb1n923",propsAsIs:!1}),kn=d.styled_default("div")({name:"PresentsTitle",class:"p1stllxd",propsAsIs:!1}),Ln=d.styled_default("div")({name:"Subtitle",class:"s13kvdzw",propsAsIs:!1}),Rn=d.styled_default("div")({name:"Description",class:"dfvmv3t",propsAsIs:!1}),Nn=d.styled_default("button")({name:"ActionButton",class:"ay8e3j9",propsAsIs:!1}),at=({close:o,action:n,onboarding:c})=>{var f,m,y,h,a,g,I,_;return s.jsxs(jn,{children:[s.jsx(Tn,{onClick:o,children:s.jsx(Fn,{name:"icon-cross"})}),((m=(f=c==null?void 0:c.titleCard)==null?void 0:f.media)==null?void 0:m.sponsorLogo)&&s.jsxs($n,{children:[s.jsx(Sn,{alt:"sponsor-logo",src:(h=(y=c==null?void 0:c.titleCard)==null?void 0:y.media)==null?void 0:h.sponsorLogo}),s.jsx(kn,{children:"PRESENTS"})]}),((a=c==null?void 0:c.titleCard)==null?void 0:a.title)&&s.jsx(Ln,{children:(g=c==null?void 0:c.titleCard)==null?void 0:g.title}),((I=c==null?void 0:c.titleCard)==null?void 0:I.subtitle)&&s.jsx(Rn,{children:(_=c==null?void 0:c.titleCard)==null?void 0:_.subtitle}),s.jsx(Nn,{onClick:n,children:"Play Now"})]})},Un=d.styled_default("div")({name:"OnboardingContainer",class:"o9squag",propsAsIs:!1}),zn=()=>we,On=d.styled_default(zn())({name:"OnboardingNotificationContainer",class:"o1c8wcli",propsAsIs:!0}),lt=d.styled_default("div")({name:"InnerContainer",class:"i18oyadd",propsAsIs:!1}),Dn="cebdc0u",qn=({deepLink:o,onboardingOpts:n,notification:c,gamification:f})=>{var m,y,h,a,g,I;const[_,E]=A.useState(void 0);return A.useEffect(()=>{const x=o.$store.subscribe(w=>{w&&E(w.data)});return()=>{x()}},[o.$store]),s.jsx(Un,{className:d.cx_default(c.hiding&&Dn),children:s.jsx(Bn,{rules:[{label:"Answer as many questions as you like.",icon:"icon-btn-feature-groups"},{label:"Win points for each correct trivia or prediction answer.",icon:"icon-thumb-up"},{label:"Top the leader board and best your friends.",icon:"icon-trophy"}],rulesBtnLabel:(m=n.rules)==null?void 0:m.buttonLabel,rulesTitle:(y=n.rules)==null?void 0:y.heading,steps:[{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",headline:"Welcome to the Featured Groups +",width:80},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",headline:"Get real-time insights",width:264},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",headline:"Predictions, trivia & polls synced to match play"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",headline:"Win points for every answer you get right"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",headline:"Compete against friends on the leaderboard"}],primaryColor:(h=n.inviteCard)==null?void 0:h.iconColor,inviteLink:_==null?void 0:_.url,inviteCardTitle:(a=n.inviteCard)==null?void 0:a.heading,inviteCardSubtext:(g=n.inviteCard)==null?void 0:g.subtext,inviteCardBtnLabel:(I=n.inviteCard)==null?void 0:I.buttonLabel,onClose:()=>{var x;(x=c.close)==null||x.call(c)},socialLinks:[{icon:"icon-facebook",link:"https://www.facebook.com/TheMasters",label:"Facebook"},{icon:"icon-twitter",link:"https://twitter.com/@TheMasters",label:"X"}],gamification:f})})},Pn=({sdk:o,notification:n,saveHeight:c,style:f})=>{const m=A.useRef(null),[y,h]=A.useState(!1),a=o.getFeature(U.FeatureType.GAMES),g=n.data.onboarding;return A.useLayoutEffect(()=>{var I;c(((I=m.current)==null?void 0:I.getBoundingClientRect().height)||0)},[c]),y&&a&&g?s.jsx(qn,{notification:n,setOpened:h,gamification:a,onboardingOpts:g,deepLink:a.deepLink}):s.jsxs(s.Fragment,{children:[s.jsx(lt,{ref:I=>{m.current=I},style:{position:"absolute",visibility:"hidden"},children:s.jsx(at,{close:()=>{},action:()=>{},onboarding:g})}),s.jsx(On,{style:f,hiding:n.hiding,children:s.jsx(lt,{children:s.jsx(at,{close:n.close,action:()=>h(!0),onboarding:g})})})]})},Mn=()=>we,Wn=d.styled_default(Mn())({name:"Container",class:"ctckejh",propsAsIs:!0}),ct=d.styled_default("div")({name:"InnerContainer",class:"i1ri7tzr",propsAsIs:!1}),Gn=o=>{const[n,c]=A.useState(0),f=A.useRef(null),m=A.useCallback(h=>{f.current=h},[]);A.useEffect(()=>{var h;const a=(h=f.current)==null?void 0:h.getBoundingClientRect();a&&c(a.height)},[o]);const y=A.useCallback(h=>{c(h)},[]);return[m,n,y]},Hn=({sdk:o,notification:n})=>{var c,f;const[m,y,h]=Gn(n.id);return n.type===me.NotificationType.QUESTION?s.jsxs(s.Fragment,{children:[s.jsx(ct,{ref:m,style:{position:"absolute",visibility:"hidden"},children:s.jsx(Qe,{...n})}),s.jsx(Wn,{style:{height:n.hiding?0:y},hiding:n.hiding,children:s.jsx(ct,{style:{height:"100%"},children:s.jsx(Qe,{...n})})})]}):n.type===me.NotificationType.QUESTION_RESOLVED&&(f=(c=n.data)==null?void 0:c.question)!=null&&f.predictionResult?s.jsx(vr,{style:{height:n.hiding?0:y},saveHeight:h,close:n.close,hiding:n.hiding,...n.data.question}):n.type===me.NotificationType.ONBOARDING?s.jsx(Pn,{style:{height:n.hiding?0:y},saveHeight:h,sdk:o,notification:n}):null},Qn=({sdk:o})=>{const[n]=A.useState(o.getNotificationsStore()),c=Z.useStore(n),f=A.useMemo(()=>{if(!(c!=null&&c.size))return null;for(const m of c.values())if(m.type===me.NotificationType.ONBOARDING)return m;return c.values().next().value},[c]);return f?s.jsx(Hn,{sdk:o,notification:f}):null},Yn=d.styled_default("div")({name:"SDKContainer",class:"stu11h7",propsAsIs:!1}),Se=d.styled_default("div")({name:"SDKScrollContainer",class:"s1ucohr1",propsAsIs:!1}),vt=d.styled_default("div")({name:"SDKContentContainer",class:"s1el4wvm",propsAsIs:!1}),Vn=()=>vt,Kn=d.styled_default(Vn())({name:"SDKWhiteContainer",class:"s1oe3036",propsAsIs:!0}),Xn=o=>{const n=A.useRef(""),[c,f]=A.useState(!1),m=Z.useStore(o.status),y=Z.useStore(o.userId()),h=m==="ready",[a,g]=A.useState(X),I=A.useCallback((x,w)=>{g(w),w===X?(x&&o.createEventSession(x),window.requestAnimationFrame(()=>{o.openFeature(U.FeatureType.GAMES)})):o.closeFeature()},[o]);A.useEffect(()=>{!h&&a===X&&(g(ce),o.closeFeature())},[h,a,o]);const _=x=>{n.current=x,f(!0),o.initializeApp().then(({enabled:w,err:v})=>{if(v){I(x,ce);return}if(w){o.isUserAuthorized().then(B=>{if(B){I(x,X);return}else o.disableApp()});return}})},E=()=>{f(!1),o.disableApp()};return A.useEffect(()=>{if(!y){h&&(g(ce),o.disableApp());return}y&&n.current&&c&&o.initializeApp().then(()=>{o.createEventSession(n.current)})},[y]),{sdkEnabled:c,sdkReady:h,activeOverlay:a,activateAndLoadOverlay:I,activateEventWithId:_,deactivate:E,isLogged:!!y}},Jn=o=>{const n=Z.useStore(o.getActiveFeature()),c=Z.useStore(o.streamStore()),[f,m]=A.useState(null);return A.useEffect(()=>{const y=o.getFeatures();if(n)for(const[h,a]of y)h===n?a.status.get()===he.FeatureStatus.Suspended&&(a.enable(),m(a)):a.status.get()===he.FeatureStatus.Ready&&a.disable();else{for(const[,h]of y)h.status.get()===he.FeatureStatus.Ready&&h.disable();m(null)}return()=>{for(const[,h]of y)h.status.get()===he.FeatureStatus.Ready&&h.disable()}},[n,o,c]),[n,f]},Zn=({sdk:o,className:n})=>{const[,c]=Jn(o);return s.jsx(Wt,{className:n,feature:c,sdk:o})},es=({sdk:o,overlays:n,children:c})=>{const{sdkEnabled:f,sdkReady:m,activeOverlay:y,activateAndLoadOverlay:h,activateEventWithId:a,deactivate:g,isLogged:I}=Xn(o);return A.useEffect(()=>{Promise.resolve().then(()=>require("./gamification-feature.js"))},[]),s.jsxs(Yn,{children:[f&&s.jsx(ai,{sdkReady:m,activeOverlay:y,className:le.d,setActiveOverlay:_=>h("",_)}),m&&s.jsx(Qn,{sdk:o}),s.jsx(Se,{"data-nav":f.toString(),style:{display:!f||y===ce?"block":"none"},children:c&&c({activateEventWithId:a,deactivate:g})}),s.jsx(Se,{"data-nav":f.toString(),style:{display:y===ge?"block":"none"},children:n&&y===ge&&n[y]}),m&&y===X&&s.jsx(Zn,{className:le.d,sdk:o}),!I&&s.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"You are not logged in."})]})};const ts=({sdkKey:o,plugins:n,children:c,production:f=!0})=>s.jsx(le.StreamLayerProvider,{sdkKey:o,plugins:n,production:f,autoEnable:!1,children:c}),is=({children:o,overlays:n})=>{const{sdk:c,status:f}=A.useContext(le.StreamLayerContext);if(f===le.StreamLayerStatus.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return c?s.jsx("div",{className:"StreamLayerSDK",children:s.jsx(le.s,{style:{height:"100%"},children:s.jsx(es,{sdk:c,overlays:n,children:o})})}):o({})};exports.AutoSizer=_t;exports.MastersStreamLayerProvider=ts;exports.MastersStreamLayerSDKReact=is;exports.O=It;exports.a=Kn;exports.c=At;exports.f=we;exports.n=vt;exports.o=ut;exports.r=Se;exports.u=ht;exports.w=dt;
6
+ */(function(o){const n=xe,c=Ue,d=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.Buffer=u,o.SlowBuffer=w,o.INSPECT_MAX_BYTES=50;const D=2147483647;o.kMaxLength=D,u.TYPED_ARRAY_SUPPORT=j(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function j(){try{const i=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(i,e),i.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function N(i){if(i>D)throw new RangeError('The value "'+i+'" is invalid for option "size"');const e=new Uint8Array(i);return Object.setPrototypeOf(e,u.prototype),e}function u(i,e,t){if(typeof i=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return z(i)}return T(i,e,t)}u.poolSize=8192;function T(i,e,t){if(typeof i=="string")return I(i,e);if(ArrayBuffer.isView(i))return A(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(R(i,ArrayBuffer)||i&&R(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(R(i,SharedArrayBuffer)||i&&R(i.buffer,SharedArrayBuffer)))return E(i,e,t);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const r=i.valueOf&&i.valueOf();if(r!=null&&r!==i)return u.from(r,e,t);const M=U(i);if(M)return M;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return u.from(i[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}u.from=function(i,e,t){return T(i,e,t)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function h(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function x(i,e,t){return h(i),i<=0?N(i):e!==void 0?typeof t=="string"?N(i).fill(e,t):N(i).fill(e):N(i)}u.alloc=function(i,e,t){return x(i,e,t)};function z(i){return h(i),N(i<0?0:O(i)|0)}u.allocUnsafe=function(i){return z(i)},u.allocUnsafeSlow=function(i){return z(i)};function I(i,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=_(i,e)|0;let r=N(t);const M=r.write(i,e);return M!==t&&(r=r.slice(0,M)),r}function y(i){const e=i.length<0?0:O(i.length)|0,t=N(e);for(let r=0;r<e;r+=1)t[r]=i[r]&255;return t}function A(i){if(R(i,Uint8Array)){const e=new Uint8Array(i);return E(e.buffer,e.byteOffset,e.byteLength)}return y(i)}function E(i,e,t){if(e<0||i.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let r;return e===void 0&&t===void 0?r=new Uint8Array(i):t===void 0?r=new Uint8Array(i,e):r=new Uint8Array(i,e,t),Object.setPrototypeOf(r,u.prototype),r}function U(i){if(u.isBuffer(i)){const e=O(i.length)|0,t=N(e);return t.length===0||i.copy(t,0,0,e),t}if(i.length!==void 0)return typeof i.length!="number"||Ae(i.length)?N(0):y(i);if(i.type==="Buffer"&&Array.isArray(i.data))return y(i.data)}function O(i){if(i>=D)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return i|0}function w(i){return+i!=i&&(i=0),u.alloc(+i)}u.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==u.prototype},u.compare=function(e,t){if(R(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),R(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,M=t.length;for(let a=0,g=Math.min(r,M);a<g;++a)if(e[a]!==t[a]){r=e[a],M=t[a];break}return r<M?-1:M<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return u.alloc(0);let r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const M=u.allocUnsafe(t);let a=0;for(r=0;r<e.length;++r){let g=e[r];if(R(g,Uint8Array))a+g.length>M.length?(u.isBuffer(g)||(g=u.from(g)),g.copy(M,a)):Uint8Array.prototype.set.call(M,g,a);else if(u.isBuffer(g))g.copy(M,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=g.length}return M};function _(i,e){if(u.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||R(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const t=i.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&t===0)return 0;let M=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return pe(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ge(i).length;default:if(M)return r?-1:pe(i).length;e=(""+e).toLowerCase(),M=!0}}u.byteLength=_;function q(i,e,t){let r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(i||(i="utf8");;)switch(i){case"hex":return Ct(this,e,t);case"utf8":case"utf-8":return Qe(this,e,t);case"ascii":return kt(this,e,t);case"latin1":case"binary":return St(this,e,t);case"base64":return wt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut(this,e,t);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),r=!0}}u.prototype._isBuffer=!0;function B(i,e,t){const r=i[e];i[e]=i[t],i[t]=r}u.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)B(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)B(this,t,t+3),B(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)B(this,t,t+7),B(this,t+1,t+6),B(this,t+2,t+5),B(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?Qe(this,0,e):q.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:u.compare(this,e)===0},u.prototype.inspect=function(){let e="";const t=o.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},d&&(u.prototype[d]=u.prototype.inspect),u.prototype.compare=function(e,t,r,M,a){if(R(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),M===void 0&&(M=0),a===void 0&&(a=this.length),t<0||r>e.length||M<0||a>this.length)throw new RangeError("out of range index");if(M>=a&&t>=r)return 0;if(M>=a)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,M>>>=0,a>>>=0,this===e)return 0;let g=a-M,f=r-t;const k=Math.min(g,f),m=this.slice(M,a),S=e.slice(t,r);for(let L=0;L<k;++L)if(m[L]!==S[L]){g=m[L],f=S[L];break}return g<f?-1:f<g?1:0};function Ye(i,e,t,r,M){if(i.length===0)return-1;if(typeof t=="string"?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Ae(t)&&(t=M?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(M)return-1;t=i.length-1}else if(t<0)if(M)t=0;else return-1;if(typeof e=="string"&&(e=u.from(e,r)),u.isBuffer(e))return e.length===0?-1:_e(i,e,t,r,M);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(i,e,t):Uint8Array.prototype.lastIndexOf.call(i,e,t):_e(i,[e],t,r,M);throw new TypeError("val must be string, number or Buffer")}function _e(i,e,t,r,M){let a=1,g=i.length,f=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(i.length<2||e.length<2)return-1;a=2,g/=2,f/=2,t/=2}function k(S,L){return a===1?S[L]:S.readUInt16BE(L*a)}let m;if(M){let S=-1;for(m=t;m<g;m++)if(k(i,m)===k(e,S===-1?0:m-S)){if(S===-1&&(S=m),m-S+1===f)return S*a}else S!==-1&&(m-=m-S),S=-1}else for(t+f>g&&(t=g-f),m=t;m>=0;m--){let S=!0;for(let L=0;L<f;L++)if(k(i,m+L)!==k(e,L)){S=!1;break}if(S)return m}return-1}u.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},u.prototype.indexOf=function(e,t,r){return Ye(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return Ye(this,e,t,r,!1)};function ft(i,e,t,r){t=Number(t)||0;const M=i.length-t;r?(r=Number(r),r>M&&(r=M)):r=M;const a=e.length;r>a/2&&(r=a/2);let g;for(g=0;g<r;++g){const f=parseInt(e.substr(g*2,2),16);if(Ae(f))return g;i[t+g]=f}return g}function zt(i,e,t,r){return de(pe(e,i.length-t),i,t,r)}function Et(i,e,t,r){return de(bt(e),i,t,r)}function Ot(i,e,t,r){return de(Ge(e),i,t,r)}function Lt(i,e,t,r){return de(vt(e,i.length-t),i,t,r)}u.prototype.write=function(e,t,r,M){if(t===void 0)M="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")M=t,r=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(r)?(r=r>>>0,M===void 0&&(M="utf8")):(M=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const a=this.length-t;if((r===void 0||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");let g=!1;for(;;)switch(M){case"hex":return ft(this,e,t,r);case"utf8":case"utf-8":return zt(this,e,t,r);case"ascii":case"latin1":case"binary":return Et(this,e,t,r);case"base64":return Ot(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lt(this,e,t,r);default:if(g)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),g=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wt(i,e,t){return e===0&&t===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(e,t))}function Qe(i,e,t){t=Math.min(i.length,t);const r=[];let M=e;for(;M<t;){const a=i[M];let g=null,f=a>239?4:a>223?3:a>191?2:1;if(M+f<=t){let k,m,S,L;switch(f){case 1:a<128&&(g=a);break;case 2:k=i[M+1],(k&192)===128&&(L=(a&31)<<6|k&63,L>127&&(g=L));break;case 3:k=i[M+1],m=i[M+2],(k&192)===128&&(m&192)===128&&(L=(a&15)<<12|(k&63)<<6|m&63,L>2047&&(L<55296||L>57343)&&(g=L));break;case 4:k=i[M+1],m=i[M+2],S=i[M+3],(k&192)===128&&(m&192)===128&&(S&192)===128&&(L=(a&15)<<18|(k&63)<<12|(m&63)<<6|S&63,L>65535&&L<1114112&&(g=L))}}g===null?(g=65533,f=1):g>65535&&(g-=65536,r.push(g>>>10&1023|55296),g=56320|g&1023),r.push(g),M+=f}return mt(r)}const be=4096;function mt(i){const e=i.length;if(e<=be)return String.fromCharCode.apply(String,i);let t="",r=0;for(;r<e;)t+=String.fromCharCode.apply(String,i.slice(r,r+=be));return t}function kt(i,e,t){let r="";t=Math.min(i.length,t);for(let M=e;M<t;++M)r+=String.fromCharCode(i[M]&127);return r}function St(i,e,t){let r="";t=Math.min(i.length,t);for(let M=e;M<t;++M)r+=String.fromCharCode(i[M]);return r}function Ct(i,e,t){const r=i.length;(!e||e<0)&&(e=0),(!t||t<0||t>r)&&(t=r);let M="";for(let a=e;a<t;++a)M+=Bt[i[a]];return M}function Ut(i,e,t){const r=i.slice(e,t);let M="";for(let a=0;a<r.length-1;a+=2)M+=String.fromCharCode(r[a]+r[a+1]*256);return M}u.prototype.slice=function(e,t){const r=this.length;e=~~e,t=t===void 0?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e);const M=this.subarray(e,t);return Object.setPrototypeOf(M,u.prototype),M};function Y(i,e,t){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+e>t)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||Y(e,t,this.length);let M=this[e],a=1,g=0;for(;++g<t&&(a*=256);)M+=this[e+g]*a;return M},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||Y(e,t,this.length);let M=this[e+--t],a=1;for(;t>0&&(a*=256);)M+=this[e+--t]*a;return M},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Y(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=H(function(e){e=e>>>0,te(e,"offset");const t=this[e],r=this[e+7];(t===void 0||r===void 0)&&le(e,this.length-8);const M=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,a=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(M)+(BigInt(a)<<BigInt(32))}),u.prototype.readBigUInt64BE=H(function(e){e=e>>>0,te(e,"offset");const t=this[e],r=this[e+7];(t===void 0||r===void 0)&&le(e,this.length-8);const M=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],a=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(M)<<BigInt(32))+BigInt(a)}),u.prototype.readIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||Y(e,t,this.length);let M=this[e],a=1,g=0;for(;++g<t&&(a*=256);)M+=this[e+g]*a;return a*=128,M>=a&&(M-=Math.pow(2,8*t)),M},u.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||Y(e,t,this.length);let M=t,a=1,g=this[e+--M];for(;M>0&&(a*=256);)g+=this[e+--M]*a;return a*=128,g>=a&&(g-=Math.pow(2,8*t)),g},u.prototype.readInt8=function(e,t){return e=e>>>0,t||Y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},u.prototype.readInt16LE=function(e,t){e=e>>>0,t||Y(e,2,this.length);const r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r},u.prototype.readInt16BE=function(e,t){e=e>>>0,t||Y(e,2,this.length);const r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r},u.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=H(function(e){e=e>>>0,te(e,"offset");const t=this[e],r=this[e+7];(t===void 0||r===void 0)&&le(e,this.length-8);const M=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(M)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),u.prototype.readBigInt64BE=H(function(e){e=e>>>0,te(e,"offset");const t=this[e],r=this[e+7];(t===void 0||r===void 0)&&le(e,this.length-8);const M=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(M)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r)}),u.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),c.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Y(e,4,this.length),c.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),c.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Y(e,8,this.length),c.read(this,e,!1,52,8)};function b(i,e,t,r,M,a){if(!u.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>M||e<a)throw new RangeError('"value" argument is out of bounds');if(t+r>i.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,M){if(e=+e,t=t>>>0,r=r>>>0,!M){const f=Math.pow(2,8*r)-1;b(this,e,t,r,f,0)}let a=1,g=0;for(this[t]=e&255;++g<r&&(a*=256);)this[t+g]=e/a&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,M){if(e=+e,t=t>>>0,r=r>>>0,!M){const f=Math.pow(2,8*r)-1;b(this,e,t,r,f,0)}let a=r-1,g=1;for(this[t+a]=e&255;--a>=0&&(g*=256);)this[t+a]=e/g&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,1,255,0),this[t]=e&255,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ve(i,e,t,r,M){Pe(e,r,M,i,t,7);let a=Number(e&BigInt(4294967295));i[t++]=a,a=a>>8,i[t++]=a,a=a>>8,i[t++]=a,a=a>>8,i[t++]=a;let g=Number(e>>BigInt(32)&BigInt(4294967295));return i[t++]=g,g=g>>8,i[t++]=g,g=g>>8,i[t++]=g,g=g>>8,i[t++]=g,t}function Be(i,e,t,r,M){Pe(e,r,M,i,t,7);let a=Number(e&BigInt(4294967295));i[t+7]=a,a=a>>8,i[t+6]=a,a=a>>8,i[t+5]=a,a=a>>8,i[t+4]=a;let g=Number(e>>BigInt(32)&BigInt(4294967295));return i[t+3]=g,g=g>>8,i[t+2]=g,g=g>>8,i[t+1]=g,g=g>>8,i[t]=g,t+8}u.prototype.writeBigUInt64LE=H(function(e,t=0){return ve(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=H(function(e,t=0){return Be(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,r,M){if(e=+e,t=t>>>0,!M){const k=Math.pow(2,8*r-1);b(this,e,t,r,k-1,-k)}let a=0,g=1,f=0;for(this[t]=e&255;++a<r&&(g*=256);)e<0&&f===0&&this[t+a-1]!==0&&(f=1),this[t+a]=(e/g>>0)-f&255;return t+r},u.prototype.writeIntBE=function(e,t,r,M){if(e=+e,t=t>>>0,!M){const k=Math.pow(2,8*r-1);b(this,e,t,r,k-1,-k)}let a=r-1,g=1,f=0;for(this[t+a]=e&255;--a>=0&&(g*=256);)e<0&&f===0&&this[t+a+1]!==0&&(f=1),this[t+a]=(e/g>>0)-f&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||b(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},u.prototype.writeBigInt64LE=H(function(e,t=0){return ve(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=H(function(e,t=0){return Be(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Fe(i,e,t,r,M,a){if(t+r>i.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function $e(i,e,t,r,M){return e=+e,t=t>>>0,M||Fe(i,e,t,4),c.write(i,e,t,r,23,4),t+4}u.prototype.writeFloatLE=function(e,t,r){return $e(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return $e(this,e,t,!1,r)};function Re(i,e,t,r,M){return e=+e,t=t>>>0,M||Fe(i,e,t,8),c.write(i,e,t,r,52,8),t+8}u.prototype.writeDoubleLE=function(e,t,r){return Re(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return Re(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,M){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!M&&M!==0&&(M=this.length),t>=e.length&&(t=e.length),t||(t=0),M>0&&M<r&&(M=r),M===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),e.length-t<M-r&&(M=e.length-t+r);const a=M-r;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,r,M):Uint8Array.prototype.set.call(e,this.subarray(r,M),t),a},u.prototype.fill=function(e,t,r,M){if(typeof e=="string"){if(typeof t=="string"?(M=t,t=0,r=this.length):typeof r=="string"&&(M=r,r=this.length),M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!u.isEncoding(M))throw new TypeError("Unknown encoding: "+M);if(e.length===1){const g=e.charCodeAt(0);(M==="utf8"&&g<128||M==="latin1")&&(e=g)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t=t>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let a;if(typeof e=="number")for(a=t;a<r;++a)this[a]=e;else{const g=u.isBuffer(e)?e:u.from(e,M),f=g.length;if(f===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=g[a%f]}return this};const ee={};function he(i,e,t){ee[i]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(M){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:M,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}he("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),he("ERR_INVALID_ARG_TYPE",function(i,e){return`The "${i}" argument must be of type number. Received type ${typeof e}`},TypeError),he("ERR_OUT_OF_RANGE",function(i,e,t){let r=`The value of "${i}" is out of range.`,M=t;return Number.isInteger(t)&&Math.abs(t)>2**32?M=We(String(t)):typeof t=="bigint"&&(M=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(M=We(M)),M+="n"),r+=` It must be ${e}. Received ${M}`,r},RangeError);function We(i){let e="",t=i.length;const r=i[0]==="-"?1:0;for(;t>=r+4;t-=3)e=`_${i.slice(t-3,t)}${e}`;return`${i.slice(0,t)}${e}`}function Yt(i,e,t){te(e,"offset"),(i[e]===void 0||i[e+t]===void 0)&&le(e,i.length-(t+1))}function Pe(i,e,t,r,M,a){if(i>t||i<e){const g=typeof e=="bigint"?"n":"";let f;throw a>3?e===0||e===BigInt(0)?f=`>= 0${g} and < 2${g} ** ${(a+1)*8}${g}`:f=`>= -(2${g} ** ${(a+1)*8-1}${g}) and < 2 ** ${(a+1)*8-1}${g}`:f=`>= ${e}${g} and <= ${t}${g}`,new ee.ERR_OUT_OF_RANGE("value",f,i)}Yt(r,M,a)}function te(i,e){if(typeof i!="number")throw new ee.ERR_INVALID_ARG_TYPE(e,"number",i)}function le(i,e,t){throw Math.floor(i)!==i?(te(i,t),new ee.ERR_OUT_OF_RANGE(t||"offset","an integer",i)):e<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,i)}const _t=/[^+/0-9A-Za-z-_]/g;function Qt(i){if(i=i.split("=")[0],i=i.trim().replace(_t,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function pe(i,e){e=e||1/0;let t;const r=i.length;let M=null;const a=[];for(let g=0;g<r;++g){if(t=i.charCodeAt(g),t>55295&&t<57344){if(!M){if(t>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(g+1===r){(e-=3)>-1&&a.push(239,191,189);continue}M=t;continue}if(t<56320){(e-=3)>-1&&a.push(239,191,189),M=t;continue}t=(M-55296<<10|t-56320)+65536}else M&&(e-=3)>-1&&a.push(239,191,189);if(M=null,t<128){if((e-=1)<0)break;a.push(t)}else if(t<2048){if((e-=2)<0)break;a.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;a.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;a.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return a}function bt(i){const e=[];for(let t=0;t<i.length;++t)e.push(i.charCodeAt(t)&255);return e}function vt(i,e){let t,r,M;const a=[];for(let g=0;g<i.length&&!((e-=2)<0);++g)t=i.charCodeAt(g),r=t>>8,M=t%256,a.push(M),a.push(r);return a}function Ge(i){return n.toByteArray(Qt(i))}function de(i,e,t,r){let M;for(M=0;M<r&&!(M+t>=e.length||M>=i.length);++M)e[M+t]=i[M];return M}function R(i,e){return i instanceof e||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===e.name}function Ae(i){return i!==i}const Bt=function(){const i="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const r=t*16;for(let M=0;M<16;++M)e[r+M]=i[t]+i[M]}return e}();function H(i){return typeof BigInt>"u"?Ft:i}function Ft(){throw new Error("BigInt not supported")}})(dt);var Dt={exports:{}},C=Dt.exports={},W,P;function Le(){throw new Error("setTimeout has not been defined")}function we(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?W=setTimeout:W=Le}catch{W=Le}try{typeof clearTimeout=="function"?P=clearTimeout:P=we}catch{P=we}})();function It(o){if(W===setTimeout)return setTimeout(o,0);if((W===Le||!W)&&setTimeout)return W=setTimeout,setTimeout(o,0);try{return W(o,0)}catch{try{return W.call(null,o,0)}catch{return W.call(this,o,0)}}}function Sr(o){if(P===clearTimeout)return clearTimeout(o);if((P===we||!P)&&clearTimeout)return P=clearTimeout,clearTimeout(o);try{return P(o)}catch{try{return P.call(null,o)}catch{return P.call(this,o)}}}var Z=[],ae=!1,X,Ie=-1;function Cr(){!ae||!X||(ae=!1,X.length?Z=X.concat(Z):Ie=-1,Z.length&&Tt())}function Tt(){if(!ae){var o=It(Cr);ae=!0;for(var n=Z.length;n;){for(X=Z,Z=[];++Ie<n;)X&&X[Ie].run();Ie=-1,n=Z.length}X=null,ae=!1,Sr(o)}}C.nextTick=function(o){var n=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)n[c-1]=arguments[c];Z.push(new yt(o,n)),Z.length===1&&!ae&&It(Tt)};function yt(o,n){this.fun=o,this.array=n}yt.prototype.run=function(){this.fun.apply(null,this.array)};C.title="browser";C.browser=!0;C.env={};C.argv=[];C.version="";C.versions={};function V(){}C.on=V;C.addListener=V;C.once=V;C.off=V;C.removeListener=V;C.removeAllListeners=V;C.emit=V;C.prependListener=V;C.prependOnceListener=V;C.listeners=function(o){return[]};C.binding=function(o){throw new Error("process.binding is not supported")};C.cwd=function(){return"/"};C.chdir=function(o){throw new Error("process.chdir is not supported")};C.umask=function(){return 0};var Ur=Dt.exports;(function(o){Object.defineProperty(o,Symbol.toStringTag,{value:"Module"});const n=dt,c=Ur,d=N=>N&&N.__esModule?N:{default:N},D=d(c),j=globalThis||void 0||self;Object.defineProperty(o,"Buffer",{enumerable:!0,get:()=>n.Buffer}),Object.defineProperty(o,"process",{enumerable:!0,get:()=>D.default}),o.global=j})(gt);let $;typeof window<"u"?$=window:typeof self<"u"?$=self:$=gt.global;let me=null,ke=null;const nt=20,Ee=$.clearTimeout,st=$.setTimeout,Oe=$.cancelAnimationFrame||$.mozCancelAnimationFrame||$.webkitCancelAnimationFrame,ot=$.requestAnimationFrame||$.mozRequestAnimationFrame||$.webkitRequestAnimationFrame;Oe==null||ot==null?(me=Ee,ke=function(n){return st(n,nt)}):(me=function([n,c]){Oe(n),Ee(c)},ke=function(n){const c=ot(function(){Ee(d),n()}),d=st(function(){Oe(c),n()},nt);return[c,d]});function Yr(o){let n,c,d,D,j,N,u;const T=typeof document<"u"&&document.attachEvent;if(!T){N=function(O){const w=O.__resizeTriggers__,_=w.firstElementChild,q=w.lastElementChild,B=_.firstElementChild;q.scrollLeft=q.scrollWidth,q.scrollTop=q.scrollHeight,B.style.width=_.offsetWidth+1+"px",B.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},j=function(O){return O.offsetWidth!==O.__resizeLast__.width||O.offsetHeight!==O.__resizeLast__.height},u=function(O){if(O.target.className&&typeof O.target.className.indexOf=="function"&&O.target.className.indexOf("contract-trigger")<0&&O.target.className.indexOf("expand-trigger")<0)return;const w=this;N(this),this.__resizeRAF__&&me(this.__resizeRAF__),this.__resizeRAF__=ke(function(){j(w)&&(w.__resizeLast__.width=w.offsetWidth,w.__resizeLast__.height=w.offsetHeight,w.__resizeListeners__.forEach(function(B){B.call(w,O)}))})};let I=!1,y="";d="animationstart";const A="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),U="";{const O=document.createElement("fakeelement");if(O.style.animationName!==void 0&&(I=!0),I===!1){for(let w=0;w<A.length;w++)if(O.style[A[w]+"AnimationName"]!==void 0){U=A[w],y="-"+U.toLowerCase()+"-",d=E[w],I=!0;break}}}c="resizeanim",n="@"+y+"keyframes "+c+" { from { opacity: 0; } to { opacity: 0; } } ",D=y+"animation: 1ms "+c+"; "}const h=function(I){if(!I.getElementById("detectElementResize")){const y=(n||"")+".resize-triggers { "+(D||"")+'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%; }',A=I.head||I.getElementsByTagName("head")[0],E=I.createElement("style");E.id="detectElementResize",E.type="text/css",o!=null&&E.setAttribute("nonce",o),E.styleSheet?E.styleSheet.cssText=y:E.appendChild(I.createTextNode(y)),A.appendChild(E)}};return{addResizeListener:function(I,y){if(T)I.attachEvent("onresize",y);else{if(!I.__resizeTriggers__){const A=I.ownerDocument,E=$.getComputedStyle(I);E&&E.position==="static"&&(I.style.position="relative"),h(A),I.__resizeLast__={},I.__resizeListeners__=[],(I.__resizeTriggers__=A.createElement("div")).className="resize-triggers";const U=A.createElement("div");U.className="expand-trigger",U.appendChild(A.createElement("div"));const O=A.createElement("div");O.className="contract-trigger",I.__resizeTriggers__.appendChild(U),I.__resizeTriggers__.appendChild(O),I.appendChild(I.__resizeTriggers__),N(I),I.addEventListener("scroll",u,!0),d&&(I.__resizeTriggers__.__animationListener__=function(_){_.animationName===c&&N(I)},I.__resizeTriggers__.addEventListener(d,I.__resizeTriggers__.__animationListener__))}I.__resizeListeners__.push(y)}},removeResizeListener:function(I,y){if(T)I.detachEvent("onresize",y);else if(I.__resizeListeners__.splice(I.__resizeListeners__.indexOf(y),1),!I.__resizeListeners__.length){I.removeEventListener("scroll",u,!0),I.__resizeTriggers__.__animationListener__&&(I.__resizeTriggers__.removeEventListener(d,I.__resizeTriggers__.__animationListener__),I.__resizeTriggers__.__animationListener__=null);try{I.__resizeTriggers__=!I.removeChild(I.__resizeTriggers__)}catch{}}}}}class xt extends p.Component{constructor(...n){super(...n),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:c,disableWidth:d,onResize:D}=this.props;if(this._parentNode){var j,N,u,T;const h=window.getComputedStyle(this._parentNode)||{},x=parseFloat((j=h.paddingLeft)!==null&&j!==void 0?j:"0"),z=parseFloat((N=h.paddingRight)!==null&&N!==void 0?N:"0"),I=parseFloat((u=h.paddingTop)!==null&&u!==void 0?u:"0"),y=parseFloat((T=h.paddingBottom)!==null&&T!==void 0?T:"0"),A=this._parentNode.getBoundingClientRect(),E=A.height-I-y,U=A.width-x-z,O=this._parentNode.offsetHeight-I-y,w=this._parentNode.offsetWidth-x-z;(!c&&(this.state.height!==O||this.state.scaledHeight!==E)||!d&&(this.state.width!==w||this.state.scaledWidth!==U))&&(this.setState({height:O,width:w,scaledHeight:E,scaledWidth:U}),typeof D=="function"&&D({height:O,scaledHeight:E,scaledWidth:U,width:w}))}},this._setRef=c=>{this._autoSizer=c}}componentDidMount(){const{nonce:n}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=Yr(n),this._detectElementResize.addResizeListener(this._parentNode,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.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:n,defaultHeight:c,defaultWidth:d,disableHeight:D=!1,disableWidth:j=!1,nonce:N,onResize:u,style:T={},tagName:h="div",...x}=this.props,{height:z,scaledHeight:I,scaledWidth:y,width:A}=this.state,E={overflow:"visible"},U={};let O=!1;return D||(z===0&&(O=!0),E.height=0,U.height=z,U.scaledHeight=I),j||(A===0&&(O=!0),E.width=0,U.width=A,U.scaledWidth=y),p.createElement(h,{ref:this._setRef,style:{...E,...T},...x},!O&&n(U))}}const _r=l.styled_default("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),Qr=l.styled_default("div")({name:"Content",class:"cjyzpp7",propsAsIs:!1}),br=l.styled_default("div")({name:"Graphic",class:"g16mldgz",propsAsIs:!1}),vr=l.styled_default("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),Br=l.styled_default("div")({name:"StepsContainer",class:"smm7qmo",propsAsIs:!1}),Fr=l.styled_default("span")({name:"StepIndicator",class:"s17knuw2",propsAsIs:!1}),$r=({width:o,graphicSrc:n,headline:c,stepsCount:d,currentStep:D})=>s.jsxs(_r,{children:[s.jsxs(Qr,{children:[s.jsx(br,{"data-centered":D===0,children:s.jsx("img",{src:n,alt:c,width:o||300})}),c&&s.jsx(vr,{children:c})]}),s.jsx(Br,{children:Array.from({length:d}).map((j,N)=>s.jsx(Fr,{"data-active":D===N},N))})]}),Rr=l.styled_default("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),Wr=l.styled_default("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),Pr=()=>l.o1,Gr=l.styled_default(Pr())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),qr=l.styled_default("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),Zr=l.styled_default("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),Vr=l.styled_default("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),Hr=l.styled_default("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),Jr=l.styled_default("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),Xr=l.styled_default("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),Kr=l.styled_default("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),en=()=>l.o1,tn=l.styled_default(en())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),rn=l.styled_default("div")({name:"SocialLinksContainer",class:"s1n7kzeh",propsAsIs:!1}),nn=l.styled_default("a")({name:"SocialLink",class:"s2m9o9y",propsAsIs:!1}),sn=l.styled_default("span")({name:"SocialLinkLabel",class:"sewjbbn",propsAsIs:!1}),ht=({inviteLink:o,socialLinks:n,inviteCardTitle:c,inviteCardSubtext:d,primaryColor:D,className:j})=>s.jsxs(Rr,{className:j,children:[s.jsx(Wr,{style:{backgroundColor:D},children:s.jsx(Gr,{name:"invite-game-icon"})}),s.jsxs(qr,{children:[s.jsx(Zr,{children:c||""}),s.jsx(Vr,{children:d||""})]}),o&&s.jsxs(Hr,{onClick:async()=>{if(o)try{await navigator.clipboard.writeText(o)}catch(N){console.error("Unable to copy to clipboard",N)}},children:[s.jsxs(Jr,{children:[s.jsx(Xr,{children:"Invite link"}),s.jsx(Kr,{children:o})]}),s.jsx(tn,{name:"icon-copy"})]}),n&&n.length>0&&s.jsx(rn,{children:n.map(({icon:N,link:u,label:T})=>s.jsxs(nn,{href:u,target:"_blank",children:[s.jsx(l.o1,{name:N}),s.jsx(sn,{children:T})]},u))})]}),on=l.styled_default("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),un=l.styled_default("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),Mn=l.styled_default("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),cn=l.styled_default("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),an=l.styled_default("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),ln=l.styled_default("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),Nn=l.styled_default("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),gn=l.styled_default("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),dn=({rules:o,rulesTitle:n,primaryColor:c})=>s.jsxs(on,{children:[s.jsxs(un,{children:[s.jsx(Mn,{children:n}),s.jsx(cn,{children:o==null?void 0:o.map(({label:d,icon:D},j)=>s.jsxs(an,{children:[D&&s.jsx(ln,{style:{backgroundColor:c},children:s.jsx(l.o1,{name:D,"data-icon":D})}),s.jsx(Nn,{children:d})]},j))})]}),s.jsx(gn,{children:"See Terms and Conditions"})]}),jn=l.styled_default("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),Dn=l.styled_default("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),pt=({disabled:o,variant:n="primary",onClick:c,children:d,...D})=>s.jsx(jn,{onClick:c,disabled:o,"data-variant":n,...D,children:s.jsx(Dn,{children:d})}),In=l.styled_default("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),Tn=l.styled_default("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),yn=l.styled_default("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),xn=l.styled_default("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),hn=()=>l.o1,pn=l.styled_default(hn())({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),An=l.styled_default("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),fn=()=>pt,zn=l.styled_default(fn())({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),ue={steps:!1,rules:!1,inviteCard:!1},En=({gamification:o,steps:n,rules:c,rulesBtnLabel:d,rulesTitle:D,primaryColor:j,inviteLink:N,socialLinks:u,inviteCardTitle:T,inviteCardSubtext:h,inviteCardBtnLabel:x,onClose:z})=>{const[I,y]=p.useState(0),[A,E]=p.useState(ue);p.useEffect(()=>{n!=null&&n.length?E({...ue,steps:!0}):c!=null&&c.length?E({...ue,rules:!0}):E({...ue,inviteCard:!0})},[]);const U=p.useMemo(()=>A.steps&&I===0?"Continue":A.rules?d||"Got it":A.inviteCard?x||"Play Now":"Next",[A,I,d,x]),O=p.useCallback(()=>{n!=null&&n.length&&I<n.length-1?y(_=>++_):c!=null&&c.length&&A.steps?E({...ue,rules:!0}):A.rules&&E({...ue,inviteCard:!0})},[I,n==null?void 0:n.length,c==null?void 0:c.length,A,y,E]),w=async()=>{await o.onboardingStatus.submitInplay()};return s.jsx(xt,{children:({width:_,height:q})=>s.jsxs(In,{style:{width:_,height:q},children:[s.jsx(yn,{children:s.jsx(xn,{onClick:z,children:s.jsx(pn,{name:"icon-close-btn-gray"})})}),s.jsxs(Tn,{children:[A.steps&&(n==null?void 0:n.length)&&s.jsx($r,{stepsCount:n.length,currentStep:I,...n[I]}),A.rules&&s.jsx(dn,{rules:c,rulesTitle:D,primaryColor:j}),A.inviteCard&&s.jsx(ht,{inviteLink:N,inviteCardTitle:T,inviteCardSubtext:h,primaryColor:j,socialLinks:u})]}),s.jsx(An,{children:s.jsx(zn,{onClick:A.inviteCard?w:O,children:U})})]})})},On=l.styled_default("div")({name:"Container",class:"cocfo2g",propsAsIs:!1}),Ln=l.styled_default("div")({name:"CloseIconWrap",class:"c1pdhxdk",propsAsIs:!1}),wn=()=>l.o1,mn=l.styled_default(wn())({name:"CloseIcon",class:"c1funj3r",propsAsIs:!0}),kn=l.styled_default("div")({name:"Title",class:"t1okg06y",propsAsIs:!1}),Sn=l.styled_default("img")({name:"SponsorLogo",class:"sb1n923",propsAsIs:!1}),Cn=l.styled_default("div")({name:"PresentsTitle",class:"p1stllxd",propsAsIs:!1}),Un=l.styled_default("div")({name:"Subtitle",class:"s13kvdzw",propsAsIs:!1}),Yn=l.styled_default("div")({name:"Description",class:"dfvmv3t",propsAsIs:!1}),_n=l.styled_default("button")({name:"ActionButton",class:"ay8e3j9",propsAsIs:!1}),ut=({close:o,action:n,onboarding:c})=>{var d,D,j,N,u,T,h,x;return s.jsxs(On,{children:[s.jsx(Ln,{onClick:o,children:s.jsx(mn,{name:"icon-cross"})}),((D=(d=c==null?void 0:c.titleCard)==null?void 0:d.media)==null?void 0:D.sponsorLogo)&&s.jsxs(kn,{children:[s.jsx(Sn,{alt:"sponsor-logo",src:(N=(j=c==null?void 0:c.titleCard)==null?void 0:j.media)==null?void 0:N.sponsorLogo}),s.jsx(Cn,{children:"PRESENTS"})]}),((u=c==null?void 0:c.titleCard)==null?void 0:u.title)&&s.jsx(Un,{children:(T=c==null?void 0:c.titleCard)==null?void 0:T.title}),((h=c==null?void 0:c.titleCard)==null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OSAxMC45OTkzIDg3LjgwOTcgMTAuNjYzMiA4Ny44MDk3IDEwLjI5NUM4Ny44MDk3IDEwLjA5MDkgODcuOTExIDkuODg2MjMgODguMTEzNCA5LjY4MTg1Qzg4LjM2OTcgOS40MjI5NyA4OC43MTI4IDkuMzY1NjkgODkuMTcxNyA5LjM2NTY5WiIgZmlsbD0iIzAwNjc0NyIvPgo8L3N2Zz4K",bn=l.styled_default("div")({name:"OnboardingContainer",class:"o9squag",propsAsIs:!1}),vn=()=>ye,Bn=l.styled_default(vn())({name:"OnboardingNotificationContainer",class:"o1c8wcli",propsAsIs:!0}),Mt=l.styled_default("div")({name:"InnerContainer",class:"i18oyadd",propsAsIs:!1}),Fn="cebdc0u",$n=({deepLink:o,onboardingOpts:n,notification:c,gamification:d})=>{var D,j,N,u,T,h;const[x,z]=p.useState(void 0);return p.useEffect(()=>{const I=o.$store.subscribe(y=>{y&&z(y.data)});return()=>{I()}},[o.$store]),s.jsx(bn,{className:l.cx_default(c.hiding&&Fn),children:s.jsx(En,{rules:[{label:"Answer as many questions as you like.",icon:"icon-btn-feature-groups"},{label:"Win points for each correct trivia or prediction answer.",icon:"icon-thumb-up"},{label:"Top the leader board and best your friends.",icon:"icon-trophy"}],rulesBtnLabel:(D=n.rules)==null?void 0:D.buttonLabel,rulesTitle:(j=n.rules)==null?void 0:j.heading,steps:[{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",headline:"Welcome to the Featured Groups +",width:80},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",headline:"Get real-time insights",width:264},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",headline:"Predictions, trivia & polls synced to match play"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",headline:"Win points for every answer you get right"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",headline:"Compete against friends on the leaderboard"}],primaryColor:(N=n.inviteCard)==null?void 0:N.iconColor,inviteLink:x==null?void 0:x.url,inviteCardTitle:(u=n.inviteCard)==null?void 0:u.heading,inviteCardSubtext:(T=n.inviteCard)==null?void 0:T.subtext,inviteCardBtnLabel:(h=n.inviteCard)==null?void 0:h.buttonLabel,onClose:()=>{var I;(I=c.close)==null||I.call(c)},socialLinks:[{icon:"icon-facebook",link:"https://www.facebook.com/TheMasters",label:"Facebook"},{icon:"icon-twitter",link:"https://twitter.com/@TheMasters",label:"X"}],gamification:d})})},Rn=({sdk:o,notification:n,saveHeight:c,style:d})=>{var D;const j=p.useRef(null),[N,u]=p.useState(!1),T=o.getFeature(Q.FeatureType.GAMES),h=n.data.onboarding;return(D=h==null?void 0:h.titleCard)!=null&&D.media&&(h.titleCard.media.sponsorLogo=Qn),p.useLayoutEffect(()=>{var x;c(((x=j.current)==null?void 0:x.getBoundingClientRect().height)||0)},[c]),N&&T&&h?s.jsx($n,{notification:n,setOpened:u,gamification:T,onboardingOpts:h,deepLink:T.deepLink}):s.jsxs(s.Fragment,{children:[s.jsx(Mt,{ref:x=>{j.current=x},style:{position:"absolute",visibility:"hidden"},children:s.jsx(ut,{close:()=>{},action:()=>{},onboarding:h})}),s.jsx(Bn,{style:d,hiding:n.hiding,children:s.jsx(Mt,{children:s.jsx(ut,{close:n.close,action:()=>u(!0),onboarding:h})})})]})},Wn=()=>ye,Pn=l.styled_default(Wn())({name:"Container",class:"ctckejh",propsAsIs:!0}),ct=l.styled_default("div")({name:"InnerContainer",class:"i1ri7tzr",propsAsIs:!1}),Gn=o=>{const[n,c]=p.useState(0),d=p.useRef(null),D=p.useCallback(N=>{d.current=N},[]);p.useEffect(()=>{var N;const u=(N=d.current)==null?void 0:N.getBoundingClientRect();u&&c(u.height)},[o]);const j=p.useCallback(N=>{c(N)},[]);return[D,n,j]},qn=({sdk:o,notification:n})=>{var c,d;const[D,j,N]=Gn(n.id);return n.type===De.NotificationType.QUESTION?s.jsxs(s.Fragment,{children:[s.jsx(ct,{ref:D,style:{position:"absolute",visibility:"hidden"},children:s.jsx(qe,{...n})}),s.jsx(Pn,{style:{height:n.hiding?0:j},hiding:n.hiding,children:s.jsx(ct,{style:{height:"100%"},children:s.jsx(qe,{...n})})})]}):n.type===De.NotificationType.QUESTION_RESOLVED&&(d=(c=n.data)==null?void 0:c.question)!=null&&d.predictionResult?s.jsx(Ar,{style:{height:n.hiding?0:j},saveHeight:N,close:n.close,hiding:n.hiding,...n.data.question}):n.type===De.NotificationType.ONBOARDING?s.jsx(Rn,{style:{height:n.hiding?0:j},saveHeight:N,sdk:o,notification:n}):null},Zn=({sdk:o})=>{const[n]=p.useState(o.getNotificationsStore()),c=K.useStore(n),d=p.useMemo(()=>{if(!(c!=null&&c.size))return null;for(const D of c.values())if(D.type===De.NotificationType.ONBOARDING)return D;return c.values().next().value},[c]);return d?s.jsx(qn,{sdk:o,notification:d}):null},Vn=l.styled_default("div")({name:"SDKContainer",class:"stu11h7",propsAsIs:!1}),Se=l.styled_default("div")({name:"SDKScrollContainer",class:"s1ucohr1",propsAsIs:!1}),At=l.styled_default("div")({name:"SDKContentContainer",class:"s1el4wvm",propsAsIs:!1}),Hn=()=>At,Jn=l.styled_default(Hn())({name:"SDKWhiteContainer",class:"s1oe3036",propsAsIs:!0}),Xn=o=>{const n=p.useRef(""),[c,d]=p.useState(!1),D=K.useStore(o.status),j=K.useStore(o.userId()),N=D==="ready",[u,T]=p.useState(J),h=p.useCallback((I,y)=>{T(y),y===J?(I&&o.createEventSession(I),window.requestAnimationFrame(()=>{o.openFeature(Q.FeatureType.GAMES)})):o.closeFeature()},[o]);p.useEffect(()=>{!N&&u===J&&(T(ce),o.closeFeature())},[N,u,o]);const x=I=>{n.current=I,d(!0),o.initializeApp().then(({enabled:y,err:A})=>{if(A){h(I,ce);return}if(y){o.isUserAuthorized().then(E=>{if(E){h(I,J);return}else o.disableApp()});return}})},z=()=>{d(!1),o.disableApp()};return p.useEffect(()=>{if(!j){N&&(T(ce),o.disableApp());return}j&&n.current&&c&&o.initializeApp().then(()=>{o.createEventSession(n.current)})},[j]),{sdkEnabled:c,sdkReady:N,activeOverlay:u,activateAndLoadOverlay:h,activateEventWithId:x,deactivate:z,isLogged:!!j}},Kn=o=>{const n=K.useStore(o.getActiveFeature()),c=K.useStore(o.streamStore()),[d,D]=p.useState(null);return p.useEffect(()=>{const j=o.getFeatures();if(n)for(const[N,u]of j)N===n?u.status.get()===Ne.FeatureStatus.Suspended&&(u.enable(),D(u)):u.status.get()===Ne.FeatureStatus.Ready&&u.disable();else{for(const[,N]of j)N.status.get()===Ne.FeatureStatus.Ready&&N.disable();D(null)}return()=>{for(const[,N]of j)N.status.get()===Ne.FeatureStatus.Ready&&N.disable()}},[n,o,c]),[n,d]},es=({sdk:o,className:n})=>{const[,c]=Kn(o);return s.jsx(Wt,{className:n,feature:c,sdk:o})},ts=({sdk:o,overlays:n,children:c})=>{const{sdkEnabled:d,sdkReady:D,activeOverlay:j,activateAndLoadOverlay:N,activateEventWithId:u,deactivate:T,isLogged:h}=Xn(o);return p.useEffect(()=>{Promise.resolve().then(()=>require("./gamification-feature.js"))},[]),s.jsxs(Vn,{children:[d&&s.jsx(ui,{sdkReady:D,activeOverlay:j,className:Me.d,setActiveOverlay:x=>N("",x)}),D&&s.jsx(Zn,{sdk:o}),s.jsx(Se,{"data-nav":d.toString(),style:{display:!d||j===ce?"block":"none"},children:c&&c({activateEventWithId:u,deactivate:T})}),s.jsx(Se,{"data-nav":d.toString(),style:{display:j===Te?"block":"none"},children:n&&j===Te&&n[j]}),D&&j===J&&s.jsx(es,{className:Me.d,sdk:o}),!h&&s.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"You are not logged in."})]})};const is=({sdkKey:o,plugins:n,children:c,production:d=!0})=>s.jsx(Me.StreamLayerProvider,{sdkKey:o,plugins:n,production:d,autoEnable:!1,children:c}),rs=({children:o,overlays:n})=>{const{sdk:c,status:d}=p.useContext(Me.StreamLayerContext);if(d===Me.StreamLayerStatus.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return c?s.jsx("div",{className:"StreamLayerSDK",children:s.jsx(Me.s,{style:{height:"100%"},children:s.jsx(ts,{sdk:c,overlays:n,children:o})})}):o({})};exports.AutoSizer=xt;exports.MastersStreamLayerProvider=is;exports.MastersStreamLayerSDKReact=rs;exports.O=ht;exports.a=Jn;exports.c=pt;exports.f=ye;exports.n=At;exports.o=at;exports.r=Se;exports.u=Nt;exports.w=lt;