@3dverse/ui-lib 0.1.5 → 0.1.7

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.
Files changed (46) hide show
  1. package/dist/index.cjs +4 -4
  2. package/dist/index.cjs.map +4 -4
  3. package/dist/index.mjs +4 -4
  4. package/dist/index.mjs.map +4 -4
  5. package/dist/sources/components/index.d.ts +20 -18
  6. package/dist/sources/components/index.d.ts.map +1 -1
  7. package/dist/sources/components/ui/accordion.d.ts +6 -1
  8. package/dist/sources/components/ui/accordion.d.ts.map +1 -1
  9. package/dist/sources/components/ui/badge.d.ts +17 -0
  10. package/dist/sources/components/ui/badge.d.ts.map +1 -0
  11. package/dist/sources/components/ui/bottom-sheet.d.ts +9 -1
  12. package/dist/sources/components/ui/bottom-sheet.d.ts.map +1 -1
  13. package/dist/sources/components/ui/button-tile.d.ts +9 -5
  14. package/dist/sources/components/ui/button-tile.d.ts.map +1 -1
  15. package/dist/sources/components/ui/button.d.ts +1 -1
  16. package/dist/sources/components/ui/button.d.ts.map +1 -1
  17. package/dist/sources/components/ui/data-item.d.ts +6 -0
  18. package/dist/sources/components/ui/data-item.d.ts.map +1 -1
  19. package/dist/sources/components/ui/dialog.d.ts +8 -1
  20. package/dist/sources/components/ui/dialog.d.ts.map +1 -1
  21. package/dist/sources/components/ui/dot-ping.d.ts +2 -0
  22. package/dist/sources/components/ui/dot-ping.d.ts.map +1 -1
  23. package/dist/sources/components/ui/empty-state.d.ts +2 -0
  24. package/dist/sources/components/ui/empty-state.d.ts.map +1 -1
  25. package/dist/sources/components/ui/icon.d.ts +2 -1
  26. package/dist/sources/components/ui/icon.d.ts.map +1 -1
  27. package/dist/sources/components/ui/loader.d.ts +2 -1
  28. package/dist/sources/components/ui/loader.d.ts.map +1 -1
  29. package/dist/sources/components/ui/menu.d.ts +16 -2
  30. package/dist/sources/components/ui/menu.d.ts.map +1 -1
  31. package/dist/sources/components/ui/overlay-container.d.ts +1 -2
  32. package/dist/sources/components/ui/overlay-container.d.ts.map +1 -1
  33. package/dist/sources/components/ui/popover.d.ts +7 -1
  34. package/dist/sources/components/ui/popover.d.ts.map +1 -1
  35. package/dist/sources/components/ui/scrollable-area.d.ts +2 -0
  36. package/dist/sources/components/ui/scrollable-area.d.ts.map +1 -1
  37. package/dist/sources/components/ui/slider.d.ts +22 -0
  38. package/dist/sources/components/ui/slider.d.ts.map +1 -0
  39. package/dist/sources/components/ui/switch.d.ts +3 -1
  40. package/dist/sources/components/ui/switch.d.ts.map +1 -1
  41. package/dist/sources/components/ui/tabs.d.ts +10 -1
  42. package/dist/sources/components/ui/tabs.d.ts.map +1 -1
  43. package/dist/sources/components/ui/tooltip.d.ts +6 -1
  44. package/dist/sources/components/ui/tooltip.d.ts.map +1 -1
  45. package/dist/styles/index.css +1 -1
  46. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
