1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,783941,e=>{"use strict";e.s(["i18nConfig",0,{locales:["en","pt-BR","fr-CA","fr-FR","de-DE","es-MX","it-IT","nl-NL","ja-JP","ko-KR","zh-CN"],defaultLocale:"en"}])},665118,e=>{"use strict";var t=e.i(63601),n=e.i(670322),i=e.i(427192),r=e.i(290714),a=e.i(219930),o=e.i(516190),s=e.i(487981),l=e.i(559406);let c={cursor:"grab",userSelect:"none",touchAction:"none","&:active":{cursor:"grabbing"}};e.s(["DockTitleBar",0,e=>{let u,d,p,m,h,f,g,y,v,b,E,R,w,S,x,I,O,T,C,_,P,A,k=(0,n.c)(71),{icon:N,title:D,subtitle:L,open:U,onToggleFullscreen:M,fullscreen:j,onCollapse:z,onMinimize:$,onClose:F,closeLabel:B,minimizeLabel:K,dragHandle:G,onTitleClick:H,dataTestId:W}=e,q=void 0===U||U,V=void 0!==j&&j,{t:Q}=(0,l.useRcTranslation)();k[0]!==V||k[1]!==Q?(u=Q(V?"shared.exit-fullscreen":"shared.fullscreen"),k[0]=V,k[1]=Q,k[2]=u):u=k[2];let Y=u;k[3]!==q||k[4]!==Q?(d=Q(q?"shared.minimize":"shared.expand"),k[3]=q,k[4]=Q,k[5]=d):d=k[5];let J=d;k[6]===Symbol.for("react.memo_cache_sentinel")?(p={alignItems:"center",px:2,py:1.25,minWidth:0},k[6]=p):p=k[6],k[7]!==N?(m=N?(0,t.jsx)(r.default,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:N}):null,k[7]=N,k[8]=m):m=k[8],k[9]!==G||k[10]!==H?(h=H&&!G?{role:"button",tabIndex:0}:{},k[9]=G,k[10]=H,k[11]=h):h=k[11],k[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.keyboardClick)(),k[12]=f):f=k[12],k[13]!==H?(g=H?e=>{e.stopPropagation(),H()}:void 0,k[13]=H,k[14]=g):g=k[14],k[15]!==G||k[16]!==H?(y=H&&!G?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation(),H())}:null==G?void 0:G.onKeyDown,k[15]=G,k[16]=H,k[17]=y):y=k[17],k[18]!==G||k[19]!==H?(v=H&&!G?{cursor:"pointer"}:{},k[18]=G,k[19]=H,k[20]=v):v=k[20],k[21]!==G?(b=G?c:{},k[21]=G,k[22]=b):b=k[22],k[23]!==v||k[24]!==b?(E={flexGrow:1,minWidth:0,...v,...b},k[23]=v,k[24]=b,k[25]=E):E=k[25];let X=q?"subtitle2":"subtitle1";return k[26]===Symbol.for("react.memo_cache_sentinel")?(R={fontWeight:700,lineHeight:1.2},k[26]=R):R=k[26],k[27]!==X||k[28]!==D?(w=(0,t.jsx)(o.default,{variant:X,sx:R,noWrap:!0,children:D}),k[27]=X,k[28]=D,k[29]=w):w=k[29],k[30]!==q||k[31]!==L?(S=L?(0,t.jsx)(o.default,{variant:q?"caption":"body2",sx:{color:"text.secondary",lineHeight:1.2},noWrap:!0,children:L}):null,k[30]=q,k[31]=L,k[32]=S):S=k[32],k[33]!==G||k[34]!==y||k[35]!==E||k[36]!==w||k[37]!==S||k[38]!==h||k[39]!==g?(x=(0,t.jsxs)(r.default,{...G,...h,...f,onClick:g,onKeyDown:y,sx:E,children:[w,S]}),k[33]=G,k[34]=y,k[35]=E,k[36]=w,k[37]=S,k[38]=h,k[39]=g,k[40]=x):x=k[40],k[41]===Symbol.for("react.memo_cache_sentinel")?(I={alignItems:"center",flexShrink:0},k[41]=I):I=k[41],k[42]!==W||k[43]!==V||k[44]!==Y||k[45]!==M?(O=M?(0,t.jsx)(s.RcIconButton,{icon:["fal",V?"compress-alt":"expand"],TooltipProps:{title:Y},"data-test-id":W?`${W}-fullscreen`:void 0,onClick:e=>{e.stopPropagation(),M()}}):null,k[42]=W,k[43]=V,k[44]=Y,k[45]=M,k[46]=O):O=k[46],k[47]!==J||k[48]!==W||k[49]!==z||k[50]!==q?(T=z?(0,t.jsx)(s.RcIconButton,{icon:["fal",q?"chevron-down":"chevron-up"],TooltipProps:{title:J},"data-test-id":W?`${W}-collapse`:void 0,onClick:e=>{e.stopPropagation(),z()}}):null,k[47]=J,k[48]=W,k[49]=z,k[50]=q,k[51]=T):T=k[51],k[52]!==W||k[53]!==K||k[54]!==$||k[55]!==Q?(C=$?(0,t.jsx)(s.RcIconButton,{icon:["fal","minus"],TooltipProps:{title:K??Q("shared.minimize")},"data-test-id":W?`${W}-minimize`:void 0,onClick:e=>{e.stopPropagation(),$()}}):null,k[52]=W,k[53]=K,k[54]=$,k[55]=Q,k[56]=C):C=k[56],k[57]!==B||k[58]!==W||k[59]!==F||k[60]!==Q?(_=F?(0,t.jsx)(s.RcIconButton,{icon:["fal","xmark"],TooltipProps:{title:B??Q("shared.close")},"data-test-id":W?`${W}-close`:void 0,onClick:e=>{e.stopPropagation(),F()}}):null,k[57]=B,k[58]=W,k[59]=F,k[60]=Q,k[61]=_):_=k[61],k[62]!==O||k[63]!==T||k[64]!==C||k[65]!==_?(P=(0,t.jsxs)(a.default,{direction:"row",spacing:.25,sx:I,children:[O,T,C,_]}),k[62]=O,k[63]=T,k[64]=C,k[65]=_,k[66]=P):P=k[66],k[67]!==x||k[68]!==P||k[69]!==m?(A=(0,t.jsxs)(a.default,{direction:"row",spacing:1,sx:p,children:[m,x,P]}),k[67]=x,k[68]=P,k[69]=m,k[70]=A):A=k[70],A}])},744848,e=>{"use strict";var t=e.i(63601),n=e.i(670322),i=e.i(290714),r=e.i(370060),a=e.i(262914),o=e.i(484337);let s=[],l=new Set,c=e=>(l.add(e),()=>{l.delete(e)}),u=()=>s,d=[],p=()=>d;e.s(["GlobalModeBanner",0,e=>{let d,m,h,f,g,y,v,b=(0,n.c)(19),{mode:E,color:R,label:w,onExit:S}=e;b[0]!==E?(d=()=>
1(s.includes(E)||(s=[...s,E],l.forEach(e=>e())),()=>{s.includes(E)&&(s=s.filter(e=>e!==E),l.forEach(e=>e()))}),m=[E],b[0]=E,b[1]=d,b[2]=m):(d=b[1],m=b[2]),(0,o.useLayoutEffect)(d,m);let x=(0,o.useSyncExternalStore)(c,u,p);b[3]!==x||b[4]!==E?(h=x.indexOf(E),b[3]=x,b[4]=E,b[5]=h):h=b[5];let I=Math.max(0,h),O=`global-mode-banner-${E}`;return b[6]!==I?(f=e=>({position:"fixed",bottom:e.spacing(2+5*I),left:"50%",transform:"translateX(-50%)",display:"inline-flex",zIndex:e.zIndex.snackbar}),b[6]=I,b[7]=f):f=b[7],b[8]!==R?(g=e=>({backgroundColor:(0,a.alpha)(e.palette[R].main,.9)}),b[8]=R,b[9]=g):g=b[9],b[10]!==R||b[11]!==w||b[12]!==S||b[13]!==g?(y=(0,t.jsx)(r.default,{color:R,label:w,onDelete:S,sx:g}),b[10]=R,b[11]=w,b[12]=S,b[13]=g,b[14]=y):y=b[14],b[15]!==O||b[16]!==f||b[17]!==y?(v=(0,t.jsx)(i.default,{"data-test-id":O,sx:f,children:y}),b[15]=O,b[16]=f,b[17]=y,b[18]=v):v=b[18],v}])},898479,212501,e=>{"use strict";var t=e.i(63601),n=e.i(670322),i=e.i(290714),r=e.i(911452),a=e.i(875060),o=e.i(484337);let s=()=>{let e,t,i=(0,n.c)(2),[r,a]=(0,o.useState)();return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>a(window.location.hostname),t=[],i[0]=e,i[1]=t):(e=i[0],t=i[1]),(0,o.useEffect)(e,t),r};e.s(["useTwitchParent",0,s,"withTwitchParent",0,(e,t)=>`${e}${e.includes("?")?"&":"?"}parent=${encodeURIComponent(t)}`],212501);let l=e=>{let o,l,c,u=(0,n.c)(10),{channel:d,sx:p}=e,m=(0,r.useTheme)(),h=s(),f=`https://www.twitch.tv/embed/${encodeURIComponent(d)}/chat?parent=${encodeURIComponent(h??"")}${(0,a.isDarkMode)(m)?"&darkpopout":""}`;u[0]!==p?(o={width:"100%",height:"100%",borderRadius:1,overflow:"hidden",backgroundColor:"background.paper",...p},u[0]=p,u[1]=o):o=u[1];let g=`twitch-chat-${d}`;return u[2]!==d||u[3]!==h||u[4]!==f?(l=h?(0,t.jsx)("iframe",{src:f,title:`${d} chat`,height:"100%",width:"100%",style:{border:"none",display:"block"}}):null,u[2]=d,u[3]=h,u[4]=f,u[5]=l):l=u[5],u[6]!==o||u[7]!==g||u[8]!==l?(c=(0,t.jsx)(i.default,{sx:o,"data-test-id":g,children:l}),u[6]=o,u[7]=g,u[8]=l,u[9]=c):c=u[9],c};e.s(["TwitchPlayer",0,e=>{let r,a,o,c,u,d,p,m,h,f=(0,n.c)(25),{channel:g,title:y,autoplay:v,showChat:b,sx:E}=e,R=void 0===v||v,w=void 0!==b&&b,S=s();f[0]!==w||f[1]!==E?(r=w?{}:E,f[0]=w,f[1]=E,f[2]=r):r=f[2],f[3]!==r?(a={width:"100%",aspectRatio:"16 / 9",borderRadius:1,overflow:"hidden",backgroundColor:"background.paper",...r},f[3]=r,f[4]=a):a=f[4];let x=`twitch-player-${g}`;f[5]!==R||f[6]!==g||f[7]!==S||f[8]!==y?(o=S?(0,t.jsx)("iframe",{src:`https://player.twitch.tv/?channel=${encodeURIComponent(g)}&parent=${encodeURIComponent(S)}&muted=true&autoplay=${R?"true":"false"}`,title:y??g,allowFullScreen:!0,height:"100%",width:"100%",style:{border:"none",display:"block"}}):null,f[5]=R,f[6]=g,f[7]=S,f[8]=y,f[9]=o):o=f[9],f[10]!==a||f[11]!==x||f[12]!==o?(c=(0,t.jsx)(i.default,{sx:a,"data-test-id":x,children:o}),f[10]=a,f[11]=x,f[12]=o,f[13]=c):c=f[13];let I=c;if(!w)return I;f[14]===Symbol.for("react.memo_cache_sentinel")?(u={xs:"1fr",md:"minmax(0, 1fr) 340px"},f[14]=u):u=f[14],f[15]!==E?(d={display:"grid",gap:1,gridTemplateColumns:u,alignItems:"stretch",...E},f[15]=E,f[16]=d):d=f[16];let O=`twitch-theater-${g}`;return f[17]===Symbol.for("react.memo_cache_sentinel")?(p={display:{xs:"none",md:"block"}},f[17]=p):p=f[17],f[18]!==g?(m=(0,t.jsx)(l,{channel:g,sx:p}),f[18]=g,f[19]=m):m=f[19],f[20]!==I||f[21]!==O||f[22]!==m||f[23]!==d?(h=(0,t.jsxs)(i.default,{sx:d,"data-test-id":O,children:[I,m]}),f[20]=I,f[21]=O,f[22]=m,f[23]=d,f[24]=h):h=f[24],h}],898479)},713758,41927,e=>{"use strict";var t=e.i(63601),n=e.i(565646);let i={calendar:["fal","calendar"],"calendar-day":["fal","calendar-day"],"calendar-edit":["fal","calendar-edit"],"calendar-plus":["fal","calendar-plus"],"calendar-registration":["fal","calendar-lines-pen"],bell:["fal","bell"],"chevron-down":["fal","chevron-down"],"chevron-left":["fal","chevron-left"],"chevron-right":["fal","chevron-right"],"check-circle":["fal","circle-check"],clock:["fal","clock"],clone:["fal","book-copy"],copy:["fal","copy"],cut:["fal","cut"],donation:["fal","hands-holding-heart"],duplicate:["fal","clone"],"external-link":["fal","arrow-up-right-from-square"],gear:["fal","gear"],ladder:["fal","line-height"],list:["fal","list-ul"],location:["fal","location-dot"],lock:["fal","lock"],match:["fal","swords"],paste:["fal","paste"],plus:["fal","plus"],trash:["fal","trash-alt"],undo:["fal","arrow-rotate-left"],video:["fal","video"]};e.s(["CALENDAR_ICONS",0,i],41927),e.s(["toActionMenuOption",0,e=>({key:e.key,display:e.label,icon:e.icon?(0,t.jsx)(n.RcIcon,{icon:i[e.icon],inline:!0,size:"xs"}):void 0,shortcut:e.shortcut,disabled:e.disabled,action:e.action})],713758)},167443,e=>{"use strict";var t=e.i(262914),n=e.i(955031);e.s(["cardTechThemeVars",0,e=>({"--rct-card-radius":`${e.shape.borderRadius}px`,"--rct-card-surface":e.palette.background.paper,"--rct-card-surface-image":`linear-gradient(145deg, ${(0,t.alpha)(e.palette.primary.main,.12)} 0%, ${(0,t.alpha)(e.palette.background.paper,.9)} 40%, ${(0,t.alpha)(e.palette.secondary.main,.14)} 100%)`,"--rct-card-border":`1px solid ${(0,t.alpha)(e.palette.primary.main,.4)}`,"--rct-card-shadow":`0 8px 18px ${(0,t.alpha)(e.palette.common.black,.35)}`,"--rct-card-shadow-glow":`0 18px 48px ${(0,t.alpha)(e.palette.common.black,.55)}, 0 0 32px ${(0,t.alpha)(e.palette.primary.main,.35)}`,"--rct-holo-primary":(0,t.alpha)(e.palette.primary.main,.38),"--rct-holo-secondary":(0,t.alpha)(e.palette.secondary.main,.38)}),"useHoloIntensity",0,e=>{let t=void 0===e?1:e,{featHolographicCards:i,featSurfaceGlass:r}=(0,n.useFeatures)();return!1===i?0:"number"==typeof r&&r>=1?.4*t:t}])},196483,e=>{"use strict";var t=e.i(63601),n=e.i(670322),i=e.i(484337);let r=(0,i.createContext)(null);function a(e){return!e}function o(){}function s(){}function l(){}e.s(["OmnisearchContextProvider",0,e=>{let o,s,l,c,u,d=(0,n.c)(9),{children:p}=e,[m,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1);d[0]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{h(e),e||g(!1)},d[0]=o):o=d[0];let y=o;d[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{g(!1),h(a)},d[1]=s):s=d[1];let v=s;d[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{g(!0),h(!0)},d[2]=l):l=d[2];let b=l;d[3]!==m||d[4]!==f?(c={open:m,setOpen:y,toggle:v,openWithHint:b,showShortcutHint:f},d[3]=m,d[4]=f,d[5]=c):c=d[5];let E=c;return d[6]!==p||d[7]!==E?(u=(0,t.jsx)(r.Provider,{value:E,children:p}),d[6]=p,d[7]=E,d[8]=u):u=d[8],u},"useOmnisearch",0,()=>{let e=(0,n.c)(1),t=(0,i.useContext)(r);if(null===t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={open:!1,setOpen:o,toggle:s,openWithHint:l,showShortcutHint:!1},e[0]=t):t=e[0],t}return t}])},352307,218016,e=>{"use strict";e.s(["GROUP_CONFIG",0,{user:{icon:["fal","user"],i18nKey:"omnisearch.group.user",fallback:"People"},contact_account:{icon:["fal","id-badge"],i18nKey:"omnisearch.group.contact_account",fallback:"Identities"},competition:{icon:["fal","trophy"],i18nKey:"omnisearch.group.competition",fallback:"Competitions"},community:{icon:["fal","users"],i18nKey:"omnisearch.group.community",fallback:"Communities"},team:{icon:["fal","people-group"],i18nKey:"omnisearch.group.team",fallback:"Teams"},rally:{icon:["fal","flag"],i18nKey:"omnisearch.group.rally",fallback:"Rallies"}}],352307);var t=e.i(63601),n=e.i(670322),i=e.i(484337),r=e.i(722029),a=e.i(618950),o=e.i(921875),s=e.i(234468),l=e.i(836050),c=e.i(615088),u=e.i(702490),d=e.i(605655),p=e.i(219930),m=e.i(516190),h=e.i(565646),f=e.i(82835),g=e.i(288122),y=e.i(619257),v=e.i(487981),b=e.i(559406);e.s(["OmnisearchResultRow",0,e=>{let E,R,w,S,x,I,O,T,C,_,P,A,k,N,D,L,U,M,j,z,$,F=(0,n.c)(52),{hit:B,onNavigate:K}=e,{t:G}=(0,b.useRcTranslation)(),H=function(e){switch(e.type){case"user":return{primary:e.name??`#${e.id}`,secondary:e.realName??null,image:e.image??null,nav:{root:y.RootRoute.User,rootId:e.id}};case"contact_account":return{primary:e.handle??e.principalName??`#${e.id}`,secondary:e.userName??null,image:e.userImage??null,nav:(0,r.isNil)(e.userId)?null:{root:y.RootRoute.User,rootId:e.userId}};case"competition":return{primary:e.name??`#${e.id}`,secondary:e.state??null,image:e.image??null,nav:{root:y.RootRoute.Competition,rootId:e.id}};case"community":return{primary:e.name??`#${e.id}`,secondary:e.kind??null,image:e.image??null,nav:{root:y.RootRoute.Community,rootId:e.id}};case"team":return{primary:e.name??`#${e.id}`,secondary:e.kind??null,image:e.image??null,nav:{root:y.RootRoute.Team,rootId:e.id}};case"rally":return{primary:e.name??`#${e.id}`,secondary:e.venue??e.organizationName??null,image:e.image??null,nav:{root:y.RootRoute.Rally,rootId:e.id}}}}(B),{getPath:W}=(0,g.useNavigation)(),q=H.nav?W(H.nav):null,[V,Q]=(0,i.useState)(null);F[0]===Symbol.for("react.memo_cache_sentinel")?(E=e=>{e.stopPropagation(),Q(e.currentTarget)},F[0]=E):E=F[0];let Y=E;F[1]===Symbol.for("react.memo_cache_sentinel")?(R=()=>Q(null),F[1]=R):R=F[1];let J=R;F[2]!==q?(w=()=>
1{if(null===q)return void J();let e=window.location.origin;navigator.clipboard.writeText(`${e}${q}`),J()},F[2]=q,F[3]=w):w=F[3];let X=w;F[4]!==B.id?(S=()=>{navigator.clipboard.writeText(String(B.id)),J()},F[4]=B.id,F[5]=S):S=F[5];let Z=S;F[6]===Symbol.for("react.memo_cache_sentinel")?(x=["fal","ellipsis-vertical"],F[6]=x):x=F[6],F[7]!==G?(I=G("shared.more"),F[7]=G,F[8]=I):I=F[8],F[9]!==I?(O={title:I},F[9]=I,F[10]=O):O=F[10];let ee=`omnisearch-actions-${B.type}-${B.id}`;F[11]!==O||F[12]!==ee?(T=(0,t.jsx)(v.RcIconButton,{edge:"end",icon:x,onClick:Y,TooltipProps:O,"data-test-id":ee}),F[11]=O,F[12]=ee,F[13]=T):T=F[13];let et=null===q;F[14]!==q||F[15]!==K?(C=()=>null!==q&&K(q),F[14]=q,F[15]=K,F[16]=C):C=F[16];let en=`omnisearch-row-${B.type}-${B.id}`,ei=H.image??void 0,er=H.primary,ea=String(B.id),eo="user"===B.type||"contact_account"===B.type?"circular":"rounded";F[17]!==H.primary||F[18]!==ei||F[19]!==ea||F[20]!==eo?(_=(0,t.jsx)(s.default,{children:(0,t.jsx)(a.RcAvatar,{src:ei,alt:er,identiconSeed:ea,variant:eo})}),F[17]=H.primary,F[18]=ei,F[19]=ea,F[20]=eo,F[21]=_):_=F[21],F[22]===Symbol.for("react.memo_cache_sentinel")?(P={alignItems:"baseline"},F[22]=P):P=F[22],F[23]!==H.primary?(A=(0,t.jsx)(m.default,{variant:"body1",children:H.primary}),F[23]=H.primary,F[24]=A):A=F[24],F[25]!==H.secondary?(k=null!==H.secondary&&""!==H.secondary&&(0,t.jsx)(m.default,{variant:"caption",color:"text.secondary",children:H.secondary}),F[25]=H.secondary,F[26]=k):k=F[26],F[27]!==A||F[28]!==k?(N=(0,t.jsx)(c.default,{primary:(0,t.jsxs)(p.default,{direction:"row",spacing:1,sx:P,children:[A,k]})}),F[27]=A,F[28]=k,F[29]=N):N=F[29],F[30]!==et||F[31]!==C||F[32]!==en||F[33]!==_||F[34]!==N?(D=(0,t.jsxs)(l.default,{disabled:et,onClick:C,"data-test-id":en,children:[_,N]}),F[30]=et,F[31]=C,F[32]=en,F[33]=_,F[34]=N,F[35]=D):D=F[35];let es=null!==V;return F[36]===Symbol.for("react.memo_cache_sentinel")?(L=(0,t.jsx)(h.RcIcon,{icon:["fal","hashtag"],mr:1}),U=(0,t.jsx)(f.RcTrans,{i18nKey:"omnisearch.action.copy-id",children:"Copy ID"}),F[36]=L,F[37]=U):(L=F[36],U=F[37]),F[38]!==Z?(M=(0,t.jsxs)(d.default,{onClick:Z,children:[L,U]}),F[38]=Z,F[39]=M):M=F[39],F[40]!==X||F[41]!==q?(j=null!==q&&(0,t.jsxs)(d.default,{onClick:X,children:[(0,t.jsx)(h.RcIcon,{icon:["fal","link"],mr:1}),(0,t.jsx)(f.RcTrans,{i18nKey:"omnisearch.action.copy-link",children:"Copy link"})]}),F[40]=X,F[41]=q,F[42]=j):j=F[42],F[43]!==V||F[44]!==es||F[45]!==M||F[46]!==j?(z=(0,t.jsxs)(u.default,{anchorEl:V,open:es,onClose:J,children:[M,j]}),F[43]=V,F[44]=es,F[45]=M,F[46]=j,F[47]=z):z=F[47],F[48]!==D||F[49]!==z||F[50]!==T?($=(0,t.jsxs)(o.default,{disablePadding:!0,secondaryAction:T,children:[D,z]}),F[48]=D,F[49]=z,F[50]=T,F[51]=$):$=F[51],$}],218016)},644033,911658,e=>{"use strict";var t=e.i(63601),n=e.i(670322),i=e.i(593006),r=e.i(82835),a=e.i(484337),o=e.i(954397),o=o,s=e.i(262914),l=e.i(310474);e.s(["LinearProgress",()=>l.default],911658);var l=l,c=e.i(69953),u=e.i(465222),d=e.i(911452),p=e.i(595577),m=e.i(437343);e.i(196343);var h=e.i(709143),f=e.i(603843),g=e.i(799169),y=e.i(565646),v=e.i(366656),b=e.i(487981),E=e.i(504434);let R=new Map,w=new Map,S=new Map;function x(e,t){return`${e} ${t}`}function I(e){return"SUCCESS"===e||"FAILED"===e}function O(e,t){let n=w.get(e);return void 0===n&&(n=new Set,w.set(e,n)),n.add(t),()=>{n.delete(t),0===n.size&&w.delete(e)}}let T=()=>()=>{};function C(){}function _(e){var t;return null==(t=e.user)?void 0:t.subject}function P(){return Date.now()}let A=(0,a.forwardRef)(function(e,m){var f,g;let E,w,S,x,I,T,C,_,A,N,D,L,U,M,j,z,$,F,B,K,G,H,W,q,V,Q,Y,J,X=(0,n.c)(92),{syncId:Z,initial:ee,onDismiss:et}=e,en=((J=(0,n.c)(7))[0]!==Z?(V=e=>O(Z,e),J[0]=Z,J[1]=V):V=J[1],J[2]!==ee||J[3]!==Z?(Q=()=>R.get(Z)??ee,J[2]=ee,J[3]=Z,J[4]=Q):Q=J[4],J[5]!==ee?(Y=()=>ee,J[5]=ee,J[6]=Y):Y=J[6],(0,a.useSyncExternalStore)(V,Q,Y)),{t:ei}=(0,h.useTranslation)("integration"),er=(0,d.useTheme)(),ea=en.status,eo="SUCCESS"===ea,es="FAILED"===ea,el=!0===en.paused,ec=!eo&&!es,eu=eo?en.resultUrl:void 0,ed=void 0!==eu&&""!==eu;X[0]!==ed||X[1]!==en.resultUrlExpiresAt?(E=ed?function(e){if(void 0===e)return null;let t=new Date(e).getTime();return Number.isNaN(t)?null:t}(en.resultUrlExpiresAt):null,X[0]=ed,X[1]=en.resultUrlExpiresAt,X[2]=E):E=X[2];let ep=function(e){let t,i,r,o,s,l=(0,n.c)(10),[c,u]=(0,a.useState)(P);if(l[0]!==e||l[1]!==c)t=null===e?{expired:!1,secondsRemaining:null}:{expired:c>=e,secondsRemaining:Math.max(0,Math.round((e-c)/1e3))},l[0]=e,l[1]=c,l[2]=t;else t=l[2];let d=t;return l[3]!==e?(i=()=>{null!==e&&u(Date.now())},r=[e],l[3]=e,l[4]=i,l[5]=r):(i=l[4],r=l[5]),(0,a.useEffect)(i,r),l[6]!==e||l[7]!==d.expired?(o=()=>
1{if(null===e||d.expired)return;let t=e-Date.now();if(t<=0)return void u(Date.now());let n=window.setInterval(()=>u(Date.now()),15e3),i=window.setTimeout(()=>u(Date.now()),t+1);return()=>{window.clearInterval(n),window.clearTimeout(i)}},s=[e,d.expired],l[6]=e,l[7]=d.expired,l[8]=o,l[9]=s):(o=l[8],s=l[9]),(0,a.useEffect)(o,s),d}(E),em=ed&&!ep.expired;X[3]!==ed||X[4]!==eo||X[5]!==et?(w=()=>{if(!eo||ed)return;let e=window.setTimeout(et,3e3);return()=>window.clearTimeout(e)},S=[eo,ed,et],X[3]=ed,X[4]=eo,X[5]=et,X[6]=w,X[7]=S):(w=X[6],S=X[7]),(0,a.useEffect)(w,S);let eh=void 0!==en.startedAt?new Date(en.startedAt).getTime():Date.now(),ef=function(e){let t,i,r=(0,n.c)(3),[o,s]=(0,a.useState)(k);return r[0]!==e?(t=()=>{if(e<=0)return;let t=window.setInterval(()=>s(Date.now()),e);return()=>window.clearInterval(t)},i=[e],r[0]=e,r[1]=t,r[2]=i):(t=r[1],i=r[2]),(0,a.useEffect)(t,i),o}(500*!!(ec&&!el&&null!=en.etaMs)),{fraction:eg,secondsRemaining:ey,takingLonger:ev}=function(e,t,n){if(void 0!==e.progressDone&&void 0!==e.progressTotal&&e.progressTotal>0)return{fraction:Math.min(1,e.progressDone/e.progressTotal),secondsRemaining:null,takingLonger:!1};if(!e.etaMs)return{fraction:null,secondsRemaining:null,takingLonger:!1};let i=t-n;return i>e.etaMs.p90?{fraction:1,secondsRemaining:null,takingLonger:!0}:{fraction:Math.min(1,Math.max(0,i/e.etaMs.p50)),secondsRemaining:Math.max(0,Math.round((e.etaMs.p50-i)/1e3)),takingLonger:!1}}(en,ef,eh),eb=null==eg||ev||el,eE=ei(`source.${en.source}`,{defaultValue:en.source});X[8]!==en.action||X[9]!==ei?(x="attendee-backup"===en.action?(0,t.jsx)(r.RcTrans,{i18nKey:"rally:attendee.export-backup"}):function(e,t){let n=t.split(":");for(let t=n.length;t>0;t--){let i=e(`action.${n.slice(0,t).join(".")}`,{defaultValue:""});if(""!==i)return i}return t}(ei,en.action),X[8]=en.action,X[9]=ei,X[10]=x):x=X[10];let eR=x,ew=eo?"success":es?"error":el?"warning":"info";X[11]!==er?(I=(0,p.getGlassFromTheme)(er,8),X[11]=er,X[12]=I):I=X[12];let eS=I,ex=(null==(g=er.custom)||null==(f=g.glass)?void 0:f.enabled)===!0,eI=er.palette[ew].main;X[13]!==es||X[14]!==eo?(T=eo?(0,t.jsx)(y.RcIcon,{icon:["fas","check-circle"]}):es?(0,t.jsx)(y.RcIcon,{icon:["fas","circle-exclamation"]}):(0,t.jsx)(y.RcIcon,{icon:["fal","cog"],spin:!0}),X[13]=es,X[14]=eo,X[15]=T):T=X[15];let eO=T;X[16]!==en.durationMs?(C=null!=en.durationMs?Math.max(1,Math.round(en.durationMs/1e3)):null,X[16]=en.durationMs,X[17]=C):C=X[17];let eT=C;X[18]!==eT||X[19]!==ei?(_=null!=eT?ei("synced-in",{seconds:eT,defaultValue:"Synced in {{seconds}}s"}):ei("synced",{defaultValue:"Synced"}),X[18]=eT,X[19]=ei,X[20]=_):_=X[20];let eC=_,e_=null===ep.secondsRemaining?null:Math.ceil(ep.secondsRemaining/60);X[21]!==ep.expired||X[22]!==e_||X[23]!==ei?(A=ep.expired?ei("result-expired",{defaultValue:"This download link has expired. Open the export again to get a fresh one."}):null!==e_&&e_<=1?ei("result-expires-soon",{defaultValue:"Download link expires in under a minute."}):null!==e_?ei("result-expires-in",{minutes:e_,defaultValue:"Download link expires in {{minutes}} min."}):null,X[21]=ep.expired,X[22]=e_,X[23]=ei,X[24]=A):A=X[24];let eP=A;if(X[25]!==en.errorCode||X[26]!==en.errorMessage||X[27]!==ei){let e=(0,v.integrationSyncFailureReason)(en.errorCode,en.errorMessage);N="timeout"===e.kind?ei("watchdog-timeout",{defaultValue:"Worker did not complete in time. Try again."}):"message"===e.kind?ei("sync-failed-with-reason",{reason:e.message,defaultValue:"Sync failed: {{reason}}"}):ei("sync-failed",{defaultValue:"Sync failed"}),X[25]=en.errorCode,X[26]=en.errorMessage,X[27]=ei,X[28]=N}else N=X[28];let eA=N,ek=el?ei("syncing-degraded",{source:eE,defaultValue:"{{source}} is degraded. Your sync will resume when it recovers."}):en.cursor?en.cursor:ev?ei("syncing-taking-longer",{defaultValue:"Taking longer than usualâ¦"}):null!=ey?ei("syncing-with-eta",{seconds:ey,defaultValue:"Syncing⦠~{{seconds}}s remaining"}):ei("syncing",{defaultValue:"Syncingâ¦"});X[29]!==ex||X[30]!==eI?(D=ex?(0,s.alpha)(eI,.92):eI,X[29]=ex,X[30]=eI,X[31]=D):D=X[31];let eN=er.palette[ew],eD=`1px solid ${er.palette.border??er.palette.divider}`;
1X[32]!==eS||X[33]!==D||X[34]!==eN.contrastText||X[35]!==eD?(L={minWidth:340,maxWidth:440,...eS,backgroundColor:D,color:eN.contrastText,border:eD},X[32]=eS,X[33]=D,X[34]=eN.contrastText,X[35]=eD,X[36]=L):L=X[36];let eL=el?"true":"false",eU=en.errorCode??"",eM=ed?ep.expired?"expired":"live":"";return(X[37]!==em||X[38]!==ed||X[39]!==es||X[40]!==et||X[41]!==en.resultLabel||X[42]!==eu||X[43]!==ei?(U=em?(0,t.jsxs)(c.Stack,{direction:"row",spacing:.5,sx:{alignItems:"center"},children:[(0,t.jsx)(i.RcButton,{component:"a",href:eu,download:en.resultLabel,color:"inherit",onClick:et,"data-test-id":"integration-sync-snack-download",children:ei("download-result",{defaultValue:"Download"})}),(0,t.jsx)(b.RcIconButton,{color:"inherit",icon:["fal","xmark"],onClick:et,TooltipProps:{title:ei("dismiss",{defaultValue:"Dismiss"})},"data-test-id":"integration-sync-snack-dismiss"})]}):es||ed?(0,t.jsx)(b.RcIconButton,{color:"inherit",icon:["fal","xmark"],onClick:et,TooltipProps:{title:ei("dismiss",{defaultValue:"Dismiss"})},"data-test-id":"integration-sync-snack-dismiss"}):void 0,X[37]=em,X[38]=ed,X[39]=es,X[40]=et,X[41]=en.resultLabel,X[42]=eu,X[43]=ei,X[44]=U):U=X[44],X[45]===Symbol.for("react.memo_cache_sentinel")?(M={fontWeight:700,lineHeight:1.15},X[45]=M):M=X[45],X[46]!==eE?(j=(0,t.jsx)(u.Typography,{variant:"subtitle1",sx:M,children:eE}),X[46]=eE,X[47]=j):j=X[47],X[48]===Symbol.for("react.memo_cache_sentinel")?(z={opacity:.9,lineHeight:1.2},X[48]=z):z=X[48],X[49]!==eR?($=(0,t.jsx)(u.Typography,{variant:"body2",sx:z,children:eR}),X[49]=eR,X[50]=$):$=X[50],X[51]!==eg||X[52]!==eb||X[53]!==ec||X[54]!==ek?(F=ec?(0,t.jsxs)(c.Stack,{spacing:.5,children:[(0,t.jsx)(u.Typography,{variant:"caption",sx:{opacity:.85},children:ek}),(0,t.jsx)(l.default,{variant:eb?"indeterminate":"determinate",value:null==eg?void 0:100*eg,color:"inherit"})]}):null,X[51]=eg,X[52]=eb,X[53]=ec,X[54]=ek,X[55]=F):F=X[55],X[56]!==eo||X[57]!==eC?(B=eo?(0,t.jsx)(u.Typography,{variant:"caption",sx:{opacity:.95},children:eC}):null,X[56]=eo,X[57]=eC,X[58]=B):B=X[58],X[59]!==ed||X[60]!==ep.expired||X[61]!==eP?(K=ed&&null!==eP?(0,t.jsx)(u.Typography,{variant:"caption",sx:{opacity:ep.expired?.95:.8},"data-test-id":ep.expired?"integration-sync-snack-result-expired":"integration-sync-snack-result-expiry",children:eP}):null,X[59]=ed,X[60]=ep.expired,X[61]=eP,X[62]=K):K=X[62],X[63]!==eA||X[64]!==es?(G=es?(0,t.jsx)(u.Typography,{variant:"caption",sx:{opacity:.95},children:eA}):null,X[63]=eA,X[64]=es,X[65]=G):G=X[65],X[66]!==es||X[67]!==en||X[68]!==ei)?(H=es&&!1!==en.retryable?(0,t.jsx)(u.Typography,{variant:"caption",sx:{opacity:.8},"data-test-id":"integration-sync-snack-retry-hint",children:ei("retry-from-page",{defaultValue:"You can retry from the page where you started the sync."})}):null,X[66]=es,X[67]=en,X[68]=ei,X[69]=H):H=X[69],X[70]!==j||X[71]!==$||X[72]!==F||X[73]!==B||X[74]!==K||X[75]!==G||X[76]!==H?(W=(0,t.jsxs)(c.Stack,{spacing:.75,children:[j,$,F,B,K,G,H]}),X[70]=j,X[71]=$,X[72]=F,X[73]=B,X[74]=K,X[75]=G,X[76]=H,X[77]=W):W=X[77],X[78]!==eO||X[79]!==en.action||X[80]!==en.source||X[81]!==en.syncId||X[82]!==m||X[83]!==ew||X[84]!==ea||X[85]!==L||X[86]!==eL||X[87]!==eU||X[88]!==eM||X[89]!==U||X[90]!==W?(q=(0,t.jsx)(o.default,{ref:m,severity:ew,variant:"filled",sx:L,icon:eO,"data-test-id":"integration-sync-snack","data-test-sync-id":en.syncId,"data-test-status":ea,"data-test-source":en.source,"data-test-action":en.action,"data-test-paused":eL,"data-test-error-code":eU,"data-test-result-link":eM,action:U,children:W}),X[78]=eO,X[79]=en.action,X[80]=en.source,X[81]=en.syncId,X[82]=m,X[83]=ew,X[84]=ea,X[85]=L,X[86]=eL,X[87]=eU,X[88]=eM,X[89]=U,X[90]=W,X[91]=q):q=X[91],q});function k(){return Date.now()}e.s(["IntegrationSyncSnackbarListener",0,function(){let e,i,r,o=(0,n.c)(6),s=(0,g.useAuthStore)(_),{enqueueSnackbar:l,closeSnackbar:c}=(0,m.useSnackbar)();o[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Map,o[0]=e):e=o[0];let u=(0,a.useRef)(e),d=(0,E.useCommittedRef)(l),p=(0,E.useCommittedRef)(c);return o[1]!==p||o[2]!==d||o[3]!==s?(i=()=>{if(!s)return;let e=u.current,n=p.current,i=(0,f.subscribeUserNotifications)(n=>{"integration-sync"===n.payload.kind&&function(e,n,i,r){let a=n.has(e.syncId);if(!a&&S.has(x(e.source,e.action))||!a&&"bulk-bracket-create"===(o=e).source&&"bracket-initialization"===o.ownerType)return;var o,s=e.syncId;let l=R.get(s);if(!(void 0!==l&&I(l.status))||I(e.status))for(let t of(R.set(s,e),w.get(s)??[]))t();if(a)return;let c=i("",{persist:!0,preventDuplicate:!1,content:i=>(0,t.jsx)(A,{syncId:e.syncId,initial:e,onDismiss:()=>{r(i),n.delete(e.syncId);var t=e.syncId;for(let e of(R.delete(t),w.get(t)??[]))e()}},i)});n.set(e.syncId,c)}(n.payload,e,d.current,p.current)});return()=>
1{for(let t of(i(),e.values()))n(t);e.clear()}},r=[s,d,p],o[1]=p,o[2]=d,o[3]=s,o[4]=i,o[5]=r):(i=o[4],r=o[5]),(0,a.useEffect)(i,r),null},"releaseIntegrationSyncSnackMatching",0,function(e,t){let n=x(e,t),i=S.get(n);void 0!==i&&(i<=1?S.delete(n):S.set(n,i-1))},"suppressIntegrationSyncSnackMatching",0,function(e,t){let n=x(e,t);S.set(n,(S.get(n)??0)+1)},"useIntegrationSyncLivePayload",0,function(e){let t,i,r=(0,n.c)(4);return r[0]!==e?(t=null===e?T:t=>O(e,t),r[0]=e,r[1]=t):t=r[1],r[2]!==e?(i=()=>null===e?void 0:R.get(e),r[2]=e,r[3]=i):i=r[3],(0,a.useSyncExternalStore)(t,i,C)}],644033)},366656,e=>{"use strict";var t=e.i(513612);let n=e=>{if(!e.startsWith("[")&&!e.startsWith("{"))return!1;try{return JSON.parse(e),!0}catch{return!1}};e.s(["integrationSyncFailureReason",0,(e,i)=>{var r;if("watchdog_timeout"===e)return{kind:"timeout"};let a=null==i?void 0:i.trim();if(!a)return{kind:"generic"};if(!n(a))return{kind:"message",message:a};let o=null==(r=(0,t.humanizeIssuesMessage)(a))?void 0:r.trim();return!o||n(o)?{kind:"generic"}:{kind:"message",message:o}}],366656)},696066,580995,e=>{"use strict";var t=e.i(943827);let n=(e,t,n)=>n?Object.entries(n).reduce((e,t)=>{let[n,i]=t;return e.replaceAll(`{{${n}}}`,i)},t):t,i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;switch(e){case"NOT_SEATED":return t("competition:entry-board.status.not-seated","Not Seated");case"QUEUE_OPEN":return t("competition:entry-board.status.queue-open","Queue Open");case"IN_QUEUE":return t("competition:entry-board.status.in-queue","In Queue");case"ROUND_OPEN":return t("competition:entry-board.status.round-open","Round Open");case"SCHEDULED":return t("competition:entry-board.status.scheduled","Scheduled");case"CHECK_IN_OPEN":return t("competition:entry-board.status.check-in-open","Check-In Open");case"AWAITING_REPORTS":return t("competition:entry-board.status.awaiting-reports","Awaiting Reports");case"OPPONENT_REPORTED":return t("competition:entry-board.status.opponent-reported","Confirm Score");case"YOU_REPORTED":return t("competition:entry-board.status.you-reported","Waiting On Opponent");case"SCORES_DISAGREE":return t("competition:entry-board.status.scores-disagree","Scores Disagree");case"DISPUTED":return t("competition:entry-board.status.disputed","Disputed");case"FLAGGED":return t("competition:entry-board.status.flagged","Flagged");case"COMPLETE":return t("competition:entry-board.status.complete","Complete")}},r=e=>"SCHEDULED"!==e.phase?e.phase:null!==e.matchId?"MATCH_SCHEDULED":"LEADERBOARD_SUBMISSION"===e.bracketKind?"ROUND_CLOSED":(0,t.isMatchmDrivenBracketKindKey)(e.bracketKind)?"QUEUE_CLOSED":null===e.phaseAt?"AWAITING_PAIRING":"SCHEDULED";e.s(["describePhase",0,function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,r=null===e.phaseAt?null:t(e.phaseAt),a=e.opponentName??i("competition:entry-board.opponent-fallback","Opponent");switch(e.phase){case"NOT_SEATED":return i("competition:entry-board.description.not-seated","Not in a bracket yet");case"QUEUE_OPEN":return null===r?i("competition:entry-board.description.queue-open-no-time","Your entry has not joined the queue"):i("competition:entry-board.description.queue-open","Your entry has not joined the queue, open until {{time}}",{time:r});case"IN_QUEUE":return null===r?i("competition:entry-board.description.in-queue-no-time","In the queue"):i("competition:entry-board.description.in-queue","In the queue, pairs at {{time}}",{time:r});case"ROUND_OPEN":return null===r?i("competition:entry-board.description.round-open-no-time","Leaderboard is open for submissions"):i("competition:entry-board.description.round-open","Round open, submit by {{time}}",{time:r});case"SCHEDULED":if(null===e.matchId){if("LEADERBOARD_SUBMISSION"===e.bracketKind)return null===r?i("competition:entry-board.description.scheduled-round-no-time","No round scheduled yet"):i("competition:entry-board.description.scheduled-round","Next round opens {{time}}",{time:r});if(e.missedLastWindow)return null===r?i("competition:entry-board.description.scheduled-queue-missed-no-time","No match from the last queue"):i("competition:entry-board.description.scheduled-queue-next","Next queue opens {{time}}",{time:r});return null===r?i("competition:entry-board.description.scheduled-pairing","Waiting for a pairing"):i("competition:entry-board.description.scheduled-queue","Queue opens {{time}}",{time:r})}return null===r?i("competition:entry-board.description.scheduled-no-time","No time set yet"):i("competition:entry-board.description.scheduled","Nothing to do until {{time}}",{time:r});case"CHECK_IN_OPEN":return null===r?i("competition:entry-board.description.check-in-open-no-time","Check-in is open"):i("competition:entry-board.description.check-in-open","Check-in open until {{time}}",{time:r});case"AWAITING_REPORTS":return i("competition:entry-board.description.awaiting-reports","Match assigned, waiting on both entries to report");case"OPPONENT_REPORTED":return null===r?i("competition:entry-board.description.opponent-reported-no-time","{{opponent}} reported the score, confirm it",{opponent:a}):i("competition:entry-board.description.opponent-reported","{{opponent}}
1 reported the score, confirm by {{time}}",{opponent:a,time:r});case"YOU_REPORTED":return null===r?i("competition:entry-board.description.you-reported-no-time","You reported the score, waiting on {{opponent}}",{opponent:a}):i("competition:entry-board.description.you-reported","You reported the score, waiting on {{opponent}} until {{time}}",{opponent:a,time:r});case"SCORES_DISAGREE":return i("competition:entry-board.description.scores-disagree","Both entries reported different scores");case"DISPUTED":return i("competition:entry-board.description.disputed","Dispute open, a moderator will resolve it");case"FLAGGED":return i("competition:entry-board.description.flagged","Flagged to an admin");case"COMPLETE":if("WON"===e.outcome)return i("competition:entry-board.description.complete-won","Won vs {{opponent}}",{opponent:a});if("LOST"===e.outcome)return i("competition:entry-board.description.complete-lost","Lost vs {{opponent}}",{opponent:a});if("FORFEIT"===e.outcome)return i("competition:entry-board.description.complete-forfeit","Forfeit vs {{opponent}}",{opponent:a});return i("competition:entry-board.description.complete","Played")}},"entryBoardStatus",0,r,"opponentLabel",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return null===e.matchId||"HEAT"===e.bracketKind?null:null!==e.opponentName?e.opponentName:"COMPLETE"===e.phase?null:t("competition:match.to-be-determined","To Be Determined")},"statusChipColor",0,e=>{switch(e){case"MATCH_SCHEDULED":case"ROUND_CLOSED":case"QUEUE_CLOSED":case"AWAITING_PAIRING":return;default:switch(e){case"QUEUE_OPEN":case"CHECK_IN_OPEN":case"OPPONENT_REPORTED":case"SCORES_DISAGREE":case"DISPUTED":return"warning";case"IN_QUEUE":return"success";case"FLAGGED":return"info";default:return}}},"statusLabel",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;switch(e){case"MATCH_SCHEDULED":return t("competition:entry-board.status.match-scheduled","Match Scheduled");case"ROUND_CLOSED":return t("competition:entry-board.status.round-closed","Round Closed");case"QUEUE_CLOSED":return t("competition:entry-board.status.queue-closed","Queue Closed");case"AWAITING_PAIRING":return t("competition:entry-board.status.awaiting-pairing","Awaiting Pairing");default:return i(e,t)}}],580995);let a=["QUEUE_OPEN","CHECK_IN_OPEN","OPPONENT_REPORTED","SCORES_DISAGREE","DISPUTED","FLAGGED"],o=["QUEUE_OPEN","OPPONENT_REPORTED","SCORES_DISAGREE","DISPUTED","FLAGGED"],s=e=>a.includes(e)?0:"COMPLETE"===e?2:1;e.s(["filterEntryBoardRows",0,function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.filter(e=>{if(n.length>0&&!n.includes(r(e)))return!1;if("attention"===t){let t;return t=e.phase,a.includes(t)}return"active"!==t||"COMPLETE"!==e.phase})},"lightsNavAlert",0,e=>e.some(e=>o.includes(e.phase)),"sortEntryBoardRows",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?-1:1;return[...e].sort((e,t)=>{let i=s(e.phase)-s(t.phase);if(0!==i)return i;let r=null===e.phaseAt?null:new Date(e.phaseAt).getTime(),a=null===t.phaseAt?null:new Date(t.phaseAt).getTime();return null===r&&null===a?e.entryId-t.entryId:null===r?1:null===a?-1:r===a?e.entryId-t.entryId:(r-a)*n})}],696066)},941985,e=>{"use strict";var t=e.i(63601),n=e.i(670322),i=e.i(484337);e.i(196343);var r=e.i(801982);e.i(674511);var a=e.i(706085),o=e.i(783941),s=e.i(616073);function l(e){let t="string"==typeof e&&o.i18nConfig.locales.includes(e)?e:o.i18nConfig.defaultLocale;document.documentElement.lang!==t&&(document.documentElement.lang=t)}e.s(["I18nProvider",0,e=>{let o,c,u,d,p,m,h=(0,n.c)(11),{initialLocale:f,children:g}=e;return h[0]!==f?(o=()=>{a.i18n.language!==f&&a.i18n.changeLanguage(f)},c=[f],h[0]=f,h[1]=o,h[2]=c):(o=h[1],c=h[2]),(0,i.useEffect)(o,c),h[3]!==f?(u=()=>(l(f),a.i18n.on("languageChanged",l),()=>{a.i18n.off("languageChanged",l)}),d=[f],h[3]=f,h[4]=u,h[5]=d):(u=h[4],d=h[5]),(0,i.useEffect)(u,d),h[6]!==g?(p=(0,t.jsx)(r.I18nextProvider,{i18n:a.i18n,children:g}),h[6]=g,h[7]=p):p=h[7],h[8]!==f||h[9]!==p?(m=(0,t.jsx)(s.RouteLocaleProvider,{locale:f,children:p}),h[8]=f,h[9]=p,h[10]=m):m=h[10],m}],941985)},58529,e=>{"use strict";var t=e.i(63601),n=e.i(670322),i=e.i(3363),r=e.i(484337),a=e.i(385035),o=e.i(480743);function s(e,t){let n=(0,o.normalizeLocale)(e);if(!i.default.isInitialized)return!1;for(let e of t)if(!i.default.hasResourceBundle(n,e))return!1;return!0}function l(){}e.s(["NamespaceGate",0,e=>{let c,u,d,p,m,h,f,g,y=(0,n.c)(27),{locale:v,namespaces:b,children:E,fallback:R,prefetchNamespaces:w,seedBundles:S,seedFallbackBundles:x}=e,I=void 0===R?null:R;if(y[0]!==v||y[1]!==b||y[2]!==w||y[3]!==S||y[4]!==x){let e,t,n=void 0===S?{}:S,r=void 0===x?{}:x;y[7]!==b?(e=Array.from(new Set(b)),y[7]=b,y[8]=e):e=y[8],c=e.join("|"),y[9]!==w?(t=w?Array.from(new Set(w)).join("|"):"",y[9]=w,y[10]=t):t=y[10],u=t;let a=(0,o.normalizeLocale)(v);for(let[e,t]of Object.entries(n))i.default.hasResourceBundle(a,e)||i.default.addResourceBundle(a,e,t,!0,!1);for(let[e,t]of Object.entries(r))for(let[n,r]of Object.entries(t))i.default.hasResourceBundle(e,n)||i.default.addResourceBundle(e,n,r,!0,!1);
1y[0]=v,y[1]=b,y[2]=w,y[3]=S,y[4]=x,y[5]=c,y[6]=u}else c=y[5],u=y[6];y[11]!==v||y[12]!==c?(d=s(v,c.split("|")),y[11]=v,y[12]=c,y[13]=d):d=y[13];let O=d,[T,C]=(0,r.useState)(O),[_,P]=(0,r.useState)(O);if(y[14]!==v||y[15]!==c?(p=()=>{let e=!1,t=c.split("|");if(s(v,t)){P(!0),C(!0);return}return C(!1),(0,a.ensureNamespacesLoaded)(v,t).then(()=>{e||(P(!0),C(!0))}).catch(()=>{e||(P(!0),C(!0))}),()=>{e=!0}},m=[v,c],y[14]=v,y[15]=c,y[16]=p,y[17]=m):(p=y[16],m=y[17]),(0,r.useEffect)(p,m),y[18]!==v||y[19]!==u||y[20]!==T?(h=()=>{if(!T||!u)return;let e=u.split("|"),t=()=>{(0,a.ensureNamespacesLoaded)(v,e).catch(l)};if("requestIdleCallback"in window){let e=window.requestIdleCallback(t,{timeout:2e3});return()=>{"cancelIdleCallback"in window&&window.cancelIdleCallback(e)}}let n=setTimeout(t,300);return()=>clearTimeout(n)},f=[T,v,u],y[18]=v,y[19]=u,y[20]=T,y[21]=h,y[22]=f):(h=y[21],f=y[22]),(0,r.useEffect)(h,f),!T&&!_){let e;return y[23]!==I?(e=(0,t.jsx)(t.Fragment,{children:I}),y[23]=I,y[24]=e):e=y[24],e}return y[25]!==E?(g=(0,t.jsx)(t.Fragment,{children:E}),y[25]=E,y[26]=g):g=y[26],g}])},472051,e=>{"use strict";var t=e.i(63601),n=e.i(670322),i=e.i(290714),r=e.i(911452),a=e.i(484337),o=e.i(565646),s=e.i(665118),l=e.i(833738),c=e.i(898479),u=e.i(573278);let d=(0,a.createContext)({state:"card",focus:()=>void 0,setState:()=>void 0,reconcile:()=>void 0,close:()=>void 0}),p=e=>{var a;let d,p,m,h,f,g,y=(0,n.c)(27),{item:v,state:b,onChangeState:E,onClose:R}=e,w=(0,r.useTheme)(),S=(null==(a=v.live)?void 0:a.title)??v.displayName??v.channelLogin,x="fullscreen"===b;y[0]!==w?(d=(0,u.streamPlayerZ)(w),y[0]=w,y[1]=d):d=y[1];let I=d,O="minimized"!==b;return y[2]!==E||y[3]!==b?(p=()=>E("minimized"===b?"card":"minimized"),y[2]=E,y[3]=b,y[4]=p):p=y[4],y[5]!==E?(m=()=>E("card"),y[5]=E,y[6]=m):m=y[6],y[7]!==x||y[8]!==v.channelLogin||y[9]!==v.contextLabel||y[10]!==v.displayName||y[11]!==E||y[12]!==R?(h=e=>{let{open:n}=e;return(0,t.jsx)(s.DockTitleBar,{open:n,icon:(0,t.jsx)(o.RcIcon,{icon:["fab","twitch"]}),title:v.displayName??v.channelLogin,subtitle:v.contextLabel,fullscreen:x,onToggleFullscreen:()=>E(x?"card":"fullscreen"),onCollapse:()=>E(n?"minimized":"card"),onClose:R,dataTestId:"streams-mini-player"})},y[7]=x,y[8]=v.channelLogin,y[9]=v.contextLabel,y[10]=v.displayName,y[11]=E,y[12]=R,y[13]=h):h=y[13],y[14]!==x||y[15]!==v.channelLogin||y[16]!==S?(f=x?(0,t.jsx)(i.default,{sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(c.TwitchPlayer,{channel:v.channelLogin,title:S,sx:{height:"100%",width:"auto",maxWidth:"100%",borderRadius:0}})}):(0,t.jsx)(c.TwitchPlayer,{channel:v.channelLogin,title:S}),y[14]=x,y[15]=v.channelLogin,y[16]=S,y[17]=f):f=y[17],y[18]!==x||y[19]!==I.docked||y[20]!==I.fullscreenPanel||y[21]!==O||y[22]!==p||y[23]!==m||y[24]!==h||y[25]!==f?(g=(0,t.jsx)(l.FloatingFixedPanel,{open:O,onCollapse:p,width:420,mobileExpandedHeight:"auto",scrollableBody:!1,persistKey:"streams-mini-player-position",dockId:"stream",fullscreen:x,onExitFullscreen:m,fullscreenZIndex:I.fullscreenPanel,zIndexBase:I.docked,dataTestId:"streams-mini-player",renderHeader:h,children:f}),y[18]=x,y[19]=I.docked,y[20]=I.fullscreenPanel,y[21]=O,y[22]=p,y[23]=m,y[24]=h,y[25]=f,y[26]=g):g=y[26],g};e.s(["StreamPlayerProvider",0,e=>{let i,r,o,s,l,c,u=(0,n.c)(15),{children:m}=e,[h,f]=(0,a.useState)(),[g,y]=(0,a.useState)("card");u[0]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{f(e),y("card")},u[0]=i):i=u[0];let v=i;u[1]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{f(void 0),y("card")},u[1]=r):r=u[1];let b=r;u[2]!==h?(o=e=>{if(!h)return;let t=e.find(e=>e.channelLogin===h.channelLogin);t&&(t.live||b())},u[2]=h,u[3]=o):o=u[3];let E=o;u[4]!==h||u[5]!==E||u[6]!==g?(s={active:h,state:g,focus:v,setState:y,reconcile:E,close:b},u[4]=h,u[5]=E,u[6]=g,u[7]=s):s=u[7];let R=s;return u[8]!==h||u[9]!==g?(l=(null==h?void 0:h.live)?(0,t.jsx)(p,{item:h,state:g,onChangeState:y,onClose:b}):null,u[8]=h,u[9]=g,u[10]=l):l=u[10],u[11]!==m||u[12]!==l||u[13]!==R?(c=(0,t.jsxs)(d.Provider,{value:R,children:[m,l]}),u[11]=m,u[12]=l,u[13]=R,u[14]=c):c=u[14],c},"useStreamPlayer",0,()=>(0,a.useContext)(d)])},916379,e=>{"use strict";var t=e.i(117453);e.i(589907);let n=(e,n,i)=>(0,t.rcIssuerRequest)("POST",e,n,i),i=e=>({authorization:`Bearer ${e}`});e.s(["deletePasskey",0,(e,n)=>(0,t.rcIssuerRequest)("DELETE",`/auth/passkey/${n}`,void 0,i(e)),"getPasskeyAuthenticationOptions",0,()=>n("/auth/passkey/authenticate/options",{}),"getPasskeyRegistrationOptions",0,e=>n("/auth/passkey/register/options",{},{authorization:`Bearer ${e}`}),"listPasskeys",0,e=>(0,t.rcIssuerRequest)("GET","/auth/passkey",void 0,i(e)),"mintDevPersonaSession",0,e=>n("/auth/test/mint",{email:e}),"renamePasskey",0,(e,n,r)=>(0,t.rcIssuerRequest)("PUT",`/auth/passkey/${n}`,{name:r},i(e)),"verifyPasskeyAuthentication",0,e=>n("/auth/passkey/authenticate/verify",e),"verifyPasskeyRegistration",0,(e,t)=>n("/auth/passkey/register/verify",t,{authorization:`Bearer ${e}`})])},365827,e=>{"use strict";var t=e.i(106273);e.i(673495);var n=e.i(781399),i=e.i(823669),r=e.i(410742),a=e.i(916379);e.i(573611);var o=e.i(447756);let s=()=>(0,t.hostCanOfferPasskeys)(window.location.host),l=e=>e instanceof Error&&"NotAllowedError"===e.name,c=e=>"code"in e&&"string"==typeof e.code?e.code:void 0,u=new Set(["ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT","ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT","ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG"]),d=async()=>{let e,t=await (0,o.getFreshRcAccessToken)();if(null===t)return"unauthenticated";let{challengeId:n,options:s}=await (0,a.getPasskeyRegistrationOptions)(t);try{e=await (0,i.startRegistration)({optionsJSON:s})}catch(e){if(l(e))return"cancelled";
1if(e instanceof Error){if((0,r.reportPasskeyCeremonyFailure)({name:e.name,code:c(e)}),"InvalidStateError"===e.name||"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED"===c(e))return"already-registered";if(u.has(c(e)??""))return"unsupported"}throw e}return await (0,a.verifyPasskeyRegistration)(t,{challengeId:n,response:e}),"registered"};class p extends Error{constructor(){super("No live rc session"),this.name="PasskeySessionExpiredError"}}let m=async()=>{let e=await (0,o.getFreshRcAccessToken)();if(null===e)throw new p;return e},h=async()=>(await (0,a.listPasskeys)(await m())).passkeys,f=async(e,t)=>(0,a.renamePasskey)(await m(),e,t),g=async e=>{await (0,a.deletePasskey)(await m(),e)};e.s(["PasskeySessionExpiredError",0,p,"canOfferPasskeys",0,()=>(0,n.browserSupportsWebAuthn)()&&s(),"currentHostCanOfferPasskeys",0,s,"fetchPasskeys",0,h,"isPasskeyCeremonyCancel",0,l,"removeRegisteredPasskey",0,g,"renameRegisteredPasskey",0,f,"runPasskeyRegistration",0,d])},345632,e=>{"use strict";let t=[e.i(619257).RootRoute.Administration];e.s(["isImpersonationBlockedPath",0,(e,n)=>t.some(t=>{let i=n(t);return e===i||e.startsWith(`${i}/`)})])},285563,e=>{"use strict";var t=e.i(207670),n=e.i(26135);let i=["nav-communities"],r=["nav-contact-support","nav-help"],a=new Map([["nav-teams",{stored:"fal-shield",current:["fal","people-group"]}]]);e.s(["resolveNavItemIcon",0,(e,t)=>{let i=e?a.get(e):void 0;return i&&t===i.stored?i.current:(0,n.parseIconFromString)(t)},"resolveNavItemTitle",0,(e,n,a,o)=>e?o&&r.includes(e)?(0,t.isDefaultSiteMapTitle)("nav-contact-support",n)?o:n:a&&i.includes(e)&&(0,t.isDefaultSiteMapTitle)(e,n)?a:n:n])},78797,e=>{"use strict";var t=e.i(670322),n=e.i(329249),i=e.i(493456),r=e.i(66177);let a=Object.freeze([]);e.s(["useEntryBoard",0,e=>{var o;let s,l,c,u,d=(0,t.c)(16),{organization:p}=(0,r.useOrganization)(),m=(null==p?void 0:p.id)??0,h=!e.paused&&m>0;d[0]!==e.includeFinished||d[1]!==e.scope||d[2]!==m?(s={organizationId:m,scope:e.scope,includeFinished:e.includeFinished},d[0]=e.includeFinished,d[1]=e.scope,d[2]=m,d[3]=s):s=d[3],d[4]!==h?(l={enabled:h,refetchOnWindowFocus:!0,placeholderData:i.keepPreviousData},d[4]=h,d[5]=l):l=d[5];let f=n.trpc.competition.entryBoard.list.useQuery(s,l),g=(null==(o=f.data)?void 0:o.items)??a;return d[6]!==f?(c=()=>f.refetch(),d[6]=f,d[7]=c):c=d[7],d[8]!==m||d[9]!==f.error||d[10]!==f.isFetched||d[11]!==f.isFetching||d[12]!==f.isLoading||d[13]!==g||d[14]!==c?(u={organizationId:m,rows:g,isLoading:f.isLoading,isFetching:f.isFetching,isFetched:f.isFetched,error:f.error,refresh:c},d[8]=m,d[9]=f.error,d[10]=f.isFetched,d[11]=f.isFetching,d[12]=f.isLoading,d[13]=g,d[14]=c,d[15]=u):u=d[15],u}])},934941,276608,e=>{"use strict";var t=e.i(670322),n=e.i(606639),i=e.i(631929),r=e.i(866610),a=e.i(66177);let o=e=>{let o,s,l=(0,t.c)(10),{organization:c}=(0,a.useOrganization)(),u=null==e?void 0:e.paused;l[0]!==u?(o={paused:u},l[0]=u,l[1]=o):o=l[1];let{communities:d}=(0,r.useUserSelfCommunities)(o),p=null==c?void 0:c.id;if(null==c||c.name,l[2]!==d||l[3]!==(null==c?void 0:c.name)||l[4]!==p){let e,t;l[6]!==p?(e=e=>{var t;return(null==(t=e.organization)?void 0:t.id)===p&&e.kind!==i.CommunityKind.TEAM&&(0,n.isElevatedSeat)(e.level)},l[6]=p,l[7]=e):e=l[7],l[8]!==(null==c?void 0:c.name)?(t=e=>({id:e.id,name:e.name??"",image:e.image??null,description:e.disambiguatingDescription??null,homeOrganizationName:(null==c?void 0:c.name)??null,seatLevel:(0,n.toAccessLevelOrdinal)(e.level)}),l[8]=null==c?void 0:c.name,l[9]=t):t=l[9],s=d.filter(e).map(t),l[2]=d,l[3]=null==c?void 0:c.name,l[4]=p,l[5]=s}else s=l[5];return s},s=e=>{let n,i,s,l=(0,t.c)(7),{isOrgModerator:c}=(0,a.useOrganization)(),u=null==e?void 0:e.paused;l[0]!==u?(n={paused:u},l[0]=u,l[1]=n):n=l[1];let{isLoading:d}=(0,r.useUserSelfCommunities)(n),p=null==e?void 0:e.paused;l[2]!==p?(i={paused:p},l[2]=p,l[3]=i):i=l[3];let m=o(i),h=c||m.length>0,f=!d;return l[4]!==h||l[5]!==f?(s={canJoin:h,isResolved:f},l[4]=h,l[5]=f,l[6]=s):s=l[6],s};e.s(["DISCOVERY_COMMUNITY_PARAM",0,"community","useCanJoinOrganizations",0,e=>s(e).canJoin,"useCanJoinOrganizationsState",0,s,"useEligibleJoinCommunities",0,o],934941);var l=e.i(948722),c=e.i(594593);function u(e){return e.id}function d(e,t){return e.label.localeCompare(t.label)}e.s(["useJoinableOrganizations",0,e=>{var n,i;let r,o,s,p,m,h,f,g,y,v,b,E,R,w=(0,t.c)(45),{organization:S}=(0,a.useOrganization)(),x=null==e?void 0:e.paused;w[0]!==x?(r={paused:x},w[0]=x,w[1]=r):r=w[1];let{organizations:I}=(0,l.useMyOrganizations)(r);w[2]!==(null==e?void 0:e.search)?(o=null==e||null==(i=e.search)?void 0:i.trim(),w[2]=null==e?void 0:e.search,w[3]=o):o=w[3];let O=o,T=(null==e||null==(n=e.tags)?void 0:n.length)?e.tags:void 0,C=null==e?void 0:e.keepOrganizationIds,_=void 0!==C,P=null==e?void 0:e.paused,A=null==e?void 0:e.pageSize;w[4]!==O?(s=O?{q:O}:{},w[4]=O,w[5]=s):s=w[5],w[6]!==T?(p=T?{tags:T}:{},w[6]=T,w[7]=p):p=w[7],w[8]!==_?(m=_?{includeAffiliationStanding:!0}:{},w[8]=_,w[9]=m):m=w[9],w[10]!==s||w[11]!==p||w[12]!==m?(h={...s,...p,...m},w[10]=s,w[11]=p,w[12]=m,w[13]=h):h=w[13],w[14]!==P||w[15]!==A||w[16]!==h?(f={paused:P,pageSize:A,request:h},w[14]=P,w[15]=A,w[16]=h,w[17]=f):f=w[17];let k=(0,c.useOrganizationDocument)(f);w[18]!==I?(g=new Set(I.map(u)),w[18]=I,w[19]=g):g=w[19];let N=g;w[20]!==C?(y=C??[],w[20]=C,w[21]=y):y=w[21],w[22]!==y?(v=new Set(y),w[22]=y,w[23]=v):v=w[23];let D=v,L=!_||(null==e?void 0:e.standingResolved)!==!1;if(null==S||S.id,w[24]!==k.organizations||w[25]!==L||w[26]!==N||w[27]!==(null==S?void 0:S.id)||w[28]!==D){let e;w[30]!==L||w[31]!==N||w[32]!==(null==S?void 0:S.id)||w[33]!==D?(e=e=>e.id!==(null==S?void 0:S.id)&&(!L||!N.has(e.id)||D.has(e.id)),w[30]=L,w[31]=N,w[32]=null==S?void 0:S.id,w[33]=D,w[34]=e):e=w[34],b=k.organizations.filter(e),w[24]=k.organizations,w[25]=L,w[26]=N,w[27]=null==S?void 0:S.id,w[28]=D,w[29]=b}else b=w[29];let U=b;if(w[35]!==U){let e=new Map;for(let t of U)for(let n of t.tags??[])e.has(n.slug)||e.set(n.slug,{slug:n.slug,label:n.label});E=[...e.values()].sort(d),w[35]=U,w[36]=E}else E=w[36];let M=E;return w[37]!==M||w[38]!==k.fetchNextPage||w[39]!==k.hasMore||w[40]!==k.isFetchingNextPage||w[41]!==k.isLoading||w[42]!==k.totalItems||w[43]!==U?(R={joinable:U,availableTags:M,isLoading:k.isLoading,hasMore:k.hasMore,isFetchingNextPage:k.isFetchingNextPage,fetchNextPage:k.fetchNextPage,totalItems:k.totalItems},w[37]=M,w[38]=k.fetchNextPage,w[39]=k.hasMore,w[40]=k.isFetchingNextPage,w[41]=k.isLoading,w[42]=k.totalItems,w[43]=U,w[44]=R):R=w[44],R}],276608)},948722,e=>{"use strict";var t=e.i(670322),n=e.i(329249),i=e.i(388898);e.s(["useMyOrganizations",0,e=>{var r,a,o;let s,l,c,u=(0,t.c)(8),{user:d}=(0,i.useUserAccount)(),p=!!d&&!(null==e?void 0:e.paused);u[0]!==p?(s={enabled:p},u[0]=p,u[1]=s):s=u[1];let m=n.trpc.organization.mine.useQuery(void 0,s);u[2]!==(null==(r=m.data)?void 0:r.items)?(l=(null==(a=m.data)?void 0:a.items)??[],u[2]=null==(o=m.data)?void 0:o.items,u[3]=l):l=u[3];let h=l,f=m.isLoading&&p;return u[4]!==h||u[5]!==m.refetch||u[6]!==f?(c={organizations:h,isLoading:f,refetch:m.refetch},u[4]=h,u[5]=m.refetch,u[6]=f,u[7]=c):c=u[7],c}])},529431,e=>{"use strict";var t=e.i(670322),n=e.i(329249),i=e.i(955031),r=e.i(66177);e.s(["useOrgLiveChannels",0,()=>{var e,a,o,s,l,c;let u,d,p,m,h,f,g=(0,t.c)(14),{featStreams:y}=(0,i.useFeatures)(),{organization:v}=(0,r.useOrganization)(),b=null==v?void 0:v.id;g[0]!==b?(u={organizationId:b},g[0]=b,g[1]=u):u=g[1];let E=!!b&&!!y;g[2]!==E?(d={enabled:E},g[2]=E,g[3]=d):d=g[3];let R=n.trpc.twitch.liveStatus.useQuery(u,d);if(g[4]!==(null==(e=R.data)?void 0:e.streams)){for(let e of(p=new Map,(null==(o=R.data)?void 0:o.streams)??[]))p.set(`id:${e.twitchUserId}`,e),p.set(`login:${e.login.toLowerCase()}`,e);g[4]=null==(s=R.data)?void 0:s.streams,g[5]=p}else p=g[5];let w=p;g[6]!==w?(m=e=>(e.twitchUserId?w.get(`id:${e.twitchUserId}`):void 0)??w.get(`login:${e.channelLogin.toLowerCase()}`),g[6]=w,g[7]=m):m=g[7];let S=m;
1return g[8]!==(null==(a=R.data)?void 0:a.streams)?(h=(null==(l=R.data)?void 0:l.streams)??[],g[8]=null==(c=R.data)?void 0:c.streams,g[9]=h):h=g[9],g[10]!==S||g[11]!==R.isLoading||g[12]!==h?(f={streams:h,liveStream:S,isLoading:R.isLoading},g[10]=S,g[11]=R.isLoading,g[12]=h,g[13]=f):f=g[13],f}])},594593,e=>{"use strict";var t=e.i(670322),n=e.i(527659),i=e.i(329249),r=e.i(493456);function a(e,t){return e+t.hits.length}function o(e,t){let n=t.reduce(a,0);return n<e.total?n:void 0}function s(e){return{id:e.id,_score:e._score,...e._source}}function l(e){return(e.hits??[]).map(s)}function c(e){return e.total}e.s(["useOrganizationDocument",0,e=>{let a,s,u,d,p,m=(0,t.c)(10),h=!(null==e?void 0:e.paused),f=(null==e?void 0:e.pageSize)??25;m[0]!==(null==e?void 0:e.request)?(a=(null==e?void 0:e.request)??{},m[0]=null==e?void 0:e.request,m[1]=a):a=m[1],m[2]!==f||m[3]!==a?(s={from:0,size:f,...a},m[2]=f,m[3]=a,m[4]=s):s=m[4];let g=s;m[5]!==h?(u={enabled:h,placeholderData:r.keepPreviousData,getNextPageParam:o},m[5]=h,m[6]=u):u=m[6];let y=i.trpc.search.organizations.useInfiniteQuery(g,u);m[7]===Symbol.for("react.memo_cache_sentinel")?(d={flatMap:l,getTotalItems:c},m[7]=d):d=m[7];let v=(0,n.useEntityListInfinite)(y,d);return m[8]!==v?(p={...v,organizations:v.flat},m[8]=v,m[9]=p):p=m[9],p}])},433500,932792,e=>{"use strict";var t=e.i(670322),n=e.i(329249),i=e.i(202029),r=e.i(66177);e.s(["usePendingAffiliationRequestCount",0,()=>{var e;let a,o,s,l=(0,t.c)(8),{organization:c,isOrgSuperAdmin:u}=(0,r.useOrganization)(),{isRootAdmin:d}=(0,i.useGateway)(),p=(null==c?void 0:c.id)??0,m=p>0&&(u||d);l[0]!==p?(a={organizationId:p},l[0]=p,l[1]=a):a=l[1],l[2]!==m?(o={enabled:m,staleTime:6e4},l[2]=m,l[3]=o):o=l[3];let h=n.trpc.community.organizations.organizationQueue.useQuery(a,o),f=m?(null==(e=h.data)?void 0:e.pending.length)??0:0,g=f>0;return l[4]!==f||l[5]!==h.isLoading||l[6]!==g?(s={count:f,hasPending:g,isLoading:h.isLoading},l[4]=f,l[5]=h.isLoading,l[6]=g,l[7]=s):s=l[7],s}],433500),e.s(["usePendingStaffApprovalCount",0,()=>{var e;let a,o,s,l=(0,t.c)(8),{organization:c,isOrgLimitedAdmin:u}=(0,r.useOrganization)(),{isRootAdmin:d}=(0,i.useGateway)(),p=(null==c?void 0:c.id)??0,m=p>0&&(u||d);l[0]!==p?(a={organizationId:p,from:0,size:1},l[0]=p,l[1]=a):a=l[1],l[2]!==m?(o={enabled:m,staleTime:6e4},l[2]=m,l[3]=o):o=l[3];let h=n.trpc.community.memberRequests.listElevatedRequestsForOrg.useQuery(a,o),f=m?(null==(e=h.data)?void 0:e.total)??0:0,g=f>0;return l[4]!==f||l[5]!==h.isLoading||l[6]!==g?(s={count:f,hasPending:g,isLoading:h.isLoading},l[4]=f,l[5]=h.isLoading,l[6]=g,l[7]=s):s=l[7],s}],932792)},693740,e=>{"use strict";var t=e.i(670322),n=e.i(329249),i=e.i(719937),r=e.i(66177),a=e.i(388898),o=e.i(893108);e.s(["useRallyUserMine",0,e=>{let s,l,c,u,d,p,m,h=(0,t.c)(17),f=null==e?void 0:e.paused;h[0]!==f?(s={paused:f},h[0]=f,h[1]=s):s=h[1];let{organization:g}=(0,r.useOrganization)(s),{account:y}=(0,a.useUserAccount)(),{user:v}=(0,o.useAuthSession)(),b=(null==g?void 0:g.id)??0,E=(null==e?void 0:e.enabled)??!0,R=(null==e?void 0:e.directOnly)??!1,w=(null==e?void 0:e.dashboardOnly)??!1,S=E&&!(null==e?void 0:e.paused)&&b>0&&!!v&&!v.isAnonymous;h[2]!==w||h[3]!==R||h[4]!==b?(l={organizationId:b,directOnly:R,dashboardOnly:w},h[2]=w,h[3]=R,h[4]=b,h[5]=l):l=h[5],h[6]!==S?(c={enabled:S,staleTime:6e4},h[6]=S,h[7]=c):c=h[7];let x=n.trpc.rally.listUserMine.useQuery(l,c);h[8]===Symbol.for("react.memo_cache_sentinel")?(u=["rallies"],d=[n.trpc.rally.listUserMine],h[8]=u,h[9]=d):(u=h[8],d=h[9]),(0,i.useTopicInvalidation)("user",null==y?void 0:y.id,u,d),h[10]!==x.data?(p=x.data??[],h[10]=x.data,h[11]=p):p=h[11];let I=x.error??null;return h[12]!==x.isLoading||h[13]!==x.refetch||h[14]!==p||h[15]!==I?(m={rallies:p,isLoading:x.isLoading,error:I,refetch:x.refetch},h[12]=x.isLoading,h[13]=x.refetch,h[14]=p,h[15]=I,h[16]=m):m=h[16],m}])},893194,e=>{"use strict";var t=e.i(670322),n=e.i(329249),i=e.i(834987),r=e.i(66177),a=e.i(893108),o=e.i(260511);e.i(891832);var s=e.i(222343),l=e.i(504434);let c=()=>{var e;let a,o,s,l=(0,t.c)(7),{orgKey:c}=(0,i.useConfig)(),u=!!c,d=c??"";l[0]!==d?(a={key:d,expand:r.ORG_BY_KEY_EXPAND},l[0]=d,l[1]=a):a=l[1],l[2]!==u?(o={enabled:u,staleTime:1/0},l[2]=u,l[3]=o):o=l[3];let p=n.trpc.organization.getByKey.useQuery(a,o),m=null==(e=p.data)?void 0:e.id,h=!u||p.isSuccess||p.isError;return l[4]!==m||l[5]!==h?(s={organizationId:m,resolved:h},l[4]=m,l[5]=h,l[6]=s):s=l[6],s},u=(e,i)=>{var r,o,s,l;let u,d,p,f,g,y,v=(0,t.c)(20),b=c().organizationId,{user:E}=(0,a.useAuthSession)();v[0]!==b||v[1]!==e?(u={limit:10,organizationId:b,scope:e},v[0]=b,v[1]=e,v[2]=u):u=v[2];let R=!i;v[3]!==R?(d={enabled:R,staleTime:3e5,getNextPageParam:m},v[3]=R,v[4]=d):d=v[4];let w=n.trpc.releaseUpdates.list.useInfiniteQuery(u,d);v[5]!==(null==(r=w.data)?void 0:r.pages)?(p=(null==(s=w.data)||null==(o=s.pages)?void 0:o.flatMap(h))??[],v[5]=null==(l=w.data)?void 0:l.pages,v[6]=p):p=v[6];let S=w.hasNextPage??!1;v[7]!==w?(f=()=>void w.fetchNextPage(),g=()=>void w.refetch(),v[7]=w,v[8]=f,v[9]=g):(f=v[8],g=v[9]);let x=w.error??null,I=void 0!==w.data||w.isError,O=!!E&&!E.isAnonymous;return v[10]!==w.isFetchingNextPage||v[11]!==w.isLoading||v[12]!==p||v[13]!==S||v[14]!==f||v[15]!==g||v[16]!==x||v[17]!==I||v[18]!==O?(y={entries:p,isLoading:w.isLoading,isFetchingNextPage:w.isFetchingNextPage,hasMore:S,fetchNextPage:f,refetch:g,error:x,settled:I,signedIn:O}
1,v[10]=w.isFetchingNextPage,v[11]=w.isLoading,v[12]=p,v[13]=S,v[14]=f,v[15]=g,v[16]=x,v[17]=I,v[18]=O,v[19]=y):y=v[19],y},d=new Set,p=new Set;function m(e){return(null==e?void 0:e.nextCursor)??void 0}function h(e){return e.items}function f(e){return{release_update_id:e.id,release_version:e.releaseVersion??void 0,feature_key:e.featureKey??void 0}}e.s(["useReleaseUpdateReceipts",0,()=>{let e,i,r,o,c,u,m,h,g,y,v,b=(0,t.c)(33),E=n.trpc.useUtils(),{user:R}=(0,a.useAuthSession)(),w=!!R&&!R.isAnonymous;b[0]!==E?(e=async()=>{await E.releaseUpdates.unreadCount.reset(),await E.releaseUpdates.list.invalidate()},b[0]=E,b[1]=e):e=b[1];let S=e,x=n.trpc.releaseUpdates.recordImpression.useMutation();b[2]!==E?(i={onSuccess:()=>{E.releaseUpdates.unreadCount.reset()}},b[2]=E,b[3]=i):i=b[3];let I=n.trpc.releaseUpdates.recordOpen.useMutation(i);b[4]!==S?(r={onSuccess:()=>{S()}},b[4]=S,b[5]=r):r=b[5];let O=n.trpc.releaseUpdates.dismiss.useMutation(r),T=n.trpc.releaseUpdates.recordCtaClick.useMutation();b[6]!==T||b[7]!==O||b[8]!==x||b[9]!==I?(o={impressionMutation:x,openMutation:I,dismissMutation:O,ctaMutation:T},b[6]=T,b[7]=O,b[8]=x,b[9]=I,b[10]=o):o=b[10];let C=(0,l.useCommittedRef)(o);b[11]===Symbol.for("react.memo_cache_sentinel")?(c=e=>!d.has(e.id)&&(d.add(e.id),s.analytics.whatsNewImpression(f(e)),!0),b[11]=c):c=b[11];let _=c;b[12]!==C||b[13]!==w?(u=e=>{_(e)&&w&&C.current.impressionMutation.mutate({releaseUpdateId:e.id})},b[12]=C,b[13]=w,b[14]=u):u=b[14];let P=u;b[15]!==C||b[16]!==w?(m=e=>{var t;!((null==(t=e.receipt)?void 0:t.openedAt)||p.has(e.id))&&(p.add(e.id),s.analytics.whatsNewOpen(f(e)),w&&C.current.openMutation.mutate({releaseUpdateId:e.id}))},b[15]=C,b[16]=w,b[17]=m):m=b[17];let A=m;b[18]!==C||b[19]!==w?(h=e=>{s.analytics.whatsNewDismiss(f(e)),w&&C.current.dismissMutation.mutate({releaseUpdateId:e.id})},b[18]=C,b[19]=w,b[20]=h):h=b[20];let k=h;b[21]!==C||b[22]!==w?(g=e=>{s.analytics.whatsNewCtaClick(f(e)),w&&C.current.ctaMutation.mutate({releaseUpdateId:e.id})},b[21]=C,b[22]=w,b[23]=g):g=b[23];let N=g;b[24]!==A?(y=e=>{_(e),A(e)},b[24]=A,b[25]=y):y=b[25];let D=y;return b[26]!==k||b[27]!==N||b[28]!==P||b[29]!==A||b[30]!==D||b[31]!==w?(v={recordImpression:P,recordOpen:A,recordView:D,dismiss:k,recordCtaClick:N,canDismiss:w},b[26]=k,b[27]=N,b[28]=P,b[29]=A,b[30]=D,b[31]=w,b[32]=v):v=b[32],v},"useReleaseUpdatesFeed",0,e=>u("CURRENT",null==e?void 0:e.paused),"useReleaseUpdatesHistory",0,e=>u("ALL",null==e?void 0:e.paused),"useReleaseUpdatesUnread",0,e=>{var i;let r,s,l,u,d=(0,t.c)(10),{user:p}=(0,a.useAuthSession)(),{organizationId:m,resolved:h}=c(),f=!(null==e?void 0:e.paused)&&!!p&&!p.isAnonymous&&h,g=(0,o.useChromeDataReady)();d[0]!==m?(r={organizationId:m},d[0]=m,d[1]=r):r=d[1];let y=f&&g;d[2]!==y?(s={enabled:y,staleTime:3e5},d[2]=y,d[3]=s):s=d[3];let v=n.trpc.releaseUpdates.unreadCount.useQuery(r,s),b=f?(null==(i=v.data)?void 0:i.count)??0:0;return d[4]!==v?(l=async()=>v.refetch(),d[4]=v,d[5]=l):l=d[5],d[6]!==v.isLoading||d[7]!==b||d[8]!==l?(u={count:b,isLoading:v.isLoading,refetch:l},d[6]=v.isLoading,d[7]=b,d[8]=l,d[9]=u):u=d[9],u}])},27554,e=>{"use strict";e.i(147699);var t=e.i(484337),n=e.i(512680),i=e.i(312096),r=e.i(63601);let a="function"==typeof(0,n.globalCss)({}),o=function(e){var t,n;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={};i&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(t=>{var n,i;let[a,o]=t,s=e.getColorSchemeSelector(a);s.startsWith("@")?r[s]={":root":{colorScheme:null==(n=o.palette)?void 0:n.mode}}:r[s.replace(/\s*&/,"")]={colorScheme:null==(i=o.palette)?void 0:i.mode}});let a={html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...i&&!e.vars&&{colorScheme:e.palette.mode}},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...{color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}},"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r},o=null==(n=e.components)||null==(t=n.MuiCssBaseline)?void 0:t.styleOverrides;return o&&(a=[a,o]),a},s="mui-ecs",l=(0,n.globalCss)(a?e=>{let{theme:t,enableColorScheme:n}=e;return o(t,n)}:e=>{let t,n,{theme:i}=e;return n=Array.isArray(t=o(i,!1))?t[0]:t,!i.vars&&n&&(n.html[`:root:has(${s})`]={colorScheme:i.palette.mode}
1),i.colorSchemes&&Object.entries(i.colorSchemes).forEach(e=>{var t,r;let[a,o]=e,l=i.getColorSchemeSelector(a);l.startsWith("@")?n[l]={[`:root:not(:has(.${s}))`]:{colorScheme:null==(t=o.palette)?void 0:t.mode}}:n[l.replace(/\s*&/,"")]={[`&:not(:has(.${s}))`]:{colorScheme:null==(r=o.palette)?void 0:r.mode}}}),t});e.s(["default",0,function(e){let{children:n,enableColorScheme:o=!1}=(0,i.useDefaultProps)({props:e,name:"MuiCssBaseline"});return(0,r.jsxs)(t.Fragment,{children:[a&&(0,r.jsx)(l,{enableColorScheme:o}),!a&&!o&&(0,r.jsx)("span",{className:s,style:{display:"none"}}),n]})}])},69953,e=>{"use strict";var t=e.i(219930);e.s(["Stack",()=>t.default])},866631,e=>{"use strict";var t=e.i(484337),n=e.i(470733),i=e.i(695137),r=e.i(697791),a=e.i(812102),o=e.i(312096),s=e.i(890714),l=e.i(900304);function c(e){return(0,l.default)("MuiToolbar",e)}(0,s.default)("MuiToolbar",["root","gutters","regular","dense"]);var u=e.i(63601);let d=(0,r.styled)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((0,a.default)(e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}})),p=t.forwardRef(function(e,t){let r=(0,o.useDefaultProps)({props:e,name:"MuiToolbar"}),{className:a,component:s="div",disableGutters:l=!1,variant:p="regular",...m}=r,h={...r,component:s,disableGutters:l,variant:p},f=(e=>{let{classes:t,disableGutters:n,variant:r}=e;return(0,i.default)({root:["root",!n&&"gutters",r]},c,t)})(h);return(0,u.jsx)(d,{as:s,className:(0,n.default)(f.root,a),ref:t,ownerState:h,...m})});e.s(["default",0,p],866631)},465222,e=>{"use strict";var t=e.i(516190);e.s(["Typography",()=>t.default])},673495,781399,823669,517169,e=>{"use strict";function t(e){let t=new Uint8Array(e),n="";for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function n(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4,i=atob(t.padEnd(t.length+n,"=")),r=new ArrayBuffer(i.length),a=new Uint8Array(r);for(let e=0;e<i.length;e++)a[e]=i.charCodeAt(e);return r}function i(){var e;return r.stubThis((null==(e=globalThis)?void 0:e.PublicKeyCredential)!==void 0&&"function"==typeof globalThis.PublicKeyCredential)}let r={stubThis:e=>e};function a(e){let{id:t}=e;return{...e,id:n(t),transports:e.transports,type:e.type}}function o(e){return"localhost"===e||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}e.s(["browserSupportsWebAuthn",0,i],781399);class s extends Error{constructor({message:e,code:t,cause:n,name:i}){super(e,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=i??n.name,this.code=t}}let l=new class{createNewAbortSignal(){if(this.controller){let e=Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}},c=["cross-platform","platform"];function u(e){if(e&&!(0>c.indexOf(e)))return e}async function d(e){var r;let c,d,m,h,f;!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:g,useAutoRegister:y=!1}=e;if(!i())throw Error("WebAuthn is not supported in this browser");let v={...g,challenge:n(g.challenge),user:{...g.user,id:n(g.user.id)},excludeCredentials:null==(r=g.excludeCredentials)?void 0:r.map(a)},b={};y&&(b.mediation="conditional"),b.publicKey=v,b.signal=l.createNewAbortSignal();try{c=await navigator.credentials.create(b)}
1catch(e){throw function(e){let{error:t,options:n}=e,{publicKey:i}=n;if(!i)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(n.signal instanceof AbortSignal)return new s({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if("ConstraintError"===t.name){var r,a,l;if((null==(r=i.authenticatorSelection)?void 0:r.requireResidentKey)===!0)return new s({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if("conditional"===n.mediation&&(null==(a=i.authenticatorSelection)?void 0:a.userVerification)==="required")return new s({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if((null==(l=i.authenticatorSelection)?void 0:l.userVerification)==="required")return new s({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else if("InvalidStateError"===t.name)return new s({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});else if("NotAllowedError"===t.name)return new s({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});else if("NotSupportedError"===t.name)return new s(0===i.pubKeyCredParams.filter(e=>"public-key"===e.type).length?{message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}:{message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});else if("SecurityError"===t.name){let e=globalThis.location.hostname;if(!o(e))return new s({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t});if(i.rp.id!==e)return new s({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else if("TypeError"===t.name){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new s({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if("UnknownError"===t.name)return new s({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t});return t}({error:e,options:b})}if(!c)throw Error("Registration was not completed");let{id:E,rawId:R,response:w,type:S}=c;if("function"==typeof w.getTransports&&(m=w.getTransports()),"function"==typeof w.getPublicKeyAlgorithm)try{h=w.getPublicKeyAlgorithm()}catch(e){p("getPublicKeyAlgorithm()",e)}if("function"==typeof w.getPublicKey)try{let e=w.getPublicKey();null!==e&&(f=t(e))}catch(e){p("getPublicKey()",e)}if("function"==typeof w.getAuthenticatorData)try{d=t(w.getAuthenticatorData())}catch(e){p("getAuthenticatorData()",e)}return{id:E,rawId:t(R),response:{attestationObject:t(w.attestationObject),clientDataJSON:t(w.clientDataJSON),transports:m,publicKeyAlgorithm:h,publicKey:f,authenticatorData:d},type:S,clientExtensionResults:c.getClientExtensionResults(),authenticatorAttachment:u(c.authenticatorAttachment)}}function p(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them. 2`,t)}e.s(["startRegistration",0,d],823669);let m=e=>e;async function h(e){var r,c;let d,p,h;!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:f,useBrowserAutofill:g=!1,verifyBrowserAutofillInput:y=!0}=e;if(!i())throw Error("WebAuthn is not supported in this browser");
2(null==(r=f.allowCredentials)?void 0:r.length)!==0&&(d=null==(c=f.allowCredentials)?void 0:c.map(a));let v={...f,challenge:n(f.challenge),allowCredentials:d},b={};if(g){if(!await function(){if(!i())return m(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return(null==e?void 0:e.isConditionalMediationAvailable)===void 0?m(new Promise(e=>e(!1))):m(e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&y)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');b.mediation="conditional",v.allowCredentials=[]}b.publicKey=v,b.signal=l.createNewAbortSignal();try{p=await navigator.credentials.get(b)}catch(e){throw function(e){let{error:t,options:n}=e,{publicKey:i}=n;if(!i)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(n.signal instanceof AbortSignal)return new s({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if("NotAllowedError"===t.name)return new s({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});else if("SecurityError"===t.name){let e=globalThis.location.hostname;if(!o(e))return new s({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t});if(i.rpId!==e)return new s({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else if("UnknownError"===t.name)return new s({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t});return t}({error:e,options:b})}if(!p)throw Error("Authentication was not completed");let{id:E,rawId:R,response:w,type:S}=p;return w.userHandle&&(h=t(w.userHandle)),{id:E,rawId:t(R),response:{authenticatorData:t(w.authenticatorData),clientDataJSON:t(w.clientDataJSON),signature:t(w.signature),userHandle:h},type:S,clientExtensionResults:p.getClientExtensionResults(),authenticatorAttachment:u(p.authenticatorAttachment)}}e.s(["startAuthentication",0,h],517169),e.s([],673495)},542073,e=>{"use strict";e.s(["conveyorCardUrl",0,e=>`https://conveyor.rallycryapp.com/projects/universal-rally-cry/cards/${e}`])},106273,e=>{"use strict";var t=e.i(553991);let n=Object.values(t.PASSKEY_RP_IDS).flat(),i=new Set(["localhost","127.0.0.1","0.0.0.0","::1"]),r=e=>{let t=e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,"").split(/[/?#]/)[0]??"",n=t.startsWith("[")?t.slice(1,t.indexOf("]")):t.split(":")[0]??"";return i.has(n.toLowerCase())};e.s(["hostCanOfferPasskeys",0,e=>null!==(e=>{var i;let r,a=(null==(i=(r=e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,"").split(/[/?#]/)[0]??"").slice(r.indexOf("@")+1).split(":")[0])?void 0:i.toLowerCase())??"";if(""===a)return null;let o=n.filter(e=>a===e||a.endsWith(`.${e}`)).sort((e,t)=>t.length-e.length)[0];if(void 0!==o)return o;for(let e of t.WILDCARD_TENANT_SUFFIXES)if(a.endsWith(e.suffix)&&a.length>e.suffix.length)return e.passkeyRpId;return(()=>{let e=new Set;for(let n of Object.values(t.ORG_HOSTNAMES))!0!==n.multiOrg&&e.add(n.web.toLowerCase());return e})().has(a)?a:null})(e)||r(e),"isLoopbackWebHost",0,r])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.