@dcl-regenesislabs/bevy-explorer-web 0.1.0-33099436282.commit-aab5eda → 0.1.0-33122661692.commit-0cfd373

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{B as e,F as t,H as n,I as r,L as i,M as a,N as o,P as s,R as c,U as l,W as u,_ as d,j as f,p,v as m,z as h}from"./design-CF4O2Ug3.js";import{j as g}from"./menus-SfkXRWTi.js";import{i as _,n as v,r as y,t as b}from"./index-DkEwmbGw.js";var x=u(),S=l(),C=[`base`,`common`,`uncommon`,`rare`,`epic`,`legendary`,`mythic`,`unique`,`exotic`],w=g(`urn:decentraland:off-chain:base-emotes:raisehand`),T=[{icon:`profile`,label:`Profile`},{icon:`notifications`,label:`Notifications`},{icon:`map`,label:`Map`},{icon:`communities`,label:`Communities`},{icon:`backpack`,label:`Backpack`},{icon:`settings`,label:`Settings`},{icon:`mic`,label:`Voice chat`},{icon:`friends`,label:`Friends`},{icon:`chat`,label:`Chat`},{icon:`emotes`,label:`Emotes`},{icon:`help`,label:`Help`}],E=[{name:`Ruby`,hex:`#ff2d55`,token:`--brand`},{name:`Snow`,hex:`#fcfcfc`,token:`--text`,dark:!0},{name:`Shadow`,hex:`#161518`,token:`--panel`},{name:`Yellow`,hex:`#ffc95b`,token:`--gold`,dark:!0},{name:`Pearl`,hex:`#ecebed`,token:`--pearl`,dark:!0},{name:`Green`,hex:`#30cd00`,token:`--green`,dark:!0},{name:`Lavender`,hex:`#c640cd`,token:`--lavender`},{name:`Purple`,hex:`#982de2`,token:`--purple`},{name:`Red`,hex:`#ff0000`,token:`--red`}],D=[{name:`Common`,hex:`#73d3d3`},{name:`Common Light`,hex:`#acf8f8`},{name:`Uncommon`,hex:`#ff8362`},{name:`Epic Light`,hex:`#81e1ff`},{name:`Legendary`,hex:`#a14bf3`},{name:`Legendary Light`,hex:`#e8b9ff`},{name:`Mythic`,hex:`#ff4bed`},{name:`Unique`,hex:`#fea217`},{name:`Exotic`,hex:`#caff73`},{name:`Orange`,hex:`#ff7439`},{name:`Melon`,hex:`#ffa25a`},{name:`Periwinkle`,hex:`#a0abff`}],O=[{name:`Display`,token:`--fs-display`,weight:800},{name:`Title`,token:`--fs-title`,weight:700},{name:`Large`,token:`--fs-lg`,weight:600},{name:`Body (md)`,token:`--fs-md`,weight:500},{name:`Small`,token:`--fs-sm`,weight:400},{name:`XSmall`,token:`--fs-xs`,weight:400}],k=[{name:`control`,token:`--r-control`},{name:`card`,token:`--r-card`},{name:`panel`,token:`--r-panel`},{name:`pill`,token:`--r-pill`}],A={height:`100%`,overflowY:`auto`,padding:40,display:`flex`,flexDirection:`column`,gap:36,background:`#0e0d10`,color:`var(--text)`,fontFamily:`var(--font-family)`},j={display:`flex`,gap:12,alignItems:`center`,flexWrap:`wrap`},M={display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(132px, 1fr))`,gap:12},N={fontSize:`var(--fs-xs)`,textTransform:`uppercase`,letterSpacing:`.08em`,color:`var(--ink-45)`,margin:`0 0 14px`};function P({title:e,children:t}){return(0,S.jsxs)(`section`,{children:[(0,S.jsx)(`p`,{style:N,children:e}),t]})}function F({name:e,hex:t,token:n,dark:r}){return(0,S.jsxs)(`div`,{style:{borderRadius:`var(--r-card)`,overflow:`hidden`,border:`1px solid var(--white-10)`},children:[(0,S.jsx)(`div`,{style:{background:t,height:64,display:`flex`,alignItems:`flex-end`,padding:8,color:r?`#161518`:`#fcfcfc`,fontSize:11,fontWeight:700},children:t.toUpperCase()}),(0,S.jsxs)(`div`,{style:{padding:`8px 10px`,background:`var(--fill-2)`},children:[(0,S.jsx)(`div`,{style:{fontSize:13,fontWeight:600},children:e}),n&&(0,S.jsx)(`div`,{style:{fontSize:11,color:`var(--ink-45)`,fontFamily:`var(--font-mono)`},children:n})]})]})}function I(){let[l,u]=(0,x.useState)(!0),[g,N]=(0,x.useState)(60),[I,L]=(0,x.useState)(`1080`);return(0,S.jsxs)(`div`,{style:A,children:[(0,S.jsx)(p,{}),(0,S.jsx)(`h1`,{style:{margin:0,fontSize:`var(--fs-title)`},children:`Design system · Explorer 2.0`}),(0,S.jsx)(P,{title:`Palette (tokens)`,children:(0,S.jsx)(`div`,{style:M,children:E.map(e=>(0,S.jsx)(F,{...e},e.name))})}),(0,S.jsx)(P,{title:`Rarity name colors`,children:(0,S.jsx)(`div`,{style:M,children:D.map(e=>(0,S.jsx)(F,{...e,dark:!0},e.name))})}),(0,S.jsx)(P,{title:`Typography (Inter)`,children:(0,S.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:10},children:O.map(e=>(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`baseline`,gap:16},children:[(0,S.jsx)(`span`,{style:{width:96,fontSize:11,color:`var(--ink-45)`,fontFamily:`var(--font-mono)`},children:e.token}),(0,S.jsxs)(`span`,{style:{fontSize:`var(${e.token})`,fontWeight:e.weight},children:[e.name,` — Decentraland`]})]},e.name))})}),(0,S.jsx)(P,{title:`Radii`,children:(0,S.jsx)(`div`,{style:j,children:k.map(e=>(0,S.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,S.jsx)(`div`,{style:{width:72,height:72,background:`var(--fill-4)`,borderRadius:`var(${e.token})`,border:`1px solid var(--white-10)`}}),(0,S.jsx)(`div`,{style:{fontSize:11,marginTop:6},children:e.name}),(0,S.jsx)(`div`,{style:{fontSize:11,color:`var(--ink-45)`,fontFamily:`var(--font-mono)`},children:e.token})]},e.name))})}),(0,S.jsxs)(P,{title:`Button`,children:[(0,S.jsxs)(`div`,{style:j,children:[(0,S.jsx)(n,{children:`Primary`}),(0,S.jsx)(n,{variant:`secondary`,children:`Secondary`}),(0,S.jsx)(n,{variant:`ghost`,children:`Ghost`}),(0,S.jsx)(n,{disabled:!0,children:`Disabled`})]}),(0,S.jsxs)(`div`,{style:{...j,marginTop:12},children:[(0,S.jsx)(n,{size:`sm`,children:`Small`}),(0,S.jsx)(n,{size:`md`,children:`Medium`}),(0,S.jsx)(n,{size:`lg`,children:`Large`})]})]}),(0,S.jsx)(P,{title:`Dialogs (imperative popup layer — showDialog / showConfirm)`,children:(0,S.jsxs)(`div`,{style:j,children:[(0,S.jsx)(n,{variant:`secondary`,onClick:()=>{d({title:`Block Pablo?`,body:`Blocked users won't be able to message you, join your community events, or see when you're online.`,confirmLabel:`Block`})},children:`Confirm`}),(0,S.jsx)(n,{variant:`secondary`,onClick:()=>{m({title:`Report submitted`,body:`Thanks — our moderators will review this report.`,actions:[{id:`ok`,label:`OK`,variant:`primary`}]})},children:`Alert`}),(0,S.jsx)(n,{variant:`secondary`,onClick:()=>{m({title:`Unsaved changes`,body:`You have unsaved changes to your avatar.`,width:520,actions:[{id:`cancel`,label:`Cancel`,variant:`ghost`},{id:`discard`,label:`Discard`,variant:`secondary`},{id:`save`,label:`Save`,variant:`primary`}]})},children:`Custom actions`})]})}),(0,S.jsx)(P,{title:`Tooltip (hover the chips)`,children:(0,S.jsxs)(`div`,{style:{...j,gap:16},children:[(0,S.jsx)(e,{label:`Friends`,shortcut:`L`,children:(0,S.jsx)(`span`,{style:{padding:`8px 14px`,borderRadius:10,background:`var(--fill-4)`},children:`right`})}),(0,S.jsx)(e,{label:`Settings`,shortcut:`P`,side:`top`,children:(0,S.jsx)(`span`,{style:{padding:`8px 14px`,borderRadius:10,background:`var(--fill-4)`},children:`top`})})]})}),(0,S.jsx)(P,{title:`ControlButton`,children:(0,S.jsxs)(`div`,{style:j,children:[(0,S.jsx)(c,{"aria-label":`ghost square`,children:`✕`}),(0,S.jsx)(c,{variant:`solid`,"aria-label":`solid square`,children:`✕`}),(0,S.jsx)(c,{shape:`circle`,"aria-label":`circle`,children:`+`}),(0,S.jsx)(c,{shape:`pill`,children:`+ Pill`}),(0,S.jsx)(c,{active:!0,"aria-label":`active`,children:`✓`}),(0,S.jsx)(c,{size:`sm`,"aria-label":`small`,children:`✕`})]})}),(0,S.jsx)(P,{title:`Form controls`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,maxWidth:320},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,S.jsx)(`span`,{style:{fontSize:14},children:`Fullscreen`}),(0,S.jsx)(i,{checked:l,onChange:u,"aria-label":`Fullscreen`})]}),(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,S.jsx)(`span`,{style:{fontSize:14,width:60},children:`Volume`}),(0,S.jsx)(r,{value:g,onChange:N,"aria-label":`Volume`}),(0,S.jsx)(`span`,{style:{fontSize:13,color:`var(--ink-45)`,width:32},children:g})]}),(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,S.jsx)(`span`,{style:{fontSize:14},children:`Resolution`}),(0,S.jsx)(t,{value:I,onChange:L,"aria-label":`Resolution`,options:[{value:`720`,label:`1280 × 720`},{value:`1080`,label:`1920 × 1080`},{value:`1440`,label:`2560 × 1440`}]})]})]})}),(0,S.jsx)(P,{title:`Emote Wheel Slot (Figma 10386-4701)`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,gap:24,alignItems:`flex-start`,flexWrap:`wrap`,padding:16,background:`#3a3550`,borderRadius:12},children:[(0,S.jsx)(b,{thumbnail:w,rarity:`legendary`,width:220}),(0,S.jsx)(`div`,{style:{display:`flex`,gap:12,flexWrap:`wrap`},children:C.map(e=>(0,S.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,S.jsx)(b,{thumbnail:w,rarity:e,width:96}),(0,S.jsx)(`div`,{style:{fontSize:11,color:`var(--ink-7)`,marginTop:4,textTransform:`capitalize`},children:e})]},e))})]})}),(0,S.jsx)(P,{title:`DPI · HUD scale (Unity CanvasScaler)`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:14,maxWidth:560},children:[(0,S.jsxs)(`p`,{style:{fontSize:13,color:`var(--ink-7)`,margin:0,lineHeight:1.5},children:[`The HUD scales with viewport height against a 1080 reference, clamped 0.6–1.3 — the same curve as Unity's “Scale With Screen Size”. `,(0,S.jsx)(`code`,{children:`innerHeight`}),` is logical px (device px ÷ DPR), so a Retina panel scales identically to Unity on the same display.`]}),(0,S.jsx)(`div`,{style:{display:`flex`,gap:20,flexWrap:`wrap`},children:[`720`,`900`,`1080`,`1440`].map(e=>{let t=Math.min(1.3,Math.max(.6,Number(e)/1080)),n=e===I;return(0,S.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,S.jsxs)(`div`,{style:{fontSize:12,color:n?`var(--text)`:`var(--ink-45)`,marginBottom:6,fontFamily:`var(--font-mono)`},children:[e,`p → ×`,t.toFixed(3)]}),(0,S.jsx)(`div`,{style:{width:132,height:84,display:`flex`,alignItems:`flex-start`},children:(0,S.jsx)(`div`,{style:{width:100,padding:`8px 10px`,borderRadius:10,background:`var(--fill-4)`,border:n?`1px solid var(--brand)`:`1px solid var(--white-10)`,transform:`scale(${t})`,transformOrigin:`top left`,fontSize:13,fontWeight:600},children:`HUD card`})})]},e)})}),(0,S.jsxs)(`div`,{style:{fontSize:12,color:`var(--ink-45)`,fontFamily:`var(--font-mono)`},children:[`Live viewport: `,window.innerHeight,`px → ×`,Math.min(1.3,Math.max(.6,window.innerHeight/1080)).toFixed(3)]})]})}),(0,S.jsx)(P,{title:`IconButton (sidebar rail)`,children:(0,S.jsx)(s,{style:{width:60,padding:8,display:`flex`,flexDirection:`column`,gap:4},children:T.map((e,t)=>(0,S.jsx)(h,{icon:e.icon,label:e.label,active:t===8,badge:t===1?3:void 0},e.icon))})}),(0,S.jsx)(P,{title:`Panel`,children:(0,S.jsxs)(s,{style:{padding:18,maxWidth:360},children:[(0,S.jsx)(`div`,{style:{fontWeight:700,marginBottom:6},children:`Genesis Plaza`}),(0,S.jsx)(`div`,{style:{color:`var(--ink-7)`,fontSize:`var(--fs-sm)`},children:`A surface for HUD widgets and menus.`})]})}),(0,S.jsx)(P,{title:`Brand`,children:(0,S.jsxs)(`div`,{style:{...j,gap:16},children:[(0,S.jsx)(f,{size:24}),(0,S.jsx)(f,{size:32}),(0,S.jsx)(f,{size:48})]})}),(0,S.jsx)(P,{title:`Avatar`,children:(0,S.jsxs)(`div`,{style:{...j,gap:16},children:[(0,S.jsx)(o,{name:`Mojito`,color:`#73d3d3`,size:28}),(0,S.jsx)(o,{name:`Pravus`,color:`#ff4bed`,size:40,status:`online`}),(0,S.jsx)(o,{name:`Mojito`,size:40,status:`online`,src:`https://profile-images.decentraland.org/entities/bafkreid5btlh76opew65hxu6dtkdo6ybqhymdof6vrrmjy2p5a74oy4huq/face.png`}),(0,S.jsx)(o,{name:`Away`,color:`#a0abff`,size:40,status:`away`})]})}),(0,S.jsx)(P,{title:`WearableCard (backpack)`,children:(0,S.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, 84px)`,gap:10},children:[`common`,`uncommon`,`rare`,`epic`,`legendary`,`mythic`,`unique`,`exotic`,`base`].map((e,t)=>(0,S.jsx)(`div`,{style:{width:84},children:(0,S.jsx)(a,{rarity:e,equipped:t===4,isNew:t===1,count:t===7?2:void 0})},e))})}),(0,S.jsx)(P,{title:`Chat components`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,gap:24,flexWrap:`wrap`,alignItems:`flex-start`},children:[(0,S.jsxs)(`div`,{style:{width:300,display:`flex`,flexDirection:`column`,gap:8,padding:12,background:`rgba(19,19,19,0.6)`,borderRadius:14},children:[(0,S.jsx)(y,{ts:Date.now()}),(0,S.jsx)(v,{line:{id:1,sender:`0x5854cce95d5e25817b41f4c41f06b695a83bc495`,message:`gm everyone 👋 welcome to the plaza`,channel:`Nearby`,ts:Date.now()},name:`Mojito`}),(0,S.jsx)(v,{line:{id:2,sender:`system`,message:`Type /help for available commands.`,channel:`System`,ts:Date.now()},name:`DCL System`})]}),(0,S.jsxs)(`div`,{style:{width:300,display:`flex`,flexDirection:`column`,gap:2,padding:8,background:`rgba(12,11,14,0.97)`,borderRadius:14},children:[(0,S.jsx)(_,{member:{address:`0x5854cce95d5e25817b41f4c41f06b695a83bc495`,name:`Mojito`,picture:`https://profile-images.decentraland.org/entities/bafkreid5btlh76opew65hxu6dtkdo6ybqhymdof6vrrmjy2p5a74oy4huq/face.png`}}),(0,S.jsx)(_,{member:{address:`0x6723dcb07f3ca735223cd1c0acfa62dd994a1bb4`,name:`Sharknado#a1b2`}}),(0,S.jsx)(_,{member:{address:`0x1e105bb213754519903788022b962fe2b9c4b263`,name:`Pravus`}})]})]})})]})}export{I as Showcase};
1
+ import{B as e,F as t,H as n,I as r,L as i,M as a,N as o,P as s,R as c,U as l,W as u,_ as d,j as f,p,v as m,z as h}from"./design-BBe2V9nf.js";import{j as g}from"./menus-DCRhTuhL.js";import{i as _,n as v,r as y,t as b}from"./index-BJ85eCr4.js";var x=u(),S=l(),C=[`base`,`common`,`uncommon`,`rare`,`epic`,`legendary`,`mythic`,`unique`,`exotic`],w=g(`urn:decentraland:off-chain:base-emotes:raisehand`),T=[{icon:`profile`,label:`Profile`},{icon:`notifications`,label:`Notifications`},{icon:`map`,label:`Map`},{icon:`communities`,label:`Communities`},{icon:`backpack`,label:`Backpack`},{icon:`settings`,label:`Settings`},{icon:`mic`,label:`Voice chat`},{icon:`friends`,label:`Friends`},{icon:`chat`,label:`Chat`},{icon:`emotes`,label:`Emotes`},{icon:`help`,label:`Help`}],E=[{name:`Ruby`,hex:`#ff2d55`,token:`--brand`},{name:`Snow`,hex:`#fcfcfc`,token:`--text`,dark:!0},{name:`Shadow`,hex:`#161518`,token:`--panel`},{name:`Yellow`,hex:`#ffc95b`,token:`--gold`,dark:!0},{name:`Pearl`,hex:`#ecebed`,token:`--pearl`,dark:!0},{name:`Green`,hex:`#30cd00`,token:`--green`,dark:!0},{name:`Lavender`,hex:`#c640cd`,token:`--lavender`},{name:`Purple`,hex:`#982de2`,token:`--purple`},{name:`Red`,hex:`#ff0000`,token:`--red`}],D=[{name:`Common`,hex:`#73d3d3`},{name:`Common Light`,hex:`#acf8f8`},{name:`Uncommon`,hex:`#ff8362`},{name:`Epic Light`,hex:`#81e1ff`},{name:`Legendary`,hex:`#a14bf3`},{name:`Legendary Light`,hex:`#e8b9ff`},{name:`Mythic`,hex:`#ff4bed`},{name:`Unique`,hex:`#fea217`},{name:`Exotic`,hex:`#caff73`},{name:`Orange`,hex:`#ff7439`},{name:`Melon`,hex:`#ffa25a`},{name:`Periwinkle`,hex:`#a0abff`}],O=[{name:`Display`,token:`--fs-display`,weight:800},{name:`Title`,token:`--fs-title`,weight:700},{name:`Large`,token:`--fs-lg`,weight:600},{name:`Body (md)`,token:`--fs-md`,weight:500},{name:`Small`,token:`--fs-sm`,weight:400},{name:`XSmall`,token:`--fs-xs`,weight:400}],k=[{name:`control`,token:`--r-control`},{name:`card`,token:`--r-card`},{name:`panel`,token:`--r-panel`},{name:`pill`,token:`--r-pill`}],A={height:`100%`,overflowY:`auto`,padding:40,display:`flex`,flexDirection:`column`,gap:36,background:`#0e0d10`,color:`var(--text)`,fontFamily:`var(--font-family)`},j={display:`flex`,gap:12,alignItems:`center`,flexWrap:`wrap`},M={display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(132px, 1fr))`,gap:12},N={fontSize:`var(--fs-xs)`,textTransform:`uppercase`,letterSpacing:`.08em`,color:`var(--ink-45)`,margin:`0 0 14px`};function P({title:e,children:t}){return(0,S.jsxs)(`section`,{children:[(0,S.jsx)(`p`,{style:N,children:e}),t]})}function F({name:e,hex:t,token:n,dark:r}){return(0,S.jsxs)(`div`,{style:{borderRadius:`var(--r-card)`,overflow:`hidden`,border:`1px solid var(--white-10)`},children:[(0,S.jsx)(`div`,{style:{background:t,height:64,display:`flex`,alignItems:`flex-end`,padding:8,color:r?`#161518`:`#fcfcfc`,fontSize:11,fontWeight:700},children:t.toUpperCase()}),(0,S.jsxs)(`div`,{style:{padding:`8px 10px`,background:`var(--fill-2)`},children:[(0,S.jsx)(`div`,{style:{fontSize:13,fontWeight:600},children:e}),n&&(0,S.jsx)(`div`,{style:{fontSize:11,color:`var(--ink-45)`,fontFamily:`var(--font-mono)`},children:n})]})]})}function I(){let[l,u]=(0,x.useState)(!0),[g,N]=(0,x.useState)(60),[I,L]=(0,x.useState)(`1080`);return(0,S.jsxs)(`div`,{style:A,children:[(0,S.jsx)(p,{}),(0,S.jsx)(`h1`,{style:{margin:0,fontSize:`var(--fs-title)`},children:`Design system · Explorer 2.0`}),(0,S.jsx)(P,{title:`Palette (tokens)`,children:(0,S.jsx)(`div`,{style:M,children:E.map(e=>(0,S.jsx)(F,{...e},e.name))})}),(0,S.jsx)(P,{title:`Rarity name colors`,children:(0,S.jsx)(`div`,{style:M,children:D.map(e=>(0,S.jsx)(F,{...e,dark:!0},e.name))})}),(0,S.jsx)(P,{title:`Typography (Inter)`,children:(0,S.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:10},children:O.map(e=>(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`baseline`,gap:16},children:[(0,S.jsx)(`span`,{style:{width:96,fontSize:11,color:`var(--ink-45)`,fontFamily:`var(--font-mono)`},children:e.token}),(0,S.jsxs)(`span`,{style:{fontSize:`var(${e.token})`,fontWeight:e.weight},children:[e.name,` — Decentraland`]})]},e.name))})}),(0,S.jsx)(P,{title:`Radii`,children:(0,S.jsx)(`div`,{style:j,children:k.map(e=>(0,S.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,S.jsx)(`div`,{style:{width:72,height:72,background:`var(--fill-4)`,borderRadius:`var(${e.token})`,border:`1px solid var(--white-10)`}}),(0,S.jsx)(`div`,{style:{fontSize:11,marginTop:6},children:e.name}),(0,S.jsx)(`div`,{style:{fontSize:11,color:`var(--ink-45)`,fontFamily:`var(--font-mono)`},children:e.token})]},e.name))})}),(0,S.jsxs)(P,{title:`Button`,children:[(0,S.jsxs)(`div`,{style:j,children:[(0,S.jsx)(n,{children:`Primary`}),(0,S.jsx)(n,{variant:`secondary`,children:`Secondary`}),(0,S.jsx)(n,{variant:`ghost`,children:`Ghost`}),(0,S.jsx)(n,{disabled:!0,children:`Disabled`})]}),(0,S.jsxs)(`div`,{style:{...j,marginTop:12},children:[(0,S.jsx)(n,{size:`sm`,children:`Small`}),(0,S.jsx)(n,{size:`md`,children:`Medium`}),(0,S.jsx)(n,{size:`lg`,children:`Large`})]})]}),(0,S.jsx)(P,{title:`Dialogs (imperative popup layer — showDialog / showConfirm)`,children:(0,S.jsxs)(`div`,{style:j,children:[(0,S.jsx)(n,{variant:`secondary`,onClick:()=>{d({title:`Block Pablo?`,body:`Blocked users won't be able to message you, join your community events, or see when you're online.`,confirmLabel:`Block`})},children:`Confirm`}),(0,S.jsx)(n,{variant:`secondary`,onClick:()=>{m({title:`Report submitted`,body:`Thanks — our moderators will review this report.`,actions:[{id:`ok`,label:`OK`,variant:`primary`}]})},children:`Alert`}),(0,S.jsx)(n,{variant:`secondary`,onClick:()=>{m({title:`Unsaved changes`,body:`You have unsaved changes to your avatar.`,width:520,actions:[{id:`cancel`,label:`Cancel`,variant:`ghost`},{id:`discard`,label:`Discard`,variant:`secondary`},{id:`save`,label:`Save`,variant:`primary`}]})},children:`Custom actions`})]})}),(0,S.jsx)(P,{title:`Tooltip (hover the chips)`,children:(0,S.jsxs)(`div`,{style:{...j,gap:16},children:[(0,S.jsx)(e,{label:`Friends`,shortcut:`L`,children:(0,S.jsx)(`span`,{style:{padding:`8px 14px`,borderRadius:10,background:`var(--fill-4)`},children:`right`})}),(0,S.jsx)(e,{label:`Settings`,shortcut:`P`,side:`top`,children:(0,S.jsx)(`span`,{style:{padding:`8px 14px`,borderRadius:10,background:`var(--fill-4)`},children:`top`})})]})}),(0,S.jsx)(P,{title:`ControlButton`,children:(0,S.jsxs)(`div`,{style:j,children:[(0,S.jsx)(c,{"aria-label":`ghost square`,children:`✕`}),(0,S.jsx)(c,{variant:`solid`,"aria-label":`solid square`,children:`✕`}),(0,S.jsx)(c,{shape:`circle`,"aria-label":`circle`,children:`+`}),(0,S.jsx)(c,{shape:`pill`,children:`+ Pill`}),(0,S.jsx)(c,{active:!0,"aria-label":`active`,children:`✓`}),(0,S.jsx)(c,{size:`sm`,"aria-label":`small`,children:`✕`})]})}),(0,S.jsx)(P,{title:`Form controls`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,maxWidth:320},children:[(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,S.jsx)(`span`,{style:{fontSize:14},children:`Fullscreen`}),(0,S.jsx)(i,{checked:l,onChange:u,"aria-label":`Fullscreen`})]}),(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,S.jsx)(`span`,{style:{fontSize:14,width:60},children:`Volume`}),(0,S.jsx)(r,{value:g,onChange:N,"aria-label":`Volume`}),(0,S.jsx)(`span`,{style:{fontSize:13,color:`var(--ink-45)`,width:32},children:g})]}),(0,S.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,S.jsx)(`span`,{style:{fontSize:14},children:`Resolution`}),(0,S.jsx)(t,{value:I,onChange:L,"aria-label":`Resolution`,options:[{value:`720`,label:`1280 × 720`},{value:`1080`,label:`1920 × 1080`},{value:`1440`,label:`2560 × 1440`}]})]})]})}),(0,S.jsx)(P,{title:`Emote Wheel Slot (Figma 10386-4701)`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,gap:24,alignItems:`flex-start`,flexWrap:`wrap`,padding:16,background:`#3a3550`,borderRadius:12},children:[(0,S.jsx)(b,{thumbnail:w,rarity:`legendary`,width:220}),(0,S.jsx)(`div`,{style:{display:`flex`,gap:12,flexWrap:`wrap`},children:C.map(e=>(0,S.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,S.jsx)(b,{thumbnail:w,rarity:e,width:96}),(0,S.jsx)(`div`,{style:{fontSize:11,color:`var(--ink-7)`,marginTop:4,textTransform:`capitalize`},children:e})]},e))})]})}),(0,S.jsx)(P,{title:`DPI · HUD scale (Unity CanvasScaler)`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:14,maxWidth:560},children:[(0,S.jsxs)(`p`,{style:{fontSize:13,color:`var(--ink-7)`,margin:0,lineHeight:1.5},children:[`The HUD scales with viewport height against a 1080 reference, clamped 0.6–1.3 — the same curve as Unity's “Scale With Screen Size”. `,(0,S.jsx)(`code`,{children:`innerHeight`}),` is logical px (device px ÷ DPR), so a Retina panel scales identically to Unity on the same display.`]}),(0,S.jsx)(`div`,{style:{display:`flex`,gap:20,flexWrap:`wrap`},children:[`720`,`900`,`1080`,`1440`].map(e=>{let t=Math.min(1.3,Math.max(.6,Number(e)/1080)),n=e===I;return(0,S.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,S.jsxs)(`div`,{style:{fontSize:12,color:n?`var(--text)`:`var(--ink-45)`,marginBottom:6,fontFamily:`var(--font-mono)`},children:[e,`p → ×`,t.toFixed(3)]}),(0,S.jsx)(`div`,{style:{width:132,height:84,display:`flex`,alignItems:`flex-start`},children:(0,S.jsx)(`div`,{style:{width:100,padding:`8px 10px`,borderRadius:10,background:`var(--fill-4)`,border:n?`1px solid var(--brand)`:`1px solid var(--white-10)`,transform:`scale(${t})`,transformOrigin:`top left`,fontSize:13,fontWeight:600},children:`HUD card`})})]},e)})}),(0,S.jsxs)(`div`,{style:{fontSize:12,color:`var(--ink-45)`,fontFamily:`var(--font-mono)`},children:[`Live viewport: `,window.innerHeight,`px → ×`,Math.min(1.3,Math.max(.6,window.innerHeight/1080)).toFixed(3)]})]})}),(0,S.jsx)(P,{title:`IconButton (sidebar rail)`,children:(0,S.jsx)(s,{style:{width:60,padding:8,display:`flex`,flexDirection:`column`,gap:4},children:T.map((e,t)=>(0,S.jsx)(h,{icon:e.icon,label:e.label,active:t===8,badge:t===1?3:void 0},e.icon))})}),(0,S.jsx)(P,{title:`Panel`,children:(0,S.jsxs)(s,{style:{padding:18,maxWidth:360},children:[(0,S.jsx)(`div`,{style:{fontWeight:700,marginBottom:6},children:`Genesis Plaza`}),(0,S.jsx)(`div`,{style:{color:`var(--ink-7)`,fontSize:`var(--fs-sm)`},children:`A surface for HUD widgets and menus.`})]})}),(0,S.jsx)(P,{title:`Brand`,children:(0,S.jsxs)(`div`,{style:{...j,gap:16},children:[(0,S.jsx)(f,{size:24}),(0,S.jsx)(f,{size:32}),(0,S.jsx)(f,{size:48})]})}),(0,S.jsx)(P,{title:`Avatar`,children:(0,S.jsxs)(`div`,{style:{...j,gap:16},children:[(0,S.jsx)(o,{name:`Mojito`,color:`#73d3d3`,size:28}),(0,S.jsx)(o,{name:`Pravus`,color:`#ff4bed`,size:40,status:`online`}),(0,S.jsx)(o,{name:`Mojito`,size:40,status:`online`,src:`https://profile-images.decentraland.org/entities/bafkreid5btlh76opew65hxu6dtkdo6ybqhymdof6vrrmjy2p5a74oy4huq/face.png`}),(0,S.jsx)(o,{name:`Away`,color:`#a0abff`,size:40,status:`away`})]})}),(0,S.jsx)(P,{title:`WearableCard (backpack)`,children:(0,S.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, 84px)`,gap:10},children:[`common`,`uncommon`,`rare`,`epic`,`legendary`,`mythic`,`unique`,`exotic`,`base`].map((e,t)=>(0,S.jsx)(`div`,{style:{width:84},children:(0,S.jsx)(a,{rarity:e,equipped:t===4,isNew:t===1,count:t===7?2:void 0})},e))})}),(0,S.jsx)(P,{title:`Chat components`,children:(0,S.jsxs)(`div`,{style:{display:`flex`,gap:24,flexWrap:`wrap`,alignItems:`flex-start`},children:[(0,S.jsxs)(`div`,{style:{width:300,display:`flex`,flexDirection:`column`,gap:8,padding:12,background:`rgba(19,19,19,0.6)`,borderRadius:14},children:[(0,S.jsx)(y,{ts:Date.now()}),(0,S.jsx)(v,{line:{id:1,sender:`0x5854cce95d5e25817b41f4c41f06b695a83bc495`,message:`gm everyone 👋 welcome to the plaza`,channel:`Nearby`,ts:Date.now()},name:`Mojito`}),(0,S.jsx)(v,{line:{id:2,sender:`system`,message:`Type /help for available commands.`,channel:`System`,ts:Date.now()},name:`DCL System`})]}),(0,S.jsxs)(`div`,{style:{width:300,display:`flex`,flexDirection:`column`,gap:2,padding:8,background:`rgba(12,11,14,0.97)`,borderRadius:14},children:[(0,S.jsx)(_,{member:{address:`0x5854cce95d5e25817b41f4c41f06b695a83bc495`,name:`Mojito`,picture:`https://profile-images.decentraland.org/entities/bafkreid5btlh76opew65hxu6dtkdo6ybqhymdof6vrrmjy2p5a74oy4huq/face.png`}}),(0,S.jsx)(_,{member:{address:`0x6723dcb07f3ca735223cd1c0acfa62dd994a1bb4`,name:`Sharknado#a1b2`}}),(0,S.jsx)(_,{member:{address:`0x1e105bb213754519903788022b962fe2b9c4b263`,name:`Pravus`}})]})]})})]})}export{I as Showcase};
@@ -1 +1 @@
1
- import{t as e}from"./rolldown-runtime-D9-fqq9M.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),i=e(((e,t)=>{t.exports=r()})),a={btn:`_btn_2tyne_1`,sm:`_sm_2tyne_32`,md:`_md_2tyne_36`,lg:`_lg_2tyne_40`,primary:`_primary_2tyne_46`,secondary:`_secondary_2tyne_53`,ghost:`_ghost_2tyne_60`},o=i();function s(e){let{variant:t=`primary`,size:n=`md`,className:r=``,...i}=e,s=`${a.btn} ${a[t]} ${a[n]} ${r}`.trim();if(i.href!=null)return(0,o.jsx)(`a`,{className:s,...i});let{type:c=`button`,...l}=i;return(0,o.jsx)(`button`,{type:c,className:s,...l})}var c={backpack:`data:image/png;base64,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`,chat:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33099436282.commit-aab5eda/assets/chat-SDMOzrC1.png`,communities:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAEwElEQVR4nO1aT2sbRxRfGfcQetA4NJBAYMeuIZeCNz23sP4Eq0DORpC78TGBwB57k+wvYJmeWijY+gKy3OaQQ8BrJ7ck1uqUgw27UEIPDXL5UQ0ML7Ozs3+kVO78YFjt7sybN2/f3xk5joWFhYWFhYWFhYWFhYWFRQ1gjDV2dnYeHh4ePh2NRn9MJpNrNPweDAbddru9zjlfdv4PggjD0E+SJBZC0DX0dW4qOOfLsjaYNoy5cdrCSwrjxgplpBAGzAYmIS/U87xb8B+q/ngGk3MWHWEY+nRxvV7viW5xeLe7u/voxvkUzvkyXRQWajoegqNatdBa0m6316uoPfrSiIRw7SwqBoNBV14MBFTV5JC7OIuKEXGOcJpVzQ40nRlipvY4mUyu5fulpaXGl6RjgqVZEV5UFE52GGMN3/fvMsa+TtP0YxRFl3Ecf1L1HY/HL1zX/UFW/6y+WaBmBpp18FYLwow6BOFRlUnCAVbNI2ikgqMuUiNl8VYZp6env8hMYSJ5war0GiGySh6BvtQx00iFPire5AhXe5YbTkMfCPu+z+R3EIJgiH49VR4BZk3n7Xa7LfrFqdBFH/BGzUuuoVSaVQqMsUYWM6qFU4GpUncsIi91p1mqyuTkkJzFG55n8VYKvu8zEwmL2oNmkiq1F18U6i9/VTCf5QtU+Uer1bpXhTcVcp0N5/wbXMfj8RtdvyiKXuO6sbHxPVyOeJ6m6fXm5ubm8fHxsRxx8Ht/f/9t3vzTuV+AhoK3u7ien5//rhufJEmCa7PZbNaWh7iu+13O+/u4xnH8nr5D6MOCdCEzTxiq8Jmm6Z+4NpvN2zoaKysrK05dYFMfAjXWhS9hFlBjHT2VT1E1sV+i8zXCh+iil2yytfgQQDg4RBMqFNkB5tUZwkfIYTKroc/29vbDvBxChNeqvBUCk6SMKyaBQ0S0EM91GoQvQyvfIk3sxKtoy6GV8iacc552lwLnfJlmnnIEUFWyGFNFECrBqBYm50IqTatdGL7vM0hed3xAvyLU/erqSnvcgPdgGGNFyxuDBtoybxin4w0fshb/wRhr0GxRqKVI3akGYIGdTqelE1yeb8A7CFenXfBFVGMxt8wb1ZpKdQ2XbDPP44sF6I4asLgyXwm0VVmraTSivJU60mDEiZoSUGkGTKDM1iEFaKjMybSClv1ZYaF0pYLJdKBqh73uA6asA68imieEYlzscYOCSQXK6KxO20CTagp8hel4XSGqLYR6Bcp0uomDVoeZ5BWcZecT2bKRlpxOPXMRNaTaUUSYZUEdbZH9Drkcoe8+88yDf6PBznA43M2rcKfE7wRB8JP8bG1t7auZ7mVOTefi4uJv+Vm/33+WpumlKc8oHFdXV3/UdvY871aVk/p5HiRVzYJVZvaZ04ui6C+U257n3cHudR5TYRj25H2Ofr//mzMnHB0d/QxtFvdnZ2e/7u3tPTcc+x57NfS5MgrEcfwpjuMPJoS3trZeyQIJguCx67ovnTmAc/6tfJ8kyYeDg4N3zpdEaLi/MY/W6XSM/1kwMzDGGiYF2azbf+pfRrziX6bqEEaZg3QVaj00DoLgnud5D5w54uTkJBoOh+k857SwsLCwsLCwsLCwsLCwcBYK/wD9DTVehZscAwAAAABJRU5ErkJggg==`,emotes:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33099436282.commit-aab5eda/assets/emotes-0Hqyv0Zx.png`,friends:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33099436282.commit-aab5eda/assets/friends-CryoU8JM.png`,help:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33099436282.commit-aab5eda/assets/help-C7LoIWCE.png`,map:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33099436282.commit-aab5eda/assets/map-fz11YkVT.png`,mic:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33099436282.commit-aab5eda/assets/mic-HsVrBud0.png`,notifications:`data:image/png;base64,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`,settings:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33099436282.commit-aab5eda/assets/settings-meSngt2H.png`},l={gallery:`M12 15.2c1.77 0 3.2-1.43 3.2-3.2s-1.43-3.2-3.2-3.2-3.2 1.43-3.2 3.2 1.43 3.2 3.2 3.2zM9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z`,profile:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`,places:`M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z`};function u({name:e,size:t=22}){let n=c[e];if(n!=null){let e=`url(${n})`;return(0,o.jsx)(`span`,{"aria-hidden":`true`,style:{display:`inline-block`,width:t,height:t,backgroundColor:`currentColor`,maskImage:e,WebkitMaskImage:e,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`,maskSize:`contain`,WebkitMaskSize:`contain`}})}let r=l[e];if(r==null)throw Error(`Icon "${e}" has neither sidebar-icons png art nor an SVG path`);return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:t,height:t,"aria-hidden":`true`,children:(0,o.jsx)(`path`,{d:r,fill:`currentColor`})})}var d={wrap:`_wrap_8p0on_1`,tip:`_tip_8p0on_6`,shortcut:`_shortcut_8p0on_29`,right:`_right_8p0on_34`,left:`_left_8p0on_40`,top:`_top_8p0on_46`,bottom:`_bottom_8p0on_52`};function f({label:e,shortcut:t,side:n=`right`,className:r=``,children:i}){return(0,o.jsxs)(`span`,{className:`${d.wrap} ${r}`.trim(),children:[i,(0,o.jsxs)(`span`,{className:`${d.tip} ${d[n]}`,role:`tooltip`,children:[e,t&&(0,o.jsxs)(`span`,{className:d.shortcut,children:[`[`,t,`]`]})]})]})}var p={btn:`_btn_gqvpk_3`,active:`_active_gqvpk_43`,badge:`_badge_gqvpk_52`,badgeLavender:`_badgeLavender_gqvpk_73`};function m({icon:e,active:t=!1,badge:n,badgeTone:r=`ruby`,label:i,shortcut:a,className:s=``,type:c=`button`,...l}){return(0,o.jsx)(f,{label:i,shortcut:a,side:`right`,children:(0,o.jsxs)(`button`,{type:c,className:`${p.btn} ${t?p.active:``} ${s}`.trim(),"aria-label":i,"aria-pressed":t,...l,children:[(0,o.jsx)(u,{name:e,size:24}),n!=null&&n>0&&(0,o.jsx)(`span`,{className:`${p.badge} ${r===`lavender`?p.badgeLavender:``}`.trim(),children:n>99?`99+`:n})]})})}var h={btn:`_btn_1l51r_1`,sm:`_sm_1l51r_23`,md:`_md_1l51r_27`,pill:`_pill_1l51r_32`,square:`_square_1l51r_39`,circle:`_circle_1l51r_42`,ghost:`_ghost_1l51r_50`,active:`_active_1l51r_54`,solid:`_solid_1l51r_58`};function g({variant:e=`ghost`,shape:t=`square`,size:n=`md`,active:r=!1,className:i=``,type:a=`button`,...s}){return(0,o.jsx)(`button`,{type:a,className:`${h.btn} ${h[e]} ${h[t]} ${h[n]} ${r?h.active:``} ${i}`.trim(),"aria-pressed":r,...s})}var _={track:`_track_5m120_1`,on:`_on_5m120_13`,knob:`_knob_5m120_21`};function v({checked:e,onChange:t,disabled:n=!1,"aria-label":r}){return(0,o.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":e,"aria-label":r,disabled:n,className:`${_.track} ${e?_.on:``}`.trim(),onClick:()=>t(!e),children:(0,o.jsx)(`span`,{className:_.knob})})}var y={slider:`_slider_19k4v_1`,row:`_row_19k4v_26`,arrow:`_arrow_19k4v_32`};function b({value:e,min:t=0,max:n=100,step:r=1,onChange:i,disabled:a=!1,arrows:s=!1,"aria-label":c}){let l=n>t?(e-t)/(n-t)*100:0,u=e=>Math.min(n,Math.max(t,e)),d=(0,o.jsx)(`input`,{type:`range`,className:y.slider,value:e,min:t,max:n,step:r,disabled:a,"aria-label":c,style:{"--pct":`${l}%`},onChange:e=>i(Number(e.target.value))});return s?(0,o.jsxs)(`div`,{className:y.row,children:[(0,o.jsx)(`button`,{type:`button`,className:y.arrow,disabled:a||e<=t,"aria-label":`decrease`,onClick:()=>i(u(e-r)),children:`‹`}),d,(0,o.jsx)(`button`,{type:`button`,className:y.arrow,disabled:a||e>=n,"aria-label":`increase`,onClick:()=>i(u(e+r)),children:`›`})]}):d}var x=n(),S={root:`_root_tzz0s_1`,field:`_field_tzz0s_7`,light:`_light_tzz0s_32`,chev:`_chev_tzz0s_41`,value:`_value_tzz0s_44`,chevOpen:`_chevOpen_tzz0s_56`,list:`_list_tzz0s_60`,option:`_option_tzz0s_77`,optionActive:`_optionActive_tzz0s_94`};function C({value:e,options:t,onChange:n,disabled:r=!1,variant:i=`dark`,"aria-label":a}){let[s,c]=(0,x.useState)(!1),l=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(!s)return;let e=e=>{l.current&&!l.current.contains(e.target)&&c(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[s]);let u=t.find(t=>t.value===e);return(0,o.jsxs)(`div`,{className:S.root,ref:l,children:[(0,o.jsxs)(`button`,{type:`button`,className:`${S.field} ${i===`light`?S.light:``}`.trim(),disabled:r,"aria-label":a,"aria-haspopup":`listbox`,"aria-expanded":s,onClick:()=>c(e=>!e),children:[(0,o.jsx)(`span`,{className:S.value,children:u?.label??e}),(0,o.jsx)(`svg`,{className:`${S.chev} ${s?S.chevOpen:``}`.trim(),viewBox:`0 0 12 12`,"aria-hidden":`true`,children:(0,o.jsx)(`path`,{d:`M2.5 4.5L6 8l3.5-3.5`,stroke:`currentColor`,strokeWidth:`1.6`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),s&&(0,o.jsx)(`ul`,{className:S.list,role:`listbox`,children:t.map(t=>(0,o.jsx)(`li`,{children:(0,o.jsx)(`button`,{type:`button`,role:`option`,"aria-selected":t.value===e,className:`${S.option} ${t.value===e?S.optionActive:``}`.trim(),onClick:()=>{n(t.value),c(!1)},children:t.label})},t.value))})]})}var w={panel:`_panel_8y1li_1`,blur:`_blur_8y1li_9`};function T({blur:e=!1,className:t=``,...n}){return(0,o.jsx)(`div`,{className:`${w.panel} ${e?w.blur:``} ${t}`.trim(),...n})}var E={root:`_root_1m8hu_1`,img:`_img_1m8hu_14`,dot:`_dot_1m8hu_22`,online:`_online_1m8hu_30`,away:`_away_1m8hu_33`,offline:`_offline_1m8hu_36`};function D(e){let t=e.replace(/^[@#]/,``).match(/[a-z0-9]/i);return(t?t[0]:e[0]||`?`).toUpperCase()}function O({src:e,name:t,color:n=`var(--fill-4)`,size:r=32,status:i,className:a=``}){let[s,c]=(0,x.useState)(!1),l=e&&!s,u=Math.max(6,Math.round(r*.18));return(0,o.jsxs)(`span`,{className:`${E.root} ${a}`.trim(),style:{width:r,height:r,background:n,fontSize:Math.round(r*.42)},children:[l?(0,o.jsx)(`img`,{className:E.img,src:e,alt:t,onError:()=>c(!0)}):D(t),i&&(0,o.jsx)(`span`,{className:`${E.dot} ${E[i]}`,style:{width:u,height:u}})]})}var k={card:`_card_1oxq1_5`,equipped:`_equipped_1oxq1_36`,selected:`_selected_1oxq1_43`,incompatible:`_incompatible_1oxq1_49`,flap:`_flap_1oxq1_55`,equippedDot:`_equippedDot_1oxq1_71`,thumb:`_thumb_1oxq1_85`,placeholder:`_placeholder_1oxq1_90`,new:`_new_1oxq1_98`,count:`_count_1oxq1_110`,action:`_action_1oxq1_123`,equip:`_equip_1oxq1_36`,unequip:`_unequip_1oxq1_153`,base:`_base_1oxq1_159`,common:`_common_1oxq1_163`,uncommon:`_uncommon_1oxq1_167`,rare:`_rare_1oxq1_171`,epic:`_epic_1oxq1_175`,legendary:`_legendary_1oxq1_179`,mythic:`_mythic_1oxq1_183`,unique:`_unique_1oxq1_187`,exotic:`_exotic_1oxq1_191`};function A({thumbnail:e,name:t,rarity:n=`base`,equipped:r=!1,selected:i=!1,isNew:a=!1,count:s,incompatible:c=!1,categoryIcon:l,onClick:u,onDoubleClick:d,onEquip:f}){let[p,m]=(0,x.useState)(!1);return(0,o.jsxs)(`button`,{type:`button`,className:`${k.card} ${k[n]} ${r?k.equipped:``} ${i?k.selected:``} ${c?k.incompatible:``}`.trim(),title:t,"aria-label":t,onClick:u,onDoubleClick:d,children:[l!=null&&(0,o.jsx)(`span`,{className:k.flap,children:l}),e&&!p?(0,o.jsx)(`img`,{className:k.thumb,src:e,alt:``,onError:()=>m(!0)}):(0,o.jsx)(`span`,{className:k.placeholder}),r&&(0,o.jsx)(`span`,{className:k.equippedDot,"aria-hidden":`true`}),a&&(0,o.jsx)(`span`,{className:k.new,children:`NEW`}),s!=null&&s>1&&(0,o.jsxs)(`span`,{className:k.count,children:[`×`,s]}),(0,o.jsx)(`span`,{className:`${k.action} ${r?k.unequip:k.equip}`,role:`button`,onClick:e=>{e.stopPropagation(),f?.()},children:r?`UNEQUIP`:`EQUIP`})]})}function j({size:e=24,className:t}){let n=(0,x.useId)().replace(/:/g,``),r=`dcl-bg-${n}`,i=`dcl-p1-${n}`,a=`dcl-p2-${n}`,s=`dcl-clip-${n}`;return(0,o.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,className:t,"aria-hidden":`true`,children:[(0,o.jsxs)(`g`,{clipPath:`url(#${s})`,children:[(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z`,fill:`url(#${r})`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.80002 21.5999C6.80402 23.1059 9.30002 23.9999 12 23.9999C14.7 23.9999 17.196 23.1059 19.2 21.5999H4.80002Z`,fill:`#FF2D55`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.40004 19.1999C3.08404 20.1059 3.89404 20.9159 4.80004 21.5999H19.2C20.106 20.9159 20.916 20.1059 21.6 19.1999H2.40004Z`,fill:`#FFA25A`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.098 16.7999H1.00201C1.37401 17.6579 1.84801 18.4619 2.40001 19.1999H16.104V16.7999H16.098Z`,fill:`#FFC95B`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.50203 7.79987V16.7999H16.002L8.50203 7.79987Z`,fill:`url(#${i})`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.00201 16.7999H8.50201V7.7999L1.00201 16.7999Z`,fill:`#FCFCFC`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.098 12.6V19.2H21.6L16.098 12.6Z`,fill:`url(#${a})`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.602 19.2H16.098V12.6L10.602 19.2Z`,fill:`#FCFCFC`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.098 10.7999C17.7549 10.7999 19.098 9.45675 19.098 7.79989C19.098 6.14304 17.7549 4.7999 16.098 4.7999C14.4412 4.7999 13.098 6.14304 13.098 7.79989C13.098 9.45675 14.4412 10.7999 16.098 10.7999Z`,fill:`#FFC95B`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.50198 5.99991C9.33041 5.99991 10.002 5.32833 10.002 4.49991C10.002 3.67148 9.33041 2.99991 8.50198 2.99991C7.67356 2.99991 7.00198 3.67148 7.00198 4.49991C7.00198 5.32833 7.67356 5.99991 8.50198 5.99991Z`,fill:`#FFC95B`})]}),(0,o.jsxs)(`defs`,{children:[(0,o.jsxs)(`linearGradient`,{id:r,x1:`12`,y1:`-4.97056`,x2:`-4.97055`,y2:`12`,gradientUnits:`userSpaceOnUse`,children:[(0,o.jsx)(`stop`,{stopColor:`#FF2D55`}),(0,o.jsx)(`stop`,{offset:`1`,stopColor:`#FFBC5B`})]}),(0,o.jsxs)(`linearGradient`,{id:i,x1:`8.49951`,y1:`7.79987`,x2:`8.49951`,y2:`16.7999`,gradientUnits:`userSpaceOnUse`,children:[(0,o.jsx)(`stop`,{stopColor:`#A524B3`}),(0,o.jsx)(`stop`,{offset:`1`,stopColor:`#FF2D55`})]}),(0,o.jsxs)(`linearGradient`,{id:a,x1:`16.0961`,y1:`12.6`,x2:`16.0961`,y2:`19.2`,gradientUnits:`userSpaceOnUse`,children:[(0,o.jsx)(`stop`,{stopColor:`#A524B3`}),(0,o.jsx)(`stop`,{offset:`1`,stopColor:`#FF2D55`})]}),(0,o.jsx)(`clipPath`,{id:s,children:(0,o.jsx)(`rect`,{width:`24`,height:`24`,rx:`12`,fill:`white`})})]})]})}var M={card:`_card_162tj_3`,shell:`_shell_162tj_33`,shellBody:`_shellBody_162tj_39`,title:`_title_162tj_53`,titleText:`_titleText_162tj_59`,titleCentered:`_titleCentered_162tj_62`,titleHeading:`_titleHeading_162tj_69`,subtitle:`_subtitle_162tj_73`,close:`_close_162tj_76`,back:`_back_162tj_81`,icon:`_icon_162tj_95`,actions:`_actions_162tj_133`,actionsLead:`_actionsLead_162tj_140`,actionBtn:`_actionBtn_162tj_143`,actionsColumn:`_actionsColumn_162tj_150`,lead:`_lead_162tj_164`,group:`_group_162tj_170`};function N({children:e,width:t=420,ariaLabel:n,role:r=`dialog`,className:i=``}){return(0,o.jsx)(`div`,{className:`${M.card} ${i}`.trim(),style:{width:t},role:r,"aria-modal":`true`,"aria-label":n,onClick:e=>e.stopPropagation(),children:e})}function P({title:e,subtitle:t,icon:n,onClose:r,onBack:i,closeLabel:a=`Close`,backLabel:s=`Back`,closeSize:c=14,centered:l=!1,className:u=``}){return(0,o.jsxs)(`header`,{className:`${M.title} ${l?M.titleCentered:``} ${u}`.trim(),children:[i?(0,o.jsx)(`button`,{type:`button`,className:M.back,"aria-label":s,onClick:i,children:(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,"aria-hidden":`true`,children:(0,o.jsx)(`path`,{d:`M15 5l-7 7 7 7`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`})})}):null,(0,o.jsxs)(`div`,{className:M.titleText,children:[(0,o.jsxs)(`div`,{className:M.titleHeading,children:[n?(0,o.jsx)(`span`,{className:M.icon,"aria-hidden":`true`,children:n}):null,e]}),t?(0,o.jsx)(`div`,{className:M.subtitle,children:t}):null]}),r?(0,o.jsx)(`button`,{type:`button`,className:M.close,"aria-label":a,onClick:r,children:(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:c,height:c,"aria-hidden":`true`,children:(0,o.jsx)(`path`,{d:`M6 6l12 12M18 6L6 18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`})})}):null]})}function F(e){let t=[];return x.Children.forEach(e,e=>{if(!(e==null||e===!1))if((0,x.isValidElement)(e)&&e.type===x.Fragment){let n=e.props;t.push(...F(n.children))}else t.push(e)}),t}function I({children:e,lead:t,equal:n=!1,direction:r=`row`,align:i=`stretch`,className:a=``}){let s=r===`column`,c=i===`start`?`flex-start`:i===`center`?`center`:i===`end`?`flex-end`:i===`between`?`space-between`:void 0,l=n?F(e).map((e,t)=>(0,o.jsx)(`div`,{className:M.actionBtn,children:e},t)):e,u=t!=null&&!s,d=u?(0,o.jsx)(`div`,{className:M.group,children:l}):l;return(0,o.jsxs)(`div`,{className:`${M.actions} ${s?M.actionsColumn:``} ${u?M.actionsLead:``} ${a}`.trim(),style:c?{justifyContent:c}:void 0,children:[t==null?null:(0,o.jsx)(`div`,{className:M.lead,children:t}),d]})}var L={sm:420,tiny:420,md:540,small:540,lg:720,large:720,xl:900};function R({children:e,onClose:t,width:n,size:r=`sm`,className:i=``,ariaLabel:a,role:s=`dialog`,bodyless:c=!1,bodyClassName:l=``,header:u,title:d,subtitle:f,icon:p,onBack:m,closeButton:h=!0,centeredTitle:g=!1,closeSize:_,actions:v,actionsEqual:y=!1,actionsDirection:b=`row`,actionsAlign:x=`stretch`,actionsLead:S,actionsClassName:C}){let w=n??L[r]??L.sm,T=u??(d!=null||f!=null||p!=null||m!=null?(0,o.jsx)(P,{title:d,subtitle:f,icon:p,onBack:m,onClose:h?t:void 0,centered:g,closeSize:_}):null),E=v==null?null:(0,o.jsx)(I,{equal:y,direction:b,align:x,lead:S,className:C,children:v}),D=c?e:(0,o.jsx)(`div`,{className:`${M.shellBody} ${l}`.trim(),children:e});return(0,o.jsxs)(N,{width:w,className:`${M.shell} ${i}`.trim(),ariaLabel:a,role:s,children:[T,D,E]})}var z={spinner:`_spinner_9xh52_1`,spin:`_spin_9xh52_1`,track:`_track_9xh52_9`,arc:`_arc_9xh52_12`};function ee({size:e=28,color:t}){let n={"--sz":`${e}px`,...t?{"--spinner-arc":t}:{}};return(0,o.jsx)(`span`,{className:z.spinner,style:n,role:`status`,"aria-label":`Loading`,children:(0,o.jsxs)(`svg`,{viewBox:`0 0 50 50`,width:e,height:e,children:[(0,o.jsx)(`circle`,{className:z.track,cx:`25`,cy:`25`,r:`20`,fill:`none`,strokeWidth:`5`}),(0,o.jsx)(`circle`,{className:z.arc,cx:`25`,cy:`25`,r:`20`,fill:`none`,strokeWidth:`5`,strokeLinecap:`round`,strokeDasharray:`90 160`})]})})}var B={search:`_search_7tqso_1`,icon:`_icon_7tqso_17`,input:`_input_7tqso_22`};function te({value:e,defaultValue:t=``,placeholder:n=`Search`,onChange:r}){let[i,a]=(0,x.useState)(t),s=e!==void 0,c=s?e:i;return(0,o.jsxs)(`label`,{className:B.search,children:[(0,o.jsxs)(`svg`,{viewBox:`0 0 16 16`,width:`15`,height:`15`,"aria-hidden":`true`,className:B.icon,children:[(0,o.jsx)(`circle`,{cx:`7`,cy:`7`,r:`5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`}),(0,o.jsx)(`path`,{d:`M11 11l3.5 3.5`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`})]}),(0,o.jsx)(`input`,{className:B.input,type:`text`,"aria-label":n,placeholder:n,value:c,onChange:e=>{let t=e.target.value;s||a(t),r?.(t)}})]})}var V=[];function H(e){return V.push(e),()=>{let t=V.lastIndexOf(e);t>=0&&V.splice(t,1)}}function ne(){let e=V[V.length-1];return e==null?!1:(e(),!0)}var U={dropdown:`_dropdown_9cuo3_1`,btn:`_btn_9cuo3_5`,open:`_open_9cuo3_24`,caret:`_caret_9cuo3_27`,menu:`_menu_9cuo3_35`,opt:`_opt_9cuo3_51`,optActive:`_optActive_9cuo3_67`};function re({options:e,value:t,defaultValue:n,onChange:r}){let[i,a]=(0,x.useState)(n??e[0]),s=t!==void 0,c=s?t:i,[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(-1),p=(0,x.useRef)(null),m=(0,x.useRef)(null),h=(0,x.useRef)(`dd`+Math.random().toString(36).slice(2,8)).current;(0,x.useEffect)(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[l]),(0,x.useEffect)(()=>{l&&f(Math.max(0,e.indexOf(c??``)))},[l]),(0,x.useEffect)(()=>{if(l)return H(()=>u(!1))},[l]);function g(e){s||a(e),r?.(e),u(!1),m.current?.focus()}function _(t){if(t.key===`Enter`||t.key===` `){t.preventDefault(),l?d>=0&&g(e[d]):u(!0);return}if(t.key===`ArrowDown`||t.key===`ArrowUp`||t.key===`Home`||t.key===`End`){if(t.preventDefault(),!l){u(!0);return}t.key===`Home`?f(0):t.key===`End`?f(e.length-1):t.key===`ArrowDown`?f(t=>Math.min(e.length-1,t+1)):f(e=>Math.max(0,e-1))}}return(0,o.jsxs)(`div`,{className:`${U.dropdown} ${l?U.open:``}`.trim(),ref:p,onKeyDown:_,children:[(0,o.jsxs)(`button`,{type:`button`,className:U.btn,ref:m,"aria-haspopup":`listbox`,"aria-expanded":l,"aria-activedescendant":l&&d>=0?`${h}-${d}`:void 0,onClick:()=>u(e=>!e),children:[(0,o.jsx)(`span`,{className:U.cur,children:c}),(0,o.jsx)(`svg`,{viewBox:`0 0 12 8`,width:`11`,height:`8`,"aria-hidden":`true`,className:U.caret,children:(0,o.jsx)(`path`,{d:`M1 1.5L6 6.5l5-5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),l&&(0,o.jsx)(`ul`,{className:U.menu,role:`listbox`,children:e.map((e,t)=>(0,o.jsx)(`li`,{id:`${h}-${t}`,role:`option`,"aria-selected":e===c,className:`${U.opt} ${e===c?U.optActive:``}`.trim(),onClick:()=>g(e),children:e},e))})]})}var W={es:`_es_wduos_1`,card:`_card_wduos_11`,inline:`_inline_wduos_19`,screen:`_screen_wduos_24`,icon:`_icon_wduos_31`,title:`_title_wduos_41`,sub:`_sub_wduos_45`,iconWash:`_iconWash_wduos_58`,error:`_error_wduos_76`,actions:`_actions_wduos_97`,cta:`_cta_wduos_106`,ctaOutline:`_ctaOutline_wduos_126`,ctaGhost:`_ctaGhost_wduos_142`},ie={solid:``,outline:`ctaOutline`,ghost:`ctaGhost`};function ae({label:e,onClick:t,href:n,variant:r=`solid`,icon:i}){let a=`${W.cta} ${W[ie[r]]??``}`.trim(),s=(0,o.jsxs)(o.Fragment,{children:[i!=null&&(0,o.jsx)(`span`,{className:W.ctaIcon,"aria-hidden":`true`,children:i}),e]});return n==null?(0,o.jsx)(`button`,{type:`button`,className:a,onClick:t,children:s}):(0,o.jsx)(`a`,{className:a,href:n,onClick:t,children:s})}var oe=e=>typeof e==`number`?`${e}px`:e,se={inline:`inline`,screen:`screen`,card:`card`};function ce({icon:e,iconWash:t=!1,title:n,subtitle:r,actions:i,variant:a,tone:s,actionsGap:c,className:l=``,style:u}){let d=[W.es,a?W[se[a]]:``,s===`error`?W.error:``,l].filter(Boolean).join(` `),f=c??(s===`error`?40:void 0),p=f==null?u:{...u,"--es-actions-gap":oe(f)},m=Array.isArray(i);return(0,o.jsxs)(`div`,{className:d,style:p,children:[e!=null&&(0,o.jsx)(`div`,{className:`${W.icon} ${t?W.iconWash:``}`.trim(),"aria-hidden":`true`,children:e}),n!=null&&(0,o.jsx)(`p`,{className:W.title,children:n}),r!=null&&(0,o.jsx)(`p`,{className:W.sub,children:r}),m?i.length>0&&(0,o.jsx)(`div`,{className:W.actions,children:i.map((e,t)=>(0,o.jsx)(ae,{...e},t))}):i!=null&&(0,o.jsx)(`div`,{className:W.actions,children:i})]})}var G=0,K=new Set,q=()=>K.forEach(e=>e());function J(){return G>0}function le(){G++,q();let e=!1;return()=>{e||(e=!0,G--,q())}}function ue(e){return K.add(e),()=>K.delete(e)}var de=`a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])`;function fe(e,t){(0,x.useEffect)(()=>{let n=e.current;if(!t||!n)return;let r=document.activeElement;n.focus();let i=e=>{if(e.key!==`Tab`)return;let t=n.querySelectorAll(de);if(!t.length){e.preventDefault(),n.focus();return}let r=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),r.focus())};return document.addEventListener(`keydown`,i,!0),()=>{document.removeEventListener(`keydown`,i,!0),r instanceof HTMLElement&&!J()&&r.focus()}},[e,t])}var Y={backdrop:`_backdrop_14nf4_5`,dim:`_dim_14nf4_2`,fadeIn:`_fadeIn_14nf4_1`,pop:`_pop_14nf4_36`,popIn:`_popIn_14nf4_1`},pe={backdrop:!0,dim:!0,backdropClickCloses:!0},X=[],me=0,Z=new Set,he=()=>Z.forEach(e=>e()),Q=e=>{let t=X.find(t=>t.id===e);t&&(X=X.filter(t=>t.id!==e),he(),t.options.onClose?.())};function ge(){X.length>0&&Q(X[X.length-1].id)}function _e(e){return Z.add(e),()=>Z.delete(e)}function ve(){return X.length>0}function ye(e,t){let n=++me;return X=[...X,{id:n,render:e,options:{...pe,...t}}],he(),()=>Q(n)}var be=e=>(Z.add(e),()=>Z.delete(e)),xe=()=>X;function Se({node:e,isTop:t,locked:n}){let r=(0,x.useRef)(null),i=()=>Q(e.id),a=e.render(i);return fe(r,t&&!n),e.options.backdrop?(0,o.jsx)(`div`,{ref:r,className:e.options.dim?`${Y.backdrop} ${Y.dim}`:Y.backdrop,tabIndex:-1,onClick:e.options.backdropClickCloses?i:void 0,children:e.options.dim?(0,o.jsx)(`div`,{className:Y.pop,children:a}):a}):(0,o.jsx)(o.Fragment,{children:a})}function Ce(){let e=(0,x.useSyncExternalStore)(be,xe),t=(0,x.useSyncExternalStore)(ue,J);return(0,o.jsx)(o.Fragment,{children:e.map((n,r)=>(0,o.jsx)(Se,{node:n,isTop:r===e.length-1,locked:t},n.id))})}function $(e){return new Promise(t=>{let n=!1,r=e=>{n||(n=!0,t(e))};ye(t=>(0,o.jsx)(R,{title:e.title,onClose:t,width:e.width??420,actionsEqual:e.actionsEqual??e.actions.length===2,actions:e.actions.map(e=>(0,o.jsx)(s,{variant:e.variant??`primary`,onClick:()=>{r(e.id),t()},children:e.label},e.id)),children:e.body}),{onClose:()=>r(null)})})}function we(e){return $({title:e.title,body:e.body,actions:[{id:`cancel`,label:e.cancelLabel??`Cancel`,variant:`ghost`},{id:`confirm`,label:e.confirmLabel??`Confirm`,variant:e.confirmVariant??`primary`}]}).then(e=>e===`confirm`)}function Te({size:e=16,className:t,stroke:n=`#fff`,strokeWidth:r=2.2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M7 12.5l3 3 7-7`,fill:`none`,stroke:n,strokeWidth:r,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Ee({size:e=16,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z`,fill:`currentColor`})})}function De({size:e=16,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M9 4 7.5 6H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-2.5L15 4H9Zm3 5a4.2 4.2 0 1 1 0 8.4A4.2 4.2 0 0 1 12 9Zm0 2a2.2 2.2 0 1 0 0 4.4A2.2 2.2 0 0 0 12 11Z`,fill:`currentColor`})})}function Oe({size:e=16,className:t}){return(0,o.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:[(0,o.jsx)(`circle`,{cx:`12.5`,cy:`4.5`,r:`2`,fill:`currentColor`}),(0,o.jsx)(`path`,{d:`M9 8.6 12.6 7l3 1.7v3.5h-1.8V9.8l-1-.5v2.8l2.3 2.2-.7 6.6-1.8-.2.6-5.7-1.9-1.8-1.2 5.8-1.7-.4 1.5-7.1-1.6-.9v3.2H7.7V9.6L9 8.6Z`,fill:`currentColor`})]})}function ke({size:e=16,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M8.5 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-7 1.5C5.5 12.5 2 14 2 16.5V19h8v-2.5c0-1 .5-2 1.4-2.7a7 7 0 0 0-2.9-.8Zm7 0c-.6 0-1.2.1-1.8.2 1 .8 1.8 1.8 1.8 3.3V19h6v-2.5c0-2.5-3.5-4-6-4Z`,fill:`currentColor`})})}function Ae({size:e=20,className:t,strokeWidth:n=2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M6 9l6 6 6-6`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`,strokeLinejoin:`round`})})}function je({size:e=20,className:t,strokeWidth:n=2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M18 15l-6-6-6 6`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Me({size:e=13,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M12 2 3 12l9 10 9-10L12 2Z`,fill:`currentColor`})})}function Ne({size:e=18,className:t,strokeWidth:n=2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M12 5v14M5 12h14`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`})})}function Pe({size:e=18,className:t,strokeWidth:n=2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M5 12h14`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`})})}function Fe({size:e=18,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`currentColor`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M19.14 12.94a7.49 7.49 0 0 0 .05-.94 7.49 7.49 0 0 0-.05-.94l2.03-1.58a.5.5 0 0 0 .12-.62l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7 7 0 0 0-1.62-.94l-.36-2.54a.49.49 0 0 0-.49-.42h-3.84a.49.49 0 0 0-.49.42l-.36 2.54a7 7 0 0 0-1.62.94l-2.39-.96a.5.5 0 0 0-.6.22L2.74 8.86a.5.5 0 0 0 .12.62l2.03 1.58a7.49 7.49 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.62l1.92 3.32a.5.5 0 0 0 .6.22l2.39-.96a7 7 0 0 0 1.62.94l.36 2.54a.49.49 0 0 0 .49.42h3.84a.49.49 0 0 0 .49-.42l.36-2.54a7 7 0 0 0 1.62-.94l2.39.96a.5.5 0 0 0 .6-.22l1.92-3.32a.5.5 0 0 0-.12-.62l-2.03-1.58zM12 15.6A3.6 3.6 0 1 1 12 8.4a3.6 3.6 0 0 1 0 7.2z`})})}function Ie({size:e=16,className:t,strokeWidth:n=1.6}){return(0,o.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:[(0,o.jsx)(`rect`,{x:`9`,y:`9`,width:`11`,height:`11`,rx:`2`,stroke:`currentColor`,strokeWidth:n}),(0,o.jsx)(`path`,{d:`M5 15V5a2 2 0 0 1 2-2h8`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`})]})}export{R as A,f as B,ue as C,H as D,ne as E,C as F,s as H,b as I,v as L,A as M,O as N,te as O,T as P,g as R,le as S,re as T,i as U,u as V,n as W,we as _,Ie as a,fe as b,Pe as c,Ne as d,Oe as f,ye as g,ve as h,je as i,j,ee as k,ke as l,ge as m,Te as n,Fe as o,Ce as p,Ae as r,Me as s,De as t,Ee as u,$ as v,ce as w,J as x,_e as y,m as z};
1
+ import{t as e}from"./rolldown-runtime-D9-fqq9M.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),i=e(((e,t)=>{t.exports=r()})),a={btn:`_btn_2tyne_1`,sm:`_sm_2tyne_32`,md:`_md_2tyne_36`,lg:`_lg_2tyne_40`,primary:`_primary_2tyne_46`,secondary:`_secondary_2tyne_53`,ghost:`_ghost_2tyne_60`},o=i();function s(e){let{variant:t=`primary`,size:n=`md`,className:r=``,...i}=e,s=`${a.btn} ${a[t]} ${a[n]} ${r}`.trim();if(i.href!=null)return(0,o.jsx)(`a`,{className:s,...i});let{type:c=`button`,...l}=i;return(0,o.jsx)(`button`,{type:c,className:s,...l})}var c={backpack:`data:image/png;base64,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`,chat:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33122661692.commit-0cfd373/assets/chat-SDMOzrC1.png`,communities:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAEwElEQVR4nO1aT2sbRxRfGfcQetA4NJBAYMeuIZeCNz23sP4Eq0DORpC78TGBwB57k+wvYJmeWijY+gKy3OaQQ8BrJ7ck1uqUgw27UEIPDXL5UQ0ML7Ozs3+kVO78YFjt7sybN2/f3xk5joWFhYWFhYWFhYWFhYWFRQ1gjDV2dnYeHh4ePh2NRn9MJpNrNPweDAbddru9zjlfdv4PggjD0E+SJBZC0DX0dW4qOOfLsjaYNoy5cdrCSwrjxgplpBAGzAYmIS/U87xb8B+q/ngGk3MWHWEY+nRxvV7viW5xeLe7u/voxvkUzvkyXRQWajoegqNatdBa0m6316uoPfrSiIRw7SwqBoNBV14MBFTV5JC7OIuKEXGOcJpVzQ40nRlipvY4mUyu5fulpaXGl6RjgqVZEV5UFE52GGMN3/fvMsa+TtP0YxRFl3Ecf1L1HY/HL1zX/UFW/6y+WaBmBpp18FYLwow6BOFRlUnCAVbNI2ikgqMuUiNl8VYZp6env8hMYSJ5war0GiGySh6BvtQx00iFPire5AhXe5YbTkMfCPu+z+R3EIJgiH49VR4BZk3n7Xa7LfrFqdBFH/BGzUuuoVSaVQqMsUYWM6qFU4GpUncsIi91p1mqyuTkkJzFG55n8VYKvu8zEwmL2oNmkiq1F18U6i9/VTCf5QtU+Uer1bpXhTcVcp0N5/wbXMfj8RtdvyiKXuO6sbHxPVyOeJ6m6fXm5ubm8fHxsRxx8Ht/f/9t3vzTuV+AhoK3u7ien5//rhufJEmCa7PZbNaWh7iu+13O+/u4xnH8nr5D6MOCdCEzTxiq8Jmm6Z+4NpvN2zoaKysrK05dYFMfAjXWhS9hFlBjHT2VT1E1sV+i8zXCh+iil2yytfgQQDg4RBMqFNkB5tUZwkfIYTKroc/29vbDvBxChNeqvBUCk6SMKyaBQ0S0EM91GoQvQyvfIk3sxKtoy6GV8iacc552lwLnfJlmnnIEUFWyGFNFECrBqBYm50IqTatdGL7vM0hed3xAvyLU/erqSnvcgPdgGGNFyxuDBtoybxin4w0fshb/wRhr0GxRqKVI3akGYIGdTqelE1yeb8A7CFenXfBFVGMxt8wb1ZpKdQ2XbDPP44sF6I4asLgyXwm0VVmraTSivJU60mDEiZoSUGkGTKDM1iEFaKjMybSClv1ZYaF0pYLJdKBqh73uA6asA68imieEYlzscYOCSQXK6KxO20CTagp8hel4XSGqLYR6Bcp0uomDVoeZ5BWcZecT2bKRlpxOPXMRNaTaUUSYZUEdbZH9Drkcoe8+88yDf6PBznA43M2rcKfE7wRB8JP8bG1t7auZ7mVOTefi4uJv+Vm/33+WpumlKc8oHFdXV3/UdvY871aVk/p5HiRVzYJVZvaZ04ui6C+U257n3cHudR5TYRj25H2Ofr//mzMnHB0d/QxtFvdnZ2e/7u3tPTcc+x57NfS5MgrEcfwpjuMPJoS3trZeyQIJguCx67ovnTmAc/6tfJ8kyYeDg4N3zpdEaLi/MY/W6XSM/1kwMzDGGiYF2azbf+pfRrziX6bqEEaZg3QVaj00DoLgnud5D5w54uTkJBoOh+k857SwsLCwsLCwsLCwsLCwcBYK/wD9DTVehZscAwAAAABJRU5ErkJggg==`,emotes:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33122661692.commit-0cfd373/assets/emotes-0Hqyv0Zx.png`,friends:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33122661692.commit-0cfd373/assets/friends-CryoU8JM.png`,help:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33122661692.commit-0cfd373/assets/help-C7LoIWCE.png`,map:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33122661692.commit-0cfd373/assets/map-fz11YkVT.png`,mic:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33122661692.commit-0cfd373/assets/mic-HsVrBud0.png`,notifications:`data:image/png;base64,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`,settings:`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33122661692.commit-0cfd373/assets/settings-meSngt2H.png`},l={gallery:`M12 15.2c1.77 0 3.2-1.43 3.2-3.2s-1.43-3.2-3.2-3.2-3.2 1.43-3.2 3.2 1.43 3.2 3.2 3.2zM9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z`,profile:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`,places:`M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z`};function u({name:e,size:t=22}){let n=c[e];if(n!=null){let e=`url(${n})`;return(0,o.jsx)(`span`,{"aria-hidden":`true`,style:{display:`inline-block`,width:t,height:t,backgroundColor:`currentColor`,maskImage:e,WebkitMaskImage:e,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`,maskSize:`contain`,WebkitMaskSize:`contain`}})}let r=l[e];if(r==null)throw Error(`Icon "${e}" has neither sidebar-icons png art nor an SVG path`);return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:t,height:t,"aria-hidden":`true`,children:(0,o.jsx)(`path`,{d:r,fill:`currentColor`})})}var d={wrap:`_wrap_8p0on_1`,tip:`_tip_8p0on_6`,shortcut:`_shortcut_8p0on_29`,right:`_right_8p0on_34`,left:`_left_8p0on_40`,top:`_top_8p0on_46`,bottom:`_bottom_8p0on_52`};function f({label:e,shortcut:t,side:n=`right`,className:r=``,children:i}){return(0,o.jsxs)(`span`,{className:`${d.wrap} ${r}`.trim(),children:[i,(0,o.jsxs)(`span`,{className:`${d.tip} ${d[n]}`,role:`tooltip`,children:[e,t&&(0,o.jsxs)(`span`,{className:d.shortcut,children:[`[`,t,`]`]})]})]})}var p={btn:`_btn_gqvpk_3`,active:`_active_gqvpk_43`,badge:`_badge_gqvpk_52`,badgeLavender:`_badgeLavender_gqvpk_73`};function m({icon:e,active:t=!1,badge:n,badgeTone:r=`ruby`,label:i,shortcut:a,className:s=``,type:c=`button`,...l}){return(0,o.jsx)(f,{label:i,shortcut:a,side:`right`,children:(0,o.jsxs)(`button`,{type:c,className:`${p.btn} ${t?p.active:``} ${s}`.trim(),"aria-label":i,"aria-pressed":t,...l,children:[(0,o.jsx)(u,{name:e,size:24}),n!=null&&n>0&&(0,o.jsx)(`span`,{className:`${p.badge} ${r===`lavender`?p.badgeLavender:``}`.trim(),children:n>99?`99+`:n})]})})}var h={btn:`_btn_1l51r_1`,sm:`_sm_1l51r_23`,md:`_md_1l51r_27`,pill:`_pill_1l51r_32`,square:`_square_1l51r_39`,circle:`_circle_1l51r_42`,ghost:`_ghost_1l51r_50`,active:`_active_1l51r_54`,solid:`_solid_1l51r_58`};function g({variant:e=`ghost`,shape:t=`square`,size:n=`md`,active:r=!1,className:i=``,type:a=`button`,...s}){return(0,o.jsx)(`button`,{type:a,className:`${h.btn} ${h[e]} ${h[t]} ${h[n]} ${r?h.active:``} ${i}`.trim(),"aria-pressed":r,...s})}var _={track:`_track_5m120_1`,on:`_on_5m120_13`,knob:`_knob_5m120_21`};function v({checked:e,onChange:t,disabled:n=!1,"aria-label":r}){return(0,o.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":e,"aria-label":r,disabled:n,className:`${_.track} ${e?_.on:``}`.trim(),onClick:()=>t(!e),children:(0,o.jsx)(`span`,{className:_.knob})})}var y={slider:`_slider_19k4v_1`,row:`_row_19k4v_26`,arrow:`_arrow_19k4v_32`};function b({value:e,min:t=0,max:n=100,step:r=1,onChange:i,disabled:a=!1,arrows:s=!1,"aria-label":c}){let l=n>t?(e-t)/(n-t)*100:0,u=e=>Math.min(n,Math.max(t,e)),d=(0,o.jsx)(`input`,{type:`range`,className:y.slider,value:e,min:t,max:n,step:r,disabled:a,"aria-label":c,style:{"--pct":`${l}%`},onChange:e=>i(Number(e.target.value))});return s?(0,o.jsxs)(`div`,{className:y.row,children:[(0,o.jsx)(`button`,{type:`button`,className:y.arrow,disabled:a||e<=t,"aria-label":`decrease`,onClick:()=>i(u(e-r)),children:`‹`}),d,(0,o.jsx)(`button`,{type:`button`,className:y.arrow,disabled:a||e>=n,"aria-label":`increase`,onClick:()=>i(u(e+r)),children:`›`})]}):d}var x=n(),S={root:`_root_tzz0s_1`,field:`_field_tzz0s_7`,light:`_light_tzz0s_32`,chev:`_chev_tzz0s_41`,value:`_value_tzz0s_44`,chevOpen:`_chevOpen_tzz0s_56`,list:`_list_tzz0s_60`,option:`_option_tzz0s_77`,optionActive:`_optionActive_tzz0s_94`};function C({value:e,options:t,onChange:n,disabled:r=!1,variant:i=`dark`,"aria-label":a}){let[s,c]=(0,x.useState)(!1),l=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(!s)return;let e=e=>{l.current&&!l.current.contains(e.target)&&c(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[s]);let u=t.find(t=>t.value===e);return(0,o.jsxs)(`div`,{className:S.root,ref:l,children:[(0,o.jsxs)(`button`,{type:`button`,className:`${S.field} ${i===`light`?S.light:``}`.trim(),disabled:r,"aria-label":a,"aria-haspopup":`listbox`,"aria-expanded":s,onClick:()=>c(e=>!e),children:[(0,o.jsx)(`span`,{className:S.value,children:u?.label??e}),(0,o.jsx)(`svg`,{className:`${S.chev} ${s?S.chevOpen:``}`.trim(),viewBox:`0 0 12 12`,"aria-hidden":`true`,children:(0,o.jsx)(`path`,{d:`M2.5 4.5L6 8l3.5-3.5`,stroke:`currentColor`,strokeWidth:`1.6`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),s&&(0,o.jsx)(`ul`,{className:S.list,role:`listbox`,children:t.map(t=>(0,o.jsx)(`li`,{children:(0,o.jsx)(`button`,{type:`button`,role:`option`,"aria-selected":t.value===e,className:`${S.option} ${t.value===e?S.optionActive:``}`.trim(),onClick:()=>{n(t.value),c(!1)},children:t.label})},t.value))})]})}var w={panel:`_panel_8y1li_1`,blur:`_blur_8y1li_9`};function T({blur:e=!1,className:t=``,...n}){return(0,o.jsx)(`div`,{className:`${w.panel} ${e?w.blur:``} ${t}`.trim(),...n})}var E={root:`_root_1m8hu_1`,img:`_img_1m8hu_14`,dot:`_dot_1m8hu_22`,online:`_online_1m8hu_30`,away:`_away_1m8hu_33`,offline:`_offline_1m8hu_36`};function D(e){let t=e.replace(/^[@#]/,``).match(/[a-z0-9]/i);return(t?t[0]:e[0]||`?`).toUpperCase()}function O({src:e,name:t,color:n=`var(--fill-4)`,size:r=32,status:i,className:a=``}){let[s,c]=(0,x.useState)(!1),l=e&&!s,u=Math.max(6,Math.round(r*.18));return(0,o.jsxs)(`span`,{className:`${E.root} ${a}`.trim(),style:{width:r,height:r,background:n,fontSize:Math.round(r*.42)},children:[l?(0,o.jsx)(`img`,{className:E.img,src:e,alt:t,onError:()=>c(!0)}):D(t),i&&(0,o.jsx)(`span`,{className:`${E.dot} ${E[i]}`,style:{width:u,height:u}})]})}var k={card:`_card_1oxq1_5`,equipped:`_equipped_1oxq1_36`,selected:`_selected_1oxq1_43`,incompatible:`_incompatible_1oxq1_49`,flap:`_flap_1oxq1_55`,equippedDot:`_equippedDot_1oxq1_71`,thumb:`_thumb_1oxq1_85`,placeholder:`_placeholder_1oxq1_90`,new:`_new_1oxq1_98`,count:`_count_1oxq1_110`,action:`_action_1oxq1_123`,equip:`_equip_1oxq1_36`,unequip:`_unequip_1oxq1_153`,base:`_base_1oxq1_159`,common:`_common_1oxq1_163`,uncommon:`_uncommon_1oxq1_167`,rare:`_rare_1oxq1_171`,epic:`_epic_1oxq1_175`,legendary:`_legendary_1oxq1_179`,mythic:`_mythic_1oxq1_183`,unique:`_unique_1oxq1_187`,exotic:`_exotic_1oxq1_191`};function A({thumbnail:e,name:t,rarity:n=`base`,equipped:r=!1,selected:i=!1,isNew:a=!1,count:s,incompatible:c=!1,categoryIcon:l,onClick:u,onDoubleClick:d,onEquip:f}){let[p,m]=(0,x.useState)(!1);return(0,o.jsxs)(`button`,{type:`button`,className:`${k.card} ${k[n]} ${r?k.equipped:``} ${i?k.selected:``} ${c?k.incompatible:``}`.trim(),title:t,"aria-label":t,onClick:u,onDoubleClick:d,children:[l!=null&&(0,o.jsx)(`span`,{className:k.flap,children:l}),e&&!p?(0,o.jsx)(`img`,{className:k.thumb,src:e,alt:``,onError:()=>m(!0)}):(0,o.jsx)(`span`,{className:k.placeholder}),r&&(0,o.jsx)(`span`,{className:k.equippedDot,"aria-hidden":`true`}),a&&(0,o.jsx)(`span`,{className:k.new,children:`NEW`}),s!=null&&s>1&&(0,o.jsxs)(`span`,{className:k.count,children:[`×`,s]}),(0,o.jsx)(`span`,{className:`${k.action} ${r?k.unequip:k.equip}`,role:`button`,onClick:e=>{e.stopPropagation(),f?.()},children:r?`UNEQUIP`:`EQUIP`})]})}function j({size:e=24,className:t}){let n=(0,x.useId)().replace(/:/g,``),r=`dcl-bg-${n}`,i=`dcl-p1-${n}`,a=`dcl-p2-${n}`,s=`dcl-clip-${n}`;return(0,o.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,className:t,"aria-hidden":`true`,children:[(0,o.jsxs)(`g`,{clipPath:`url(#${s})`,children:[(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z`,fill:`url(#${r})`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.80002 21.5999C6.80402 23.1059 9.30002 23.9999 12 23.9999C14.7 23.9999 17.196 23.1059 19.2 21.5999H4.80002Z`,fill:`#FF2D55`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.40004 19.1999C3.08404 20.1059 3.89404 20.9159 4.80004 21.5999H19.2C20.106 20.9159 20.916 20.1059 21.6 19.1999H2.40004Z`,fill:`#FFA25A`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.098 16.7999H1.00201C1.37401 17.6579 1.84801 18.4619 2.40001 19.1999H16.104V16.7999H16.098Z`,fill:`#FFC95B`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.50203 7.79987V16.7999H16.002L8.50203 7.79987Z`,fill:`url(#${i})`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.00201 16.7999H8.50201V7.7999L1.00201 16.7999Z`,fill:`#FCFCFC`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.098 12.6V19.2H21.6L16.098 12.6Z`,fill:`url(#${a})`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.602 19.2H16.098V12.6L10.602 19.2Z`,fill:`#FCFCFC`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.098 10.7999C17.7549 10.7999 19.098 9.45675 19.098 7.79989C19.098 6.14304 17.7549 4.7999 16.098 4.7999C14.4412 4.7999 13.098 6.14304 13.098 7.79989C13.098 9.45675 14.4412 10.7999 16.098 10.7999Z`,fill:`#FFC95B`}),(0,o.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.50198 5.99991C9.33041 5.99991 10.002 5.32833 10.002 4.49991C10.002 3.67148 9.33041 2.99991 8.50198 2.99991C7.67356 2.99991 7.00198 3.67148 7.00198 4.49991C7.00198 5.32833 7.67356 5.99991 8.50198 5.99991Z`,fill:`#FFC95B`})]}),(0,o.jsxs)(`defs`,{children:[(0,o.jsxs)(`linearGradient`,{id:r,x1:`12`,y1:`-4.97056`,x2:`-4.97055`,y2:`12`,gradientUnits:`userSpaceOnUse`,children:[(0,o.jsx)(`stop`,{stopColor:`#FF2D55`}),(0,o.jsx)(`stop`,{offset:`1`,stopColor:`#FFBC5B`})]}),(0,o.jsxs)(`linearGradient`,{id:i,x1:`8.49951`,y1:`7.79987`,x2:`8.49951`,y2:`16.7999`,gradientUnits:`userSpaceOnUse`,children:[(0,o.jsx)(`stop`,{stopColor:`#A524B3`}),(0,o.jsx)(`stop`,{offset:`1`,stopColor:`#FF2D55`})]}),(0,o.jsxs)(`linearGradient`,{id:a,x1:`16.0961`,y1:`12.6`,x2:`16.0961`,y2:`19.2`,gradientUnits:`userSpaceOnUse`,children:[(0,o.jsx)(`stop`,{stopColor:`#A524B3`}),(0,o.jsx)(`stop`,{offset:`1`,stopColor:`#FF2D55`})]}),(0,o.jsx)(`clipPath`,{id:s,children:(0,o.jsx)(`rect`,{width:`24`,height:`24`,rx:`12`,fill:`white`})})]})]})}var M={card:`_card_162tj_3`,shell:`_shell_162tj_33`,shellBody:`_shellBody_162tj_39`,title:`_title_162tj_53`,titleText:`_titleText_162tj_59`,titleCentered:`_titleCentered_162tj_62`,titleHeading:`_titleHeading_162tj_69`,subtitle:`_subtitle_162tj_73`,close:`_close_162tj_76`,back:`_back_162tj_81`,icon:`_icon_162tj_95`,actions:`_actions_162tj_133`,actionsLead:`_actionsLead_162tj_140`,actionBtn:`_actionBtn_162tj_143`,actionsColumn:`_actionsColumn_162tj_150`,lead:`_lead_162tj_164`,group:`_group_162tj_170`};function N({children:e,width:t=420,ariaLabel:n,role:r=`dialog`,className:i=``}){return(0,o.jsx)(`div`,{className:`${M.card} ${i}`.trim(),style:{width:t},role:r,"aria-modal":`true`,"aria-label":n,onClick:e=>e.stopPropagation(),children:e})}function P({title:e,subtitle:t,icon:n,onClose:r,onBack:i,closeLabel:a=`Close`,backLabel:s=`Back`,closeSize:c=14,centered:l=!1,className:u=``}){return(0,o.jsxs)(`header`,{className:`${M.title} ${l?M.titleCentered:``} ${u}`.trim(),children:[i?(0,o.jsx)(`button`,{type:`button`,className:M.back,"aria-label":s,onClick:i,children:(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,"aria-hidden":`true`,children:(0,o.jsx)(`path`,{d:`M15 5l-7 7 7 7`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`})})}):null,(0,o.jsxs)(`div`,{className:M.titleText,children:[(0,o.jsxs)(`div`,{className:M.titleHeading,children:[n?(0,o.jsx)(`span`,{className:M.icon,"aria-hidden":`true`,children:n}):null,e]}),t?(0,o.jsx)(`div`,{className:M.subtitle,children:t}):null]}),r?(0,o.jsx)(`button`,{type:`button`,className:M.close,"aria-label":a,onClick:r,children:(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:c,height:c,"aria-hidden":`true`,children:(0,o.jsx)(`path`,{d:`M6 6l12 12M18 6L6 18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`})})}):null]})}function F(e){let t=[];return x.Children.forEach(e,e=>{if(!(e==null||e===!1))if((0,x.isValidElement)(e)&&e.type===x.Fragment){let n=e.props;t.push(...F(n.children))}else t.push(e)}),t}function I({children:e,lead:t,equal:n=!1,direction:r=`row`,align:i=`stretch`,className:a=``}){let s=r===`column`,c=i===`start`?`flex-start`:i===`center`?`center`:i===`end`?`flex-end`:i===`between`?`space-between`:void 0,l=n?F(e).map((e,t)=>(0,o.jsx)(`div`,{className:M.actionBtn,children:e},t)):e,u=t!=null&&!s,d=u?(0,o.jsx)(`div`,{className:M.group,children:l}):l;return(0,o.jsxs)(`div`,{className:`${M.actions} ${s?M.actionsColumn:``} ${u?M.actionsLead:``} ${a}`.trim(),style:c?{justifyContent:c}:void 0,children:[t==null?null:(0,o.jsx)(`div`,{className:M.lead,children:t}),d]})}var L={sm:420,tiny:420,md:540,small:540,lg:720,large:720,xl:900};function R({children:e,onClose:t,width:n,size:r=`sm`,className:i=``,ariaLabel:a,role:s=`dialog`,bodyless:c=!1,bodyClassName:l=``,header:u,title:d,subtitle:f,icon:p,onBack:m,closeButton:h=!0,centeredTitle:g=!1,closeSize:_,actions:v,actionsEqual:y=!1,actionsDirection:b=`row`,actionsAlign:x=`stretch`,actionsLead:S,actionsClassName:C}){let w=n??L[r]??L.sm,T=u??(d!=null||f!=null||p!=null||m!=null?(0,o.jsx)(P,{title:d,subtitle:f,icon:p,onBack:m,onClose:h?t:void 0,centered:g,closeSize:_}):null),E=v==null?null:(0,o.jsx)(I,{equal:y,direction:b,align:x,lead:S,className:C,children:v}),D=c?e:(0,o.jsx)(`div`,{className:`${M.shellBody} ${l}`.trim(),children:e});return(0,o.jsxs)(N,{width:w,className:`${M.shell} ${i}`.trim(),ariaLabel:a,role:s,children:[T,D,E]})}var z={spinner:`_spinner_9xh52_1`,spin:`_spin_9xh52_1`,track:`_track_9xh52_9`,arc:`_arc_9xh52_12`};function ee({size:e=28,color:t}){let n={"--sz":`${e}px`,...t?{"--spinner-arc":t}:{}};return(0,o.jsx)(`span`,{className:z.spinner,style:n,role:`status`,"aria-label":`Loading`,children:(0,o.jsxs)(`svg`,{viewBox:`0 0 50 50`,width:e,height:e,children:[(0,o.jsx)(`circle`,{className:z.track,cx:`25`,cy:`25`,r:`20`,fill:`none`,strokeWidth:`5`}),(0,o.jsx)(`circle`,{className:z.arc,cx:`25`,cy:`25`,r:`20`,fill:`none`,strokeWidth:`5`,strokeLinecap:`round`,strokeDasharray:`90 160`})]})})}var B={search:`_search_7tqso_1`,icon:`_icon_7tqso_17`,input:`_input_7tqso_22`};function te({value:e,defaultValue:t=``,placeholder:n=`Search`,onChange:r}){let[i,a]=(0,x.useState)(t),s=e!==void 0,c=s?e:i;return(0,o.jsxs)(`label`,{className:B.search,children:[(0,o.jsxs)(`svg`,{viewBox:`0 0 16 16`,width:`15`,height:`15`,"aria-hidden":`true`,className:B.icon,children:[(0,o.jsx)(`circle`,{cx:`7`,cy:`7`,r:`5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`}),(0,o.jsx)(`path`,{d:`M11 11l3.5 3.5`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`})]}),(0,o.jsx)(`input`,{className:B.input,type:`text`,"aria-label":n,placeholder:n,value:c,onChange:e=>{let t=e.target.value;s||a(t),r?.(t)}})]})}var V=[];function H(e){return V.push(e),()=>{let t=V.lastIndexOf(e);t>=0&&V.splice(t,1)}}function ne(){let e=V[V.length-1];return e==null?!1:(e(),!0)}var U={dropdown:`_dropdown_9cuo3_1`,btn:`_btn_9cuo3_5`,open:`_open_9cuo3_24`,caret:`_caret_9cuo3_27`,menu:`_menu_9cuo3_35`,opt:`_opt_9cuo3_51`,optActive:`_optActive_9cuo3_67`};function re({options:e,value:t,defaultValue:n,onChange:r}){let[i,a]=(0,x.useState)(n??e[0]),s=t!==void 0,c=s?t:i,[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(-1),p=(0,x.useRef)(null),m=(0,x.useRef)(null),h=(0,x.useRef)(`dd`+Math.random().toString(36).slice(2,8)).current;(0,x.useEffect)(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[l]),(0,x.useEffect)(()=>{l&&f(Math.max(0,e.indexOf(c??``)))},[l]),(0,x.useEffect)(()=>{if(l)return H(()=>u(!1))},[l]);function g(e){s||a(e),r?.(e),u(!1),m.current?.focus()}function _(t){if(t.key===`Enter`||t.key===` `){t.preventDefault(),l?d>=0&&g(e[d]):u(!0);return}if(t.key===`ArrowDown`||t.key===`ArrowUp`||t.key===`Home`||t.key===`End`){if(t.preventDefault(),!l){u(!0);return}t.key===`Home`?f(0):t.key===`End`?f(e.length-1):t.key===`ArrowDown`?f(t=>Math.min(e.length-1,t+1)):f(e=>Math.max(0,e-1))}}return(0,o.jsxs)(`div`,{className:`${U.dropdown} ${l?U.open:``}`.trim(),ref:p,onKeyDown:_,children:[(0,o.jsxs)(`button`,{type:`button`,className:U.btn,ref:m,"aria-haspopup":`listbox`,"aria-expanded":l,"aria-activedescendant":l&&d>=0?`${h}-${d}`:void 0,onClick:()=>u(e=>!e),children:[(0,o.jsx)(`span`,{className:U.cur,children:c}),(0,o.jsx)(`svg`,{viewBox:`0 0 12 8`,width:`11`,height:`8`,"aria-hidden":`true`,className:U.caret,children:(0,o.jsx)(`path`,{d:`M1 1.5L6 6.5l5-5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),l&&(0,o.jsx)(`ul`,{className:U.menu,role:`listbox`,children:e.map((e,t)=>(0,o.jsx)(`li`,{id:`${h}-${t}`,role:`option`,"aria-selected":e===c,className:`${U.opt} ${e===c?U.optActive:``}`.trim(),onClick:()=>g(e),children:e},e))})]})}var W={es:`_es_wduos_1`,card:`_card_wduos_11`,inline:`_inline_wduos_19`,screen:`_screen_wduos_24`,icon:`_icon_wduos_31`,title:`_title_wduos_41`,sub:`_sub_wduos_45`,iconWash:`_iconWash_wduos_58`,error:`_error_wduos_76`,actions:`_actions_wduos_97`,cta:`_cta_wduos_106`,ctaOutline:`_ctaOutline_wduos_126`,ctaGhost:`_ctaGhost_wduos_142`},ie={solid:``,outline:`ctaOutline`,ghost:`ctaGhost`};function ae({label:e,onClick:t,href:n,variant:r=`solid`,icon:i}){let a=`${W.cta} ${W[ie[r]]??``}`.trim(),s=(0,o.jsxs)(o.Fragment,{children:[i!=null&&(0,o.jsx)(`span`,{className:W.ctaIcon,"aria-hidden":`true`,children:i}),e]});return n==null?(0,o.jsx)(`button`,{type:`button`,className:a,onClick:t,children:s}):(0,o.jsx)(`a`,{className:a,href:n,onClick:t,children:s})}var oe=e=>typeof e==`number`?`${e}px`:e,se={inline:`inline`,screen:`screen`,card:`card`};function ce({icon:e,iconWash:t=!1,title:n,subtitle:r,actions:i,variant:a,tone:s,actionsGap:c,className:l=``,style:u}){let d=[W.es,a?W[se[a]]:``,s===`error`?W.error:``,l].filter(Boolean).join(` `),f=c??(s===`error`?40:void 0),p=f==null?u:{...u,"--es-actions-gap":oe(f)},m=Array.isArray(i);return(0,o.jsxs)(`div`,{className:d,style:p,children:[e!=null&&(0,o.jsx)(`div`,{className:`${W.icon} ${t?W.iconWash:``}`.trim(),"aria-hidden":`true`,children:e}),n!=null&&(0,o.jsx)(`p`,{className:W.title,children:n}),r!=null&&(0,o.jsx)(`p`,{className:W.sub,children:r}),m?i.length>0&&(0,o.jsx)(`div`,{className:W.actions,children:i.map((e,t)=>(0,o.jsx)(ae,{...e},t))}):i!=null&&(0,o.jsx)(`div`,{className:W.actions,children:i})]})}var G=0,K=new Set,q=()=>K.forEach(e=>e());function J(){return G>0}function le(){G++,q();let e=!1;return()=>{e||(e=!0,G--,q())}}function ue(e){return K.add(e),()=>K.delete(e)}var de=`a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])`;function fe(e,t){(0,x.useEffect)(()=>{let n=e.current;if(!t||!n)return;let r=document.activeElement;n.focus();let i=e=>{if(e.key!==`Tab`)return;let t=n.querySelectorAll(de);if(!t.length){e.preventDefault(),n.focus();return}let r=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),r.focus())};return document.addEventListener(`keydown`,i,!0),()=>{document.removeEventListener(`keydown`,i,!0),r instanceof HTMLElement&&!J()&&r.focus()}},[e,t])}var Y={backdrop:`_backdrop_14nf4_5`,dim:`_dim_14nf4_2`,fadeIn:`_fadeIn_14nf4_1`,pop:`_pop_14nf4_36`,popIn:`_popIn_14nf4_1`},pe={backdrop:!0,dim:!0,backdropClickCloses:!0},X=[],me=0,Z=new Set,he=()=>Z.forEach(e=>e()),Q=e=>{let t=X.find(t=>t.id===e);t&&(X=X.filter(t=>t.id!==e),he(),t.options.onClose?.())};function ge(){X.length>0&&Q(X[X.length-1].id)}function _e(e){return Z.add(e),()=>Z.delete(e)}function ve(){return X.length>0}function ye(e,t){let n=++me;return X=[...X,{id:n,render:e,options:{...pe,...t}}],he(),()=>Q(n)}var be=e=>(Z.add(e),()=>Z.delete(e)),xe=()=>X;function Se({node:e,isTop:t,locked:n}){let r=(0,x.useRef)(null),i=()=>Q(e.id),a=e.render(i);return fe(r,t&&!n),e.options.backdrop?(0,o.jsx)(`div`,{ref:r,className:e.options.dim?`${Y.backdrop} ${Y.dim}`:Y.backdrop,tabIndex:-1,onClick:e.options.backdropClickCloses?i:void 0,children:e.options.dim?(0,o.jsx)(`div`,{className:Y.pop,children:a}):a}):(0,o.jsx)(o.Fragment,{children:a})}function Ce(){let e=(0,x.useSyncExternalStore)(be,xe),t=(0,x.useSyncExternalStore)(ue,J);return(0,o.jsx)(o.Fragment,{children:e.map((n,r)=>(0,o.jsx)(Se,{node:n,isTop:r===e.length-1,locked:t},n.id))})}function $(e){return new Promise(t=>{let n=!1,r=e=>{n||(n=!0,t(e))};ye(t=>(0,o.jsx)(R,{title:e.title,onClose:t,width:e.width??420,actionsEqual:e.actionsEqual??e.actions.length===2,actions:e.actions.map(e=>(0,o.jsx)(s,{variant:e.variant??`primary`,onClick:()=>{r(e.id),t()},children:e.label},e.id)),children:e.body}),{onClose:()=>r(null)})})}function we(e){return $({title:e.title,body:e.body,actions:[{id:`cancel`,label:e.cancelLabel??`Cancel`,variant:`ghost`},{id:`confirm`,label:e.confirmLabel??`Confirm`,variant:e.confirmVariant??`primary`}]}).then(e=>e===`confirm`)}function Te({size:e=16,className:t,stroke:n=`#fff`,strokeWidth:r=2.2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M7 12.5l3 3 7-7`,fill:`none`,stroke:n,strokeWidth:r,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Ee({size:e=16,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z`,fill:`currentColor`})})}function De({size:e=16,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M9 4 7.5 6H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-2.5L15 4H9Zm3 5a4.2 4.2 0 1 1 0 8.4A4.2 4.2 0 0 1 12 9Zm0 2a2.2 2.2 0 1 0 0 4.4A2.2 2.2 0 0 0 12 11Z`,fill:`currentColor`})})}function Oe({size:e=16,className:t}){return(0,o.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:[(0,o.jsx)(`circle`,{cx:`12.5`,cy:`4.5`,r:`2`,fill:`currentColor`}),(0,o.jsx)(`path`,{d:`M9 8.6 12.6 7l3 1.7v3.5h-1.8V9.8l-1-.5v2.8l2.3 2.2-.7 6.6-1.8-.2.6-5.7-1.9-1.8-1.2 5.8-1.7-.4 1.5-7.1-1.6-.9v3.2H7.7V9.6L9 8.6Z`,fill:`currentColor`})]})}function ke({size:e=16,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M8.5 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-7 1.5C5.5 12.5 2 14 2 16.5V19h8v-2.5c0-1 .5-2 1.4-2.7a7 7 0 0 0-2.9-.8Zm7 0c-.6 0-1.2.1-1.8.2 1 .8 1.8 1.8 1.8 3.3V19h6v-2.5c0-2.5-3.5-4-6-4Z`,fill:`currentColor`})})}function Ae({size:e=20,className:t,strokeWidth:n=2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M6 9l6 6 6-6`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`,strokeLinejoin:`round`})})}function je({size:e=20,className:t,strokeWidth:n=2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M18 15l-6-6-6 6`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Me({size:e=13,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M12 2 3 12l9 10 9-10L12 2Z`,fill:`currentColor`})})}function Ne({size:e=18,className:t,strokeWidth:n=2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M12 5v14M5 12h14`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`})})}function Pe({size:e=18,className:t,strokeWidth:n=2}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M5 12h14`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`})})}function Fe({size:e=18,className:t}){return(0,o.jsx)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`currentColor`,"aria-hidden":`true`,className:t,children:(0,o.jsx)(`path`,{d:`M19.14 12.94a7.49 7.49 0 0 0 .05-.94 7.49 7.49 0 0 0-.05-.94l2.03-1.58a.5.5 0 0 0 .12-.62l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7 7 0 0 0-1.62-.94l-.36-2.54a.49.49 0 0 0-.49-.42h-3.84a.49.49 0 0 0-.49.42l-.36 2.54a7 7 0 0 0-1.62.94l-2.39-.96a.5.5 0 0 0-.6.22L2.74 8.86a.5.5 0 0 0 .12.62l2.03 1.58a7.49 7.49 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.62l1.92 3.32a.5.5 0 0 0 .6.22l2.39-.96a7 7 0 0 0 1.62.94l.36 2.54a.49.49 0 0 0 .49.42h3.84a.49.49 0 0 0 .49-.42l.36-2.54a7 7 0 0 0 1.62-.94l2.39.96a.5.5 0 0 0 .6-.22l1.92-3.32a.5.5 0 0 0-.12-.62l-2.03-1.58zM12 15.6A3.6 3.6 0 1 1 12 8.4a3.6 3.6 0 0 1 0 7.2z`})})}function Ie({size:e=16,className:t,strokeWidth:n=1.6}){return(0,o.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,fill:`none`,"aria-hidden":`true`,className:t,children:[(0,o.jsx)(`rect`,{x:`9`,y:`9`,width:`11`,height:`11`,rx:`2`,stroke:`currentColor`,strokeWidth:n}),(0,o.jsx)(`path`,{d:`M5 15V5a2 2 0 0 1 2-2h8`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`})]})}export{R as A,f as B,ue as C,H as D,ne as E,C as F,s as H,b as I,v as L,A as M,O as N,te as O,T as P,g as R,le as S,re as T,i as U,u as V,n as W,we as _,Ie as a,fe as b,Pe as c,Ne as d,Oe as f,ye as g,ve as h,je as i,j,ee as k,ke as l,ge as m,Te as n,Fe as o,Ce as p,Ae as r,Me as s,De as t,Ee as u,$ as v,ce as w,J as x,_e as y,m as z};
@@ -0,0 +1,8 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Showcase-BsVH9M01.js","assets/design-BBe2V9nf.js","assets/rolldown-runtime-D9-fqq9M.js","assets/design-BGhsZiMc.css","assets/menus-DCRhTuhL.js","assets/menus-D_sZJC0D.css"])))=>i.map(i=>d[i]);
2
+ import{A as e,F as t,H as n,I as r,L as i,N as a,R as o,S as s,U as c,W as l,_ as u,a as d,b as f,c as p,d as m,f as h,g,i as ee,j as te,k as _,n as v,o as ne,p as y,r as re,t as ie,z as b}from"./design-BBe2V9nf.js";import{n as ae,t as x}from"./vendor-Cg2MrLNC.js";import{A as S,B as C,C as w,D as T,E,F as oe,H as se,I as ce,L as le,M as D,N as O,O as ue,P as de,R as fe,S as k,T as pe,U as me,V as he,_ as ge,a as _e,b as ve,c as ye,d as be,f as xe,g as Se,h as Ce,i as we,j as Te,k as Ee,l as De,m as Oe,n as ke,o as Ae,p as je,r as Me,s as Ne,t as Pe,u as Fe,v as Ie,w as Le,x as Re,y as ze,z as Be}from"./menus-DCRhTuhL.js";import{a as Ve,i as He,n as Ue,o as We,r as Ge,t as Ke}from"./emoji-DrfHOLaz.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var A=l(),qe=x(),Je=class{ch;pending=new Map;listeners=new Set;constructor(e=me()){this.ch=new BroadcastChannel(e),this.ch.onmessage=e=>{let t=e.data;t?.to===`page`&&this.handle(t.msg)}}getPreviousLogin(){return this.rpc(`getPreviousLogin`)}loginPrevious(){return this.rpc(`loginPrevious`)}loginGuest(){return this.rpc(`loginGuest`)}loginCancel(){return this.rpc(`loginCancel`)}logout(){return this.rpc(`logout`)}loginWithIdentity(e){return this.rpc(`loginIdentity`)}async jumpIn(){let e=await this.rpc(`loginPrevious`);if(e&&e.success===!1)throw Error(e.error||`Could not reuse your login`)}async loginNew(){let e=await this.rpc(`loginNew`);if(e&&e.success===!1)throw Error(e.error||`Sign-in failed`)}send(e){this.ch.postMessage({to:`scene`,msg:e})}on(e){return this.listeners.add(e),()=>this.listeners.delete(e)}dispose(){this.ch.close(),this.pending.clear(),this.listeners.clear()}rpc(e){let t=crypto.randomUUID();return new Promise((n,r)=>{this.pending.set(t,{resolve:n,reject:r}),this.send({kind:`rpc:req`,id:t,method:e})})}handle(e){if(e.kind===`rpc:res`){let t=this.pending.get(e.id);if(!t)return;this.pending.delete(e.id),e.ok?t.resolve(e.value):t.reject(Error(e.error??`bridge rpc failed`));return}this.listeners.forEach(t=>t(e))}};function Ye(e){return btoa(JSON.stringify(e))}var Xe=class{rpc;ch;listeners=new Set;playerReadyFired=!1;readyFallbackTimer=null;constructor(e){this.rpc=e,this.ch=new BroadcastChannel(me()),this.ch.onmessage=e=>{let t=e.data;t?.to===`page`&&(t.msg.kind===`event`&&t.msg.name===`playerReady`&&(this.playerReadyFired=!0),this.emit(t.msg))}}async getPreviousLogin(){let e=he();return{userId:e?se(e.identity):null}}async loginPrevious(e){let t=e===!0?` --default-on-error`:``,n=await this.rpc.command(`/login_previous${t}`);return this.scheduleReadyFallback(),n}async loginGuest(){await this.rpc.command(`/login_guest`),this.scheduleReadyFallback()}async loginCancel(){}async logout(){await this.rpc.command(`/logout`)}async loginWithIdentity(e,t){let n=t===!0?` --default-on-error`:``;await this.rpc.command(`/login_identity ${Ye(e)}${n}`),this.scheduleReadyFallback()}async jumpIn(e){let t=he();t?await this.loginWithIdentity(t.identity,e):await this.loginPrevious(e)}send(e){this.ch.postMessage({to:`scene`,msg:e})}on(e){return this.listeners.add(e),()=>this.listeners.delete(e)}dispose(){this.readyFallbackTimer!=null&&clearTimeout(this.readyFallbackTimer),this.ch.close(),this.listeners.clear()}renderBusy(){return this.rpc.renderBusy()}engineReady(){return this.rpc.readyToLaunch()}loadProgress(){return this.rpc.loadProgress()}loadStep(){return this.rpc.loadStep()}enginePanic(){return this.rpc.enginePanic()}clearEnginePanic(){this.rpc.clearEnginePanic()}rearmCrashWatchdog(){this.rpc.rearmCrashWatchdog()}launch(e,t){this.rpc.launch(e,t)}emit(e){this.listeners.forEach(t=>t(e))}scheduleReadyFallback(){this.readyFallbackTimer!=null&&clearTimeout(this.readyFallbackTimer),this.readyFallbackTimer=setTimeout(()=>{this.readyFallbackTimer=null,this.playerReadyFired||(this.playerReadyFired=!0,this.emit({kind:`event`,name:`playerReady`}))},6e3)}},Ze=class{win=null;setWindow(e){this.win=e}readyToLaunch(){return this.win?.__bevyReadyToLaunch===!0}loadProgress(){return this.win?.__bevyLoadProgress??0}loadStep(){return this.win?.__bevyLoadStep??null}enginePanic(){return this.win?.__bevyPanic??null}clearEnginePanic(){this.win&&(this.win.__bevyPanic=void 0)}rearmCrashWatchdog(){this.win?.__rearmCrashWatchdog?.()}launch(e,t){this.win?.__bevyLaunch?.(e,t)}ready(){return typeof this.win?.engine_console_command==`function`}async waitReady(e=9e4){let t=performance.now();for(;!this.ready();){if(performance.now()-t>e)throw Error(`engine RPC did not become ready in time`);await new Promise(e=>setTimeout(e,150))}}async command(e){return await this.waitReady(),this.win.engine_console_command(e)}renderBusy(){try{let e=this.win,t=e?.document.getElementById(`shader-compiling`);return t!=null&&e.getComputedStyle(t).display!==`none`}catch{return!1}}};function Qe(e,t,n){return{address:e,name:t,picture:`https://profile-images.decentraland.org/entities/bafkreid5btlh76opew65hxu6dtkdo6ybqhymdof6vrrmjy2p5a74oy4huq/face.png`,bodyImage:`https://picsum.photos/seed/${encodeURIComponent(e)}/360/760`,hasClaimedName:!t.includes(`#`),isGuest:n,description:`Exploring Decentraland one plaza at a time. 🌅 DCL citizen since 2022.`,links:[{title:`Twitter`,url:`https://twitter.com`},{title:`Discord`,url:`https://discord.com`}],mutuals:30,badges:Array.from({length:8},(e,t)=>({id:`b${t}`,name:`Badge ${t+1}`,tier:[`bronze`,`silver`,`gold`][t%3],image:`https://picsum.photos/seed/badge${t}/96/96`})),photos:Array.from({length:6},(e,t)=>`https://picsum.photos/seed/photo${t}/300/300`),info:{gender:`Male`,birthdate:`26/11/1991`,pronouns:`He / Him`,relationship:`Single`,language:`Persian`,profession:`IT`,employment:`Chilling`,hobby:`games.movie.party`,realName:`mohammad`}}}var $e=[{address:`0x5854cce95d5e25817b41f4c41f06b695a83bc495`,name:`Mojito`,picture:`https://profile-images.decentraland.org/entities/bafkreid5btlh76opew65hxu6dtkdo6ybqhymdof6vrrmjy2p5a74oy4huq/face.png`},{address:`0x6723dcb07f3ca735223cd1c0acfa62dd994a1bb4`,name:`Sharknado`,picture:`https://profile-images.decentraland.org/entities/bafkreie5bpho47gnh3jrfxoezwc4pxffup4cmmhmdxsmpf3oslopxb4enm/face.png`},{address:`0x1e105bb213754519903788022b962fe2b9c4b263`,name:`Pravus`,picture:`https://profile-images.decentraland.org/entities/bafkreig4xay5oxgbf75hwkjefx5hgdcdvm6a4tnpiisltslxf4jtajkbyq/face.png`},{address:`0x9f8c2a1b4d6e7f0a3b5c8d9e1f2a4b6c8d0e1f23`,name:`Johnny`},{address:`0x3a1b2c4d5e6f7081920a3b4c5d6e7f8091a2b3c4`,name:`Clara`},{address:`0x77a0b1c2d3e4f5061728394a5b6c7d8e9f001122`,name:`SpottyGoat`},{address:`0xc0ffee254729296a45a3885639ac7e10f9d54979`,name:``}],j=[{id:`c1`,name:`Decentraland Foundation`,description:`The official Decentraland Foundation community. Stay up to date with events, releases and everything happening across the metaverse.`,thumbnail:`https://picsum.photos/seed/dcl/540/360`,membersCount:1242,role:`member`,ownerName:`DCLOfficial`,privacy:`public`},{id:`c2`,name:`Chiri Storytelling`,description:`This space brings to life Chiri's adventures. Gathering cozy Social Gamers, Creators, Digi Fashion lovers, Virtual Citizens & more!`,thumbnail:``,membersCount:374,role:`none`,ownerName:`Chiri`,privacy:`private`},{id:`c3`,name:`VTATV`,description:`Virtual television and live shows broadcast from inside Decentraland.`,thumbnail:``,membersCount:186,role:`none`,ownerName:`VTATV`},{id:`c4`,name:`ABC Decentraland`,description:`Adventures and education for newcomers to the metaverse.`,thumbnail:``,membersCount:436,role:`none`,ownerName:`BillyTeacoin`},{id:`c5`,name:`Toxic Events`,description:`The wildest parties and events in DCL.`,thumbnail:``,membersCount:601,role:`member`,ownerName:`ToxicWaifu`},{id:`c6`,name:`Last Slice Creators`,description:`A community of pizza-loving 3D creators.`,thumbnail:``,membersCount:164,role:`none`,ownerName:`Lastraum`},{id:`c7`,name:`SheFi`,description:`Empowering women in web3 and DeFi.`,thumbnail:``,membersCount:310,role:`none`,ownerName:`msjoedor`},{id:`c8`,name:`Community Building DCL`,description:`Helping communities grow in Decentraland.`,thumbnail:``,membersCount:639,role:`owner`,ownerName:`TheCryptKeeper`}],et=[`base`,`common`,`uncommon`,`rare`,`epic`,`legendary`,`mythic`,`unique`,`exotic`],tt=e=>`https://peer.decentraland.org/lambdas/collections/contents/${e}/thumbnail`,nt=[{name:`casual_hair_01`,category:`hair`,label:`Casual Hair`},{name:`cornrows`,category:`hair`,label:`Cornrows`},{name:`hair_anime_01`,category:`hair`,label:`Anime Hair`},{name:`eyebrows_00`,category:`eyebrows`,label:`Eyebrows`},{name:`mouth_00`,category:`mouth`,label:`Mouth`},{name:`beard`,category:`facial_hair`,label:`Beard`},{name:`granpa_beard`,category:`facial_hair`,label:`Grandpa Beard`},{name:`f_sweater`,category:`upper_body`,label:`Sweater`},{name:`m_greenhoodie`,category:`upper_body`,label:`Green Hoodie`},{name:`blue_tshirt`,category:`upper_body`,label:`Blue T-Shirt`},{name:`sport_jacket`,category:`upper_body`,label:`Sport Jacket`},{name:`f_jeans`,category:`lower_body`,label:`Jeans`},{name:`f_brown_trousers`,category:`lower_body`,label:`Brown Trousers`},{name:`basketball_shorts`,category:`lower_body`,label:`Basketball Shorts`},{name:`sneakers`,category:`feet`,label:`Sneakers`},{name:`bun_shoes`,category:`feet`,label:`Bun Shoes`},{name:`m_greenflipflops`,category:`feet`,label:`Flip Flops`},{name:`hat`,category:`hat`,label:`Hat`},{name:`bandana`,category:`hat`,label:`Bandana`},{name:`black_sun_glasses`,category:`eyewear`,label:`Sunglasses`},{name:`piratepatch`,category:`eyewear`,label:`Pirate Patch`},{name:`blue_bandana`,category:`mask`,label:`Blue Bandana`},{name:`pink_gem_earring`,category:`earring`,label:`Pink Gem Earring`},{name:`Thunder_earring`,category:`earring`,label:`Thunder Earring`}].map((e,t)=>{let n=`urn:decentraland:off-chain:base-avatars:${e.name}`;return{urn:n,name:e.label,rarity:et[t%et.length],category:e.category,thumbnail:tt(n),equipped:t%6==0}}),rt=`urn:decentraland:off-chain:base-avatars:BaseMale`,it=e=>({bodyShape:rt,eyes:{color:{r:.37,g:.22,b:.19}},hair:{color:{r:.6,g:.36,b:.2}},skin:{color:{r:.8,g:.6,b:.47}},wearables:e,forceRender:[]}),at=[{urn:`urn:decentraland:off-chain:base-avatars:thug_life`,name:`Off-catalog Eyewear`,rarity:`epic`,category:`eyewear`,thumbnail:tt(`urn:decentraland:off-chain:base-avatars:black_sun_glasses`),equipped:!0}],ot=()=>[...nt.filter(e=>e.equipped),...at],M=e=>({name:e,description:``}),st=[{name:`fullscreen`,category:`general`,description:`Run in fullscreen mode.`,minValue:0,maxValue:1,namedVariants:[M(`Off`),M(`On`)],value:1,default:1,stepSize:1},{name:`resolution`,category:`general`,description:``,minValue:0,maxValue:2,namedVariants:[M(`1280 × 720`),M(`1920 × 1080`),M(`2560 × 1440`)],value:1,default:1,stepSize:1},{name:`graphics_quality`,category:`graphics`,description:`Overall visual quality.`,minValue:0,maxValue:3,namedVariants:[M(`Low`),M(`Medium`),M(`High`),M(`Ultra`)],value:2,default:1,stepSize:1},{name:`fps_limit`,category:`graphics`,description:`Cap the frame rate.`,minValue:30,maxValue:144,namedVariants:[],value:60,default:60,stepSize:1},{name:`master_volume`,category:`audio`,description:``,minValue:0,maxValue:100,namedVariants:[],value:80,default:100,stepSize:1},{name:`voice_chat`,category:`audio`,description:`Enable voice chat.`,minValue:0,maxValue:1,namedVariants:[M(`Off`),M(`On`)],value:1,default:1,stepSize:1}],ct=()=>[[{Scene:`IaPointer`},[`Mouse Left`,`Gamepad LeftTrigger2`]],[{Scene:`IaPrimary`},[`KeyE`,`Gamepad South`]],[{Scene:`IaSecondary`},[`KeyF`,`Gamepad East`]],[{Scene:`IaForward`},[`KeyW`,`GamepadLeft Up`]],[{Scene:`IaBackward`},[`KeyS`,`GamepadLeft Down`]],[{Scene:`IaRight`},[`KeyD`,`GamepadLeft Right`]],[{Scene:`IaLeft`},[`KeyA`,`GamepadLeft Left`]],[{Scene:`IaJump`},[`Space`,`Gamepad North`]],[{Scene:`IaWalk`},[`ControlLeft`]],[{Scene:`IaModifier`},[`ShiftLeft`]],[{Scene:`IaAction3`},[`Digit1`,`Gamepad DPadUp`]],[{Scene:`IaAction4`},[`Digit2`,`Gamepad DPadRight`]],[{Scene:`IaAction5`},[`Digit3`,`Gamepad DPadDown`]],[{Scene:`IaAction6`},[`Digit4`,`Gamepad DPadLeft`]],[{System:`CameraLock`},[`Mouse Right`,`Gamepad RightTrigger2`]],[{System:`Emote`},[`KeyB`,`Gamepad West`]],[{System:`Cancel`},[`Escape`,`Gamepad Select`]],[{System:`HideUi`},[`KeyU`]],[{System:`ShowDebugUi`},[`PageUp`]],[{System:`HideNames`},[`KeyN`]],[{System:`RollLeft`},[]],[{System:`RollRight`},[]],[{System:`PointAt`},[`Mouse Middle`,`KeyQ`]],[{System:`Microphone`},[`KeyV`]],[{System:`Map`},[`KeyM`,`Tab`]],[{System:`Chat`},[`Enter`,`NumpadEnter`]],[{System:`CameraUp`},[`ArrowUp`]],[{System:`CameraDown`},[`ArrowDown`]],[{System:`CameraLeft`},[`ArrowLeft`]],[{System:`CameraRight`},[`ArrowRight`]],[{System:`CameraZoomIn`},[`MouseWheel Up`,`Gamepad LeftTrigger`]],[{System:`CameraZoomOut`},[`MouseWheel Down`,`Gamepad RightTrigger`]],[{System:`ScrollUp`},[`MouseWheel Up`,`GamepadLeft Up`]],[{System:`ScrollDown`},[`MouseWheel Down`,`GamepadLeft Down`]],[{System:`ScrollLeft`},[`MouseWheel Left`,`GamepadLeft Left`]],[{System:`ScrollRight`},[`MouseWheel Right`,`GamepadLeft Right`]],[{System:`PointerUp`},[`GamepadRight Up`]],[{System:`PointerDown`},[`GamepadRight Down`]],[{System:`PointerLeft`},[`GamepadRight Left`]],[{System:`PointerRight`},[`GamepadRight Right`]],...Array.from({length:10},(e,t)=>[{System:`QuickEmote${t}`},[`Numpad${t}`]]),[{System:`Places`},[`KeyZ`]],[{System:`Communities`},[`KeyO`]],[{System:`Backpack`},[`KeyI`]],[{System:`Gallery`},[`KeyG`]],[{System:`Settings`},[`KeyP`]],[{System:`Friends`},[`KeyL`]],[{System:`ChatPanel`},[`KeyT`]]],lt={hasPreviousLogin:new URLSearchParams(location.search).get(`previousLogin`)===`1`,userId:`0xmock00000000000000000000000000000000beef`,latency:600};function ut(e){let t=`single-sign-on-${e.userId}`;e.hasPreviousLogin?localStorage.getItem(t)||localStorage.setItem(t,JSON.stringify({ephemeralIdentity:{address:`0xeeee000000000000000000000000000000000001`,publicKey:`0x04`,privateKey:`0x`+`11`.repeat(32)},expiration:new Date(Date.now()+720*3600*1e3).toISOString(),authChain:[{type:`SIGNER`,payload:e.userId,signature:``},{type:`ECDSA_EPHEMERAL`,payload:`Decentraland Login
3
+ Ephemeral address: 0xeeee
4
+ Expiration: `,signature:`0xabc`}]})):localStorage.removeItem(t)}function dt(e={}){let t={...lt,...e};ut(t);let n=17e11,r=[{id:`n1`,type:`social_service_friendship_accepted`,read:!1,timestamp:new Date(n).toISOString(),metadata:{sender:{address:`0x5854cce95d5e25817b41f4c41f06b695a83bc495`,name:`Mojito`,profileImageUrl:`https://profile-images.decentraland.org/entities/bafkreid5btlh76opew65hxu6dtkdo6ybqhymdof6vrrmjy2p5a74oy4huq/face.png`}}},{id:`n2`,type:`social_service_friendship_request`,read:!1,timestamp:new Date(n-18e5).toISOString(),metadata:{sender:{address:`0x6723dcb07f3ca735223cd1c0acfa62dd994a1bb4`,name:`Sharknado`,profileImageUrl:`https://profile-images.decentraland.org/entities/bafkreie5bpho47gnh3jrfxoezwc4pxffup4cmmhmdxsmpf3oslopxb4enm/face.png`}}},{id:`n3`,type:`item_sold`,read:!1,timestamp:new Date(n-36e5).toISOString(),metadata:{title:`Item sold`,description:`Your “Sunset Hoodie” sold for 120 MANA.`,image:`https://profile-images.decentraland.org/entities/bafkreie5bpho47gnh3jrfxoezwc4pxffup4cmmhmdxsmpf3oslopxb4enm/face.png`}},{id:`n4`,type:`event_started`,read:!0,timestamp:new Date(n-864e5).toISOString(),metadata:{title:`Event live`,description:`Music Festival is happening now in Genesis Plaza.`}},{id:`n5`,type:`community_post_added`,read:!1,timestamp:new Date(n-24e5).toISOString(),metadata:{communityName:`Toxic Events`,communityId:`c5`,thumbnailUrl:`https://picsum.photos/seed/dcl/80/80`}},{id:`n6`,type:`credits_reminder_claim_credits`,read:!1,timestamp:new Date(n-54e5).toISOString(),metadata:{}}],i=Array.from({length:14},(e,t)=>({id:`g${t}`,url:`https://picsum.photos/seed/reel${t}/1200/800`,thumbnailUrl:`https://picsum.photos/seed/reel${t}/400/300`,isPublic:t%2==0,dateTime:String(Math.floor((n-t*3*864e5)/1e3))})),a={outfits:[{slot:0,outfit:it(nt.slice(0,5).map(e=>e.urn))},{slot:2,outfit:it(nt.slice(5,10).map(e=>e.urn))}],namesForExtraSlots:[]},o=new BroadcastChannel(me()),s=e=>new Promise(t=>setTimeout(t,e)),c=e=>{o.postMessage({to:`page`,msg:e})},l=null,u=null,d=ct(),f=null,p=!1,m=e=>{let t=d.find(([t,n])=>`System`in t&&n.includes(e));return t!=null&&`System`in t[0]?t[0].System:null},h=(e,t)=>{if(e.repeat)return;if(f!=null){if(!t)return;c({kind:`inputCaptured`,id:f,input:e.code}),f=null;return}if(p)return;let n=m(e.code);n!=null&&(c({kind:`systemAction`,action:n,pressed:t}),n===`Chat`&&t&&c({kind:`focusChat`}))},g=e=>h(e,!0),ee=e=>h(e,!1),te=[`Mouse Left`,`Mouse Middle`,`Mouse Right`,`Mouse Back`,`Mouse Forward`],_=e=>{f!=null&&(c({kind:`inputCaptured`,id:f,input:te[e.button]??`Mouse Left`}),f=null)};window.addEventListener(`keydown`,g),window.addEventListener(`keyup`,ee),window.addEventListener(`pointerdown`,_,!0);let v=()=>{setTimeout(()=>{c({kind:`event`,name:`playerReady`}),c({kind:`chatVisibility`,open:!0});let e=[564,60,0],t=n=>{let r=e[n];c({kind:`sceneLoading`,state:{visible:r>0,realmConnected:!0,title:`Genesis Plaza`,pendingAssets:r>0?r:null}}),r>0&&setTimeout(()=>t(n+1),250)};t(0)},500),c({kind:`realmInfo`,realm:`https://realm-provider.decentraland.org/main`,isWorld:!1}),c({kind:`sceneInfo`,title:`Genesis Plaza`});let e=0;u=setInterval(()=>{e+=.05;let t=e*.08,n=Math.cos(t)*40,r=Math.sin(t)*40,i=Math.atan2(-Math.sin(t),Math.cos(t))*180/Math.PI;c({kind:`playerPose`,x:n,z:r,yaw:i,camYaw:i})},50),setTimeout(()=>c({kind:`members`,members:$e}),1400);let t=Number(new URLSearchParams(location.search).get(`simhover`)??0);if(t>0){let e=[{button:0,text:`Show Profile`,enabled:!0},{button:1,text:`Open`,enabled:!0},{button:2,text:`Inspect`,enabled:!0},{button:8,text:`Jump`,enabled:!0},{button:4,text:`Grab`,enabled:!1,tooFarReason:`camera`},{button:10,text:`Use`,enabled:!0},{button:11,text:`Activate`,enabled:!0}].slice(0,Math.min(t,7));setTimeout(()=>c({kind:`hover`,actions:e}),1500)}setTimeout(()=>c({kind:`friends`,available:!0,friends:[{address:`0x5854cce95d5e25817b41f4c41f06b695a83bc495`,name:`Mojito`,status:`online`,picture:`https://profile-images.decentraland.org/entities/bafkreid5btlh76opew65hxu6dtkdo6ybqhymdof6vrrmjy2p5a74oy4huq/face.png`},{address:`0x6723dcb07f3ca735223cd1c0acfa62dd994a1bb4`,name:`Sharknado`,status:`online`},{address:`0x1e105bb213754519903788022b962fe2b9c4b263`,name:`Pravus`,status:`away`},{address:`0x3a1b2c4d5e6f7081920a3b4c5d6e7f8091a2b3c4`,name:`Clara#1l0u`,status:`offline`}],received:[{id:`r1`,address:`0x77a0b1c2d3e4f5061728394a5b6c7d8e9f001122`,name:`SpottyGoat`,message:`Met you at the plaza!`}],sent:[{id:`s1`,address:`0x9f8c2a1b4d6e7f0a3b5c8d9e1f2a4b6c8d0e1f23`,name:`Johnny`}],blocked:[]}),1600),setTimeout(()=>c({kind:`settings`,settings:st}),1700),[[`0x5854cce95d5e25817b41f4c41f06b695a83bc495`,`gm everyone 👋`],[`0x6723dcb07f3ca735223cd1c0acfa62dd994a1bb4`,`anyone going to the event?`],[`0x1e105bb213754519903788022b962fe2b9c4b263`,`this plaza looks great`]].forEach(([e,t],n)=>setTimeout(()=>c({kind:`chat`,chat:{sender:e,message:t,channel:`Nearby`}}),2500+n*2200)),new URLSearchParams(location.search).get(`perm`)===`1`&&setTimeout(()=>c({kind:`permissionRequest`,id:1,ty:`ChangeRealm`,sceneName:`Genesis Plaza`,scene:`bafkreigenesisplazahash`,realm:`https://realm-provider.decentraland.org/main`,additional:`Jump to DCL Kickoff Challenge?`}),3e3)};return o.onmessage=async e=>{let n=e.data;if(n?.to!==`scene`)return;let o=n.msg;if(await s(t.latency),o.kind===`sendChat`){c({kind:`chat`,chat:{sender:`You`,message:o.message,channel:o.channel}});return}if(o.kind!==`navAction`&&o.kind!==`friendAction`){if(o.kind===`getSettings`){c({kind:`settings`,settings:st});return}if(o.kind===`setSetting`){let e=st.find(e=>e.name===o.name);e&&(e.value=o.value),c({kind:`settings`,settings:st});return}if(o.kind===`getBindings`){c({kind:`bindings`,bindings:d});return}if(o.kind===`setBindings`){d=o.bindings,c({kind:`bindings`,bindings:d});return}if(o.kind===`resetBindings`){d=ct(),c({kind:`bindings`,bindings:d});return}if(o.kind===`captureInput`){f=o.id;return}if(o.kind===`uiFocus`){p=o.text;return}if(o.kind===`getEmotes`){c({kind:`emotes`,emotes:[`Hands Air`,`Wave`,`Fist Pump`,`Dance`,`Raise Hand`,`Clap`,`Money`,`Kiss`,`Head Explode`,`Shrug`].map((e,t)=>({slot:t,urn:`urn:decentraland:off-chain:base-emotes:${e.toLowerCase().replace(/ /g,``)}`,name:e,rarity:`base`}))});return}if(o.kind!==`triggerEmote`&&o.kind!==`equipEmote`){if(o.kind===`getWearables`){c({kind:`wearables`,equipped:ot()});return}if(o.kind===`catalogQuery`){if(o.catalog!==`wearables`){c({kind:`catalogPage`,catalog:o.catalog,items:[],total:0,requestId:o.requestId});return}let e=nt.slice();o.category!=null&&o.category!==`all`&&(e=e.filter(e=>e.category===o.category)),o.search!=null&&o.search!==``&&(e=e.filter(e=>(e.name??``).toLowerCase().includes(o.search.toLowerCase()))),o.collectiblesOnly===!0&&(e=e.filter(e=>(e.rarity??`base`)!==`base`));let t=o.direction===`asc`?1:-1;o.orderBy===`name`?e.sort((e,n)=>t*(e.name??``).localeCompare(n.name??``)):o.orderBy===`rarity`&&e.sort((e,n)=>t*(et.indexOf(e.rarity)-et.indexOf(n.rarity)));let n=e.length,r=o.page*o.pageSize;c({kind:`catalogPage`,catalog:`wearables`,items:e.slice(r,r+o.pageSize),total:n,requestId:o.requestId});return}if(o.kind===`equip`){let e=new Set(o.urns);for(let t of nt)t.equipped=e.has(t.urn);c({kind:`wearables`,equipped:ot()});return}if(o.kind===`getOutfits`){c({kind:`outfits`,metadata:a});return}if(o.kind===`saveOutfit`){a.outfits=a.outfits.filter(e=>e.slot!==o.slot),a.outfits.push({slot:o.slot,outfit:it(ot().map(e=>e.urn))}),a.outfits.sort((e,t)=>e.slot-t.slot),c({kind:`outfits`,metadata:a});return}if(o.kind===`deleteOutfit`){a.outfits=a.outfits.filter(e=>e.slot!==o.slot),c({kind:`outfits`,metadata:a});return}if(o.kind===`equipOutfit`){let e=a.outfits.find(e=>e.slot===o.slot);if(e){let t=new Set(e.outfit.wearables);for(let e of nt)e.equipped=t.has(e.urn);c({kind:`wearables`,equipped:ot()})}return}if(o.kind===`setMic`){c({kind:`mic`,enabled:o.enabled,available:!0});return}if(o.kind===`getMap`){c({kind:`mapState`,x:0,y:0});return}if(o.kind!==`engineViewport`&&o.kind!==`minimapConfig`&&o.kind!==`previewAvatar`){if(o.kind===`teleport`){c({kind:`mapState`,x:o.x,y:o.y});return}if(o.kind!==`changeRealm`&&o.kind!==`permissionResolve`){if(o.kind===`getCommunities`){c({kind:`communities`,communities:j});return}if(o.kind===`createCommunity`){j.unshift({id:`new-${j.length}`,name:o.name,description:o.description,thumbnail:``,membersCount:1,role:`owner`,ownerName:`You`,privacy:o.privacy}),c({kind:`communities`,communities:j});return}if(o.kind===`joinCommunity`){let e=j.find(e=>e.id===o.id);e&&(e.role=`member`,e.membersCount+=1),c({kind:`communities`,communities:j});return}if(o.kind===`leaveCommunity`){let e=j.find(e=>e.id===o.id);e&&(e.role=`none`,e.membersCount=Math.max(0,e.membersCount-1)),c({kind:`communities`,communities:j});return}if(o.kind===`getCommunityDetail`){let e=[`DCLOfficial`,`KazeNoKai`,`METAWOLF`,`laurenmae`,`Eax`,`Thund`,`aixa`,`Kimbo`,`BayBackner`,`Rochyou`,`Soultasium`,`franfranfran`,`olavra`,`Meshroom`],t=e=>`0x${(e+1).toString(16).padStart(40,`0`)}`,n=1440*60*1e3;c({kind:`communityDetail`,id:o.id,members:e.map((e,n)=>({address:t(n),name:e,role:n===0?`owner`:n<3?`moderator`:`member`,picture:`https://i.pravatar.cc/80?u=${e}`,hasClaimedName:!0,isFriend:n%5==0})),posts:[{id:`p1`,author:`Kimbo`,authorAddress:t(7),authorPicture:`https://i.pravatar.cc/80?u=Kimbo`,text:`It was TIME for an update. See you all in the new Plaza. Enjoy!`,timestamp:Date.now()-2*n,likes:10},{id:`p2`,author:`Kimbo`,authorAddress:t(7),authorPicture:`https://i.pravatar.cc/80?u=Kimbo`,text:`EPIC Launch Party happening now in the theatre!`,timestamp:Date.now()-16*n,likes:4},{id:`p3`,author:`Kimbo`,authorAddress:t(7),authorPicture:`https://i.pravatar.cc/80?u=Kimbo`,text:`Hey everyone! Happy Epic and Mobile Launch Day!!! Please help us spread the word and get ready to celebrate together on April 2nd! It will be EPIC.`,timestamp:Date.now()-18*n,likes:1}],places:[{id:`pl1`,title:`Music Festival Main Stage`,thumbnail:`https://picsum.photos/seed/mfest/420/260`,positions:`-66,56`,likeRate:1}],photos:Array.from({length:9},(e,t)=>({id:`ph${t}`,url:`https://picsum.photos/seed/dclph${t}/600/600`,thumbnail:`https://picsum.photos/seed/dclph${t}/300/300`})),events:[{id:`e1`,name:`Watch scary movies with Cult Horror Club`,thumbnail:`https://picsum.photos/seed/horror1/200/120`,startsAt:Date.now()+1*n},{id:`e2`,name:`Pride Sound Set with Artist X`,thumbnail:`https://picsum.photos/seed/pride/200/120`,startsAt:Date.now()+1*n+360*60*1e3},{id:`e3`,name:`Join DEEJAY FAMILY at Takeover Tuesdays`,thumbnail:`https://picsum.photos/seed/takeover/200/120`,startsAt:Date.now()+4*n},{id:`e4`,name:`PRIDE: Join Watch Party Wednesdays`,thumbnail:`https://picsum.photos/seed/watch/200/120`,startsAt:Date.now()+5*n}]});return}if(o.kind===`getNotifications`){c({kind:`notifications`,notifications:r});return}if(o.kind===`markNotificationsRead`){for(let e of r)o.ids.includes(e.id)&&(e.read=!0);return}if(o.kind===`getGallery`){c({kind:`gallery`,photos:i,current:i.length,max:500});return}if(o.kind===`getGalleryPhoto`){c({kind:`galleryPhoto`,id:o.id,meta:{userName:t.hasPreviousLogin?`Mojito`:`Guest`,userAddress:t.userId,sceneName:`Genesis Plaza`,x:-9,y:14,realm:`main`,people:$e.slice(0,3).map(e=>({address:e.address,name:e.name||`Guest`,isGuest:!1}))}});return}if(o.kind===`deleteGalleryPhoto`){let e=i.findIndex(e=>e.id===o.id);e>=0&&i.splice(e,1),c({kind:`gallery`,photos:i,current:i.length,max:500});return}if(o.kind===`getProfile`){c({kind:`profile`,profile:Qe(t.userId,t.hasPreviousLogin?`Mojito`:`Guest#beef`,!t.hasPreviousLogin)});return}if(o.kind===`getUserProfile`){let e=$e.find(e=>e.address.toLowerCase()===o.address.toLowerCase())?.name||`${o.address.slice(0,6)}…${o.address.slice(-4)}`;c({kind:`userProfile`,address:o.address,profile:Qe(o.address,e,!1)});return}if(o.kind===`reloadScene`){c({kind:`chat`,chat:{sender:``,message:`Reloading the current scene…`,channel:`Nearby`}});return}if(o.kind===`consoleCommand`){let e=o.args??[],t=o.command===`help`&&e.length===0?`Available commands:
5
+ /help - List available commands
6
+ /teleport - set location
7
+ /crdt_snapshot - (hidden by the HUD)`:`(mock) ran /${o.command} ${e.join(` `)}`.trim();c({kind:`consoleReply`,command:o.command,args:e,ok:!0,output:t});return}switch(o.method){case`getPreviousLogin`:c({kind:`rpc:res`,id:o.id,ok:!0,value:{userId:t.hasPreviousLogin?t.userId:null}});return;case`loginPrevious`:c({kind:`rpc:res`,id:o.id,ok:!0,value:{success:!0,error:``}}),v();return;case`loginGuest`:c({kind:`rpc:res`,id:o.id,ok:!0}),v();return;case`loginIdentity`:c({kind:`rpc:res`,id:o.id,ok:!0}),v();return;case`loginNew`:c({kind:`loginCode`,code:`42`}),l={id:o.id,timer:setTimeout(()=>{l=null,c({kind:`rpc:res`,id:o.id,ok:!0,value:{success:!0,error:``}}),v()},2500)};return;case`loginCancel`:case`logout`:l!=null&&(clearTimeout(l.timer),c({kind:`rpc:res`,id:l.id,ok:!0,value:{success:!1,error:`cancelled`}}),l=null),c({kind:`rpc:res`,id:o.id,ok:!0});return}}}}}},()=>{window.removeEventListener(`keydown`,g),window.removeEventListener(`keyup`,ee),window.removeEventListener(`pointerdown`,_,!0),u!=null&&clearInterval(u),o.close()}}var N=c(),P={root:`_root_byo9o_2`,tabs:`_tabs_byo9o_14`,tab:`_tab_byo9o_14`,tabActive:`_tabActive_byo9o_43`,close:`_close_byo9o_47`,searchRow:`_searchRow_byo9o_63`,searchIcon:`_searchIcon_byo9o_70`,search:`_search_byo9o_63`,body:`_body_byo9o_97`,sectionHeader:`_sectionHeader_byo9o_111`,grid:`_grid_byo9o_123`,emoji:`_emoji_byo9o_128`,noResults:`_noResults_byo9o_145`};function ft({emojis:e,onPick:t}){return(0,N.jsx)(`div`,{className:P.grid,children:e.map(e=>(0,N.jsx)(`button`,{type:`button`,className:P.emoji,title:e.expression,onClick:()=>t(e),children:e.emoji},e.code))})}function pt({onPick:e,onClose:t}){let[n,r]=(0,A.useState)(0),[i,a]=(0,A.useState)(``),[o,s]=(0,A.useState)(()=>He()),c=t=>{e(t.emoji),s(Ve(t.code))},l=i.trim(),u=(0,A.useMemo)(()=>l?We(l,80):[],[l]),d=(0,A.useMemo)(()=>o.map(e=>Ke.get(e)).filter(e=>e!=null),[o]),f=Ue[n];return(0,N.jsxs)(`div`,{className:P.root,role:`dialog`,"aria-label":`Emoji picker`,children:[(0,N.jsxs)(`div`,{className:P.tabs,children:[Ue.map((e,t)=>(0,N.jsx)(`button`,{type:`button`,className:`${P.tab} ${t===n&&!l?P.tabActive:``}`.trim(),title:e.name,onClick:()=>{r(t),a(``)},children:e.icon},e.name)),(0,N.jsx)(`button`,{type:`button`,className:P.close,title:`Close`,onClick:t,children:`×`})]}),(0,N.jsxs)(`div`,{className:P.searchRow,children:[(0,N.jsx)(`span`,{className:P.searchIcon,"aria-hidden":`true`,children:`🔍`}),(0,N.jsx)(`input`,{className:P.search,value:i,onChange:e=>a(e.target.value),placeholder:`Search emoji`,onKeyDown:e=>e.stopPropagation()})]}),(0,N.jsx)(`div`,{className:P.body,children:l?u.length>0?(0,N.jsx)(ft,{emojis:u,onPick:c}):(0,N.jsx)(`div`,{className:P.noResults,children:`No results`}):(0,N.jsxs)(N.Fragment,{children:[d.length>0&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:P.sectionHeader,children:`Frequently used`}),(0,N.jsx)(ft,{emojis:d,onPick:c})]}),(0,N.jsx)(`div`,{className:P.sectionHeader,children:f.name}),(0,N.jsx)(ft,{emojis:f.emojis,onPick:c})]})})]})}var mt=/(?<url>https?:\/\/[^\s<>"']+)|(?<world>[a-z0-9][\w-]*\.(?:dcl\.)?eth\b)|(?<loc>-?\d{1,3}\s*,\s*-?\d{1,3})|(?<mention>@[\w-]+(?:#[\w]+)?)/gi;function ht(e){let t=[],n=0;for(let r of e.matchAll(mt)){let i=r.index??0;i>n&&t.push({type:`text`,value:e.slice(n,i)});let a=r.groups??{};if(a.url)t.push({type:`url`,value:a.url});else if(a.world)t.push({type:`world`,value:a.world});else if(a.loc){let[e,n]=a.loc.split(`,`).map(e=>parseInt(e.trim(),10));t.push({type:`location`,value:a.loc,x:e,y:n})}else if(a.mention){let[e,n]=a.mention.slice(1).split(`#`);t.push({type:`mention`,value:a.mention,name:e,tag:n})}n=i+r[0].length}return n<e.length&&t.push({type:`text`,value:e.slice(n)}),t}function gt(e){let t=new Map;for(let n of e)n.name.trim()&&(t.set(n.name.toLowerCase(),n.address),t.set(n.name.split(`#`)[0].toLowerCase(),n.address));return t}function _t(e,t){return t.get(`${e.name}#${e.tag}`.toLowerCase())??t.get(e.name.toLowerCase())}function vt(e,t,n){if(!t)return!1;let r=t.name?.split(`#`)[0].toLowerCase();return ht(e).some(e=>{if(e.type!==`mention`)return!1;let i=_t(e,n);return i&&t.address&&i.toLowerCase()===t.address.toLowerCase()||!!r&&e.name.toLowerCase()===r})}function yt({text:e,members:t,styles:n,onMention:r,onLocation:i,onWorld:a}){let o=gt(t);return(0,N.jsx)(N.Fragment,{children:ht(e).map((e,t)=>{if(e.type===`url`)return(0,N.jsx)(`a`,{className:n.url,href:e.value,target:`_blank`,rel:`noreferrer noopener`,children:e.value},t);if(e.type===`world`)return a?(0,N.jsx)(`button`,{type:`button`,className:n.world,onClick:()=>a(e.value),children:e.value},t):(0,N.jsx)(`span`,{children:e.value},t);if(e.type===`location`)return(0,N.jsx)(`button`,{type:`button`,className:n.location,onClick:()=>i(e.x,e.y),children:e.value},t);if(e.type===`mention`){let i=_t(e,o);return i?(0,N.jsxs)(`button`,{type:`button`,className:n.mention,onClick:t=>r(i,e.name,t),onContextMenu:t=>r(i,e.name,t),children:[`@`,e.name]},t):(0,N.jsx)(`span`,{children:e.value},t)}return(0,N.jsx)(`span`,{children:e.value},t)})})}var F={root:`_root_1mxu6_4`,open:`_open_1mxu6_24`,active:`_active_1mxu6_31`,messages:`_messages_1mxu6_40`,nav:`_nav_1mxu6_45`,navLeft:`_navLeft_1mxu6_57`,channelIcon:`_channelIcon_1mxu6_64`,navTitle:`_navTitle_1mxu6_69`,navRight:`_navRight_1mxu6_76`,glyph:`_glyph_1mxu6_83`,glyphLg:`_glyphLg_1mxu6_86`,empty:`_empty_1mxu6_114`,dayRow:`_dayRow_1mxu6_121`,dayPill:`_dayPill_1mxu6_126`,entry:`_entry_1mxu6_137`,bubble:`_bubble_1mxu6_142`,name:`_name_1mxu6_152`,tag:`_tag_1mxu6_157`,text:`_text_1mxu6_161`,time:`_time_1mxu6_172`,pickerWrap:`_pickerWrap_1mxu6_179`,suggest:`_suggest_1mxu6_180`,suggestList:`_suggestList_1mxu6_194`,suggestItem:`_suggestItem_1mxu6_202`,suggestActive:`_suggestActive_1mxu6_218`,suggestGlyph:`_suggestGlyph_1mxu6_222`,suggestName:`_suggestName_1mxu6_226`,noResults:`_noResults_1mxu6_229`,inputRow:`_inputRow_1mxu6_238`,input:`_input_1mxu6_238`,inputBare:`_inputBare_1mxu6_267`,ring:`_ring_1mxu6_271`,emojiBtn:`_emojiBtn_1mxu6_280`,membersPanel:`_membersPanel_1mxu6_288`,membersHeader:`_membersHeader_1mxu6_296`,back:`_back_1mxu6_305`,membersTitle:`_membersTitle_1mxu6_322`,membersCount:`_membersCount_1mxu6_327`,personIcon:`_personIcon_1mxu6_336`,membersList:`_membersList_1mxu6_340`,memberRow:`_memberRow_1mxu6_353`,memberInfo:`_memberInfo_1mxu6_363`,memberName:`_memberName_1mxu6_369`,memberStatus:`_memberStatus_1mxu6_378`,avatarBtn:`_avatarBtn_1mxu6_398`,url:`_url_1mxu6_409`,location:`_location_1mxu6_417`,mention:`_mention_1mxu6_418`,world:`_world_1mxu6_419`,mentionMe:`_mentionMe_1mxu6_435`},bt=500,xt=/^0x[0-9a-fA-F]{6,}$/,St=[`#73d3d3`,`#acf8f8`,`#ff8362`,`#ff4bed`,`#caff73`,`#a14bf3`,`#e8b9ff`,`#fea217`,`#81e1ff`,`#ff7439`,`#ffa25a`,`#ffc95b`,`#a0abff`,`#c640cd`],Ct=`#61d04f`;function wt(e){return!e||e.toLowerCase()===`system`}function Tt(e){return xt.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function Et(e){return wt(e)?`DCL System`:Tt(e)}function Dt(e){return e.name.trim()?e.name:Tt(e.address)}function Ot(e){let t=e.indexOf(`#`);return t>=0?{base:e.slice(0,t),tag:e.slice(t)}:{base:e,tag:``}}function kt(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return t}function At(e){return wt(e)?Ct:St[kt(e)%St.length]}function jt(e){return new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function Mt(e){let t=new Date(e);return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`}function Nt(e){return Mt(e)===Mt(Date.now())?`Today`:new Date(e).toLocaleDateString([],{weekday:`short`,day:`numeric`,month:`short`})}function Pt(){return(0,N.jsxs)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:[(0,N.jsx)(`circle`,{cx:`8`,cy:`5`,r:`2.6`,stroke:`currentColor`,strokeWidth:`1.4`}),(0,N.jsx)(`path`,{d:`M3.2 13c0-2.4 2.1-3.8 4.8-3.8s4.8 1.4 4.8 3.8`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`})]})}function Ft(){return(0,N.jsxs)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 22 22`,fill:`none`,"aria-hidden":`true`,children:[(0,N.jsx)(`circle`,{cx:`11`,cy:`11`,r:`10`,stroke:`currentColor`,strokeWidth:`2`}),(0,N.jsx)(`circle`,{cx:`7.6`,cy:`9`,r:`1.15`,fill:`currentColor`}),(0,N.jsx)(`circle`,{cx:`14.4`,cy:`9`,r:`1.15`,fill:`currentColor`}),(0,N.jsx)(`path`,{d:`M7 13.4c1 1.6 2.5 2.4 4 2.4s3-.8 4-2.4`,stroke:`currentColor`,strokeWidth:`1.7`,strokeLinecap:`round`})]})}function It({len:e}){let t=Math.min(1,e/bt),n=2*Math.PI*8,r=t>=.9?`var(--brand)`:t>=.7?`var(--gold)`:`var(--green)`;return(0,N.jsxs)(`svg`,{className:F.ring,width:`20`,height:`20`,viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,N.jsx)(`circle`,{cx:`10`,cy:`10`,r:8,fill:`none`,stroke:`rgba(255,255,255,0.25)`,strokeWidth:`2`}),(0,N.jsx)(`circle`,{cx:`10`,cy:`10`,r:8,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeDasharray:n,strokeDashoffset:n*(1-t),transform:`rotate(-90 10 10)`})]})}function Lt({ts:e}){return(0,N.jsx)(`div`,{className:F.dayRow,children:(0,N.jsx)(`span`,{className:F.dayPill,children:Nt(e)})})}var Rt={url:F.url,mention:F.mention,location:F.location,world:F.world};function zt({line:e,name:t,picture:n,members:r=[],me:i,onOpenProfile:o,onLocation:s,onVisitWorld:c}){let l=At(e.sender),{base:u,tag:d}=Ot(t),f={address:e.sender,name:t,picture:n},p=vt(e.message,i??null,gt(r)),m=e=>{e.type===`contextmenu`&&e.preventDefault(),o?.(f,e)};return(0,N.jsxs)(`div`,{className:`${F.entry} ${p?F.mentionMe:``}`.trim(),children:[(0,N.jsx)(`button`,{type:`button`,className:F.avatarBtn,"aria-label":`View ${u}`,onClick:m,onContextMenu:m,children:(0,N.jsx)(a,{src:n,name:t,color:l,size:28})}),(0,N.jsxs)(`div`,{className:F.bubble,children:[(0,N.jsxs)(`button`,{type:`button`,className:F.name,style:{color:l},onClick:m,onContextMenu:m,children:[u,d&&(0,N.jsx)(`span`,{className:F.tag,children:d})]}),(0,N.jsx)(`span`,{className:F.text,children:(0,N.jsx)(yt,{text:e.message,members:r,styles:Rt,onMention:(e,t,n)=>{n.type===`contextmenu`&&n.preventDefault();let i=r.find(t=>t.address.toLowerCase()===e.toLowerCase());o?.({address:e,name:i?.name??`@${t}`,picture:i?.picture},n)},onLocation:(e,t)=>s?.(e,t),onWorld:c})}),(0,N.jsx)(`span`,{className:F.time,children:jt(e.ts)})]})]})}function Bt({member:e}){let{base:t,tag:n}=Ot(Dt(e)),r=At(e.address);return(0,N.jsxs)(`div`,{className:F.memberRow,children:[(0,N.jsx)(a,{src:e.picture,name:t,color:r,size:40,status:`online`}),(0,N.jsxs)(`div`,{className:F.memberInfo,children:[(0,N.jsxs)(`span`,{className:F.memberName,style:{color:r},children:[t,n&&(0,N.jsx)(`span`,{className:F.tag,children:n})]}),(0,N.jsx)(`span`,{className:F.memberStatus,children:`Online`})]})]})}function Vt({members:e,onBack:t,onClose:n}){return(0,N.jsxs)(`div`,{className:F.membersPanel,children:[(0,N.jsxs)(`header`,{className:F.membersHeader,children:[(0,N.jsx)(o,{variant:`ghost`,className:F.glyphLg,"aria-label":`Back`,onClick:t,children:`‹`}),(0,N.jsx)(`span`,{className:F.membersTitle,children:`Nearby`}),(0,N.jsxs)(`span`,{className:F.membersCount,children:[(0,N.jsx)(`span`,{className:F.personIcon,"aria-hidden":`true`,children:`●`}),e.length,` Online`]}),(0,N.jsx)(o,{variant:`solid`,className:F.glyph,"aria-label":`Close chat`,onClick:n,children:`×`})]}),(0,N.jsx)(`div`,{className:F.membersList,children:e.length===0?(0,N.jsx)(`div`,{className:F.empty,children:`No one nearby`}):e.map(e=>(0,N.jsx)(Bt,{member:e},e.address))})]})}function Ht({chat:e,hidden:t=!1,me:n,onTeleport:r,onVisitWorld:i}){let[s,c]=(0,A.useState)(``),[l,u]=(0,A.useState)(!1),[d,f]=(0,A.useState)(!1),[p,m]=(0,A.useState)([]),[h,g]=(0,A.useState)(null),[ee,_]=(0,A.useState)(!1),[v,ne]=(0,A.useState)(!1),[y,re]=(0,A.useState)(null),[ie,b]=(0,A.useState)([]),ae=(0,A.useRef)(null),x=(0,A.useRef)(null),S=e.open,C=S&&(ee||v||l),w=!C,T=(0,A.useMemo)(()=>{let t=new Map;for(let n of e.members)n.name.trim()&&t.set(n.address.toLowerCase(),n.name);return t},[e.members]),E=(0,A.useMemo)(()=>{let t=new Map;for(let n of e.members)n.picture&&t.set(n.address.toLowerCase(),n.picture);return t},[e.members]),oe=e=>T.get(e.toLowerCase())??Et(e),se=(0,A.useMemo)(()=>{let t=[],n=``;for(let r of e.messages){let e=Mt(r.ts);e!==n&&(t.push({kind:`day`,ts:r.ts,id:`day-${e}`}),n=e),t.push({kind:`msg`,line:r})}return t},[e.messages]);(0,A.useEffect)(()=>{if(!S)return;let e=ae.current;e&&(e.scrollTop=e.scrollHeight)},[S,C]);let ce=(0,A.useRef)(!0);(0,A.useEffect)(()=>{let e=ae.current;if(!e)return;let t=()=>{ce.current=e.scrollHeight-e.scrollTop-e.clientHeight<80};return e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)},[S]),(0,A.useEffect)(()=>{if(!S)return;let e=ae.current;e&&ce.current&&(e.scrollTop=e.scrollHeight)},[e.messages,S]),(0,A.useEffect)(()=>{S&&x.current?.focus()},[S,e.focusTick]),(0,A.useEffect)(()=>{C||f(!1)},[C]);let le=()=>{e.open||e.toggle()},D=(e,t)=>{Ee(e.address,t.clientX,t.clientY)},O=e=>{c(t=>`${t.replace(/\s*$/,``)} @${e} `.trimStart()),le(),x.current?.focus()};(0,A.useEffect)(()=>{e.pendingMention&&(O(e.pendingMention),e.consumeMention())},[e.pendingMention]);let ue=/@([\w-]*)$/,de=t=>{c(t);let n=t.match(Ge);g(n?n[1]:null),m(n?We(n[1]):[]);let r=t.match(ue);re(r?r[1]:null);let i=(r?.[1]??``).toLowerCase();b(r?e.members.filter(e=>(e.name||e.address).toLowerCase().includes(i)).slice(0,6):[])},fe=e=>{let t=e.name.trim()?e.name.split(`#`)[0]:e.address;c(e=>e.replace(ue,`@${t} `)),b([]),re(null),x.current?.focus()},k=e=>{c(t=>{let n=t.match(Ge);return(n?t.slice(0,n.index):t)+e}),m([]),g(null),x.current?.focus()},pe=()=>{s.trim()&&(e.send(s),c(``),m([]),g(null),b([]),re(null))};return t?null:(0,N.jsxs)(`div`,{className:`${F.root} ${S?F.open:``} ${C?F.active:``}`.trim(),onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:[S&&C&&(0,N.jsxs)(`header`,{className:F.nav,children:[(0,N.jsxs)(`div`,{className:F.navLeft,children:[(0,N.jsx)(te,{size:26,className:F.channelIcon}),(0,N.jsx)(`span`,{className:F.navTitle,children:`Nearby`})]}),(0,N.jsxs)(`div`,{className:F.navRight,children:[e.members.length>0&&(0,N.jsxs)(o,{variant:`ghost`,shape:`pill`,active:d,"aria-label":`${e.members.length} nearby`,onClick:()=>f(e=>!e),children:[(0,N.jsx)(Pt,{}),e.members.length]}),(0,N.jsx)(o,{variant:`solid`,className:F.glyph,"aria-label":`Close chat`,onClick:e.toggle,children:`×`})]})]}),S&&(0,N.jsx)(`div`,{ref:ae,className:F.messages,children:se.length===0?(0,N.jsx)(`div`,{className:F.empty,children:`No messages yet`}):se.map(t=>t.kind===`day`?(0,N.jsx)(Lt,{ts:t.ts},t.id):(0,N.jsx)(zt,{line:t.line,name:oe(t.line.sender),picture:E.get(t.line.sender.toLowerCase()),members:e.members,me:n,onOpenProfile:D,onLocation:(e,t)=>r?.(e,t),onVisitWorld:i},t.line.id))}),C&&l&&(0,N.jsx)(`div`,{className:F.pickerWrap,children:(0,N.jsx)(pt,{onPick:k,onClose:()=>u(!1)})}),C&&y!=null&&ie.length>0&&(0,N.jsx)(`div`,{className:F.suggest,children:(0,N.jsx)(`ul`,{className:F.suggestList,children:ie.map((e,t)=>(0,N.jsx)(`li`,{children:(0,N.jsxs)(`button`,{type:`button`,className:`${F.suggestItem} ${t===0?F.suggestActive:``}`.trim(),onClick:()=>fe(e),children:[(0,N.jsx)(a,{src:e.picture,name:e.name,color:At(e.address),size:20}),(0,N.jsx)(`span`,{className:F.suggestName,children:e.name||Tt(e.address)})]})},e.address))})}),C&&h!=null&&(0,N.jsx)(`div`,{className:F.suggest,children:p.length===0?(0,N.jsx)(`div`,{className:F.noResults,children:`No results`}):(0,N.jsx)(`ul`,{className:F.suggestList,children:p.map((e,t)=>(0,N.jsx)(`li`,{children:(0,N.jsxs)(`button`,{type:`button`,className:`${F.suggestItem} ${t===0?F.suggestActive:``}`.trim(),onClick:()=>k(e.emoji),children:[(0,N.jsx)(`span`,{className:F.suggestGlyph,children:e.emoji}),(0,N.jsx)(`span`,{className:F.suggestName,children:e.expression})]})},e.code))})}),(0,N.jsxs)(`form`,{className:F.inputRow,onSubmit:e=>{e.preventDefault(),pe()},children:[(0,N.jsx)(`input`,{ref:x,className:`${F.input} ${w?F.inputBare:``}`.trim(),value:s,onChange:e=>de(e.target.value),onFocus:()=>{ne(!0),le()},onBlur:()=>ne(!1),placeholder:v?`Message Nearby`:`Press Enter to chat`,maxLength:bt,onKeyDown:e=>{e.stopPropagation(),e.key===`Enter`?(e.preventDefault(),ie.length>0?fe(ie[0]):p.length>0?k(p[0].emoji):pe()):Le(e)&&(y==null?h==null?l?u(!1):x.current?.blur():(g(null),m([])):(re(null),b([])))}}),!w&&s.length>0&&(0,N.jsx)(It,{len:s.length}),!w&&(0,N.jsx)(o,{variant:`ghost`,size:`sm`,active:l,className:F.emojiBtn,"aria-label":`Emoji`,onClick:()=>{le(),u(e=>!e)},children:(0,N.jsx)(Ft,{})})]}),S&&C&&d&&(0,N.jsx)(Vt,{members:e.members,onBack:()=>f(!1),onClose:()=>{f(!1),e.toggle()}})]})}var I={root:`_root_hrk0u_5`,tabs:`_tabs_hrk0u_25`,tab:`_tab_hrk0u_25`,tabActive:`_tabActive_hrk0u_55`,tabBadge:`_tabBadge_hrk0u_59`,closeGlyph:`_closeGlyph_hrk0u_72`,body:`_body_hrk0u_77`,sectionHead:`_sectionHead_hrk0u_92`,chev:`_chev_hrk0u_108`,chevOpen:`_chevOpen_hrk0u_113`,row:`_row_hrk0u_117`,info:`_info_hrk0u_127`,name:`_name_hrk0u_134`,verified:`_verified_hrk0u_146`,tag:`_tag_hrk0u_151`,status:`_status_hrk0u_155`,online:`_online_hrk0u_160`,sub:`_sub_hrk0u_163`,date:`_date_hrk0u_173`,actions:`_actions_hrk0u_178`,empty:`_empty_hrk0u_190`,placeholder:`_placeholder_hrk0u_197`,phIcon:`_phIcon_hrk0u_205`,phTitle:`_phTitle_hrk0u_216`,phText:`_phText_hrk0u_221`,rowBtn:`_rowBtn_hrk0u_229`};function Ut(e,t){return e.trim()?e:O(t)}function Wt(e){return e.trim().length>0&&!e.includes(`#`)&&!/^0x[0-9a-f]+$/i.test(e)}function Gt(){return(0,N.jsxs)(`svg`,{className:I.verified,viewBox:`0 0 16 16`,"aria-label":`verified`,children:[(0,N.jsx)(`defs`,{children:(0,N.jsxs)(`linearGradient`,{id:`vrf`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,N.jsx)(`stop`,{offset:`0`,stopColor:`#ff2d55`}),(0,N.jsx)(`stop`,{offset:`1`,stopColor:`#c640cd`})]})}),(0,N.jsx)(`path`,{d:`M8 1l1.7 1.2 2.1-.2 1 1.8 1.9.9-.5 2 .9 1.9-1.6 1.4.1 2.1-2 .6-1.1 1.8-2-.7-2 .7-1.1-1.8-2-.6.1-2.1L1.6 8.6l.9-1.9-.5-2 1.9-.9 1-1.8 2.1.2z`,fill:`url(#vrf)`}),(0,N.jsx)(`path`,{d:`M5.5 8l1.7 1.7L10.8 6`,stroke:`#fff`,strokeWidth:`1.4`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function Kt({name:e,address:t}){let{base:n,tag:r}=de(Ut(e,t));return(0,N.jsxs)(`span`,{className:I.name,style:{color:D(t)},children:[n,Wt(e)&&(0,N.jsx)(Gt,{}),r&&(0,N.jsx)(`span`,{className:I.tag,children:r})]})}function qt({open:e}){return(0,N.jsx)(`svg`,{className:`${I.chev} ${e?I.chevOpen:``}`.trim(),viewBox:`0 0 12 12`,"aria-hidden":`true`,children:(0,N.jsx)(`path`,{d:`M2.5 7.5L6 4l3.5 3.5`,stroke:`currentColor`,strokeWidth:`1.6`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Jt({title:e,count:t,children:n}){let[r,i]=(0,A.useState)(!0);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`button`,{type:`button`,className:I.sectionHead,onClick:()=>i(e=>!e),children:[(0,N.jsx)(qt,{open:r}),e,` (`,t,`)`]}),r&&n]})}var Yt={online:`Online`,away:`Away`,offline:`Offline`};function Xt({friend:e,onOpen:t}){let n={address:e.address,name:e.name,picture:e.picture},r=e=>{e.type===`contextmenu`&&e.preventDefault(),t?.(n,e)};return(0,N.jsxs)(`button`,{type:`button`,className:`${I.row} ${I.rowBtn}`,onClick:r,onContextMenu:r,children:[(0,N.jsx)(a,{src:e.picture,name:Ut(e.name,e.address),color:D(e.address),size:40,status:e.status}),(0,N.jsxs)(`div`,{className:I.info,children:[(0,N.jsx)(Kt,{name:e.name,address:e.address}),(0,N.jsx)(`span`,{className:`${I.status} ${I[e.status]}`,children:Yt[e.status]})]})]})}function Zt(e){return e?new Date(e).toLocaleDateString([],{month:`short`,day:`numeric`}).toUpperCase():``}function Qt({req:e,onAccept:t,onReject:r}){return(0,N.jsxs)(`div`,{className:I.row,children:[(0,N.jsx)(a,{src:e.picture,name:Ut(e.name,e.address),color:D(e.address),size:40}),(0,N.jsxs)(`div`,{className:I.info,children:[(0,N.jsx)(Kt,{name:e.name,address:e.address}),e.message&&(0,N.jsx)(`span`,{className:I.sub,children:e.message})]}),(0,N.jsx)(`span`,{className:I.date,children:Zt(e.createdAt)}),(0,N.jsxs)(`div`,{className:I.actions,children:[(0,N.jsx)(n,{variant:`secondary`,size:`sm`,onClick:r,children:`Delete`}),(0,N.jsx)(n,{variant:`primary`,size:`sm`,onClick:t,children:`Accept`})]})]})}function $t({req:e,onCancel:t}){return(0,N.jsxs)(`div`,{className:I.row,children:[(0,N.jsx)(a,{src:e.picture,name:Ut(e.name,e.address),color:D(e.address),size:40}),(0,N.jsxs)(`div`,{className:I.info,children:[(0,N.jsx)(Kt,{name:e.name,address:e.address}),(0,N.jsx)(`span`,{className:I.sub,children:`Request sent`})]}),(0,N.jsx)(`span`,{className:I.date,children:Zt(e.createdAt)}),(0,N.jsx)(`div`,{className:I.actions,children:(0,N.jsx)(n,{variant:`secondary`,size:`sm`,onClick:t,children:`Cancel`})})]})}function en({friends:e}){let[t,r]=(0,A.useState)(`friends`),i=(e,t)=>Ee(e.address,t.clientX,t.clientY),{online:s,offline:c}=(0,A.useMemo)(()=>{let t=[],n=[];for(let r of[...e.list].sort((e,t)=>e.name.localeCompare(t.name)))(r.status===`offline`?n:t).push(r);return{online:t,offline:n}},[e.list]);if(!e.open)return null;let l=[{id:`friends`,label:`Friends`},{id:`requests`,label:`Requests`,badge:e.received.length},{id:`blocked`,label:`Blocked`}];return(0,N.jsxs)(`div`,{className:I.root,children:[(0,N.jsxs)(`header`,{className:I.tabs,children:[l.map(e=>(0,N.jsxs)(`button`,{type:`button`,className:`${I.tab} ${t===e.id?I.tabActive:``}`.trim(),onClick:()=>r(e.id),children:[e.label,e.badge?(0,N.jsx)(`span`,{className:I.tabBadge,children:e.badge}):null]},e.id)),(0,N.jsx)(o,{variant:`solid`,className:I.closeGlyph,"aria-label":`Close friends`,onClick:e.toggle,children:`×`})]}),(0,N.jsx)(`div`,{className:I.body,children:e.available?t===`friends`?e.list.length===0?(0,N.jsx)(`div`,{className:I.empty,children:`No friends yet.`}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(Jt,{title:`Online`,count:s.length,children:s.map(e=>(0,N.jsx)(Xt,{friend:e,onOpen:i},e.address))}),(0,N.jsx)(Jt,{title:`Offline`,count:c.length,children:c.map(e=>(0,N.jsx)(Xt,{friend:e,onOpen:i},e.address))})]}):t===`requests`?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(Jt,{title:`Received`,count:e.received.length,children:e.received.length===0?(0,N.jsx)(`div`,{className:I.empty,children:`No Requests`}):e.received.map(t=>(0,N.jsx)(Qt,{req:t,onAccept:()=>e.act(`accept`,t.address),onReject:()=>e.act(`reject`,t.address)},t.id))}),(0,N.jsx)(Jt,{title:`Sent`,count:e.sent.length,children:e.sent.length===0?(0,N.jsx)(`div`,{className:I.empty,children:`No Requests`}):e.sent.map(t=>(0,N.jsx)($t,{req:t,onCancel:()=>e.act(`cancel`,t.address)},t.id))})]}):e.blocked.length===0?(0,N.jsxs)(`div`,{className:I.placeholder,children:[(0,N.jsx)(`div`,{className:I.phIcon,"aria-hidden":`true`,children:`⊘`}),(0,N.jsx)(`div`,{className:I.phTitle,children:`No Blocked Accounts`}),(0,N.jsx)(`div`,{className:I.phText,children:`If you block someone, you won’t see each other in-world or exchange messages, and their name and messages are hidden in public chats.`})]}):e.blocked.map(t=>(0,N.jsxs)(`div`,{className:I.row,children:[(0,N.jsx)(a,{name:O(t),color:D(t),size:40}),(0,N.jsx)(`div`,{className:I.info,children:(0,N.jsx)(`span`,{className:I.name,children:O(t)})}),(0,N.jsx)(`div`,{className:I.actions,children:(0,N.jsx)(n,{variant:`secondary`,size:`sm`,onClick:()=>e.act(`unblock`,t),children:`Unblock`})})]},t)):(0,N.jsxs)(`div`,{className:I.placeholder,children:[(0,N.jsx)(`div`,{className:I.phTitle,children:`Friends aren’t available`}),(0,N.jsx)(`div`,{className:I.phText,children:`Sign in with a wallet to add and manage friends.`})]})})]})}var tn=`__hudForwardedToCanvas`;function nn(e){return e[tn]=!0,e}function rn(e){return e[tn]===!0}var L={root:`_root_1s3k0_4`,groupTitle:`_groupTitle_1s3k0_14`,rows:`_rows_1s3k0_20`,pairBox:`_pairBox_1s3k0_28`,row:`_row_1s3k0_20`,quadBox:`_quadBox_1s3k0_43`,rowLabel:`_rowLabel_1s3k0_57`,chips:`_chips_1s3k0_62`,chipWrap:`_chipWrap_1s3k0_69`,chip:`_chip_1s3k0_62`,chipFixed:`_chipFixed_1s3k0_94`,chipConflict:`_chipConflict_1s3k0_101`,chipRemove:`_chipRemove_1s3k0_104`,chipAdd:`_chipAdd_1s3k0_124`,capturePrompt:`_capturePrompt_1s3k0_142`,captureHint:`_captureHint_1s3k0_148`},an=[[{Scene:`IaForward`},`Move Forward`],[{Scene:`IaBackward`},`Move Backward`],[{Scene:`IaLeft`},`Move Left`],[{Scene:`IaRight`},`Move Right`],[{Scene:`IaJump`},`Jump`],[{Scene:`IaWalk`},`Walk`],[{Scene:`IaModifier`},`Sprint / Modifier`],[{Scene:`IaPointer`},`Pointer / Interact`],[{Scene:`IaPrimary`},`Primary Action`],[{Scene:`IaSecondary`},`Secondary Action`],[{Scene:`IaAction3`},`Action 3`],[{Scene:`IaAction4`},`Action 4`],[{Scene:`IaAction5`},`Action 5`],[{Scene:`IaAction6`},`Action 6`],[{System:`PointAt`},`Point At`],[{System:`Microphone`},`Microphone`]],on=[[{System:`Map`},`Map`],[{System:`Places`},`Places`],[{System:`Communities`},`Communities`],[{System:`Backpack`},`Backpack`],[{System:`Gallery`},`Gallery`],[{System:`Settings`},`Settings`],[{System:`Friends`},`Friends`],[{System:`ChatPanel`},`Chat Panel`],[{System:`Chat`},`Focus Chat`],[{System:`HideUi`},`Hide UI`],[{System:`HideNames`},`Hide Nametags`],[{System:`Cancel`},`Cancel`]],sn=[[{System:`Emote`},`Emote Wheel`],...Array.from({length:10},(e,t)=>[{System:`QuickEmote${t}`},`Quick Emote ${t}`])],cn=[[`Gameplay`,an],[`Interface`,on],[`Emotes`,sn],[`Camera`,[[{System:`CameraLock`},`Camera Look`],[{System:`CameraUp`},`Camera Up`],[{System:`CameraDown`},`Camera Down`],[{System:`CameraLeft`},`Camera Left`],[{System:`CameraRight`},`Camera Right`],[{System:`CameraZoomIn`},`Camera Zoom In`],[{System:`CameraZoomOut`},`Camera Zoom Out`],[{System:`RollLeft`},`Camera Roll Left`],[{System:`RollRight`},`Camera Roll Right`]]],[`Pointer & Scroll`,[[{System:`PointerUp`},`Pointer Up`],[{System:`PointerDown`},`Pointer Down`],[{System:`PointerLeft`},`Pointer Left`],[{System:`PointerRight`},`Pointer Right`],[{System:`ScrollUp`},`Scroll Up`],[{System:`ScrollDown`},`Scroll Down`],[{System:`ScrollLeft`},`Scroll Left`],[{System:`ScrollRight`},`Scroll Right`]]]],ln=cn.flatMap(([,e])=>e),un=[[{Scene:`IaForward`},{Scene:`IaBackward`}],[{Scene:`IaLeft`},{Scene:`IaRight`}],[{System:`CameraUp`},{System:`CameraDown`}],[{System:`CameraLeft`},{System:`CameraRight`}],[{System:`PointerUp`},{System:`PointerDown`}],[{System:`PointerLeft`},{System:`PointerRight`}],[{System:`ScrollUp`},{System:`ScrollDown`}],[{System:`ScrollLeft`},{System:`ScrollRight`}],[{System:`CameraZoomIn`},{System:`CameraZoomOut`}],[{System:`RollLeft`},{System:`RollRight`}]],dn={Up:`Down`,Down:`Up`,Left:`Right`,Right:`Left`},fn=(e,t)=>un.some(n=>T(n[0],e)&&T(n[1],t)||T(n[1],e)&&T(n[0],t)),pn=[`CameraUp`,`CameraDown`,`CameraLeft`,`CameraRight`],mn=(e,t)=>pn.every((n,r)=>{let i=e[t+r]?.[0];return i!=null&&`System`in i&&i.System===n});function hn(e){let t=[];for(let n=0;n<e.length;n++)mn(e,n)?(t.push(e.slice(n,n+4)),n+=3):n+1<e.length&&fn(e[n][0],e[n+1][0])?(t.push([e[n],e[n+1]]),n++):t.push([e[n]]);return t}var gn=/^(MouseMove|MouseWheel|GamepadLeft|GamepadRight|GamepadLeftTrigger|GamepadRightTrigger) (Up|Down|Left|Right)$/;function _n(e,t,n){return e.some(([e])=>T(e,t))?e.map(([e,r])=>T(e,t)?[e,n]:[e,r]):[...e,[t,n]]}var vn=(e,t)=>e.find(([e])=>T(e,t))?.[1]??[];function yn(e,t,n,r){if(xn(t,r))return e;let i=gn.exec(r),a=i==null?void 0:un.find(e=>e.some(e=>T(e,t)));if(i==null||a==null){let i=[...vn(e,t)];return i[n]=r,_n(e,t,[...new Set(i)])}let[o,s]=[i[1],i[2]],c=T(a[0],t)?a[1]:a[0],l=(e,t,n)=>_n(e,t,[...vn(e,t).filter(e=>!e.startsWith(`${o} `)),`${o} ${n}`]);return l(l(e,t,s),c,dn[s])}var bn=e=>`System`in e&&e.System.startsWith(`Scroll`),xn=(e,t)=>bn(e)&&t.startsWith(`MouseWheel `);function Sn(e,t,n){return bn(t)?[]:ln.filter(([r])=>!bn(r)&&!T(r,t)&&(e.find(([e])=>T(r,e))?.[1]??[]).includes(n)).map(([,e])=>e)}function Cn({action:e,label:t,onRebind:n,onRemove:r}){let i=ue(),a=k(i,e);return(0,N.jsxs)(`div`,{className:L.row,children:[(0,N.jsx)(`span`,{className:L.rowLabel,children:t}),(0,N.jsxs)(`span`,{className:L.chips,children:[a.map((a,o)=>{if(xn(e,a))return(0,N.jsx)(`span`,{className:L.chipWrap,children:(0,N.jsx)(`span`,{className:`${L.chip} ${L.chipFixed}`,title:`The wheel always scrolls`,children:E(i,a)})},`${a}${o}`);let s=Sn(i.bindings,e,a);return(0,N.jsxs)(`span`,{className:L.chipWrap,children:[(0,N.jsx)(`button`,{type:`button`,className:`${L.chip} ${s.length>0?L.chipConflict:``}`.trim(),title:s.length>0?`Also bound to ${s.join(`, `)} — click to rebind`:`Click to rebind`,onClick:()=>n(e,t,o),children:E(i,a)}),(0,N.jsx)(`button`,{type:`button`,className:L.chipRemove,"aria-label":`Remove ${E(i,a)} from ${t}`,onClick:()=>r(e,o),children:`×`})]},`${a}${o}`)}),(0,N.jsx)(`button`,{type:`button`,className:L.chipAdd,"aria-label":`Add a binding for ${t}`,onClick:()=>n(e,t,a.length),children:`+`})]})]})}var wn=[`Mouse Left`,`Mouse Middle`,`Mouse Right`,`Mouse Back`,`Mouse Forward`];function Tn({cancelHint:t,label:n,onMouse:r}){return(0,A.useEffect)(()=>{let e=document.getElementById(`mygame-canvas`),t=e=>{e.preventDefault(),e.stopPropagation()},n=null,i=i=>{rn(i)||(t(i),e?.dispatchEvent(nn(new PointerEvent(i.type,i))),i.type===`pointerdown`?n=i.button:n===i.button&&r(wn[i.button]??`Mouse Left`))},a=n=>{rn(n)||(t(n),e?.dispatchEvent(nn(new WheelEvent(`wheel`,n))),r(Math.abs(n.deltaY)>=Math.abs(n.deltaX)?n.deltaY<0?`MouseWheel Up`:`MouseWheel Down`:n.deltaX<0?`MouseWheel Left`:`MouseWheel Right`))};return window.addEventListener(`pointerdown`,i,!0),window.addEventListener(`pointerup`,i,!0),window.addEventListener(`wheel`,a,{capture:!0,passive:!1}),window.addEventListener(`click`,t,!0),window.addEventListener(`auxclick`,t,!0),window.addEventListener(`contextmenu`,t,!0),()=>{window.removeEventListener(`pointerdown`,i,!0),window.removeEventListener(`pointerup`,i,!0),window.removeEventListener(`wheel`,a,{capture:!0}),window.removeEventListener(`click`,t,!0),window.removeEventListener(`auxclick`,t,!0),window.removeEventListener(`contextmenu`,t,!0)}},[r]),(0,N.jsxs)(e,{title:`Rebind ${n}`,width:400,closeButton:!1,ariaLabel:`Rebind ${n}`,children:[(0,N.jsx)(`div`,{className:L.capturePrompt,children:`Press a key, mouse or gamepad button…`}),t!=null&&(0,N.jsxs)(`div`,{className:L.captureHint,children:[t,` to cancel`]})]})}function En(e){if(T(e,{System:`Cancel`}))return[];let t=k(w(),{System:`Cancel`});return t.length>0?t:[`Escape`]}function Dn({bindings:e}){let t=(t,n,r)=>{let{input:i,cancel:a}=e.capture(),o=En(t),s=!1,c=n=>{s||(s=!0,a(),l(),!o.includes(n)&&e.set(yn(w().bindings,t,r,n)))},l=g(()=>(0,N.jsx)(Tn,{label:n,cancelHint:o.length>0?E(w(),o[0]):void 0,onMouse:c}),{onClose:()=>{s||(s=!0,a())}});i.then(c)},n=(t,n)=>{let r=w().bindings,i=vn(r,t).filter((e,t)=>t!==n);e.set(_n(r,t,i))};return(0,N.jsx)(`div`,{className:L.root,children:cn.map(([e,r])=>(0,N.jsxs)(`section`,{children:[(0,N.jsx)(`h2`,{className:L.groupTitle,children:e}),(0,N.jsx)(`div`,{className:L.rows,children:hn(r).map(e=>e.length>1?(0,N.jsx)(`div`,{className:e.length===4?`${L.pairBox} ${L.quadBox}`:L.pairBox,children:e.map(([e,r])=>(0,N.jsx)(Cn,{action:e,label:r,onRebind:t,onRemove:n},r))},e[0][1]):(0,N.jsx)(Cn,{action:e[0][0],label:e[0][1],onRebind:t,onRemove:n},e[0][1]))})]},e))})}var R={head:`_head_1bdpk_2`,title:`_title_1bdpk_8`,tabs:`_tabs_1bdpk_14`,tab:`_tab_1bdpk_14`,tabActive:`_tabActive_1bdpk_34`,reset:`_reset_1bdpk_41`,card:`_card_1bdpk_61`,grid:`_grid_1bdpk_68`,field:`_field_1bdpk_75`,fieldHead:`_fieldHead_1bdpk_80`,label:`_label_1bdpk_86`,value:`_value_1bdpk_91`,empty:`_empty_1bdpk_97`},On=`Key Bindings`;function kn(e){return e.replace(/[_-]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function An(e){return e.namedVariants.length===2||e.namedVariants.length===0&&e.maxValue-e.minValue<=1&&e.stepSize>=1}function jn(e){return!An(e)&&e.namedVariants.length<=2}function Mn({s:e,onSet:n}){return An(e)?(0,N.jsx)(i,{checked:e.value>=1,onChange:t=>n(e.name,+!!t),"aria-label":e.name}):e.namedVariants.length>2?(0,N.jsx)(t,{variant:`light`,value:String(e.value),options:e.namedVariants.map((e,t)=>({value:String(t),label:e.name})),onChange:t=>n(e.name,Number(t)),"aria-label":e.name}):(0,N.jsx)(r,{arrows:!0,value:e.value,min:e.minValue,max:e.maxValue,step:e.stepSize||1,onChange:t=>n(e.name,t),"aria-label":e.name})}var Nn=(0,A.memo)(function({s:e,onSet:t}){return(0,N.jsxs)(`div`,{className:R.field,children:[(0,N.jsxs)(`div`,{className:R.fieldHead,children:[(0,N.jsx)(`span`,{className:R.label,children:kn(e.name)}),jn(e)&&(0,N.jsx)(`span`,{className:R.value,children:e.value})]}),(0,N.jsx)(Mn,{s:e,onSet:t})]})},(e,t)=>e.s.name===t.s.name&&e.s.value===t.s.value&&e.onSet===t.onSet);function Pn({settings:e,bindings:t,profile:n,onNavigate:r}){let i=(0,A.useMemo)(()=>[...new Set(e.list.map(e=>e.category)),On],[e.list]),[a,o]=(0,A.useState)(null);if(!e.open)return null;let s=a&&i.includes(a)?a:i[0],c=e.list.filter(e=>e.category===s),l=()=>{if(s===On){u({title:`Reset key bindings?`,body:`All bindings return to their defaults. This cannot be undone.`,confirmLabel:`Reset`}).then(e=>e&&t.reset());return}c.forEach(t=>e.set(t.name,t.default))},d=n.data;return(0,N.jsxs)(Re,{active:`settings`,profileName:d?.name,profilePicture:d?.picture,profileAddress:d?.address,profileClaimed:d?.hasClaimedName,onNavigate:r,onClose:e.toggle,children:[(0,N.jsxs)(`div`,{className:R.head,children:[(0,N.jsx)(`h1`,{className:R.title,children:`Settings`}),(0,N.jsx)(`div`,{className:R.tabs,children:i.map(e=>(0,N.jsx)(`button`,{type:`button`,className:`${R.tab} ${e===s?R.tabActive:``}`.trim(),onClick:()=>o(e),children:kn(e)},e))}),(0,N.jsx)(`button`,{type:`button`,className:R.reset,onClick:l,children:`↺ Reset all defaults`})]}),(0,N.jsx)(`div`,{className:R.card,children:s===On?(0,N.jsx)(Dn,{bindings:t}):c.length===0?(0,N.jsx)(`div`,{className:R.empty,children:`No settings available.`}):(0,N.jsx)(`div`,{className:R.grid,children:c.map(t=>(0,N.jsx)(Nn,{s:t,onSet:e.set},t.name))})})]})}var z={root:`_root_fhnuh_2`,head:`_head_fhnuh_21`,title:`_title_fhnuh_30`,closeGlyph:`_closeGlyph_fhnuh_35`,body:`_body_fhnuh_39`,name:`_name_fhnuh_48`,tag:`_tag_fhnuh_58`,addr:`_addr_fhnuh_62`,guest:`_guest_fhnuh_67`,desc:`_desc_fhnuh_75`,links:`_links_fhnuh_81`,link:`_link_fhnuh_81`,empty:`_empty_fhnuh_101`};function Fn({profile:e}){if(!e.open)return null;let t=e.data,{base:n,tag:r}=de(t?t.name.trim()?t.name:O(t.address):``),i=t?D(t.address):`var(--fill-4)`;return(0,N.jsxs)(`div`,{className:z.root,children:[(0,N.jsxs)(`header`,{className:z.head,children:[(0,N.jsx)(`span`,{className:z.title,children:`Profile`}),(0,N.jsx)(o,{variant:`solid`,className:z.closeGlyph,"aria-label":`Close profile`,onClick:e.toggle,children:`×`})]}),t?(0,N.jsxs)(`div`,{className:z.body,children:[(0,N.jsx)(a,{src:t.picture,name:n,color:i,size:88,status:`online`}),(0,N.jsxs)(`div`,{className:z.name,style:{color:i},children:[n,r&&(0,N.jsx)(`span`,{className:z.tag,children:r})]}),(0,N.jsx)(`div`,{className:z.addr,children:O(t.address)}),t.isGuest&&(0,N.jsx)(`span`,{className:z.guest,children:`Guest`}),t.description&&(0,N.jsx)(`p`,{className:z.desc,children:t.description}),t.links&&t.links.length>0&&(0,N.jsx)(`div`,{className:z.links,children:t.links.map(e=>(0,N.jsx)(`a`,{className:z.link,href:e.url,target:`_blank`,rel:`noreferrer`,children:e.title},e.url))})]}):(0,N.jsx)(`div`,{className:z.empty,children:`Profile unavailable.`})]})}var B={root:`_root_8hwrw_2`,head:`_head_8hwrw_21`,heading:`_heading_8hwrw_30`,markRead:`_markRead_8hwrw_36`,closeGlyph:`_closeGlyph_8hwrw_48`,body:`_body_8hwrw_52`,row:`_row_8hwrw_66`,unread:`_unread_8hwrw_77`,thumb:`_thumb_8hwrw_81`,img:`_img_8hwrw_92`,dot:`_dot_8hwrw_97`,info:`_info_8hwrw_104`,title:`_title_8hwrw_111`,bodyText:`_bodyText_8hwrw_120`,time:`_time_8hwrw_130`,unreadDot:`_unreadDot_8hwrw_136`,empty:`_empty_8hwrw_146`};function In(e){return e.replace(/[_-]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function V(e,...t){for(let n of t){let t=e[n];if(typeof t==`string`&&t)return t}}function Ln(e,t,...n){let r=e[t];if(r&&typeof r==`object`)return V(r,...n)}function Rn(e){let t=new Date(e).getTime();if(Number.isNaN(t))return``;let n=Math.floor((Date.now()-t)/6e4);if(n<1)return`now`;if(n<60)return`${n}m`;let r=Math.floor(n/60);if(r<24)return`${r}h`;let i=Math.floor(r/24);return i<7?`${i}d`:new Date(t).toLocaleDateString([],{month:`short`,day:`numeric`})}function zn(e){return V(e,`image`,`thumbnail`,`thumbnailUrl`,`tokenImage`,`profileImageUrl`)??Ln(e,`sender`,`profileImageUrl`,`image`)}var Bn={social_service_friendship_request:`wants to be your friend!`,social_service_friendship_accepted:`accepted your friend request.`},H=e=>V(e,`communityName`)??`a community`,Vn={community_post_added:e=>({title:`New Community Announcement`,body:`A new announcement was posted in ${H(e)}.`}),community_invite_received:e=>({title:`Community Invite Received`,body:`You've been invited to join ${H(e)}.`}),community_voice_chat_started:e=>({title:`Community Voice Stream Started`,body:`${H(e)} is streaming — click to join.`}),community_renamed:e=>({title:`Community Renamed`,body:`${V(e,`oldName`)??`A community`} was renamed to ${V(e,`newName`)??H(e)}.`}),community_request_to_join_received:e=>({title:`Membership Request Received`,body:`${V(e,`userName`,`memberName`)??`Someone`} wants to join ${H(e)}.`}),community_request_to_join_accepted:e=>({title:`Membership Request Accepted`,body:`You're now a member of ${H(e)}.`}),community_deleted:e=>({title:`Community Deleted`,body:`${H(e)} has been deleted.`}),community_deleted_content_violation:e=>({title:`Community Deleted`,body:`${H(e)} was deleted for a content violation.`}),community_member_banned:e=>({title:`Banned from Community`,body:`You've been banned from ${H(e)}.`}),community_member_removed:e=>({title:`Removed from Community`,body:`You've been removed from ${H(e)}.`}),community_ownership_transferred:e=>({title:`Community Ownership Transferred`,body:`You're now the owner of ${H(e)}.`}),credits_reminder_claim_credits:()=>({title:`Marketplace Credits`,body:`You have Credits waiting to be claimed.`}),credits_reminder_complete_goals:()=>({title:`Marketplace Credits`,body:`Complete your goals to earn Credits.`}),credits_reminder_usage:()=>({title:`Marketplace Credits`,body:`Don't forget to use your Credits.`}),credits_reminder_usage_24_hours:()=>({title:`Marketplace Credits`,body:`Your Credits expire soon — use them now.`}),credits_reminder_do_not_miss_out:()=>({title:`Marketplace Credits`,body:`Don't miss out on your Credits.`}),credits_new_season_reminder:()=>({title:`New Credits Season`,body:`A new Marketplace Credits season has started.`})};function Hn(e){let t=e.metadata,n=zn(t);if(Bn[e.type])return{title:Ln(t,`sender`,`name`)??V(t,`title`)??`Someone`,body:Bn[e.type],image:n};let r=V(t,`title`);if(r!=null)return{title:r,body:V(t,`description`,`message`),image:n};let i=Vn[e.type];return i?{...i(t),image:n}:{title:In(e.type),body:V(t,`description`,`message`,`name`),image:n}}function Un({n:e}){let{title:t,body:n,image:r}=Hn(e);return(0,N.jsxs)(`div`,{className:`${B.row} ${e.read?``:B.unread}`.trim(),children:[(0,N.jsx)(`div`,{className:B.thumb,children:r?(0,N.jsx)(`img`,{className:B.img,src:r,alt:``}):(0,N.jsx)(`span`,{className:B.dot})}),(0,N.jsxs)(`div`,{className:B.info,children:[(0,N.jsx)(`span`,{className:B.title,children:t}),n&&(0,N.jsx)(`span`,{className:B.bodyText,children:n})]}),(0,N.jsx)(`span`,{className:B.time,children:Rn(e.timestamp)}),!e.read&&(0,N.jsx)(`span`,{className:B.unreadDot,"aria-label":`unread`})]})}function Wn({notifications:e}){return e.open?(0,N.jsxs)(`div`,{className:B.root,children:[(0,N.jsxs)(`header`,{className:B.head,children:[(0,N.jsx)(`span`,{className:B.heading,children:`Notifications`}),e.unread>0&&(0,N.jsx)(`button`,{type:`button`,className:B.markRead,onClick:e.markAllRead,children:`Mark all read`}),(0,N.jsx)(o,{variant:`solid`,className:B.closeGlyph,"aria-label":`Close notifications`,onClick:e.toggle,children:`×`})]}),(0,N.jsx)(`div`,{className:B.body,children:e.list.length===0?(0,N.jsx)(`div`,{className:B.empty,children:`You’re all caught up.`}):e.list.map(e=>(0,N.jsx)(Un,{n:e},e.id))})]}):null}var Gn={slot:`_slot_10ky5_2`,bg:`_bg_10ky5_6`,num:`_num_10ky5_15`},Kn=182,qn=168,Jn=92,Yn=74,Xn={base:{flap:`#A09BA8`,glows:[{c:`#CFCDD4`,cx:156.62,cy:134.02,r:123.28,b:53.79},{c:`#FCFCFC`,cx:33.93,cy:.93,r:121.93,b:53.79,o:.8}]},common:{flap:`#73D3D3`,glows:[{c:`#73D3D3`,cx:137,cy:115,r:119,b:89.96},{c:`#B5FFF6`,cx:44,cy:32,r:68,b:50}]},uncommon:{flap:`#FF8362`,glows:[{c:`#FF8362`,cx:137,cy:115,r:119,b:81.65},{c:`#FFE0B2`,cx:29.47,cy:18.47,r:77.47,b:50}]},rare:{flap:`#34CE76`,glows:[{c:`#34CE76`,cx:137,cy:115,r:106,b:53.79},{c:`#73FFAF`,cx:32.48,cy:19.06,r:77.47,b:50}]},epic:{flap:`#438FFF`,glows:[{c:`#5C9EFF`,cx:136,cy:102,r:102,b:53.79},{c:`#4DEAFF`,cx:12.47,cy:21.47,r:77.47,b:50}]},legendary:{flap:`#A14BF3`,glows:[{c:`#B66CFF`,cx:121,cy:112,r:83,b:41.72},{c:`#E579FB`,cx:12.47,cy:21.47,r:77.47,b:50}]},mythic:{flap:`#FF4BED`,glows:[{c:`#FF4BED`,cx:121,cy:112,r:83,b:53.79},{c:`#FFA6C1`,cx:12.47,cy:21.47,r:77.47,b:53.79}]},exotic:{flap:`#9CD71E`,glows:[{c:`#CAFF73`,cx:121,cy:112,r:116,b:74.89},{c:`#CAFF73`,cx:12.47,cy:21.47,r:77.47,b:58.66}]},unique:{flap:`#FEA217`,glows:[{c:`#FFDD2C`,cx:70,cy:157,r:91,b:53.79},{c:`#FFAB2C`,cx:132.9,cy:39.9,r:53.9,b:53.79}]}},Zn=`M14.8164 12.709C64.4508 -0.703243 116.612 -1.5304 166.64 10.3027C176.559 12.6489 182.063 22.9775 179.27 32.6738L145.125 151.212C142.308 160.99 132.238 166.37 122.526 164.608C103.049 161.075 83.0735 161.392 63.7158 165.54C54.0636 167.609 43.8302 162.551 40.71 152.865L2.89062 35.4668C-0.202676 25.8636 4.97707 15.368 14.8164 12.709Z`,Qn=`M4.79456 34.854C2.02502 26.2568 6.68143 16.9787 15.3385 14.6393C64.652 1.31383 116.475 0.492713 166.179 12.2493C174.905 14.3132 179.848 23.4393 177.348 32.12L143.203 150.658C140.703 159.339 131.704 164.24 122.883 162.64C103.149 159.061 82.9097 159.381 63.2967 163.584C54.53 165.463 45.3831 160.849 42.6136 152.252L4.79456 34.854Z`,$n=`M47.9447 7.70117C43.9328 8.34457 40.4114 10.7359 38.638 14.3936L17.1322 58.75C15.343 62.4402 15.0466 66.6786 16.304 70.582L4.79428 34.8545C2.02478 26.2574 6.68134 16.9791 15.3382 14.6396C26.1034 11.7307 36.9885 9.41758 47.9447 7.70117Z`,er=`M17.1325 58.7501C15.3433 62.4403 15.047 66.6787 16.3044 70.5822L13.1836 60.8956L33.8238 24.3209L17.1325 58.7501Z`,tr=`M11.0036 21.9181C10.6762 22.1695 10.615 22.639 10.867 22.9659L15.3604 26.5831L17.129 28.6697L15.533 31.4881L15.1114 35.3803C15.162 35.8414 15.6155 36.1457 16.0614 36.0179C16.4192 35.9153 16.6472 35.5652 16.5963 35.1964L17.0108 31.9443L19.1989 28.861L20.0563 33.9719C20.1331 34.4298 20.5915 34.7189 21.0379 34.5909C21.4127 34.4834 21.65 34.1151 21.5929 33.7294L20.6933 27.6476L19.6397 25.3561L21.2475 20.6279C21.4369 20.0711 20.9223 19.5309 20.357 19.6931C20.1239 19.7599 19.9394 19.9382 19.8647 20.1689L19.0229 22.5681C18.7079 23.4659 17.9771 24.1553 17.0625 24.4176C16.1661 24.6746 15.2008 24.4903 14.4621 23.921L12.0623 22.0715C11.8154 21.7316 11.3368 21.6622 11.0036 21.9181Z`;function nr({thumbnail:e,rarity:t=`base`,number:n,width:r=174,rotate:i=0}){let a=(0,A.useId)().replace(/:/g,``),o=e,s=Xn[t]??Xn.base,c=i?`rotate(${-i} ${Jn} ${Yn})`:void 0,l={fontSize:Math.round(r*.19),transform:`translateX(-50%)${i?` rotate(${-i}deg)`:``}`};return(0,N.jsxs)(`div`,{className:Gn.slot,style:{width:r,height:r*qn/Kn,transform:i?`rotate(${i}deg)`:void 0},children:[(0,N.jsxs)(`svg`,{className:Gn.bg,viewBox:`0 0 ${Kn} ${qn}`,preserveAspectRatio:`none`,children:[(0,N.jsxs)(`defs`,{children:[s.glows.map((e,t)=>(0,N.jsx)(`filter`,{id:`blur-${a}-${t}`,x:`-120`,y:`-120`,width:`420`,height:`420`,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:(0,N.jsx)(`feGaussianBlur`,{stdDeviation:e.b})},t)),(0,N.jsx)(`clipPath`,{id:`clip-${a}`,children:(0,N.jsx)(`path`,{d:Qn})})]}),(0,N.jsx)(`path`,{d:Qn,fill:`#691FA9`}),(0,N.jsxs)(`g`,{clipPath:`url(#clip-${a})`,children:[s.glows.map((e,t)=>(0,N.jsx)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,fill:e.c,opacity:e.o??1,filter:`url(#blur-${a}-${t})`},t)),o&&(0,N.jsx)(`g`,{transform:c,children:(0,N.jsx)(`image`,{href:o,x:`37.9961`,y:`20`,width:`108`,height:`108`,preserveAspectRatio:`none`})}),(0,N.jsx)(`path`,{d:$n,fill:s.flap}),(0,N.jsx)(`path`,{d:er,fill:`black`,fillOpacity:`0.1`}),(0,N.jsx)(`path`,{d:tr,fill:`#FCFCFC`}),(0,N.jsx)(`circle`,{cx:`16.2543`,cy:`21.5305`,r:`1.87704`,transform:`rotate(-16 16.2543 21.5305)`,fill:`#FCFCFC`})]}),(0,N.jsx)(`path`,{d:Zn,fill:`none`,stroke:`#f1eff5`,strokeWidth:`4`})]}),n!=null&&(0,N.jsx)(`span`,{className:Gn.num,style:l,children:n})]})}var U={backdrop:`_backdrop_okd42_2`,wheel:`_wheel_okd42_12`,slotPos:`_slotPos_okd42_21`,slotHover:`_slotHover_okd42_27`,slotEmpty:`_slotEmpty_okd42_32`,center:`_center_okd42_38`,hoverName:`_hoverName_okd42_49`,title:`_title_okd42_55`,customise:`_customise_okd42_60`,hint:`_hint_okd42_77`,close:`_close_okd42_83`},rr=215,ir=152,ar=112;function or({emotes:e,onCustomise:t}){let[n,r]=(0,A.useState)(null);if(ve(e=>{(e.key===`e`||e.key===`E`)&&(e.preventDefault(),t?.())},{capture:!1,enabled:e.open&&t!=null}),!e.open)return null;let i=Array.from({length:10},(t,n)=>{let r=(n+1)%10;return{k:n,num:r,deg:-90+n*36,emote:e.list.find(e=>e.slot===r)??null}}),a=n==null?null:e.list.find(e=>e.slot===n);return(0,N.jsx)(`div`,{className:U.backdrop,onClick:e.toggle,children:(0,N.jsxs)(`div`,{className:U.wheel,onClick:e=>e.stopPropagation(),children:[(0,N.jsx)(`button`,{type:`button`,className:U.close,"aria-label":`Close emotes`,onClick:e.toggle,children:`×`}),i.map(({num:t,deg:i,emote:a})=>{let o=i*Math.PI/180,s=rr+ir*Math.cos(o),c=rr+ir*Math.sin(o);return(0,N.jsx)(`div`,{role:`button`,"aria-label":`Emote slot ${t}${a?`: ${a.name}`:``}`,className:`${U.slotPos} ${n===t?U.slotHover:``} ${a?``:U.slotEmpty}`.trim(),style:{left:`${s}px`,top:`${c}px`},onMouseEnter:()=>a&&r(t),onMouseLeave:()=>r(e=>e===t?null:e),onClick:()=>a&&e.play(a.urn),children:(0,N.jsx)(nr,{thumbnail:a?Te(a.urn):void 0,rarity:a?.rarity??`base`,number:t,rotate:i+90,width:ar})},t)}),(0,N.jsxs)(`div`,{className:U.center,children:[(0,N.jsx)(`div`,{className:U.hoverName,children:a?.name??` `}),(0,N.jsx)(`div`,{className:U.title,children:`EMOTES`}),(0,N.jsx)(`button`,{type:`button`,className:U.customise,onClick:t,children:`Customise [E]`}),(0,N.jsx)(`div`,{className:U.hint,children:`Press [B+num] to run an emote`})]})]})})}var sr={root:`_root_2zlqk_5`,group:`_group_2zlqk_27`,divider:`_divider_2zlqk_35`},cr=[{kind:`profile`,icon:`profile`,label:`Profile`},{kind:`notifications`,icon:`notifications`,label:`Notifications`},{kind:`map`,icon:`map`,label:`Map`,hotkey:`Map`},{kind:`places`,icon:`places`,label:`Places`,hotkey:`Places`},{kind:`communities`,icon:`communities`,label:`Communities`,hotkey:`Communities`},{kind:`backpack`,icon:`backpack`,label:`Backpack`,hotkey:`Backpack`},{kind:`gallery`,icon:`gallery`,label:`Gallery`,hotkey:`Gallery`},{kind:`settings`,icon:`settings`,label:`Settings`,hotkey:`Settings`},{kind:`divider`},{kind:`help`,icon:`help`,label:`Help & Support`}],lr=[{kind:`mic`,icon:`mic`,label:`Voice chat`},{kind:`emotes`,icon:`emotes`,label:`Emotes`,hotkey:`Emote`},{kind:`divider`},{kind:`friends`,icon:`friends`,label:`Friends`,hotkey:`Friends`},{kind:`chat`,icon:`chat`,label:`Chat`,hotkey:`ChatPanel`}];function ur(e,t,n,r,i){if(e.kind===`divider`)return(0,N.jsx)(`div`,{className:sr.divider},`d${t}`);let a=`hotkey`in e&&e.hotkey!=null?pe(r,e.hotkey):void 0;return e.kind===`chat`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,badge:n.chat.unread,active:n.chat.open,onClick:n.chat.toggle},`chat`):e.kind===`friends`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,badge:n.friends.received.length,active:n.friends.open,onClick:n.friends.toggle},`friends`):e.kind===`settings`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,active:n.settings.open,onClick:n.settings.toggle},`settings`):e.kind===`profile`?(0,N.jsx)(b,{icon:e.icon,label:e.label,active:n.profile.open,onClick:i??n.profile.toggle},`profile`):e.kind===`backpack`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,active:n.backpack.open,onClick:n.backpack.toggle},`backpack`):e.kind===`communities`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,active:n.communities.open,onClick:n.communities.toggle},`communities`):e.kind===`map`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,active:n.map.open,onClick:n.map.toggle},`map`):e.kind===`places`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,active:n.places.open,onClick:n.places.toggle},`places`):e.kind===`gallery`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,active:n.gallery.open,onClick:n.gallery.toggle},`gallery`):e.kind===`notifications`?(0,N.jsx)(b,{icon:e.icon,label:e.label,badge:n.notifications.unread,active:n.notifications.open,onClick:n.notifications.toggle},`notifications`):e.kind===`emotes`?(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,active:n.emotes.open,onClick:n.emotes.toggle},`emotes`):e.kind===`mic`?(0,N.jsx)(b,{icon:e.icon,label:e.label,active:n.mic.enabled,onClick:n.mic.toggle},`mic`):e.kind===`help`?(0,N.jsx)(b,{icon:e.icon,label:e.label,onClick:()=>window.open(`https://decentraland.org/help/`,`_blank`,`noopener`)},`help`):(0,N.jsx)(b,{icon:e.icon,label:e.label,shortcut:a,onClick:()=>n.nav(e.action)},e.action)}function dr({session:e,onViewProfile:t}){let n=ue();return(0,N.jsxs)(`nav`,{className:sr.root,"aria-label":`Main navigation`,children:[(0,N.jsx)(`div`,{className:sr.group,children:cr.map((r,i)=>ur(r,i,e,n,t))}),(0,N.jsx)(`div`,{className:sr.group,children:lr.map((r,i)=>ur(r,i,e,n,t))})]})}var W={root:`_root_iexx0_8`,header:`_header_iexx0_26`,title:`_title_iexx0_38`,coords:`_coords_iexx0_47`,collapse:`_collapse_iexx0_54`,surface:`_surface_iexx0_75`,circle:`_circle_iexx0_87`,cutout:`_cutout_iexx0_101`,cutoutFill:`_cutoutFill_iexx0_105`,rotor:`_rotor_iexx0_110`,layer:`_layer_iexx0_120`,tile:`_tile_iexx0_130`,poi:`_poi_iexx0_135`,poiPin:`_poiPin_iexx0_144`,poiLabel:`_poiLabel_iexx0_153`,north:`_north_iexx0_173`,northLabel:`_northLabel_iexx0_186`,arrow:`_arrow_iexx0_196`,zoom:`_zoom_iexx0_208`,settings:`_settings_iexx0_217`,roundButton:`_roundButton_iexx0_223`};function fr({chunks:e}){let t=1280;return(0,N.jsx)(N.Fragment,{children:e.map(({col:e,row:n})=>(0,N.jsx)(`img`,{className:W.tile,src:Ce(e,n),alt:``,draggable:!1,width:t,height:t,style:{left:e*t,top:n*t}},`${e},${n}`))})}function pr({tile:e}){let t=e.meters/2,n=xe(e.centerX-t,e.centerZ+t,32),r=e.meters/16*32;return(0,N.jsx)(`img`,{className:W.tile,src:e.url,alt:``,draggable:!1,width:r,height:r,style:{left:n.x,top:n.y}})}var mr=`dcl-minimap-places`,hr=4320*60*1e3,gr=100,_r=500;function vr(e){let[t,n]=e.split(`,`).map(Number);return Number.isFinite(t)&&Number.isFinite(n)?{x:t,y:n}:null}function yr(e){let t=(e.positions??[]).map(vr).filter(e=>e!=null);if(t.length===0)return e.base_position==null?null:vr(e.base_position);let n=t.reduce((e,t)=>({x:e.x+t.x,y:e.y+t.y}),{x:0,y:0});return{x:Math.round(n.x/t.length),y:Math.round(n.y/t.length)}}function br(e){let t=[];for(let n of e){if(n.world===!0)continue;let e=yr(n);e!=null&&t.push({id:n.id,title:n.title,categories:n.categories??[],x:e.x,y:e.y})}return t}function xr(){try{let e=localStorage.getItem(mr);if(e==null)return null;let t=JSON.parse(e);if(typeof t!=`object`||!t)return null;let{at:n,places:r}=t;return typeof n!=`number`||Date.now()-n>hr||!Array.isArray(r)?null:r}catch{return null}}function Sr(e){try{localStorage.setItem(mr,JSON.stringify({at:Date.now(),places:e}))}catch{}}var Cr=null;function wr(){let e=xr();return e==null?Cr??(Cr=(async()=>{let e=[];for(let t=0;t<_r;t+=gr){let n=await ye({limit:gr,offset:t,order_by:`like_score_best`,order:`desc`});if(e.push(...br(n.data)),n.data.length<gr)break}return Sr(e),e})(),Cr.catch(()=>{Cr=null}),Cr):Promise.resolve(e)}function Tr(e,t,n,r){return e.map(e=>({p:e,d:Math.hypot(e.x-t,e.y-n)})).filter(e=>e.d<=r).sort((e,t)=>e.d-t.d).map(e=>e.p)}var Er=`dcl-minimap-style`,Dr=`dcl-minimap-rotation`,Or=`dcl-minimap-zoom`,kr=`dcl-minimap-markers`,Ar=[`parcel`,`satellite`,`imposters`],jr=[`camera`,`north`],Mr=[`poi`,`featured`,`game`,`casino`,`social`,`music`,`art`,`fashion`,`crypto`,`education`,`shop`,`sports`,`business`,`parkour`];function Nr(e){try{return localStorage.getItem(e)}catch{return null}}function Pr(e,t){try{localStorage.setItem(e,t)}catch{}}function Fr(){let e=Nr(Er);return Ar.includes(e)?e:`satellite`}function Ir(e){Pr(Er,e)}function Lr(){let e=Nr(Dr);return jr.includes(e)?e:`north`}function Rr(e){Pr(Dr,e)}function zr(){let e=Number(Nr(Or));return!Number.isFinite(e)||e<=0?256:Math.min(768,Math.max(64,e))}function Br(e){Pr(Or,String(e))}function Vr(){try{let e=JSON.parse(Nr(kr)??`null`);return Array.isArray(e)?e.filter(e=>typeof e==`string`):[...Mr]}catch{return[...Mr]}}function Hr(e){Pr(kr,JSON.stringify(e))}var Ur={menu:`_menu_o6pdy_3`,section:`_section_o6pdy_16`,option:`_option_o6pdy_26`,check:`_check_o6pdy_44`},Wr=[{value:`camera`,label:`Rotate with camera`},{value:`north`,label:`Fixed north`}],Gr=[{value:`parcel`,label:`Parcel atlas`},{value:`satellite`,label:`Satellite`},{value:`imposters`,label:`Camera`}];function Kr(e){return e.length===0?`none`:e.length===1&&e[0]===`poi`?`poi`:e.length===Mr.length?`all`:null}var qr=[{value:`all`,label:`All`,categories:Mr},{value:`poi`,label:`Only POI`,categories:[`poi`]},{value:`none`,label:`None`,categories:[]}];function Jr({rotation:e,onRotation:t,style:n,onStyle:r,hideStyle:i,markers:a,onMarkers:o}){let s=Kr(a);return(0,N.jsxs)(`div`,{className:Ur.menu,role:`menu`,"aria-label":`Minimap settings`,children:[(0,N.jsx)(`p`,{className:Ur.section,children:`Rotation mode`}),Wr.map(n=>(0,N.jsx)(Yr,{label:n.label,selected:e===n.value,onSelect:()=>t(n.value)},n.value)),!i&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`p`,{className:Ur.section,children:`Visualization style`}),Gr.map(e=>(0,N.jsx)(Yr,{label:e.label,selected:n===e.value,onSelect:()=>r(e.value)},e.value))]}),(0,N.jsx)(`p`,{className:Ur.section,children:`Markers`}),qr.map(e=>(0,N.jsx)(Yr,{label:e.label,selected:s===e.value,onSelect:()=>o([...e.categories])},e.value))]})}function Yr({label:e,selected:t,onSelect:n}){return(0,N.jsxs)(`button`,{type:`button`,className:Ur.option,role:`menuitemradio`,"aria-checked":t,onClick:n,children:[(0,N.jsx)(`span`,{className:Ur.check,children:t&&(0,N.jsx)(v,{size:13})}),e]})}var Xr=220,Zr=.2,Qr=10;function $r({minimap:e,map:t,sceneTitle:n,setEngineViewport:r}){let[i,a]=(0,A.useState)(!0),[o,s]=(0,A.useState)(!1),[c,l]=(0,A.useState)(Fr),[u,d]=(0,A.useState)(Lr),[f,h]=(0,A.useState)(zr),[g,te]=(0,A.useState)(Vr),[_,v]=(0,A.useState)([]),[y,ie]=(0,A.useState)([]),[b,ae]=(0,A.useState)(()=>Oe(0,0)),[x,S]=(0,A.useState)({x:0,y:0}),C=(0,A.useRef)(null),w=(0,A.useRef)(null),T=(0,A.useRef)(f),E=e.isWorld?`imposters`:c,{pose:oe,setConfig:se}=e;(0,A.useEffect)(()=>{se({style:E,rotation:u,visibleMeters:f})},[se,E,u,f]),(0,A.useEffect)(()=>{if(e.isWorld||g.length===0)return;let t=!0;return wr().then(e=>{t&&v(e)}).catch(e=>{console.warn(`[minimap] could not load place markers`,e)}),()=>{t=!1}},[e.isWorld,g.length]);let ce=(0,A.useMemo)(()=>e.isWorld?[]:Tr(_,x.x,x.y,Qr).filter(e=>e.categories.some(e=>g.includes(e))),[e.isWorld,_,x.x,x.y,g]);(0,A.useEffect)(()=>{let e=C.current;if(e==null||!i)return;let t=0,n=``,r=``,a=``,o=()=>{t=requestAnimationFrame(o);let i=oe.current,s=Xr/T.current*16/32,c=xe(i.x,i.z,32),l=u===`north`?0:-i.camYaw;e.style.setProperty(`--map-scale`,String(s)),e.style.setProperty(`--map-tx`,String(-c.x)),e.style.setProperty(`--map-ty`,String(-c.y)),e.style.setProperty(`--map-yaw`,String(l)),e.style.setProperty(`--map-arrow`,String(i.yaw+l));let d=Math.floor(i.x/16),f=Math.floor(i.z/16),p=`${d},${f}`;if(p!==a&&(a=p,S({x:d,y:f})),E===`satellite`){let e=Xr/2/s*Math.SQRT2,t=je(c.x-e,c.y-e,c.x+e,c.y+e,1280),r=t.map(e=>`${e.col},${e.row}`).join(`|`);r!==n&&(n=r,ie(t))}else if(E===`parcel`){let e=Oe(i.x,i.z);e.url!==r&&(r=e.url,ae(e))}};return t=requestAnimationFrame(o),()=>cancelAnimationFrame(t)},[oe,u,E,i]);let le=(0,A.useCallback)(e=>{let t=T.current,n=Math.min(768,Math.max(64,t*e));if(n===t)return;let r=Math.log(t),i=Math.log(n),a=performance.now(),o=e=>{let t=Math.min(1,(e-a)/(Zr*1e3));if(T.current=Math.exp(r+(i-r)*t),t<1){requestAnimationFrame(o);return}T.current=n,h(n),Br(n)};requestAnimationFrame(o)},[]),D=f>64,O=f<768;(0,A.useEffect)(()=>{if(!o)return;let e=e=>{w.current?.contains(e.target)||s(!1)};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[o]);let ue=(0,A.useCallback)(e=>{l(e),Ir(e)},[]),de=(0,A.useCallback)(e=>{d(e),Rr(e)},[]),fe=(0,A.useCallback)(e=>{te(e),Hr(e)},[]),k=(0,A.useCallback)(e=>e.stopPropagation(),[]),pe=(0,A.useMemo)(()=>E===`satellite`?(0,N.jsx)(fr,{chunks:y}):E===`parcel`?(0,N.jsx)(pr,{tile:b}):null,[E,y,b]);return(0,N.jsxs)(`div`,{className:W.root,children:[(0,N.jsxs)(`div`,{className:W.header,children:[(0,N.jsx)(`span`,{className:W.title,children:n||`Empty parcel`}),(0,N.jsxs)(`span`,{className:W.coords,children:[x.x,`,`,x.y]}),(0,N.jsx)(`button`,{type:`button`,className:W.collapse,onClick:()=>a(e=>!e),"aria-label":i?`Collapse minimap`:`Expand minimap`,"aria-expanded":i,children:i?(0,N.jsx)(ee,{size:16}):(0,N.jsx)(re,{size:16})})]}),i&&(0,N.jsxs)(`div`,{className:W.surface,ref:C,children:[(0,N.jsxs)(`button`,{type:`button`,className:E===`imposters`?`${W.circle} ${W.cutout}`:W.circle,onClick:t.toggle,"aria-label":`Open map`,children:[(0,N.jsxs)(`div`,{className:W.rotor,children:[(0,N.jsxs)(`div`,{className:W.layer,children:[pe,ce.map(e=>{let t=xe(e.x*16+16/2,e.y*16+16/2,32);return(0,N.jsxs)(`span`,{className:W.poi,style:{left:t.x,top:t.y},children:[(0,N.jsx)(`img`,{className:W.poiPin,src:Se(e.categories),alt:``,draggable:!1}),e.categories.includes(`poi`)&&(0,N.jsx)(`span`,{className:W.poiLabel,children:e.title})]},e.id)})]}),(0,N.jsx)(`span`,{className:W.north,"aria-hidden":`true`,children:(0,N.jsx)(`span`,{className:W.northLabel,children:`N`})})]}),E===`imposters`&&(0,N.jsx)(`span`,{className:W.cutoutFill,children:(0,N.jsx)(ze,{region:`map`,report:r})}),(0,N.jsx)(`svg`,{className:W.arrow,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,N.jsx)(`path`,{d:`M12 2 21 22 12 17.4 3 22Z`,fill:`var(--brand)`,stroke:`var(--text)`,strokeWidth:`1.6`,strokeLinejoin:`round`})})]}),(0,N.jsxs)(`div`,{className:W.zoom,onClick:k,role:`group`,"aria-label":`Minimap zoom`,children:[(0,N.jsx)(`button`,{type:`button`,className:W.roundButton,onClick:()=>le(1/1.5),disabled:!D,"aria-label":`Zoom in`,children:(0,N.jsx)(m,{size:14})}),(0,N.jsx)(`button`,{type:`button`,className:W.roundButton,onClick:()=>le(1.5),disabled:!O,"aria-label":`Zoom out`,children:(0,N.jsx)(p,{size:14})})]}),(0,N.jsxs)(`div`,{className:W.settings,onClick:k,ref:w,children:[(0,N.jsx)(`button`,{type:`button`,className:W.roundButton,onClick:()=>s(e=>!e),"aria-label":`Minimap settings`,"aria-expanded":o,children:(0,N.jsx)(ne,{size:14})}),o&&(0,N.jsx)(Jr,{rotation:u,onRotation:de,style:c,onStyle:ue,hideStyle:e.isWorld,markers:g,onMarkers:fe})]})]})]})}var G={root:`_root_1pc98_1`,reticle:`_reticle_1pc98_13`,reticleActive:`_reticleActive_1pc98_38`,hints:`_hints_1pc98_45`,hintsRadial:`_hintsRadial_1pc98_60`,hint:`_hint_1pc98_45`,hintReverse:`_hintReverse_1pc98_79`,hintDisabled:`_hintDisabled_1pc98_83`,hintText:`_hintText_1pc98_86`,mouse:`_mouse_1pc98_89`,cap:`_cap_1pc98_93`,proxTip:`_proxTip_1pc98_109`},ei=0,ti={0:`IaPointer`,1:`IaPrimary`,2:`IaSecondary`,3:`IaAny`,4:`IaForward`,5:`IaBackward`,6:`IaRight`,7:`IaLeft`,8:`IaJump`,9:`IaWalk`,10:`IaAction3`,11:`IaAction4`,12:`IaAction5`,13:`IaAction6`,14:`IaModifier`},ni={1:`E`,2:`F`,4:`W`,5:`S`,6:`D`,7:`A`,8:`Space`,10:`1`,11:`2`,12:`3`,13:`4`};function ri(){return(0,N.jsxs)(`svg`,{className:G.mouse,width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:[(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.6746 11.8961V2.99524C11.6746 2.99524 4.33789 2.98667 4.33789 11.8961H11.6746Z`,fill:`#FF7439`}),(0,N.jsx)(`rect`,{x:`4.50781`,y:`2.99524`,width:`15`,height:`20`,rx:`7.5`,stroke:`#ECEBED`,strokeWidth:`2`}),(0,N.jsx)(`path`,{d:`M4.33789 11.9952H18.9999`,stroke:`#ECEBED`}),(0,N.jsx)(`path`,{d:`M7.20715 0.590018C4.26466 1.54992 2.11196 4.23323 1.19016 6.9471`,stroke:`#ECEBED`,strokeLinecap:`round`})]})}function ii({button:e}){let t=ue(),n=ti[e],r=n==null?void 0:k(t,{Scene:n})[0];return r===`Mouse Left`||r==null&&e===ei?(0,N.jsx)(ri,{}):(0,N.jsx)(`span`,{className:G.cap,children:r==null?ni[e]??`?`:E(t,r)})}var ai=14,oi=34,si=[{x:ai,y:0,side:`r`},{x:-14,y:0,side:`l`},{x:0,y:-2*oi,side:`t`},{x:ai,y:oi,side:`r`},{x:-14,y:oi,side:`l`},{x:ai,y:-34,side:`r`},{x:-14,y:-34,side:`l`}];function ci(e){return e.side===`t`?{position:`absolute`,left:e.x,top:e.y,transform:`translate(-50%, -50%)`}:e.side===`l`?{position:`absolute`,left:e.x,top:e.y,transform:`translate(-100%, -50%)`}:{position:`absolute`,left:e.x,top:e.y,transform:`translateY(-50%)`}}var li={camera:{Icon:ie,text:`Get camera closer`},player:{Icon:h,text:`Get player closer`}};function ui({action:e,slot:t}){let n=t?.side===`l`,r=e.enabled?null:li[e.tooFarReason??`camera`];return(0,N.jsxs)(`div`,{className:`${G.hint}${n?` ${G.hintReverse}`:``}${e.enabled?``:` ${G.hintDisabled}`}`,style:t?ci(t):void 0,children:[r?(0,N.jsx)(`span`,{className:G.mouse,"data-testid":`too-far-icon-${e.tooFarReason??`camera`}`,children:(0,N.jsx)(r.Icon,{size:22})}):(0,N.jsx)(ii,{button:e.button}),(0,N.jsx)(`span`,{className:G.hintText,children:e.enabled?e.text:r?.text})]})}function di({hover:e,locked:t,proximity:n}){let r=(0,A.useSyncExternalStore)(_e,Me),[i,a]=(0,A.useState)(!1);(0,A.useEffect)(()=>{let e=()=>a(document.pointerLockElement!=null);return e(),document.addEventListener(`pointerlockchange`,e),()=>document.removeEventListener(`pointerlockchange`,e)},[]);let o=t||i,s=e.length>0;return(0,A.useEffect)(()=>(we(s&&!o),()=>we(!1)),[s,o]),!o&&!s&&n.length===0?null:(0,N.jsxs)(`div`,{className:G.root,"aria-hidden":`true`,children:[o&&(0,N.jsx)(`div`,{"data-testid":`reticle`,className:`${G.reticle}${s?` ${G.reticleActive}`:``}`}),s&&(o?(0,N.jsx)(`div`,{className:G.hints,children:e.map((e,t)=>(0,N.jsx)(ui,{action:e},t))}):(0,N.jsx)(`div`,{className:G.hintsRadial,style:{left:r.x,top:r.y},children:e.slice(0,si.length).map((e,t)=>(0,N.jsx)(ui,{action:e,slot:si[t]},t))})),n.map(e=>(0,N.jsx)(`div`,{"data-testid":`proxtip-${e.id}`,className:G.proxTip,style:{left:`${e.x}px`,top:`${e.y}px`},children:e.actions.map((e,t)=>(0,N.jsxs)(`div`,{className:G.hint,children:[(0,N.jsx)(ii,{button:e.button}),(0,N.jsx)(`span`,{className:G.hintText,children:e.text})]},t))},e.id))]})}var K={modal:`_modal_h601v_4`,icon:`_icon_h601v_17`,prompt:`_prompt_h601v_27`,scene:`_scene_h601v_33`,additional:`_additional_h601v_36`,options:`_options_h601v_41`,option:`_option_h601v_41`,radio:`_radio_h601v_63`,radioOn:`_radioOn_h601v_76`,radioDot:`_radioDot_h601v_79`,input:`_input_h601v_86`,actions:`_actions_h601v_92`,deny:`_deny_h601v_98`},fi={MovePlayer:`move your avatar within the scene bounds`,ForceCamera:`temporarily change the camera view`,PlayEmote:`make your avatar perform an emote`,SetLocomotion:`temporarily modify your avatar's locomotion settings`,HideAvatarsNametags:`temporarily hide player avatars and/or nametags, and/or disables passports`,DisableVoice:`temporarily disable voice chat`,Teleport:`teleport you to a new location`,ChangeRealm:`move you to a new realm`,SpawnPortable:`spawn a portable experience`,KillPortables:`manage your active portable experiences`,Web3:`initiate a web3 transaction with your wallet`,CopyToClipboard:`copy text into the clipboard`,Fetch:`fetch data from a remote server`,Websocket:`open a web socket to communicate with a remote server`,OpenUrl:`open a url in your browser`},pi=[{value:`once`,label:`Once`},{value:`scene`,label:`Always for Scene`},{value:`realm`,label:`Always for Realm`},{value:`global`,label:`Always for Global`}];function mi(){return(0,N.jsxs)(`svg`,{width:`26`,height:`26`,viewBox:`0 0 24 24`,"aria-hidden":`true`,fill:`none`,children:[(0,N.jsx)(`rect`,{x:`4`,y:`10`,width:`16`,height:`11`,rx:`2`,fill:`currentColor`}),(0,N.jsx)(`path`,{d:`M8 10V7a4 4 0 0 1 8 0v3`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`})]})}function hi({request:e,onResolve:t}){let[r,i]=(0,A.useState)(`once`),a=fi[e.ty]??`perform a restricted action`;return(0,N.jsxs)(`div`,{className:K.modal,role:`alertdialog`,"aria-modal":`true`,"aria-label":`Scene permission request`,onClick:e=>e.stopPropagation(),children:[(0,N.jsx)(`span`,{className:K.icon,children:(0,N.jsx)(mi,{})}),(0,N.jsxs)(`div`,{className:K.prompt,children:[`The scene `,(0,N.jsx)(`span`,{className:K.scene,children:e.sceneName||`A scene`}),` wants permission to `,a]}),e.additional?(0,N.jsx)(`div`,{className:K.additional,children:e.additional}):null,(0,N.jsx)(`div`,{className:K.options,role:`radiogroup`,"aria-label":`Apply this decision`,children:pi.map(e=>(0,N.jsxs)(`label`,{className:K.option,children:[(0,N.jsx)(`input`,{className:K.input,type:`radio`,name:`permission-level`,checked:r===e.value,onChange:()=>i(e.value)}),(0,N.jsx)(`span`,{className:`${K.radio} ${r===e.value?K.radioOn:``}`.trim(),children:r===e.value?(0,N.jsx)(`span`,{className:K.radioDot}):null}),e.label]},e.value))}),(0,N.jsxs)(`div`,{className:K.actions,children:[(0,N.jsx)(n,{variant:`primary`,onClick:()=>t(!0,r),children:`Allow`}),(0,N.jsx)(n,{variant:`ghost`,className:K.deny,onClick:()=>t(!1,r),children:`Deny`})]})]})}function gi(e,t){let n=!1,r=(r,i)=>{n||(n=!0,t(e.id,r,i))};return g(t=>(0,N.jsx)(hi,{request:e,onResolve:(e,n)=>{r(e,n),t()}}),{onClose:()=>r(!1,`once`)})}function _i(e){let[t,n]=(0,A.useState)({page:0,engine:null,ms:0});return(0,A.useEffect)(()=>{if(!e)return;let t=0,r=0,i=0,a=null,o,s=performance.now(),c=s,l=0,u=()=>{let e=window;e===a||typeof e.__engineHeartbeat!=`function`||(o=e.__engineHeartbeat,e.__engineHeartbeat=function(...e){return i++,o?.apply(this,e)},a=e)},d=e=>{if(r++,l+=e-c,c=e,u(),e-s>=500){let t=(e-s)/1e3;n({page:Math.round(r/t),engine:typeof window.__nativeEngineFps==`number`?Math.round(window.__nativeEngineFps):a?Math.round(i/t):null,ms:Number((l/r).toFixed(1))}),r=0,i=0,l=0,s=e}t=requestAnimationFrame(d)};return t=requestAnimationFrame(d),()=>{cancelAnimationFrame(t),a&&o&&(a.__engineHeartbeat=o)}},[e]),t}var q={meter:`_meter_77eb9_1`,fps:`_fps_77eb9_21`,unit:`_unit_77eb9_25`,dim:`_dim_77eb9_31`,engine:`_engine_77eb9_34`,good:`_good_77eb9_39`,warn:`_warn_77eb9_42`,bad:`_bad_77eb9_45`};function vi(){let{page:e,engine:t,ms:n}=_i(!0),r=e>=55?q.good:e>=30?q.warn:q.bad;return(0,N.jsxs)(`div`,{className:q.meter,"aria-hidden":`true`,children:[(0,N.jsxs)(`span`,{className:`${q.fps} ${r}`,children:[e,(0,N.jsx)(`span`,{className:q.unit,children:`fps`})]}),(0,N.jsxs)(`span`,{className:q.dim,children:[n,`ms`]}),t!=null&&(0,N.jsxs)(`span`,{className:q.dim,children:[`engine `,(0,N.jsx)(`b`,{className:q.engine,children:t})]})]})}var J={root:`_root_1m58s_1`,"fade-in":`_fade-in_1m58s_1`,leaving:`_leaving_1m58s_13`,"fade-out":`_fade-out_1m58s_1`,watermark:`_watermark_1m58s_18`,loading:`_loading_1m58s_38`,spinnerLogo:`_spinnerLogo_1m58s_44`,pulse:`_pulse_1m58s_1`,panel:`_panel_1m58s_52`,logo:`_logo_1m58s_60`,title:`_title_1m58s_66`,subtitle:`_subtitle_1m58s_75`,account:`_account_1m58s_83`,error:`_error_1m58s_90`,buttons:`_buttons_1m58s_96`,cta:`_cta_1m58s_105`,ctaSecondary:`_ctaSecondary_1m58s_106`,authHint:`_authHint_1m58s_135`,authCode:`_authCode_1m58s_142`,resetBox:`_resetBox_1m58s_151`,resetText:`_resetText_1m58s_160`,ctaDanger:`_ctaDanger_1m58s_167`,label:`_label_1m58s_173`,arrow:`_arrow_1m58s_181`,bootBar:`_bootBar_1m58s_188`,bootLabel:`_bootLabel_1m58s_198`,bootTrack:`_bootTrack_1m58s_205`,bootFill:`_bootFill_1m58s_212`,avatarWrap:`_avatarWrap_1m58s_220`,disc:`_disc_1m58s_233`,glow:`_glow_1m58s_249`,"glow-pulse":`_glow-pulse_1m58s_1`,avatar:`_avatar_1m58s_220`,"avatar-in":`_avatar-in_1m58s_1`,"avatar-float":`_avatar-float_1m58s_1`},yi={download:`Downloading engine`,compile:`Compiling`,init:`Initializing`,workers:`Starting workers`,gpu:`Preparing graphics`};function bi({flow:e}){if(e.engineReady)return null;let t=(e.loadStep==null?void 0:yi[e.loadStep])??`Starting…`,n=Math.round(e.loadProgress);return(0,N.jsxs)(`div`,{className:J.bootBar,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":t,children:[(0,N.jsxs)(`div`,{className:J.bootLabel,children:[t,` · `,n,`%`]}),(0,N.jsx)(`div`,{className:J.bootTrack,children:(0,N.jsx)(`div`,{className:J.bootFill,style:{width:`${n}%`}})})]})}function xi(e){return e.loadStep===`download`?`DOWNLOADING… ${Math.round(e.loadProgress)}%`:`STARTING…`}function Si(){return(0,N.jsx)(`span`,{className:J.arrow,"aria-hidden":`true`,children:(0,N.jsxs)(`svg`,{viewBox:`0 0 28 28`,width:`22`,height:`22`,children:[(0,N.jsx)(`circle`,{cx:`14`,cy:`14`,r:`14`,fill:`#fff`}),(0,N.jsx)(`path`,{d:`M12.5 9l5 5-5 5M9 14h8`,stroke:`var(--brand)`,strokeWidth:`2.4`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})]})})}function Ci(e){let[t,n]=(0,A.useState)({});return(0,A.useEffect)(()=>{if(e==null||e===``){n({});return}let t=!1;return fetch(`https://peer.decentraland.org/lambdas/profiles/${e}`).then(e=>e.json()).then(e=>{let r=e.avatars?.[0];t||n({name:r?.name,body:r?.avatar?.snapshots?.body})}).catch(()=>void 0),()=>{t=!0}},[e]),t}function wi({body:e}){let[t,n]=(0,A.useState)(!1);return t?null:(0,N.jsxs)(`div`,{className:J.avatarWrap,children:[(0,N.jsx)(`div`,{className:J.disc}),(0,N.jsx)(`div`,{className:J.glow}),(0,N.jsx)(`img`,{className:J.avatar,src:e,alt:``,draggable:!1,onError:()=>n(!0)})]})}var Ti={"sign-in-or-guest":{title:`Discover a virtual social world`,subtitle:`shaped by its community of
8
+ creators & explorers.`},"reuse-login-or-new":{title:`Welcome back!`,subtitle:`Ready to explore?`}};function Ei({flow:e}){(0,A.useEffect)(()=>{De()},[]);let t=e.status===`reuse-login-or-new`,n=Ci(t&&e.account!=null?e.account:void 0);return(0,N.jsx)(`div`,{className:J.root,children:e.status===`loading`?(0,N.jsx)(`div`,{className:J.loading,children:(0,N.jsx)(`div`,{className:J.spinnerLogo})}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:J.watermark}),(0,N.jsx)(Di,{flow:e,name:n.name}),t&&n.body!=null&&(0,N.jsx)(wi,{body:n.body}),(0,N.jsx)(bi,{flow:e})]})})}function Di({flow:e,name:t}){let r=e.status,i=Ti[r],a=r===`reuse-login-or-new`&&t!=null&&t!==``?`Welcome back ${t}`:i.title,o=!e.engineReady;return(0,N.jsxs)(`div`,{className:J.panel,children:[(0,N.jsx)(`div`,{className:J.logo}),(0,N.jsx)(`h1`,{className:J.title,children:a}),i.subtitle&&(0,N.jsx)(`p`,{className:J.subtitle,children:i.subtitle}),e.error&&(0,N.jsx)(`p`,{className:J.error,children:e.error}),(0,N.jsxs)(`div`,{className:J.buttons,children:[e.authPending&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`p`,{className:J.authHint,children:e.authCode==null?`Opening the sign-in page in your browser…`:`Verify this code matches the one in the browser window we just opened:`}),e.authCode!=null&&(0,N.jsx)(`div`,{className:J.authCode,children:e.authCode}),(0,N.jsx)(n,{variant:`secondary`,size:`lg`,className:J.ctaSecondary,onClick:e.cancelLogin,children:(0,N.jsx)(`span`,{className:J.label,children:`CANCEL`})})]}),r===`sign-in-or-guest`&&!e.authPending&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(n,{variant:`primary`,size:`lg`,className:J.cta,onClick:e.startWithAccount,disabled:e.busy,children:[(0,N.jsx)(`span`,{className:J.label,children:`START WITH ACCOUNT`}),(0,N.jsx)(Si,{})]}),(0,N.jsx)(n,{variant:`secondary`,size:`lg`,className:J.ctaSecondary,onClick:e.exploreAsGuest,disabled:e.busy||o,children:(0,N.jsx)(`span`,{className:J.label,children:o?xi(e):`EXPLORE AS GUEST`})})]}),r===`reuse-login-or-new`&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(n,{variant:`primary`,size:`lg`,className:J.cta,onClick:e.jumpIn,disabled:e.busy||o,children:[(0,N.jsx)(`span`,{className:J.label,children:o?xi(e):e.profileFetchFailed?`TRY AGAIN`:`JUMP INTO DECENTRALAND`}),!o&&(0,N.jsx)(Si,{})]}),(0,N.jsx)(n,{variant:`secondary`,size:`lg`,className:J.ctaSecondary,onClick:e.useDifferentAccount,disabled:e.busy,children:(0,N.jsx)(`span`,{className:J.label,children:`USE A DIFFERENT ACCOUNT`})}),e.profileFetchFailed&&(0,N.jsxs)(`div`,{className:J.resetBox,children:[(0,N.jsx)(`p`,{className:J.resetText,children:`If the problem persists you can continue with a fresh default profile. This permanently replaces your account's current avatar and profile.`}),(0,N.jsx)(n,{variant:`secondary`,size:`lg`,className:`${J.ctaSecondary} ${J.ctaDanger}`,onClick:e.resetProfileAndJumpIn,disabled:e.busy||o,children:(0,N.jsx)(`span`,{className:J.label,children:`RESET PROFILE & JUMP IN`})})]})]})]})]})}var Y={root:`_root_1vhw7_1`,"fade-in":`_fade-in_1vhw7_1`,logo:`_logo_1vhw7_24`,title:`_title_1vhw7_30`,subtitle:`_subtitle_1vhw7_36`,track:`_track_1vhw7_44`,fill:`_fill_1vhw7_52`,indeterminate:`_indeterminate_1vhw7_59`,slide:`_slide_1vhw7_1`};function Oi({scene:e}){let t=(0,A.useRef)(0),n=e?.pendingAssets??null;n!=null&&n>t.current&&(t.current=n);let r=e!=null&&!e.realmConnected,i=n!=null&&t.current>0,a=i?1-n/t.current:0,o=r?`Reconnecting…`:e?.title?e.title:`Entering Decentraland`,s=r?`Reconnecting to the realm`:n!=null&&n>0?`Loading scene assets · ${n} remaining`:`Preparing your surroundings`;return(0,N.jsxs)(`div`,{className:Y.root,children:[(0,N.jsx)(`div`,{className:Y.logo}),(0,N.jsx)(`h2`,{className:Y.title,children:o}),(0,N.jsx)(`p`,{className:Y.subtitle,children:s}),(0,N.jsx)(`div`,{className:Y.track,children:(0,N.jsx)(`div`,{className:`${Y.fill}${i?``:` `+Y.indeterminate}`,style:i?{width:`${Math.round(a*100)}%`}:void 0})})]})}function ki({onStay:t,onLeave:r}){return(0,N.jsx)(e,{title:`Leave Decentraland?`,closeButton:!1,width:420,actions:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(n,{variant:`ghost`,onClick:t,children:`Stay`}),(0,N.jsx)(n,{variant:`primary`,onClick:r,children:`Leave`})]}),actionsEqual:!0,children:`You're about to exit the world and go back. You'll have to reconnect to return.`})}function Ai(e,t){let n=!1,r=e=>{n||(n=!0,e())};return g(e=>(0,N.jsx)(ki,{onStay:e,onLeave:()=>{r(t),e()}}),{onClose:()=>r(e)})}function ji(e){let[t,n]=(0,A.useState)(!1),r=(0,A.useRef)(!1);return(0,A.useEffect)(()=>{if(!e)return;r.current=!1;let t=e=>{r.current||(e.preventDefault(),e.returnValue=``)},i=()=>{r.current||(window.history.pushState(null,``,window.location.href),n(!0))};return window.history.pushState(null,``,window.location.href),window.addEventListener(`beforeunload`,t),window.addEventListener(`popstate`,i),()=>{window.removeEventListener(`beforeunload`,t),window.removeEventListener(`popstate`,i)}},[e]),{confirming:t,stay:(0,A.useCallback)(()=>n(!1),[]),leave:(0,A.useCallback)(()=>{n(!1),r.current=!0,window.history.go(-2)},[])}}var Mi=1080,Ni=.6,Pi=1.3,Fi=new URLSearchParams(location.search).get(`native`)===`1`;function Ii(){(0,A.useEffect)(()=>{let e=-1,t=()=>{let t=window.__nativeUiHeight,n=typeof t==`number`&&t>0?t:window.innerHeight,r=Math.min(Pi,Math.max(Ni,n/Mi));r!==e&&(e=r,document.documentElement.style.setProperty(`--ui-scale`,r.toFixed(3)))};t(),window.addEventListener(`resize`,t);let n=Fi?window.setInterval(t,500):0;return()=>{window.removeEventListener(`resize`,t),n&&window.clearInterval(n)}},[])}var Li=/Android|iPhone|iPad|iPod|webOS|BlackBerry|Opera Mini|IEMobile|Windows Phone/i;function Ri(){return/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints>1}function zi(){return typeof navigator>`u`?!1:Li.test(navigator.userAgent)||Ri()}function Bi(){return typeof navigator>`u`?!0:/Chrome\//.test(navigator.userAgent)}function Vi(){return typeof document>`u`?!1:document.cookie.split(`;`).some(e=>e.trim().startsWith(`bypass_browser_check=`))}function Hi(){let e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||Ri()?`ios`:/Android/i.test(e)?`android`:`other`}var Ui=5e3;async function Wi(){let e=navigator.gpu;if(e==null)return!1;let t;try{let n=await Promise.race([e.requestAdapter(),new Promise(e=>{t=setTimeout(()=>e(`timeout`),Ui)})]);return n===`timeout`?!0:n!=null}catch{return!1}finally{t!=null&&clearTimeout(t)}}var X={root:`_root_3vjgt_1`,card:`_card_3vjgt_13`,logo:`_logo_3vjgt_21`,title:`_title_3vjgt_26`,subtitle:`_subtitle_3vjgt_32`,buttons:`_buttons_3vjgt_38`,store:`_store_3vjgt_45`,steps:`_steps_3vjgt_66`,stepHint:`_stepHint_3vjgt_76`,flag:`_flag_3vjgt_82`,flagText:`_flagText_3vjgt_91`,copy:`_copy_3vjgt_102`,tryAnyway:`_tryAnyway_3vjgt_121`},Gi=`https://testflight.apple.com/join/KF4r3jlU`,Ki=`https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer`,qi=`https://www.google.com/chrome/`;function Ji(){return(0,N.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,N.jsx)(`path`,{d:`M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z`})})}function Yi(){return(0,N.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,N.jsx)(`path`,{d:`M3,20.5V3.5C3,2.91 3.34,2.39 3.84,2.15L13.69,12L3.84,21.85C3.34,21.6 3,21.09 3,20.5M16.81,15.12L6.05,21.34L14.54,12.85L16.81,15.12M20.16,10.81C20.5,11.08 20.75,11.5 20.75,12C20.75,12.5 20.53,12.9 20.18,13.18L17.89,14.5L15.39,12L17.89,9.5L20.16,10.81M6.05,2.66L16.81,8.88L14.54,11.15L6.05,2.66Z`})})}function Xi(){return(0,N.jsxs)(`svg`,{viewBox:`0 0 48 48`,fill:`none`,"aria-hidden":`true`,children:[(0,N.jsxs)(`defs`,{children:[(0,N.jsxs)(`linearGradient`,{id:`cg-a`,x1:`3.2173`,y1:`15`,x2:`44.7812`,y2:`15`,gradientUnits:`userSpaceOnUse`,children:[(0,N.jsx)(`stop`,{offset:`0`,stopColor:`#d93025`}),(0,N.jsx)(`stop`,{offset:`1`,stopColor:`#ea4335`})]}),(0,N.jsxs)(`linearGradient`,{id:`cg-b`,x1:`20.7219`,y1:`47.6791`,x2:`41.5039`,y2:`11.6837`,gradientUnits:`userSpaceOnUse`,children:[(0,N.jsx)(`stop`,{offset:`0`,stopColor:`#fcc934`}),(0,N.jsx)(`stop`,{offset:`1`,stopColor:`#fbbc04`})]}),(0,N.jsxs)(`linearGradient`,{id:`cg-c`,x1:`26.5981`,y1:`46.5015`,x2:`5.8161`,y2:`10.506`,gradientUnits:`userSpaceOnUse`,children:[(0,N.jsx)(`stop`,{offset:`0`,stopColor:`#1e8e3e`}),(0,N.jsx)(`stop`,{offset:`1`,stopColor:`#34a853`})]})]}),(0,N.jsx)(`circle`,{cx:`24`,cy:`23.9947`,r:`12`,fill:`#fff`}),(0,N.jsx)(`path`,{d:`M24,12H44.7812a23.9939,23.9939,0,0,0-41.5639.0029L13.6079,30l.0093-.0024A11.9852,11.9852,0,0,1,24,12Z`,fill:`url(#cg-a)`}),(0,N.jsx)(`circle`,{cx:`24`,cy:`24`,r:`9.5`,fill:`#1a73e8`}),(0,N.jsx)(`path`,{d:`M34.3913,30.0029,24.0007,48A23.994,23.994,0,0,0,44.78,12.0031H23.9989l-.0025.0093A11.985,11.985,0,0,1,34.3913,30.0029Z`,fill:`url(#cg-b)`}),(0,N.jsx)(`path`,{d:`M13.6086,30.0031,3.218,12.006A23.994,23.994,0,0,0,24.0025,48L34.3931,30.0029l-.0067-.0068a11.9852,11.9852,0,0,1-20.7778.007Z`,fill:`url(#cg-c)`})]})}function Zi(){document.cookie=`bypass_browser_check=1;path=/;max-age=2592000`,location.reload()}function Qi({hint:e,target:t}){let[n,r]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>r(!1),1200);return()=>clearTimeout(e)},[n]),(0,N.jsxs)(`li`,{children:[(0,N.jsx)(`span`,{className:X.stepHint,children:e}),(0,N.jsxs)(`div`,{className:X.flag,children:[(0,N.jsx)(`code`,{className:X.flagText,children:t}),(0,N.jsx)(`button`,{type:`button`,className:X.copy,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>r(!0),()=>{})},title:`Copy`,"aria-label":`Copy`,children:n?(0,N.jsx)(v,{size:15}):(0,N.jsx)(d,{size:15})})]})]})}function $i(){return(0,N.jsx)(`div`,{className:X.root,children:(0,N.jsx)(_,{})})}function ea({reason:e=`mobile`}){if(e===`gpu`)return(0,N.jsx)(`div`,{className:X.root,children:(0,N.jsxs)(`div`,{className:X.card,children:[(0,N.jsx)(`img`,{className:X.logo,src:Be(`assets/logo.png`),alt:``,draggable:!1}),(0,N.jsx)(`h1`,{className:X.title,children:`Enable GPU acceleration`}),(0,N.jsxs)(`p`,{className:X.subtitle,children:[`Decentraland Web renders in 3D with `,(0,N.jsx)(`strong`,{children:`WebGPU`}),`, which needs a working GPU. Your browser has it turned off or can’t reach a supported GPU. In Chrome, paste each of these into a new tab (they can’t be opened by clicking), switch it on, then relaunch:`]}),(0,N.jsxs)(`ol`,{className:X.steps,children:[(0,N.jsx)(Qi,{hint:`Turn on “Use graphics acceleration when available”`,target:`chrome://settings/system`}),(0,N.jsx)(Qi,{hint:`Set “Unsafe WebGPU Support” to Enabled`,target:`chrome://flags/#enable-unsafe-webgpu`})]}),(0,N.jsx)(`button`,{type:`button`,className:X.tryAnyway,onClick:Zi,children:`try anyway…`})]})});if(e===`browser`)return(0,N.jsx)(`div`,{className:X.root,children:(0,N.jsxs)(`div`,{className:X.card,children:[(0,N.jsx)(`img`,{className:X.logo,src:Be(`assets/logo.png`),alt:``,draggable:!1}),(0,N.jsx)(`h1`,{className:X.title,children:`Browser Not Supported`}),(0,N.jsxs)(`p`,{className:X.subtitle,children:[`Decentraland Web requires `,(0,N.jsx)(`strong`,{children:`Google Chrome`}),` on desktop to run.`]}),(0,N.jsx)(`div`,{className:X.buttons,children:(0,N.jsxs)(n,{variant:`secondary`,href:qi,target:`_blank`,rel:`noopener`,className:X.store,children:[(0,N.jsx)(Xi,{}),(0,N.jsx)(`span`,{children:`Download Chrome`})]})}),(0,N.jsx)(`button`,{type:`button`,className:X.tryAnyway,onClick:Zi,children:`try anyway…`})]})});let t=Hi(),r=t===`ios`||t===`other`,i=t===`android`||t===`other`;return(0,N.jsx)(`div`,{className:X.root,children:(0,N.jsxs)(`div`,{className:X.card,children:[(0,N.jsx)(`img`,{className:X.logo,src:Be(`assets/logo.png`),alt:``,draggable:!1}),(0,N.jsx)(`h1`,{className:X.title,children:`Decentraland`}),(0,N.jsx)(`p`,{className:X.subtitle,children:`This experience isn’t available on mobile browsers. Download the app to explore:`}),(0,N.jsxs)(`div`,{className:X.buttons,children:[r&&(0,N.jsxs)(n,{variant:`secondary`,href:Gi,target:`_blank`,rel:`noopener`,className:X.store,children:[(0,N.jsx)(Ji,{}),(0,N.jsx)(`span`,{children:`Install from App Store`})]}),i&&(0,N.jsxs)(n,{variant:`secondary`,href:Ki,target:`_blank`,rel:`noopener`,className:X.store,children:[(0,N.jsx)(Yi,{}),(0,N.jsx)(`span`,{children:`Install from Google Play`})]})]})]})})}var Z={layer:`_layer_1orcz_7`,head:`_head_1orcz_18`,title:`_title_1orcz_25`,lead:`_lead_1orcz_33`,params:`_params_1orcz_39`,paramValue:`_paramValue_1orcz_46`,paramDesc:`_paramDesc_1orcz_51`,advanced:`_advanced_1orcz_58`,advancedNote:`_advancedNote_1orcz_67`,exit:`_exit_1orcz_73`,proceed:`_proceed_1orcz_87`};function ta(){window.close(),window.location.replace(`https://decentraland.org`)}var na=`This Launch Link Is Not Trusted`;function ra({systemScene:t,onProceed:r}){let[i,a]=(0,A.useState)(!1);return(0,N.jsx)(`div`,{className:Z.layer,children:(0,N.jsxs)(e,{role:`alertdialog`,ariaLabel:na,width:560,closeButton:!1,header:(0,N.jsxs)(`div`,{className:Z.head,children:[(0,N.jsx)(te,{size:72}),(0,N.jsx)(`h2`,{className:Z.title,children:na})]}),actionsDirection:`column`,actions:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(n,{autoFocus:!0,variant:`primary`,className:Z.exit,onClick:ta,children:`Exit Application`}),i?(0,N.jsxs)(`div`,{className:Z.advanced,children:[(0,N.jsx)(`p`,{className:Z.advancedNote,children:`Continuing hands this address full control of your session for as long as this tab is open. Only do this if you recognise it as your own.`}),(0,N.jsx)(n,{variant:`ghost`,className:Z.proceed,onClick:r,children:`Continue anyway`})]}):(0,N.jsx)(n,{variant:`secondary`,onClick:()=>a(!0),children:`Advanced`})]}),children:[(0,N.jsx)(`p`,{className:Z.lead,children:`Someone may be trying to change how your Explorer behaves.`}),(0,N.jsx)(`p`,{className:Z.lead,children:`This link carries a parameter the Explorer does not accept from links, because it replaces the interface with code that runs as you:`}),(0,N.jsxs)(`dl`,{className:Z.params,children:[(0,N.jsxs)(`dt`,{children:[`systemScene = `,(0,N.jsx)(`span`,{className:Z.paramValue,children:t})]}),(0,N.jsx)(`dd`,{className:Z.paramDesc,children:`Replaces the Explorer's interface with a scene loaded from this address. It can move your avatar, change your profile, and answer permission prompts on your behalf.`})]}),(0,N.jsx)(`p`,{className:Z.lead,children:`Unless you built this link yourself, the safe choice is to exit.`})]})})}var ia=ae(),Q={scrim:`_scrim_1hq83_5`,fadeIn:`_fadeIn_1hq83_1`,pop:`_pop_1hq83_27`,popIn:`_popIn_1hq83_1`,head:`_head_1hq83_53`,title:`_title_1hq83_57`,subtitle:`_subtitle_1hq83_63`,btn:`_btn_1hq83_70`,detail:`_detail_1hq83_75`},aa={launch:{title:`Something went wrong`,subtitle:`The 3D engine couldn't start. Reloading often fixes it.`},runtime:{title:`The world crashed`,subtitle:`The 3D engine stopped unexpectedly.`},react:{title:`Something went wrong`,subtitle:`The app hit an unexpected error.`}};function oa({error:t,onReload:r,onDismiss:i}){let{title:a,subtitle:o}=aa[t.source],c=(0,A.useRef)(null);return(0,A.useEffect)(s,[]),f(c,!0),(0,ia.createPortal)((0,N.jsx)(`div`,{ref:c,className:Q.scrim,tabIndex:-1,onClick:i??void 0,children:(0,N.jsx)(`div`,{className:Q.pop,children:(0,N.jsx)(e,{header:(0,N.jsxs)(`div`,{className:Q.head,children:[(0,N.jsx)(`h2`,{className:Q.title,children:a}),(0,N.jsx)(`p`,{className:Q.subtitle,children:o})]}),role:`alertdialog`,ariaLabel:a,closeButton:!1,actionsAlign:`center`,actions:(0,N.jsxs)(N.Fragment,{children:[i&&(0,N.jsx)(n,{variant:`ghost`,className:Q.btn,onClick:i,children:`Dismiss`}),(0,N.jsx)(n,{variant:`primary`,className:Q.btn,onClick:r,children:`Reload`})]}),children:(0,N.jsx)(`pre`,{className:Q.detail,children:t.message})})})}),document.body)}var sa=class extends A.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){console.error(`[react error boundary]`,e)}render(){let{error:e}=this.state;return e?(0,N.jsx)(oa,{error:{message:e.stack??e.message,source:`react`},onReload:()=>location.reload()}):this.props.children}},ca={head:`_head_qzuz3_4`,title:`_title_qzuz3_8`,subtitle:`_subtitle_qzuz3_14`,btn:`_btn_qzuz3_21`};function la(t){let r=!1,i=g(r=>(0,N.jsx)(e,{header:(0,N.jsxs)(`div`,{className:ca.head,children:[(0,N.jsx)(`h2`,{className:ca.title,children:`World not found`}),(0,N.jsx)(`p`,{className:ca.subtitle,children:t.message})]}),role:`alertdialog`,ariaLabel:`World not found`,closeButton:!1,actionsAlign:`center`,actions:(0,N.jsx)(n,{variant:`primary`,className:ca.btn,onClick:r,children:`OK`}),children:null}),{onClose:()=>{r||(r=!0,t.onDismiss())}});return()=>{r=!0,i()}}var ua=`modulepreload`,da=function(e){return`https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-33122661692.commit-0cfd373/`+e},fa={},pa=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=da(t,n),t=s(t),t in fa)return;fa[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:ua,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ma=(0,A.lazy)(()=>pa(()=>import(`./Showcase-BsVH9M01.js`).then(e=>({default:e.Showcase})),__vite__mapDeps([0,1,2,3,4,5]))),$=new URLSearchParams(location.search),ha=$.get(`mock`)===`1`?`mock`:$.get(`native`)===`1`?`native`:`engine`,ga=$.get(`showcase`)===`1`,_a=C().hideHud;function va(){return ha===`native`||$.get(`nogate`)===`1`?null:zi()||$.get(`gate`)===`1`?`mobile`:$.get(`gate`)===`browser`?`browser`:$.get(`gate`)===`gpu`?`gpu`:!Bi()&&!Vi()?`browser`:null}var ya=va(),ba=C().systemScene,xa=ba!=null&&!le(ba)?ba:null;function Sa(){Ii();let e=Ca(),t=wa(ya!=null||ha===`mock`||ha===`native`||ga),[n,r]=(0,A.useState)(!1);return xa!=null&&!n?(0,N.jsx)(ra,{systemScene:xa,onProceed:()=>r(!0)}):ya?(0,N.jsx)(ea,{reason:ya}):t===`checking`?(0,N.jsx)($i,{}):t===`blocked`?(0,N.jsx)(ea,{reason:`gpu`}):(0,N.jsxs)(sa,{children:[ga?(0,N.jsx)(A.Suspense,{fallback:null,children:(0,N.jsx)(ma,{})}):(0,N.jsx)(Ta,{}),e&&(0,N.jsx)(vi,{})]})}function Ca(){let[e,t]=(0,A.useState)($.get(`fps`)===`1`);return ve(e=>{(e.ctrlKey||e.metaKey)&&e.shiftKey&&(e.key===`F`||e.key===`f`)&&(e.preventDefault(),t(e=>!e))}),e}function wa(e){let[t,n]=(0,A.useState)(e?`ok`:`checking`);return(0,A.useEffect)(()=>{if(e)return;if($.get(`nogate`)===`1`||Vi()){n(`ok`);return}let t=!1;return Wi().then(e=>{t||n(e?`ok`:`blocked`)}),()=>{t=!0}},[e]),t}function Ta(){let{rpc:e,createDriver:t}=(0,A.useMemo)(()=>{if(ha===`mock`)return dt(),{rpc:null,createDriver:()=>new Je};if(ha===`native`)return{rpc:null,createDriver:()=>new Je};let e=new Ze;return{rpc:e,createDriver:()=>new Xe(e)}},[]),n=ke(t),r=ji(n.phase===`entering`||n.phase===`world`);(0,A.useEffect)(()=>{if(r.confirming)return Ai(r.stay,r.leave)},[r.confirming,r.stay,r.leave]);let i=n.fatalError?.source===`realm`?n.fatalError.message:null;(0,A.useEffect)(()=>{if(i!=null)return la({message:i,onDismiss:n.dismissFatal})},[i]);let a=n.fatalError!=null&&n.fatalError.source!==`realm`?{message:n.fatalError.message,source:n.fatalError.source}:null,o=n.phase===`world`?n.permissions.pending[0]?.id:void 0;(0,A.useEffect)(()=>{let e=n.permissions.pending[0];if(!(o==null||!e))return gi(e,n.permissions.resolve)},[o]);let[s,c]=(0,A.useState)(`wearables`);(0,A.useEffect)(()=>{n.backpack.open||c(`wearables`)},[n.backpack.open]);let l=()=>{let e=n.profile.data;e&&S(e.address)},u=e=>{e===`settings`?n.settings.toggle():e===`backpack`?n.backpack.toggle():e===`communities`?n.communities.toggle():e===`map`?n.map.toggle():e===`places`?n.places.toggle():e===`gallery`?n.gallery.toggle():e===`profile`?l():e===`signout`&&n.logout()},d=n.settings.open||n.backpack.open||n.communities.open||n.map.open||n.places.open||n.gallery.open;return _a?(0,N.jsxs)(oe,{value:n,children:[e&&(0,N.jsx)(ce,{rpc:e}),(0,N.jsx)(y,{}),a&&(0,N.jsx)(oa,{error:a,onReload:n.reload,onDismiss:a.source===`runtime`?n.dismissFatal:void 0})]}):(0,N.jsxs)(oe,{value:n,children:[e&&(0,N.jsx)(ce,{rpc:e}),n.phase===`login`&&(0,N.jsx)(Ei,{flow:n.login}),n.phase===`picking`&&(0,N.jsx)(Ae,{onPick:n.pickDestination}),n.phase===`entering`&&(0,N.jsx)(Oi,{scene:n.sceneLoading}),n.phase===`world`&&!n.menuOpen&&(0,N.jsxs)(N.Fragment,{children:[!d&&(0,N.jsx)(dr,{session:n,onViewProfile:l}),!d&&(0,N.jsx)($r,{minimap:n.minimap,map:n.map,sceneTitle:n.minimap.sceneTitle,setEngineViewport:n.setEngineViewport}),!d&&(0,N.jsx)(di,{hover:n.hover,locked:n.cursorLocked,proximity:n.proximity}),(0,N.jsx)(Ht,{chat:n.chat,hidden:n.friends.open||d,me:n.profile.data,onTeleport:(e,t)=>n.map.teleport(e,t),onVisitWorld:e=>be({worldName:e,onConfirm:()=>n.map.changeRealm(e)})}),(0,N.jsx)(en,{friends:n.friends}),(0,N.jsx)(Pn,{settings:n.settings,bindings:n.bindings,profile:n.profile,onNavigate:u}),(0,N.jsx)(Fn,{profile:n.profile}),(0,N.jsx)(Wn,{notifications:n.notifications}),(0,N.jsx)(or,{emotes:n.emotes,onCustomise:()=>{c(`emotes`),n.backpack.toggle()}}),(0,N.jsx)(Ie,{backpack:n.backpack,emotes:n.emotes,profile:n.profile,onNavigate:u,setEngineViewport:n.setEngineViewport,initialTab:s}),(0,N.jsx)(ge,{communities:n.communities,profile:n.profile,onNavigate:u}),(0,N.jsx)(Fe,{map:n.map,profile:n.profile,onNavigate:u}),(0,N.jsx)(Ne,{places:n.places,profile:n.profile,onNavigate:u,onTeleport:(e,t)=>n.map.teleport(e,t),onVisitWorld:e=>n.map.changeRealm(e)}),(0,N.jsx)(Pe,{gallery:n.gallery,profile:n.profile,onNavigate:u,onTeleport:(e,t)=>n.map.teleport(e,t),onViewProfile:e=>S(e.address)})]}),(0,N.jsx)(y,{}),a&&(0,N.jsx)(oa,{error:a,onReload:n.reload,onDismiss:a.source===`runtime`?n.dismissFatal:void 0})]})}var Ea=`coi_sw_reloaded`;function Da(){`serviceWorker`in navigator&&(location.pathname.endsWith(`/`)||history.replaceState(history.state,``,`${location.pathname}/${location.search}${location.hash}`),navigator.serviceWorker.register(new URL(`service_worker.js`,fe)).then(e=>{if(navigator.serviceWorker.controller){sessionStorage.removeItem(Ea);return}let t=()=>{sessionStorage.getItem(Ea)?(sessionStorage.removeItem(Ea),console.error(`[coi] service worker failed to take control after reload`)):(sessionStorage.setItem(Ea,`true`),window.location.reload())};if(e.active){t();return}let n=e.installing??e.waiting;n?.addEventListener(`statechange`,()=>{n.state===`activated`&&t()})}).catch(e=>console.log(`[coi] service worker registration failed:`,e)))}function Oa(){let e=window.cef;if(!e?.emit||!e?.listen)return;let t=new BroadcastChannel(me());t.onmessage=t=>{let n=t.data;n?.to===`scene`&&e.emit(n)},e.listen(`bridge`,e=>{try{t.postMessage(typeof e==`string`?JSON.parse(e):e)}catch{}}),e.listen(`engineFps`,e=>{window.__nativeEngineFps=Number(e)}),e.listen(`uiHeight`,e=>{window.__nativeUiHeight=Number(e),window.dispatchEvent(new Event(`resize`))}),e.listen(`engineTextFocus`,e=>{window.__engineTextFocus=e===`true`})}var ka=/^(localhost|127(\.\d{1,3}){3}|\[::1\])$/i,Aa=/^(10|192\.168|172\.(1[6-9]|2\d|3[01])|169\.254)(\.\d{1,3}){1,3}$/;function ja(e){let t;try{t=new URL(e,location.href).hostname}catch{return null}return ka.test(t)?`loopback`:Aa.test(t)||t.toLowerCase().endsWith(`.local`)?`local`:null}function Ma(){let e=window.fetch.bind(window);window.fetch=function(t,n){let r=ja(t instanceof Request?t.url:String(t));if(r==null||n!=null&&`targetAddressSpace`in n)return e(t,n);let i={...n,targetAddressSpace:r};return e(t,i)}}if(Ma(),new URLSearchParams(location.search).get(`native`)===`1`){document.documentElement.style.background=`transparent`,document.body.style.background=`transparent`,window.addEventListener(`contextmenu`,e=>e.preventDefault()),Oa();try{Object.defineProperty(document,"visibilityState",{get:()=>`visible`,configurable:!0}),Object.defineProperty(document,"hidden",{get:()=>!1,configurable:!0}),document.dispatchEvent(new Event(`visibilitychange`))}catch{}}else Da();(0,qe.createRoot)(document.getElementById(`root`)).render((0,N.jsx)(A.StrictMode,{children:(0,N.jsx)(Sa,{})}));export{Bt as i,zt as n,Lt as r,nr as t};