{"TotalCount":281,"Files":[{"Ident":"xaz.goo","Path":"Animation/SmoothFloat.cs","FileName":"SmoothFloat.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing Sandbox;\n\nnamespace Goo.Animation;\n\npublic record struct SmoothFloat\n{\n    public float Current;\n    public float Target;\n    public float Velocity;\n    public float SmoothTime;\n\n    public SmoothFloat(float initial, float smoothTime)\n    {\n        Current = initial;\n        Target = initial;\n        Velocity = 0f;\n        SmoothTime = smoothTime;\n    }\n\n    public void Update(float dt) =\u003E\n        Current = MathX.SmoothDamp(Current, Target, ref Velocity, SmoothTime, dt);\n\n    public bool IsSettled =\u003E\n        MathF.Abs(Target - Current) \u003C 0.0001f \u0026\u0026 MathF.Abs(Velocity) \u003C 0.0001f;\n\n    /// \u003Csummary\u003EAdvances by dt and returns true while still moving; chain calls with | (not ||) so every damper advances each frame.\u003C/summary\u003E\n    public bool Tick(float dt) { Update(dt); return !IsSettled; }\n}\n"},{"Ident":"xaz.goo","Path":"Animation/SpringColor.cs","FileName":"SpringColor.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing Sandbox;\n\nnamespace Goo.Animation;\n\npublic record struct SpringColor\n{\n    public Color Current;\n    public Color Target;\n    public Color Velocity;\n    public float Frequency;\n    public float Damping;\n\n    public SpringColor(Color initial, float frequency, float damping)\n    {\n        Current = initial;\n        Target = initial;\n        Velocity = default;\n        Frequency = frequency;\n        Damping = damping;\n    }\n\n    public void Update(float dt)\n    {\n        float vr = Velocity.r, vg = Velocity.g, vb = Velocity.b, va = Velocity.a;\n        Current = new Color(\n            MathX.SpringDamp(Current.r, Target.r, ref vr, dt, Frequency, Damping),\n            MathX.SpringDamp(Current.g, Target.g, ref vg, dt, Frequency, Damping),\n            MathX.SpringDamp(Current.b, Target.b, ref vb, dt, Frequency, Damping),\n            MathX.SpringDamp(Current.a, Target.a, ref va, dt, Frequency, Damping));\n        Velocity = new Color(vr, vg, vb, va);\n    }\n\n    public bool IsSettled =\u003E\n        MathF.Abs(Target.r - Current.r) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Target.g - Current.g) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Target.b - Current.b) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Target.a - Current.a) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Velocity.r) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Velocity.g) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Velocity.b) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Velocity.a) \u003C 0.0001f;\n\n    /// \u003Csummary\u003EAdvances by dt and returns true while still moving; chain calls with | (not ||) so every damper advances each frame.\u003C/summary\u003E\n    public bool Tick(float dt) { Update(dt); return !IsSettled; }\n}\n"},{"Ident":"xaz.goo","Path":"Code/Animation/SpringColor.cs","FileName":"SpringColor.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing Sandbox;\n\nnamespace Goo.Animation;\n\npublic record struct SpringColor\n{\n    public Color Current;\n    public Color Target;\n    public Color Velocity;\n    public float Frequency;\n    public float Damping;\n\n    public SpringColor(Color initial, float frequency, float damping)\n    {\n        Current = initial;\n        Target = initial;\n        Velocity = default;\n        Frequency = frequency;\n        Damping = damping;\n    }\n\n    public void Update(float dt)\n    {\n        float vr = Velocity.r, vg = Velocity.g, vb = Velocity.b, va = Velocity.a;\n        Current = new Color(\n            MathX.SpringDamp(Current.r, Target.r, ref vr, dt, Frequency, Damping),\n            MathX.SpringDamp(Current.g, Target.g, ref vg, dt, Frequency, Damping),\n            MathX.SpringDamp(Current.b, Target.b, ref vb, dt, Frequency, Damping),\n            MathX.SpringDamp(Current.a, Target.a, ref va, dt, Frequency, Damping));\n        Velocity = new Color(vr, vg, vb, va);\n    }\n\n    public bool IsSettled =\u003E\n        MathF.Abs(Target.r - Current.r) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Target.g - Current.g) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Target.b - Current.b) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Target.a - Current.a) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Velocity.r) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Velocity.g) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Velocity.b) \u003C 0.0001f \u0026\u0026\n        MathF.Abs(Velocity.a) \u003C 0.0001f;\n\n    /// \u003Csummary\u003EAdvances by dt and returns true while still moving; chain calls with | (not ||) so every damper advances each frame.\u003C/summary\u003E\n    public bool Tick(float dt) { Update(dt); return !IsSettled; }\n}\n"},{"Ident":"xaz.goo","Path":"Code/Animation/TimelineAnimator.cs","FileName":"TimelineAnimator.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"namespace Goo.Animation;\n\npublic record struct TimelineAnimator\n{\n    public Timeline Timeline;\n    public float    Elapsed;\n    public bool     Paused;\n    public float    Speed;\n\n    public TimelineAnimator(Timeline timeline)\n    {\n        Timeline = timeline;\n        Elapsed  = 0f;\n        Paused   = false;\n        Speed    = 1f;\n    }\n\n    public void Update(float dt) { if (!Paused) Elapsed \u002B= dt * Speed; }\n    public void Pause()          { Paused = true; }\n    public void Resume()         { Paused = false; }\n    public void Restart()        { Elapsed = 0f; Paused = false; }\n    public void Seek(float t)    { Elapsed = t; }\n\n    public readonly TimelineSample Sample =\u003E Timeline.Eval(Elapsed);\n\n    public readonly bool IsFinished\n    {\n        get\n        {\n            if (Timeline.Iterations \u003C= 0) return false;\n            if (Timeline.Duration   \u003C= 0f) return true;\n            return Elapsed \u003E= Timeline.Duration * Timeline.Iterations;\n        }\n    }\n}\n"},{"Ident":"xaz.goo","Path":"Code/Authoring/SectorNode.cs","FileName":"SectorNode.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using Goo;\nusing Sandbox;\nusing Sandbox.UI;\n\nnamespace Goo.Authoring;\n\n/// \u003Csummary\u003EA Goo Sector authored in the editor.\u003C/summary\u003E\n[Title( \u0022Goo Sector\u0022 )]\n[Category( \u0022Goo\u0022 )]\n[Icon( \u0022pie_chart\u0022 )]\npublic sealed partial class SectorNode : BlobNode\n{\n\t/// \u003Csummary\u003EAngle where the wedge begins, in degrees.\u003C/summary\u003E\n\t[Property, Group( \u0022Shape\u0022 ), Order( 5 ), Editor( \u0022goo-float\u0022 ), Range( -360f, 360f ), Step( 1f )] public float StartAngle { get; set; }\n\n\t/// \u003Csummary\u003EAngle where the wedge ends, in degrees.\u003C/summary\u003E\n\t[Property, Group( \u0022Shape\u0022 ), Order( 5 ), Editor( \u0022goo-float\u0022 ), Range( -360f, 360f ), Step( 1f )] public float EndAngle { get; set; } = 270f;\n\n\t/// \u003Csummary\u003EInner radius as a fraction from 0 to 1.\u003C/summary\u003E\n\t[Property, Group( \u0022Shape\u0022 ), Order( 5 ), Editor( \u0022goo-float\u0022 ), Range( 0f, 1f ), Step( 0.01f )] public float InnerRadius { get; set; } = 0.6f;\n\n\t/// \u003Csummary\u003EOuter radius as a fraction from 0 to 1.\u003C/summary\u003E\n\t[Property, Group( \u0022Shape\u0022 ), Order( 5 ), Editor( \u0022goo-float\u0022 ), Range( 0f, 1f ), Step( 0.01f )] public float OuterRadius { get; set; } = 1f;\n\n\t/// \u003Csummary\u003ECorner rounding as a fraction from 0 to 1.\u003C/summary\u003E\n\t[Property, Group( \u0022Shape\u0022 ), Order( 5 ), Editor( \u0022goo-float\u0022 ), Range( 0f, 1f ), Step( 0.01f )] public float CornerRadius { get; set; }\n\n\t/// \u003Csummary\u003EWhen true, input hits the full bounding box.\u003C/summary\u003E\n\t[Property, Group( \u0022Shape\u0022 ), Order( 5 )] public bool RectHitTest { get; set; }\n\n\tinternal override void AddTo( Children children ) =\u003E\n\t\tchildren.Add( WithStyles( new Sector\n\t\t{\n\t\t\tKey = BlobKey,\n\t\t\tStartAngle = StartAngle,\n\t\t\tEndAngle = EndAngle,\n\t\t\tInnerRadius = InnerRadius,\n\t\t\tOuterRadius = OuterRadius,\n\t\t\tCornerRadius = CornerRadius,\n\t\t\tRectHitTest = RectHitTest,\n\t\t\tOnClick = BlobOnClick,\n\t\t\tOnRightClick = BlobOnRightClick,\n\t\t\tOnMiddleClick = BlobOnMiddleClick,\n\t\t\tOnMouseEnter = BlobOnMouseEnter,\n\t\t\tOnMouseLeave = BlobOnMouseLeave,\n\t\t\tOnMouseDown = BlobOnMouseDown,\n\t\t\tOnMouseUp = BlobOnMouseUp,\n\t\t\tOnMouseMove = BlobOnMouseMove,\n\t\t} ) );\n}\n"},{"Ident":"xaz.goo","Path":"Code/Core/IBlob.cs","FileName":"IBlob.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"\r\nnamespace Goo;\r\n\r\n/// \u003Csummary\u003ECompile-time constraint for blob struct types. Never use as storage, return, or parameter type (boxes the struct, destroys per-Rebuild allocation profile); only valid in where T : struct, IBlob.\u003C/summary\u003E\r\npublic interface IBlob\r\n{\r\n    static abstract BlobKind Kind { get; }\r\n    string? Key { get; }\r\n    internal void WriteTo(ref Frame frame);\r\n}\r\n\r\n/// \u003Csummary\u003EReturns the single root Blob for a GooView build. A named delegate rather than\r\n/// Func\u0026lt;IBlob\u0026gt; because IBlob has a static-abstract member (Kind) and C# bars such interfaces\r\n/// as generic type arguments (CS8920). Consequence for Razor markup: a bare method group cannot\r\n/// bind (its natural type is the illegal Func\u0026lt;IBlob\u0026gt;), so write\r\n/// \u003Cc\u003EBuild=@(new BlobBuilder(MyBuild))\u003C/c\u003E. See docs/site/docs/gotchas.md.\u003C/summary\u003E\r\npublic delegate IBlob BlobBuilder();\r\n"},{"Ident":"xaz.goo","Path":"Code/Core/Typography.cs","FileName":"Typography.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using Sandbox.UI;\r\n\r\nnamespace Goo;\r\n\r\n/// \u003Csummary\u003ELength helpers for typography properties whose engine unit semantics are non-obvious.\u003C/summary\u003E\r\npublic static class Typography\r\n{\r\n    /// \u003Csummary\u003ECSS-style unitless LineHeight multiplier (e.g. 1.5 = 1.5x of FontSize).\u003C/summary\u003E\r\n    public static Length LineHeightMultiplier(float multiplier)\r\n        =\u003E Length.Percent(multiplier * 100f).Value;\r\n\r\n    /// \u003Csummary\u003ECSS-style em-relative LetterSpacing (e.g. -0.02 for tight headings).\u003C/summary\u003E\r\n    public static Length LetterSpacingEm(float em)\r\n        =\u003E Length.Em(em);\r\n}\r\n"},{"Ident":"xaz.goo","Path":"Code/Input/HandlerTable.cs","FileName":"HandlerTable.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\r\nusing System.Collections.Generic;\r\nusing Sandbox.UI;\r\n\r\nnamespace Goo.Input;\r\n\r\n// Lazily caches one stable Action\u003CMousePanelEvent\u003E per key so successive Builds\r\n// compare equal (Delegate.Equals) and emit no SetEvents op. 0 alloc on cache hit.\r\npublic sealed class HandlerTable\u003CTKey\u003E where TKey : notnull\r\n{\r\n    readonly Action\u003CTKey, MousePanelEvent\u003E _action;\r\n    readonly Dictionary\u003CTKey, Action\u003CMousePanelEvent\u003E\u003E _cache = new();\r\n\r\n    public HandlerTable(Action\u003CTKey\u003E action) : this((k, _) =\u003E action(k)) { }\r\n\r\n    public HandlerTable(Action\u003CTKey, MousePanelEvent\u003E action) =\u003E _action = action;\r\n\r\n    public Action\u003CMousePanelEvent\u003E this[TKey key]\r\n    {\r\n        get\r\n        {\r\n            if (!_cache.TryGetValue(key, out var h))\r\n            {\r\n                var k = key;\r\n                h = e =\u003E _action(k, e);\r\n                _cache[key] = h;\r\n            }\r\n            return h;\r\n        }\r\n    }\r\n}\r\n"},{"Ident":"xaz.goo","Path":"Controls.cs","FileName":"Controls.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\r\nusing Sandbox;\r\nusing Sandbox.UI;\r\n\r\nnamespace Goo;\r\n\r\n// Composed control factories (compose-list widgets). Stateless: each returns a\r\n// Container subtree, following the Shapes/Skins idiom.\r\npublic static partial class Controls\r\n{\r\n    /// \u003Csummary\u003EGoo primitive button: unstyled click target wrapping a text label. Pass a null onClick for a display-only button (no handler is wired). Distinct from Components.Button in the app project, which applies brand tokens and visual chrome. Use this to build custom-styled buttons without inheriting app-level styling. Override any field it sets with a \u003Cc\u003Ewith\u003C/c\u003E expression (last-declared wins).\u003C/summary\u003E\r\n    public static Container Button(\r\n        string  label,\r\n        Action? onClick    = null,\r\n        Color?  hoverColor = null,\r\n        string? key        = null )\r\n    {\r\n        return new Container\r\n        {\r\n            Key                  = key,\r\n            PointerEvents        = PointerEvents.All,\r\n            FlexDirection        = FlexDirection.Row,\r\n            AlignItems           = Align.Center,\r\n            JustifyContent       = Justify.Center,\r\n            HoverBackgroundColor = hoverColor,\r\n            OnClick              = onClick is null ? null : _ =\u003E onClick(),\r\n            Children             = { new Text( label ) },\r\n        };\r\n    }\r\n\r\n\r\n    // Maps a cursor X (in the root\u0027s rendered pixel frame) to a snapped, clamped value.\r\n    // Ratio-based (localX / width) so it is scale-invariant; engine UI scaling changes\r\n    // the absolute pixels but not the ratio (engine-fact-mousepanelevent-rendered-frame).\r\n    internal static float ValueAt(float localX, float width, float min, float max, float step)\r\n    {\r\n        if (width \u003C= 0f || max \u003C= min) return min;\r\n        float norm = Math.Clamp(localX / width, 0f, 1f);\r\n        float v = min \u002B norm * (max - min);\r\n        if (step \u003E 0f) v = MathF.Round(v / step) * step;\r\n        return Math.Clamp(v, min, max);\r\n    }\r\n\r\n    // Dev-diagnostic sink for the degenerate max\u003C=min case (mirrors Skins.OnZeroBorder).\r\n    public static Action\u003Cstring\u003E? OnDegenerateRange;\r\n\r\n    static readonly Color TrackBg = new( 0.28f, 0.28f, 0.34f, 1f );\r\n    static readonly Color FillBg  = new( 0.55f, 0.78f, 0.95f, 1f );\r\n    static readonly Color ThumbBg = new( 0.95f, 0.96f, 1.00f, 1f );\r\n\r\n    // Controlled, stateless horizontal slider: the caller owns value, updates it in onChanged, and re-renders. Press-to-jump \u002B drag within the bar (no engine move-capture; engine-fact-sbox-ui-input-and-drag); key pins reconciler identity so the Active pointer survives per-move re-renders.\r\n    // disabled: when true, sets Disabled on the root container (forces pointer-off and opacity dim); onChanged is not called. Callers that wrap this in their own disabled container must pass disabled=true here and omit Disabled on the wrapper to avoid double-dim (0.45 x 0.45).\r\n    // trackColor/fillColor/thumbColor: optional palette overrides; null keeps the library defaults.\r\n    public static Container Slider(\r\n        float value, float min, float max, float step,\r\n        Action\u003Cfloat\u003E onChanged, string? key = null, bool disabled = false,\r\n        Color? trackColor = null, Color? fillColor = null, Color? thumbColor = null )\r\n    {\r\n        if ( max \u003C= min )\r\n            OnDegenerateRange?.Invoke( $\u0022Goo.Controls.Slider: max ({max}) \u003C= min ({min}); rendering an inert track.\u0022 );\r\n\r\n        float pct = (max \u003E min ? Math.Clamp( (value - min) / (max - min), 0f, 1f ) : 0f) * 100f;\r\n\r\n        void Set( MousePanelEvent e )\r\n            =\u003E onChanged( ValueAt( e.LocalPosition.x, e.Target.Box.Rect.Size.x, min, max, step ) );\r\n\r\n        return new Container\r\n        {\r\n            Key            = key,\r\n            Disabled       = disabled ? (bool?)true : null,\r\n            PointerEvents  = PointerEvents.All,\r\n            Width          = Length.Percent( 100 ),\r\n            Height         = 20f,\r\n            FlexDirection  = FlexDirection.Column,\r\n            JustifyContent = Justify.Center,\r\n            OnMouseDown    = Set,                                   // press jumps to position\r\n            OnMouseMove    = e =\u003E { if ( e.Target.HasActive ) Set( e ); }, // drag while pressed\r\n            Children =\r\n            {\r\n                // track/fill/thumb are inert: handler-less, variant-less panels resolve to\r\n                // PointerEvents.None, so the slider parent stays e.Target for press/drag.\r\n                new Container\r\n                {\r\n                    Key             = \u0022track\u0022,\r\n                    Position        = PositionMode.Relative,        // positioned ancestor for fill/thumb\r\n                    Width           = Length.Percent( 100 ),\r\n                    Height          = 7f,\r\n                    BorderRadius    = 4f,\r\n                    BackgroundColor = trackColor ?? TrackBg,\r\n                    Children =\r\n                    {\r\n                        new Container\r\n                        {\r\n                            Key             = \u0022fill\u0022,\r\n                            Position        = PositionMode.Absolute,\r\n                            Left            = 0f,\r\n                            Height          = Length.Percent( 100 ),\r\n                            Width           = Length.Percent( pct ),\r\n                            BorderRadius    = 4f,\r\n                            BackgroundColor = fillColor ?? FillBg,\r\n                        },\r\n                        new Container\r\n                        {\r\n                            Key             = \u0022thumb\u0022,\r\n                            Position        = PositionMode.Absolute,\r\n                            Left            = Length.Percent( pct ),\r\n                            Top             = Length.Percent( 50 ),\r\n                            Width           = 16f,\r\n                            Height          = 16f,\r\n                            BorderRadius    = Length.Percent( 50 ),\r\n                            BackgroundColor = thumbColor ?? ThumbBg,\r\n                            // Center the thumb on the (x = value, y = track-mid) point.\r\n                            // Length.Percent returns Length?, never null here; ?? default unwraps\r\n                            // it the same way Px.Of does (the codebase\u0027s nullable-Length idiom).\r\n                            Transform       = PanelTransform.Translate( Length.Percent( -50 ) ?? default, Length.Percent( -50 ) ?? default ),\r\n                        },\r\n                    },\r\n                },\r\n            },\r\n        };\r\n    }\r\n}\r\n"},{"Ident":"xaz.goo","Path":"Core/Fiber.cs","FileName":"Fiber.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\r\nusing System.Collections.Generic;\r\nusing System.Collections.Immutable;\r\nusing Sandbox;\r\n\r\nnamespace Goo;\r\n\r\ninternal sealed class Fiber\r\n{\r\n    public BlobKind Kind;\r\n    public string? Key;\n    public string Content = \u0022\u0022;\n    public bool IsRich;\n    public StyleList Style = StyleList.Empty;\n    public List\u003CFiber\u003E? Children;\r\n    public Texture? Texture;\r\n    public string? Path;          // Image (texture path), ScenePanel (.scene path), SvgPanel (svg path), or WebPanel (URL)\r\n    public Scene? Scene;\r\n    public bool RenderOnce;\r\n    public bool Paused;             // WebPanel only\r\n    public string? Color;\r\n    // TextEntry-only carry-fields. Path slot is reused for the text value.\r\n    public string? Placeholder;\r\n    public int?    MaxLength;\r\n    public bool    Disabled;\r\n    public bool    Numeric;\r\n    public float?  MinValue;\r\n    public float?  MaxValue;\r\n    public string? NumberFormat;\r\n    public bool    Multiline;\r\n    public int?    MinLength;\r\n    public string? CharacterRegex;\r\n    public string? StringRegex;\r\n    public Func\u003Cchar, bool\u003E?   CanEnterChar;\r\n    public Func\u003Cstring, bool\u003E? Validate;\r\n    public Action\u003Cbool\u003E?       OnValidationChanged;\r\n    public Action\u003Cstring\u003E? OnChange;\r\n    public Action\u003Cstring\u003E? OnSubmit;\r\n    public Action?         OnFocus;\r\n    public Action\u003Cstring\u003E? OnBlur;\r\n    public Action?         OnCancel;\r\n    public bool    IsControlled;\r\n    public BlobEvents PrevEvents;\r\n    public ShapeParams Shape;       // Sector / Arc geometry; Polygon uses only the F (RectHitTest) flag\r\n    public Vector2[]? Points;       // Polygon only\r\n    // Custom-shader channel (Container only). Previous-render snapshot for delta comparison.\r\n    public ShaderEffect? Effect;\r\n    // Custom-draw callback (Container only). Previous-render snapshot for delta comparison.\r\n    public DrawCallback? Draw;\r\n    // Declared layout-move transition (Container only). Previous-render snapshot for delta comparison.\r\n    public LayoutTransition? LayoutTransition;\r\n    public VirtualConfig? Virtual;  // Virtual only: last-applied items/row config\r\n    public object? Instance;        // Cell only: the persistent self-owning state instance\r\n}\r\n"},{"Ident":"xaz.goo","Path":"Core/Tokens.cs","FileName":"Tokens.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing System.Collections.Generic;\n\nnamespace Goo;\n\n// Lexically-scoped dynamic token lookup. Push a dict via Scope, read via Get inside the body.\npublic static class Tokens\n{\n    [ThreadStatic] private static Stack\u003CIReadOnlyDictionary\u003Cstring, object\u003E\u003E? _stack;\n\n    public static T Scope\u003CT\u003E(IReadOnlyDictionary\u003Cstring, object\u003E tokens, Func\u003CT\u003E body)\n    {\n        var stack = _stack ??= new Stack\u003CIReadOnlyDictionary\u003Cstring, object\u003E\u003E();\n        stack.Push(tokens);\n        try { return body(); }\n        finally { stack.Pop(); }\n    }\n\n    public static T Get\u003CT\u003E(string key)\n    {\n        if (_stack != null)\n        {\n            foreach (var dict in _stack)\n            {\n                if (dict.TryGetValue(key, out var value))\n                    return (T)value;\n            }\n        }\n        throw new KeyNotFoundException($\u0022Token \u0027{key}\u0027 not found in any active Scope.\u0022);\n    }\n\n    public static bool TryGet\u003CT\u003E(string key, out T value)\n    {\n        if (_stack != null)\n        {\n            foreach (var dict in _stack)\n            {\n                if (dict.TryGetValue(key, out var obj) \u0026\u0026 obj is T typed)\n                {\n                    value = typed;\n                    return true;\n                }\n            }\n        }\n        value = default!;\n        return false;\n    }\n}\n"},{"Ident":"xaz.goo","Path":"Internal/ShapeEffect.cs","FileName":"ShapeEffect.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing Sandbox;\nusing Sandbox.Rendering;\n\nnamespace Goo.Internal;\n\n// ui_shape.shader effect that recolors its fill on hover and lerps ShapeColor via FadeStep.\ninternal sealed record ShapeEffect : ShaderEffect\n{\n    readonly float _kind, _inner, _outer, _start, _end;\n    readonly Vector2[]? _points;\n    readonly Color _baseColor, _hoverColor;\n    readonly float _transitionMs;\n    float _hover; // 0..1 animated fade, mutated in Apply only\n\n    public ShapeEffect(float kind, float inner, float outer, float start, float end, float corner,\n        Color baseColor, Color hoverColor, float transitionMs)\n        : base(\u0022shaders/ui_shape.shader\u0022)\n    {\n        _kind = kind; _inner = inner; _outer = outer; _start = start; _end = end;\n        _baseColor = baseColor; _hoverColor = hoverColor; _transitionMs = transitionMs;\n\n        this[\u0022ShapeKind\u0022]   = kind;\n        this[\u0022ShapeInner\u0022]  = inner;\n        this[\u0022ShapeOuter\u0022]  = outer;\n        this[\u0022ShapeStart\u0022]  = start;\n        this[\u0022ShapeEnd\u0022]    = end;\n        this[\u0022ShapeCorner\u0022] = corner;\n        this[\u0022ShapeColor\u0022]  = baseColor;\n    }\n\n    // Polygon mode: geometry rides a points-texture uniform; Contains uses ShapeMath.Polygon.\n    public ShapeEffect(Vector2[] points, Texture pointsTex, Color baseColor, Color hoverColor, float transitionMs)\n        : base(\u0022shaders/ui_shape.shader\u0022)\n    {\n        _kind = 4f; _points = points;\n        _baseColor = baseColor; _hoverColor = hoverColor; _transitionMs = transitionMs;\n\n        this[\u0022ShapeKind\u0022]  = 4f;\n        this[\u0022PointsTex\u0022]  = pointsTex;\n        this[\u0022PointCount\u0022] = (float)(points?.Length ?? 0);\n        this[\u0022ShapeColor\u0022] = baseColor;\n    }\n\n    // Inside the drawn outline. Only Sector (kind 0) and Polygon (kind 4) effects are ever built.\n    public bool Contains(Vector2 uv, float margin) =\u003E\n        _kind \u003E 3.5f ? (_points is null || ShapeMath.Polygon(_points, uv))\n                     : ShapeMath.Sector(_start, _end, _inner, _outer, uv, margin);\n\n    // Advance current toward target by dt over durationMs. 0 duration snaps (CSS default). Pure.\n    public static float FadeStep(float current, float target, float dt, float durationMs)\n    {\n        if (durationMs \u003C= 0f) return target;\n        float delta = dt * 1000f / durationMs;\n        if (current \u003C target) return MathF.Min(target, current \u002B delta);\n        if (current \u003E target) return MathF.Max(target, current - delta);\n        return current;\n    }\n\n    protected internal override void Apply(CommandList cl, Rect rect)\n    {\n        var size = rect.Size;\n        bool inside = size.x \u003E 0f \u0026\u0026 size.y \u003E 0f\n            \u0026\u0026 Contains(new Vector2((Mouse.Position.x - rect.Left) / size.x,\n                                    (Mouse.Position.y - rect.Top) / size.y), 0f);\n        _hover = FadeStep(_hover, inside ? 1f : 0f, Time.Delta, _transitionMs);\n\n        // base.Apply pushes the bag then override ShapeColor with the lerped value\n        base.Apply(cl, rect);\n        cl.Attributes.Set(\u0022ShapeColor\u0022, Color.Lerp(_baseColor, _hoverColor, _hover));\n    }\n\n    public bool Equals(ShapeEffect? other)\n        =\u003E base.Equals(other) \u0026\u0026 _hoverColor == other._hoverColor \u0026\u0026 _transitionMs == other._transitionMs;\n\n    public override int GetHashCode()\n        =\u003E HashCode.Combine(base.GetHashCode(), _hoverColor, _transitionMs);\n}\n"},{"Ident":"xaz.goo","Path":"Internal/ShapeVerts.cs","FileName":"ShapeVerts.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing Sandbox;\n\nnamespace Goo.Internal;\n\n// Vertex generators for the parametric shape factories. Unit [0,1] frame, origin top-left, y down,\n// vertex 0 at top, clockwise - matches ShapeMath.Polygon and ui_shape.shader.\ninternal static class ShapeVerts\n{\n    static Vector2 At(float angleRad, float r) =\u003E new(0.5f \u002B r * MathF.Sin(angleRad), 0.5f - r * MathF.Cos(angleRad));\n\n    public static Vector2[] Ngon(int sides, float rotationDeg = 0f)\n    {\n        int n = Math.Max(sides, 3);\n        var pts = new Vector2[n];\n        float rot = rotationDeg * (MathF.PI / 180f);\n        float step = MathF.Tau / n;\n        for (int i = 0; i \u003C n; i\u002B\u002B)\n            pts[i] = At(rot \u002B i * step, 0.5f);\n        return pts;\n    }\n\n    public static Vector2[] Star(int points, float innerRatio = 0.45f, float rotationDeg = 0f)\n    {\n        int n = Math.Max(points, 3);\n        float q = Math.Clamp(innerRatio, 0.05f, 0.95f);\n        var pts = new Vector2[n * 2];\n        float rot = rotationDeg * (MathF.PI / 180f);\n        float step = MathF.PI / n; // half a wedge between alternating outer/inner\n        for (int i = 0; i \u003C n * 2; i\u002B\u002B)\n            pts[i] = At(rot \u002B i * step, (i \u0026 1) == 0 ? 0.5f : 0.5f * q);\n        return pts;\n    }\n}\n"},{"Ident":"xaz.goo","Path":"Internal/StatefulTextEntry.cs","FileName":"StatefulTextEntry.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing Sandbox;\nusing Sandbox.UI;\n\r\nnamespace Goo.Internal;\r\n\r\ninternal sealed class StatefulTextEntry : Sandbox.UI.TextEntry, IStatefulHost, IStatefulEventHost\r\n{\r\n    StateController? _state;\r\n\r\n    internal Action\u003Cstring\u003E? _onChange;\r\n    internal Action\u003Cstring\u003E? _onSubmit;\r\n    internal Action? _onFocus;\r\n    internal Action\u003Cstring\u003E? _onBlur;\r\n    internal Action? _onCancel;\r\n\r\n    internal Func\u003Cchar, bool\u003E?   _canEnterChar;\r\n    internal Func\u003Cstring, bool\u003E? _validate;\r\n    internal Action\u003Cbool\u003E?       _onValidationChanged;\n    bool _lastInvalid;\n\r\n    internal Action\u003CMousePanelEvent\u003E? _onClick;\r\n    internal Action\u003CMousePanelEvent\u003E? _onRightClick;\r\n    internal Action\u003CMousePanelEvent\u003E? _onMiddleClick;\r\n    internal Action\u003CMousePanelEvent\u003E? _onMouseEnter;\r\n    internal Action\u003CMousePanelEvent\u003E? _onMouseLeave;\r\n    bool _hoverInside;   // gates true enter/leave over the engine\u0027s bubbling over/out\r\n    internal Action\u003CMousePanelEvent\u003E? _onMouseDown;\r\n    internal Action\u003CMousePanelEvent\u003E? _onMouseUp;\r\n    internal Action\u003CMousePanelEvent\u003E? _onMouseMove;\r\n    internal bool _userSetPointerEvents;\r\n    internal Action? _requestRebuild;\r\n    public Action? RequestRebuild { set =\u003E _requestRebuild = value; }\r\n\r\n    public StatefulTextEntry()\r\n    {\r\n        // Wire the engine\u0027s OnTextEdited through _onChange for per-keystroke notifications.\r\n        OnTextEdited = newValue =\u003E { _onChange?.Invoke(newValue); if (_onChange != null) _requestRebuild?.Invoke(); };\r\n    }\r\n\r\n    // Without IStatefulHost the Applier silently discarded the variant sheet for TextEntry,\r\n    // and SplitBaseColors had already moved the declared base FontColor/BackgroundColor into\r\n    // it, so any Hover/Active/Focus color turned the typed text engine-default black.\r\n    public void ApplyStateVariants(\r\n        Color? baseBg,  Color? baseFg,\r\n        Color? hoverBg, Color? activeBg, Color? focusBg,\r\n        Color? hoverFg, Color? activeFg, Color? focusFg,\r\n        int? transitionMs)\r\n    {\r\n        _state ??= new StateController(this);\r\n        _state.ApplyVariants(\r\n            baseBg, baseFg,\r\n            hoverBg, activeBg, focusBg,\r\n            hoverFg, activeFg, focusFg,\r\n            transitionMs);\r\n    }\r\n\r\n    public void ClearStateVariants()\r\n    {\r\n        _state?.ClearVariants();\r\n        // TextEntry is intrinsically focusable (the engine ctor sets AcceptsFocus = true).\r\n        // ClearVariants resets AcceptsFocus for plain panels; restore it or a variant-free\r\n        // entry stops receiving focus after its first rebuild and typing breaks.\r\n        AcceptsFocus = true;\r\n    }\r\n\r\n    public bool HasActiveStateVariants =\u003E _state?.HasActiveVariants ?? false;\r\n\r\n    // AND-compose the Goo predicate after the engine\u0027s rules (CharacterRegex / Numeric / Multiline).\r\n    public override bool CanEnterCharacter(char c)\r\n        =\u003E base.CanEnterCharacter(c) \u0026\u0026 (_canEnterChar?.Invoke(c) ?? true);\r\n\r\n    // Engine runs UpdateValidation() \u002B OnTextEdited() here; merge the Goo Validate predicate and fire OnValidationChanged on a flip.\r\n    public override void OnValueChanged()\n    {\n        base.OnValueChanged();\n        ApplyPredicateAndNotify();\n    }\n\n    // Tighten HasValidationErrors with the Goo predicate, then fire OnValidationChanged (and rebuild) only on a validity transition.\r\n    internal void ApplyPredicateAndNotify()\r\n    {\r\n        if (_validate != null \u0026\u0026 !_validate(Text ?? string.Empty))\r\n        {\r\n            HasValidationErrors = true;\r\n            SetClass(\u0022invalid\u0022, true);\r\n        }\r\n\r\n        if (HasValidationErrors != _lastInvalid)\r\n        {\r\n            _lastInvalid = HasValidationErrors;\r\n            _onValidationChanged?.Invoke(HasValidationErrors);\r\n            if (_onValidationChanged != null) _requestRebuild?.Invoke();\r\n        }\r\n    }\r\n\r\n    // Recompute validity (engine rules \u002B predicate) without an edit event; the Applier calls this after props change.\r\n    internal void RecomputeValidation()\r\n    {\r\n        UpdateValidation();\r\n        ApplyPredicateAndNotify();\r\n    }\r\n\r\n    // Engine fires \u0022onsubmit\u0022 itself on Enter (no Submit method); hook OnEvent to react.\r\n    protected override void OnEvent(PanelEvent e)\r\n    {\r\n        base.OnEvent(e);\r\n        if (e.Name == \u0022onsubmit\u0022) { _onSubmit?.Invoke(Text ?? string.Empty); if (_onSubmit != null) _requestRebuild?.Invoke(); }\r\n        // Escape fires \u0022oncancel\u0022 via the engine\u0027s Cancel(); value-less, same path as onsubmit.\r\n        if (e.Name == \u0022oncancel\u0022) { _onCancel?.Invoke(); if (_onCancel != null) _requestRebuild?.Invoke(); }\r\n    }\r\n\r\n    // Call base first so the engine\u0027s focus/blur work runs before we observe the committed Text.\r\n    protected override void OnFocus(PanelEvent e)\r\n    {\r\n        base.OnFocus(e);\r\n        if (_onFocus != null) { _onFocus.Invoke(); _requestRebuild?.Invoke(); }\r\n    }\r\n\r\n    protected override void OnBlur(PanelEvent e)\r\n    {\r\n        base.OnBlur(e);\r\n        if (_onBlur != null) { _onBlur.Invoke(Text ?? string.Empty); _requestRebuild?.Invoke(); }\r\n    }\r\n\r\n    public void ApplyEvents(in BlobEvents events)\r\n    {\r\n        _onClick      = events.OnClick;\r\n        _onRightClick = events.OnRightClick;\r\n        _onMiddleClick = events.OnMiddleClick;\r\n        _onMouseEnter = events.OnMouseEnter;\r\n        _onMouseLeave = events.OnMouseLeave;\r\n        _onMouseDown  = events.OnMouseDown;\r\n        _onMouseUp    = events.OnMouseUp;\r\n        _onMouseMove  = events.OnMouseMove;\r\n    }\r\n\r\n    public bool HasEventHandlers =\u003E\r\n        _onClick != null || _onRightClick != null || _onMiddleClick != null || _onMouseEnter != null || _onMouseLeave != null ||\r\n        _onMouseDown != null || _onMouseUp != null || _onMouseMove != null ||\r\n        _onChange != null || _onSubmit != null ||\r\n        _onFocus != null || _onBlur != null || _onCancel != null;\r\n\r\n    public bool UserSetPointerEvents\r\n    {\r\n        get =\u003E _userSetPointerEvents;\r\n        set =\u003E _userSetPointerEvents = value;\r\n    }\r\n\r\n    protected override void OnClick(MousePanelEvent e)       { base.OnClick(e);       EventDispatch.Fire(_onClick, e, _requestRebuild); }\r\n    protected override void OnRightClick(MousePanelEvent e)  { base.OnRightClick(e);  EventDispatch.Fire(_onRightClick, e, _requestRebuild); }\r\n    protected override void OnMiddleClick(MousePanelEvent e) { base.OnMiddleClick(e); EventDispatch.Fire(_onMiddleClick, e, _requestRebuild); }\r\n    protected override void OnMouseOver(MousePanelEvent e)   { base.OnMouseOver(e);   EventDispatch.FireEnter(ref _hoverInside, _onMouseEnter, e, _requestRebuild); }\r\n    protected override void OnMouseOut(MousePanelEvent e)    { base.OnMouseOut(e);    EventDispatch.FireLeave(this, ref _hoverInside, _onMouseLeave, e, _requestRebuild); }\r\n    protected override void OnMouseDown(MousePanelEvent e)   { base.OnMouseDown(e);   EventDispatch.Fire(_onMouseDown, e, _requestRebuild); }\r\n    protected override void OnMouseUp(MousePanelEvent e)     { base.OnMouseUp(e);     EventDispatch.Fire(_onMouseUp, e, _requestRebuild); }\r\n    protected override void OnMouseMove(MousePanelEvent e)   { base.OnMouseMove(e);   EventDispatch.Fire(_onMouseMove, e, _requestRebuild); }\r\n}\r\n"},{"Ident":"xaz.goo","Path":".obj/__compiler_extra.cs","FileName":"__compiler_extra.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"global using static Sandbox.Internal.GlobalGameNamespace;\nglobal using Microsoft.AspNetCore.Components;\nglobal using Microsoft.AspNetCore.Components.Rendering;\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022AddonTitle\u0022, \u0022goo\u0022 )]\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022AddonIdent\u0022, \u0022goo\u0022 )]\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022OrgIdent\u0022, \u0022xaz\u0022 )]\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022Ident\u0022, \u0022xaz.goo\u0022 )]\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022EngineVersion\u0022, \u002229\u0022 )]\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022EngineMinorVersion\u0022, \u00221\u0022 )]\n\n[assembly: System.Runtime.Versioning.TargetFramework( \u0022.NETCoreApp,Version=v9.0\u0022, FrameworkDisplayName = \u0022.NET 9.0\u0022 )]\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022CompileTime\u0022, \u00222026-09-02T01:03:18.5778952Z\u0022 )]\n[assembly: global::System.Reflection.AssemblyVersion(\u00220.0.113.0\u0022)]\n[assembly: global::System.Reflection.AssemblyFileVersion(\u00220.0.113.0\u0022)]"},{"Ident":"xaz.goo","Path":"Core/Sector.Style.g.cs","FileName":"Sector.Style.g.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"// \u003Cauto-generated by tools/StyleFacadeEmit from style-manifest.json; do not edit /\u003E\n#nullable enable\nusing Sandbox;\nusing Sandbox.Rendering;\nusing Sandbox.UI;\n\nnamespace Goo;\n\npublic readonly partial record struct Sector\n{\n    public Length? Width { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Width, value); }\n    public Length? Height { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Height, value); }\n    public Length? Margin { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Margin, value); }\n    public Length? MarginLeft { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.MarginLeft, value); }\n    public Length? MarginTop { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.MarginTop, value); }\n    public Length? MarginRight { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.MarginRight, value); }\n    public Length? MarginBottom { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.MarginBottom, value); }\n    public Color? BackgroundColor { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.BackgroundColor, value, StyleValue.FromColor); }\n    public Align? AlignSelf { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.AlignSelf, value, StyleValue.FromAlign); }\n    public Color? BackgroundTint { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.BackgroundTint, value, StyleValue.FromColor); }\n    public Length? Bottom { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Bottom, value); }\n    public Length? Left { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Left, value); }\n    public Length? Right { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Right, value); }\n    public Length? Top { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Top, value); }\n    public Length? FlexBasis { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.FlexBasis, value); }\n    public float? FlexGrow { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.FlexGrow, value); }\n    public float? FlexShrink { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.FlexShrink, value); }\n    public Length? MaxHeight { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.MaxHeight, value); }\n    public Length? MaxWidth { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.MaxWidth, value); }\n    public Length? MinHeight { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.MinHeight, value); }\n    public Length? MinWidth { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.MinWidth, value); }\n    public float? Opacity { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Opacity, value); }\n    public PointerEvents? PointerEvents { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.PointerEvents, value, StyleValue.FromPointerEvents); }\n    public PositionMode? Position { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Position, value, StyleValue.FromPositionMode); }\n    public Goo.PanelTransform? Transform { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.Transform, value, StyleValue.FromPanelTransform); }\n    public int? ZIndex { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.ZIndex, value); }\n    public Color? HoverBackgroundColor { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.HoverBackgroundColor, value, StyleValue.FromColor); }\n    public int? TransitionMs { init =\u003E _style = StyleAccumulator.Add(_style, StyleField.TransitionMs, value); }\n}\n"},{"Ident":"xaz.goo","Path":"Core/Style.cs","FileName":"Style.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\r\nusing Sandbox;\r\nusing Sandbox.Rendering;\r\nusing Sandbox.UI;\r\n\r\nnamespace Goo;\r\n\r\ninternal enum StyleField : ushort\r\n{\r\n    None = 0,\r\n    FlexDirection, JustifyContent, AlignItems, Display,\r\n    Width, Height,\r\n    Padding, PaddingLeft, PaddingTop, PaddingRight, PaddingBottom,\r\n    Margin, MarginLeft, MarginTop, MarginRight, MarginBottom,\r\n    Gap, RowGap, ColumnGap,\r\n    BackgroundColor,\n    BorderRadius, BorderTopLeftRadius, BorderTopRightRadius,\n    BorderBottomRightRadius, BorderBottomLeftRadius,\n    BorderTopLeftRadiusV, BorderTopRightRadiusV,\n    BorderBottomRightRadiusV, BorderBottomLeftRadiusV,\n    // Extended to cover remaining settable PanelStyle properties.\r\n    AlignContent, AlignSelf,\r\n    AspectRatio,\r\n    BackdropFilterBlur, BackdropFilterBrightness, BackdropFilterContrast,\r\n    BackdropFilterHueRotate, BackdropFilterInvert, BackdropFilterSaturate, BackdropFilterSepia,\r\n    BackgroundAngle, BackgroundBlendMode, BackgroundClip, BackgroundGradient, BackgroundImage, BackgroundPlaybackPaused,\n    BackgroundPositionX, BackgroundPositionY, BackgroundRepeat,\r\n    BackgroundSizeX, BackgroundSizeY, BackgroundTint,\r\n    BorderBottomColor, BorderBottomWidth,\r\n    BorderColor, BorderShape,\n    BorderImageFill, BorderImageRepeat, BorderImageSource, BorderImageTint,\r\n    BorderImageWidthBottom, BorderImageWidthLeft, BorderImageWidthRight, BorderImageWidthTop,\r\n    BorderLeftColor, BorderLeftWidth,\r\n    BorderRightColor, BorderRightWidth,\r\n    BorderTopColor, BorderTopWidth,\r\n    BorderWidth,\r\n    Bottom,\r\n    BoxShadow,\r\n    CaretColor,\r\n    Cursor,\r\n    FilterBlur, FilterBorderColor, FilterBorderWidth,\r\n    FilterBrightness, FilterContrast, FilterHueRotate, FilterInvert, FilterSaturate,\n    FilterSepia, FilterTint,\r\n    FlexBasis, FlexGrow, FlexShrink, FlexWrap,\r\n    FontColor, FontFamily, FontSize,\r\n    FontSmooth, FontStyle, FontVariantNumeric, FontWeight,\r\n    ImageRendering, Isolation,\n    Left, LetterSpacing, LineHeight,\r\n    MaskAngle, MaskImage, MaskMode, MaskPositionX, MaskPositionY,\r\n    MaskRepeat, MaskScope, MaskSizeX, MaskSizeY,\r\n    MaxHeight, MaxWidth, MinHeight, MinWidth,\r\n    MixBlendMode,\r\n    ObjectFit,\r\n    Opacity,\r\n    Order,\r\n    OutlineColor, OutlineOffset, OutlineWidth,\r\n    Overflow, OverflowX, OverflowY,\r\n    PerspectiveOriginX, PerspectiveOriginY,\r\n    PointerEvents,\r\n    Position,\r\n    Right,\r\n    SoundIn, SoundOut,\r\n    TextAlign,\r\n    TextBackgroundAngle,\r\n    TextDecorationColor, TextDecorationLine, TextDecorationSkipInk,\r\n    TextDecorationStyle, TextDecorationThickness,\r\n    TextFilter,\r\n    TextLineThroughOffset,\r\n    TextOverflow, TextOverlineOffset,\r\n    TextShadow,\r\n    TextStrokeColor, TextStrokeWidth,\r\n    TextTransform,\r\n    TextUnderlineOffset,\r\n    Top,\r\n    Transform,\r\n    TransformOriginX, TransformOriginY,\r\n    WhiteSpace,\r\n    WordBreak, WordSpacing,\r\n    ZIndex,\r\n    HoverBackgroundColor, ActiveBackgroundColor, FocusBackgroundColor,\r\n    HoverFontColor,       ActiveFontColor,       FocusFontColor,\r\n    TransitionMs,\r\n    Disabled,\r\n}\r\n\r\ninternal enum StyleValueKind : byte\r\n{\r\n    None = 0,\r\n    Length,\r\n    Color,\r\n    FlexDirection,\r\n    Justify,\r\n    Align,\r\n    DisplayMode,\r\n    String,\r\n    Single,\r\n    Boolean,\r\n    Texture,\r\n    Int32,\r\n    Wrap,\r\n    BackgroundRepeat,\n    BackgroundClip,\n    BorderImageFill,\r\n    BorderImageRepeat,\r\n    FontSmooth,\r\n    FontStyle,\r\n    FontVariantNumeric,\r\n    ImageRendering,\n    Isolation,\n    MaskMode,\r\n    MaskScope,\r\n    ObjectFit,\r\n    OverflowMode,\r\n    PointerEvents,\r\n    PositionMode,\r\n    TextAlign,\r\n    TextDecoration,\r\n    TextDecorationStyle,\r\n    TextSkipInk,\r\n    FilterMode,\r\n    TextOverflow,\r\n    TextTransform,\r\n    WhiteSpace,\r\n    WordBreak,\n    Shadows,\n    PanelTransform,\n    Gradient,\n    PanelShape,\n}\r\n\r\ninternal struct StyleValue : IEquatable\u003CStyleValue\u003E\r\n{\r\n    public StyleValueKind Kind;\r\n    public Length LengthVal;     // valid when Kind == Length\r\n    public Color ColorVal;       // valid when Kind == Color\r\n    public int EnumVal;          // packed enum value for any enum-typed kind\r\n    public int RefSlot;          // packed value for Single (float bits), Boolean (0/1), Int32 (raw)\r\n    public object? RefVal;       // String or Texture reference\r\n\r\n    public static StyleValue FromLength(Length v) =\u003E new() { Kind = StyleValueKind.Length, LengthVal = v };\r\n    public static StyleValue FromColor(Color v)   =\u003E new() { Kind = StyleValueKind.Color, ColorVal = v };\r\n    public static StyleValue FromFlexDirection(FlexDirection v) =\u003E new() { Kind = StyleValueKind.FlexDirection, EnumVal = (int)v };\r\n    public static StyleValue FromJustify(Justify v) =\u003E new() { Kind = StyleValueKind.Justify, EnumVal = (int)v };\r\n    public static StyleValue FromAlign(Align v)     =\u003E new() { Kind = StyleValueKind.Align, EnumVal = (int)v };\r\n    public static StyleValue FromDisplay(DisplayMode v) =\u003E new() { Kind = StyleValueKind.DisplayMode, EnumVal = (int)v };\r\n\r\n    public static StyleValue FromString(string v) =\u003E new() { Kind = StyleValueKind.String, RefVal = v };\r\n    public static StyleValue FromSingle(float v)  =\u003E new() { Kind = StyleValueKind.Single, RefSlot = BitConverter.SingleToInt32Bits(v) };\r\n    public static StyleValue FromBoolean(bool v)  =\u003E new() { Kind = StyleValueKind.Boolean, RefSlot = v ? 1 : 0 };\r\n    public static StyleValue FromInt32(int v)     =\u003E new() { Kind = StyleValueKind.Int32, RefSlot = v };\r\n    public static StyleValue FromTexture(Texture v) =\u003E new() { Kind = StyleValueKind.Texture, RefVal = v };\r\n    public static StyleValue FromWrap(Wrap v) =\u003E new() { Kind = StyleValueKind.Wrap, EnumVal = (int)v };\r\n    public static StyleValue FromBackgroundRepeat(BackgroundRepeat v) =\u003E new() { Kind = StyleValueKind.BackgroundRepeat, EnumVal = (int)v };\n    public static StyleValue FromBackgroundClip(BackgroundClip v) =\u003E new() { Kind = StyleValueKind.BackgroundClip, EnumVal = (int)v };\n    public static StyleValue FromBorderImageFill(BorderImageFill v) =\u003E new() { Kind = StyleValueKind.BorderImageFill, EnumVal = (int)v };\r\n    public static StyleValue FromBorderImageRepeat(BorderImageRepeat v) =\u003E new() { Kind = StyleValueKind.BorderImageRepeat, EnumVal = (int)v };\r\n    public static StyleValue FromFontSmooth(FontSmooth v) =\u003E new() { Kind = StyleValueKind.FontSmooth, EnumVal = (int)v };\r\n    public static StyleValue FromFontStyle(FontStyle v) =\u003E new() { Kind = StyleValueKind.FontStyle, EnumVal = (int)v };\r\n    public static StyleValue FromFontVariantNumeric(FontVariantNumeric v) =\u003E new() { Kind = StyleValueKind.FontVariantNumeric, EnumVal = (int)v };\r\n    public static StyleValue FromImageRendering(ImageRendering v) =\u003E new() { Kind = StyleValueKind.ImageRendering, EnumVal = (int)v };\n    public static StyleValue FromIsolation(Isolation v) =\u003E new() { Kind = StyleValueKind.Isolation, EnumVal = (int)v };\n    public static StyleValue FromMaskMode(MaskMode v) =\u003E new() { Kind = StyleValueKind.MaskMode, EnumVal = (int)v };\r\n    public static StyleValue FromMaskScope(MaskScope v) =\u003E new() { Kind = StyleValueKind.MaskScope, EnumVal = (int)v };\r\n    public static StyleValue FromObjectFit(ObjectFit v) =\u003E new() { Kind = StyleValueKind.ObjectFit, EnumVal = (int)v };\r\n    public static StyleValue FromOverflowMode(OverflowMode v) =\u003E new() { Kind = StyleValueKind.OverflowMode, EnumVal = (int)v };\r\n    public static StyleValue FromPointerEvents(PointerEvents v) =\u003E new() { Kind = StyleValueKind.PointerEvents, EnumVal = (int)v };\r\n    public static StyleValue FromPositionMode(PositionMode v) =\u003E new() { Kind = StyleValueKind.PositionMode, EnumVal = (int)v };\r\n    public static StyleValue FromTextAlign(TextAlign v) =\u003E new() { Kind = StyleValueKind.TextAlign, EnumVal = (int)v };\r\n    public static StyleValue FromTextDecoration(TextDecoration v) =\u003E new() { Kind = StyleValueKind.TextDecoration, EnumVal = (int)v };\r\n    public static StyleValue FromTextDecorationStyle(TextDecorationStyle v) =\u003E new() { Kind = StyleValueKind.TextDecorationStyle, EnumVal = (int)v };\r\n    public static StyleValue FromTextSkipInk(TextSkipInk v) =\u003E new() { Kind = StyleValueKind.TextSkipInk, EnumVal = (int)v };\r\n    public static StyleValue FromFilterMode(FilterMode v) =\u003E new() { Kind = StyleValueKind.FilterMode, EnumVal = (int)v };\r\n    public static StyleValue FromTextOverflow(TextOverflow v) =\u003E new() { Kind = StyleValueKind.TextOverflow, EnumVal = (int)v };\r\n    public static StyleValue FromTextTransform(TextTransform v) =\u003E new() { Kind = StyleValueKind.TextTransform, EnumVal = (int)v };\r\n    public static StyleValue FromWhiteSpace(WhiteSpace v) =\u003E new() { Kind = StyleValueKind.WhiteSpace, EnumVal = (int)v };\r\n    public static StyleValue FromWordBreak(WordBreak v) =\u003E new() { Kind = StyleValueKind.WordBreak, EnumVal = (int)v };\r\n\r\n    public static StyleValue FromShadows(Shadows v)\r\n        =\u003E new() { Kind = StyleValueKind.Shadows, RefVal = v };\r\n\r\n    public static StyleValue FromPanelTransform(Goo.PanelTransform v)\n        =\u003E new() { Kind = StyleValueKind.PanelTransform, RefVal = v._entries };\n\n    public static StyleValue FromGradient(Gradient v)\n        =\u003E new() { Kind = StyleValueKind.Gradient, RefVal = v };\n\n    public static StyleValue FromPanelShape(PanelShape v)\n        =\u003E new() { Kind = StyleValueKind.PanelShape, RefVal = v };\n\r\n    public bool Equals(StyleValue other)\r\n    {\r\n        if (Kind != other.Kind) return false;\r\n        return Kind switch\r\n        {\r\n            StyleValueKind.Length         =\u003E LengthVal.Equals(other.LengthVal),\r\n            StyleValueKind.Color          =\u003E ColorVal.Equals(other.ColorVal),\r\n            StyleValueKind.String         =\u003E ReferenceEquals(RefVal, other.RefVal),\r\n            StyleValueKind.Texture        =\u003E ReferenceEquals(RefVal, other.RefVal),\r\n            StyleValueKind.Single         =\u003E RefSlot == other.RefSlot,\r\n            StyleValueKind.Boolean        =\u003E RefSlot == other.RefSlot,\r\n            StyleValueKind.Int32          =\u003E RefSlot == other.RefSlot,\r\n            // Shadows boxes a struct in RefVal; compare structurally, not by box identity.\r\n            StyleValueKind.Shadows        =\u003E ((Shadows)RefVal!).Equals((Shadows)other.RefVal!),\r\n            StyleValueKind.PanelTransform =\u003E Goo.PanelTransform.EntriesEqual(\n                RefVal as System.Collections.Immutable.ImmutableList\u003CSandbox.UI.PanelTransform.Entry\u003E,\n                other.RefVal as System.Collections.Immutable.ImmutableList\u003CSandbox.UI.PanelTransform.Entry\u003E),\n            StyleValueKind.Gradient       =\u003E ((Gradient)RefVal!).Equals((Gradient)other.RefVal!),\n            StyleValueKind.PanelShape     =\u003E ((PanelShape)RefVal!).Equals((PanelShape)other.RefVal!),\n            _                             =\u003E EnumVal == other.EnumVal,\n        };\r\n    }\r\n\r\n    public override bool Equals(object? obj) =\u003E obj is StyleValue v \u0026\u0026 Equals(v);\r\n    public override int GetHashCode() =\u003E Kind switch\r\n    {\r\n        // PanelTransform stores an ImmutableList in RefVal; Equals is structural via\r\n        // EntriesEqual, so the hash must be structural too, hashing RefVal as object\r\n        // would give reference identity and break the Equals/GetHashCode contract.\r\n        StyleValueKind.PanelTransform =\u003E HashCode.Combine(\r\n            (byte)Kind,\r\n            Goo.PanelTransform.ComputeEntriesHash(\r\n                RefVal as System.Collections.Immutable.ImmutableList\u003CSandbox.UI.PanelTransform.Entry\u003E)),\r\n        StyleValueKind.Shadows =\u003E HashCode.Combine((byte)Kind, (Shadows)RefVal!),\n        StyleValueKind.Gradient =\u003E HashCode.Combine((byte)Kind, (Gradient)RefVal!),\n        StyleValueKind.PanelShape =\u003E HashCode.Combine((byte)Kind, (PanelShape)RefVal!),\n        _ =\u003E HashCode.Combine((byte)Kind, LengthVal.GetHashCode(), ColorVal.GetHashCode(), EnumVal, RefSlot, RefVal),\n    };\r\n}\r\n\r\ninternal struct StyleEntry\r\n{\r\n    public StyleField Field;\r\n    public StyleValue Value;\r\n}\r\n\r\ninternal sealed class StyleList\r\n{\r\n    internal static readonly StyleList Empty = new(readOnly: true);\r\n\r\n    StyleEntry[] _items;\r\n    int _count;\r\n    readonly bool _readonly;\r\n\r\n    public StyleList() : this(readOnly: false) { }\r\n    StyleList(bool readOnly) { _items = new StyleEntry[4]; _count = 0; _readonly = readOnly; }\r\n\r\n    public int Count =\u003E _count;\r\n    public ref StyleEntry this[int i] =\u003E ref _items[i];\r\n\r\n    public void Add(StyleField field, StyleValue value)\r\n    {\r\n        if (_readonly) throw new InvalidOperationException(\u0022Cannot mutate StyleList.Empty sentinel.\u0022);\r\n        if (_count == _items.Length) Array.Resize(ref _items, _items.Length * 2);\r\n        _items[_count\u002B\u002B] = new StyleEntry { Field = field, Value = value };\r\n    }\r\n\r\n    public bool TryGet(StyleField field, out StyleValue value)\r\n    {\r\n        // Last-declared wins: scan from the end so a later declaration (or a \u0060with\u0060 override) takes precedence.\r\n        for (int i = _count - 1; i \u003E= 0; i--)\r\n            if (_items[i].Field == field) { value = _items[i].Value; return true; }\r\n        value = default;\r\n        return false;\r\n    }\r\n\r\n    internal void Reset()\r\n    {\r\n        if (_readonly) return;\r\n        Array.Clear(_items, 0, _count);\r\n        _count = 0;\r\n    }\r\n\r\n    internal void CopyFrom(StyleList src)\r\n    {\r\n        if (_readonly) throw new InvalidOperationException(\u0022Cannot mutate StyleList.Empty sentinel.\u0022);\r\n        if (_items.Length \u003C src._count) _items = new StyleEntry[src._items.Length];\r\n        Array.Copy(src._items, _items, src._count);\r\n        _count = src._count;\r\n    }\r\n\r\n    public static bool ContentsEqual(StyleList a, StyleList b)\r\n    {\r\n        if (ReferenceEquals(a, b)) return true;\r\n        if (a._count != b._count) return false;\r\n        for (int i = 0; i \u003C a._count; i\u002B\u002B)\r\n            if (a._items[i].Field != b._items[i].Field || !a._items[i].Value.Equals(b._items[i].Value))\r\n                return false;\r\n        return true;\r\n    }\r\n}\r\n"},{"Ident":"xaz.goo","Path":"GooVirtualList.cs","FileName":"GooVirtualList.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing Sandbox;\nusing Sandbox.UI;\n\nnamespace Goo;\n\n/// \u003Csummary\u003E\n/// Fiber-backed virtual list: the Tier-2 recycle machinery of \u003Csee cref=\u0022GooVirtualPanel\u0022/\u003E with\n/// fixed-height vertical rows. The list-mode default behind \u003Cc\u003EVirtual.List\u003C/c\u003E; opt in explicitly\n/// via \u003Cc\u003EVirtual.Custom(items, () =\u003E new GooVirtualList { ItemHeight = h }, row)\u003C/c\u003E.\n/// \u003C/summary\u003E\npublic sealed class GooVirtualList : GooVirtualPanel\n{\n    float _itemHeight = 24f;\n    public float ItemHeight { get =\u003E _itemHeight; set =\u003E _itemHeight = MathF.Max(1f, value); }\n\n    // Vertical fixed-height layout math, redone here: the engine\u0027s VerticalListLayout is\n    // internal to Sandbox.UI.\n    Rect _inner;\n    Rect _outer;\n    float _scroll;\n    Vector2 _spacing;\n    Vector2 _rowSize;\n    int _layoutHash;\n\n    protected override void UpdateLayoutSpacing(Vector2 spacing) =\u003E _spacing = spacing;\n\n    protected override bool UpdateLayout()\n    {\n        _scroll = ScrollOffset.y * ScaleFromScreen;\n        var hash = HashCode.Combine(Box.RectInner, ScaleFromScreen, _itemHeight, _spacing);\n        if (hash == _layoutHash) return false;\n        _layoutHash = hash;\n\n        var inner = Box.RectInner;\n        inner.Position = Box.RectInner.Position - Box.Rect.Position;\n        _inner = inner * ScaleFromScreen;\n        _outer = Box.Rect * ScaleFromScreen;\n        _rowSize = new Vector2(MathF.Max(1f, _inner.Width), _itemHeight);\n        return true;\n    }\n\n    protected override void GetVisibleRange(out int first, out int pastEnd)\n    {\n        float step = MathF.Max(1f, _rowSize.y \u002B _spacing.y);\n        int top = ((_scroll - _inner.Top) / step).FloorToInt();\n        if (top \u003C 0) top = 0;\n        int fit = (_outer.Height / step).CeilToInt() \u002B 1;\n        first = top;\n        pastEnd = top \u002B fit;\n    }\n\n    protected override void PositionPanel(int index, Panel panel)\n    {\n        float step = _rowSize.y \u002B _spacing.y;\n        panel.Style.Left = _inner.Left;\n        panel.Style.Top = _inner.Top \u002B index * step;\n        panel.Style.Width = _rowSize.x;\n        panel.Style.Height = _rowSize.y;\n        panel.Style.Dirty();\n    }\n\n    protected override float GetTotalHeight(int itemCount)\n    {\n        float step = _rowSize.y \u002B _spacing.y;\n        float paddingY = _outer.Height - _inner.Height;\n        if (step \u003C= 0f) return MathF.Max(0f, paddingY);\n        return itemCount * step \u002B MathF.Max(0f, paddingY);\n    }\n}\n"},{"Ident":"xaz.goo","Path":"Code/GooVirtualList.cs","FileName":"GooVirtualList.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"using System;\nusing Sandbox;\nusing Sandbox.UI;\n\nnamespace Goo;\n\n/// \u003Csummary\u003E\n/// Fiber-backed virtual list: the Tier-2 recycle machinery of \u003Csee cref=\u0022GooVirtualPanel\u0022/\u003E with\n/// fixed-height vertical rows. The list-mode default behind \u003Cc\u003EVirtual.List\u003C/c\u003E; opt in explicitly\n/// via \u003Cc\u003EVirtual.Custom(items, () =\u003E new GooVirtualList { ItemHeight = h }, row)\u003C/c\u003E.\n/// \u003C/summary\u003E\npublic sealed class GooVirtualList : GooVirtualPanel\n{\n    float _itemHeight = 24f;\n    public float ItemHeight { get =\u003E _itemHeight; set =\u003E _itemHeight = MathF.Max(1f, value); }\n\n    // Vertical fixed-height layout math, redone here: the engine\u0027s VerticalListLayout is\n    // internal to Sandbox.UI.\n    Rect _inner;\n    Rect _outer;\n    float _scroll;\n    Vector2 _spacing;\n    Vector2 _rowSize;\n    int _layoutHash;\n\n    protected override void UpdateLayoutSpacing(Vector2 spacing) =\u003E _spacing = spacing;\n\n    protected override bool UpdateLayout()\n    {\n        _scroll = ScrollOffset.y * ScaleFromScreen;\n        var hash = HashCode.Combine(Box.RectInner, ScaleFromScreen, _itemHeight, _spacing);\n        if (hash == _layoutHash) return false;\n        _layoutHash = hash;\n\n        var inner = Box.RectInner;\n        inner.Position = Box.RectInner.Position - Box.Rect.Position;\n        _inner = inner * ScaleFromScreen;\n        _outer = Box.Rect * ScaleFromScreen;\n        _rowSize = new Vector2(MathF.Max(1f, _inner.Width), _itemHeight);\n        return true;\n    }\n\n    protected override void GetVisibleRange(out int first, out int pastEnd)\n    {\n        float step = MathF.Max(1f, _rowSize.y \u002B _spacing.y);\n        int top = ((_scroll - _inner.Top) / step).FloorToInt();\n        if (top \u003C 0) top = 0;\n        int fit = (_outer.Height / step).CeilToInt() \u002B 1;\n        first = top;\n        pastEnd = top \u002B fit;\n    }\n\n    protected override void PositionPanel(int index, Panel panel)\n    {\n        float step = _rowSize.y \u002B _spacing.y;\n        panel.Style.Left = _inner.Left;\n        panel.Style.Top = _inner.Top \u002B index * step;\n        panel.Style.Width = _rowSize.x;\n        panel.Style.Height = _rowSize.y;\n        panel.Style.Dirty();\n    }\n\n    protected override float GetTotalHeight(int itemCount)\n    {\n        float step = _rowSize.y \u002B _spacing.y;\n        float paddingY = _outer.Height - _inner.Height;\n        if (step \u003C= 0f) return MathF.Max(0f, paddingY);\n        return itemCount * step \u002B MathF.Max(0f, paddingY);\n    }\n}\n"},{"Ident":"xaz.goo","Path":"Code/Authoring/WebPanelNode.Style.g.cs","FileName":"WebPanelNode.Style.g.cs","PackageType":"library","CodeKind":"Game","AssetVersionId":366815,"IsPrivate":false,"Code":"// \u003Cauto-generated by tools/StyleFacadeEmit from style-manifest.json; do not edit /\u003E\nusing Goo;\nusing Sandbox;\nusing Sandbox.Rendering;\nusing Sandbox.UI;\n\nnamespace Goo.Authoring;\n\npublic partial class WebPanelNode\n{\n\t/// \u003Csummary\u003EWidth of the box (Length: px, %, em, rem, ...).\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Sizing\u0022 ), Order( 20 ), Range( 0f, float.MaxValue, true, false ), Editor( \u0022goo-axis-lengths\u0022 ), Title( \u0022Size\u0022 )] public GooLength? Width { get; set; }\n\t/// \u003Csummary\u003EHeight of the box.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Sizing\u0022 ), Order( 20 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? Height { get; set; }\n\t/// \u003Csummary\u003EOuter space on all four edges, between this box and its neighbors.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Spacing\u0022 ), Order( 30 )] public GooLength? Margin { get; set; }\n\t/// \u003Csummary\u003EOuter space on the left edge.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Spacing\u0022 ), Order( 30 ), Editor( \u0022goo-side-lengths\u0022 ), Title( \u0022Margin Sides\u0022 )] public GooLength? MarginLeft { get; set; }\n\t/// \u003Csummary\u003EOuter space on the top edge.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Spacing\u0022 ), Order( 30 ), Hide] public GooLength? MarginTop { get; set; }\n\t/// \u003Csummary\u003EOuter space on the right edge.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Spacing\u0022 ), Order( 30 ), Hide] public GooLength? MarginRight { get; set; }\n\t/// \u003Csummary\u003EOuter space on the bottom edge.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Spacing\u0022 ), Order( 30 ), Hide] public GooLength? MarginBottom { get; set; }\n\t/// \u003Csummary\u003EFill color behind the content.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Background\u0022 ), Order( 60 )] public Color? BackgroundColor { get; set; }\n\t/// \u003Csummary\u003ERounds all four corners.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false )] public GooLength? BorderRadius { get; set; }\n\t/// \u003Csummary\u003ERounds the top-left corner.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false ), Editor( \u0022goo-corner-lengths\u0022 ), Title( \u0022Border Corners\u0022 )] public GooLength? BorderTopLeftRadius { get; set; }\n\t/// \u003Csummary\u003ERounds the top-right corner.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? BorderTopRightRadius { get; set; }\n\t/// \u003Csummary\u003ERounds the bottom-right corner.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? BorderBottomRightRadius { get; set; }\n\t/// \u003Csummary\u003ERounds the bottom-left corner.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? BorderBottomLeftRadius { get; set; }\n\t/// \u003Csummary\u003EVertical radius of the top-left corner.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false ), Editor( \u0022goo-corner-lengths\u0022 ), Title( \u0022Border Vertical Corners\u0022 )] public GooLength? BorderTopLeftRadiusV { get; set; }\n\t/// \u003Csummary\u003EVertical radius of the top-right corner.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? BorderTopRightRadiusV { get; set; }\n\t/// \u003Csummary\u003EVertical radius of the bottom-right corner.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? BorderBottomRightRadiusV { get; set; }\n\t/// \u003Csummary\u003EVertical radius of the bottom-left corner.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border Radius\u0022 ), Order( 80 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? BorderBottomLeftRadiusV { get; set; }\n\t/// \u003Csummary\u003EMultiplies the background image color; default white (no tint).\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Background\u0022 ), Order( 60 )] public Color? BackgroundTint { get; set; }\n\t/// \u003Csummary\u003ETyped circle or polygon that shapes this panel\u0027s background, border, and hit test.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Border\u0022 ), Order( 70 )] public GooPanelShape? BorderShape { get; set; }\n\t/// \u003Csummary\u003EBottom-edge offset; applied only when Position is Relative or Absolute.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Position Offsets\u0022 ), Order( 40 ), Hide] public GooLength? Bottom { get; set; }\n\t/// \u003Csummary\u003ELeft-edge offset; applied only when Position is Relative or Absolute.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Position Offsets\u0022 ), Order( 40 ), Editor( \u0022goo-side-lengths\u0022 ), Title( \u0022Position Offsets\u0022 )] public GooLength? Left { get; set; }\n\t/// \u003Csummary\u003ERight-edge offset; applied only when Position is Relative or Absolute.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Position Offsets\u0022 ), Order( 40 ), Hide] public GooLength? Right { get; set; }\n\t/// \u003Csummary\u003ETop-edge offset; applied only when Position is Relative or Absolute.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Position Offsets\u0022 ), Order( 40 ), Hide] public GooLength? Top { get; set; }\n\t/// \u003Csummary\u003EInitial main-axis size of a flex child before grow and shrink are applied.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Layout\u0022 ), Order( 10 ), Range( 0f, float.MaxValue, true, false )] public GooLength? FlexBasis { get; set; }\n\t/// \u003Csummary\u003EShare of leftover main-axis space this child claims; 0 (default) means do not grow.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Layout\u0022 ), Order( 10 ), Editor( \u0022goo-float\u0022 ), Range( 0f, float.MaxValue, true, false ), Step( 0.1f )] public float? FlexGrow { get; set; }\n\t/// \u003Csummary\u003EHow readily this child shrinks when space is tight; 0 pins it to its basis.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Layout\u0022 ), Order( 10 ), Editor( \u0022goo-float\u0022 ), Range( 0f, float.MaxValue, true, false ), Step( 0.1f )] public float? FlexShrink { get; set; }\n\t/// \u003Csummary\u003EUpper bound on height.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Sizing\u0022 ), Order( 20 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? MaxHeight { get; set; }\n\t/// \u003Csummary\u003EUpper bound on width; the box never grows past it.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Sizing\u0022 ), Order( 20 ), Range( 0f, float.MaxValue, true, false ), Editor( \u0022goo-axis-lengths\u0022 ), Title( \u0022Maximum Size\u0022 )] public GooLength? MaxWidth { get; set; }\n\t/// \u003Csummary\u003ELower bound on height.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Sizing\u0022 ), Order( 20 ), Range( 0f, float.MaxValue, true, false ), Hide] public GooLength? MinHeight { get; set; }\n\t/// \u003Csummary\u003ELower bound on width; the box never shrinks below it.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Sizing\u0022 ), Order( 20 ), Range( 0f, float.MaxValue, true, false ), Editor( \u0022goo-axis-lengths\u0022 ), Title( \u0022Minimum Size\u0022 )] public GooLength? MinWidth { get; set; }\n\t/// \u003Csummary\u003EOverall opacity from 0 (transparent) to 1 (opaque).\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Effects\u0022, StartFolded = true ), Order( 120 ), Editor( \u0022goo-float\u0022 ), Range( 0f, 1f, true, true ), Step( 0.01f )] public float? Opacity { get; set; }\n\t/// \u003Csummary\u003EWhether the element receives pointer input (All or None).\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Misc\u0022, StartFolded = true ), Order( 200 ), Editor( \u0022goo-nullable-enum\u0022 )] public PointerEvents? PointerEvents { get; set; }\n\t/// \u003Csummary\u003EPositioning scheme: Relative offsets from the normal slot, Absolute lifts the box out of flow against the nearest positioned ancestor.\u003C/summary\u003E\n\t[Property, GooToken, Group( \u0022Layout\u0022 ), Order( 10 ), Editor( \u0022goo-nullable-enum\u0022 )] public PositionMode? Position { get; set; }\n\n\t/// \u003Csummary\u003EMovie-maker mirror of Opacity: keyframes tween, setting it writes Opacity.\u003C/summary\u003E\n\tpublic float OpacityAnim { get =\u003E Opacity ?? 1f; set =\u003E Opacity = value; }\n\t/// \u003Csummary\u003EMovie-maker mirror of BackgroundColor: keyframes tween, setting it writes BackgroundColor.\u003C/summary\u003E\n\tpublic Color BackgroundColorAnim { get =\u003E BackgroundColor ?? default; set =\u003E BackgroundColor = value; }\n\t/// \u003Csummary\u003EMovie-maker mirror of Left in pixels: keyframes tween, setting it writes Left.\u003C/summary\u003E\n\tpublic float LeftAnim { get =\u003E Left?.Value ?? 0f; set =\u003E Left = new GooLength { Value = value, Unit = LengthUnit.Pixels }; }\n\t/// \u003Csummary\u003EMovie-maker mirror of Top in pixels: keyframes tween, setting it writes Top.\u003C/summary\u003E\n\tpublic float TopAnim { get =\u003E Top?.Value ?? 0f; set =\u003E Top = new GooLength { Value = value, Unit = LengthUnit.Pixels }; }\n\t/// \u003Csummary\u003EMovie-maker mirror of Width in pixels: keyframes tween, setting it writes Width.\u003C/summary\u003E\n\tpublic float WidthAnim { get =\u003E Width?.Value ?? 0f; set =\u003E Width = new GooLength { Value = value, Unit = LengthUnit.Pixels }; }\n\t/// \u003Csummary\u003EMovie-maker mirror of Height in pixels: keyframes tween, setting it writes Height.\u003C/summary\u003E\n\tpublic float HeightAnim { get =\u003E Height?.Value ?? 0f; set =\u003E Height = new GooLength { Value = value, Unit = LengthUnit.Pixels }; }\n\t/// \u003Csummary\u003EMovie-maker mirror of BorderRadius in pixels: keyframes tween, setting it writes BorderRadius.\u003C/summary\u003E\n\tpublic float BorderRadiusAnim { get =\u003E BorderRadius?.Value ?? 0f; set =\u003E BorderRadius = new GooLength { Value = value, Unit = LengthUnit.Pixels }; }\n\n\tGoo.WebPanel WithStyles( Goo.WebPanel blob ) =\u003E blob with\n\t{\n\t\tWidth = ResolveStyleValue( nameof( Width ), Width ),\n\t\tHeight = ResolveStyleValue( nameof( Height ), Height ),\n\t\tMargin = ResolveStyleValue( nameof( Margin ), Margin ),\n\t\tMarginLeft = ResolveStyleValue( nameof( MarginLeft ), MarginLeft ),\n\t\tMarginTop = ResolveStyleValue( nameof( MarginTop ), MarginTop ),\n\t\tMarginRight = ResolveStyleValue( nameof( MarginRight ), MarginRight ),\n\t\tMarginBottom = ResolveStyleValue( nameof( MarginBottom ), MarginBottom ),\n\t\tBackgroundColor = ResolveStyleValue( nameof( BackgroundColor ), BackgroundColor ),\n\t\tBorderRadius = ResolveStyleValue( nameof( BorderRadius ), BorderRadius ),\n\t\tBorderTopLeftRadius = ResolveStyleValue( nameof( BorderTopLeftRadius ), BorderTopLeftRadius ),\n\t\tBorderTopRightRadius = ResolveStyleValue( nameof( BorderTopRightRadius ), BorderTopRightRadius ),\n\t\tBorderBottomRightRadius = ResolveStyleValue( nameof( BorderBottomRightRadius ), BorderBottomRightRadius ),\n\t\tBorderBottomLeftRadius = ResolveStyleValue( nameof( BorderBottomLeftRadius ), BorderBottomLeftRadius ),\n\t\tBorderTopLeftRadiusV = ResolveStyleValue( nameof( BorderTopLeftRadiusV ), BorderTopLeftRadiusV ),\n\t\tBorderTopRightRadiusV = ResolveStyleValue( nameof( BorderTopRightRadiusV ), BorderTopRightRadiusV ),\n\t\tBorderBottomRightRadiusV = ResolveStyleValue( nameof( BorderBottomRightRadiusV ), BorderBottomRightRadiusV ),\n\t\tBorderBottomLeftRadiusV = ResolveStyleValue( nameof( BorderBottomLeftRadiusV ), BorderBottomLeftRadiusV ),\n\t\tBackgroundTint = ResolveStyleValue( nameof( BackgroundTint ), BackgroundTint ),\n\t\tBorderShape = ResolveStyleValue( nameof( BorderShape ), BorderShape ),\n\t\tBottom = ResolveStyleValue( nameof( Bottom ), Bottom ),\n\t\tLeft = ResolveStyleValue( nameof( Left ), Left ),\n\t\tRight = ResolveStyleValue( nameof( Right ), Right ),\n\t\tTop = ResolveStyleValue( nameof( Top ), Top ),\n\t\tFlexBasis = ResolveStyleValue( nameof( FlexBasis ), FlexBasis ),\n\t\tFlexGrow = ResolveStyleValue( nameof( FlexGrow ), FlexGrow ),\n\t\tFlexShrink = ResolveStyleValue( nameof( FlexShrink ), FlexShrink ),\n\t\tMaxHeight = ResolveStyleValue( nameof( MaxHeight ), MaxHeight ),\n\t\tMaxWidth = ResolveStyleValue( nameof( MaxWidth ), MaxWidth ),\n\t\tMinHeight = ResolveStyleValue( nameof( MinHeight ), MinHeight ),\n\t\tMinWidth = ResolveStyleValue( nameof( MinWidth ), MinWidth ),\n\t\tOpacity = ResolveStyleValue( nameof( Opacity ), Opacity ),\n\t\tPointerEvents = ResolveStyleValue( nameof( PointerEvents ), PointerEvents ),\n\t\tPosition = ResolveStyleValue( nameof( Position ), Position ),\n\t\tTransform = BuildStyleTransform(),\n\t};\n}\n"}]}