- "use strict";var Me=Object.defineProperty;var Xi=Object.getOwnPropertyDescriptor;var Yi=Object.getOwnPropertyNames;var Ji=Object.prototype.hasOwnProperty;var Ki=(e,t)=>{for(var i in t)Me(e,i,{get:t[i],enumerable:!0})},Qi=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Yi(t))!Ji.call(e,r)&&r!==i&&Me(e,r,{get:()=>t[r],enumerable:!(o=Xi(t,r))||o.enumerable});return e};var ea=e=>Qi(Me({},"__esModule",{value:!0}),e);var Ra={};Ki(Ra,{Accordion:()=>ft,AccordionContent:()=>gt,AccordionItem:()=>ut,AccordionTrigger:()=>yt,AppIcon:()=>Ke,AssetIcon:()=>ct,BottomSheet:()=>vt,BottomSheetClose:()=>Pt,BottomSheetContent:()=>It,BottomSheetDescription:()=>St,BottomSheetFooter:()=>Rt,BottomSheetHeader:()=>Ct,BottomSheetTitle:()=>Dt,BottomSheetTrigger:()=>wt,Button:()=>_,ButtonTile:()=>kt,DataItem:()=>Nt,DataItemDescription:()=>_t,DataItemLabel:()=>Tt,DataItemTitle:()=>Lt,DataItemValue:()=>Mt,Dialog:()=>Et,DialogContent:()=>Bt,DialogDescription:()=>Ft,DialogFooter:()=>qt,DialogHeader:()=>Ut,DialogTitle:()=>Ot,DialogTrigger:()=>At,DotPing:()=>Vt,EmptyState:()=>$t,EntityComponentBadge:()=>pe,EntityComponentIcon:()=>Se,EntityRecipe:()=>ot,GlowEffect:()=>rt,Icon:()=>w,IconAssetScene:()=>mt,IslandPanel:()=>jt,IsometricSchema:()=>st,Kbd:()=>Ht,Loader:()=>Wt,Logo3dverse:()=>lt,Logo3dverseRocket:()=>Ne,Menu:()=>Yt,MenuContent:()=>Kt,MenuGroup:()=>ti,MenuGroupLabel:()=>ii,MenuItem:()=>Qt,MenuPortal:()=>Ve,MenuPositioner:()=>ze,MenuSeparator:()=>ei,MenuTrigger:()=>Jt,Modal:()=>ai,OverlayContainer:()=>gi,Panel:()=>oi,PanelHeader:()=>ri,PanelTitle:()=>ni,Popover:()=>si,PopoverContent:()=>pi,PopoverDescription:()=>mi,PopoverHeader:()=>di,PopoverTitle:()=>ci,PopoverTrigger:()=>li,ScrollableArea:()=>fi,Spinner:()=>pt,Stack:()=>hi,Switch:()=>yi,Tabs:()=>Ri,TabsContent:()=>Ni,TabsIndicator:()=>_e,TabsList:()=>Si,TabsTrigger:()=>ki,Text:()=>Ti,ToggleButton:()=>_i,Tooltip:()=>Ei,TooltipContent:()=>Bi,TooltipProvider:()=>Mi,TooltipTrigger:()=>Ai,appIconShapes:()=>le,cn:()=>a});module.exports=ea(Ra);var ae={container:"t",inner:"o",innerShape:"i",shape:"a",shapeAlt:"n"};var oe=require("react/jsx-runtime"),Re=["#EDB5FB","#FBB5B5","#F4D35B","#B5FBF7","#B5DDFB","#B5C2FB","#CBB5FB","#189AB4","#75E6DA","#D4F1F4","#EF7C8E","#FAE8E0","#B6E2D3","#D8A7B1","#F6EEE0","#E4B7A0","#C38370","#94DFE6","#EBDCC7","#B5EECB","#DCC5C3","#D6E1EB","#ADC4D7","#FACB80","#FBD8B0","#feb191","#a2f9c6"],le=[{},{borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{scale:"0.75"},{scale:"0.5"},{borderRadius:"9999px"},{borderRadius:"9999px",borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{borderRadius:"9999px",height:"50%",translate:"0 50%"},{borderRadius:"9999px",scale:"0.5"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px",height:"50%"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px",height:"50%"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderTopLeftRadius:"9999px"},{borderBottomLeftRadius:"9999px",borderTopRightRadius:"9999px"},{},{},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg) scaleY(-1)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"scaleY(-1)"},{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"},{clipPath:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)"},{clipPath:'path("M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z")'},{clipPath:"polygon(0 0, 0% 100%, 100% 100%)"},{clipPath:"polygon(61% 50%, 100% 0, 100% 100%, 0% 100%)"}],Ee=le.length,Ae=Re.length,Xe=[0,180,270],Be=101,Ye=200,Je=301,Ke=({id:e,shape:t,colors:i,className:o,style:r})=>{let s=Number(e?.replace(/\D/g,"").replace(/-/g,"")),l=[Re[i?.[0]??Math.floor(s%Be%Ae)],Re[i?.[1]??Math.floor(s%Ye%Ae)],Re[i?.[2]??Math.floor(s%Je%Ae)]],c=t||[Math.floor(s%Be%Ee),Math.floor(s%Ye%Ee),Math.floor(s%Je%Ee)],k=Xe[s%Be%Xe.length];return(0,oe.jsx)("div",{role:"img","aria-label":"Project icon",className:`${ae.container} ${o}`,style:{"--gradient-from":l[1],"--gradient-to":l[2],"--gradient-stops":"var(--gradient-from), var(--gradient-to)",...r},children:(0,oe.jsxs)("div",{className:ae.innerShape,style:{color:l[0],rotate:`${k}deg`},children:[(0,oe.jsx)("span",{className:ae.shape,style:{...le[c[0]],boxShadow:"5px 0px 0px 6px color-mix(in srgb, currentColor 40%, transparent), 4px 0px 0px 32px color-mix(in srgb, currentColor 30%, transparent)"}}),(0,oe.jsx)("span",{className:`${ae.shape} ${ae.shapeAlt}`,style:le[c[1]]}),(0,oe.jsx)("span",{className:ae.shape,style:le[c[2]]})]})})};var et=require("@3dverse/design-tokens"),ke=require("@3dverse/ui-lib");var Ue=require("@3dverse/design-tokens"),De=require("@3dverse/ui-lib"),re=require("react/jsx-runtime"),Se=({componentId:e,variant:t="default",style:i,className:o=""})=>{if(!Ue.entityComponents[e])return(0,re.jsx)(re.Fragment,{children:e});let{color:r,fontAwesome:s}=Ue.entityComponents[e];return s?(0,re.jsx)(De.Icon,{className:(0,De.cn)("flex! justify-center items-center h-[2.5em] w-auto! aspect-square shrink-0 text-base text-current bg-current/20 rounded-full","fal",s,o),style:{color:r,boxShadow:t==="special"?"0 0 10px color-mix(in srgb, var(--entity-component-color), var(--color-bg-underground) 100%), 20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%), -20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%)":void 0,...i}}):(0,re.jsx)(re.Fragment,{children:e})};var Qe={properties:{animation_controller:{description:"Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set.",properties:{animationGraphRef:{description:"Referenced Animation Graph (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Graph Ref",type:"string","x-asset-ref":"animation_graph","x-display-type":"UUID"},animationSetRef:{description:"Referenced Animation Set (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Set Ref",type:"string","x-asset-ref":"animation_set","x-display-type":"UUID"},dataJSON:{description:"Animation Graph input parameters in JSON format.",title:"Data Json",type:"object","x-display-type":"JSON"},rootBoneEntityRef:{description:"Entity containing the Bone component for the skeleton's root bone.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Root Bone Entity Ref",type:"object","x-display-type":"Entity Reference"},rootMotionEnabled:{default:!1,description:"Enable root motion extraction and application to the entity transform.",title:"Root Motion Enabled",type:"boolean","x-display-type":"Boolean"}},title:"Animation Controller",type:"object","x-category":"animation"},animation_sequence_controller:{description:"Controls playback of an Animation Sequence; assigns tracks to entities.",properties:{animationSequenceRef:{description:"Referenced Animation Sequence (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Sequence Ref",type:"string","x-asset-ref":"animation_sequence","x-display-type":"UUID"},entities:{additionalProperties:{properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],type:"object","x-display-type":"Entity Reference"},description:"Map from track UUID to assigned entity.",title:"Entities",type:"object"},loop:{default:!1,description:"Loop playback when reaching the stop offset.",title:"Loop",type:"boolean","x-display-type":"Boolean"},playbackSpeed:{default:1,description:"Playback speed multiplier. Negative values play in reverse.",format:"float",title:"Playback Speed",type:"number","x-display-type":"Float"},startOffset:{default:0,description:"Normalized start offset [0, 1].",format:"float",maximum:1,minimum:0,title:"Start Offset",type:"number","x-display-type":"Float"},stopOffset:{default:1,description:"Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point.",format:"float",maximum:1,minimum:0,title:"Stop Offset",type:"number","x-display-type":"Float"}},title:"Animation Sequence Controller",type:"object","x-category":"animation"},bone:{description:"Associates this entity with a bone in a skeleton (for attachments and transforms).",properties:{boneIndex:{description:"Zero-based index of this bone within the bound skeleton.",format:"int32",minimum:0,title:"Bone Index",type:"integer","x-display-type":"Unsigned Integer"}},title:"Bone",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},box_geometry:{description:"Box geometry.",properties:{dimension:{default:[1,1,1],description:"Box dimensions (width, height, depth) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Dimension",type:"array","x-display-type":"Vector3","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"}},title:"Box Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},camera:{description:"Virtual camera.",properties:{dataJSON:{description:"Render Graph input parameters in JSON; schema defined by renderGraphRef.",title:"Data Json",type:"object","x-display-type":"JSON"},renderGraphRef:{description:"Referenced render graph to use for rendering from this camera.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Render Graph Ref",type:"string","x-asset-ref":"render_graph","x-display-type":"UUID"},renderTargetIndex:{default:-1,description:"Index of the render target to blit/output to. -1 indicates the default target.",format:"int32",title:"Render Target Index",type:"integer","x-display-type":"Integer"}},title:"Camera",type:"object","x-category":"camera","x-requires":{allOf:["local_transform"],oneOf:["orthographic_lens","perspective_lens","custom_lens"]}},capsule_geometry:{description:"Capsule geometry.",properties:{axis:{default:1,description:"Alignment axis of the capsule: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Capsule is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Capsule is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Capsule is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylindrical mid-section (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the hemispherical ends (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Capsule Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},character_controller:{description:"Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control.",properties:{skinWidth:{default:0,description:"Collision skin width (meters).",format:"float",title:"Skin Width",type:"number","x-display-type":"Float","x-unit":"m"},slopeLimit:{default:45,description:"Maximum walkable slope (degrees). Slopes steeper than this are not walkable.",format:"float",title:"Slope Limit",type:"number","x-display-type":"Float","x-unit":"deg"},stepOffset:{default:0,description:"Maximum climbable step height. Steps higher than this cannot be climbed automatically.",format:"float",title:"Step Offset",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Character Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"],oneOf:["box_geometry","capsule_geometry"]}},collision_geometry_ref:{description:"Reference to a collision geometry asset used by physics.",properties:{collisionGeometryRef:{description:"Referenced collision geometry (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Collision Geometry Ref",type:"string","x-asset-ref":"collision_geometry","x-display-type":"UUID"}},title:"Collision Geometry Reference",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},constraint:{description:"6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs.",properties:{motionLimitSpringDamping:{default:[0,0,0],description:"Linear limit spring damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},motionLimitSpringStiffness:{default:[0,0,0],description:"Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},motionLowerLimit:{default:[0,0,0],description:"Lower linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Lower Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},motionUpperLimit:{default:[0,0,0],description:"Upper linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Upper Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},swingLimitAngle:{default:[0,0],description:"Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Swing Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},swingSpringDamping:{default:0,description:"Swing limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Swing Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},swingSpringStiffness:{default:0,description:"Swing limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Swing Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},twistLimitAngle:{default:[0,0],description:"Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Twist Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},twistSpringDamping:{default:0,description:"Twist limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Twist Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},twistSpringStiffness:{default:0,description:"Twist limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Twist Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},unlockedMotion:{default:0,description:"Unlock motion along/around the specified axes.",format:"int32",minimum:0,title:"Unlocked Motion",type:"integer","x-bitFlags":[{description:"Unlock motion along the X axis.",name:"Along X",value:1},{description:"Unlock motion along the Y axis.",name:"Along Y",value:2},{description:"Unlock motion along the Z axis.",name:"Along Z",value:4},{description:"Unlock motion around the X axis.",name:"Around X",value:8},{description:"Unlock motion around the Y axis.",name:"Around Y",value:16},{description:"Unlock motion around the Z axis.",name:"Around Z",value:32}],"x-display-type":"Unsigned Integer"}},title:"Constraint",type:"object","x-category":"physics","x-requires":{allOf:["joint"]}},constraint_actuator:{description:"Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits.",properties:{angularDamping:{default:[0,0,0],description:"Angular drive damping per axis (N\xB7m\xB7s/rad).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Damping",type:"array","x-display-type":"Vector3","x-unit":"N.m.s/rad"},angularForceLimit:{default:[-1,-1,-1],description:"Max angular drive torque/impulse per axis (N\xB7m). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N.m"},angularStiffness:{default:[0,0,0],description:"Angular drive stiffness per axis (N\xB7m/rad). >0 applies spring torque toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N.m/rad"},angularVelocity:{default:[0,0,0],description:"Target angular velocity (rad/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Velocity",type:"array","x-display-type":"Vector3","x-unit":"rad/s"},goalOrientation:{default:[0,0,0,1],description:"Target angular orientation.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Goal Orientation",type:"array","x-display-type":"Quaternion"},goalPosition:{default:[0,0,0],description:"Target linear position offset (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Goal Position",type:"array","x-display-type":"Vector3","x-unit":"m"},linearDamping:{default:[0,0,0],description:"Linear drive damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},linearForceLimit:{default:[-1,-1,-1],description:"Max linear drive force/impulse per axis (N). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N"},linearStiffness:{default:[0,0,0],description:"Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},linearVelocity:{default:[0,0,0],description:"Target linear velocity (m/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},type:{default:1,description:"Drive type: apply as force or as acceleration.",format:"int32",oneOf:[{const:0,title:"FORCE"},{const:1,title:"ACCELERATION"}],title:"Type",type:"integer","x-display-type":"Integer"}},title:"Constraint Actuator",type:"object","x-category":"physics","x-requires":{allOf:["constraint"]}},culling_geometry:{description:"Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere).",properties:{isAdditive:{default:!0,description:"Additive: show elements inside the geometry. Subtractive: show elements outside the geometry.",title:"Is Additive",type:"boolean","x-display-type":"Boolean"}},title:"Culling Geometry",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["box_geometry","cylinder_geometry","plane_geometry","sphere_geometry"]}},custom_lens:{description:"Custom projection lens using an explicit projection matrix.",properties:{cs_from_vs:{description:"Projection matrix mapping view-space to clip-space (cs_from_vs).",items:{format:"float",type:"number"},maxItems:16,minItems:16,title:"Cs From Vs",type:"array","x-display-type":"Matrix4"}},title:"Custom Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},cylinder_geometry:{description:"Cylinder geometry.",properties:{axis:{default:1,description:"Alignment axis of the cylinder: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Cylinder is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Cylinder is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Cylinder is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylinder (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the cylinder (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Cylinder Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},debug_name:{description:"Human-readable name of the entity.",properties:{value:{description:"Entity name.",title:"Value",type:"string","x-display-type":"String"}},title:"Name",type:"object","x-category":"core"},decal_projector:{description:"Projects a material onto scene surfaces within the projector's box volume.",properties:{zIndex:{default:0,description:"Z-index ordering for decal rendering; higher values render on top of lower ones.",format:"int32",title:"Z Index",type:"integer","x-display-type":"Integer"}},title:"Decal Projector",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","material_ref","box_geometry"]}},environment:{description:"Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes.",properties:{irradianceUUID:{description:"Diffuse irradiance cubemap used for ambient PBR lighting.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Irradiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},radianceUUID:{description:"Specular radiance cubemap (prefiltered) used for PBR reflections.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Radiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},skyboxUUID:{description:"Skybox cubemap used as the scene background (no lighting effect).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Skybox Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"}},title:"Environment",type:"object","x-category":"lighting"},euid:{description:"Unique identifier for the entity.",properties:{value:{description:"Unique identifier value.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Value",type:"string","x-display-type":"Entity Unique Identifier"}},readOnly:!0,required:["value"],title:"Entity UID",type:"object","x-category":"core"},joint:{description:"Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee.",properties:{breakForce:{default:1e16,description:"Break force threshold (Newtons).",format:"float",title:"Break Force",type:"number","x-display-type":"Float","x-unit":"N"},breakTorque:{default:1e16,description:"Break torque threshold (N\xB7m).",format:"float",title:"Break Torque",type:"number","x-display-type":"Float","x-unit":"N.m"},constrainee:{description:"Entity with a Rigid Body to be constrained.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainee",type:"object","x-display-type":"Entity Reference","x-required-components":["rigid_body"]},constrainer:{description:"Entity acting as constrainer (rigid/static) or null to constrain to world origin.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainer",type:"object","x-display-type":"Entity Reference"},enableCollision:{default:!1,description:"Enable collision between constrainer and constrainee bodies.",title:"Enable Collision",type:"boolean","x-display-type":"Boolean"}},title:"Joint",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},label:{description:"Displays an editor-only label in the 3D view.",properties:{camera:{default:[0,0,0,0,0,0,1],description:"Camera framing parameters for navigating to the label.",items:{format:"float",type:"number","x-display-type":"Float"},title:"Camera",type:"array"},description:{description:"Label description text.",title:"Description",type:"string","x-display-type":"String"},speed:{default:15,description:"Camera travel speed (meters/second).",format:"float",title:"Speed",type:"number","x-display-type":"Float"},title:{description:"Label title text.",title:"Title",type:"string","x-display-type":"String"}},title:"Label",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},lineage:{description:"Records the entity's lineage through linkers and parentage.",properties:{ordinal:{default:0,description:"Ordinal index among siblings (editor-only).",format:"int32",title:"Ordinal",type:"integer","x-display-type":"Integer"},parentUUID:{description:"UUID of this entity's parent (default is root).",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Parent Uuid",type:"string","x-display-type":"Entity Unique Identifier"}},title:"Lineage",type:"object","x-category":"core"},local_aabb:{description:"Local-space axis-aligned bounding box.",properties:{max:{description:"Local AABB maximum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Max",type:"array","x-display-type":"Vector3"},min:{description:"Local AABB minimum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Min",type:"array","x-display-type":"Vector3"}},title:"Local AABB",type:"object","x-category":"core"},local_transform:{description:"Local transform of the entity (position, orientation, scale).",properties:{eulerOrientation:{default:[0,0,0],description:"Local orientation as Euler angles (editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},globalEulerOrientation:{default:[0,0,0],description:"Last global orientation entered by a user as Euler angles (may be invalid; editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Global Euler Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},orientation:{default:[0,0,0,1],description:"Local orientation as a quaternion.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Orientation",type:"array","x-display-type":"Quaternion"},position:{default:[0,0,0],description:"Local position (x, y, z) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Position",type:"array","x-display-type":"Vector3","x-unit":"m"},scale:{default:[1,1,1],description:"Local non-uniform scale (x, y, z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Scale",type:"array","x-display-type":"Vector3"}},title:"Transform",type:"object","x-category":"core"},material:{description:"Assigns a shader to the entity's mesh and provides its input values and specialization constants.",properties:{constantsJSON:{description:"Specialization constants (JSON); schema defined by shaderRef.",title:"Constants Json",type:"object","x-display-type":"JSON"},dataJSON:{description:"Shader input values (JSON); schema defined by shaderRef.",title:"Data Json",type:"object","x-display-type":"JSON"},isDoubleSided:{default:!1,description:"Render both front and back faces (double-sided).",title:"Is Double Sided",type:"boolean","x-display-type":"Boolean"},shaderRef:{description:"Referenced shader (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Shader Ref",type:"string","x-asset-ref":"shader","x-display-type":"UUID"}},title:"Material",type:"object","x-category":"rendering","x-requires":{allOf:["mesh_ref"]}},material_ref:{description:"Reference to a material to use for rendering.",properties:{faceCulling:{default:0,description:"Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided.",format:"int32",oneOf:[{const:0,title:"Inherit from material"},{const:1,title:"Single Sided"},{const:2,title:"Double Sided"}],title:"Face Culling",type:"integer","x-display-type":"Integer"},value:{description:"Referenced material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"material","x-display-type":"UUID"}},title:"Material Reference",type:"object","x-category":"rendering","x-requires":{oneOf:["mesh_ref","decal_projector"]}},measure:{description:"Displays editor-only measurement annotations in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color for the measurement.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},type:{default:0,description:"Measurement type to display.",format:"int32",minimum:0,oneOf:[{const:0,title:"Linear"},{const:1,title:"Angle"},{const:2,title:"Area"},{const:3,title:"Volume"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Measure",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},mesh_ref:{description:"Reference to a mesh to render (with submesh selection).",properties:{shadowCastingMode:{default:1,description:"Shadow casting mode for this mesh.",format:"int8",minimum:0,oneOf:[{const:0,description:"Shadow casting is disabled for this entity.",title:"Off"},{const:1,description:"Shadow casting is enabled for this entity.",title:"On"}],title:"Shadow Casting Mode",type:"integer","x-display-type":"Unsigned Byte"},submeshIndex:{default:0,description:"Index of the submesh within the mesh's submesh array.",format:"int32",title:"Submesh Index",type:"integer","x-display-type":"Integer"},value:{description:"Referenced mesh (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"mesh","x-display-type":"UUID"}},title:"Mesh Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["material","material_ref"]}},morph_targets:{description:"Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref.",properties:{weights:{additionalProperties:{format:"float",type:"number","x-display-type":"Float"},description:"Map from morph target name to weight (commonly 0..1).",title:"Weights",type:"object"}},title:"Morph Targets",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},orthographic_lens:{description:"Orthographic projection lens with configurable zoom and depth range.",properties:{zFar:{default:100,description:"Far clipping plane distance (meters).",format:"float",title:"Z Far",type:"number","x-display-type":"Float","x-unit":"m"},zNear:{default:0,description:"Near clipping plane distance (meters).",format:"float",title:"Z Near",type:"number","x-display-type":"Float","x-unit":"m"},zoomFactor:{default:[1,1],description:"Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Zoom Factor",type:"array","x-display-type":"Vector2"}},title:"Orthographic Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},overrider:{description:"Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components.",properties:{componentsToDetach:{description:"Hashes of components to detach from the overridden entity.",items:{format:"int32",type:"integer","x-display-type":"Integer"},title:"Components to Detach",type:"array"},deleter:{default:!1,description:"Mark the overridden entity as deleted in the composed scene.",title:"Deleter",type:"boolean","x-display-type":"Boolean"},entityRef:{description:"Target entity to override.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Entity Ref",type:"object","x-display-type":"Entity Reference"}},title:"Overrider",type:"object","x-category":"linker"},perspective_lens:{description:"Perspective projection lens with vertical field of view and near/far clipping planes.",properties:{farPlane:{default:0,description:"Far clipping plane distance (meters). Set to 0 for an infinite far plane.",format:"float",title:"Far Plane",type:"number","x-display-type":"Float","x-unit":"m"},fovy:{default:60,description:"Vertical field of view angle in degrees.",format:"float",title:"Vertical Field of View",type:"number","x-display-type":"Float","x-unit":"deg"},nearPlane:{default:.01,description:"Near clipping plane distance (meters).",format:"float",title:"Near Plane",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0],description:"Projection center offset for stereoscopic rendering (meters).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Offset",type:"array","x-display-type":"Vector2","x-unit":"m"}},title:"Perspective Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},physics_material:{description:"Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode.",properties:{contactVelocity:{default:[0,0,0],description:"Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Contact Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},dynamicFriction:{default:.5,description:"Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface.",format:"float",title:"Dynamic Friction",type:"number","x-display-type":"Float"},isTrigger:{default:!1,description:"Treat associated geometry as a trigger (generates events but no physical response).",title:"Is Trigger",type:"boolean","x-display-type":"Boolean"},modifyContact:{default:!1,description:"Enable contact modification (applies contactVelocity on collisions).",title:"Modify Contact",type:"boolean","x-display-type":"Boolean"},restitution:{default:0,description:"Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface.",format:"float",title:"Restitution",type:"number","x-display-type":"Float"},staticFriction:{default:.5,description:"Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface.",format:"float",title:"Static Friction",type:"number","x-display-type":"Float"}},title:"Physics Material",type:"object","x-category":"physics","x-requires":{oneOf:["box_geometry","capsule_geometry","cylinder_geometry","plane_geometry","sphere_geometry","collision_geometry_ref"]}},plane_geometry:{description:"Infinite plane geometry.",properties:{distance:{default:0,description:"Signed distance from the origin along the plane normal (meters).",format:"float",title:"Distance",type:"number","x-display-type":"Float","x-unit":"m"},normal:{default:[0,1,0],description:"Unit normal vector of the plane (in local space).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Normal",type:"array","x-display-type":"Vector3"}},title:"Plane Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},point_cloud_ref:{description:"Reference to a point cloud.",properties:{value:{description:"Referenced point cloud (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"point_cloud","x-display-type":"UUID"}},title:"Point Cloud Reference",type:"object","x-category":"point cloud","x-requires":{allOf:["local_transform"]}},point_light:{description:"Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction.",properties:{color:{default:[1,1,1],description:"RGB light color in linear space [0\u20131]. Multiplies intensity.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},intensity:{default:1,description:"Radiant intensity (W/sr). Controls brightness for physically based shading (inverse-square falloff).",format:"float",title:"Intensity",type:"number","x-display-type":"Float","x-unit":"W/sr"},isDirectional:{default:!1,description:"Treat this as a directional light using the entity's orientation; position is ignored.",title:"Is Directional",type:"boolean","x-display-type":"Boolean"},isSun:{default:!1,description:"Use this light's direction to control the atmosphere sun direction. Only one light should be marked as the sun; multiple are undefined.",title:"Is Sun",type:"boolean","x-display-type":"Boolean"},range:{default:0,description:"Hard cutoff distance for light influence and culling (meters). Set to 0 for no hard cutoff and physically correct inverse-square attenuation.",format:"float",title:"Range",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Light",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform"]}},reflection_probe:{description:"Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL).",properties:{farDist:{default:100,description:"Capture far clip distance (meters).",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Capture near clip distance (meters).",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Offset of the probe capture origin relative to the entity position (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},quality:{default:128,description:"Reflection cubemap resolution (pixels per face). Higher values increase detail and cost.",format:"int32",title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Reflection probe",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform","box_geometry"]}},rigid_body:{description:"Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior).",properties:{angularDamping:{default:.05,description:"Angular damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Angular Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},centerOfMass:{default:[0,0,0],description:"Center of mass relative to the entity's local transform (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Center of Mass",type:"array","x-display-type":"Vector3","x-unit":"m"},collisionDetection:{default:0,description:"Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD.",format:"int8",minimum:0,oneOf:[{const:0,description:"Discrete collision detection.",title:"Discrete"},{const:1,description:"Linear, or sweep-based, CCD. This prevents the affected rigid bodies from going through other physics bodies at high velocities (a problem also known as tunnelling). Not functional with kinematic rigid bodies.",title:"LinearContinuous"},{const:2,description:"Angular, or speculative, CCD is better at catching missed contacts generated by fast angular motions but not as good with fast linear motions. Angular CCD is cheaper but less robust compared to linear CCD.",title:"AngularContinuous"},{const:3,description:"Linear and angular CCD are enabled. This often results in best-of-both-worlds behavior. Not functional with kinematic rigid bodies.",title:"Continuous"}],title:"Collision Detection",type:"integer","x-display-type":"Unsigned Byte"},isKinematic:{default:!1,description:"Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic).",title:"Is Kinematic",type:"boolean","x-display-type":"Boolean"},linearDamping:{default:0,description:"Linear damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Linear Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},lockedAxis:{default:0,description:"Lock motion along/around the specified axes.",format:"int8",minimum:0,title:"Locked Axis",type:"integer","x-bitFlags":[{description:"Locks motion along the X axis.",name:"Linear X",value:1},{description:"Locks motion along the Y axis.",name:"Linear Y",value:2},{description:"Locks motion along the Z axis.",name:"Linear Z",value:4},{description:"Locks motion around the X axis.",name:"Angular X",value:8},{description:"Locks motion around the Y axis.",name:"Angular Y",value:16},{description:"Locks motion around the Z axis.",name:"Angular Z",value:32}],"x-display-type":"Unsigned Byte"},mass:{default:1,description:"Mass (kg). A value of 0 is treated as infinite mass (static).",format:"float",title:"Mass",type:"number","x-display-type":"Float","x-unit":"kg"},maxAngularVelocity:{default:100,description:"Maximum angular velocity (rad/s). Must be non-negative.",format:"float",minimum:0,title:"Max Angular Velocity",type:"number","x-display-type":"Float","x-unit":"rad/s"},maxLinearVelocity:{default:1e16,description:"Maximum linear velocity (m/s). Must be non-negative.",format:"float",minimum:0,title:"Max Linear Velocity",type:"number","x-display-type":"Float","x-unit":"m/s"},useGravity:{default:!0,description:"Whether the rigid body is affected by gravity.",title:"Use Gravity",type:"boolean","x-display-type":"Boolean"}},title:"Rigid Body",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},scene_ref:{description:"Reference to a subscene (linker); used to compose scenes.",properties:{maxRecursionCount:{default:1,description:"Maximum recursion depth when a scene references itself.",format:"int32",minimum:0,title:"Max Recursion Count",type:"integer","x-display-type":"Unsigned Integer"},value:{description:"Referenced scene (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"scene","x-display-type":"UUID"}},title:"Scene Reference",type:"object","x-category":"linker","x-requires":{allOf:["local_transform"]}},script_element:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},script_map:{description:"Holds a set of script elements keyed by UUID.",properties:{elements:{additionalProperties:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},description:"Map of script UUID to script element.",title:"Elements",type:"object"}},title:"Script Map",type:"object","x-category":"scripting"},shadow_caster:{description:"Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades.",properties:{accumulateShadowCascades:{default:!0,description:"Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits.",title:"Accumulate Shadow Cascades",type:"boolean","x-display-type":"Boolean"},bias:{default:.004,description:"Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning.",format:"float",title:"Bias",type:"number","x-display-type":"Float"},cascadeCount:{default:4,description:"Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count.",format:"int8",oneOf:[{const:0,description:"A single, precomputed shadow map that does not depend on the camera's view. Provides consistent shadows across the scene but lacks adaptability for dynamic perspectives or varying levels of detail.",title:"Static Shadow Map"},{const:1,description:"One shadow layer for the entire view. Provides consistent but basic coverage, suitable for simple scenes or performance-critical applications.",title:"Single Cascade"},{const:2,description:"Two layers of shadow refinement enhance detail near the viewer while managing distant shadows more efficiently.",title:"Dual Cascade"},{const:3,description:"Three shadow regions create a balanced depth, offering clarity across close and mid-range distances.",title:"Triple Cascade"},{const:4,description:"Four layers provide precise and adaptive shadow detail, ensuring realistic depth and smooth transitions across a wide range of distances.",title:"Quad Cascade"}],title:"Cascade Count",type:"integer","x-display-type":"Byte"},cascadeSplitLambda:{default:.94,description:"Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two.",format:"float",title:"Cascade Split Lambda",type:"number","x-display-type":"Float"},farDist:{default:100,description:"Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers.",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Shadow camera near clip distance (meters). Tighten to improve depth precision.",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},quality:{default:1024,description:"Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance.",format:"int32",oneOf:[{const:256,description:"Shadows are vague and blocky, providing just enough to indicate their general presence.",title:"Ultra-Low (256x256)"},{const:512,description:"Shadows appear soft and blurry, offering a basic sense of shape with little detail.",title:"Very Low (512x512)"},{const:1024,description:"Shadows are smoother and moderately clear but lack sharpness, giving a gentle impression of depth.",title:"Low (1024x1024)"},{const:2048,description:"Standard quality with adequate clarity for most scenes. Shadows are defined but not overly sharp.",title:"Medium-Low (2048x2048)"},{const:3072,description:"*RECOMMENDED* Shadows have clean edges and are crisp enough to make fine details noticeable in most environments.",title:"Medium (3072x3072)"},{const:4096,description:"High-quality shadows with detailed edges and accurate representation of shape and form.",title:"Medium High (4096x4096)"},{const:6144,description:"Sharp and precise shadows that maintain clarity even for intricate details. Suitable for premium visual fidelity.",title:"High (6144x6144)"},{const:8192,description:"Hyper-realistic shadows with razor-sharp detail and unparalleled depth, delivering cinematic-level quality.",title:"Ultra High (8192x8192)"}],title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Shadow caster",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},skeleton_ref:{description:"Reference to a skeleton asset for skinning and animation.",properties:{value:{description:"Referenced skeleton (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"skeleton","x-display-type":"UUID"}},title:"Skeleton Reference",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"],oneOf:["mesh_ref","bone"]}},sound_ref:{description:"Reference to a sound asset with playback and spatialization controls.",properties:{attenuationModel:{default:0,description:"Distance attenuation model.",format:"int8",minimum:0,oneOf:[{const:0,description:"No attenuation.",title:"No Attenuation"},{const:1,description:"Inverse distance attenuation model.",title:"Inverse Distance"},{const:2,description:"Linear distance attenuation model.",title:"Linear Distance"},{const:3,description:"Exponential distance attenuation model.",title:"Exponential Distance"}],title:"Attenuation Model",type:"integer","x-display-type":"Unsigned Byte"},attenuationRolloffFactor:{default:1,description:"Rolloff factor for distance attenuation.",format:"float",minimum:0,title:"Attenuation Rolloff Factor",type:"number","x-display-type":"Float"},autoPlayOnStart:{default:!1,description:"Autoplay when the simulation starts.",title:"Auto Play on Start",type:"boolean","x-display-type":"Boolean"},dopplerFactor:{default:1,description:"Scale factor for the Doppler effect.",format:"float",minimum:0,title:"Doppler Factor",type:"number","x-display-type":"Float"},inaudibleBehavior:{default:0,description:"Behavior when the sound becomes inaudible.",format:"int8",minimum:0,oneOf:[{const:0,description:"Continue updating while inaudible.",title:"Tick"},{const:1,description:"Suspend updates while inaudible.",title:"Don't Tick"},{const:2,description:"Stop playback and release resources when inaudible.",title:"Kill"}],title:"Inaudible Behavior",type:"integer","x-display-type":"Unsigned Byte"},looping:{default:!1,description:"Whether the sound loops.",title:"Looping",type:"boolean","x-display-type":"Boolean"},maxDistance:{default:50,description:"Distance beyond which the sound is inaudible (meters).",format:"float",minimum:0,title:"Max Distance",type:"number","x-display-type":"Float","x-unit":"m"},minDistance:{default:5,description:"Distance at which the sound stays at max volume (meters).",format:"float",minimum:0,title:"Min Distance",type:"number","x-display-type":"Float","x-unit":"m"},pan:{default:0,description:"Stereo pan. \u22121 = left, 1 = right.",format:"float",maximum:1,minimum:-1,title:"Pan",type:"number","x-display-type":"Float"},playSpeed:{default:1,description:"Playback speed multiplier (1.0 = normal).",format:"float",title:"Play Speed",type:"number","x-display-type":"Float"},value:{description:"Referenced sound (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"sound","x-display-type":"UUID"},volume:{default:1,description:"Playback volume [0..1].",format:"float",maximum:1,minimum:0,title:"Volume",type:"number","x-display-type":"Float"}},title:"Sound Reference",type:"object","x-category":"sound","x-requires":{allOf:["local_transform"]}},sphere_geometry:{description:"Sphere geometry.",properties:{offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the sphere (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Sphere Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},spline:{description:"Displays an editor-only spline in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color of the curve.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},tension:{default:.5,description:"Catmull-Rom tension (only when type is Catmull-Rom).",format:"float",title:"Tension",type:"number","x-display-type":"Float"},type:{default:0,description:"Spline interpolation type.",format:"int32",minimum:0,oneOf:[{const:0,title:"Centripetal"},{const:1,title:"Chordal "},{const:2,title:"Catmullrom"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Spline",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},spot_light:{description:"Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff.",properties:{IESProfile:{description:"Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Ies Profile",type:"string","x-asset-ref":"texture","x-display-type":"UUID"},cutoff:{default:30,description:"Outer cone half-angle in degrees. Light intensity falls to zero outside this angle.",format:"float",title:"Cutoff",type:"number","x-display-type":"Float","x-unit":"deg"}},title:"Spot Light",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},tags:{description:"Free-form tags used to group and filter entities.",properties:{value:{description:"List of tags applied to this entity.",items:{type:"string","x-display-type":"String"},title:"Value",type:"array"}},title:"Tags",type:"object","x-category":"core"},vehicle_controller:{description:"Vehicle Controller parameters.",properties:{chassis:{description:"The chassis.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Chassis",type:"object","x-display-type":"Entity Reference"},frontLeftWheel:{description:"The front left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Left Wheel",type:"object","x-display-type":"Entity Reference"},frontRightWheel:{description:"The front right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Right Wheel",type:"object","x-display-type":"Entity Reference"},rearLeftWheel:{description:"The rear left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Left Wheel",type:"object","x-display-type":"Entity Reference"},rearRightWheel:{description:"The rear right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Right Wheel",type:"object","x-display-type":"Entity Reference"}},title:"Vehicle Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},volume_filter:{description:"View filtering and display controls applied to the referenced volume.",properties:{applyGaussianFiltering:{default:!1,description:"Apply Gaussian smoothing when sampling voxels.",title:"Apply Gaussian Filtering",type:"boolean","x-display-type":"Boolean"},enable3D:{default:!0,description:"Whether this volume is visible in the 3D view.",title:"Enable3 D",type:"boolean","x-display-type":"Boolean"},enableMPR:{default:!0,description:"Whether this volume is visible in the MPR (multi-planar reconstruction) view.",title:"Enable Mpr",type:"boolean","x-display-type":"Boolean"},mprColor:{default:[1,1,1],description:"Tint applied to this volume's MPR/projection output.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Mpr Color",type:"array","x-display-type":"Vector3"},range:{default:[0,1],description:"Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Range",type:"array","x-display-type":"Vector2"},sampleUnfiltered:{default:!1,description:"Sample texels without hardware filtering (nearest).",title:"Sample Unfiltered",type:"boolean","x-display-type":"Boolean"}},title:"Volume Filter",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_material_ref:{description:"Reference to the volume material used for shading and transfer functions.",properties:{value:{description:"Referenced volume material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"volume_material","x-display-type":"UUID"}},title:"Volume Material Reference",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_ref:{description:"Reference to a volumetric dataset stored as a 3D texture (voxels).",properties:{texture3dRef:{description:"Referenced 3D texture (UUID) containing the volume voxels.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Texture3d Ref",type:"string","x-asset-ref":"texture_3d","x-display-type":"UUID"}},title:"Volume Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","volume_material_ref"]}}},required:["euid"],type:"object"};var H=require("react/jsx-runtime"),pe=({name:e,hasLinkToReference:t=!1,className:i})=>{let o=Qe.properties[e],r=et.entityComponents[e],s=e==="*_geometry"?"box_geometry; capsule_geometry; cylinder_geometry; plane_geometry; sphere_geometry":e;if(!o||!r)return(0,H.jsx)("span",{children:e});let{color:l}=r,c=e==="*_geometry"?"/references/entity-components#box_geometry":`/references/entity-components#${e}`;return(0,H.jsxs)("span",{className:(0,ke.cn)("no-underline! inline-flex items-baseline gap-2 w-fit my-0 me-1","text-[90%] font-medium tracking-wide rounded-full whitespace-nowrap cursor-default","bg-current/10 border border-transparent has-[.link-to-ref:hover]:border-current/20 transition-colors",!t&&"pr-3",i),style:{color:l},children:[(0,H.jsx)(Se,{componentId:e,className:"h-5 text-4xs"}),(0,H.jsx)("span",{className:"text-primary",children:o?.title}),t&&(0,H.jsx)("a",{href:c,className:"link-to-ref px-1 mr-0.5 h-full text-xs text-current! rounded-full opacity-70 hover:opacity-100 hover:bg-ground/50 transition-all",children:(0,H.jsx)(ke.Icon,{className:"fal fa-external-link-square text-sm"})})]})};var at=require("@3dverse/design-tokens");var tt=require("clsx"),it=require("tailwind-merge");function a(...e){return(0,it.twMerge)((0,tt.clsx)(e))}var C=require("react/jsx-runtime");function ot({allOf:e,oneOf:t,withAttributes:i,className:o}){return(0,C.jsxs)("article",{className:a("relative w-fit flex flex-col flex-wrap my-4 border border-primary-alpha rounded-[1.5rem]",o),children:[(0,C.jsx)("div",{className:"absolute [writing-mode:vertical-rl] rotate-180 top-1/2 -left-3 -translate-x-1/2 -translate-y-1/2 text-[.6rem] font-medium text-tertiary tracking-wider opacity-60 uppercase",children:"Entity"}),(0,C.jsx)("div",{className:"flex flex-wrap gap-2 p-2",children:e?.map(r=>(0,C.jsx)(aa,{name:r,withAttributes:i},r))}),t&&(0,C.jsxs)("div",{className:"flex gap-3 pl-4 p-2 border-t border-secondary-alpha",children:[(0,C.jsxs)("div",{className:"shrink-0 mt-px text-3xs text-tertiary font-medium",children:[(0,C.jsx)("i",{className:"fal fa-plus mr-1"})," One of"]}),(0,C.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map(r=>(0,C.jsx)(pe,{name:r},r))})]})]})}var aa=({name:e,withAttributes:t})=>{if(t&&Object.keys(t).includes(e)){let{color:i}=at.entityComponents[e];return(0,C.jsxs)("div",{className:"flex flex-col bg-(--entity-component-color)/5 rounded-[14px]",style:{"--entity-component-color":i},children:[(0,C.jsx)(pe,{name:e,className:"w-full"}),(0,C.jsx)(oa,{attributes:t[e]})]})}return(0,C.jsx)(pe,{name:e})},oa=({attributes:e})=>(0,C.jsx)("div",{className:"flex flex-col flex-wrap gap-1 p-2 pr-4 text-xs text-tertiary",children:Object.entries(e).map(([t,i])=>(0,C.jsxs)("div",{className:"flex gap-1",children:[(0,C.jsxs)("span",{className:"font-mono",children:[t,":"]}),(0,C.jsx)("span",{className:"font-mono",children:JSON.stringify(i)})]},t))});var qe={glowEffect:"d",glowEffectWide:"l"};var nt=require("react/jsx-runtime"),rt=({children:e,variant:t="default",className:i})=>(0,nt.jsx)("div",{className:a(qe.glowEffect,t==="wide"&&qe.glowEffectWide,i),children:e});var n=require("react/jsx-runtime"),st=({items:e=[],connections:t=[],gridSize:i=40,cellSize:o=70,containerWidth:r=800,containerHeight:s=400,caption:l,animateOnScroll:c=!0,className:k})=>{let U=y=>({animationFillMode:"both",...c?{animationTimeline:"view(block)",animationRange:"entry 25% entry 100%"}:{animationDelay:y}}),g=(y,f)=>{let m=(y-f)*(o/2),u=(y+f)*(o/4);return{x:m,y:u}},v=r/2,b=s/2,p=()=>{let y=[],f=i/2;for(let m=-f;m<=f;m++){let u=g(-f,m),D=g(f,m);y.push((0,n.jsx)("line",{x1:v+u.x,y1:b+u.y,x2:v+D.x,y2:b+D.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`h-${m}`))}for(let m=-f;m<=f;m++){let u=g(m,-f),D=g(m,f);y.push((0,n.jsx)("line",{x1:v+u.x,y1:b+u.y,x2:v+D.x,y2:b+D.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`v-${m}`))}return y},P=(y,f,m)=>{let D=`arrow-${y}-${m}`;return(0,n.jsx)("marker",{id:D,markerWidth:10,markerHeight:10,refX:y==="end"?6:4,refY:10/2,orient:"auto",markerUnits:"userSpaceOnUse",children:(0,n.jsx)("polygon",{points:y==="end"?`0,0 10,${10/2} 0,10`:`10,0 0,${10/2} 10,10`,fill:f})})},h=()=>t.map((y,f)=>{let{from_x:m,from_y:u,to_x:D,to_y:G,via_x:Q=m,via_y:ee=u,arrow_start:be,arrow_end:me,color:V="#fbbf24",name:fe,showDebug:he,isAnimated:ve=!1,animationDirection:we="end"}=y,T=[],q=[],I=m,L=u;if(T.push(g(I,L)),I!==Q){let d=Q;q.push({from:{x:I,y:L},to:{x:d,y:L}}),I=d,T.push(g(I,L))}if(L!==ee){let d=ee;q.push({from:{x:I,y:L},to:{x:I,y:d}}),L=d,T.push(g(I,L))}if(I!==D){let d=D;q.push({from:{x:I,y:L},to:{x:d,y:L}}),I=d,T.push(g(I,L))}if(L!==G){let d=G;q.push({from:{x:I,y:L},to:{x:I,y:d}}),L=d,T.push(g(I,L))}let ue=q[0],Ge=0;q.forEach(d=>{let S=d.to.x-d.from.x,te=d.to.y-d.from.y,ie=Math.hypot(S,te);ie>Ge&&(Ge=ie,ue=d)});let Pe=g(ue.from.x,ue.from.y),Ie=g(ue.to.x,ue.to.y),Ui=v+(Pe.x+Ie.x)/2,qi=b+(Pe.y+Ie.y)/2,Oi=Math.atan2(Ie.y-Pe.y,Ie.x-Pe.x)*(180/Math.PI),Fi=(d=>{let S=(d+180)%360-180;return S>90&&(S-=180),S<-90&&(S+=180),S})(Oi),Vi=T.map((d,S)=>{let te=v+d.x,ie=b+d.y;return S===0?`M ${te},${ie}`:`L ${te},${ie}`}).join(" "),He=0;for(let d=1;d<T.length;d++){let S=T[d-1],te=T[d],ie=v+S.x,Hi=b+S.y,Zi=v+te.x,Wi=b+te.y;He+=Math.hypot(Zi-ie,Wi-Hi)}let Ze=Math.max(1.2,He/150),We=`conn-path-${f}`,zi=`arrow-start-${f*2}`,$i=`arrow-end-${f*2+1}`,ji=()=>(0,n.jsxs)("defs",{children:[be&&P("start",V,f*2),me&&P("end",V,f*2+1)]}),Ce=({reverse:d=!1,begin:S="0s"})=>(0,n.jsxs)("g",{filter:"url(#conn-glow)",children:[(0,n.jsx)("ellipse",{cx:"5",cy:"0",rx:"4",ry:"2",fill:V,opacity:"0.8"}),(0,n.jsx)("animateMotion",{dur:`${Ze}s`,repeatCount:"indefinite",begin:S,keyPoints:d?"1;0":"0;1",keyTimes:"0;1",calcMode:"linear",rotate:"auto",children:(0,n.jsx)("mpath",{xlinkHref:`#${We}`})})]}),Gi=()=>ve?we==="both"?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ce,{reverse:!1,begin:"0s"}),(0,n.jsx)(Ce,{reverse:!0,begin:`${Ze/2}s`})]}):we==="start"?(0,n.jsx)(Ce,{reverse:!0}):(0,n.jsx)(Ce,{reverse:!1}):null;return(0,n.jsxs)("g",{className:"animate-appear-top cursor-default",style:U(".2s"),children:[(0,n.jsx)(ji,{}),(0,n.jsx)("path",{id:We,d:Vi,stroke:V,strokeWidth:"2",strokeLinecap:"round",fill:"none",markerStart:be?`url(#${zi})`:void 0,markerEnd:me?`url(#${$i})`:void 0,style:y.style}),Gi(),fe&&(0,n.jsx)("g",{transform:`translate(${Ui}, ${qi}) rotate(${Fi})`,children:(0,n.jsx)("text",{x:"12",y:"12",textAnchor:"middle",dominantBaseline:"middle",className:"text-sm font-bold fill-accent",children:fe})}),he&&(0,n.jsx)(n.Fragment,{children:T.map((d,S)=>(0,n.jsx)("circle",{cx:v+d.x,cy:b+d.y,r:"3",fill:S===0?"red":S===T.length-1?"green":"blue"},S))})]},f)}),N=()=>e.map((y,f)=>{let{x:m,y:u,width:D,height:G,color:Q="#52548B",name:ee,showDebug:be,image:me}=y,V=g(m,u),fe=g(m+D,u),he=g(m+D,u-G),ve=g(m,u-G),we=[[v+V.x,b+V.y],[v+fe.x,b+fe.y],[v+he.x,b+he.y],[v+ve.x,b+ve.y]].map(([q,I])=>`${q},${I}`).join(" "),T=g(m+D/2,u-G/2);return(0,n.jsx)("g",{className:"group animate-appear-top cursor-default",style:U(),children:(0,n.jsxs)("g",{className:"drop-shadow-[0_9px_7px_var(--shadow-color)] hover:drop-shadow-[0_12px_10px_var(--shadow-color)] hover:[--translate:-8px] transition-transform duration-300",style:{"--shadow-color":`color-mix(in srgb, ${Q} 10%, var(--color-bg-ground))`,translate:"0 var(--translate, -4px)"},children:[(0,n.jsx)("polygon",{points:we,fill:Q,strokeLinejoin:"round",className:"opacity-80 group-hover:opacity-100 transition-opacity duration-all duration-300"}),me&&(()=>{let q=v+V.x+5,I=b+V.y-80;return(0,n.jsx)("image",{href:me,x:q,y:I,width:"128px"})})(),ee&&(0,n.jsxs)("g",{transform:`translate(${v+T.x}, ${b+T.y})`,children:[(0,n.jsx)("rect",{x:-(ee.length*4+8),y:-12,width:ee.length*8+16,height:24,fill:"#181a59",fillOpacity:"0.8",rx:"4"}),(0,n.jsx)("text",{x:0,y:0,textAnchor:"middle",dominantBaseline:"middle",className:"text-base",fill:"white",children:ee})]}),be&&(0,n.jsxs)("text",{x:v+T.x,y:b+T.y+20,textAnchor:"middle",fill:"white",fontSize:"10",opacity:"0.7",children:["(",m,", ",u,")"]})]})},f)});return(0,n.jsxs)("figure",{className:a("m-0 w-full",k),role:"img","aria-label":l,children:[(0,n.jsxs)("svg",{viewBox:`0 0 ${r} ${s}`,preserveAspectRatio:"xMidYMid meet",className:"w-full",children:[(0,n.jsxs)("defs",{children:[(0,n.jsxs)("filter",{id:"conn-glow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[(0,n.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),(0,n.jsxs)("feMerge",{children:[(0,n.jsx)("feMergeNode",{in:"blur"}),(0,n.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,n.jsxs)("mask",{id:"fadeMask",maskUnits:"objectBoundingBox",children:[(0,n.jsxs)("radialGradient",{id:"fadeGradient",children:[(0,n.jsx)("stop",{offset:"40%",stopColor:"white"}),(0,n.jsx)("stop",{offset:"90%",stopColor:"black"})]}),(0,n.jsx)("rect",{width:"100%",height:"100%",fill:"url(#fadeGradient)"})]}),(0,n.jsxs)("filter",{id:"text-backdrop-blur",x:"-200%",y:"-200%",width:"500%",height:"500%",children:[(0,n.jsx)("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"20",result:"blurredBg"}),(0,n.jsx)("feFlood",{floodColor:"black",floodOpacity:"0.8",result:"bgColor"}),(0,n.jsx)("feComposite",{in:"bgColor",in2:"blurredBg",operator:"in",result:"coloredBlur"}),(0,n.jsx)("feComposite",{in:"coloredBlur",in2:"SourceGraphic",operator:"over",result:"final"})]})]}),(0,n.jsx)("rect",{width:r,height:s,fill:"transparent"}),(0,n.jsx)("g",{mask:"url(#fadeMask)",children:p()}),h(),N()]}),l&&(0,n.jsx)("figcaption",{className:"-translate-y-6 text-center text-sm text-tertiary text-balance",children:l})]})};var M=require("react/jsx-runtime"),lt=({style:e,className:t=""})=>(0,M.jsxs)("svg",{viewBox:"0 0 99 20",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[(0,M.jsx)("path",{fill:"var(--color-wordmark-prefix, var(--color-brand))",d:"M6.059 19.351c-.92733 0-1.79833-.1733-2.613-.52-.81467-.3553-1.521-.858-2.119-1.508-.589333-.65-1.018333-1.417-1.2869999-2.301L2.666 14.294c.25133.806.689 1.4257 1.313 1.859.624.4247 1.31733.6327 2.08.624.68467-.0087 1.287-.169 1.807-.481.52-.312.92733-.7323 1.222-1.261.29467-.5373.442-1.1527.442-1.846 0-1.04-.325-1.898-.975-2.574-.64133-.676-1.482-1.014-2.522-1.014-.29467 0-.598.04333-.91.13-.30333.08667-.58933.19933-.858.338L2.991 7.924l6.604-5.837.286.78h-9.1V.279999h11.258V2.867L6.553 8.145l-.026-.884c1.17867 0 2.20133.26433 3.068.793.8667.52 1.534 1.23067 2.002 2.132.4767.8927.715 1.8937.715 3.003 0 1.196-.2817 2.2577-.845 3.185-.5547.9273-1.3043 1.6553-2.249 2.184-.936.5287-1.989.793-3.159.793Zm15.4769.039c-1.3087 0-2.4397-.325-3.393-.975-.9447-.65-1.677-1.534-2.197-2.652-.5113-1.1267-.767-2.392-.767-3.796 0-1.4127.26-2.67367.78-3.783.52-1.118 1.2567-1.99767 2.21-2.639.962-.65 2.1017-.975 3.419-.975 1.326 0 2.4397.325 3.341.975.91.64133 1.5947 1.521 2.054 2.639.468 1.118.702 2.379.702 3.783s-.234 2.665-.702 3.783c-.468 1.118-1.157 2.0063-2.067 2.665-.91.65-2.0367.975-3.38.975Zm.377-2.457c.8927 0 1.6207-.2123 2.184-.637.5633-.4247.975-1.0097 1.235-1.755.26-.7453.39-1.6033.39-2.574 0-.9707-.1343-1.8287-.403-2.574-.26-.74533-.6673-1.326-1.222-1.742-.546-.416-1.2437-.624-2.093-.624-.9013 0-1.6423.221-2.223.663-.5807.442-1.014 1.03567-1.3 1.781-.2773.7453-.416 1.5773-.416 2.496 0 .9273.1387 1.768.416 2.522.286.7453.7107 1.339 1.274 1.781.572.442 1.2913.663 2.158.663ZM25.7219 19V8.899h-.312V.279999h2.73V19h-2.418Z"}),(0,M.jsx)("path",{fill:"var(--color-wordmark, var(--color-content-secondary))",d:"m35.8333 19-5.096-14.04h2.743l3.731 10.634 3.731-10.634h2.743L38.5893 19h-2.756Zm16.1734.39c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023ZM61.5534 19V4.96h2.418v3.406l-.338-.442c.1733-.45067.3986-.86233.676-1.235.2773-.38133.598-.69333.962-.936.3553-.26.7496-.45933 1.183-.598.442-.14733.8926-.234 1.352-.26.4593-.03467.9013-.013 1.326.065v2.548c-.4594-.12133-.9707-.156-1.534-.104-.5547.052-1.066.22967-1.534.533-.442.286-.793.63267-1.053 1.04-.2514.40733-.4334.86233-.546 1.365-.1127.494-.169 1.0183-.169 1.573V19h-2.743Zm15.1758.377c-1.7073 0-3.0983-.377-4.173-1.131-1.0746-.754-1.7333-1.8157-1.976-3.185l2.782-.429c.1734.728.572 1.3043 1.196 1.729.6327.416 1.417.624 2.353.624.8494 0 1.5124-.1733 1.989-.52.4854-.3467.728-.8233.728-1.43 0-.3553-.0866-.6413-.26-.858-.1646-.2253-.5156-.4377-1.053-.637-.5373-.1993-1.3563-.4463-2.457-.741-1.2046-.312-2.1623-.6457-2.873-1.001-.702-.364-1.2046-.7843-1.508-1.261-.2946-.4853-.442-1.07033-.442-1.755 0-.84933.2254-1.59033.676-2.223.4507-.63267 1.0834-1.12233 1.898-1.469.8234-.34667 1.7854-.52 2.886-.52 1.0747 0 2.0324.169 2.873.507.8407.338 1.521.819 2.041 1.443.52.61533.832 1.339.936 2.171l-2.782.507c-.0953-.676-.4116-1.209-.949-1.599-.5373-.39-1.235-.60233-2.093-.637-.8233-.03467-1.4906.104-2.002.416-.5113.30333-.767.72367-.767 1.261 0 .312.0954.57633.286.793.1994.21667.5807.42467 1.144.624.5634.1993 1.3954.4377 2.496.715 1.1787.3033 2.1147.6413 2.808 1.014.6934.364 1.1874.8017 1.482 1.313.3034.5027.455 1.1137.455 1.833 0 1.3867-.507 2.4743-1.521 3.263-1.0053.7887-2.3963 1.183-4.173 1.183Zm15.0575.013c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023Z"})]}),Ne=({style:e,className:t=""})=>(0,M.jsxs)("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[(0,M.jsx)("path",{d:"M5.28808 19.7527L14.1837 28.4509L14.1837 39.9995L5.28302 31.294L5.28808 19.7527Z",fill:"var(--logo-color, #8d670b)"}),(0,M.jsx)("path",{d:"M33.9949 19.7527L25.0993 28.4509L25.0993 39.9995L34 31.294L33.9949 19.7527Z",fill:"var(--logo-color, #8d670b)"}),(0,M.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.3294 13.2721L34.2049 19.747V31.294L24.9911 19.747V24.8481H24.9904V24.8488L14.4968 24.8488V19.7477H14.4968V19.747L5.28302 31.294L5.28302 19.7527L10.1585 13.28V9.17384C10.1585 3.05795 14.9512 0 19.744 0C22.106 0 24.468 0.742731 26.2563 2.22819C28.0966 3.75685 29.3294 6.07206 29.3294 9.17384L29.3294 13.2721L29.3294 13.2721ZM19.744 5.75545C21.2537 5.75545 22.7634 6.83514 22.7634 8.99452L22.7634 13.2748L16.7245 13.2773V8.99452C16.7245 7.40326 17.5444 6.3983 18.5799 5.97965C18.9496 5.83019 19.3468 5.75545 19.744 5.75545ZM16.7245 13.2773V13.28L22.7634 13.28L16.7245 13.28V13.2773H16.7245ZM19.7439 29.9788L14.4968 24.8488L24.9911 24.8488L19.7439 29.9788Z",fill:"url(#logo-rocket-gradient)"}),(0,M.jsx)("defs",{children:(0,M.jsxs)("linearGradient",{id:"logo-rocket-gradient",x1:"12.0755",y1:"1.88679",x2:"31.3208",y2:"32.4528",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"var(--logo-top-color, #f0c732)"}),(0,M.jsx)("stop",{offset:"1",stopColor:"var(--logo-bottom-color, #ffc800)"})]})})]});var Oe={spinnerLogo:"s",circle:"e",loaderRotate:"r"};var ye=require("react/jsx-runtime"),pt=()=>(0,ye.jsxs)("div",{className:Oe.spinnerLogo,children:[(0,ye.jsx)(Ne,{}),(0,ye.jsx)("span",{className:Oe.circle})]});var dt=require("@3dverse/design-tokens");var Z=require("react/jsx-runtime"),sa="relative inline-flex items-center justify-center after:content-[''] after:absolute after:left-1/2 after:top-1/2 after:w-[125%] after:h-0.5 after:rounded-[1px] after:bg-accent after:-translate-x-1/2 after:-translate-y-1/2 after:-rotate-45 after:origin-center after:pointer-events-none";function w({variant:e,crossed:t,className:i,style:o}){return e==="shadowCast"?(0,Z.jsxs)("div",{role:"img",className:"relative text-tertiary",style:o,children:[(0,Z.jsx)(w,{className:a("relative z-10",i)}),(0,Z.jsx)(w,{className:a("absolute top-0 left-0 translate-x-[40%] translate-y-[15%] scale-94 text-underground/80",i),style:{filter:"drop-shadow(3px 6px 30px color-mix(in oklab, var(--color-content-tertiary) 80%, transparent))"}})]}):t?(0,Z.jsx)("span",{className:sa,style:o,"aria-hidden":!0,children:(0,Z.jsx)("i",{"data-slot":"icon",className:i})}):(0,Z.jsx)("i",{"data-slot":"icon",className:i,style:o,"aria-hidden":!0})}var W=require("react/jsx-runtime"),ct=({assetId:e,variant:t,weight:i="light",className:o=""})=>{let{color:r,fontAwesome:s}=dt.assets[e],l=t==="file"?`
1
+ "use strict";var Ve=Object.defineProperty;var li=Object.getOwnPropertyDescriptor;var pi=Object.getOwnPropertyNames;var di=Object.prototype.hasOwnProperty;var ci=(e,t)=>{for(var o in t)Ve(e,o,{get:t[o],enumerable:!0})},mi=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pi(t))!di.call(e,a)&&a!==o&&Ve(e,a,{get:()=>t[a],enumerable:!(r=li(t,a))||r.enumerable});return e};var fi=e=>mi(Ve({},"__esModule",{value:!0}),e);var Yi={};ci(Yi,{Accordion:()=>wt,AccordionContent:()=>Dt,AccordionItem:()=>Ct,AccordionTrigger:()=>It,AppIcon:()=>st,AssetIcon:()=>vt,Badge:()=>Ot,BottomSheet:()=>kt,BottomSheetClose:()=>Lt,BottomSheetContent:()=>Mt,BottomSheetDescription:()=>Et,BottomSheetFooter:()=>Bt,BottomSheetHeader:()=>_t,BottomSheetTitle:()=>At,BottomSheetTrigger:()=>Nt,Button:()=>_,ButtonTile:()=>Vt,DataItem:()=>zt,DataItemDescription:()=>jt,DataItemLabel:()=>Ft,DataItemTitle:()=>$t,DataItemValue:()=>Gt,Dialog:()=>Ht,DialogContent:()=>Wt,DialogDescription:()=>Kt,DialogFooter:()=>Yt,DialogHeader:()=>Xt,DialogTitle:()=>Jt,DialogTrigger:()=>Zt,DotPing:()=>Qt,EmptyState:()=>to,EntityComponentBadge:()=>me,EntityComponentIcon:()=>_e,EntityRecipe:()=>ft,GlowEffect:()=>ut,Icon:()=>C,IconAssetScene:()=>Pt,IslandPanel:()=>oo,IsometricSchema:()=>gt,Kbd:()=>ro,Loader:()=>no,Logo3dverse:()=>xt,Logo3dverseRocket:()=>Ae,Menu:()=>lo,MenuContent:()=>co,MenuGroup:()=>uo,MenuGroupLabel:()=>yo,MenuItem:()=>mo,MenuPortal:()=>We,MenuPositioner:()=>Xe,MenuSeparator:()=>fo,MenuTrigger:()=>po,Modal:()=>go,OverlayContainer:()=>No,Panel:()=>xo,PanelHeader:()=>ho,PanelTitle:()=>bo,Popover:()=>vo,PopoverContent:()=>wo,PopoverDescription:()=>Do,PopoverHeader:()=>Co,PopoverTitle:()=>Io,PopoverTrigger:()=>Po,ScrollableArea:()=>So,Slider:()=>Ro,Spinner:()=>ht,Stack:()=>_o,Switch:()=>ko,Tabs:()=>Oo,TabsContent:()=>Fo,TabsIndicator:()=>qe,TabsList:()=>Vo,TabsTrigger:()=>zo,Text:()=>$o,ToggleButton:()=>Go,Tooltip:()=>Zo,TooltipContent:()=>Xo,TooltipProvider:()=>Ho,TooltipTrigger:()=>Wo,appIconShapes:()=>ce,cn:()=>i});module.exports=fi(Yi);var ae={container:"t",inner:"o",innerShape:"i",shape:"a",shapeAlt:"n"};var ne=require("react/jsx-runtime"),Le=["#EDB5FB","#FBB5B5","#F4D35B","#B5FBF7","#B5DDFB","#B5C2FB","#CBB5FB","#189AB4","#75E6DA","#D4F1F4","#EF7C8E","#FAE8E0","#B6E2D3","#D8A7B1","#F6EEE0","#E4B7A0","#C38370","#94DFE6","#EBDCC7","#B5EECB","#DCC5C3","#D6E1EB","#ADC4D7","#FACB80","#FBD8B0","#feb191","#a2f9c6"],ce=[{},{borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{scale:"0.75"},{scale:"0.5"},{borderRadius:"9999px"},{borderRadius:"9999px",borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{borderRadius:"9999px",height:"50%",translate:"0 50%"},{borderRadius:"9999px",scale:"0.5"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px",height:"50%"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px",height:"50%"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderTopLeftRadius:"9999px"},{borderBottomLeftRadius:"9999px",borderTopRightRadius:"9999px"},{},{},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg) scaleY(-1)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"scaleY(-1)"},{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"},{clipPath:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)"},{clipPath:'path("M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z")'},{clipPath:"polygon(0 0, 0% 100%, 100% 100%)"},{clipPath:"polygon(61% 50%, 100% 0, 100% 100%, 0% 100%)"}],ze=ce.length,Fe=Le.length,rt=[0,180,270],$e=101,at=200,nt=301,st=({id:e,shape:t,colors:o,className:r,style:a})=>{let n=Number(e?.replace(/\D/g,"").replace(/-/g,"")),l=[Le[o?.[0]??Math.floor(n%$e%Fe)],Le[o?.[1]??Math.floor(n%at%Fe)],Le[o?.[2]??Math.floor(n%nt%Fe)]],d=t||[Math.floor(n%$e%ze),Math.floor(n%at%ze),Math.floor(n%nt%ze)],b=rt[n%$e%rt.length];return(0,ne.jsx)("div",{role:"img","aria-label":"Project icon",className:`${ae.container} ${r}`,style:{"--gradient-from":l[1],"--gradient-to":l[2],"--gradient-stops":"var(--gradient-from), var(--gradient-to)",...a},children:(0,ne.jsxs)("div",{className:ae.innerShape,style:{color:l[0],rotate:`${b}deg`},children:[(0,ne.jsx)("span",{className:ae.shape,style:{...ce[d[0]],boxShadow:"5px 0px 0px 6px color-mix(in srgb, currentColor 40%, transparent), 4px 0px 0px 32px color-mix(in srgb, currentColor 30%, transparent)"}}),(0,ne.jsx)("span",{className:`${ae.shape} ${ae.shapeAlt}`,style:ce[d[1]]}),(0,ne.jsx)("span",{className:ae.shape,style:ce[d[2]]})]})})};var pt=require("@3dverse/design-tokens"),Be=require("@3dverse/ui-lib");var je=require("@3dverse/design-tokens"),Me=require("@3dverse/ui-lib"),se=require("react/jsx-runtime"),_e=({componentId:e,variant:t="default",style:o,className:r=""})=>{if(!je.entityComponents[e])return(0,se.jsx)(se.Fragment,{children:e});let{color:a,fontAwesome:n}=je.entityComponents[e];return n?(0,se.jsx)(Me.Icon,{className:(0,Me.cn)("flex! justify-center items-center h-[2.5em] w-auto! aspect-square shrink-0 text-base text-current bg-current/20 rounded-full","fal",n,r),style:{color:a,boxShadow:t==="special"?"0 0 10px color-mix(in srgb, var(--entity-component-color), var(--color-bg-underground) 100%), 20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%), -20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%)":void 0,...o}}):(0,se.jsx)(se.Fragment,{children:e})};var lt={properties:{animation_controller:{description:"Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set.",properties:{animationGraphRef:{description:"Referenced Animation Graph (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Graph Ref",type:"string","x-asset-ref":"animation_graph","x-display-type":"UUID"},animationSetRef:{description:"Referenced Animation Set (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Set Ref",type:"string","x-asset-ref":"animation_set","x-display-type":"UUID"},dataJSON:{description:"Animation Graph input parameters in JSON format.",title:"Data Json",type:"object","x-display-type":"JSON"},rootBoneEntityRef:{description:"Entity containing the Bone component for the skeleton's root bone.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Root Bone Entity Ref",type:"object","x-display-type":"Entity Reference"},rootMotionEnabled:{default:!1,description:"Enable root motion extraction and application to the entity transform.",title:"Root Motion Enabled",type:"boolean","x-display-type":"Boolean"}},title:"Animation Controller",type:"object","x-category":"animation"},animation_sequence_controller:{description:"Controls playback of an Animation Sequence; assigns tracks to entities.",properties:{animationSequenceRef:{description:"Referenced Animation Sequence (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Sequence Ref",type:"string","x-asset-ref":"animation_sequence","x-display-type":"UUID"},entities:{additionalProperties:{properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],type:"object","x-display-type":"Entity Reference"},description:"Map from track UUID to assigned entity.",title:"Entities",type:"object"},loop:{default:!1,description:"Loop playback when reaching the stop offset.",title:"Loop",type:"boolean","x-display-type":"Boolean"},playbackSpeed:{default:1,description:"Playback speed multiplier. Negative values play in reverse.",format:"float",title:"Playback Speed",type:"number","x-display-type":"Float"},startOffset:{default:0,description:"Normalized start offset [0, 1].",format:"float",maximum:1,minimum:0,title:"Start Offset",type:"number","x-display-type":"Float"},stopOffset:{default:1,description:"Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point.",format:"float",maximum:1,minimum:0,title:"Stop Offset",type:"number","x-display-type":"Float"}},title:"Animation Sequence Controller",type:"object","x-category":"animation"},bone:{description:"Associates this entity with a bone in a skeleton (for attachments and transforms).",properties:{boneIndex:{description:"Zero-based index of this bone within the bound skeleton.",format:"int32",minimum:0,title:"Bone Index",type:"integer","x-display-type":"Unsigned Integer"}},title:"Bone",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},box_geometry:{description:"Box geometry.",properties:{dimension:{default:[1,1,1],description:"Box dimensions (width, height, depth) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Dimension",type:"array","x-display-type":"Vector3","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"}},title:"Box Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},camera:{description:"Virtual camera.",properties:{dataJSON:{description:"Render Graph input parameters in JSON; schema defined by renderGraphRef.",title:"Data Json",type:"object","x-display-type":"JSON"},renderGraphRef:{description:"Referenced render graph to use for rendering from this camera.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Render Graph Ref",type:"string","x-asset-ref":"render_graph","x-display-type":"UUID"},renderTargetIndex:{default:-1,description:"Index of the render target to blit/output to. -1 indicates the default target.",format:"int32",title:"Render Target Index",type:"integer","x-display-type":"Integer"}},title:"Camera",type:"object","x-category":"camera","x-requires":{allOf:["local_transform"],oneOf:["orthographic_lens","perspective_lens","custom_lens"]}},capsule_geometry:{description:"Capsule geometry.",properties:{axis:{default:1,description:"Alignment axis of the capsule: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Capsule is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Capsule is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Capsule is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylindrical mid-section (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the hemispherical ends (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Capsule Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},character_controller:{description:"Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control.",properties:{skinWidth:{default:0,description:"Collision skin width (meters).",format:"float",title:"Skin Width",type:"number","x-display-type":"Float","x-unit":"m"},slopeLimit:{default:45,description:"Maximum walkable slope (degrees). Slopes steeper than this are not walkable.",format:"float",title:"Slope Limit",type:"number","x-display-type":"Float","x-unit":"deg"},stepOffset:{default:0,description:"Maximum climbable step height. Steps higher than this cannot be climbed automatically.",format:"float",title:"Step Offset",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Character Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"],oneOf:["box_geometry","capsule_geometry"]}},collision_geometry_ref:{description:"Reference to a collision geometry asset used by physics.",properties:{collisionGeometryRef:{description:"Referenced collision geometry (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Collision Geometry Ref",type:"string","x-asset-ref":"collision_geometry","x-display-type":"UUID"}},title:"Collision Geometry Reference",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},constraint:{description:"6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs.",properties:{motionLimitSpringDamping:{default:[0,0,0],description:"Linear limit spring damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},motionLimitSpringStiffness:{default:[0,0,0],description:"Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},motionLowerLimit:{default:[0,0,0],description:"Lower linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Lower Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},motionUpperLimit:{default:[0,0,0],description:"Upper linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Upper Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},swingLimitAngle:{default:[0,0],description:"Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Swing Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},swingSpringDamping:{default:0,description:"Swing limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Swing Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},swingSpringStiffness:{default:0,description:"Swing limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Swing Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},twistLimitAngle:{default:[0,0],description:"Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Twist Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},twistSpringDamping:{default:0,description:"Twist limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Twist Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},twistSpringStiffness:{default:0,description:"Twist limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Twist Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},unlockedMotion:{default:0,description:"Unlock motion along/around the specified axes.",format:"int32",minimum:0,title:"Unlocked Motion",type:"integer","x-bitFlags":[{description:"Unlock motion along the X axis.",name:"Along X",value:1},{description:"Unlock motion along the Y axis.",name:"Along Y",value:2},{description:"Unlock motion along the Z axis.",name:"Along Z",value:4},{description:"Unlock motion around the X axis.",name:"Around X",value:8},{description:"Unlock motion around the Y axis.",name:"Around Y",value:16},{description:"Unlock motion around the Z axis.",name:"Around Z",value:32}],"x-display-type":"Unsigned Integer"}},title:"Constraint",type:"object","x-category":"physics","x-requires":{allOf:["joint"]}},constraint_actuator:{description:"Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits.",properties:{angularDamping:{default:[0,0,0],description:"Angular drive damping per axis (N\xB7m\xB7s/rad).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Damping",type:"array","x-display-type":"Vector3","x-unit":"N.m.s/rad"},angularForceLimit:{default:[-1,-1,-1],description:"Max angular drive torque/impulse per axis (N\xB7m). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N.m"},angularStiffness:{default:[0,0,0],description:"Angular drive stiffness per axis (N\xB7m/rad). >0 applies spring torque toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N.m/rad"},angularVelocity:{default:[0,0,0],description:"Target angular velocity (rad/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Velocity",type:"array","x-display-type":"Vector3","x-unit":"rad/s"},goalOrientation:{default:[0,0,0,1],description:"Target angular orientation.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Goal Orientation",type:"array","x-display-type":"Quaternion"},goalPosition:{default:[0,0,0],description:"Target linear position offset (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Goal Position",type:"array","x-display-type":"Vector3","x-unit":"m"},linearDamping:{default:[0,0,0],description:"Linear drive damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},linearForceLimit:{default:[-1,-1,-1],description:"Max linear drive force/impulse per axis (N). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N"},linearStiffness:{default:[0,0,0],description:"Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},linearVelocity:{default:[0,0,0],description:"Target linear velocity (m/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},type:{default:1,description:"Drive type: apply as force or as acceleration.",format:"int32",oneOf:[{const:0,title:"FORCE"},{const:1,title:"ACCELERATION"}],title:"Type",type:"integer","x-display-type":"Integer"}},title:"Constraint Actuator",type:"object","x-category":"physics","x-requires":{allOf:["constraint"]}},culling_geometry:{description:"Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere).",properties:{isAdditive:{default:!0,description:"Additive: show elements inside the geometry. Subtractive: show elements outside the geometry.",title:"Is Additive",type:"boolean","x-display-type":"Boolean"}},title:"Culling Geometry",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["box_geometry","cylinder_geometry","plane_geometry","sphere_geometry"]}},custom_lens:{description:"Custom projection lens using an explicit projection matrix.",properties:{cs_from_vs:{description:"Projection matrix mapping view-space to clip-space (cs_from_vs).",items:{format:"float",type:"number"},maxItems:16,minItems:16,title:"Cs From Vs",type:"array","x-display-type":"Matrix4"}},title:"Custom Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},cylinder_geometry:{description:"Cylinder geometry.",properties:{axis:{default:1,description:"Alignment axis of the cylinder: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Cylinder is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Cylinder is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Cylinder is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylinder (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the cylinder (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Cylinder Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},debug_name:{description:"Human-readable name of the entity.",properties:{value:{description:"Entity name.",title:"Value",type:"string","x-display-type":"String"}},title:"Name",type:"object","x-category":"core"},decal_projector:{description:"Projects a material onto scene surfaces within the projector's box volume.",properties:{zIndex:{default:0,description:"Z-index ordering for decal rendering; higher values render on top of lower ones.",format:"int32",title:"Z Index",type:"integer","x-display-type":"Integer"}},title:"Decal Projector",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","material_ref","box_geometry"]}},environment:{description:"Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes.",properties:{irradianceUUID:{description:"Diffuse irradiance cubemap used for ambient PBR lighting.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Irradiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},radianceUUID:{description:"Specular radiance cubemap (prefiltered) used for PBR reflections.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Radiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},skyboxUUID:{description:"Skybox cubemap used as the scene background (no lighting effect).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Skybox Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"}},title:"Environment",type:"object","x-category":"lighting"},euid:{description:"Unique identifier for the entity.",properties:{value:{description:"Unique identifier value.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Value",type:"string","x-display-type":"Entity Unique Identifier"}},readOnly:!0,required:["value"],title:"Entity UID",type:"object","x-category":"core"},joint:{description:"Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee.",properties:{breakForce:{default:1e16,description:"Break force threshold (Newtons).",format:"float",title:"Break Force",type:"number","x-display-type":"Float","x-unit":"N"},breakTorque:{default:1e16,description:"Break torque threshold (N\xB7m).",format:"float",title:"Break Torque",type:"number","x-display-type":"Float","x-unit":"N.m"},constrainee:{description:"Entity with a Rigid Body to be constrained.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainee",type:"object","x-display-type":"Entity Reference","x-required-components":["rigid_body"]},constrainer:{description:"Entity acting as constrainer (rigid/static) or null to constrain to world origin.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainer",type:"object","x-display-type":"Entity Reference"},enableCollision:{default:!1,description:"Enable collision between constrainer and constrainee bodies.",title:"Enable Collision",type:"boolean","x-display-type":"Boolean"}},title:"Joint",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},label:{description:"Displays an editor-only label in the 3D view.",properties:{camera:{default:[0,0,0,0,0,0,1],description:"Camera framing parameters for navigating to the label.",items:{format:"float",type:"number","x-display-type":"Float"},title:"Camera",type:"array"},description:{description:"Label description text.",title:"Description",type:"string","x-display-type":"String"},speed:{default:15,description:"Camera travel speed (meters/second).",format:"float",title:"Speed",type:"number","x-display-type":"Float"},title:{description:"Label title text.",title:"Title",type:"string","x-display-type":"String"}},title:"Label",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},lineage:{description:"Records the entity's lineage through linkers and parentage.",properties:{ordinal:{default:0,description:"Ordinal index among siblings (editor-only).",format:"int32",title:"Ordinal",type:"integer","x-display-type":"Integer"},parentUUID:{description:"UUID of this entity's parent (default is root).",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Parent Uuid",type:"string","x-display-type":"Entity Unique Identifier"}},title:"Lineage",type:"object","x-category":"core"},local_aabb:{description:"Local-space axis-aligned bounding box.",properties:{max:{description:"Local AABB maximum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Max",type:"array","x-display-type":"Vector3"},min:{description:"Local AABB minimum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Min",type:"array","x-display-type":"Vector3"}},title:"Local AABB",type:"object","x-category":"core"},local_transform:{description:"Local transform of the entity (position, orientation, scale).",properties:{eulerOrientation:{default:[0,0,0],description:"Local orientation as Euler angles (editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},globalEulerOrientation:{default:[0,0,0],description:"Last global orientation entered by a user as Euler angles (may be invalid; editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Global Euler Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},orientation:{default:[0,0,0,1],description:"Local orientation as a quaternion.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Orientation",type:"array","x-display-type":"Quaternion"},position:{default:[0,0,0],description:"Local position (x, y, z) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Position",type:"array","x-display-type":"Vector3","x-unit":"m"},scale:{default:[1,1,1],description:"Local non-uniform scale (x, y, z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Scale",type:"array","x-display-type":"Vector3"}},title:"Transform",type:"object","x-category":"core"},material:{description:"Assigns a shader to the entity's mesh and provides its input values and specialization constants.",properties:{constantsJSON:{description:"Specialization constants (JSON); schema defined by shaderRef.",title:"Constants Json",type:"object","x-display-type":"JSON"},dataJSON:{description:"Shader input values (JSON); schema defined by shaderRef.",title:"Data Json",type:"object","x-display-type":"JSON"},isDoubleSided:{default:!1,description:"Render both front and back faces (double-sided).",title:"Is Double Sided",type:"boolean","x-display-type":"Boolean"},shaderRef:{description:"Referenced shader (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Shader Ref",type:"string","x-asset-ref":"shader","x-display-type":"UUID"}},title:"Material",type:"object","x-category":"rendering","x-requires":{allOf:["mesh_ref"]}},material_ref:{description:"Reference to a material to use for rendering.",properties:{faceCulling:{default:0,description:"Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided.",format:"int32",oneOf:[{const:0,title:"Inherit from material"},{const:1,title:"Single Sided"},{const:2,title:"Double Sided"}],title:"Face Culling",type:"integer","x-display-type":"Integer"},value:{description:"Referenced material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"material","x-display-type":"UUID"}},title:"Material Reference",type:"object","x-category":"rendering","x-requires":{oneOf:["mesh_ref","decal_projector"]}},measure:{description:"Displays editor-only measurement annotations in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color for the measurement.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},type:{default:0,description:"Measurement type to display.",format:"int32",minimum:0,oneOf:[{const:0,title:"Linear"},{const:1,title:"Angle"},{const:2,title:"Area"},{const:3,title:"Volume"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Measure",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},mesh_ref:{description:"Reference to a mesh to render (with submesh selection).",properties:{shadowCastingMode:{default:1,description:"Shadow casting mode for this mesh.",format:"int8",minimum:0,oneOf:[{const:0,description:"Shadow casting is disabled for this entity.",title:"Off"},{const:1,description:"Shadow casting is enabled for this entity.",title:"On"}],title:"Shadow Casting Mode",type:"integer","x-display-type":"Unsigned Byte"},submeshIndex:{default:0,description:"Index of the submesh within the mesh's submesh array.",format:"int32",title:"Submesh Index",type:"integer","x-display-type":"Integer"},value:{description:"Referenced mesh (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"mesh","x-display-type":"UUID"}},title:"Mesh Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["material","material_ref"]}},morph_targets:{description:"Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref.",properties:{weights:{additionalProperties:{format:"float",type:"number","x-display-type":"Float"},description:"Map from morph target name to weight (commonly 0..1).",title:"Weights",type:"object"}},title:"Morph Targets",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},orthographic_lens:{description:"Orthographic projection lens with configurable zoom and depth range.",properties:{zFar:{default:100,description:"Far clipping plane distance (meters).",format:"float",title:"Z Far",type:"number","x-display-type":"Float","x-unit":"m"},zNear:{default:0,description:"Near clipping plane distance (meters).",format:"float",title:"Z Near",type:"number","x-display-type":"Float","x-unit":"m"},zoomFactor:{default:[1,1],description:"Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Zoom Factor",type:"array","x-display-type":"Vector2"}},title:"Orthographic Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},overrider:{description:"Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components.",properties:{componentsToDetach:{description:"Hashes of components to detach from the overridden entity.",items:{format:"int32",type:"integer","x-display-type":"Integer"},title:"Components to Detach",type:"array"},deleter:{default:!1,description:"Mark the overridden entity as deleted in the composed scene.",title:"Deleter",type:"boolean","x-display-type":"Boolean"},entityRef:{description:"Target entity to override.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Entity Ref",type:"object","x-display-type":"Entity Reference"}},title:"Overrider",type:"object","x-category":"linker"},perspective_lens:{description:"Perspective projection lens with vertical field of view and near/far clipping planes.",properties:{farPlane:{default:0,description:"Far clipping plane distance (meters). Set to 0 for an infinite far plane.",format:"float",title:"Far Plane",type:"number","x-display-type":"Float","x-unit":"m"},fovy:{default:60,description:"Vertical field of view angle in degrees.",format:"float",title:"Vertical Field of View",type:"number","x-display-type":"Float","x-unit":"deg"},nearPlane:{default:.01,description:"Near clipping plane distance (meters).",format:"float",title:"Near Plane",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0],description:"Projection center offset for stereoscopic rendering (meters).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Offset",type:"array","x-display-type":"Vector2","x-unit":"m"}},title:"Perspective Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},physics_material:{description:"Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode.",properties:{contactVelocity:{default:[0,0,0],description:"Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Contact Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},dynamicFriction:{default:.5,description:"Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface.",format:"float",title:"Dynamic Friction",type:"number","x-display-type":"Float"},isTrigger:{default:!1,description:"Treat associated geometry as a trigger (generates events but no physical response).",title:"Is Trigger",type:"boolean","x-display-type":"Boolean"},modifyContact:{default:!1,description:"Enable contact modification (applies contactVelocity on collisions).",title:"Modify Contact",type:"boolean","x-display-type":"Boolean"},restitution:{default:0,description:"Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface.",format:"float",title:"Restitution",type:"number","x-display-type":"Float"},staticFriction:{default:.5,description:"Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface.",format:"float",title:"Static Friction",type:"number","x-display-type":"Float"}},title:"Physics Material",type:"object","x-category":"physics","x-requires":{oneOf:["box_geometry","capsule_geometry","cylinder_geometry","plane_geometry","sphere_geometry","collision_geometry_ref"]}},plane_geometry:{description:"Infinite plane geometry.",properties:{distance:{default:0,description:"Signed distance from the origin along the plane normal (meters).",format:"float",title:"Distance",type:"number","x-display-type":"Float","x-unit":"m"},normal:{default:[0,1,0],description:"Unit normal vector of the plane (in local space).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Normal",type:"array","x-display-type":"Vector3"}},title:"Plane Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},point_cloud_ref:{description:"Reference to a point cloud.",properties:{value:{description:"Referenced point cloud (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"point_cloud","x-display-type":"UUID"}},title:"Point Cloud Reference",type:"object","x-category":"point cloud","x-requires":{allOf:["local_transform"]}},point_light:{description:"Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction.",properties:{color:{default:[1,1,1],description:"RGB light color in linear space [0\u20131]. Multiplies intensity.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},intensity:{default:1,description:"Radiant intensity (W/sr). Controls brightness for physically based shading (inverse-square falloff).",format:"float",title:"Intensity",type:"number","x-display-type":"Float","x-unit":"W/sr"},isDirectional:{default:!1,description:"Treat this as a directional light using the entity's orientation; position is ignored.",title:"Is Directional",type:"boolean","x-display-type":"Boolean"},isSun:{default:!1,description:"Use this light's direction to control the atmosphere sun direction. Only one light should be marked as the sun; multiple are undefined.",title:"Is Sun",type:"boolean","x-display-type":"Boolean"},range:{default:0,description:"Hard cutoff distance for light influence and culling (meters). Set to 0 for no hard cutoff and physically correct inverse-square attenuation.",format:"float",title:"Range",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Light",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform"]}},reflection_probe:{description:"Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL).",properties:{farDist:{default:100,description:"Capture far clip distance (meters).",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Capture near clip distance (meters).",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Offset of the probe capture origin relative to the entity position (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},quality:{default:128,description:"Reflection cubemap resolution (pixels per face). Higher values increase detail and cost.",format:"int32",title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Reflection probe",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform","box_geometry"]}},rigid_body:{description:"Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior).",properties:{angularDamping:{default:.05,description:"Angular damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Angular Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},centerOfMass:{default:[0,0,0],description:"Center of mass relative to the entity's local transform (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Center of Mass",type:"array","x-display-type":"Vector3","x-unit":"m"},collisionDetection:{default:0,description:"Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD.",format:"int8",minimum:0,oneOf:[{const:0,description:"Discrete collision detection.",title:"Discrete"},{const:1,description:"Linear, or sweep-based, CCD. This prevents the affected rigid bodies from going through other physics bodies at high velocities (a problem also known as tunnelling). Not functional with kinematic rigid bodies.",title:"LinearContinuous"},{const:2,description:"Angular, or speculative, CCD is better at catching missed contacts generated by fast angular motions but not as good with fast linear motions. Angular CCD is cheaper but less robust compared to linear CCD.",title:"AngularContinuous"},{const:3,description:"Linear and angular CCD are enabled. This often results in best-of-both-worlds behavior. Not functional with kinematic rigid bodies.",title:"Continuous"}],title:"Collision Detection",type:"integer","x-display-type":"Unsigned Byte"},isKinematic:{default:!1,description:"Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic).",title:"Is Kinematic",type:"boolean","x-display-type":"Boolean"},linearDamping:{default:0,description:"Linear damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Linear Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},lockedAxis:{default:0,description:"Lock motion along/around the specified axes.",format:"int8",minimum:0,title:"Locked Axis",type:"integer","x-bitFlags":[{description:"Locks motion along the X axis.",name:"Linear X",value:1},{description:"Locks motion along the Y axis.",name:"Linear Y",value:2},{description:"Locks motion along the Z axis.",name:"Linear Z",value:4},{description:"Locks motion around the X axis.",name:"Angular X",value:8},{description:"Locks motion around the Y axis.",name:"Angular Y",value:16},{description:"Locks motion around the Z axis.",name:"Angular Z",value:32}],"x-display-type":"Unsigned Byte"},mass:{default:1,description:"Mass (kg). A value of 0 is treated as infinite mass (static).",format:"float",title:"Mass",type:"number","x-display-type":"Float","x-unit":"kg"},maxAngularVelocity:{default:100,description:"Maximum angular velocity (rad/s). Must be non-negative.",format:"float",minimum:0,title:"Max Angular Velocity",type:"number","x-display-type":"Float","x-unit":"rad/s"},maxLinearVelocity:{default:1e16,description:"Maximum linear velocity (m/s). Must be non-negative.",format:"float",minimum:0,title:"Max Linear Velocity",type:"number","x-display-type":"Float","x-unit":"m/s"},useGravity:{default:!0,description:"Whether the rigid body is affected by gravity.",title:"Use Gravity",type:"boolean","x-display-type":"Boolean"}},title:"Rigid Body",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},scene_ref:{description:"Reference to a subscene (linker); used to compose scenes.",properties:{maxRecursionCount:{default:1,description:"Maximum recursion depth when a scene references itself.",format:"int32",minimum:0,title:"Max Recursion Count",type:"integer","x-display-type":"Unsigned Integer"},value:{description:"Referenced scene (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"scene","x-display-type":"UUID"}},title:"Scene Reference",type:"object","x-category":"linker","x-requires":{allOf:["local_transform"]}},script_element:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},script_map:{description:"Holds a set of script elements keyed by UUID.",properties:{elements:{additionalProperties:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},description:"Map of script UUID to script element.",title:"Elements",type:"object"}},title:"Script Map",type:"object","x-category":"scripting"},shadow_caster:{description:"Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades.",properties:{accumulateShadowCascades:{default:!0,description:"Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits.",title:"Accumulate Shadow Cascades",type:"boolean","x-display-type":"Boolean"},bias:{default:.004,description:"Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning.",format:"float",title:"Bias",type:"number","x-display-type":"Float"},cascadeCount:{default:4,description:"Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count.",format:"int8",oneOf:[{const:0,description:"A single, precomputed shadow map that does not depend on the camera's view. Provides consistent shadows across the scene but lacks adaptability for dynamic perspectives or varying levels of detail.",title:"Static Shadow Map"},{const:1,description:"One shadow layer for the entire view. Provides consistent but basic coverage, suitable for simple scenes or performance-critical applications.",title:"Single Cascade"},{const:2,description:"Two layers of shadow refinement enhance detail near the viewer while managing distant shadows more efficiently.",title:"Dual Cascade"},{const:3,description:"Three shadow regions create a balanced depth, offering clarity across close and mid-range distances.",title:"Triple Cascade"},{const:4,description:"Four layers provide precise and adaptive shadow detail, ensuring realistic depth and smooth transitions across a wide range of distances.",title:"Quad Cascade"}],title:"Cascade Count",type:"integer","x-display-type":"Byte"},cascadeSplitLambda:{default:.94,description:"Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two.",format:"float",title:"Cascade Split Lambda",type:"number","x-display-type":"Float"},farDist:{default:100,description:"Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers.",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Shadow camera near clip distance (meters). Tighten to improve depth precision.",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},quality:{default:1024,description:"Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance.",format:"int32",oneOf:[{const:256,description:"Shadows are vague and blocky, providing just enough to indicate their general presence.",title:"Ultra-Low (256x256)"},{const:512,description:"Shadows appear soft and blurry, offering a basic sense of shape with little detail.",title:"Very Low (512x512)"},{const:1024,description:"Shadows are smoother and moderately clear but lack sharpness, giving a gentle impression of depth.",title:"Low (1024x1024)"},{const:2048,description:"Standard quality with adequate clarity for most scenes. Shadows are defined but not overly sharp.",title:"Medium-Low (2048x2048)"},{const:3072,description:"*RECOMMENDED* Shadows have clean edges and are crisp enough to make fine details noticeable in most environments.",title:"Medium (3072x3072)"},{const:4096,description:"High-quality shadows with detailed edges and accurate representation of shape and form.",title:"Medium High (4096x4096)"},{const:6144,description:"Sharp and precise shadows that maintain clarity even for intricate details. Suitable for premium visual fidelity.",title:"High (6144x6144)"},{const:8192,description:"Hyper-realistic shadows with razor-sharp detail and unparalleled depth, delivering cinematic-level quality.",title:"Ultra High (8192x8192)"}],title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Shadow caster",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},skeleton_ref:{description:"Reference to a skeleton asset for skinning and animation.",properties:{value:{description:"Referenced skeleton (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"skeleton","x-display-type":"UUID"}},title:"Skeleton Reference",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"],oneOf:["mesh_ref","bone"]}},sound_ref:{description:"Reference to a sound asset with playback and spatialization controls.",properties:{attenuationModel:{default:0,description:"Distance attenuation model.",format:"int8",minimum:0,oneOf:[{const:0,description:"No attenuation.",title:"No Attenuation"},{const:1,description:"Inverse distance attenuation model.",title:"Inverse Distance"},{const:2,description:"Linear distance attenuation model.",title:"Linear Distance"},{const:3,description:"Exponential distance attenuation model.",title:"Exponential Distance"}],title:"Attenuation Model",type:"integer","x-display-type":"Unsigned Byte"},attenuationRolloffFactor:{default:1,description:"Rolloff factor for distance attenuation.",format:"float",minimum:0,title:"Attenuation Rolloff Factor",type:"number","x-display-type":"Float"},autoPlayOnStart:{default:!1,description:"Autoplay when the simulation starts.",title:"Auto Play on Start",type:"boolean","x-display-type":"Boolean"},dopplerFactor:{default:1,description:"Scale factor for the Doppler effect.",format:"float",minimum:0,title:"Doppler Factor",type:"number","x-display-type":"Float"},inaudibleBehavior:{default:0,description:"Behavior when the sound becomes inaudible.",format:"int8",minimum:0,oneOf:[{const:0,description:"Continue updating while inaudible.",title:"Tick"},{const:1,description:"Suspend updates while inaudible.",title:"Don't Tick"},{const:2,description:"Stop playback and release resources when inaudible.",title:"Kill"}],title:"Inaudible Behavior",type:"integer","x-display-type":"Unsigned Byte"},looping:{default:!1,description:"Whether the sound loops.",title:"Looping",type:"boolean","x-display-type":"Boolean"},maxDistance:{default:50,description:"Distance beyond which the sound is inaudible (meters).",format:"float",minimum:0,title:"Max Distance",type:"number","x-display-type":"Float","x-unit":"m"},minDistance:{default:5,description:"Distance at which the sound stays at max volume (meters).",format:"float",minimum:0,title:"Min Distance",type:"number","x-display-type":"Float","x-unit":"m"},pan:{default:0,description:"Stereo pan. \u22121 = left, 1 = right.",format:"float",maximum:1,minimum:-1,title:"Pan",type:"number","x-display-type":"Float"},playSpeed:{default:1,description:"Playback speed multiplier (1.0 = normal).",format:"float",title:"Play Speed",type:"number","x-display-type":"Float"},value:{description:"Referenced sound (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"sound","x-display-type":"UUID"},volume:{default:1,description:"Playback volume [0..1].",format:"float",maximum:1,minimum:0,title:"Volume",type:"number","x-display-type":"Float"}},title:"Sound Reference",type:"object","x-category":"sound","x-requires":{allOf:["local_transform"]}},sphere_geometry:{description:"Sphere geometry.",properties:{offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the sphere (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Sphere Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},spline:{description:"Displays an editor-only spline in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color of the curve.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},tension:{default:.5,description:"Catmull-Rom tension (only when type is Catmull-Rom).",format:"float",title:"Tension",type:"number","x-display-type":"Float"},type:{default:0,description:"Spline interpolation type.",format:"int32",minimum:0,oneOf:[{const:0,title:"Centripetal"},{const:1,title:"Chordal "},{const:2,title:"Catmullrom"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Spline",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},spot_light:{description:"Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff.",properties:{IESProfile:{description:"Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Ies Profile",type:"string","x-asset-ref":"texture","x-display-type":"UUID"},cutoff:{default:30,description:"Outer cone half-angle in degrees. Light intensity falls to zero outside this angle.",format:"float",title:"Cutoff",type:"number","x-display-type":"Float","x-unit":"deg"}},title:"Spot Light",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},tags:{description:"Free-form tags used to group and filter entities.",properties:{value:{description:"List of tags applied to this entity.",items:{type:"string","x-display-type":"String"},title:"Value",type:"array"}},title:"Tags",type:"object","x-category":"core"},vehicle_controller:{description:"Vehicle Controller parameters.",properties:{chassis:{description:"The chassis.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Chassis",type:"object","x-display-type":"Entity Reference"},frontLeftWheel:{description:"The front left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Left Wheel",type:"object","x-display-type":"Entity Reference"},frontRightWheel:{description:"The front right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Right Wheel",type:"object","x-display-type":"Entity Reference"},rearLeftWheel:{description:"The rear left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Left Wheel",type:"object","x-display-type":"Entity Reference"},rearRightWheel:{description:"The rear right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Right Wheel",type:"object","x-display-type":"Entity Reference"}},title:"Vehicle Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},volume_filter:{description:"View filtering and display controls applied to the referenced volume.",properties:{applyGaussianFiltering:{default:!1,description:"Apply Gaussian smoothing when sampling voxels.",title:"Apply Gaussian Filtering",type:"boolean","x-display-type":"Boolean"},enable3D:{default:!0,description:"Whether this volume is visible in the 3D view.",title:"Enable3 D",type:"boolean","x-display-type":"Boolean"},enableMPR:{default:!0,description:"Whether this volume is visible in the MPR (multi-planar reconstruction) view.",title:"Enable Mpr",type:"boolean","x-display-type":"Boolean"},mprColor:{default:[1,1,1],description:"Tint applied to this volume's MPR/projection output.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Mpr Color",type:"array","x-display-type":"Vector3"},range:{default:[0,1],description:"Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Range",type:"array","x-display-type":"Vector2"},sampleUnfiltered:{default:!1,description:"Sample texels without hardware filtering (nearest).",title:"Sample Unfiltered",type:"boolean","x-display-type":"Boolean"}},title:"Volume Filter",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_material_ref:{description:"Reference to the volume material used for shading and transfer functions.",properties:{value:{description:"Referenced volume material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"volume_material","x-display-type":"UUID"}},title:"Volume Material Reference",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_ref:{description:"Reference to a volumetric dataset stored as a 3D texture (voxels).",properties:{texture3dRef:{description:"Referenced 3D texture (UUID) containing the volume voxels.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Texture3d Ref",type:"string","x-asset-ref":"texture_3d","x-display-type":"UUID"}},title:"Volume Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","volume_material_ref"]}}},required:["euid"],type:"object"};var Z=require("react/jsx-runtime"),me=({name:e,hasLinkToReference:t=!1,className:o})=>{let r=lt.properties[e],a=pt.entityComponents[e],n=e==="*_geometry"?"box_geometry; capsule_geometry; cylinder_geometry; plane_geometry; sphere_geometry":e;if(!r||!a)return(0,Z.jsx)("span",{children:e});let{color:l}=a,d=e==="*_geometry"?"/references/entity-components#box_geometry":`/references/entity-components#${e}`;return(0,Z.jsxs)("span",{className:(0,Be.cn)("no-underline! inline-flex items-baseline gap-2 w-fit my-0 me-1","text-[90%] font-medium tracking-wide rounded-full whitespace-nowrap cursor-default","bg-current/10 border border-transparent has-[.link-to-ref:hover]:border-current/20 transition-colors",!t&&"pr-3",o),style:{color:l},children:[(0,Z.jsx)(_e,{componentId:e,className:"h-5 text-4xs"}),(0,Z.jsx)("span",{className:"text-primary",children:r?.title}),t&&(0,Z.jsx)("a",{href:d,className:"link-to-ref px-1 mr-0.5 h-full text-xs text-current! rounded-full opacity-70 hover:opacity-100 hover:bg-ground/50 transition-all",children:(0,Z.jsx)(Be.Icon,{className:"fal fa-external-link-square text-sm"})})]})};var mt=require("@3dverse/design-tokens");var dt=require("clsx"),ct=require("tailwind-merge");function i(...e){return(0,ct.twMerge)((0,dt.clsx)(e))}var S=require("react/jsx-runtime");function ft({allOf:e,oneOf:t,withAttributes:o,className:r}){return(0,S.jsxs)("article",{className:i("relative w-fit flex flex-col flex-wrap my-4 border border-primary-alpha rounded-[1.5rem]",r),children:[(0,S.jsx)("div",{className:"absolute [writing-mode:vertical-rl] rotate-180 top-1/2 -left-3 -translate-x-1/2 -translate-y-1/2 text-[.6rem] font-medium text-tertiary tracking-wider opacity-60 uppercase",children:"Entity"}),(0,S.jsx)("div",{className:"flex flex-wrap gap-2 p-2",children:e?.map(a=>(0,S.jsx)(gi,{name:a,withAttributes:o},a))}),t&&(0,S.jsxs)("div",{className:"flex gap-3 pl-4 p-2 border-t border-secondary-alpha",children:[(0,S.jsxs)("div",{className:"shrink-0 mt-px text-3xs text-tertiary font-medium",children:[(0,S.jsx)("i",{className:"fal fa-plus mr-1"})," One of"]}),(0,S.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map(a=>(0,S.jsx)(me,{name:a},a))})]})]})}var gi=({name:e,withAttributes:t})=>{if(t&&Object.keys(t).includes(e)){let{color:o}=mt.entityComponents[e];return(0,S.jsxs)("div",{className:"flex flex-col bg-(--entity-component-color)/5 rounded-[14px]",style:{"--entity-component-color":o},children:[(0,S.jsx)(me,{name:e,className:"w-full"}),(0,S.jsx)(xi,{attributes:t[e]})]})}return(0,S.jsx)(me,{name:e})},xi=({attributes:e})=>(0,S.jsx)("div",{className:"flex flex-col flex-wrap gap-1 p-2 pr-4 text-xs text-tertiary",children:Object.entries(e).map(([t,o])=>(0,S.jsxs)("div",{className:"flex gap-1",children:[(0,S.jsxs)("span",{className:"font-mono",children:[t,":"]}),(0,S.jsx)("span",{className:"font-mono",children:JSON.stringify(o)})]},t))});var Ge={glowEffect:"d",glowEffectWide:"l"};var yt=require("react/jsx-runtime"),ut=({children:e,variant:t="default",className:o})=>(0,yt.jsx)("div",{className:i(Ge.glowEffect,t==="wide"&&Ge.glowEffectWide,o),children:e});var s=require("react/jsx-runtime"),gt=({items:e=[],connections:t=[],gridSize:o=40,cellSize:r=70,containerWidth:a=800,containerHeight:n=400,caption:l,animateOnScroll:d=!0,className:b})=>{let N=h=>({animationFillMode:"both",...d?{animationTimeline:"view(block)",animationRange:"entry 25% entry 100%"}:{animationDelay:h}}),u=(h,m)=>{let p=(h-m)*(r/2),x=(h+m)*(r/4);return{x:p,y:x}},y=a/2,g=n/2,c=()=>{let h=[],m=o/2;for(let p=-m;p<=m;p++){let x=u(-m,p),R=u(m,p);h.push((0,s.jsx)("line",{x1:y+x.x,y1:g+x.y,x2:y+R.x,y2:g+R.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`h-${p}`))}for(let p=-m;p<=m;p++){let x=u(p,-m),R=u(p,m);h.push((0,s.jsx)("line",{x1:y+x.x,y1:g+x.y,x2:y+R.x,y2:g+R.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`v-${p}`))}return h},w=(h,m,p)=>{let R=`arrow-${h}-${p}`;return(0,s.jsx)("marker",{id:R,markerWidth:10,markerHeight:10,refX:h==="end"?6:4,refY:10/2,orient:"auto",markerUnits:"userSpaceOnUse",children:(0,s.jsx)("polygon",{points:h==="end"?`0,0 10,${10/2} 0,10`:`10,0 0,${10/2} 10,10`,fill:m})})},v=()=>t.map((h,m)=>{let{from_x:p,from_y:x,to_x:R,to_y:H,via_x:te=p,via_y:oe=x,arrow_start:Ie,arrow_end:xe,color:F="#fbbf24",name:he,showDebug:De,isAnimated:Se=!1,animationDirection:Te="end"}=h,L=[],q=[],D=p,M=x;if(L.push(u(D,M)),D!==te){let f=te;q.push({from:{x:D,y:M},to:{x:f,y:M}}),D=f,L.push(u(D,M))}if(M!==oe){let f=oe;q.push({from:{x:D,y:M},to:{x:D,y:f}}),M=f,L.push(u(D,M))}if(D!==R){let f=R;q.push({from:{x:D,y:M},to:{x:f,y:M}}),D=f,L.push(u(D,M))}if(M!==H){let f=H;q.push({from:{x:D,y:M},to:{x:D,y:f}}),M=f,L.push(u(D,M))}let be=q[0],et=0;q.forEach(f=>{let k=f.to.x-f.from.x,ie=f.to.y-f.from.y,re=Math.hypot(k,ie);re>et&&(et=re,be=f)});let Re=u(be.from.x,be.from.y),ke=u(be.to.x,be.to.y),Yo=y+(Re.x+ke.x)/2,Jo=g+(Re.y+ke.y)/2,Ko=Math.atan2(ke.y-Re.y,ke.x-Re.x)*(180/Math.PI),Qo=(f=>{let k=(f+180)%360-180;return k>90&&(k-=180),k<-90&&(k+=180),k})(Ko),ei=L.map((f,k)=>{let ie=y+f.x,re=g+f.y;return k===0?`M ${ie},${re}`:`L ${ie},${re}`}).join(" "),tt=0;for(let f=1;f<L.length;f++){let k=L[f-1],ie=L[f],re=y+k.x,ai=g+k.y,ni=y+ie.x,si=g+ie.y;tt+=Math.hypot(ni-re,si-ai)}let ot=Math.max(1.2,tt/150),it=`conn-path-${m}`,ti=`arrow-start-${m*2}`,oi=`arrow-end-${m*2+1}`,ii=()=>(0,s.jsxs)("defs",{children:[Ie&&w("start",F,m*2),xe&&w("end",F,m*2+1)]}),Ne=({reverse:f=!1,begin:k="0s"})=>(0,s.jsxs)("g",{filter:"url(#conn-glow)",children:[(0,s.jsx)("ellipse",{cx:"5",cy:"0",rx:"4",ry:"2",fill:F,opacity:"0.8"}),(0,s.jsx)("animateMotion",{dur:`${ot}s`,repeatCount:"indefinite",begin:k,keyPoints:f?"1;0":"0;1",keyTimes:"0;1",calcMode:"linear",rotate:"auto",children:(0,s.jsx)("mpath",{xlinkHref:`#${it}`})})]}),ri=()=>Se?Te==="both"?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ne,{reverse:!1,begin:"0s"}),(0,s.jsx)(Ne,{reverse:!0,begin:`${ot/2}s`})]}):Te==="start"?(0,s.jsx)(Ne,{reverse:!0}):(0,s.jsx)(Ne,{reverse:!1}):null;return(0,s.jsxs)("g",{className:"animate-appear-top cursor-default",style:N(".2s"),children:[(0,s.jsx)(ii,{}),(0,s.jsx)("path",{id:it,d:ei,stroke:F,strokeWidth:"2",strokeLinecap:"round",fill:"none",markerStart:Ie?`url(#${ti})`:void 0,markerEnd:xe?`url(#${oi})`:void 0,style:h.style}),ri(),he&&(0,s.jsx)("g",{transform:`translate(${Yo}, ${Jo}) rotate(${Qo})`,children:(0,s.jsx)("text",{x:"12",y:"12",textAnchor:"middle",dominantBaseline:"middle",className:"text-sm font-bold fill-accent",children:he})}),De&&(0,s.jsx)(s.Fragment,{children:L.map((f,k)=>(0,s.jsx)("circle",{cx:y+f.x,cy:g+f.y,r:"3",fill:k===0?"red":k===L.length-1?"green":"blue"},k))})]},m)}),I=()=>e.map((h,m)=>{let{x:p,y:x,width:R,height:H,color:te="#52548B",name:oe,showDebug:Ie,image:xe}=h,F=u(p,x),he=u(p+R,x),De=u(p+R,x-H),Se=u(p,x-H),Te=[[y+F.x,g+F.y],[y+he.x,g+he.y],[y+De.x,g+De.y],[y+Se.x,g+Se.y]].map(([q,D])=>`${q},${D}`).join(" "),L=u(p+R/2,x-H/2);return(0,s.jsx)("g",{className:"group animate-appear-top cursor-default",style:N(),children:(0,s.jsxs)("g",{className:"drop-shadow-[0_9px_7px_var(--shadow-color)] hover:drop-shadow-[0_12px_10px_var(--shadow-color)] hover:[--translate:-8px] transition-transform duration-300",style:{"--shadow-color":`color-mix(in srgb, ${te} 10%, var(--color-bg-ground))`,translate:"0 var(--translate, -4px)"},children:[(0,s.jsx)("polygon",{points:Te,fill:te,strokeLinejoin:"round",className:"opacity-80 group-hover:opacity-100 transition-opacity duration-all duration-300"}),xe&&(()=>{let q=y+F.x+5,D=g+F.y-80;return(0,s.jsx)("image",{href:xe,x:q,y:D,width:"128px"})})(),oe&&(0,s.jsxs)("g",{transform:`translate(${y+L.x}, ${g+L.y})`,children:[(0,s.jsx)("rect",{x:-(oe.length*4+8),y:-12,width:oe.length*8+16,height:24,fill:"#181a59",fillOpacity:"0.8",rx:"4"}),(0,s.jsx)("text",{x:0,y:0,textAnchor:"middle",dominantBaseline:"middle",className:"text-base",fill:"white",children:oe})]}),Ie&&(0,s.jsxs)("text",{x:y+L.x,y:g+L.y+20,textAnchor:"middle",fill:"white",fontSize:"10",opacity:"0.7",children:["(",p,", ",x,")"]})]})},m)});return(0,s.jsxs)("figure",{className:i("m-0 w-full",b),role:"img","aria-label":l,children:[(0,s.jsxs)("svg",{viewBox:`0 0 ${a} ${n}`,preserveAspectRatio:"xMidYMid meet",className:"w-full",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("filter",{id:"conn-glow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[(0,s.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),(0,s.jsxs)("feMerge",{children:[(0,s.jsx)("feMergeNode",{in:"blur"}),(0,s.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,s.jsxs)("mask",{id:"fadeMask",maskUnits:"objectBoundingBox",children:[(0,s.jsxs)("radialGradient",{id:"fadeGradient",children:[(0,s.jsx)("stop",{offset:"40%",stopColor:"white"}),(0,s.jsx)("stop",{offset:"90%",stopColor:"black"})]}),(0,s.jsx)("rect",{width:"100%",height:"100%",fill:"url(#fadeGradient)"})]}),(0,s.jsxs)("filter",{id:"text-backdrop-blur",x:"-200%",y:"-200%",width:"500%",height:"500%",children:[(0,s.jsx)("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"20",result:"blurredBg"}),(0,s.jsx)("feFlood",{floodColor:"black",floodOpacity:"0.8",result:"bgColor"}),(0,s.jsx)("feComposite",{in:"bgColor",in2:"blurredBg",operator:"in",result:"coloredBlur"}),(0,s.jsx)("feComposite",{in:"coloredBlur",in2:"SourceGraphic",operator:"over",result:"final"})]})]}),(0,s.jsx)("rect",{width:a,height:n,fill:"transparent"}),(0,s.jsx)("g",{mask:"url(#fadeMask)",children:c()}),v(),I()]}),l&&(0,s.jsx)("figcaption",{className:"-translate-y-6 text-center text-sm text-tertiary text-balance",children:l})]})};var A=require("react/jsx-runtime"),xt=({style:e,className:t=""})=>(0,A.jsxs)("svg",{viewBox:"0 0 99 20",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[(0,A.jsx)("path",{fill:"var(--color-wordmark-prefix, var(--color-brand))",d:"M6.059 19.351c-.92733 0-1.79833-.1733-2.613-.52-.81467-.3553-1.521-.858-2.119-1.508-.589333-.65-1.018333-1.417-1.2869999-2.301L2.666 14.294c.25133.806.689 1.4257 1.313 1.859.624.4247 1.31733.6327 2.08.624.68467-.0087 1.287-.169 1.807-.481.52-.312.92733-.7323 1.222-1.261.29467-.5373.442-1.1527.442-1.846 0-1.04-.325-1.898-.975-2.574-.64133-.676-1.482-1.014-2.522-1.014-.29467 0-.598.04333-.91.13-.30333.08667-.58933.19933-.858.338L2.991 7.924l6.604-5.837.286.78h-9.1V.279999h11.258V2.867L6.553 8.145l-.026-.884c1.17867 0 2.20133.26433 3.068.793.8667.52 1.534 1.23067 2.002 2.132.4767.8927.715 1.8937.715 3.003 0 1.196-.2817 2.2577-.845 3.185-.5547.9273-1.3043 1.6553-2.249 2.184-.936.5287-1.989.793-3.159.793Zm15.4769.039c-1.3087 0-2.4397-.325-3.393-.975-.9447-.65-1.677-1.534-2.197-2.652-.5113-1.1267-.767-2.392-.767-3.796 0-1.4127.26-2.67367.78-3.783.52-1.118 1.2567-1.99767 2.21-2.639.962-.65 2.1017-.975 3.419-.975 1.326 0 2.4397.325 3.341.975.91.64133 1.5947 1.521 2.054 2.639.468 1.118.702 2.379.702 3.783s-.234 2.665-.702 3.783c-.468 1.118-1.157 2.0063-2.067 2.665-.91.65-2.0367.975-3.38.975Zm.377-2.457c.8927 0 1.6207-.2123 2.184-.637.5633-.4247.975-1.0097 1.235-1.755.26-.7453.39-1.6033.39-2.574 0-.9707-.1343-1.8287-.403-2.574-.26-.74533-.6673-1.326-1.222-1.742-.546-.416-1.2437-.624-2.093-.624-.9013 0-1.6423.221-2.223.663-.5807.442-1.014 1.03567-1.3 1.781-.2773.7453-.416 1.5773-.416 2.496 0 .9273.1387 1.768.416 2.522.286.7453.7107 1.339 1.274 1.781.572.442 1.2913.663 2.158.663ZM25.7219 19V8.899h-.312V.279999h2.73V19h-2.418Z"}),(0,A.jsx)("path",{fill:"var(--color-wordmark, var(--color-content-secondary))",d:"m35.8333 19-5.096-14.04h2.743l3.731 10.634 3.731-10.634h2.743L38.5893 19h-2.756Zm16.1734.39c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023ZM61.5534 19V4.96h2.418v3.406l-.338-.442c.1733-.45067.3986-.86233.676-1.235.2773-.38133.598-.69333.962-.936.3553-.26.7496-.45933 1.183-.598.442-.14733.8926-.234 1.352-.26.4593-.03467.9013-.013 1.326.065v2.548c-.4594-.12133-.9707-.156-1.534-.104-.5547.052-1.066.22967-1.534.533-.442.286-.793.63267-1.053 1.04-.2514.40733-.4334.86233-.546 1.365-.1127.494-.169 1.0183-.169 1.573V19h-2.743Zm15.1758.377c-1.7073 0-3.0983-.377-4.173-1.131-1.0746-.754-1.7333-1.8157-1.976-3.185l2.782-.429c.1734.728.572 1.3043 1.196 1.729.6327.416 1.417.624 2.353.624.8494 0 1.5124-.1733 1.989-.52.4854-.3467.728-.8233.728-1.43 0-.3553-.0866-.6413-.26-.858-.1646-.2253-.5156-.4377-1.053-.637-.5373-.1993-1.3563-.4463-2.457-.741-1.2046-.312-2.1623-.6457-2.873-1.001-.702-.364-1.2046-.7843-1.508-1.261-.2946-.4853-.442-1.07033-.442-1.755 0-.84933.2254-1.59033.676-2.223.4507-.63267 1.0834-1.12233 1.898-1.469.8234-.34667 1.7854-.52 2.886-.52 1.0747 0 2.0324.169 2.873.507.8407.338 1.521.819 2.041 1.443.52.61533.832 1.339.936 2.171l-2.782.507c-.0953-.676-.4116-1.209-.949-1.599-.5373-.39-1.235-.60233-2.093-.637-.8233-.03467-1.4906.104-2.002.416-.5113.30333-.767.72367-.767 1.261 0 .312.0954.57633.286.793.1994.21667.5807.42467 1.144.624.5634.1993 1.3954.4377 2.496.715 1.1787.3033 2.1147.6413 2.808 1.014.6934.364 1.1874.8017 1.482 1.313.3034.5027.455 1.1137.455 1.833 0 1.3867-.507 2.4743-1.521 3.263-1.0053.7887-2.3963 1.183-4.173 1.183Zm15.0575.013c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023Z"})]}),Ae=({style:e,className:t=""})=>(0,A.jsxs)("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[(0,A.jsx)("path",{d:"M5.28808 19.7527L14.1837 28.4509L14.1837 39.9995L5.28302 31.294L5.28808 19.7527Z",fill:"var(--logo-color, #8d670b)"}),(0,A.jsx)("path",{d:"M33.9949 19.7527L25.0993 28.4509L25.0993 39.9995L34 31.294L33.9949 19.7527Z",fill:"var(--logo-color, #8d670b)"}),(0,A.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.3294 13.2721L34.2049 19.747V31.294L24.9911 19.747V24.8481H24.9904V24.8488L14.4968 24.8488V19.7477H14.4968V19.747L5.28302 31.294L5.28302 19.7527L10.1585 13.28V9.17384C10.1585 3.05795 14.9512 0 19.744 0C22.106 0 24.468 0.742731 26.2563 2.22819C28.0966 3.75685 29.3294 6.07206 29.3294 9.17384L29.3294 13.2721L29.3294 13.2721ZM19.744 5.75545C21.2537 5.75545 22.7634 6.83514 22.7634 8.99452L22.7634 13.2748L16.7245 13.2773V8.99452C16.7245 7.40326 17.5444 6.3983 18.5799 5.97965C18.9496 5.83019 19.3468 5.75545 19.744 5.75545ZM16.7245 13.2773V13.28L22.7634 13.28L16.7245 13.28V13.2773H16.7245ZM19.7439 29.9788L14.4968 24.8488L24.9911 24.8488L19.7439 29.9788Z",fill:"url(#logo-rocket-gradient)"}),(0,A.jsx)("defs",{children:(0,A.jsxs)("linearGradient",{id:"logo-rocket-gradient",x1:"12.0755",y1:"1.88679",x2:"31.3208",y2:"32.4528",gradientUnits:"userSpaceOnUse",children:[(0,A.jsx)("stop",{stopColor:"var(--logo-top-color, #f0c732)"}),(0,A.jsx)("stop",{offset:"1",stopColor:"var(--logo-bottom-color, #ffc800)"})]})})]});var He={spinnerLogo:"s",circle:"e",loaderRotate:"r"};var ve=require("react/jsx-runtime"),ht=()=>(0,ve.jsxs)("div",{className:He.spinnerLogo,children:[(0,ve.jsx)(Ae,{}),(0,ve.jsx)("span",{className:He.circle})]});var bt=require("@3dverse/design-tokens");var W=require("react/jsx-runtime"),vi="relative inline-flex items-center justify-center after:content-[''] after:absolute after:left-1/2 after:top-1/2 after:w-[125%] after:h-0.5 after:rounded-[1px] after:bg-accent after:-translate-x-1/2 after:-translate-y-1/2 after:-rotate-45 after:origin-center after:pointer-events-none";function C({variant:e,crossed:t,className:o,style:r,"data-icon":a}){return e==="shadowCast"?(0,W.jsxs)("div",{role:"img",className:"relative text-tertiary",style:r,"data-icon":a,children:[(0,W.jsx)(C,{className:i("relative z-10",o)}),(0,W.jsx)(C,{className:i("absolute top-0 left-0 translate-x-[40%] translate-y-[15%] scale-94 text-underground/80",o),style:{filter:"drop-shadow(3px 6px 30px color-mix(in oklab, var(--color-content-tertiary) 80%, transparent))"}})]}):t?(0,W.jsx)("span",{className:vi,style:r,"data-icon":a,"aria-hidden":!0,children:(0,W.jsx)("i",{"data-slot":"icon",className:o})}):(0,W.jsx)("i",{"data-slot":"icon","data-icon":a,className:o,style:r,"aria-hidden":!0})}var X=require("react/jsx-runtime"),vt=({assetId:e,variant:t,weight:o="light",className:r=""})=>{let{color:a,fontAwesome:n}=bt.assets[e],l=t==="file"?`
2
2
  fa-fw
3
3
  relative inline-block aspect-[1/1.15] px-[.9em] pt-[.3em] inline-flex justify-center items-center rounded-sm rounded-tr-[20%] [corner-top-right-shape:bevel] overflow-hidden
4
4
  bg-radial-[at_50%_65%] from-(--asset-color)/30 via-(--asset-color)/15 to-(--asset-color)/25 to-90%
5
5
  border border-(--asset-color)/15
6
6
  after:content-[''] after:absolute after:top-0 after:right-0 after:w-[20%] after:h-[20%] after:bg-(--asset-color) after:opacity-50
7
- ${o}
8
- `:o;return s?e==="scene"?(0,W.jsx)(la,{variant:t,className:l,style:{color:r,"--asset-color":r}}):(0,W.jsx)(w,{className:a(s,i==="solid"?"fas":i==="regular"?"far":"fal","text-(--asset-color)",l),style:{"--asset-color":r}}):(0,W.jsx)(W.Fragment,{children:e})},la=({variant:e,className:t="",style:i})=>(0,W.jsx)("svg",{viewBox:"0 0 16 16",className:`inline-block self-center align-middle box-content ${e==="file"?"w-[1em] px-[.4em]! h-[calc(1em*2.1)]":"w-[1em] h-[1em]"} ${t}`,fill:"currentColor",style:i,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:(0,W.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})});var Fe=require("react/jsx-runtime"),mt=({size:e,className:t})=>{let i=e?`fa-${e}`:void 0;return(0,Fe.jsx)("svg",{viewBox:"0 0 16 16",height:"1em",className:`svg-inline--fa ${i??""} ${t??""}`,fill:"currentColor",color:"var(--asset-color-scene)","aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:(0,Fe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})})};var de=require("@base-ui/react/accordion");var ne=require("react/jsx-runtime");function ft({...e}){return(0,ne.jsx)(de.Accordion.Root,{"data-slot":"accordion",...e})}function ut({className:e,...t}){return(0,ne.jsx)(de.Accordion.Item,{"data-slot":"accordion-item",className:a("group/accordion-item",e),...t})}function yt({className:e,children:t,...i}){return(0,ne.jsx)(de.Accordion.Header,{className:"flex",children:(0,ne.jsx)(de.Accordion.Trigger,{"data-slot":"accordion-trigger",className:a("flex flex-1 items-center justify-between gap-3 py-2 text-left text-sm outline-0 transition-colors cursor-pointer","text-secondary hover:text-primary","focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50",e),...i,children:t})})}function gt({className:e,children:t,...i}){return(0,ne.jsx)(de.Accordion.Panel,{"data-slot":"accordion-content",className:a("h-(--accordion-panel-height) overflow-hidden text-sm transition-[height] duration-200 ease-out","data-starting-style:h-0 data-ending-style:h-0"),...i,children:(0,ne.jsx)("div",{className:a("pb-3",e),children:t})})}var E=require("@base-ui/react/drawer");var xt=require("@base-ui/react/button"),bt=require("class-variance-authority");var ht=require("react/jsx-runtime"),pa=(0,bt.cva)(`
7
+ ${r}
8
+ `:r;return n?e==="scene"?(0,X.jsx)(Pi,{variant:t,className:l,style:{color:a,"--asset-color":a}}):(0,X.jsx)(C,{className:i(n,o==="solid"?"fas":o==="regular"?"far":"fal","text-(--asset-color)",l),style:{"--asset-color":a}}):(0,X.jsx)(X.Fragment,{children:e})},Pi=({variant:e,className:t="",style:o})=>(0,X.jsx)("svg",{viewBox:"0 0 16 16",className:`inline-block self-center align-middle box-content ${e==="file"?"w-[1em] px-[.4em]! h-[calc(1em*2.1)]":"w-[1em] h-[1em]"} ${t}`,fill:"currentColor",style:o,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:(0,X.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})});var Ze=require("react/jsx-runtime"),Pt=({size:e,className:t})=>{let o=e?`fa-${e}`:void 0;return(0,Ze.jsx)("svg",{viewBox:"0 0 16 16",height:"1em",className:`svg-inline--fa ${o??""} ${t??""}`,fill:"currentColor",color:"var(--asset-color-scene)","aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:(0,Ze.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})})};var fe=require("@base-ui/react/accordion");var le=require("react/jsx-runtime");function wt({...e}){return(0,le.jsx)(fe.Accordion.Root,{"data-slot":"accordion",...e})}function Ct({className:e,...t}){return(0,le.jsx)(fe.Accordion.Item,{"data-slot":"accordion-item",className:i("group/accordion-item",e),...t})}function It({className:e,children:t,...o}){return(0,le.jsx)(fe.Accordion.Header,{className:"flex",children:(0,le.jsx)(fe.Accordion.Trigger,{"data-slot":"accordion-trigger",className:i("flex flex-1 items-center justify-between gap-3 py-2 text-left text-sm outline-0 transition-colors cursor-pointer","text-secondary hover:text-primary","focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50",e),...o,children:t})})}function Dt({className:e,children:t,...o}){return(0,le.jsx)(fe.Accordion.Panel,{"data-slot":"accordion-content",className:i("h-(--accordion-panel-height) overflow-hidden text-sm transition-[height] duration-200 ease-out","data-starting-style:h-0 data-ending-style:h-0"),...o,children:(0,le.jsx)("div",{className:i("pb-3",e),children:t})})}var O=require("@base-ui/react/drawer");var St=require("@base-ui/react/button"),Tt=require("class-variance-authority");var Rt=require("react/jsx-runtime"),wi=(0,Tt.cva)(`
9
9
  group/button inline-flex shrink-0 items-center justify-center
10
10
  text-sm font-normal whitespace-nowrap select-none
11
11
  bg-clip-padding outline-0 transition-all
@@ -13,5 +13,5 @@
13
13
  aria-invalid:border-negative aria-invalid:ring-3 aria-invalid:ring-negative/20 dark:aria-invalid:border-negative/50 dark:aria-invalid:ring-negative/40
14
14
  [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer
15
15
 
16
- `,{variants:{variant:{default:"bg-primary text-(--color-bg-ground) hover:bg-primary/90",accent:"bg-accent text-black hover:text-black hover:bg-accent-400",outline:"text-primary border border-(--color-content-primary)/50 hover:border-(--color-content-primary)/80","outline-accent":"text-accent border border-accent/50 hover:border-accent/80",secondary:"bg-secondary/10 text-secondary hover:bg-secondary/20",ghost:"text-secondary hover:text-primary active:text-primary","ghost-shadow":a("relative text-neutral-0/80 [text-shadow:0_0_1px_black/40]","before:content-[''] before:absolute before:inset-0 before:scale-150 before:bg-neutral-1000 before:opacity-50 before:rounded-full before:blur-lg before:z-[-1]","data-[active=true]:z-1 data-[active=true]:before:opacity-100"),destructive:a("bg-negative/10 text-negative hover:bg-negative/20","focus-visible:border-negative/40 focus-visible:ring-negative/20 dark:bg-negative/20 dark:hover:bg-negative/30 dark:focus-visible:ring-negative/40"),link:"text-primary underline-offset-4 hover:underline",overlay:a("relative text-neutral-0 hover:text-neutral-0/90","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-full before:z-[-1]","before:bg-neutral-1000/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out","data-[active=true]:z-1 data-[active=true]:before:opacity-100"),"overlay-outline":a("border border-neutral-0/40","relative text-neutral-0 hover:text-neutral-0/90","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-[inherit] before:corner-shape-[inherit] before:z-[-1]","before:bg-neutral-1000/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out","data-[active=true]:z-1 data-[active=true]:before:opacity-100")},size:{"3xs":"min-h-4 gap-1 px-1 text-4xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3","2xs":"min-h-5 gap-1 px-1 text-3xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",xs:"min-h-6 gap-1 px-2 text-2xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"min-h-7 gap-1 px-2.5 text-xs rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",md:"min-h-8 gap-1.5 px-3 text-sm **:data-[slot=icon]:text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",lg:"min-h-9 text-md gap-1.5 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xl:"min-h-12 text-lg gap-1.5 px-2.5 font-medium tracking-wide has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2","icon-xs":"text-3xs size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-md":"text-base size-8","icon-lg":"text-xl size-9","icon-xl":"text-xl size-10"},round:{true:"rounded-full",false:"rounded-xl [corner-shape:squircle]"},active:{true:"",false:""}},defaultVariants:{variant:"default",size:"md"}});function _({as:e,className:t,variant:i="default",size:o="md",round:r=!1,active:s=!1,children:l,...c}){return(0,ht.jsx)(!e||e==="button"?xt.Button:e,{"data-slot":"button",className:a(pa({variant:i,size:o,round:r,active:s}),t),"data-active":s,...c,children:l})}var x=require("react/jsx-runtime");function vt({swipeDirection:e="down",closeOnBlur:t=!0,...i}){return(0,x.jsx)(E.Drawer.Root,{"data-slot":"bottom-sheet",swipeDirection:e,disablePointerDismissal:!t,...i})}function wt({...e}){return(0,x.jsx)(E.Drawer.Trigger,{"data-slot":"bottom-sheet-trigger",...e})}function da({...e}){return(0,x.jsx)(E.Drawer.Portal,{"data-slot":"bottom-sheet-portal",...e})}function Pt({...e}){return(0,x.jsx)(E.Drawer.Close,{"data-slot":"bottom-sheet-close",...e})}function ca({className:e,...t}){return(0,x.jsx)(E.Drawer.Backdrop,{"data-slot":"bottom-sheet-overlay",className:a("fixed inset-0 isolate z-10100 bg-ground/40 backdrop-blur-xs transition-opacity duration-100 ease-out data-swiping:transition-none","data-open:animate-in data-open:fade-in-0 data-open:duration-100","data-closed:not-data-swipe-dismiss:animate-out data-closed:not-data-swipe-dismiss:fade-out-0 data-closed:not-data-swipe-dismiss:duration-100 data-closed:not-data-swipe-dismiss:fill-mode-forwards",e),...t,style:{opacity:"calc(1 - var(--drawer-swipe-progress, 0))"}})}function ma({className:e,...t}){return(0,x.jsx)(E.Drawer.Viewport,{"data-slot":"bottom-sheet-viewport",className:a("fixed inset-x-0 bottom-0 z-10110 flex justify-center outline-0",e),...t})}function It({className:e,children:t,showHandle:i=!0,showCloseButton:o=!1,showOverlay:r=!0,...s}){return(0,x.jsxs)(da,{children:[r&&(0,x.jsx)(ca,{}),(0,x.jsx)(ma,{children:(0,x.jsxs)(E.Drawer.Popup,{"data-slot":"bottom-sheet-content",className:a("relative flex w-full flex-col rounded-t-2xl bg-ground/80 backdrop-blur-lg p-4 pt-2 pb-[calc(1rem+env(safe-area-inset-bottom))] text-sm text-popover-foreground ring-1 ring-foreground/10 outline-0","transform-[translateY(var(--drawer-swipe-movement-y,0px))]","data-open:animate-in data-open:slide-in-from-bottom data-open:duration-200 data-closed:animate-out data-closed:slide-out-to-bottom data-closed:duration-150 data-closed:fill-mode-forwards",e),...s,children:[i&&(0,x.jsx)("div",{"data-slot":"bottom-sheet-handle",className:"self-center h-px w-8 -translate-y-1 rounded-full bg-(--color-content-secondary)/50 touch-none select-none","aria-hidden":!0}),t,o&&(0,x.jsxs)(E.Drawer.Close,{"data-slot":"bottom-sheet-close",render:(0,x.jsx)(_,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,x.jsx)(w,{className:"fas fa-xmark"}),(0,x.jsx)("span",{className:"sr-only",children:"Close"})]}),(0,x.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-full h-[30vh] bg-ground/50 backdrop-blur-lg"})]})})]})}function Ct({className:e,...t}){return(0,x.jsx)("div",{"data-slot":"bottom-sheet-header",className:a("flex flex-col gap-2",e),...t})}function Rt({className:e,showCloseButton:t=!1,children:i,...o}){return(0,x.jsxs)("div",{"data-slot":"bottom-sheet-footer",className:a("-mx-4 -mb-4 flex flex-col-reverse sm:flex-row gap-2 rounded-b-xl border-t border-tertiary bg-muted/50 p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:justify-end",e),...o,children:[i,t&&(0,x.jsx)(E.Drawer.Close,{render:(0,x.jsx)(_,{variant:"outline"}),children:"Close"})]})}function Dt({className:e,...t}){return(0,x.jsx)(E.Drawer.Title,{"data-slot":"bottom-sheet-title",className:a("font-heading uppercase text-4xs leading-none font-medium text-tertiary pl-3 mt-1",e),...t})}function St({className:e,...t}){return(0,x.jsx)(E.Drawer.Description,{"data-slot":"bottom-sheet-description",className:a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}var ge=require("react/jsx-runtime");function kt({as:e,className:t,variant:i="ghost",size:o="md",orientation:r="vertical",round:s=!1,icon:l,rightComponent:c,isEnabled:k=!0,children:U,...g}){return(0,ge.jsxs)(_,{...g,as:e,variant:i,size:o,round:s,className:a(t,k?"":"opacity-75"),children:[(0,ge.jsxs)("div",{className:a("grow flex py-2",r==="inline"?"items-center gap-2":"gap-1.5 flex-col justify-between items-start"),children:[l&&(0,ge.jsx)(w,{className:l,crossed:!k}),U]}),c]})}var X=require("react/jsx-runtime"),Nt=({children:e,size:t="sm",className:i})=>{let o=t==="2xs"?"text-2xs":t==="3xs"?"text-3xs":"text-sm",r=["3xs","2xs"].includes(t)&&"**:data-[slot=data-item-label]:py-1.5";return(0,X.jsx)("fieldset",{className:a("flex gap-2 items-baseline justify-center w-full px-2.5",o,r,i),children:e})},Tt=({children:e,icon:t,className:i})=>(0,X.jsxs)("div",{"data-slot":"data-item-label",className:a("relative grow flex py-2 items-baseline gap-3 text-balance",i),children:[t&&(0,X.jsx)(w,{className:a("text-[88%] text-tertiary -translate-y-px",t)}),e]}),Lt=({children:e,className:t})=>(0,X.jsx)("p",{className:t,children:e}),_t=({children:e,className:t})=>(0,X.jsx)("p",{className:a("my-px text-[88%] leading-tight text-tertiary",t),children:e}),Mt=({children:e,className:t})=>(0,X.jsx)("div",{className:a("text-primary",t),children:e});var O=require("@base-ui/react/dialog");var R=require("react/jsx-runtime");function Et({...e}){return(0,R.jsx)(O.Dialog.Root,{"data-slot":"dialog",...e})}function At({...e}){return(0,R.jsx)(O.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}function fa({...e}){return(0,R.jsx)(O.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function ua({className:e,...t}){return(0,R.jsx)(O.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:a("fixed inset-0 isolate z-10100 bg-ground/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function Bt({className:e,children:t,showCloseButton:i=!1,...o}){return(0,R.jsxs)(fa,{children:[(0,R.jsx)(ua,{}),(0,R.jsxs)(O.Dialog.Popup,{"data-slot":"dialog-content",className:a("fixed top-1/2 left-1/2 z-10110 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-0 sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[t,i&&(0,R.jsxs)(O.Dialog.Close,{"data-slot":"dialog-close",render:(0,R.jsx)(_,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,R.jsx)(w,{className:"fal fa-xmark"}),(0,R.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function Ut({className:e,...t}){return(0,R.jsx)("div",{"data-slot":"dialog-header",className:a("flex flex-col gap-2",e),...t})}function qt({className:e,showCloseButton:t=!1,children:i,...o}){return(0,R.jsxs)("div",{"data-slot":"dialog-footer",className:a("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...o,children:[i,t&&(0,R.jsx)(O.Dialog.Close,{render:(0,R.jsx)(_,{variant:"outline"}),children:"Close"})]})}function Ot({className:e,...t}){return(0,R.jsx)(O.Dialog.Title,{"data-slot":"dialog-title",className:a("font-heading text-base leading-none font-medium",e),...t})}function Ft({className:e,...t}){return(0,R.jsx)(O.Dialog.Description,{"data-slot":"dialog-description",className:a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}var zt=require("react/jsx-runtime"),Vt=({className:e,isActive:t})=>(0,zt.jsx)("span",{className:a("relative block w-2 h-2 rounded-full bg-current z-1 pointer-events-none","before:content-[''] before:block before:w-4 before:h-4 before:absolute before:-inset-1 before:rounded-full before:bg-inherit before:opacity-10",t?"text-positive before:animate-pulse":"text-primary/40 before:animate-none",e)});var Y=require("react/jsx-runtime"),$t=({icon:e,title:t,description:i,variant:o="default",className:r})=>(0,Y.jsxs)("div",{className:a("flex flex-col items-center gap-4 text-center px-3 py-7 text-balance",o==="glow"&&"glow-effect",r),children:[e&&(0,Y.jsx)("div",{className:"flex shrink-0 items-center justify-center",children:(0,Y.jsx)(w,{className:a(e,"text-2xl text-tertiary",o==="glow"&&"drop-shadow-[0_12px_6px_var(--color-bg-underground)]")})}),(0,Y.jsxs)("div",{className:"flex flex-col gap-0.5",children:[t&&(0,Y.jsx)("span",{className:"text-md",children:t}),i&&(0,Y.jsx)("span",{className:"mt-px text-3xs text-tertiary font-normal",children:i})]})]});var Gt=require("react/jsx-runtime"),jt=({children:e,shadow:t="none",className:i,as:o,...r})=>(0,Gt.jsx)(o||"div",{className:a("flex items-center bg-ground/50 backdrop-blur-sm border border-white/20 rounded-full [corner-shape:squircle]","pointer-events-auto",t==="lg"&&"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]",i),...r,children:e});var Zt=require("react/jsx-runtime"),Ht=({children:e,className:t})=>(0,Zt.jsx)("kbd",{className:a("inline-flex items-center justify-center min-w-4 h-4 px-1 rounded border border-current/30 text-[0.65rem] leading-none font-normal uppercase opacity-70",t),children:e});var Xt=require("react/jsx-runtime");function Wt({className:e,...t}){return(0,Xt.jsx)(w,{className:a("fal fa-spinner size-6 animate-spin text-primary",e),...t})}var F=require("@base-ui/react/menu");var A=require("react/jsx-runtime");function Yt({...e}){return(0,A.jsx)(F.Menu.Root,{"data-slot":"menu",...e})}function Jt({...e}){return(0,A.jsx)(F.Menu.Trigger,{"data-slot":"menu-trigger",...e})}function Ve({...e}){return(0,A.jsx)(F.Menu.Portal,{"data-slot":"menu-portal",...e})}function ze({className:e,sideOffset:t=8,align:i="end",...o}){return(0,A.jsx)(F.Menu.Positioner,{"data-slot":"menu-positioner",sideOffset:t,align:i,className:a("z-10110 outline-0",e),...o})}function Kt({className:e,children:t,...i}){return(0,A.jsx)(Ve,{children:(0,A.jsx)(ze,{children:(0,A.jsx)(F.Menu.Popup,{"data-slot":"menu-content",className:a("min-w-40 origin-(--transform-origin) bg-ground/80 backdrop-blur-lg p-1 text-xs outline-0","rounded-xl [corner-shape:squircle]","data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:t})})})}function Qt({className:e,...t}){return(0,A.jsx)(F.Menu.Item,{"data-slot":"menu-item",className:a("flex cursor-pointer items-center gap-3 rounded-sm px-2 py-1 text-sm outline-0 select-none","data-highlighted:bg-primary/10 data-highlighted:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors duration-200 ease-in-out","[&_svg]:pointer-events-none [&_svg]:shrink-0 **:data-[slot=icon]:text-3xs **:data-[slot=icon]:w-3",e),...t})}function ei({className:e,...t}){return(0,A.jsx)(F.Menu.Separator,{"data-slot":"menu-separator",className:a("-mx-1 my-1 h-px bg-foreground/10",e),...t})}function ti({...e}){return(0,A.jsx)(F.Menu.Group,{"data-slot":"menu-group",...e})}function ii({className:e,...t}){return(0,A.jsx)(F.Menu.GroupLabel,{"data-slot":"menu-group-label",className:a("px-2.5 py-1.5 text-xs text-tertiary",e),...t})}var ce=require("@base-ui/react/dialog");var z=require("react/jsx-runtime");function ai({open:e,onClose:t,closeIcon:i,fullScreen:o,disableBackdropClick:r,disableEscapeKeyDown:s,backdropBg:l="var(--color-underground)",className:c,style:k,children:U,...g}){return(0,z.jsx)(ce.Dialog.Root,{open:e,modal:!0,disablePointerDismissal:r,onOpenChange:(v,b)=>{v||s&&b.reason==="escape-key"||t?.()},children:(0,z.jsxs)(ce.Dialog.Portal,{container:document.getElementById("app-container"),children:[(0,z.jsx)(ce.Dialog.Backdrop,{className:"fixed inset-0",style:{background:l,opacity:.9,zIndex:k?.zIndex}}),(0,z.jsxs)(ce.Dialog.Popup,{className:a("fixed inset-0 flex items-center justify-center",!o&&"p-4",c),style:{...k,width:o?"100%":void 0,height:o?"100%":void 0},"aria-labelledby":g["aria-labelledby"],children:[i&&(0,z.jsx)(ce.Dialog.Close,{render:(0,z.jsx)(_,{"aria-label":"Close",variant:"ghost",size:"icon-md",className:"absolute top-4 right-4"}),children:(0,z.jsx)(w,{className:"fal fa-xmark"})}),U]})]})})}var Te=require("react/jsx-runtime"),oi=({startingTransiton:e=!1,children:t,className:i,ref:o,...r})=>(0,Te.jsx)("aside",{ref:o,"data-slot":"panel",className:a("border border-primary/50 bg-ground/80 backdrop-blur-sm shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]","rounded-[1rem] [corner-shape:squircle]",e&&"starting:opacity-0 starting:translate-y-4 starting:scale-95 transition-all duration-350 ease-in-out","pointer-events-auto",i),...r,children:t}),ri=({children:e,className:t,...i})=>(0,Te.jsx)("header",{className:a("flex px-3 py-2",t),...i,children:e}),ni=({children:e,className:t,...i})=>(0,Te.jsx)("h2",{className:a("text-[.7rem] text-secondary font-normal tracking-wider uppercase",t),...i,children:e});var J=require("@base-ui/react/popover");var $=require("react/jsx-runtime");function si({...e}){return(0,$.jsx)(J.Popover.Root,{"data-slot":"popover",...e})}function li({...e}){return(0,$.jsx)(J.Popover.Trigger,{"data-slot":"popover-trigger",...e})}function pi({className:e,align:t="center",alignOffset:i=0,side:o="bottom",sideOffset:r=4,shadow:s,anchor:l,...c}){return(0,$.jsx)(J.Popover.Portal,{children:(0,$.jsx)(J.Popover.Positioner,{align:t,alignOffset:i,side:o,sideOffset:r,anchor:l,className:"z-10110",children:(0,$.jsx)(J.Popover.Popup,{"data-slot":"popover-content",className:a("border border-primary/50 bg-ground/80 backdrop-blur-sm ","rounded-[1rem] [corner-shape:squircle]","flex w-72 origin-(--transform-origin) flex-col gap-2.5 p-2.5 text-sm text-popover-foreground outline-hidden duration-100","data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",s==="lg"?"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]":"shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]",e),...c})})})}function di({className:e,...t}){return(0,$.jsx)("div",{"data-slot":"popover-header",className:a("flex flex-col gap-0.5 text-sm",e),...t})}function ci({className:e,...t}){return(0,$.jsx)(J.Popover.Title,{"data-slot":"popover-title",className:a("font-medium",e),...t})}function mi({className:e,...t}){return(0,$.jsx)(J.Popover.Description,{"data-slot":"popover-description",className:a("text-muted-foreground",e),...t})}var ui=require("react/jsx-runtime"),fi=({direction:e="horizontal",children:t,className:i,ref:o})=>(0,ui.jsx)("div",{ref:o,className:a(e==="horizontal"?"overflow-x-auto":"overflow-y-auto",e==="horizontal"?"[-webkit-mask-image:linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"[-webkit-mask-image:linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",e==="horizontal"?"mask-[linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",i),children:t});var $e=require("@base-ui/react/switch");var je=require("react/jsx-runtime");function yi({className:e,disabled:t,...i}){return(0,je.jsx)($e.Switch.Root,{"data-slot":"switch",className:a("inline-flex h-5 w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-neutral-0/20 p-0.5 transition-colors outline-0","focus-visible:ring-[3px] focus-visible:ring-ring/50","data-disabled:opacity-50 data-disabled:cursor-not-allowed","data-checked:bg-accent",e),"data-disabled":t,...i,children:(0,je.jsx)($e.Switch.Thumb,{"data-slot":"switch-thumb",className:"block size-4 rounded-full bg-neutral-0 opacity-50 data-checked:opacity-100 shadow-sm transition-[translate,opacity] data-checked:translate-x-3"})})}var xi=require("react/jsx-runtime"),gi=({children:e,className:t,as:i})=>(0,xi.jsx)(i||"div",{className:a("flex rounded-full bg-neutral-1000/10 light:bg-neutral-1000/50 backdrop-blur-sm filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.6))]",t),children:e});var bi=require("react");var vi=require("react/jsx-runtime"),hi=(0,bi.forwardRef)(function({fullWidth:t,fullHeight:i,vertical:o,vCenter:r,hCenter:s,opposite:l,gapRight:c,gapBottom:k,className:U,style:g,...v},b){let p=!!o,P=c??k,h=p?s?"center":void 0:r?"center":void 0,N=l?"space-between":p?r?"center":void 0:s?"center":void 0;return(0,vi.jsx)("div",{ref:b,className:a("flex",p?"flex-col":"flex-row",t&&"w-full",i&&"h-full",U),style:{alignItems:h,justifyContent:N,gap:P!==void 0?`${P}rem`:void 0,...g},...v})});var Le=require("react"),se=require("@base-ui/react/tabs"),Ci=require("class-variance-authority");var B=require("react/jsx-runtime");function Ri({className:e,orientation:t="horizontal",...i}){return(0,B.jsx)(se.Tabs.Root,{"data-slot":"tabs","data-orientation":t,className:a("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...i})}var Di=(0,Ci.cva)("group/tabs-list relative inline-flex w-fit items-center justify-center rounded-lg text-secondary group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",segment:"text-white/85 border border-white/40 rounded-full",line:"gap-1 bg-transparent"},size:{"2xs":"p-[2px] text-2xs group-data-[orientation=horizontal]/tabs:h-6",xs:"p-[2px] text-xs group-data-[orientation=horizontal]/tabs:h-6",sm:"p-[2px] text-sm group-data-[orientation=horizontal]/tabs:h-7",md:"p-[2px] text-md group-data-[orientation=horizontal]/tabs:h-8"}},defaultVariants:{variant:"default",size:"md"}}),ya=6;function ga(e){let t=e.getBoundingClientRect();return Array.from(e.querySelectorAll('[data-slot="tabs-trigger"]')).map(i=>{let o=i.getBoundingClientRect();return{el:i,left:o.left-t.left,width:o.width}})}function wi(e,t){let i=t[0],o=t[t.length-1],r=Math.min(Math.max(e,i.left),o.left);for(let s=0;s<t.length-1;s++){let l=t[s],c=t[s+1];if(r>=l.left&&r<=c.left){let k=(r-l.left)/(c.left-l.left||1);return{left:r,width:l.width+k*(c.width-l.width)}}}return{left:r,width:r===i.left?i.width:o.width}}function xa(e,t){return t.reduce((i,o)=>{let r=o.left+o.width/2,s=i.left+i.width/2;return Math.abs(e-r)<Math.abs(e-s)?o:i})}var ba=[255,255,255,.85],ha=[0,0,0,1];function va(e){let t=Math.min(Math.max(e,0),1),[i,o,r,s]=ba.map((l,c)=>l+(ha[c]-l)*t);return`rgba(${i}, ${o}, ${r}, ${s})`}function wa(e,t,i){let o=Math.min(e+t,i.left+i.width)-Math.max(e,i.left);return Math.max(0,o)/i.width}function Pi(e,t,i){for(let o of i)o.el.style.color=va(wa(e,t,o))}function Ii(e){for(let t of e)t.el.style.transition="",t.el.style.color=""}function Si({swipeable:e=!1,variant:t="default",...i}){return e&&t==="segment"?(0,B.jsx)(Ia,{...i}):(0,B.jsx)(Pa,{variant:t,...i})}function Pa({className:e,variant:t="default",size:i="md",children:o,...r}){return(0,B.jsxs)(se.Tabs.List,{"data-slot":"tabs-list","data-variant":t,"data-size":i,className:a(Di({variant:t,size:i}),e),...r,children:[o,t==="segment"&&(0,B.jsx)(_e,{})]})}function Ia({className:e,size:t="md",children:i,...o}){let r=(0,Le.useRef)(null),s=(0,Le.useRef)(null),l=(0,Le.useRef)(null),c=()=>r.current?.querySelector('[data-slot="tabs-indicator"]'),k=()=>{let p=c();p&&(p.style.transition="",p.style.translate="",p.style.width="")},U=()=>{let p=l.current;p&&(p.indicator.removeEventListener("transitionend",p.handler),clearTimeout(p.timeoutId),l.current=null)},g=p=>{if(p.pointerType!=="touch")return;U();let P=r.current,h=P?.querySelector('[data-slot="tabs-trigger"][data-active]');if(!P||!h)return;let N=ga(P),y=N.find(f=>f.el===h);y&&(s.current={pointerId:p.pointerId,startX:p.clientX,isDragging:!1,activeLeft:y.left,activeEl:h,triggers:N})},v=p=>{let P=s.current;if(!P||p.pointerId!==P.pointerId)return;let h=p.clientX-P.startX;if(!P.isDragging){if(Math.abs(h)<ya)return;P.isDragging=!0,r.current?.setPointerCapture(p.pointerId);let m=c();m&&(m.style.transition="none");for(let u of P.triggers)u.el.style.transition="none"}p.preventDefault();let N=c();if(!N)return;let{left:y,width:f}=wi(P.activeLeft+h,P.triggers);N.style.translate=`${y}px`,N.style.width=`${f}px`,Pi(y,f,P.triggers)},b=(p,P)=>{let h=s.current;if(!h||p.pointerId!==h.pointerId||(s.current=null,!h.isDragging))return;r.current?.releasePointerCapture(p.pointerId);let N=c();if(!P||!N){k(),Ii(h.triggers);return}let y=p.clientX-h.startX,{left:f,width:m}=wi(h.activeLeft+y,h.triggers),u=xa(f+m/2,h.triggers);N.style.transition="",N.style.translate=`${u.left}px`,N.style.width=`${u.width}px`;for(let Q of h.triggers)Q.el.style.transition="";Pi(u.left,u.width,h.triggers),u.el!==h.activeEl&&u.el.click();let D=()=>{k(),Ii(h.triggers)};N.addEventListener("transitionend",D,{once:!0});let G=window.setTimeout(()=>{l.current=null,D()},200);l.current={indicator:N,handler:D,timeoutId:G}};return(0,B.jsxs)(se.Tabs.List,{ref:r,"data-slot":"tabs-list","data-variant":"segment","data-size":t,className:a(Di({variant:"segment",size:t}),"touch-pan-y",e),onPointerDown:g,onPointerMove:v,onPointerUp:p=>b(p,!0),onPointerCancel:p=>b(p,!1),...o,children:[i,(0,B.jsx)(_e,{})]})}function _e({className:e,...t}){return(0,B.jsx)(se.Tabs.Indicator,{"data-slot":"tabs-indicator",className:a("absolute z-[-1] h-[calc(100%-4px)]! rounded-full bg-white transition-[translate,width] duration-200 ease-in-out","group-data-[orientation=horizontal]/tabs:top-0.5 group-data-[orientation=horizontal]/tabs:left-0 group-data-[orientation=horizontal]/tabs:h-full group-data-[orientation=horizontal]/tabs:w-(--active-tab-width) group-data-[orientation=horizontal]/tabs:translate-x-(--active-tab-left)","group-data-[orientation=vertical]/tabs:top-0.5 group-data-[orientation=vertical]/tabs:left-0 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:h-(--active-tab-height) group-data-[orientation=vertical]/tabs:translate-y-(--active-tab-top)",e),...t})}function ki({className:e,...t}){return(0,B.jsx)(se.Tabs.Tab,{"data-slot":"tabs-trigger",className:a("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-1.5 py-0.5","text-inherit rounded-md border border-transparent whitespace-nowrap transition-all","group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start","hover:text-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:text-tertiary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","cursor-pointer","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:text-primary","group-data-[variant=default]/tabs-list:data-active:bg-background","group-data-[variant=segment]/tabs-list:data-active:bg-transparent group-data-[variant=segment]/tabs-list:data-active:text-black","group-data-[size=sm]/tabs-list:gap-1 group-data-[size=sm]/tabs-list:px-1.5 group-data-[size=sm]/tabs-list:py-0 group-data-[size=sm]/tabs-list:text-xs","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}function Ni({className:e,...t}){return(0,B.jsx)(se.Tabs.Panel,{"data-slot":"tabs-content",className:a("flex-1 text-sm outline-0",e),...t})}var Li=require("react/jsx-runtime"),Ca={title1:{className:"text-2xl font-semibold",as:"h1"},title2:{className:"text-xl font-semibold",as:"h2"},body1:{className:"text-base",as:"p"},body2:{className:"text-sm",as:"p"},body3:{className:"text-xs",as:"p"}};function Ti({as:e,format:t,color:i,align:o,className:r,...s}){let l=t?Ca[t]:void 0,c=e??l?.as??"p";return(0,Li.jsx)(c,{className:a(l?.className,i==="secondary"&&"text-tertiary",o==="left"&&"text-left",o==="center"&&"text-center",o==="right"&&"text-right",r),...s})}var xe=require("react/jsx-runtime"),_i=({isOn:e,onToggle:t,size:i="sm",disabled:o,className:r})=>(0,xe.jsxs)(_,{variant:"ghost",size:i,onClick:t,disabled:o,"aria-pressed":e,className:r,children:[e&&(0,xe.jsx)(w,{className:"fas fa-check starting:translate-x-4 starting:opacity-0 transition-all duration-150"}),(0,xe.jsx)("span",{className:a(!e&&"text-tertiary"),children:e?"ON":"OFF"})]});var K=require("@base-ui/react/tooltip");var j=require("react/jsx-runtime");function Mi({delay:e=0,...t}){return(0,j.jsx)(K.Tooltip.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function Ei({...e}){return(0,j.jsx)(K.Tooltip.Root,{"data-slot":"tooltip",...e})}function Ai({...e}){return(0,j.jsx)(K.Tooltip.Trigger,{"data-slot":"tooltip-trigger",...e})}function Bi({className:e,side:t="top",sideOffset:i=4,align:o="center",alignOffset:r=0,children:s,...l}){return(0,j.jsx)(K.Tooltip.Portal,{children:(0,j.jsx)(K.Tooltip.Positioner,{align:o,alignOffset:r,side:t,sideOffset:i,className:"isolate z-50",children:(0,j.jsxs)(K.Tooltip.Popup,{"data-slot":"tooltip-content",className:a("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...l,children:[s,(0,j.jsx)(K.Tooltip.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}
16
+ `,{variants:{variant:{default:"bg-primary text-(--color-bg-ground) hover:bg-primary/90",accent:"bg-accent text-black hover:text-black hover:bg-accent-400",outline:"text-primary border border-(--color-content-primary)/50 hover:border-(--color-content-primary)/80","outline-accent":"text-accent border border-accent/50 hover:border-accent/80",secondary:"bg-secondary/10 text-secondary hover:bg-secondary/20",ghost:"text-secondary hover:text-primary focus:text-primary active:text-primary data-[active=true]:text-primary","ghost-shadow":i("relative text-neutral-0/80 [text-shadow:0_0_1px_black/40]","before:content-[''] before:absolute before:inset-0 before:scale-150 before:bg-neutral-1000 before:opacity-50 before:rounded-full before:blur-lg before:z-[-1]","data-[active=true]:text-primary data-[active=true]:z-1 data-[active=true]:before:opacity-100"),destructive:i("bg-negative/10 text-negative hover:bg-negative/20","focus-visible:border-negative/40 focus-visible:ring-negative/20 dark:bg-negative/20 dark:hover:bg-negative/30 dark:focus-visible:ring-negative/40"),link:"text-primary underline-offset-4 hover:underline",overlay:i("relative text-primary hover:text-primary/90 focus:text-primary/90 active:text-primary","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-full before:z-[-1]","before:bg-neutral-1000/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out","data-[active=true]:z-1 data-[active=true]:before:opacity-100"),"overlay-outline":i("border border-primary/40","relative text-primary hover:text-primary/90 focus:text-primary/90 active:text-primary","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-[inherit] before:corner-shape-[inherit] before:z-[-1]","before:bg-neutral-1000/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out","data-[active=true]:z-1 data-[active=true]:before:opacity-100")},size:{"3xs":"min-h-4 gap-1 px-1 text-4xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3","2xs":"min-h-5 gap-1 px-1 text-3xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",xs:"min-h-6 gap-1 px-2 text-2xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"min-h-7 gap-1 px-2.5 text-xs rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",md:"min-h-8 gap-1.5 px-3 text-sm **:data-[slot=icon]:text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",lg:"min-h-9 text-md gap-1.5 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xl:"min-h-12 text-lg gap-1.5 px-2.5 font-medium tracking-wide has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2","icon-xs":"text-3xs size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-md":"text-base size-8","icon-lg":"text-xl size-9","icon-xl":"text-xl size-10"},round:{true:"rounded-full",false:"rounded-xl [corner-shape:squircle]"},active:{true:"",false:""}},defaultVariants:{variant:"default",size:"md"}});function _({as:e,className:t,variant:o="default",size:r="md",round:a=!1,active:n=!1,children:l,...d}){return(0,Rt.jsx)(!e||e==="button"?St.Button:e,{"data-slot":"button",className:i(wi({variant:o,size:r,round:a,active:n}),t),"data-active":n,...d,children:l})}var P=require("react/jsx-runtime");function kt({swipeDirection:e="down",closeOnBlur:t=!0,...o}){return(0,P.jsx)(O.Drawer.Root,{"data-slot":"bottom-sheet",swipeDirection:e,disablePointerDismissal:!t,...o})}function Nt({...e}){return(0,P.jsx)(O.Drawer.Trigger,{"data-slot":"bottom-sheet-trigger",...e})}function Ci({...e}){return(0,P.jsx)(O.Drawer.Portal,{"data-slot":"bottom-sheet-portal",...e})}function Lt({...e}){return(0,P.jsx)(O.Drawer.Close,{"data-slot":"bottom-sheet-close",...e})}function Ii({className:e,...t}){return(0,P.jsx)(O.Drawer.Backdrop,{"data-slot":"bottom-sheet-overlay",className:i("fixed inset-0 isolate z-10100 bg-ground/40 backdrop-blur-xs transition-opacity duration-100 ease-out data-swiping:transition-none","data-open:animate-in data-open:fade-in-0 data-open:duration-100","data-closed:not-data-swipe-dismiss:animate-out data-closed:not-data-swipe-dismiss:fade-out-0 data-closed:not-data-swipe-dismiss:duration-100 data-closed:not-data-swipe-dismiss:fill-mode-forwards",e),...t,style:{opacity:"calc(1 - var(--drawer-swipe-progress, 0))"}})}function Di({className:e,...t}){return(0,P.jsx)(O.Drawer.Viewport,{"data-slot":"bottom-sheet-viewport",className:i("fixed inset-x-0 bottom-0 z-10110 flex justify-center outline-0",e),...t})}function Mt({className:e,children:t,showHandle:o=!0,showCloseButton:r=!1,showOverlay:a=!0,...n}){return(0,P.jsxs)(Ci,{children:[a&&(0,P.jsx)(Ii,{}),(0,P.jsx)(Di,{children:(0,P.jsxs)(O.Drawer.Popup,{"data-slot":"bottom-sheet-content",className:i("relative flex w-full flex-col rounded-t-2xl bg-ground/80 backdrop-blur-lg p-4 pt-2 pb-[calc(1rem+env(safe-area-inset-bottom))] text-sm text-popover-foreground ring-1 ring-foreground/10 outline-0","transform-[translateY(var(--drawer-swipe-movement-y,0px))]","data-open:animate-in data-open:slide-in-from-bottom data-open:duration-200 data-closed:animate-out data-closed:slide-out-to-bottom data-closed:duration-150 data-closed:fill-mode-forwards",e),...n,children:[o&&(0,P.jsx)("div",{"data-slot":"bottom-sheet-handle",className:"self-center h-px w-8 -translate-y-1 rounded-full bg-(--color-content-secondary)/50 touch-none select-none","aria-hidden":!0}),t,r&&(0,P.jsxs)(O.Drawer.Close,{"data-slot":"bottom-sheet-close",render:(0,P.jsx)(_,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,P.jsx)(C,{className:"fas fa-xmark"}),(0,P.jsx)("span",{className:"sr-only",children:"Close"})]}),(0,P.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-full h-[30vh] bg-ground/50 backdrop-blur-lg"})]})})]})}function _t({className:e,...t}){return(0,P.jsx)("div",{"data-slot":"bottom-sheet-header",className:i("flex flex-col gap-2",e),...t})}function Bt({className:e,showCloseButton:t=!1,children:o,...r}){return(0,P.jsxs)("div",{"data-slot":"bottom-sheet-footer",className:i("-mx-4 -mb-4 flex flex-col-reverse sm:flex-row gap-2 rounded-b-xl border-t border-tertiary bg-muted/50 p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:justify-end",e),...r,children:[o,t&&(0,P.jsx)(O.Drawer.Close,{render:(0,P.jsx)(_,{variant:"outline"}),children:"Close"})]})}function At({className:e,...t}){return(0,P.jsx)(O.Drawer.Title,{"data-slot":"bottom-sheet-title",className:i("font-heading uppercase text-4xs leading-none font-medium text-tertiary pl-3 mt-1",e),...t})}function Et({className:e,...t}){return(0,P.jsx)(O.Drawer.Description,{"data-slot":"bottom-sheet-description",className:i("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}var Ut=require("class-variance-authority");var qt=require("react/jsx-runtime"),Si=(0,Ut.cva)(["group/badge inline-flex shrink-0 items-center justify-center w-fit overflow-hidden","font-medium whitespace-nowrap rounded-full border border-transparent outline-0 transition-all","focus-visible:ring-[3px] focus-visible:ring-accent/50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{variant:{default:"bg-primary text-(--color-bg-ground) [a]:hover:bg-primary/90",accent:"bg-accent text-black [a]:hover:bg-accent-400",secondary:"bg-secondary/10 text-secondary [a]:hover:bg-secondary/20",destructive:i("bg-negative/10 text-negative [a]:hover:bg-negative/20","dark:bg-negative/20 dark:[a]:hover:bg-negative/30"),outline:"border-primary text-primary [a]:hover:bg-secondary/10",ghost:"text-secondary [a]:hover:bg-secondary/10 [a]:hover:text-primary",link:"text-primary underline-offset-4 [a]:hover:underline"},size:{"3xs":i("h-4 gap-0.5 px-1.5 text-5xs [&_svg:not([class*='size-'])]:size-2.5","has-data-[icon=inline-start]:pl-1 has-data-[icon=inline-end]:pr-1"),"2xs":i("h-5 gap-1 px-2 text-4xs [&_svg:not([class*='size-'])]:size-3","has-data-[icon=inline-start]:pl-1.5 has-data-[icon=inline-end]:pr-1.5"),xs:i("h-6 gap-1 px-2.5 text-3xs [&_svg:not([class*='size-'])]:size-3","has-data-[icon=inline-start]:pl-2 has-data-[icon=inline-end]:pr-2"),sm:i("h-7 gap-1.5 px-3 text-2xs [&_svg:not([class*='size-'])]:size-3.5","has-data-[icon=inline-start]:pl-2.5 has-data-[icon=inline-end]:pr-2.5"),md:i("h-8 gap-1.5 px-3.5 text-xs [&_svg:not([class*='size-'])]:size-4","has-data-[icon=inline-start]:pl-3 has-data-[icon=inline-end]:pr-3")}},defaultVariants:{variant:"default",size:"2xs"}});function Ot({as:e,className:t,variant:o="default",size:r="2xs",...a}){return(0,qt.jsx)(e??"span",{"data-slot":"badge","data-variant":o,"data-size":r,className:i(Si({variant:o,size:r}),t),...a})}var Pe=require("react/jsx-runtime");function Vt({as:e,className:t,variant:o="ghost",size:r="md",orientation:a="vertical",round:n=!1,icon:l,rightComponent:d,isEnabled:b=!0,children:N,...u}){return(0,Pe.jsxs)(_,{...u,as:e,variant:o,size:r,round:n,className:i(t,b?"":"opacity-75"),children:[(0,Pe.jsxs)("div",{className:i("grow flex py-2",a==="inline"?"items-center gap-2":"gap-1.5 flex-col justify-between items-start"),children:[l&&(0,Pe.jsx)(C,{className:l,crossed:!b}),N]}),d]})}var Y=require("react/jsx-runtime"),zt=({children:e,size:t="sm",className:o})=>{let r=t==="2xs"?"text-2xs":t==="3xs"?"text-3xs":"text-sm",a=["3xs","2xs"].includes(t)&&"**:data-[slot=data-item-label]:py-1.5";return(0,Y.jsx)("fieldset",{className:i("flex gap-2 items-baseline justify-center w-full px-2.5",r,a,o),children:e})},Ft=({children:e,icon:t,className:o})=>(0,Y.jsxs)("div",{"data-slot":"data-item-label",className:i("relative grow flex py-2 items-baseline gap-3 text-balance",o),children:[t&&(0,Y.jsx)(C,{className:i("text-[88%] text-tertiary -translate-y-px",t)}),e]}),$t=({children:e,className:t})=>(0,Y.jsx)("p",{className:t,children:e}),jt=({children:e,className:t})=>(0,Y.jsx)("p",{className:i("my-px text-[88%] leading-tight text-tertiary",t),children:e}),Gt=({children:e,className:t})=>(0,Y.jsx)("div",{className:i("text-primary",t),children:e});var V=require("@base-ui/react/dialog");var T=require("react/jsx-runtime");function Ht({...e}){return(0,T.jsx)(V.Dialog.Root,{"data-slot":"dialog",...e})}function Zt({...e}){return(0,T.jsx)(V.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}function Ti({...e}){return(0,T.jsx)(V.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function Ri({className:e,...t}){return(0,T.jsx)(V.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:i("fixed inset-0 isolate z-10100 bg-ground/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function Wt({className:e,children:t,showCloseButton:o=!1,...r}){return(0,T.jsxs)(Ti,{children:[(0,T.jsx)(Ri,{}),(0,T.jsxs)(V.Dialog.Popup,{"data-slot":"dialog-content",className:i("fixed top-1/2 left-1/2 z-10110 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-0 sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,o&&(0,T.jsxs)(V.Dialog.Close,{"data-slot":"dialog-close",render:(0,T.jsx)(_,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,T.jsx)(C,{className:"fal fa-xmark"}),(0,T.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function Xt({className:e,...t}){return(0,T.jsx)("div",{"data-slot":"dialog-header",className:i("flex flex-col gap-2",e),...t})}function Yt({className:e,showCloseButton:t=!1,children:o,...r}){return(0,T.jsxs)("div",{"data-slot":"dialog-footer",className:i("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...r,children:[o,t&&(0,T.jsx)(V.Dialog.Close,{render:(0,T.jsx)(_,{variant:"outline"}),children:"Close"})]})}function Jt({className:e,...t}){return(0,T.jsx)(V.Dialog.Title,{"data-slot":"dialog-title",className:i("font-heading text-base leading-none font-medium",e),...t})}function Kt({className:e,...t}){return(0,T.jsx)(V.Dialog.Description,{"data-slot":"dialog-description",className:i("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}var eo=require("react/jsx-runtime"),Qt=({className:e,isActive:t})=>(0,eo.jsx)("span",{className:i("relative block w-2 h-2 rounded-full bg-current z-1 pointer-events-none","before:content-[''] before:block before:w-4 before:h-4 before:absolute before:-inset-1 before:rounded-full before:bg-inherit before:opacity-10",t?"text-positive before:animate-pulse":"text-primary/40 before:animate-none",e)});var J=require("react/jsx-runtime"),to=({icon:e,title:t,description:o,variant:r="default",className:a})=>(0,J.jsxs)("div",{className:i("flex flex-col items-center gap-4 text-center px-3 py-7 text-balance",r==="glow"&&"glow-effect",a),children:[e&&(0,J.jsx)("div",{className:"flex shrink-0 items-center justify-center",children:(0,J.jsx)(C,{className:i(e,"text-2xl text-tertiary",r==="glow"&&"drop-shadow-[0_12px_6px_var(--color-bg-underground)]")})}),(0,J.jsxs)("div",{className:"flex flex-col gap-0.5",children:[t&&(0,J.jsx)("span",{className:"text-md",children:t}),o&&(0,J.jsx)("span",{className:"mt-px text-3xs text-tertiary font-normal",children:o})]})]});var io=require("react/jsx-runtime"),oo=({children:e,shadow:t="none",className:o,as:r,...a})=>(0,io.jsx)(r||"div",{className:i("flex items-center bg-ground/50 backdrop-blur-sm border border-white/20 rounded-full [corner-shape:squircle]","pointer-events-auto",t==="lg"&&"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]",o),...a,children:e});var ao=require("react/jsx-runtime"),ro=({children:e,className:t})=>(0,ao.jsx)("kbd",{className:i("inline-flex items-center justify-center min-w-4 h-4 px-1 rounded border border-current/30 text-[0.65rem] leading-none font-normal uppercase opacity-70",t),children:e});var so=require("react/jsx-runtime");function no({className:e,...t}){return(0,so.jsx)(C,{className:i("fal fa-spinner size-6 animate-spin text-primary",e),...t})}var ue=require("react"),z=require("@base-ui/react/menu"),we=require("class-variance-authority");var E=require("react/jsx-runtime"),ki=(0,we.cva)(i("origin-(--transform-origin) bg-ground/80 backdrop-blur-lg outline-0 [corner-shape:squircle]","data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95"),{variants:{size:{"2xs":"min-w-28 p-0.5 text-4xs rounded-lg",xs:"min-w-32 p-1 text-3xs rounded-lg",sm:"min-w-36 p-1 text-2xs rounded-xl",md:"min-w-40 p-1 text-xs rounded-xl"}},defaultVariants:{size:"md"}}),Ni=(0,we.cva)(i("flex cursor-pointer items-center rounded-sm outline-0 select-none","data-highlighted:bg-primary/10 data-highlighted:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors duration-200 ease-in-out","[&_svg]:pointer-events-none [&_svg]:shrink-0 **:data-[slot=icon]:text-[0.85em] **:data-[slot=icon]:w-[1em]"),{variants:{size:{"2xs":"min-h-5 gap-1.5 px-1.5 py-0.5 text-3xs leading-tight",xs:"min-h-6 gap-2 px-2 py-0.5 text-2xs leading-tight",sm:"min-h-7 gap-2.5 px-2 py-1 text-xs leading-tight",md:"min-h-8 gap-3 px-2 py-1 text-sm leading-tight"}},defaultVariants:{size:"md"}}),Li=(0,we.cva)("text-tertiary",{variants:{size:{"2xs":"px-1.5 py-1 text-5xs",xs:"px-2 py-1 text-4xs",sm:"px-2 py-1.5 text-3xs",md:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:"md"}}),Mi=(0,we.cva)("h-px bg-foreground/10",{variants:{size:{"2xs":"-mx-0.5 my-0.5",xs:"-mx-1 my-1",sm:"-mx-1 my-1",md:"-mx-1 my-1"}},defaultVariants:{size:"md"}}),Ee=(0,ue.createContext)("md");function lo({...e}){return(0,E.jsx)(z.Menu.Root,{"data-slot":"menu",...e})}function po({...e}){return(0,E.jsx)(z.Menu.Trigger,{"data-slot":"menu-trigger",...e})}function We({...e}){return(0,E.jsx)(z.Menu.Portal,{"data-slot":"menu-portal",...e})}function Xe({className:e,sideOffset:t=8,align:o="end",...r}){return(0,E.jsx)(z.Menu.Positioner,{"data-slot":"menu-positioner",sideOffset:t,align:o,className:i("z-10110 outline-0",e),...r})}function co({className:e,size:t="md",children:o,...r}){return(0,E.jsx)(We,{children:(0,E.jsx)(Xe,{children:(0,E.jsx)(z.Menu.Popup,{"data-slot":"menu-content","data-size":t,className:i(ki({size:t}),e),...r,children:(0,E.jsx)(Ee.Provider,{value:t,children:o})})})})}function mo({className:e,...t}){let o=(0,ue.useContext)(Ee);return(0,E.jsx)(z.Menu.Item,{"data-slot":"menu-item",className:i(Ni({size:o}),e),...t})}function fo({className:e,...t}){let o=(0,ue.useContext)(Ee);return(0,E.jsx)(z.Menu.Separator,{"data-slot":"menu-separator",className:i(Mi({size:o}),e),...t})}function uo({...e}){return(0,E.jsx)(z.Menu.Group,{"data-slot":"menu-group",...e})}function yo({className:e,...t}){let o=(0,ue.useContext)(Ee);return(0,E.jsx)(z.Menu.GroupLabel,{"data-slot":"menu-group-label",className:i(Li({size:o}),e),...t})}var ye=require("@base-ui/react/dialog");var $=require("react/jsx-runtime");function go({open:e,onClose:t,closeIcon:o,fullScreen:r,disableBackdropClick:a,disableEscapeKeyDown:n,backdropBg:l="var(--color-underground)",className:d,style:b,children:N,...u}){return(0,$.jsx)(ye.Dialog.Root,{open:e,modal:!0,disablePointerDismissal:a,onOpenChange:(y,g)=>{y||n&&g.reason==="escape-key"||t?.()},children:(0,$.jsxs)(ye.Dialog.Portal,{container:document.getElementById("app-container"),children:[(0,$.jsx)(ye.Dialog.Backdrop,{className:"fixed inset-0",style:{background:l,opacity:.9,zIndex:b?.zIndex}}),(0,$.jsxs)(ye.Dialog.Popup,{className:i("fixed inset-0 flex items-center justify-center",!r&&"p-4",d),style:{...b,width:r?"100%":void 0,height:r?"100%":void 0},"aria-labelledby":u["aria-labelledby"],children:[o&&(0,$.jsx)(ye.Dialog.Close,{render:(0,$.jsx)(_,{"aria-label":"Close",variant:"ghost",size:"icon-md",className:"absolute top-4 right-4"}),children:(0,$.jsx)(C,{className:"fal fa-xmark"})}),N]})]})})}var Ue=require("react/jsx-runtime"),xo=({startingTransiton:e=!1,children:t,className:o,ref:r,...a})=>(0,Ue.jsx)("aside",{ref:r,"data-slot":"panel",className:i("border border-primary/50 bg-ground/80 backdrop-blur-sm shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]","rounded-[1rem] [corner-shape:squircle]",e&&"starting:opacity-0 starting:translate-y-4 starting:scale-95 transition-all duration-350 ease-in-out","pointer-events-auto",o),...a,children:t}),ho=({children:e,className:t,...o})=>(0,Ue.jsx)("header",{className:i("flex px-3 py-2",t),...o,children:e}),bo=({children:e,className:t,...o})=>(0,Ue.jsx)("h2",{className:i("text-[.7rem] text-secondary font-normal tracking-wider uppercase",t),...o,children:e});var K=require("@base-ui/react/popover");var j=require("react/jsx-runtime");function vo({...e}){return(0,j.jsx)(K.Popover.Root,{"data-slot":"popover",...e})}function Po({...e}){return(0,j.jsx)(K.Popover.Trigger,{"data-slot":"popover-trigger",...e})}function wo({className:e,align:t="center",alignOffset:o=0,side:r="bottom",sideOffset:a=4,shadow:n,anchor:l,...d}){return(0,j.jsx)(K.Popover.Portal,{children:(0,j.jsx)(K.Popover.Positioner,{align:t,alignOffset:o,side:r,sideOffset:a,anchor:l,className:"z-10110",children:(0,j.jsx)(K.Popover.Popup,{"data-slot":"popover-content",className:i("border border-primary/50 bg-ground/80 backdrop-blur-sm ","rounded-[1rem] [corner-shape:squircle]","flex w-72 origin-(--transform-origin) flex-col gap-2.5 p-2.5 text-sm text-popover-foreground outline-hidden duration-100","data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n==="lg"?"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]":"shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]",e),...d})})})}function Co({className:e,...t}){return(0,j.jsx)("div",{"data-slot":"popover-header",className:i("flex flex-col gap-0.5 text-sm",e),...t})}function Io({className:e,...t}){return(0,j.jsx)(K.Popover.Title,{"data-slot":"popover-title",className:i("font-medium",e),...t})}function Do({className:e,...t}){return(0,j.jsx)(K.Popover.Description,{"data-slot":"popover-description",className:i("text-muted-foreground",e),...t})}var To=require("react/jsx-runtime"),So=({direction:e="horizontal",children:t,className:o,ref:r})=>(0,To.jsx)("div",{ref:r,className:i(e==="horizontal"?"overflow-x-auto":"overflow-y-auto",e==="horizontal"?"[-webkit-mask-image:linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"[-webkit-mask-image:linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",e==="horizontal"?"mask-[linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",o),children:t});var Oe=require("react"),pe=require("@base-ui/react/slider"),ge=require("class-variance-authority");var U=require("react/jsx-runtime"),_i=(0,ge.cva)(["flex [--slider-accent:var(--color-accent)] data-readonly:[--slider-accent:var(--color-tertiary)]","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-col data-[orientation=vertical]:h-full","data-disabled:opacity-50 data-disabled:cursor-not-allowed"],{variants:{size:{"2xs":"text-3xs [--slider-bar:--spacing(5)] [--slider-thumb:--spacing(2.5)]",xs:"text-2xs [--slider-bar:--spacing(6)] [--slider-thumb:--spacing(3)]",sm:"text-xs [--slider-bar:--spacing(7)] [--slider-thumb:--spacing(3.5)]",md:"text-sm [--slider-bar:--spacing(8)] [--slider-thumb:--spacing(4)]"}},defaultVariants:{size:"md"}}),Bi=(0,ge.cva)("relative flex touch-none items-center select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-32 data-[orientation=vertical]:flex-col",{variants:{variant:{default:["data-[orientation=horizontal]:h-(--slider-bar) data-[orientation=vertical]:w-(--slider-bar)","not-data-disabled:cursor-col-resize not-data-disabled:data-[orientation=vertical]:cursor-row-resize"],classic:"data-[orientation=horizontal]:h-(--slider-thumb) data-[orientation=vertical]:w-(--slider-thumb)"}},defaultVariants:{variant:"default"}}),Ai=(0,ge.cva)("relative data-[orientation=horizontal]:w-full data-[orientation=vertical]:grow",{variants:{variant:{default:["overflow-hidden rounded-md bg-neutral-0/10","data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full","has-focus-visible:ring-[3px] has-focus-visible:ring-(--slider-accent)/50"],classic:"rounded-full bg-neutral-0/20 data-[orientation=horizontal]:h-1 data-[orientation=vertical]:w-1"}},defaultVariants:{variant:"default"}}),Ei=(0,ge.cva)("",{variants:{variant:{default:"bg-(--slider-accent)/50",classic:"rounded-full bg-(--slider-accent)"}},defaultVariants:{variant:"default"}}),Ui=(0,ge.cva)("block outline-0",{variants:{variant:{default:"bg-(--slider-accent) data-[orientation=horizontal]:h-full data-[orientation=horizontal]:w-px data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full",classic:["size-(--slider-thumb) cursor-grab rounded-full bg-neutral-0 shadow-sm transition-shadow","data-dragging:cursor-grabbing data-disabled:cursor-not-allowed","has-focus-visible:ring-[3px] has-focus-visible:ring-(--slider-accent)/50"]}},defaultVariants:{variant:"default"}});function Oi({markers:e,min:t,max:o,orientation:r,variant:a,format:n,locale:l}){let d=(0,Oe.useMemo)(()=>new Intl.NumberFormat(l,n),[l,n]),b=r==="vertical",N=a==="classic"?"var(--slider-thumb)":"1px";return(0,U.jsx)("div",{"aria-hidden":!0,"data-slot":"slider-markers","data-orientation":r,className:i("grid text-[0.8em] leading-none text-tertiary tabular-nums select-none *:relative",b?"grid-cols-[auto_auto] grid-rows-1 gap-x-1 pl-1":"grid-rows-[auto_auto] gap-y-0.5 pt-1"),children:e.map(u=>{let y=(u-t)/(o-t)*100,g=`calc(${N} / 2 + ${y/100} * (100% - ${N}))`;return(0,U.jsxs)(Oe.Fragment,{children:[(0,U.jsx)("span",{"data-slot":"slider-marker-tick",className:i("bg-current [grid-area:1/1]",b?"h-px w-1 self-end":"h-1 w-px justify-self-start"),style:b?{bottom:g,translate:"0 50%"}:{left:g,translate:"-50%"}}),(0,U.jsx)("span",{"data-slot":"slider-marker-label",className:b?"[grid-area:1/2] self-end":"[grid-area:2/1] justify-self-start",style:b?{bottom:g,translate:"0 50%"}:{left:g,translate:`-${y}%`},children:d.format(u)})]},u)})})}function Ro({className:e,variant:t="default",size:o="md",value:r,defaultValue:a,min:n=0,max:l=100,orientation:d="horizontal",format:b,locale:N,markers:u,readOnly:y=!1,onValueChange:g,"aria-label":c,getAriaLabel:w,...v}){let I=r??a,h=Array.isArray(I)?I.length:1;return(0,U.jsxs)(pe.Slider.Root,{"data-slot":"slider","data-variant":t,"data-size":o,"data-readonly":y||void 0,value:r,defaultValue:a,min:n,max:l,orientation:d,format:b,locale:N,thumbAlignment:"edge",onValueChange:(m,p)=>{if(y){p.cancel();return}g?.(m,p)},className:i(_i({size:o}),e),...v,children:[(0,U.jsx)(pe.Slider.Control,{"data-slot":"slider-control",className:i(Bi({variant:t}),y&&"pointer-events-none"),children:(0,U.jsxs)(pe.Slider.Track,{"data-slot":"slider-track",className:Ai({variant:t}),children:[(0,U.jsx)(pe.Slider.Indicator,{"data-slot":"slider-indicator",className:Ei({variant:t})}),t==="default"&&(0,U.jsx)(pe.Slider.Value,{"data-slot":"slider-value",className:i("pointer-events-none absolute inset-0 z-10 flex items-center px-2 text-primary tabular-nums","data-[orientation=vertical]:items-end data-[orientation=vertical]:justify-center data-[orientation=vertical]:px-0 data-[orientation=vertical]:pb-1")}),Array.from({length:h},(m,p)=>(0,U.jsx)(pe.Slider.Thumb,{index:p,"aria-label":c,getAriaLabel:w,inputRef:x=>{y?x?.setAttribute("aria-readonly","true"):x?.removeAttribute("aria-readonly")},"data-slot":"slider-thumb",className:Ui({variant:t})},p))]})}),u&&(0,U.jsx)(Oi,{markers:u,min:n,max:l,orientation:d,variant:t,format:b,locale:N})]})}var Ye=require("@base-ui/react/switch");var Je=require("react/jsx-runtime");function ko({className:e,disabled:t,...o}){return(0,Je.jsx)(Ye.Switch.Root,{"data-slot":"switch",className:i("inline-flex h-5 w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-neutral-0/20 p-0.5 transition-colors outline-0","focus-visible:ring-[3px] focus-visible:ring-ring/50","data-disabled:opacity-50 data-disabled:cursor-not-allowed","data-checked:bg-accent",e),"data-disabled":t,...o,children:(0,Je.jsx)(Ye.Switch.Thumb,{"data-slot":"switch-thumb",className:"block size-4 rounded-full bg-neutral-0 opacity-50 data-checked:opacity-100 shadow-sm transition-[translate,opacity] data-checked:translate-x-3"})})}var Lo=require("react/jsx-runtime"),No=({children:e,className:t,as:o})=>(0,Lo.jsx)(o||"div",{className:i("flex rounded-full bg-neutral-1000/10 light:bg-neutral-1000/30 backdrop-blur-sm filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.6))] light:filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.4))]",t),children:e});var Mo=require("react");var Bo=require("react/jsx-runtime"),_o=(0,Mo.forwardRef)(function({fullWidth:t,fullHeight:o,vertical:r,vCenter:a,hCenter:n,opposite:l,gapRight:d,gapBottom:b,className:N,style:u,...y},g){let c=!!r,w=d??b,v=c?n?"center":void 0:a?"center":void 0,I=l?"space-between":c?a?"center":void 0:n?"center":void 0;return(0,Bo.jsx)("div",{ref:g,className:i("flex",c?"flex-col":"flex-row",t&&"w-full",o&&"h-full",N),style:{alignItems:v,justifyContent:I,gap:w!==void 0?`${w}rem`:void 0,...u},...y})});var Q=require("react"),de=require("@base-ui/react/tabs"),Ke=require("class-variance-authority");var B=require("react/jsx-runtime");function Oo({className:e,orientation:t="horizontal",...o}){return(0,B.jsx)(de.Tabs.Root,{"data-slot":"tabs","data-orientation":t,className:i("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...o})}var qo=(0,Ke.cva)("relative inline-flex w-fit items-center justify-center rounded-lg text-secondary group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",segment:"text-white/85 border border-white/40 rounded-full",line:"gap-1 bg-transparent rounded-none"},size:{"2xs":"p-[2px] text-2xs group-data-[orientation=horizontal]/tabs:h-6",xs:"p-[2px] text-xs group-data-[orientation=horizontal]/tabs:h-6",sm:"p-[2px] text-sm group-data-[orientation=horizontal]/tabs:h-7",md:"p-[2px] text-md group-data-[orientation=horizontal]/tabs:h-8"}},defaultVariants:{variant:"default",size:"md"}}),qi=(0,Ke.cva)(i("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-1.5 py-0.5","rounded-md border border-transparent whitespace-nowrap transition-all cursor-pointer","group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start","hover:text-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50","has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"),{variants:{variant:{default:"text-quaternary data-active:text-primary data-active:bg-background",segment:"text-inherit data-active:text-black",line:i("text-inherit data-active:text-primary","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity data-active:after:opacity-100","group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5","group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5")},size:{"2xs":"",xs:"",sm:"gap-1 py-0 text-xs",md:""}},defaultVariants:{variant:"default",size:"md"}}),Qe=(0,Q.createContext)({variant:"default",size:"md"}),Vi=6;function zi(e){let t=e.getBoundingClientRect();return Array.from(e.querySelectorAll('[data-slot="tabs-trigger"]')).map(o=>{let r=o.getBoundingClientRect();return{el:o,left:r.left-t.left,width:r.width}})}function Ao(e,t){let o=t[0],r=t[t.length-1],a=Math.min(Math.max(e,o.left),r.left);for(let n=0;n<t.length-1;n++){let l=t[n],d=t[n+1];if(a>=l.left&&a<=d.left){let b=(a-l.left)/(d.left-l.left||1);return{left:a,width:l.width+b*(d.width-l.width)}}}return{left:a,width:a===o.left?o.width:r.width}}function Fi(e,t){return t.reduce((o,r)=>{let a=r.left+r.width/2,n=o.left+o.width/2;return Math.abs(e-a)<Math.abs(e-n)?r:o})}var $i=[255,255,255,.85],ji=[0,0,0,1];function Gi(e){let t=Math.min(Math.max(e,0),1),[o,r,a,n]=$i.map((l,d)=>l+(ji[d]-l)*t);return`rgba(${o}, ${r}, ${a}, ${n})`}function Hi(e,t,o){let r=Math.min(e+t,o.left+o.width)-Math.max(e,o.left);return Math.max(0,r)/o.width}function Eo(e,t,o){for(let r of o)r.el.style.color=Gi(Hi(e,t,r))}function Uo(e){for(let t of e)t.el.style.transition="",t.el.style.color=""}function Vo({swipeable:e=!1,variant:t="default",...o}){return e&&t==="segment"?(0,B.jsx)(Wi,{...o}):(0,B.jsx)(Zi,{variant:t,...o})}function Zi({className:e,variant:t="default",size:o="md",children:r,...a}){return(0,B.jsxs)(de.Tabs.List,{"data-slot":"tabs-list","data-variant":t,"data-size":o,className:i(qo({variant:t,size:o}),e),...a,children:[(0,B.jsx)(Qe.Provider,{value:{variant:t,size:o},children:r}),t==="segment"&&(0,B.jsx)(qe,{})]})}function Wi({className:e,size:t="md",children:o,...r}){let a=(0,Q.useRef)(null),n=(0,Q.useRef)(null),l=(0,Q.useRef)(null),d=()=>a.current?.querySelector('[data-slot="tabs-indicator"]'),b=()=>{let c=d();c&&(c.style.transition="",c.style.translate="",c.style.width="")},N=()=>{let c=l.current;c&&(c.indicator.removeEventListener("transitionend",c.handler),clearTimeout(c.timeoutId),l.current=null)},u=c=>{if(c.pointerType!=="touch")return;N();let w=a.current,v=w?.querySelector('[data-slot="tabs-trigger"][data-active]');if(!w||!v)return;let I=zi(w),h=I.find(m=>m.el===v);h&&(n.current={pointerId:c.pointerId,startX:c.clientX,isDragging:!1,activeLeft:h.left,activeEl:v,triggers:I})},y=c=>{let w=n.current;if(!w||c.pointerId!==w.pointerId)return;let v=c.clientX-w.startX;if(!w.isDragging){if(Math.abs(v)<Vi)return;w.isDragging=!0,a.current?.setPointerCapture(c.pointerId);let p=d();p&&(p.style.transition="none");for(let x of w.triggers)x.el.style.transition="none"}c.preventDefault();let I=d();if(!I)return;let{left:h,width:m}=Ao(w.activeLeft+v,w.triggers);I.style.translate=`${h}px`,I.style.width=`${m}px`,Eo(h,m,w.triggers)},g=(c,w)=>{let v=n.current;if(!v||c.pointerId!==v.pointerId||(n.current=null,!v.isDragging))return;a.current?.releasePointerCapture(c.pointerId);let I=d();if(!w||!I){b(),Uo(v.triggers);return}let h=c.clientX-v.startX,{left:m,width:p}=Ao(v.activeLeft+h,v.triggers),x=Fi(m+p/2,v.triggers);I.style.transition="",I.style.translate=`${x.left}px`,I.style.width=`${x.width}px`;for(let te of v.triggers)te.el.style.transition="";Eo(x.left,x.width,v.triggers),x.el!==v.activeEl&&x.el.click();let R=()=>{b(),Uo(v.triggers)};I.addEventListener("transitionend",R,{once:!0});let H=window.setTimeout(()=>{l.current=null,R()},200);l.current={indicator:I,handler:R,timeoutId:H}};return(0,B.jsxs)(de.Tabs.List,{ref:a,"data-slot":"tabs-list","data-variant":"segment","data-size":t,className:i(qo({variant:"segment",size:t}),"touch-pan-y",e),onPointerDown:u,onPointerMove:y,onPointerUp:c=>g(c,!0),onPointerCancel:c=>g(c,!1),...r,children:[(0,B.jsx)(Qe.Provider,{value:{variant:"segment",size:t},children:o}),(0,B.jsx)(qe,{})]})}function qe({className:e,...t}){return(0,B.jsx)(de.Tabs.Indicator,{"data-slot":"tabs-indicator",className:i("absolute z-[-1] h-[calc(100%-4px)]! rounded-full bg-white transition-[translate,width] duration-200 ease-in-out","group-data-[orientation=horizontal]/tabs:top-0.5 group-data-[orientation=horizontal]/tabs:left-0 group-data-[orientation=horizontal]/tabs:h-full group-data-[orientation=horizontal]/tabs:w-(--active-tab-width) group-data-[orientation=horizontal]/tabs:translate-x-(--active-tab-left)","group-data-[orientation=vertical]/tabs:top-0.5 group-data-[orientation=vertical]/tabs:left-0 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:h-(--active-tab-height) group-data-[orientation=vertical]/tabs:translate-y-(--active-tab-top)",e),...t})}function zo({className:e,...t}){let{variant:o,size:r}=(0,Q.useContext)(Qe);return(0,B.jsx)(de.Tabs.Tab,{"data-slot":"tabs-trigger",className:i(qi({variant:o,size:r}),e),...t})}function Fo({className:e,...t}){return(0,B.jsx)(de.Tabs.Panel,{"data-slot":"tabs-content",className:i("flex-1 text-sm outline-0",e),...t})}var jo=require("react/jsx-runtime"),Xi={title1:{className:"text-2xl font-semibold",as:"h1"},title2:{className:"text-xl font-semibold",as:"h2"},body1:{className:"text-base",as:"p"},body2:{className:"text-sm",as:"p"},body3:{className:"text-xs",as:"p"}};function $o({as:e,format:t,color:o,align:r,className:a,...n}){let l=t?Xi[t]:void 0,d=e??l?.as??"p";return(0,jo.jsx)(d,{className:i(l?.className,o==="secondary"&&"text-tertiary",r==="left"&&"text-left",r==="center"&&"text-center",r==="right"&&"text-right",a),...n})}var Ce=require("react/jsx-runtime"),Go=({isOn:e,onToggle:t,size:o="sm",disabled:r,className:a})=>(0,Ce.jsxs)(_,{variant:"ghost",size:o,onClick:t,disabled:r,"aria-pressed":e,className:a,children:[e&&(0,Ce.jsx)(C,{className:"fas fa-check starting:translate-x-4 starting:opacity-0 transition-all duration-150"}),(0,Ce.jsx)("span",{className:i(!e&&"text-tertiary"),children:e?"ON":"OFF"})]});var ee=require("@base-ui/react/tooltip");var G=require("react/jsx-runtime");function Ho({delay:e=0,...t}){return(0,G.jsx)(ee.Tooltip.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function Zo({...e}){return(0,G.jsx)(ee.Tooltip.Root,{"data-slot":"tooltip",...e})}function Wo({...e}){return(0,G.jsx)(ee.Tooltip.Trigger,{"data-slot":"tooltip-trigger",...e})}function Xo({className:e,side:t="top",sideOffset:o=4,align:r="center",alignOffset:a=0,children:n,...l}){return(0,G.jsx)(ee.Tooltip.Portal,{children:(0,G.jsx)(ee.Tooltip.Positioner,{align:r,alignOffset:a,side:t,sideOffset:o,className:"isolate z-50",children:(0,G.jsxs)(ee.Tooltip.Popup,{"data-slot":"tooltip-content",className:i("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...l,children:[n,(0,G.jsx)(ee.Tooltip.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}
17
17
  //# sourceMappingURL=index.cjs.map