@lec-space/liquidglass 0.0.0-stage → 1.0.0
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.
- package/LICENSE +22 -0
- package/README.md +58 -2
- package/dist/button-BCSOcrTI.cjs +1 -0
- package/dist/button-SXD_7EGY.js +970 -0
- package/dist/index.cjs +2 -0
- package/dist/index.js +4440 -0
- package/dist/styles.css +3804 -0
- package/dist/types/activity-calendar.d.ts +18 -0
- package/dist/types/alert.d.ts +18 -0
- package/dist/types/avatar.d.ts +12 -0
- package/dist/types/badge.d.ts +13 -0
- package/dist/types/button.d.ts +16 -0
- package/dist/types/card.d.ts +10 -0
- package/dist/types/checkbox.d.ts +9 -0
- package/dist/types/command-palette.d.ts +22 -0
- package/dist/types/config-provider.d.ts +62 -0
- package/dist/types/context-menu.d.ts +17 -0
- package/dist/types/data-table.d.ts +32 -0
- package/dist/types/date-range-picker.d.ts +23 -0
- package/dist/types/descriptions.d.ts +13 -0
- package/dist/types/dialog.d.ts +19 -0
- package/dist/types/drawer.d.ts +7 -0
- package/dist/types/empty.d.ts +8 -0
- package/dist/types/filter-bar.d.ts +9 -0
- package/dist/types/form-field.d.ts +19 -0
- package/dist/types/glass-group.d.ts +10 -0
- package/dist/types/glass.d.ts +3 -0
- package/dist/types/import-wizard.d.ts +11 -0
- package/dist/types/index.d.ts +53 -0
- package/dist/types/input.d.ts +11 -0
- package/dist/types/internal/bend.d.ts +15 -0
- package/dist/types/internal/calendar-day.d.ts +13 -0
- package/dist/types/internal/chevron.d.ts +6 -0
- package/dist/types/internal/contour.d.ts +10 -0
- package/dist/types/internal/controllable.d.ts +1 -0
- package/dist/types/internal/cx.d.ts +1 -0
- package/dist/types/internal/date-only.d.ts +4 -0
- package/dist/types/internal/field-error.d.ts +6 -0
- package/dist/types/internal/floating.d.ts +15 -0
- package/dist/types/internal/form-reset.d.ts +3 -0
- package/dist/types/internal/hold.d.ts +8 -0
- package/dist/types/internal/href.d.ts +7 -0
- package/dist/types/internal/jelly.d.ts +22 -0
- package/dist/types/internal/modal.d.ts +11 -0
- package/dist/types/internal/placement.d.ts +33 -0
- package/dist/types/internal/press.d.ts +2 -0
- package/dist/types/internal/range-calendar-navigation.d.ts +6 -0
- package/dist/types/internal/range-calendar.d.ts +11 -0
- package/dist/types/internal/refraction.d.ts +20 -0
- package/dist/types/internal/scroller.d.ts +2 -0
- package/dist/types/internal/sheet-drag.d.ts +17 -0
- package/dist/types/internal/spring.d.ts +13 -0
- package/dist/types/internal/styles.d.ts +5 -0
- package/dist/types/internal/tab-motion.d.ts +2 -0
- package/dist/types/internal/tree-branch.d.ts +13 -0
- package/dist/types/member-picker.d.ts +15 -0
- package/dist/types/menu.d.ts +61 -0
- package/dist/types/message.d.ts +12 -0
- package/dist/types/multi-select.d.ts +25 -0
- package/dist/types/navigation-bar.d.ts +25 -0
- package/dist/types/page-control.d.ts +13 -0
- package/dist/types/pagination.d.ts +12 -0
- package/dist/types/popover.d.ts +20 -0
- package/dist/types/progress.d.ts +10 -0
- package/dist/types/radio.d.ts +8 -0
- package/dist/types/search-field.d.ts +5 -0
- package/dist/types/segmented-control.d.ts +14 -0
- package/dist/types/select.d.ts +20 -0
- package/dist/types/sheet.d.ts +14 -0
- package/dist/types/skeleton.d.ts +9 -0
- package/dist/types/slider.d.ts +10 -0
- package/dist/types/statistic.d.ts +11 -0
- package/dist/types/stepper.d.ts +12 -0
- package/dist/types/style-entry.d.ts +1 -0
- package/dist/types/switch.d.ts +7 -0
- package/dist/types/tab-bar.d.ts +23 -0
- package/dist/types/table.d.ts +22 -0
- package/dist/types/tabs.d.ts +19 -0
- package/dist/types/tag.d.ts +10 -0
- package/dist/types/text-area.d.ts +13 -0
- package/dist/types/toast.d.ts +35 -0
- package/dist/types/toolbar.d.ts +13 -0
- package/dist/types/tooltip.d.ts +16 -0
- package/dist/types/tree.d.ts +18 -0
- package/dist/types/typography.d.ts +11 -0
- package/dist/types/upload.d.ts +15 -0
- package/dist/types/workspace.d.ts +22 -0
- package/dist/workspace.cjs +1 -0
- package/dist/workspace.js +42 -0
- package/package.json +65 -3
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
import { createContext as e, forwardRef as t, useContext as n, useEffect as r, useImperativeHandle as i, useMemo as a, useRef as o } from "react";
|
|
2
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
// src/internal/styles.ts
|
|
4
|
+
var l = "liquidglass-styles";
|
|
5
|
+
function u(e) {
|
|
6
|
+
if (typeof document > "u" || document.getElementById(l)) return;
|
|
7
|
+
let t = document.createElement("style");
|
|
8
|
+
t.id = l, t.textContent = e, document.head.prepend(t);
|
|
9
|
+
}
|
|
10
|
+
// src/style-entry.ts
|
|
11
|
+
u(":where(:root,[data-theme=light]){--lg-space-1:4px;--lg-space-2:8px;--lg-space-3:12px;--lg-space-4:16px;--lg-space-5:24px;--lg-space-6:32px;--lg-font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Microsoft YaHei\", sans-serif;--lg-font-size:14px;--lg-font-size-small:12px;--lg-control-height-small:32px;--lg-control-height-regular:40px;--lg-control-height-large:48px;--lg-control-height:var(--lg-control-height-regular);--lg-radius-control:999px;--lg-radius-item:12px;--lg-radius-panel:20px;--lg-disabled-opacity:.45;--lg-focus-color:var(--lg-tab-accent);--lg-duration-fast:.14s;--lg-duration:.2s;--lg-success-ink:#147d4a;--lg-warning-ink:#956000;--lg-foreground:#000;--lg-muted:#2d3037b8;--lg-secondary:#000000a8;--lg-grabber:#00000054;--lg-press-ink:#000000c4;--lg-transparency:.5;--lg-shine:1;--lg-contrast:.307;--lg-brightness:1.554;--lg-saturate:2.081;--lg-contrast-small:.314;--lg-brightness-small:1.511;--lg-saturate-small:2;--lg-dark:initial;--lg-drop-strength:1;--lg-tab-accent:#005fc9;--lg-fill-subtle:#7676801f;--lg-stepper:#0000000d;--lg-thumb:#fff;--lg-scrim:#0003;--lg-action:#00000026;--lg-sheet-opaque:#fff;--lg-fill-shade:11%;--lg-fill-alpha:100%;--lg-glass-tinted:#f7f7f9f5;--lg-glass-active:#ffffff57;--lg-edge:transparent;--lg-drop:#00000008;--lg-selection:transparent;--lg-selection-filter:saturate(1.39) brightness(.89);--lg-lens:transparent;--lg-surface:#fafafcdb;--lg-surface-edge:#00000014;--lg-shadow:#1919231f;--lg-highlight:#3c3c4317;--lg-separator:#0000001a;--lg-fill-edge:62%, #000;--lg-destructive:#c62938;--lg-destructive-ink:#dc1e30;--lg-menu-destructive:#dc1e30;--lg-track:#3b3b424d;--lg-rail:#0000001a;--lg-on:#34c759;--lg-fill:#005fc9;--lg-ring:var(--lg-focus-color);--lg-ease:cubic-bezier(.25, .1, .25, 1)}:where([data-theme=dark]){--lg-success-ink:#7ee2ac;--lg-warning-ink:#ffd071;--lg-foreground:#fff;--lg-muted:#ebebf5c2;--lg-secondary:#ffffffb8;--lg-grabber:#ffffff4d;--lg-press-ink:#fff;--lg-glass-tinted:#1e1e20f2;--lg-glass-active:#ffffff4d;--lg-edge:transparent;--lg-drop:#0000000d;--lg-contrast:.66;--lg-brightness:.83;--lg-saturate:1.7;--lg-contrast-small:.68;--lg-brightness-small:.98;--lg-saturate-small:1.6;--lg-dark:opacity(1);--lg-drop-strength:1.6;--lg-tab-accent:#62dcff;--lg-fill-subtle:#7676803d;--lg-stepper:#ffffff1a;--lg-thumb:#ffffff40;--lg-scrim:#0000007a;--lg-action:#ffffff1a;--lg-sheet-opaque:#1c1c1e;--lg-fill-shade:0%;--lg-fill-alpha:95%;--lg-selection:transparent;--lg-selection-filter:brightness(.75) saturate(1.7);--lg-lens:#ffffff0e;--lg-surface:#1c1c1fdb;--lg-surface-edge:#ffffff21;--lg-shadow:#00000061;--lg-highlight:#ebebf521;--lg-separator:#ebebf529;--lg-destructive:#c62938;--lg-destructive-ink:#ff8498;--lg-menu-destructive:#ff5254;--lg-fill-edge:70%, #fff;--lg-track:#ebebf54d;--lg-rail:#ffffff1a;--lg-on:#30d158;--lg-fill:#005fc9;--lg-ring:var(--lg-focus-color)}@media (prefers-color-scheme:dark){:where(:root:not([data-theme=light])){--lg-success-ink:#7ee2ac;--lg-warning-ink:#ffd071;--lg-foreground:#fff;--lg-muted:#ebebf5c2;--lg-secondary:#ffffffb8;--lg-grabber:#ffffff4d;--lg-press-ink:#fff;--lg-glass-tinted:#1e1e20f2;--lg-glass-active:#ffffff4d;--lg-edge:transparent;--lg-drop:#0000000d;--lg-contrast:.66;--lg-brightness:.83;--lg-saturate:1.7;--lg-contrast-small:.68;--lg-brightness-small:.98;--lg-saturate-small:1.6;--lg-dark:opacity(1);--lg-drop-strength:1.6;--lg-curve:var(--lg-svg-dark);--lg-tab-accent:#62dcff;--lg-fill-subtle:#7676803d;--lg-stepper:#ffffff1a;--lg-thumb:#ffffff40;--lg-scrim:#0000007a;--lg-action:#ffffff1a;--lg-sheet-opaque:#1c1c1e;--lg-fill-shade:0%;--lg-fill-alpha:95%;--lg-selection:transparent;--lg-selection-filter:brightness(.75) saturate(1.7);--lg-lens:#ffffff0e;--lg-surface:#1c1c1fdb;--lg-surface-edge:#ffffff21;--lg-shadow:#00000061;--lg-highlight:#ebebf521;--lg-separator:#ebebf529;--lg-destructive:#c62938;--lg-destructive-ink:#ff8498;--lg-menu-destructive:#ff5254;--lg-fill-edge:70%, #fff;--lg-track:#ebebf54d;--lg-rail:#ffffff1a;--lg-on:#30d158;--lg-fill:#005fc9;--lg-ring:var(--lg-focus-color)}}.lg-glass{--lg-clearness:clamp(0, (var(--lg-transparency) - .5) * 2, 1);--lg-size:1;--lg-glass:color-mix(in srgb, var(--lg-glass-tinted) calc(clamp(0, (.5 - var(--lg-transparency)) * 2, 1) * 100%), transparent);--lg-blur:calc(15.3px - 14px * var(--lg-clearness));--lg-regular-contrast:calc(var(--lg-contrast-small) + (var(--lg-contrast) - var(--lg-contrast-small)) * var(--lg-size));--lg-regular-brightness:calc(var(--lg-brightness-small) + (var(--lg-brightness) - var(--lg-brightness-small)) * var(--lg-size));--lg-regular-saturate:calc(var(--lg-saturate-small) + (var(--lg-saturate) - var(--lg-saturate-small)) * var(--lg-size));--lg-tone:contrast(calc(var(--lg-regular-contrast) + (.793 - var(--lg-regular-contrast)) * var(--lg-clearness))) brightness(calc(var(--lg-regular-brightness) + (1.205 - var(--lg-regular-brightness)) * var(--lg-clearness))) saturate(calc(var(--lg-regular-saturate) + (1.117 - var(--lg-regular-saturate)) * var(--lg-clearness)));--lg-curve:var(--lg-dark) var(--lg-size-curve);background-color:var(--lg-glass);-webkit-mask-box-image:var(--lg-mask,none);-webkit-mask-box-image:var(--lg-mask,none);mask-border:var(--lg-mask,none);-webkit-backdrop-filter:blur(var(--lg-lens-blur,var(--lg-blur))) var(--lg-filter,) var(--lg-curve,var(--lg-tone));backdrop-filter:blur(var(--lg-lens-blur,var(--lg-blur))) var(--lg-filter,) var(--lg-curve,var(--lg-tone));box-shadow:inset 0 0 0 .5px var(--lg-edge), 0 calc(4px + 4px * var(--lg-size)) calc(8px + 13px * var(--lg-size)) rgb(0 0 0/calc((.016 + .054 * var(--lg-size)) * var(--lg-drop-strength)));position:relative}.lg-glass:before{content:\"\";box-sizing:border-box;border:solid #0000;border-width:var(--lg-rim-y,0) var(--lg-rim-x,0);border-image:var(--lg-rim-image,none);pointer-events:none;position:absolute;inset:-1px}.lg-glass:after{content:\"\";border-radius:inherit;pointer-events:none;background:radial-gradient(circle 240px at var(--lg-x,50%) var(--lg-y,50%), #ffffff09, #ffffff06 50%, transparent);opacity:0;transition:opacity .22s ease-in-out;position:absolute;inset:0}.lg-glass[data-pressed]:after{opacity:1;transition-duration:0s}.lg-glass[data-copy]{-webkit-backdrop-filter:none;backdrop-filter:none}.lg-glass-copy{transform-origin:0 0;pointer-events:none;margin:0;position:absolute;top:0;left:0;overflow:hidden}.lg-glass-copy>div{transform-origin:0 0;position:absolute;top:0;left:0}.lg-message{--lg-message-accent:var(--lg-tab-accent);--lg-edge:color-mix(in srgb, var(--lg-message-accent) 25%, transparent);--lg-glass-tinted:color-mix(in srgb, var(--lg-surface), var(--lg-message-accent) 8%);--lg-transparency:.25;min-width:0;color:var(--lg-foreground);text-align:start;border-radius:12px;align-items:center;gap:12px;padding:9px 12px;font-size:13px;line-height:1.45;display:flex}.lg-message[data-tone=error]{--lg-message-accent:var(--lg-destructive-ink)}.lg-message-body{overflow-wrap:anywhere;flex:1;align-items:flex-start;gap:8px;min-width:0;display:flex}.lg-message-body>svg{color:var(--lg-message-accent);flex:none;margin-block-start:1px}.lg-message>.lg-button{font-size:inherit;flex:none}.lg-button{box-sizing:border-box;height:var(--lg-control-height);padding:0 var(--lg-space-4);border-radius:var(--lg-radius-control);color:var(--lg-foreground);font:inherit;font-size:var(--lg-font-size);white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;border:0;justify-content:center;align-items:center;gap:8px;font-weight:500;line-height:20px;transition:background-color .2s,color .2s;display:inline-flex}.lg-button[data-size=small]{height:var(--lg-control-height-small);padding:0 var(--lg-space-3)}.lg-button[data-size=large]{height:var(--lg-control-height-large);padding:0 var(--lg-space-5)}.lg-button[data-icon]{padding-left:10px}.lg-button[data-icon=only]{width:var(--lg-control-height);height:var(--lg-control-height);border-radius:var(--lg-radius-control);padding:0}.lg-button[data-icon=only][data-size=small]{width:var(--lg-control-height-small);height:var(--lg-control-height-small)}.lg-button[data-icon=only][data-size=large]{width:var(--lg-control-height-large);height:var(--lg-control-height-large)}.lg-button>svg{flex:none;width:20px;height:20px}.lg-button:is(:active,[data-pressed]){color:var(--lg-press-ink);background-color:var(--lg-glass-active);transition-duration:0s}.lg-button:is([data-tint],[data-destructive]):is(:active,[data-pressed]){color:color-mix(in srgb, var(--lg-tint) 77%, transparent)}@media (hover:hover) and (pointer:fine){.lg-button:hover{background-color:var(--lg-glass-active)}}.lg-button:disabled{background-color:var(--lg-glass);opacity:var(--lg-disabled-opacity);cursor:not-allowed}.lg-button[data-destructive]:not([data-tint]){--lg-tint:var(--lg-destructive-ink)}.lg-button[data-variant=filled][data-destructive]:not([data-tint]){--lg-tint:var(--lg-destructive)}.lg-button:is([data-tint],[data-destructive]){color:var(--lg-tint)}.lg-button[data-variant=filled]{--lg-button-fill:var(--lg-tint,var(--lg-fill));--lg-tone:none;--lg-curve:initial;color:#fff;box-shadow:inset 0 1px 0 #ffffff38, inset 0 -1px 0 #ffffff24, 0 0 0 .67px color-mix(in srgb, var(--lg-button-fill) var(--lg-fill-edge))}.lg-button[data-variant=filled]:before{display:none}.lg-button[data-variant=filled]:is(:active,[data-pressed]){color:#fff}.lg-button[data-variant=filled],.lg-button[data-variant=filled]:disabled{background-color:color-mix(in srgb, color-mix(in srgb, var(--lg-button-fill) calc(100% - var(--lg-fill-shade)), #000) var(--lg-fill-alpha), transparent)}.lg-button[data-variant=filled]:is(:active,[data-pressed]){background-color:color-mix(in srgb, var(--lg-button-fill) 88%, #fff)}@media (hover:hover) and (pointer:fine){.lg-button[data-variant=filled]:hover,.lg-button[data-variant=filled]:hover:is(:active,[data-pressed]){background-color:color-mix(in srgb, var(--lg-button-fill) 88%, #fff)}}.lg-button:focus-visible,.lg-tab:focus-visible,.lg-switch:focus-visible,.lg-menu-item:focus-visible{outline:2px solid var(--lg-ring);outline-offset:2px}.lg-tab-bar{--lg-tab-width:84px;--lg-tab-height:32px;--lg-lens-grow-x:27px;--lg-lens-grow-y:20px;border-radius:calc(var(--lg-tab-height) / 2 + 4px);touch-action:pan-y;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;padding:4px;display:inline-flex;position:relative}.lg-tab-bar[data-icons]{--lg-tab-width:86px;--lg-tab-height:54px;--lg-lens-grow-x:21px;padding:4px 8.5px}.lg-tab-face{flex:1;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.lg-tab-bar[data-icons] :is(.lg-tab-face,.lg-tab-copy){flex-direction:column;gap:4px;font-size:11px;font-weight:500}.lg-tab-label{white-space:nowrap;line-height:20px;display:block}.lg-tab-bar[data-icons] .lg-tab-label{line-height:14px}.lg-tab-bar[data-icons] .lg-tab-icon{flex:none;width:24px;height:24px}.lg-tab-bar[data-icons] .lg-tab{color:var(--lg-foreground)}.lg-tab-bar[data-icons] .lg-tab-tint{width:calc(var(--lg-tab-width) + 8px);color:var(--lg-tab-accent);left:4.5px}.lg-tab-bar[data-icons] .lg-tab-row{margin-left:4px}.lg-tab-bar:not([data-lifted]) .lg-tab-tint{z-index:3}.lg-tab-bar[data-icons] .lg-tab-lens{width:calc(var(--lg-tab-width) + 8px);left:4.5px}.lg-tab-icon{justify-content:center;align-items:center;width:28px;height:28px;display:flex}.lg-tab-icon>svg{width:100%;height:100%}.lg-tab-bar-glass{border-radius:inherit;pointer-events:none;transition:width .42s cubic-bezier(.3,1.25,.4,1),height .42s cubic-bezier(.3,1.25,.4,1),top .42s cubic-bezier(.3,1.25,.4,1);position:absolute;inset:0}.lg-tab-bar[data-minimized] .lg-tab-bar-glass{border-radius:20px;width:49px;height:39px;top:calc(100% - 39px);bottom:auto;right:auto}.lg-tab-bar :is(.lg-tab,.lg-tab-tint,.lg-tab-lens){transition-property:opacity,color;transition-duration:.2s}.lg-tab-bar[data-minimized] :is(.lg-tab,.lg-tab-tint,.lg-tab-lens){pointer-events:none;opacity:0!important}.lg-tab-mini{z-index:3;width:49px;height:39px;color:var(--lg-tab-accent);cursor:pointer;opacity:0;pointer-events:none;background:0 0;border:0;place-items:center;padding:0;transition:opacity .2s;display:grid;position:absolute;bottom:0;left:0}.lg-tab-mini>.lg-tab-icon{width:24px;height:24px}.lg-tab-bar[data-minimized] .lg-tab-mini{opacity:1;pointer-events:auto}.lg-tab-bar-glass:after{background:radial-gradient(circle 260px at var(--lg-x,20%) 50%, #ffffff17, #ffffff0b 60%, transparent);opacity:0;transition:opacity .16s}.lg-tab,.lg-tab-copy{width:var(--lg-tab-width);height:var(--lg-tab-height);font:inherit;flex:none;justify-content:center;align-items:center;font-size:14px;display:flex}.lg-tab{z-index:1;border-radius:calc(var(--lg-tab-height) / 2);color:var(--lg-muted);cursor:pointer;-webkit-touch-callout:none;background:0 0;border:0;padding:0;text-decoration:none;transition:color .2s;position:relative}.lg-tab:focus-visible{outline-offset:-2px}@media (hover:hover) and (pointer:fine){.lg-tab:hover{color:var(--lg-foreground)}}.lg-tab-lens,.lg-tab-tint{width:var(--lg-tab-width);height:var(--lg-tab-height);border-radius:calc(var(--lg-tab-height) / 2);pointer-events:none;transform:translateX(calc(var(--lg-tab-width) * var(--lg-index,0)));will-change:transform;transition:opacity .14s;position:absolute;top:4px;left:4px}.lg-tab-tint{z-index:1;color:var(--lg-foreground);overflow:hidden}.lg-tab-bend,.lg-tab-clip{display:block;position:absolute;inset:0}.lg-tab-clip{clip-path:inset(0)}.lg-tab-row{height:100%;transform:translateX(calc(var(--lg-tab-width) * var(--lg-index,0) * -1));transform-origin:0 0;display:flex}.lg-tab-lens.lg-glass{z-index:2;-webkit-backdrop-filter:var(--lg-selection-filter,none);backdrop-filter:var(--lg-selection-filter,none);box-shadow:none;background-color:#0000;background-image:none;transition:opacity .14s,background-color .14s}.lg-tab-bar[data-lifted] .lg-tab-lens.lg-glass{background-color:var(--lg-lens);background-image:var(--lg-rim,none);-webkit-backdrop-filter:none;backdrop-filter:none;background-size:100% 100%;transition-duration:.1s}.lg-tab-lens:before{content:\"\";border-radius:inherit;background:var(--lg-selection);transition:opacity .14s;position:absolute;inset:0}.lg-tab-lens[data-pressed]:after{opacity:.2}.lg-tab-bar[data-lifted] .lg-tab-lens:before{opacity:0;transition-duration:.1s}.lg-tab-bar[data-refracting] .lg-tab-lens.lg-glass{background-image:var(--lg-rim,none);-webkit-backdrop-filter:var(--lg-filter,none);backdrop-filter:var(--lg-filter,none);background-size:100% 100%}:is(.lg-tab-bar[data-hidden] :is(.lg-tab-lens,.lg-tab-tint),.lg-tab-bar:not([data-ready]):not(:has([data-selected])) :is(.lg-tab-lens,.lg-tab-tint)){opacity:0}.lg-input{align-items:center;gap:var(--lg-space-2);box-sizing:border-box;width:100%;max-width:360px;height:var(--lg-control-height);padding:0 var(--lg-space-4);border-radius:var(--lg-radius-control);color:var(--lg-foreground);font-size:var(--lg-font-size);transition:background-color .2s;display:flex}.lg-input:focus-within{background-color:var(--lg-glass-active)}.lg-input[data-variant=fill]{background:var(--lg-fill-subtle);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}.lg-input[data-variant=fill]:before{display:none}.lg-input input{min-width:0;height:100%;color:inherit;font:inherit;font-size:var(--lg-font-size);background:0 0;border:0;outline:0;flex:1;padding:0}.lg-input input::placeholder{color:var(--lg-muted)}.lg-input input::-webkit-search-cancel-button{display:none}.lg-input-icon{width:16px;height:16px;color:var(--lg-muted);flex:none;place-items:center;display:grid}.lg-input-icon>svg{width:100%;height:100%}.lg-input-clear{width:32px;height:32px;color:var(--lg-muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;place-items:center;margin-right:-8px;padding:0;display:grid}.lg-input-clear svg{width:14px;height:14px}.lg-input:has(input:disabled){opacity:var(--lg-disabled-opacity);cursor:not-allowed}.lg-switch-thumb,.lg-slider-thumb{--lg-transparency:1;--lg-blur:0px;--lg-tone:saturate(1);--lg-shine:.6;pointer-events:none;box-shadow:0 0 0 .5px rgb(0 0 0/calc(.3 * var(--lg-lift,0))), 0 4px 14px rgb(0 0 0/calc(.16 * var(--lg-lift,0)));border-radius:999px;position:absolute}.lg-switch-thumb:before,.lg-slider-thumb:before,.lg-segmented-lens:before{background:var(--lg-rim,none) 0 0 / 100% 100%;opacity:var(--lg-lift,0);border:0;inset:-1px}.lg-slider-thumb{box-shadow:0 0 0 .5px rgb(0 0 0/calc(.3 * var(--lg-lift,0))), 0 4px 14px #00000024}.lg-thumb-face{border-radius:inherit;background:#fff;position:absolute;inset:0}.lg-switch{--lg-scale:.375;width:calc(168px * var(--lg-scale));height:calc(74.67px * var(--lg-scale));background:var(--lg-track);cursor:pointer;touch-action:pan-y;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border:0;border-radius:999px;flex:none;padding:0;position:relative}.lg-switch:before{content:\"\";inset:min(0px, calc((74.67px * var(--lg-scale) - 44px) / 2)) -8px;position:absolute}.lg-switch-fill{border-radius:inherit;background:var(--lg-on);opacity:0;position:absolute;inset:0}.lg-switch-thumb{width:59px;height:38.3px;top:50%;left:-9px;transform:translateY(-50%)scale(.627)}.lg-switch[aria-checked=true] .lg-switch-fill{opacity:1}.lg-switch[aria-checked=true] .lg-switch-thumb{transform:translate(22px,-50%)scale(.627)}.lg-switch:disabled{opacity:.35;cursor:default}.lg-slider{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;height:40px;position:relative}.lg-slider-track{background:var(--lg-rail);pointer-events:none;border-radius:3px;height:6px;position:absolute;inset:17px 0 auto;overflow:hidden}.lg-slider-fill{height:100%;width:calc(var(--lg-progress) * 100%);background:var(--lg-fill);border-radius:3px;display:block}.lg-slider-thumb{top:1.5px;left:calc((100% - 37px) * var(--lg-progress) - 11px);width:59px;height:38.3px;scale:.627}.lg-slider input{z-index:1;cursor:pointer;appearance:none;touch-action:pan-y;-webkit-tap-highlight-color:transparent;background:0 0;outline:none;width:100%;height:40px;margin:0;display:block;position:relative}@media (pointer:coarse){.lg-slider{touch-action:pan-y}.lg-slider input{pointer-events:none}}.lg-slider input::-webkit-slider-runnable-track{background:0 0;height:6px}.lg-slider input::-webkit-slider-thumb{width:37px;height:40px;box-shadow:none;opacity:0;touch-action:none;appearance:none;background:0 0;border:0;margin-top:-17px}.lg-slider input::-moz-range-track{background:0 0;height:6px}.lg-slider input::-moz-range-thumb{width:37px;height:40px;box-shadow:none;opacity:0;background:0 0;border:0}.lg-slider:has(input:focus-visible) .lg-slider-thumb{outline:2px solid var(--lg-ring);outline-offset:3px}.lg-slider:has(input:disabled){opacity:.35}.lg-slider input:disabled{cursor:default}.lg-menu{display:inline-flex;position:relative}:where(.lg-menu-card){--lg-destructive-ink:var(--lg-menu-destructive)}.lg-menu-card{z-index:1000;box-sizing:border-box;width:max-content;height:auto;min-width:max(250px, var(--lg-menu-min-width,0px));max-width:calc(100vw - 16px);color:var(--lg-foreground);touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:33px;margin:0;padding:0;font-size:17px;position:fixed;inset:auto;overflow:visible}.lg-menu-card[data-scrolls]{touch-action:pan-y}.lg-menu-card:focus{outline:none}.lg-menu-card[data-phase=leaving]{pointer-events:none}.lg-menu-card[data-morphing] .lg-menu-surface{box-shadow:inset 0 1px 0 #ffffff59, inset 0 -1px 0 #ffffff40, 0 0 0 .5px #00000024, 0 12px 40px var(--lg-shadow);-webkit-mask-box-image:;mask-border:}.lg-menu-card[data-morphing] .lg-menu-surface:before{display:none}.lg-menu-surface{--lg-size:1;border-radius:inherit;width:100%;height:100%;box-shadow:inset 0 0 0 .5px var(--lg-edge), 0 12px 40px var(--lg-shadow);pointer-events:none;position:absolute;top:0;left:0}.lg-menu-glyph{box-sizing:border-box;pointer-events:none;place-items:center;width:40px;height:40px;display:grid;position:absolute;top:0;left:0}.lg-menu-glyph>svg{width:20px;height:20px}.lg-menu>.lg-button,.lg-menu-card[data-label] .lg-menu-glyph{white-space:nowrap}.lg-menu-card[data-label] .lg-menu-glyph{justify-content:center;gap:8px;display:flex}.lg-button>.lg-menu-chevron,.lg-menu-glyph>.lg-menu-chevron{opacity:.6;width:12px;height:12px;margin-left:-2px}.lg-menu-content{box-sizing:border-box;flex-direction:column;padding:10px 8px;display:flex;position:relative}.lg-menu-card[data-scrolls] .lg-menu-content{overscroll-behavior:contain;overflow:hidden auto}.lg-menu-card:after{content:\"\";border-radius:inherit;pointer-events:none;opacity:0;background:linear-gradient(135deg,#ffffff1c,#ffffff06);transition:opacity .12s ease-out;position:absolute;inset:0}.lg-menu-card[data-pressed]:after{opacity:1}.lg-menu-plate{background:var(--lg-highlight);opacity:0;pointer-events:none;border-radius:21px;transition:transform .1s cubic-bezier(.2,.8,.2,1),opacity 80ms ease-out;position:absolute;top:0;left:0}.lg-menu-item{z-index:1;box-sizing:border-box;min-height:42px;color:inherit;font:inherit;text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:21px;align-items:center;gap:12px;padding:6px 20px;text-decoration:none;display:flex;position:relative}.lg-menu-item>svg{flex:none;width:24px;height:24px}.lg-menu-item:focus-visible{outline-offset:-2px;background:var(--lg-highlight)}@media (hover:hover) and (pointer:fine){.lg-menu-item:hover:not(:disabled){background:var(--lg-highlight)}}.lg-menu-card[data-scrubbing] .lg-menu-item{background:0 0;outline:none}.lg-menu-item[data-destructive]{color:var(--lg-destructive-ink)}.lg-menu-item:disabled{opacity:.38;cursor:default}.lg-menu-separator{border-top:1px solid var(--lg-separator);flex:none;margin:10px 16px}.lg-menu-heading{color:var(--lg-muted);white-space:nowrap;flex:none;padding:8px 20px 3px;font-size:13px}.lg-menu-plate+.lg-menu-heading{padding-top:4px}.lg-menu-check{flex:none;place-items:center;width:16px;height:16px;margin-right:-2px;display:grid}.lg-menu-check>svg{width:14px;height:14px}@media (prefers-reduced-motion:reduce){.lg-menu-plate{transition:opacity 80ms ease-out}.lg-menu-card{animation:.1s ease-out lg-menu-fade}.lg-alert-card{animation:.1s ease-out lg-fade-in}.lg-spinner>i{animation-duration:1.6s}}@keyframes lg-menu-fade{0%{opacity:0}}.lg-toolbar{z-index:1;justify-content:space-between;align-items:center;gap:12px;padding:8px 16px;display:flex;position:sticky;top:0}.lg-toolbar[data-edge]:before{content:\"\";z-index:-1;pointer-events:none;opacity:0;transition:opacity .2s var(--lg-ease);position:absolute;inset:0 0 -24px}.lg-toolbar[data-scrolled]:before{opacity:1}.lg-toolbar[data-edge=uniform]:before{background:color-mix(in srgb, var(--lg-glass-tinted) 72%, transparent);-webkit-backdrop-filter:blur(18px)saturate(1.6);backdrop-filter:blur(18px)saturate(1.6);-webkit-mask-image:linear-gradient(#000 calc(100% - 24px),#0000);mask-image:linear-gradient(#000 calc(100% - 24px),#0000)}.lg-toolbar[data-edge=soft]:before{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);-webkit-mask-image:linear-gradient(#000 40%,#0000);mask-image:linear-gradient(#000 40%,#0000)}.lg-toolbar-group{border-radius:22px;align-items:center;height:44px;display:flex}.lg-toolbar-group>.lg-button{border-radius:22px;height:44px}.lg-toolbar-group>.lg-button[data-icon=only]{width:50px}.lg-toolbar-group>.lg-button[data-icon=only]:only-child{width:44px}.lg-toolbar-group>.lg-button>svg{width:26px;height:26px}.lg-toolbar-group>.lg-button:not([data-variant=filled]):before{display:none}.lg-toolbar-group>.lg-button:not([data-variant=filled]){box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background-color:#0000}@media (hover:hover) and (pointer:fine){.lg-toolbar-group>.lg-button:not([data-variant=filled]):hover{background-color:var(--lg-glass-active)}}.lg-toolbar-group>.lg-button:not([data-variant=filled]):after{display:none}.lg-toolbar-group{transition:background-color .2s}.lg-toolbar-group[data-pressed]{background-color:var(--lg-glass-active);transition-duration:0s}.lg-toolbar-group>.lg-glass-copy{display:none}.lg-nav{grid-template-columns:minmax(max-content,1fr) minmax(0,auto) minmax(max-content,1fr);display:grid}.lg-nav-side{align-items:center;gap:8px;min-width:0;display:flex}.lg-nav-side[data-side=trailing]{justify-content:flex-end}.lg-nav-title{min-width:0;color:var(--lg-foreground);text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:600;line-height:22px;overflow:hidden}.lg-nav[data-large] .lg-nav-title{opacity:0;transition:opacity .2s var(--lg-ease)}.lg-nav[data-large][data-collapsed] .lg-nav-title{opacity:1}.lg-nav-large{color:var(--lg-foreground);overflow-wrap:anywhere;padding:0 16px 8px;font-size:34px;font-weight:700;line-height:41px}.lg-glass-group{align-items:center;display:inline-flex;position:relative}.lg-glass-group-shape,.lg-glass-group-layer{pointer-events:none;width:calc(100% + 48px);height:calc(100% + 48px);position:absolute;top:-24px;left:-24px}.lg-glass-group-shape{box-shadow:none}.lg-glass-group-layer{overflow:visible}.lg-glass-group>:not(.lg-glass-group-shape,.lg-glass-group-layer){position:relative}.lg-glass-group-shadow path{fill:var(--lg-drop);filter:blur(4px);transform:translateY(4px)}.lg-glass-group-hairline,.lg-glass-group-line{fill:none;stroke-width:.67px}.lg-glass-group-hairline{stroke:#0000004d;stroke-width:1px}.lg-glass-group>.lg-glass:not(.lg-glass-group-shape,[data-variant=filled]){-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;background-color:#0000}.lg-glass-group>.lg-glass:not(.lg-glass-group-shape,[data-variant=filled]):before,.lg-glass-group>.lg-glass-copy{display:none}.lg-segmented{box-sizing:border-box;background:var(--lg-fill-subtle);height:32px;color:var(--lg-foreground);touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;border-radius:16px;grid-auto-columns:1fr;grid-auto-flow:column;font-size:14px;display:grid;position:relative}.lg-segmented-lens{z-index:1;--lg-transparency:1;--lg-blur:0px;--lg-tone:saturate(1);--lg-shine:.6;width:calc(100% / var(--lg-segments) + 21px);visibility:hidden;pointer-events:none;height:44px;box-shadow:0 0 0 .5px rgb(0 0 0/calc(.3 * var(--lg-lift,0))), 0 4px 14px rgb(0 0 0/calc(.16 * var(--lg-lift,0)));border-radius:22px;position:absolute;top:50%;left:-10.5px}.lg-segmented-thumb{width:calc(100% / var(--lg-segments) - 4px);background:var(--lg-thumb);pointer-events:none;border-radius:14px;position:absolute;top:2px;bottom:2px;left:2px;box-shadow:0 1px 4px #0000001a}.lg-segment{min-width:0;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:14px;padding:0 8px;transition:opacity .16s;position:relative}.lg-segment[aria-checked=true]{font-weight:500}.lg-segment:active:not(:disabled,[aria-checked=true]){opacity:.6}.lg-segment:disabled{opacity:.35;cursor:default}.lg-segment:focus-visible,.lg-stepper-button:focus-visible,.lg-alert-action:focus-visible{outline:2px solid var(--lg-ring);outline-offset:-2px}.lg-stepper{background:var(--lg-stepper);height:32px;color:var(--lg-foreground);border-radius:16px;flex:none;align-items:center;display:inline-flex}.lg-stepper-button{width:46px;height:100%;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:16px;flex:none;place-items:center;padding:0;transition:background-color .16s;display:grid}.lg-stepper-button:active:not(:disabled){background:var(--lg-stepper);transition-duration:0s}.lg-stepper-button:disabled{opacity:.3;cursor:default}.lg-stepper-button>svg{width:16px;height:16px}.lg-stepper-divider{background:var(--lg-separator);flex:none;width:1px;height:16px;margin:0 -.5px}.lg-page-control{height:26px;color:var(--lg-foreground);border-radius:13px;flex:none;align-items:center;padding:0 8px;display:inline-flex}.lg-page-control:not(.lg-glass){padding:0}.lg-page-dots{align-items:center;display:flex}.lg-page-dot{width:16px;height:26px;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;place-items:center;padding:0;display:grid}.lg-page-dot:before{content:\"\";opacity:.3;background:currentColor;border-radius:50%;width:7px;height:7px;transition:opacity .16s,transform .16s}.lg-page-dot[aria-current=page]:before{opacity:1}.lg-page-dot:active:before{transform:scale(.85)}.lg-page-dot:focus-visible{outline:2px solid var(--lg-ring);outline-offset:-2px;border-radius:8px}.lg-progress{background:var(--lg-fill-subtle);border-radius:2px;height:4px;overflow:hidden}.lg-progress-fill{border-radius:inherit;background:var(--lg-fill);height:100%;transform:scaleX(var(--lg-progress));transform-origin:0 0;transition:transform .3s var(--lg-ease);display:block}.lg-spinner{width:20px;height:20px;color:var(--lg-muted);display:inline-block;position:relative}.lg-spinner>i{transform-origin:1.25px 10px;width:2.5px;height:6px;transform:rotate(calc(var(--lg-blade) * 45deg));animation:.8s linear infinite lg-spin;animation-delay:calc((var(--lg-blade) - 8) * .1s);background:currentColor;border-radius:1.25px;position:absolute;top:0;left:calc(50% - 1.25px)}@keyframes lg-spin{0%{opacity:1}to{opacity:.2}}.lg-modal{z-index:1000;box-sizing:border-box;width:100%;max-width:none;height:100%;max-height:none;color:var(--lg-foreground);background:0 0;border:0;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}.lg-modal:not([open]){display:none}.lg-modal:focus{outline:none}.lg-modal::backdrop{background:0 0}.lg-modal-scrim{background:var(--lg-scrim);position:absolute;inset:0}.lg-alert[open]{place-items:center;padding-top:28px;display:grid}.lg-alert .lg-modal-scrim{transition:opacity .12s ease-out;animation:.2s ease-out lg-fade-in}.lg-alert-card{--lg-card-width:min(320px, calc(100vw - 48px));box-sizing:border-box;width:var(--lg-card-width);animation:lg-fade-in .1s ease-out 50ms backwards, lg-alert-settle .24s 50ms backwards linear(0, .08 7%, .176 14%, .352 21%, .5 28%, .6 35%, .7 42%, .8 49%, .848 56%, .9 63%, .952 77%, 1);border-radius:33px;transition:opacity .12s ease-out;box-shadow:0 8px 40px #0000002e}.lg-alert[data-phase=leaving] :is(.lg-modal-scrim,.lg-alert-card){opacity:0}@keyframes lg-fade-in{0%{opacity:0}}@keyframes lg-alert-settle{0%{transform:scale(1.125)}}.lg-alert-text{padding:23px 30px 20px}.lg-alert-title{margin:0;font-size:17px;font-weight:600;line-height:22px}.lg-alert-message{color:var(--lg-secondary);margin:7px 0 0;font-size:15px;line-height:20px}.lg-alert-actions{grid-auto-columns:1fr;grid-auto-flow:column;gap:8px;padding:0 16px 16px;display:grid}.lg-alert-actions[data-stacked]{grid-auto-flow:row}.lg-alert-action{height:48px;color:inherit;background:var(--lg-action);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;border:0;border-radius:24px;padding:0 12px;font-size:17px;font-weight:500;transition:filter .16s}.lg-alert-action:active{filter:brightness(.9);transition-duration:0s}.lg-alert-action[data-destructive]{color:var(--lg-destructive-ink)}.lg-context-target{-webkit-touch-callout:none}.lg-context .lg-modal-scrim{transition:opacity .16s ease-out;animation:.2s ease-out lg-fade-in}.lg-context[data-phase=leaving] .lg-modal-scrim{opacity:0}.lg-context-lift{pointer-events:none;position:absolute}.lg-context-card{width:max-content;min-width:250px;max-width:calc(100vw - 16px);box-shadow:0 12px 40px var(--lg-shadow);border-radius:33px;font-size:17px;position:absolute}.lg-sheet{flex-direction:column;display:flex;position:absolute;box-shadow:0 8px 40px #0000002e}.lg-sheet:after{background:var(--lg-sheet-opaque);border-radius:inherit;opacity:var(--lg-sheet-full,0);transition:none}.lg-sheet[data-dragging]{-webkit-user-select:none;user-select:none}.lg-sheet-handle{z-index:1;box-sizing:border-box;touch-action:none;cursor:grab;flex:none;justify-content:center;height:30px;padding-top:5.67px;display:flex;position:relative}.lg-sheet-grabber{background:var(--lg-grabber);border-radius:2px;flex:none;width:57px;height:4px}.lg-sheet-content{z-index:1;overscroll-behavior:contain;flex:1;min-height:0;position:relative;overflow:auto}.lg-grow[data-open]{animation:.65s ease-out lg-grow;animation-timing-function:linear(0, .191 4.2%, .559 8.3%, .873 12.5%, 1.048 16.7%, 1.113 20.8%, 1.101 25%, 1.063 29.2%, 1.023 33.3%, .998 37.5%, .988 41.7%, .987 45.8%, .992 50%, 1)}.lg-grow[data-closed]{animation:.18s ease-in forwards lg-shrink}@keyframes lg-grow{0%{opacity:.4;scale:.4}}@keyframes lg-shrink{to{opacity:0;scale:.5}}@media (prefers-reduced-motion:reduce){.lg-grow[data-open]{animation:.1s ease-out lg-fade-in}.lg-grow[data-closed]{animation:none}}@media (prefers-reduced-transparency:reduce){.lg-glass{--lg-transparency:0}}@media (prefers-contrast:more){.lg-glass{--lg-transparency:0;--lg-edge:color-mix(in srgb, var(--lg-foreground) 45%, transparent)}}.lg-visually-hidden,.lg-choice-input{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.lg-choice{color:var(--lg-foreground);font:inherit;cursor:pointer;align-items:flex-start;gap:10px;font-size:14px;line-height:24px;display:inline-flex;position:relative}.lg-choice-input{clip-path:none;opacity:0;z-index:1;width:22px;height:22px;cursor:inherit;margin:1px 0 0}.lg-choice-control{box-sizing:border-box;border:1px solid color-mix(in srgb, var(--lg-foreground) 28%, transparent);color:#fff;border-radius:7px;flex:0 0 22px;place-items:center;width:22px;height:22px;margin-top:1px;transition:background-color .16s,border-color .16s,transform .16s;display:grid}.lg-choice-control svg{width:20px;height:20px}.lg-choice-check,.lg-choice-mixed{opacity:0}.lg-choice-input:checked+.lg-choice-control,.lg-choice-input:indeterminate+.lg-choice-control{background:var(--lg-tint,var(--lg-fill));border-color:#0000}.lg-choice-input:checked:not(:indeterminate)+.lg-choice-control .lg-choice-check,.lg-choice-input:indeterminate+.lg-choice-control .lg-choice-mixed{opacity:1}.lg-choice:active:not([data-disabled]) .lg-choice-control{transform:scale(.94)}.lg-choice-input:focus-visible+.lg-choice-control,.lg-select-trigger:focus-visible,.lg-textarea:focus-within,.lg-dismiss:focus-visible{outline:2px solid var(--lg-tint,var(--lg-tab-accent));outline-offset:3px}.lg-choice[data-disabled],.lg-textarea[data-disabled]{opacity:.45;cursor:not-allowed}.lg-choice:has(:disabled){opacity:.45;cursor:not-allowed}.lg-choice-text{gap:2px;display:grid}.lg-choice-description{color:var(--lg-secondary);font-size:12px;line-height:1.5}.lg-radio-control{border-radius:50%}.lg-radio-control>span{background:#fff;border-radius:50%;width:8px;height:8px;transition:transform .16s;transform:scale(0)}.lg-choice-input:checked+.lg-radio-control>span{transform:scale(1)}.lg-textarea{box-sizing:border-box;width:100%;min-width:0;color:var(--lg-foreground);border-radius:18px;padding:14px 16px;font-size:14px}.lg-textarea[data-variant=fill]{background:var(--lg-fill-subtle);-webkit-backdrop-filter:none;box-shadow:none}.lg-textarea[data-variant=fill]:before{display:none}.lg-textarea textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:2.8em;color:inherit;font:inherit;background:0 0;border:0;outline:0;margin:0;padding:0;line-height:1.7;display:block}.lg-textarea textarea::placeholder{color:var(--lg-muted)}.lg-textarea-count{text-align:end;color:var(--lg-secondary);font-variant-numeric:tabular-nums;margin-top:6px;font-size:11px;display:block}.lg-select{width:100%;min-width:0;display:inline-block;position:relative}.lg-select-trigger{box-sizing:border-box;width:100%;min-height:var(--lg-control-height);padding:max(4px, calc((var(--lg-control-height) - 20px) / 2)) var(--lg-space-4);border-radius:var(--lg-radius-control);color:var(--lg-foreground);font:inherit;font-size:var(--lg-font-size);text-align:start;cursor:pointer;border:0;justify-content:space-between;align-items:center;gap:16px;line-height:20px;display:flex}.lg-select-trigger>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lg-select-trigger svg{flex:none;width:16px;height:16px;transition:transform .16s}.lg-select-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.lg-select-trigger[data-placeholder]{color:var(--lg-secondary)}.lg-select-trigger:disabled{opacity:.45;cursor:not-allowed}.lg-select-trigger[aria-invalid=true]{outline:2px solid var(--lg-destructive-ink);outline-offset:2px}.lg-select-list{min-width:120px;padding:6px}.lg-select-option{cursor:pointer;overflow-wrap:anywhere;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;padding:9px 12px;display:flex}.lg-select-option[data-active]{background:var(--lg-highlight)}.lg-select-option[aria-selected=true]{color:var(--lg-tint,var(--lg-tab-accent));font-weight:600}.lg-select-option[aria-disabled=true]{opacity:.4;cursor:not-allowed}.lg-select-empty{text-align:center;color:var(--lg-secondary);padding:16px}.lg-floating-anchor{vertical-align:middle;align-items:center;display:inline-flex}.lg-floating{--lg-transparency:.18;z-index:1000;box-sizing:border-box;color:var(--lg-foreground);font:inherit;text-align:start;overscroll-behavior:contain;box-shadow:0 12px 40px var(--lg-shadow), inset 0 0 0 .5px var(--lg-surface-edge);border:0;border-radius:18px;margin:0;font-size:14px;line-height:1.5;animation:.15s ease-out lg-floating-enter;position:fixed;inset:auto;overflow:auto}.lg-floating:focus{outline:none}.lg-floating:focus-visible{outline:2px solid var(--lg-ring);outline-offset:2px}.lg-tooltip{overflow-wrap:anywhere;border-radius:12px;width:max-content;max-width:280px;padding:8px 12px;font-size:12px}.lg-popover{overflow-wrap:anywhere;padding:20px}.lg-popover-title{margin-bottom:12px;font-size:15px;font-weight:650}@keyframes lg-floating-enter{0%{opacity:0;translate:0 3px}to{opacity:1;translate:0}}.lg-card{--lg-card-padding:22px;box-sizing:border-box;min-width:0;color:var(--lg-foreground);overflow-wrap:anywhere;border-radius:24px;font-size:14px;line-height:1.6}.lg-card[data-padding=small]{--lg-card-padding:16px}.lg-card[data-padding=large]{--lg-card-padding:30px}.lg-card-cover{border-radius:24px 24px 0 0;overflow:hidden}.lg-card-cover>img{object-fit:cover;width:100%;display:block}.lg-card-header{padding:var(--lg-card-padding) var(--lg-card-padding) 0;align-items:flex-start;gap:16px;display:flex}.lg-card-heading{flex:1;min-width:0}.lg-card-title{letter-spacing:-.02em;font-size:17px;font-weight:650;line-height:1.4}.lg-card-description{color:var(--lg-secondary);margin-top:5px;font-size:12px}.lg-card-extra{flex:none}.lg-card-body{padding:var(--lg-card-padding)}.lg-card-footer{padding:14px var(--lg-card-padding);border-top:1px solid var(--lg-separator)}:where(.lg-tag,.lg-badge-mark){--lg-status:var(--lg-secondary)}:where(.lg-tag,.lg-badge-mark)[data-tone=info]{--lg-status:var(--lg-tab-accent)}:where(.lg-tag,.lg-badge-mark)[data-tone=success]{--lg-status:var(--lg-success-ink)}:where(.lg-tag,.lg-badge-mark)[data-tone=warning]{--lg-status:var(--lg-warning-ink)}:where(.lg-tag,.lg-badge-mark)[data-tone=danger]{--lg-status:var(--lg-destructive-ink)}.lg-tag{box-sizing:border-box;max-width:100%;color:color-mix(in srgb, var(--lg-status) 80%, var(--lg-foreground));background-color:color-mix(in srgb, var(--lg-status) 12%, transparent);box-shadow:inset 0 0 0 .5px color-mix(in srgb, var(--lg-status) 25%, transparent);overflow-wrap:anywhere;border-radius:10px;align-items:center;gap:6px;padding:3px 10px;font-size:12px;line-height:22px;display:inline-flex}.lg-tag>svg{flex:none;width:14px;height:14px}.lg-dismiss{width:24px;height:24px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;place-items:center;padding:0;font-size:18px;line-height:1;display:inline-grid}.lg-dismiss:hover{background:var(--lg-highlight)}.lg-tag .lg-dismiss{margin-inline-end:-5px}.lg-badge{vertical-align:middle;display:inline-flex;position:relative}.lg-badge-mark{box-sizing:border-box;color:#fff;background:var(--lg-status);font-variant-numeric:tabular-nums;min-width:20px;height:20px;box-shadow:0 0 0 2px var(--lg-surface), 0 2px 6px var(--lg-shadow);border-radius:999px;justify-content:center;align-items:center;padding:0 5px;font-size:10px;font-weight:650;line-height:1;display:inline-flex}.lg-badge[data-attached]>.lg-badge-mark{z-index:1;position:absolute;top:0;right:0;transform:translate(40%,-40%)}.lg-badge-mark[data-dot]{width:8px;min-width:8px;height:8px;padding:0}.lg-avatar{width:var(--lg-avatar-size);height:var(--lg-avatar-size);color:var(--lg-foreground);background-color:var(--lg-fill-subtle);font-size:calc(var(--lg-avatar-size) * .38);vertical-align:middle;border-radius:50%;flex:none;place-items:center;font-weight:600;line-height:1;display:inline-grid}.lg-avatar[data-shape=rounded]{border-radius:28%}.lg-avatar>img{border-radius:inherit;object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.lg-avatar>span{place-items:center;display:grid}.lg-avatar svg{width:calc(var(--lg-avatar-size) * .55);height:calc(var(--lg-avatar-size) * .55)}.lg-empty{color:var(--lg-foreground);text-align:center;flex-direction:column;align-items:center;padding:28px 16px;display:flex}.lg-empty-icon{background:var(--lg-fill-subtle);width:76px;height:76px;color:var(--lg-secondary);border-radius:24px;place-items:center;margin-bottom:18px;display:grid}.lg-empty-icon svg{width:54px;height:54px}.lg-empty-title{font-size:15px;font-weight:600}.lg-empty-description{max-width:32ch;color:var(--lg-secondary);margin-top:6px;font-size:13px;line-height:1.6}.lg-empty-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px;display:flex}.lg-skeleton{box-sizing:border-box;background:var(--lg-fill-subtle);border-radius:7px;width:100%;height:14px;display:block;position:relative;overflow:hidden}.lg-skeleton[data-shape=circle]{border-radius:50%;width:40px;height:40px}.lg-skeleton[data-shape=rounded]{border-radius:18px;height:100px}.lg-skeleton[data-animated]:after{content:\"\";background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--lg-foreground) 7%, transparent), transparent);animation:1.7s ease-in-out infinite lg-skeleton-wave;position:absolute;inset:0;transform:translate(-100%)}@keyframes lg-skeleton-wave{to{transform:translate(100%)}}.lg-toast-viewport{z-index:1100;width:min(380px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--lg-foreground);pointer-events:none;background:0 0;border:0;gap:12px;margin:0;padding:0;display:grid;position:fixed;inset:auto 24px 24px auto;overflow:auto}.lg-toast-viewport:empty{display:none}.lg-toast-viewport[data-position=top-right]{top:max(16px, env(safe-area-inset-top));bottom:auto}.lg-toast-viewport[data-position=bottom-center]{left:50%;right:auto;transform:translate(-50%)}.lg-toast-viewport>div{pointer-events:auto;padding:3px}.lg-toast{--lg-transparency:.15;--lg-toast-accent:var(--lg-tab-accent);color:var(--lg-foreground);border-radius:20px;align-items:flex-start;gap:12px;padding:16px;font-size:13px;line-height:1.5;animation:.18s ease-out lg-floating-enter;display:flex}.lg-toast[data-tone=success]{--lg-toast-accent:var(--lg-success-ink)}.lg-toast[data-tone=warning]{--lg-toast-accent:var(--lg-warning-ink)}.lg-toast[data-tone=error]{--lg-toast-accent:var(--lg-destructive-ink)}.lg-toast-icon{width:24px;height:24px;color:color-mix(in srgb, var(--lg-toast-accent) 80%, var(--lg-foreground));background:color-mix(in srgb, var(--lg-toast-accent) 14%, transparent);border-radius:50%;flex:none;place-items:center;font-weight:700;display:grid}.lg-toast-content{overflow-wrap:anywhere;flex:1;min-width:0}.lg-toast-title{font-weight:600}.lg-toast-description{color:var(--lg-secondary);margin-top:3px;font-size:12px}.lg-toast-content>.lg-button{margin-top:10px}.lg-toast>.lg-dismiss{color:var(--lg-secondary)}@media (width<=480px){.lg-toast-viewport{right:16px;bottom:max(16px, env(safe-area-inset-bottom))}}@media (prefers-reduced-motion:reduce){.lg-floating,.lg-toast,.lg-skeleton[data-animated]:after{animation:none}.lg-choice-control,.lg-radio-control>span,.lg-select-trigger svg{transition:none}}@media (forced-colors:active){.lg-choice-control,.lg-select-trigger,.lg-textarea,.lg-card,.lg-tag,.lg-badge-mark,.lg-avatar,.lg-floating,.lg-toast{border:1px solid canvastext}.lg-choice-input:checked+.lg-choice-control,.lg-choice-input:indeterminate+.lg-choice-control{color:highlighttext;forced-color-adjust:none;background:highlight}.lg-choice-input:checked+.lg-radio-control>span{background:highlighttext}.lg-skeleton{background:graytext}}.lg-textarea-field{width:100%;min-width:0}.lg-field-error{color:var(--lg-destructive-ink);align-items:flex-start;gap:6px;margin:8px 4px 0;font-size:12px;line-height:1.5;display:flex}.lg-field-error>svg{flex:none;width:15px;height:15px;margin-top:1px}.lg-textarea[data-invalid],.lg-select-trigger[aria-invalid=true]{outline:1.5px solid var(--lg-destructive-ink);outline-offset:2px}.lg-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.lg-muted{color:var(--lg-muted);font-size:13px}.lg-typography{color:var(--lg-foreground);margin-block:0;font-size:15px;line-height:1.65}.lg-typography[data-size=small]{font-size:13px}.lg-typography[data-size=large]{font-size:19px}.lg-typography:is(h1,h2,h3,h4){letter-spacing:-.025em;font-size:24px;font-weight:650}.lg-typography[data-weight=medium]{font-weight:500}.lg-typography[data-weight=semibold]{font-weight:650}.lg-typography[data-tone=muted]{color:var(--lg-muted)}.lg-typography[data-tone=success]{color:var(--lg-success-ink)}.lg-typography[data-tone=warning]{color:var(--lg-warning-ink)}.lg-typography[data-tone=danger]{color:var(--lg-destructive-ink)}.lg-typography[data-truncate]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lg-field{min-width:0;color:var(--lg-foreground);text-align:start;gap:8px;display:grid}.lg-field-label{font-size:14px;font-weight:600}.lg-field-label>span,.lg-field-error{color:var(--lg-destructive-ink)}.lg-field-description{color:var(--lg-muted);font-size:13px;line-height:1.5}.lg-field-error{font-size:13px}.lg-field[data-disabled]{opacity:1}.lg-field[data-disabled] .lg-field-label{opacity:var(--lg-disabled-opacity)}.lg-dialog{box-sizing:border-box;width:100%;max-width:none;height:100%;max-height:none;color:var(--lg-foreground);background:0 0;border:0;margin:0;padding:24px;position:fixed;inset:0;overflow:auto}.lg-dialog[open]{place-items:center;display:grid}.lg-dialog::backdrop{background:var(--lg-scrim);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.lg-dialog-panel{box-sizing:border-box;border:1px solid var(--lg-surface-edge);background:var(--lg-surface);-webkit-backdrop-filter:blur(30px)saturate(1.3);backdrop-filter:blur(30px)saturate(1.3);width:min(100%,560px);box-shadow:0 24px 80px var(--lg-shadow);border-radius:24px;animation:.16s ease-out lg-dialog-enter;overflow:hidden}.lg-dialog[data-size=small] .lg-dialog-panel{width:min(100%,380px)}.lg-dialog[data-size=large] .lg-dialog-panel{width:min(100%,860px)}.lg-dialog[data-phase=leaving] .lg-dialog-panel{opacity:0;transition:opacity .15s,transform .15s;transform:translateY(6px)}.lg-dialog-header{justify-content:space-between;align-items:start;gap:16px;padding:24px 24px 16px;display:flex}.lg-dialog-header h2{letter-spacing:-.025em;margin:0;font-size:20px}.lg-dialog-header p{color:var(--lg-muted);margin:8px 0 0;font-size:13px;line-height:1.6}.lg-dialog-content{min-width:0;padding:8px 24px 24px}.lg-dialog-footer{border-top:1px solid var(--lg-separator);flex-wrap:wrap;justify-content:end;gap:10px;padding:16px 24px;display:flex}@keyframes lg-dialog-enter{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:none}}.lg-tabs{min-width:0;color:var(--lg-foreground);width:100%}.lg-tabs-list{gap:var(--lg-space-1);width:fit-content;max-width:100%;padding:var(--lg-space-1);border-radius:var(--lg-radius-control);display:flex;overflow-x:auto}.lg-tabs-list button{appearance:none;color:var(--lg-muted);cursor:pointer;min-height:var(--lg-control-height-small);padding:4px var(--lg-space-4);border-radius:var(--lg-radius-control);font:inherit;font-size:var(--lg-font-size);white-space:nowrap;background:0 0;border:0;line-height:20px;transition:background .14s,color .14s}.lg-tabs-list button[aria-selected=true]{color:var(--lg-foreground);background:color-mix(in srgb, var(--lg-sheet-opaque) 64%, transparent);box-shadow:inset 0 1px 0 #ffffff59, 0 2px 8px var(--lg-shadow)}.lg-tabs-list button:disabled{opacity:.4;cursor:not-allowed}.lg-tabs-list button:focus-visible{outline:2px solid var(--lg-fill);outline-offset:-2px}.lg-tabs-panel{outline-offset:-2px;padding-block:20px}.lg-table-scroll{border:1px solid var(--lg-separator);background:var(--lg-surface);border-radius:16px;width:100%;overflow-x:auto}.lg-table{border-collapse:collapse;width:100%;color:var(--lg-foreground);text-align:start;font-size:14px}.lg-table th{color:var(--lg-muted);background:var(--lg-fill-subtle);text-align:start;font-weight:600}.lg-table :is(th,td){border-bottom:1px solid var(--lg-separator);white-space:normal;padding:14px 18px}.lg-table tbody tr:last-child td{border-bottom:0}.lg-table tbody tr:hover{background:var(--lg-highlight)}.lg-table-empty{text-align:center;color:var(--lg-muted);height:100px}.lg-pagination{color:var(--lg-foreground);flex-wrap:wrap;justify-content:end;align-items:center;gap:8px;display:flex}.lg-pagination-page{align-items:center;gap:8px;display:inline-flex}.lg-date-range{gap:0;min-width:0;max-width:100%;display:inline-grid}.lg-date-range-control{min-width:0;position:relative}.lg-date-range-trigger{font-variant-numeric:tabular-nums;justify-content:start;width:100%;max-width:100%}.lg-date-range-trigger>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lg-date-range-trigger[data-empty]{color:var(--lg-secondary)}.lg-date-range-trigger[data-clearable]{padding-inline-end:44px}.lg-date-range-trigger[aria-invalid=true]{outline:2px solid var(--lg-destructive-ink);outline-offset:2px}.lg-date-range-separator{color:var(--lg-secondary);margin-inline:12px}.lg-date-range-clear{inset-inline-end:8px;position:absolute;top:50%;translate:0 -50%}.lg-date-range-clear:disabled{opacity:var(--lg-disabled-opacity);cursor:not-allowed}.lg-range-popover{--lg-transparency:.1;flex-direction:column;width:max-content;padding:16px;display:flex}.lg-range-summary{border-bottom:1px solid var(--lg-separator);flex:none;align-items:center;gap:24px;margin-bottom:16px;padding:0 4px 16px;display:flex}.lg-range-summary>div{gap:4px;min-width:0;display:grid}.lg-range-summary>div>span{color:var(--lg-secondary);font-size:12px}.lg-range-summary strong{font-variant-numeric:tabular-nums;font-size:15px;font-weight:600}.lg-range-summary-arrow{color:var(--lg-secondary)}.lg-range-root{min-height:0;color:var(--lg-foreground);font-family:var(--lg-font-family);font-variant-numeric:tabular-nums;position:relative;overflow:auto}.lg-range-months{gap:24px;display:flex}.lg-range-month{flex:none;width:252px}.lg-range-nav{inset-inline:0;pointer-events:none;z-index:1;justify-content:space-between;display:flex;position:absolute;top:0}.lg-range-nav .lg-button{pointer-events:auto}.lg-range-month_caption{justify-content:center;align-items:center;height:32px;margin-bottom:12px;display:flex}.lg-range-caption_label{font-size:14px;font-weight:600}.lg-range-month_grid{table-layout:fixed;border-collapse:separate;border-spacing:0 4px;width:100%}.lg-range-weekday{text-align:center;height:28px;color:var(--lg-secondary);padding:0;font-size:12px;font-weight:400}.lg-range-day{text-align:center;height:36px;padding:0;position:relative}.lg-range-day_button{width:36px;height:36px;font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;margin:auto;padding:0;font-size:14px;display:grid}.lg-range-day:not(.lg-range-selected) .lg-range-day_button:hover{background:var(--lg-highlight)}.lg-range-day_button:focus-visible{outline:2px solid var(--lg-focus-color);outline-offset:2px}.lg-range-disabled{opacity:var(--lg-disabled-opacity)}.lg-range-disabled .lg-range-day_button{cursor:not-allowed}.lg-range-hidden{visibility:hidden}.lg-range-selected{font-weight:600}.lg-range-range_middle{background:color-mix(in srgb, var(--lg-tab-accent) 12%, transparent)}.lg-range-range_start{background:linear-gradient(to right, transparent 50%, color-mix(in srgb, var(--lg-tab-accent) 12%, transparent) 50%);border-radius:10px 0 0 10px}.lg-range-range_end,:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).lg-range-range_start{background:linear-gradient(to left, transparent 50%, color-mix(in srgb, var(--lg-tab-accent) 12%, transparent) 50%);border-radius:0 10px 10px 0}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).lg-range-range_end{background:linear-gradient(to right, transparent 50%, color-mix(in srgb, var(--lg-tab-accent) 12%, transparent) 50%);border-radius:10px 0 0 10px}.lg-range-range_start.lg-range-range_end{background:0 0}:is(.lg-range-range_start,.lg-range-range_end) .lg-range-day_button{color:#fff;background:var(--lg-fill)}.lg-range-today:not(.lg-range-selected) .lg-range-day_button{box-shadow:inset 0 0 0 1px var(--lg-tab-accent);color:var(--lg-tab-accent)}.lg-range-footer{border-top:1px solid var(--lg-separator);flex:none;justify-content:space-between;align-items:center;gap:16px;margin-top:12px;padding-top:16px;display:flex}.lg-range-footer>div{gap:8px;display:flex}@media (pointer:coarse){.lg-range-day,.lg-range-day_button{height:44px}}@media (width<=640px){.lg-range-month{width:252px}}[data-lg-density=compact] .lg-table :is(th,td){padding:9px 12px}[data-lg-density=compact] .lg-field{gap:5px}[data-lg-density=compact] .lg-tabs-list button{padding:7px 13px}@media (prefers-reduced-motion:reduce){.lg-dialog-panel{animation:none}.lg-dialog[data-phase=leaving] .lg-dialog-panel,.lg-tabs-list button{transition:none}}@media (width<=480px){.lg-dialog{padding:12px}.lg-dialog-header{padding:20px 18px 12px}.lg-dialog-content{padding:8px 18px 20px}.lg-dialog-footer{padding:12px 18px}.lg-pagination{gap:5px}.lg-table :is(th,td){padding:10px 12px}}.lg-filter-bar{color:var(--lg-foreground);flex-wrap:wrap;align-items:end;gap:16px;display:flex}.lg-filter-fields{flex-wrap:wrap;flex:1;align-items:end;gap:12px;min-width:0;display:flex}.lg-filter-actions{align-items:center;gap:10px;display:flex}.lg-data-table{gap:14px;width:100%;min-width:0;display:grid}.lg-data-toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.lg-data-toolbar>div:first-child{flex:1;min-width:0}.lg-table-sort{appearance:none;color:inherit;cursor:pointer;font:inherit;text-align:inherit;background:0 0;border:0;align-items:center;gap:8px;padding:0;display:inline-flex}.lg-table-sort span{color:var(--lg-muted);font-size:12px}.lg-check-list{gap:12px;min-width:0;display:grid}.lg-multi-select{max-width:100%;position:relative}.lg-multi-select>.lg-floating-anchor>button{text-overflow:ellipsis;white-space:nowrap;text-align:start;max-width:100%;display:block;overflow:hidden}.lg-upload{box-sizing:border-box;border:1px dashed var(--lg-separator);background:var(--lg-fill-subtle);width:100%;color:var(--lg-foreground);border-radius:20px;gap:12px;padding:24px;display:grid}.lg-upload[data-dragging]{border-color:var(--lg-fill);outline:2px solid var(--lg-fill);outline-offset:3px}.lg-upload>.lg-button{justify-self:start}.lg-upload p{margin:0}.lg-upload-files{gap:10px;margin:0;padding:0;list-style:none;display:grid}.lg-upload-files li{justify-content:space-between;align-items:center;gap:12px;display:flex}.lg-upload-files li>span{overflow-wrap:anywhere;min-width:0}.lg-upload-files small{display:block}.lg-drawer[open]{padding:12px}.lg-drawer-end[open]{place-items:stretch end}.lg-drawer-start[open]{place-items:stretch start}.lg-drawer .lg-dialog-panel{flex-direction:column;height:100%;max-height:100%;display:flex}.lg-drawer .lg-dialog-content{flex:1;overflow-y:auto}.lg-drawer-end[data-phase=leaving] .lg-dialog-panel{transform:translate(20px)}.lg-drawer-start[data-phase=leaving] .lg-dialog-panel,:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).lg-drawer-end[data-phase=leaving] .lg-dialog-panel{transform:translate(-20px)}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).lg-drawer-start[data-phase=leaving] .lg-dialog-panel{transform:translate(20px)}.lg-tree,.lg-tree ul{color:var(--lg-foreground);margin:0;padding:0;list-style:none}.lg-tree{width:100%;min-width:180px}.lg-tree ul{padding-inline-start:20px}.lg-tree li{border-radius:10px;outline:none}.lg-tree-row{cursor:pointer;border-radius:10px;align-items:center;gap:8px;padding:9px 10px;font-size:14px;display:flex}.lg-tree li:focus-visible>.lg-tree-row{outline:2px solid var(--lg-fill);outline-offset:-2px}.lg-tree li[aria-selected=true]>.lg-tree-row{background:var(--lg-fill-subtle);color:var(--lg-tab-accent)}.lg-tree li[aria-disabled=true]>.lg-tree-row{opacity:.5;cursor:not-allowed}.lg-tree-row:hover{background:var(--lg-highlight)}.lg-tree-expander{justify-content:center;align-items:center;min-width:20px;display:inline-flex}.lg-descriptions{grid-template-columns:repeat(var(--lg-description-columns,2), minmax(0, 1fr));width:100%;color:var(--lg-foreground);gap:20px 28px;margin:0;display:grid}.lg-descriptions dt{color:var(--lg-muted);margin-bottom:7px;font-size:13px}.lg-descriptions dd{overflow-wrap:anywhere;margin:0;font-size:15px}.lg-statistic{color:var(--lg-foreground);gap:8px;display:grid}.lg-statistic-value{font-variant-numeric:tabular-nums;letter-spacing:-.04em;font-size:34px;font-weight:650;line-height:1.2}.lg-statistic-value small{letter-spacing:0;margin-inline-start:7px;font-size:14px;font-weight:400}@media (width<=480px){.lg-descriptions{grid-template-columns:minmax(0,1fr)}.lg-upload{padding:18px}}.lg-member-option{align-items:center;gap:9px;display:inline-flex}.lg-import-wizard{width:100%;color:var(--lg-foreground);gap:20px;display:grid}.lg-import-wizard h3{margin:0;font-size:20px}.lg-import-steps{color:var(--lg-muted);flex-wrap:wrap;gap:16px;margin:0;padding:0;font-size:13px;list-style:none;display:flex}.lg-import-steps li[aria-current=step]{color:var(--lg-tab-accent);font-weight:650}.lg-activity-calendar{--lg-transparency:.18;box-sizing:border-box;width:100%;min-width:0;max-width:360px;color:var(--lg-foreground);font-family:var(--lg-font-family);font-variant-numeric:tabular-nums;border-radius:24px;padding:20px}.lg-calendar-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;display:flex}.lg-calendar-caption{color:var(--lg-secondary);margin:0 0 5px;font-size:12px;line-height:1.5}.lg-calendar-header h3{letter-spacing:-.02em;margin:0;font-size:20px;font-weight:600;line-height:1.3}.lg-calendar-navigation{flex:none;align-items:center;gap:8px;display:flex}.lg-calendar-row{text-align:center;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:4px;display:grid}.lg-calendar-row [role=columnheader]{color:var(--lg-secondary);padding-block:8px;font-size:12px;font-weight:500}.lg-calendar-weekdays{margin-bottom:8px}.lg-calendar-cell{justify-content:center;min-width:0;min-height:40px;display:flex}.lg-calendar-row button{box-sizing:border-box;width:100%;max-width:40px;height:40px;font:inherit;color:var(--lg-foreground);cursor:pointer;background:var(--lg-calendar-activity,transparent);transition:background-color var(--lg-duration-fast) ease, color var(--lg-duration-fast) ease;border:1px solid #0000;border-radius:10px;place-items:center;padding:0;font-size:14px;font-weight:500;line-height:1;display:grid;position:relative}.lg-activity-calendar [data-level=\"1\"]{--lg-calendar-activity:color-mix(in srgb, var(--lg-on) 14%, var(--lg-sheet-opaque))}.lg-activity-calendar [data-level=\"2\"]{--lg-calendar-activity:color-mix(in srgb, var(--lg-on) 25%, var(--lg-sheet-opaque))}.lg-activity-calendar [data-level=\"3\"]{--lg-calendar-activity:color-mix(in srgb, var(--lg-on) 36%, var(--lg-sheet-opaque))}.lg-activity-calendar [data-level=\"4\"]{--lg-calendar-activity:color-mix(in srgb, var(--lg-on) 48%, var(--lg-sheet-opaque))}.lg-calendar-row button[data-today]{border-color:var(--lg-tab-accent);color:var(--lg-tab-accent);font-weight:650}.lg-calendar-activity-dot{background:var(--lg-success-ink);border-radius:2px;width:4px;height:3px;position:absolute;bottom:4px}.lg-calendar-row [data-level=\"2\"] .lg-calendar-activity-dot{width:7px}.lg-calendar-row [data-level=\"3\"] .lg-calendar-activity-dot{width:10px}.lg-calendar-row [data-level=\"4\"] .lg-calendar-activity-dot{width:13px}.lg-calendar-row button:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--lg-surface-edge);background:var(--lg-highlight)}.lg-calendar-row [aria-selected=true] button{color:#fff;background:var(--lg-fill);box-shadow:0 2px 6px color-mix(in srgb, var(--lg-fill) 24%, transparent);border-color:#0000;font-weight:650}.lg-calendar-row [aria-selected=true] .lg-calendar-activity-dot{background:#fff}.lg-calendar-row button:disabled{cursor:default}.lg-calendar-footer{border-top:1px solid var(--lg-separator);color:var(--lg-secondary);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding-top:16px;font-size:12px;display:flex}.lg-calendar-legend{align-items:center;gap:4px;display:flex}.lg-calendar-legend>span{margin-inline:3px}.lg-calendar-legend i{background:var(--lg-calendar-activity,var(--lg-fill-subtle));width:9px;height:9px;box-shadow:inset 0 0 0 .5px var(--lg-separator);border-radius:3px}.lg-calendar-row button:focus-visible{outline:2px solid var(--lg-focus-color);outline-offset:2px}.lg-chevron[data-direction=previous]{transform:rotate(180deg)}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).lg-chevron[data-direction=next]{transform:rotate(180deg)}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).lg-chevron[data-direction=previous]{transform:none}.lg-pagination .lg-pagination-size{flex:none;width:auto;min-width:96px}.lg-pagination-size .lg-select-trigger{height:var(--lg-control-height-small);min-height:var(--lg-control-height-small);gap:8px;padding:0 12px}.lg-pagination>.lg-button,.lg-pagination-page>.lg-button{min-width:var(--lg-control-height-small);padding-inline:8px}@media (width<=480px){.lg-activity-calendar{padding:16px}.lg-calendar-header{gap:8px}.lg-calendar-header h3{font-size:18px}.lg-calendar-row{gap:2px}.lg-pagination{justify-content:start}.lg-pagination>.lg-muted{flex-basis:100%;margin-bottom:4px}}@media (pointer:coarse){.lg-calendar-cell,.lg-calendar-row button{min-height:44px}}@media (prefers-reduced-motion:reduce){.lg-calendar-row button{transition:none}}.lg-command-palette{gap:16px;display:grid}.lg-command-palette ul{max-height:min(50dvh,360px);margin:0;padding:0;list-style:none;overflow-y:auto}.lg-command-palette li>button{text-align:start;width:100%;font:inherit;color:var(--lg-foreground);cursor:pointer;background:0 0;border:0;border-radius:12px;justify-content:space-between;align-items:center;gap:20px;padding:12px;display:flex}.lg-command-palette li[aria-selected=true]>button{background:var(--lg-fill-subtle);color:var(--lg-tab-accent)}.lg-command-palette small{color:var(--lg-muted);margin-top:4px;font-size:12px;display:block}.lg-command-palette li[aria-disabled=true]>button{opacity:.45;cursor:not-allowed}.lg-workspace{width:100%;min-width:0;height:360px;color:var(--lg-foreground)}.lg-workspace>[data-group]{height:100%}.lg-workspace-panel{background:var(--lg-surface);border:1px solid var(--lg-separator);border-radius:14px;flex-direction:column;height:100%;display:flex;overflow:hidden}.lg-workspace-panel header{background:var(--lg-fill-subtle);border-bottom:1px solid var(--lg-separator);padding:12px 16px;font-size:13px;font-weight:600}.lg-workspace-panel>div{flex:1;min-width:0;padding:16px;overflow:auto}.lg-workspace-separator{justify-content:center;align-items:center;width:8px;display:flex}.lg-workspace-separator:after{content:\"\";background:var(--lg-separator);border-radius:4px;width:3px;height:32px;display:block}.lg-workspace-separator[aria-orientation=horizontal]{width:100%;height:8px}.lg-workspace-separator[aria-orientation=horizontal]:after{width:32px;height:3px}.lg-workspace-separator:focus-visible{outline:2px solid var(--lg-fill);outline-offset:-2px;border-radius:8px}.lg-workspace-tools{justify-content:end;margin-bottom:8px;display:flex}.lg-workspace{flex-direction:column;display:flex}.lg-typography[data-truncate]{vertical-align:bottom;max-width:100%;display:inline-block}:where(.lg-button,.lg-input,.lg-select,.lg-textarea,.lg-choice,.lg-floating,.lg-dialog,.lg-tabs,.lg-data-table,.lg-pagination,.lg-field,.lg-typography){font-family:var(--lg-font-family);font-optical-sizing:auto}[data-lg-density=comfortable]{--lg-control-height:var(--lg-control-height-regular)}[data-lg-density=compact]{--lg-control-height:var(--lg-control-height-small)}.lg-button>svg,.lg-input-icon,.lg-select-trigger svg{width:16px;height:16px}.lg-select-trigger:disabled,.lg-choice[data-disabled],.lg-textarea[data-disabled],.lg-tabs-list button:disabled,.lg-select-option[aria-disabled=true]{opacity:var(--lg-disabled-opacity)}.lg-choice:has(:disabled){opacity:var(--lg-disabled-opacity)}.lg-button:focus-visible,.lg-select-trigger:focus-visible,.lg-input-clear:focus-visible,.lg-dismiss:focus-visible,.lg-table-scroll:focus-visible,.lg-floating:focus-visible,.lg-tabs-panel:focus-visible,.lg-choice-input:focus-visible+.lg-choice-control{outline:2px solid var(--lg-focus-color);outline-offset:3px}.lg-input:has(input:focus-visible){outline:2px solid var(--lg-focus-color);outline-offset:3px}.lg-textarea:has(textarea:focus-visible){outline:2px solid var(--lg-focus-color);outline-offset:3px}.lg-input:has(input[aria-invalid=true]){outline:2px solid var(--lg-destructive-ink);outline-offset:3px}.lg-tabs-list button:focus-visible,.lg-tree li:focus-visible>.lg-tree-row,.lg-calendar-row button:focus-visible,.lg-workspace-separator:focus-visible{outline-color:var(--lg-focus-color)}.lg-input:has(input:disabled) input{cursor:not-allowed}.lg-input input[type=date]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){.lg-input input[type=date]{--lightningcss-light: ;--lightningcss-dark:initial}}[data-theme=light] .lg-input input[type=date]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark] .lg-input input[type=date]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.lg-floating,.lg-upload,.lg-dialog-panel{border-radius:var(--lg-radius-panel)}.lg-select-option,.lg-tree-row{border-radius:var(--lg-radius-item)}.lg-dialog-panel{flex-direction:column;max-height:calc(100dvh - 48px);display:flex}.lg-dialog-header,.lg-dialog-footer{flex-shrink:0}.lg-dialog-content{overscroll-behavior:contain;overflow-y:auto}.lg-table,.lg-pagination{font-variant-numeric:tabular-nums}.lg-drawer-end .lg-dialog-panel{max-height:100%;animation-name:lg-drawer-enter-end}.lg-drawer-start .lg-dialog-panel{max-height:100%;animation-name:lg-drawer-enter-start}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).lg-drawer-end .lg-dialog-panel{animation-name:lg-drawer-enter-start}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).lg-drawer-start .lg-dialog-panel{animation-name:lg-drawer-enter-end}@keyframes lg-drawer-enter-end{0%{opacity:0;transform:translate(20px)}}@keyframes lg-drawer-enter-start{0%{opacity:0;transform:translate(-20px)}}@media (pointer:coarse){:root,[data-theme],[data-lg-density]{--lg-control-height:44px;--lg-control-height-small:44px}.lg-choice{align-items:center;min-height:44px}.lg-choice-control{margin-top:0}.lg-choice-input{margin-top:0;top:50%;translate:0 -50%}.lg-input input,.lg-textarea textarea{font-size:16px}}@media (prefers-reduced-motion:reduce){.lg-dialog-panel,.lg-floating,.lg-toast{animation:none!important}}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.lg-glass,.lg-dialog-panel,.lg-table-scroll,.lg-workspace-panel{background-color:var(--lg-sheet-opaque);-webkit-backdrop-filter:none}.lg-glass:before,.lg-glass:after{display:none}.lg-dialog-panel,.lg-table-scroll{border-color:var(--lg-secondary)}}@media (forced-colors:active){.lg-dialog-panel,.lg-table-scroll,.lg-tabs-list,.lg-workspace-panel{background:canvas;border:1px solid canvastext}}");
|
|
12
|
+
// src/internal/cx.ts
|
|
13
|
+
function d(...e) {
|
|
14
|
+
return e.filter(Boolean).join(" ");
|
|
15
|
+
}
|
|
16
|
+
// src/internal/refraction.ts
|
|
17
|
+
var f = "http://www.w3.org/2000/svg", p = /* @__PURE__ */ new Map(), m, h = (e, t, n) => Math.min(n, Math.max(t, e));
|
|
18
|
+
function g(e, t) {
|
|
19
|
+
let n = document.createElementNS(f, e);
|
|
20
|
+
for (let [e, r] of Object.entries(t)) n.setAttribute(e, String(r));
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
function _() {
|
|
24
|
+
if (m?.isConnected) return m;
|
|
25
|
+
let e = g("svg", {
|
|
26
|
+
width: 0,
|
|
27
|
+
height: 0,
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
});
|
|
30
|
+
return e.style.cssText = "position:absolute;pointer-events:none", m = g("defs", {}), e.append(m), document.body.append(e), m;
|
|
31
|
+
}
|
|
32
|
+
function v(e, t) {
|
|
33
|
+
let n = /* @__PURE__ */ new Float32Array(128), r = 0;
|
|
34
|
+
for (let i = 0; i < n.length; i++) {
|
|
35
|
+
let a = Math.max(.001, i / (n.length - 1)), o = (1 - (1 - a) ** 4) ** .25, s = Math.atan((1 - a) ** 3 / o ** 3), c = Math.asin(Math.sin(s) / 1.5);
|
|
36
|
+
n[i] = Math.tan(s - c) * (t + o * e), r = Math.max(r, n[i]);
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
samples: n,
|
|
40
|
+
maximum: r
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function y(e) {
|
|
44
|
+
let t = /* @__PURE__ */ new Float32Array(128);
|
|
45
|
+
for (let n = 0; n < t.length; n++) t[n] = e * (1 - n / (t.length - 1));
|
|
46
|
+
return {
|
|
47
|
+
samples: t,
|
|
48
|
+
maximum: e
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
var b = 1, x = 1.2, S = 2.5, C = (e, t, n) => n > 0 && n * x <= Math.min(e, t) / 2, w = `superellipse(${Math.log2(S).toFixed(3)})`, T = () => /Chrom(?:e|ium)\//.test(navigator.userAgent) && typeof CSS < "u" && CSS.supports?.("corner-shape", w);
|
|
52
|
+
function ee(e, t, n, r, i) {
|
|
53
|
+
if (C(n, r, i)) {
|
|
54
|
+
let a = i * x, o = Math.abs(e) - (n / 2 - a), s = Math.abs(t) - (r / 2 - a);
|
|
55
|
+
if (o > 0 && s > 0) {
|
|
56
|
+
let [n, r] = [o / a, s / a], i = (n ** S + r ** S) ** (1 / S), c = (n / i) ** 1.5, l = (r / i) ** 1.5, u = Math.hypot(c, l);
|
|
57
|
+
return {
|
|
58
|
+
distance: (1 - i) * a / u,
|
|
59
|
+
nx: c / u * Math.sign(e),
|
|
60
|
+
ny: l / u * Math.sign(t)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
let c = n / 2 - Math.abs(e), l = r / 2 - Math.abs(t);
|
|
64
|
+
return c < l ? {
|
|
65
|
+
distance: c,
|
|
66
|
+
nx: Math.sign(e),
|
|
67
|
+
ny: 0
|
|
68
|
+
} : {
|
|
69
|
+
distance: l,
|
|
70
|
+
nx: 0,
|
|
71
|
+
ny: Math.sign(t)
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
let a = Math.abs(e) - (n / 2 - i), o = Math.abs(t) - (r / 2 - i), s = Math.max(a, 0), c = Math.max(o, 0), l = Math.hypot(s, c);
|
|
75
|
+
return {
|
|
76
|
+
distance: i - (l + Math.min(Math.max(a, o), 0)),
|
|
77
|
+
nx: l > 0 ? s / l * Math.sign(e) : a > o ? Math.sign(e) : 0,
|
|
78
|
+
ny: l > 0 ? c / l * Math.sign(t) : a > o ? 0 : Math.sign(t)
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
var E = 44;
|
|
82
|
+
function te(e, t, n) {
|
|
83
|
+
let r = Math.min(devicePixelRatio || 1, 3), i = document.createElement("canvas");
|
|
84
|
+
i.width = Math.ceil((e + 88) * r), i.height = Math.ceil((t + 88) * r);
|
|
85
|
+
let a = i.getContext("2d"), o = a.createImageData(i.width, i.height);
|
|
86
|
+
for (let a = 0; a < i.height; a++) for (let s = 0; s < i.width; s++) {
|
|
87
|
+
let c = (s + .5) / r - E - e / 2, l = (a + .5) / r - E - t / 2, u = Math.abs(c) - (e / 2 - n), d = Math.abs(l) - (t / 2 - n), f = (u > 0 && d > 0 ? Math.hypot(u, d) > n : u > n || d > n) ? 1 : h(ee(c, l, e, t, n).distance + b + .5, 0, 1);
|
|
88
|
+
o.data[(a * i.width + s) * 4 + 3] = Math.round(f * 255);
|
|
89
|
+
}
|
|
90
|
+
return a.putImageData(o, 0, 0), i.toDataURL();
|
|
91
|
+
}
|
|
92
|
+
function ne(e, t, n, r, i) {
|
|
93
|
+
let a = Math.min(devicePixelRatio || 1, 3), o = document.createElement("canvas");
|
|
94
|
+
o.width = Math.ceil((e + 2) * a), o.height = Math.ceil((t + 2) * a);
|
|
95
|
+
let s = o.getContext("2d"), c = s.createImageData(o.width, o.height);
|
|
96
|
+
for (let s = 0; s < o.height; s++) for (let l = 0; l < o.width; l++) {
|
|
97
|
+
let { distance: u, nx: d, ny: f } = ee((l + .5) / a - b - e / 2, (s + .5) / a - b - t / 2, e, t, n);
|
|
98
|
+
if (u > 15) continue;
|
|
99
|
+
let p = d * d, m = f * f, g = 0, _ = 0;
|
|
100
|
+
if (u >= 0) {
|
|
101
|
+
let e = Math.max(0, .39 - .29 * u);
|
|
102
|
+
f < 0 ? (g = m * (e + (u > 1 ? .05 * Math.max(0, 1 - (u - 1) / 2.5) : 0)), _ = m * .02 * Math.max(0, 1 - Math.abs(u - 9) / 5)) : f > 0 && (g = m * e), _ += p * .02 * h((15 - u) / 5, 0, 1);
|
|
103
|
+
} else {
|
|
104
|
+
let e = h(1 + u / .75, 0, 1);
|
|
105
|
+
_ = (p * .75 + m * .2) * e;
|
|
106
|
+
}
|
|
107
|
+
g = h(g * r * (1 + i * 1.1), 0, 1), _ = h(_ * r, 0, 1);
|
|
108
|
+
let v = g + _ - g * _;
|
|
109
|
+
if (v <= 0) continue;
|
|
110
|
+
let y = (s * o.width + l) * 4, x = Math.round(255 * g / (g + _));
|
|
111
|
+
c.data[y] = c.data[y + 1] = c.data[y + 2] = x, c.data[y + 3] = Math.round(v * 255);
|
|
112
|
+
}
|
|
113
|
+
return s.putImageData(c, 0, 0), o.toDataURL();
|
|
114
|
+
}
|
|
115
|
+
function re(e, t, n, r, i) {
|
|
116
|
+
let a = Math.min(devicePixelRatio || 1, r ? 3 : 2), o = Math.min(e, t), s = i.bezel ?? (r ? h(o * .12, 4, 10) : h(2.4 + o * .059, 3, 12)), { samples: c, maximum: l } = r ? v(s, i.thickness ?? h(o * .2, 8, 24)) : y(i.thickness ?? Math.min(o * .33, 48)), u = document.createElement("canvas");
|
|
117
|
+
u.width = Math.ceil(e * a), u.height = Math.ceil(t * a);
|
|
118
|
+
let d = u.getContext("2d"), f = d.createImageData(u.width, u.height), p = i.zoom > 1 ? d.createImageData(u.width, u.height) : void 0, m = Math.max(e, t) / 2, g = r ? 1 : -1;
|
|
119
|
+
for (let r = 0; r < u.height; r++) for (let i = 0; i < u.width; i++) {
|
|
120
|
+
let a = (i + .5) * e / u.width - e / 2, o = (r + .5) * t / u.height - t / 2, d = Math.abs(a) - (e / 2 - n), h = Math.abs(o) - (t / 2 - n), _ = Math.max(d, 0), v = Math.max(h, 0), y = Math.hypot(_, v), b = n - (y + Math.min(Math.max(d, h), 0)), x = y > 0 ? _ / y * Math.sign(a) : d > h ? Math.sign(a) : 0, S = y > 0 ? v / y * Math.sign(o) : d > h ? 0 : Math.sign(o), C = 0;
|
|
121
|
+
if (b >= 0 && b < s) {
|
|
122
|
+
let e = b / s * (c.length - 1), t = Math.floor(e), n = c[t];
|
|
123
|
+
C = n + (c[Math.min(t + 1, c.length - 1)] - n) * (e - t);
|
|
124
|
+
}
|
|
125
|
+
let w = (r * u.width + i) * 4;
|
|
126
|
+
f.data[w] = Math.round(127.5 + g * x * C / l * 127.5), f.data[w + 1] = Math.round(127.5 + g * S * C / l * 127.5), f.data[w + 2] = 128, f.data[w + 3] = 255, p && (p.data[w] = Math.round(127.5 - a / m * 127.5), p.data[w + 1] = Math.round(127.5 - o / m * 127.5), p.data[w + 2] = 128, p.data[w + 3] = 255);
|
|
127
|
+
}
|
|
128
|
+
d.putImageData(f, 0, 0);
|
|
129
|
+
let _ = u.toDataURL(), b;
|
|
130
|
+
return p && (d.putImageData(p, 0, 0), b = {
|
|
131
|
+
map: u.toDataURL(),
|
|
132
|
+
scale: 2 * m * (1 - 1 / i.zoom)
|
|
133
|
+
}), {
|
|
134
|
+
displacement: _,
|
|
135
|
+
zoom: b,
|
|
136
|
+
scale: l * 2 * i.level
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function ie(e, t, n, r, i) {
|
|
140
|
+
let a = Object.values({
|
|
141
|
+
width: e,
|
|
142
|
+
height: t,
|
|
143
|
+
radius: n,
|
|
144
|
+
selection: r,
|
|
145
|
+
...i
|
|
146
|
+
}).join("-"), o = p.get(a);
|
|
147
|
+
if (o) return o;
|
|
148
|
+
let { displacement: s, zoom: c, scale: l } = re(e, t, n, r, i), u = `liquidglass-${p.size}`, d = {
|
|
149
|
+
x: 0,
|
|
150
|
+
y: 0,
|
|
151
|
+
width: e,
|
|
152
|
+
height: t
|
|
153
|
+
}, f = g("filter", {
|
|
154
|
+
id: u,
|
|
155
|
+
...d,
|
|
156
|
+
filterUnits: "userSpaceOnUse",
|
|
157
|
+
primitiveUnits: "userSpaceOnUse",
|
|
158
|
+
"color-interpolation-filters": "sRGB"
|
|
159
|
+
});
|
|
160
|
+
if (f.append(g("feImage", {
|
|
161
|
+
href: s,
|
|
162
|
+
...d,
|
|
163
|
+
preserveAspectRatio: "none",
|
|
164
|
+
result: "field"
|
|
165
|
+
})), r) {
|
|
166
|
+
for (let [e, t, n] of [
|
|
167
|
+
[
|
|
168
|
+
"r",
|
|
169
|
+
1.035,
|
|
170
|
+
"1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"
|
|
171
|
+
],
|
|
172
|
+
[
|
|
173
|
+
"g",
|
|
174
|
+
1,
|
|
175
|
+
"0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0"
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
"b",
|
|
179
|
+
.965,
|
|
180
|
+
"0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0"
|
|
181
|
+
]
|
|
182
|
+
]) f.append(g("feDisplacementMap", {
|
|
183
|
+
in: "SourceGraphic",
|
|
184
|
+
in2: "field",
|
|
185
|
+
scale: l * t,
|
|
186
|
+
xChannelSelector: "R",
|
|
187
|
+
yChannelSelector: "G",
|
|
188
|
+
result: `${e}-ray`
|
|
189
|
+
}), g("feColorMatrix", {
|
|
190
|
+
in: `${e}-ray`,
|
|
191
|
+
type: "matrix",
|
|
192
|
+
values: n,
|
|
193
|
+
result: e
|
|
194
|
+
}));
|
|
195
|
+
f.append(g("feComposite", {
|
|
196
|
+
in: "r",
|
|
197
|
+
in2: "g",
|
|
198
|
+
operator: "arithmetic",
|
|
199
|
+
k2: 1,
|
|
200
|
+
k3: 1,
|
|
201
|
+
result: "rg"
|
|
202
|
+
}), g("feComposite", {
|
|
203
|
+
in: "rg",
|
|
204
|
+
in2: "b",
|
|
205
|
+
operator: "arithmetic",
|
|
206
|
+
k2: 1,
|
|
207
|
+
k3: 1
|
|
208
|
+
}));
|
|
209
|
+
} else f.append(g("feGaussianBlur", {
|
|
210
|
+
in: "SourceGraphic",
|
|
211
|
+
stdDeviation: i.blur,
|
|
212
|
+
result: "wide"
|
|
213
|
+
}), ae("wide")), c && f.append(g("feImage", {
|
|
214
|
+
href: c.map,
|
|
215
|
+
...d,
|
|
216
|
+
preserveAspectRatio: "none",
|
|
217
|
+
result: "zoom"
|
|
218
|
+
}), g("feDisplacementMap", {
|
|
219
|
+
in: "base",
|
|
220
|
+
in2: "zoom",
|
|
221
|
+
scale: c.scale,
|
|
222
|
+
xChannelSelector: "R",
|
|
223
|
+
yChannelSelector: "G",
|
|
224
|
+
result: "magnified"
|
|
225
|
+
})), f.append(g("feDisplacementMap", {
|
|
226
|
+
in: c ? "magnified" : "base",
|
|
227
|
+
in2: "field",
|
|
228
|
+
scale: l,
|
|
229
|
+
xChannelSelector: "R",
|
|
230
|
+
yChannelSelector: "G",
|
|
231
|
+
result: "bent"
|
|
232
|
+
}), g("feGaussianBlur", {
|
|
233
|
+
in: "bent",
|
|
234
|
+
stdDeviation: i.blur === 0 ? .12 : .4,
|
|
235
|
+
result: "face"
|
|
236
|
+
}));
|
|
237
|
+
_().append(f);
|
|
238
|
+
let m = `url("#${u}")`;
|
|
239
|
+
return p.set(a, m), m;
|
|
240
|
+
}
|
|
241
|
+
function ae(e) {
|
|
242
|
+
let t = g("feMerge", { result: "base" });
|
|
243
|
+
return t.append(g("feMergeNode", { in: "SourceGraphic" }), g("feMergeNode", { in: e })), t;
|
|
244
|
+
}
|
|
245
|
+
var D = {
|
|
246
|
+
small: {
|
|
247
|
+
brightness: [
|
|
248
|
+
32,
|
|
249
|
+
62,
|
|
250
|
+
89,
|
|
251
|
+
113,
|
|
252
|
+
134,
|
|
253
|
+
151,
|
|
254
|
+
166,
|
|
255
|
+
177,
|
|
256
|
+
185
|
|
257
|
+
],
|
|
258
|
+
colour: [
|
|
259
|
+
1.27,
|
|
260
|
+
1.22,
|
|
261
|
+
1.18,
|
|
262
|
+
1.13,
|
|
263
|
+
1.08,
|
|
264
|
+
1.03,
|
|
265
|
+
.98,
|
|
266
|
+
.94,
|
|
267
|
+
.89
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
large: {
|
|
271
|
+
brightness: [
|
|
272
|
+
32,
|
|
273
|
+
59,
|
|
274
|
+
83,
|
|
275
|
+
102,
|
|
276
|
+
117,
|
|
277
|
+
126,
|
|
278
|
+
129,
|
|
279
|
+
128,
|
|
280
|
+
121
|
|
281
|
+
],
|
|
282
|
+
colour: [
|
|
283
|
+
1.27,
|
|
284
|
+
1.19,
|
|
285
|
+
1.11,
|
|
286
|
+
1.03,
|
|
287
|
+
.95,
|
|
288
|
+
.87,
|
|
289
|
+
.79,
|
|
290
|
+
.71,
|
|
291
|
+
.63
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
}, O = 1.3, oe = /* @__PURE__ */ new Set();
|
|
295
|
+
function se(e) {
|
|
296
|
+
let t = Math.round(e * 4), n = `liquidglass-dark-${t}`;
|
|
297
|
+
if (oe.has(t)) return `url("#${n}")`;
|
|
298
|
+
oe.add(t);
|
|
299
|
+
let r = (e, n) => e.map((e, r) => e + (n[r] - e) * (t / 4)), i = r(D.small.brightness, D.large.brightness).map((e) => e / 255), a = r(D.small.colour, D.large.colour).map((e) => e / O), o = (e, t) => {
|
|
300
|
+
let n = g("feComponentTransfer", {
|
|
301
|
+
in: "luminance",
|
|
302
|
+
result: t
|
|
303
|
+
});
|
|
304
|
+
for (let t of [
|
|
305
|
+
"feFuncR",
|
|
306
|
+
"feFuncG",
|
|
307
|
+
"feFuncB"
|
|
308
|
+
]) n.append(g(t, {
|
|
309
|
+
type: "table",
|
|
310
|
+
tableValues: e.join(" ")
|
|
311
|
+
}));
|
|
312
|
+
return n;
|
|
313
|
+
}, [s, c, l] = [
|
|
314
|
+
.2126,
|
|
315
|
+
.7152,
|
|
316
|
+
.0722
|
|
317
|
+
], u = O / 2, d = (e) => [
|
|
318
|
+
s,
|
|
319
|
+
c,
|
|
320
|
+
l
|
|
321
|
+
].map((t, n) => u * (+(n === e) - t)).join(" "), f = g("filter", {
|
|
322
|
+
id: n,
|
|
323
|
+
"color-interpolation-filters": "sRGB"
|
|
324
|
+
});
|
|
325
|
+
return f.append(g("feColorMatrix", {
|
|
326
|
+
in: "SourceGraphic",
|
|
327
|
+
values: `${s} ${c} ${l} 0 0 ${s} ${c} ${l} 0 0 ${s} ${c} ${l} 0 0 0 0 0 1 0`,
|
|
328
|
+
result: "luminance"
|
|
329
|
+
}), o(i, "brightness"), o(a, "gain"), o(a.map((e) => .5 * (1 - e)), "offset"), g("feColorMatrix", {
|
|
330
|
+
in: "SourceGraphic",
|
|
331
|
+
values: `${d(0)} 0 0.5 ${d(1)} 0 0.5 ${d(2)} 0 0.5 0 0 0 1 0`,
|
|
332
|
+
result: "colour"
|
|
333
|
+
}), g("feComposite", {
|
|
334
|
+
in: "colour",
|
|
335
|
+
in2: "gain",
|
|
336
|
+
operator: "arithmetic",
|
|
337
|
+
k1: 1,
|
|
338
|
+
result: "scaled"
|
|
339
|
+
}), g("feComposite", {
|
|
340
|
+
in: "scaled",
|
|
341
|
+
in2: "offset",
|
|
342
|
+
operator: "arithmetic",
|
|
343
|
+
k2: 1,
|
|
344
|
+
k3: 1,
|
|
345
|
+
result: "centred"
|
|
346
|
+
}), g("feComposite", {
|
|
347
|
+
in: "centred",
|
|
348
|
+
in2: "brightness",
|
|
349
|
+
operator: "arithmetic",
|
|
350
|
+
k2: 2,
|
|
351
|
+
k3: 1,
|
|
352
|
+
k4: -1
|
|
353
|
+
})), _().append(f), `url("#${n}")`;
|
|
354
|
+
}
|
|
355
|
+
var k = /* @__PURE__ */ new Map();
|
|
356
|
+
function A(e, t, n, r, i = 0) {
|
|
357
|
+
let a = `${e}-${t}-${n}-${r}-${i}-${devicePixelRatio}`, o = k.get(a);
|
|
358
|
+
return o || (o = `url("${ne(e, t, n, r, i)}")`, k.set(a, o)), o;
|
|
359
|
+
}
|
|
360
|
+
var ce = 16;
|
|
361
|
+
function j(e, t, n, r, i, a = 0) {
|
|
362
|
+
let o = Math.min(devicePixelRatio || 1, 3), s = C(t, n, r), c = (e) => Math.min(e / 2, Math.ceil(Math.max(s ? r * x : r, ce)) + 1), l = (e) => c(e) * 2 >= e ? e : c(e) * 2 + 2, [u, d] = [l(t), l(n)], [f, p] = [c(t) + b, c(n) + b], m = A(u, d, r, i, a);
|
|
363
|
+
if (s && C(u, d, r) && !T()) {
|
|
364
|
+
let t = `mask-${u}-${d}-${r}-${devicePixelRatio}`, n = k.get(t);
|
|
365
|
+
n || (n = `url("${te(u, d, r)}")`, k.set(t, n));
|
|
366
|
+
let [i, a] = [f - b + E, p - b + E];
|
|
367
|
+
e.style.setProperty("--lg-mask", `${n} ${Math.round(a * o)} ${Math.round(i * o)} fill / ${a}px ${i}px / ${E}px stretch`);
|
|
368
|
+
} else e.style.removeProperty("--lg-mask");
|
|
369
|
+
e.style.setProperty("--lg-rim-x", `${f}px`), e.style.setProperty("--lg-rim-y", `${p}px`), e.style.setProperty("--lg-rim-image", `${m} ${Math.round(p * o)} ${Math.round(f * o)} fill / ${p}px ${f}px / 0 stretch`);
|
|
370
|
+
}
|
|
371
|
+
var M = /* @__PURE__ */ new WeakMap();
|
|
372
|
+
function N(e, t) {
|
|
373
|
+
let n = M.get(e);
|
|
374
|
+
if (!n) return;
|
|
375
|
+
let [r, i, a, o, s] = n;
|
|
376
|
+
j(e, r, i, a, o, t ? 1 : s);
|
|
377
|
+
}
|
|
378
|
+
function P(e) {
|
|
379
|
+
for (let t of [
|
|
380
|
+
"--lg-rim",
|
|
381
|
+
"--lg-rim-x",
|
|
382
|
+
"--lg-rim-y",
|
|
383
|
+
"--lg-rim-image",
|
|
384
|
+
"--lg-mask"
|
|
385
|
+
]) e.style.removeProperty(t);
|
|
386
|
+
}
|
|
387
|
+
function F(e, t, n) {
|
|
388
|
+
let r = e.offsetWidth, i = e.offsetHeight;
|
|
389
|
+
if (!r || !i) return;
|
|
390
|
+
let a = getComputedStyle(e), o = a.borderTopLeftRadius, s = e.dataset.lgCornerSet === o ? parseFloat(e.dataset.lgCorner) : NaN, c = Number.isNaN(s) ? Math.min(r / 2, i / 2, o.endsWith("%") ? Math.min(r, i) * parseFloat(o) / 100 : parseFloat(o)) : s, l = a.borderBottomLeftRadius === o;
|
|
391
|
+
if (!t && l && C(r, i, c) && T()) {
|
|
392
|
+
let t = `${c * x}px`;
|
|
393
|
+
e.style.borderRadius = t, e.style.setProperty("corner-shape", w), e.dataset.lgCorner = String(c), e.dataset.lgCornerSet = t;
|
|
394
|
+
} else e.dataset.lgCornerSet && (e.style.removeProperty("corner-shape"), delete e.dataset.lgCorner, delete e.dataset.lgCornerSet);
|
|
395
|
+
let u = (e) => {
|
|
396
|
+
let t = parseFloat(a.getPropertyValue(e));
|
|
397
|
+
return Number.isFinite(t) ? t : void 0;
|
|
398
|
+
}, d = h(((u("--lg-transparency") ?? .5) - .5) * 2, 0, 1), f = {
|
|
399
|
+
bezel: u("--lg-bezel"),
|
|
400
|
+
thickness: u("--lg-thickness"),
|
|
401
|
+
blur: parseFloat(a.getPropertyValue("--lg-blur").trim()) === 0 ? 0 : 15.3 - 14 * d,
|
|
402
|
+
level: u("--lg-refraction") ?? 1,
|
|
403
|
+
zoom: Math.max(1, u("--lg-zoom") ?? 1),
|
|
404
|
+
shine: Math.max(0, u("--lg-shine") ?? 1)
|
|
405
|
+
}, p = n ? ie(r, i, c, t, f) : "", m = h((Math.min(r, i) - 60) / 60, 0, 1);
|
|
406
|
+
!t && !e.hasAttribute("data-size-fixed") && e.style.setProperty("--lg-size", String(m)), n && (e.style.setProperty("--lg-filter", p), t || e.style.setProperty("--lg-lens-blur", "0px"), !t && I() && (u("--lg-transparency") ?? .5) <= .5 ? e.style.setProperty("--lg-size-curve", se(m)) : e.style.removeProperty("--lg-size-curve")), t ? e.style.setProperty("--lg-rim", A(r, i, c, f.shine, d)) : (M.set(e, [
|
|
407
|
+
r,
|
|
408
|
+
i,
|
|
409
|
+
c,
|
|
410
|
+
f.shine,
|
|
411
|
+
d
|
|
412
|
+
]), j(e, r, i, c, f.shine, e.hasAttribute("data-pressed") ? 1 : d), l || e.style.removeProperty("--lg-mask"));
|
|
413
|
+
}
|
|
414
|
+
function le(e) {
|
|
415
|
+
if ("requestIdleCallback" in window) {
|
|
416
|
+
let t = requestIdleCallback(e, { timeout: 500 });
|
|
417
|
+
return () => cancelIdleCallback(t);
|
|
418
|
+
}
|
|
419
|
+
let t = setTimeout(e, 50);
|
|
420
|
+
return () => clearTimeout(t);
|
|
421
|
+
}
|
|
422
|
+
var I = () => /Chrom(?:e|ium)\//.test(navigator.userAgent), ue = () => !/AppleWebKit\//.test(navigator.userAgent);
|
|
423
|
+
function L(e, t, n, r = !1) {
|
|
424
|
+
let i;
|
|
425
|
+
r && F(e, t, n);
|
|
426
|
+
let a = new ResizeObserver(() => {
|
|
427
|
+
i?.(), i = le(() => F(e, t, n));
|
|
428
|
+
});
|
|
429
|
+
return a.observe(e), () => {
|
|
430
|
+
i?.(), a.disconnect(), e.style.removeProperty("--lg-filter"), e.style.removeProperty("--lg-lens-blur"), e.style.removeProperty("--lg-size-curve"), e.style.removeProperty("--lg-size"), P(e);
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
var de = (e) => L(e, !1, !1, !0);
|
|
434
|
+
function fe(e, t, n, r) {
|
|
435
|
+
return !t || !n ? () => {} : (j(e, t, n, r, parseFloat(getComputedStyle(e).getPropertyValue("--lg-shine")) || 1), () => P(e));
|
|
436
|
+
}
|
|
437
|
+
function pe(e) {
|
|
438
|
+
return I() ? (F(e, !1, !0), () => {
|
|
439
|
+
e.style.removeProperty("--lg-filter"), e.style.removeProperty("--lg-lens-blur"), e.style.removeProperty("--lg-size-curve");
|
|
440
|
+
}) : () => {};
|
|
441
|
+
}
|
|
442
|
+
var R = "data-liquidglass-backdrop";
|
|
443
|
+
function me(e) {
|
|
444
|
+
let { left: t, top: n, right: r, bottom: i } = e.getBoundingClientRect();
|
|
445
|
+
for (let a = e.parentElement; a && a !== document.body; a = a.parentElement) {
|
|
446
|
+
let e = getComputedStyle(a);
|
|
447
|
+
if (!/hidden|clip|auto|scroll/.test(`${e.overflow} ${e.overflowX} ${e.overflowY}`)) continue;
|
|
448
|
+
let o = a.getBoundingClientRect();
|
|
449
|
+
t = Math.max(t, o.left), n = Math.max(n, o.top), r = Math.min(r, o.right), i = Math.min(i, o.bottom);
|
|
450
|
+
}
|
|
451
|
+
return new DOMRect(t, n, Math.max(0, r - t), Math.max(0, i - n));
|
|
452
|
+
}
|
|
453
|
+
function he(e) {
|
|
454
|
+
let t = e.getBoundingClientRect(), n = (n) => {
|
|
455
|
+
if (n.contains(e) || e.contains(n)) return !1;
|
|
456
|
+
let r = me(n);
|
|
457
|
+
return r.left < t.right && r.right > t.left && r.top < t.bottom && r.bottom > t.top;
|
|
458
|
+
};
|
|
459
|
+
for (let t = e.parentElement; t && t !== document.body; t = t.parentElement) {
|
|
460
|
+
let e = [...t.querySelectorAll(`[${R}]`)].find(n);
|
|
461
|
+
if (e) return e;
|
|
462
|
+
}
|
|
463
|
+
return null;
|
|
464
|
+
}
|
|
465
|
+
var ge = /^(transition|animation|view-transition)/, z = {
|
|
466
|
+
position: "absolute",
|
|
467
|
+
top: "0px",
|
|
468
|
+
left: "0px",
|
|
469
|
+
right: "auto",
|
|
470
|
+
bottom: "auto",
|
|
471
|
+
"margin-top": "0px",
|
|
472
|
+
"margin-right": "0px",
|
|
473
|
+
"margin-bottom": "0px",
|
|
474
|
+
"margin-left": "0px",
|
|
475
|
+
transform: "none",
|
|
476
|
+
translate: "none",
|
|
477
|
+
scale: "none",
|
|
478
|
+
rotate: "none"
|
|
479
|
+
}, _e = (e) => e.startsWith("--") ? e : e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
|
480
|
+
function B(e, t, n, r) {
|
|
481
|
+
let i = getComputedStyle(e), a = (e) => {
|
|
482
|
+
if (ge.test(e) || n && (e in z || e === "width" || e === "height")) return;
|
|
483
|
+
let r = i.getPropertyValue(e);
|
|
484
|
+
t.style.getPropertyValue(e) !== r && t.style.setProperty(e, r);
|
|
485
|
+
};
|
|
486
|
+
if (r) for (let e of r) a(e);
|
|
487
|
+
else for (let e = 0; e < i.length; e++) a(i[e]);
|
|
488
|
+
if (n) {
|
|
489
|
+
for (let [e, n] of Object.entries(z)) t.style.setProperty(e, n);
|
|
490
|
+
t.style.width = `${e.offsetWidth}px`, t.style.height = `${e.offsetHeight}px`;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
function V(e) {
|
|
494
|
+
let t = e.cloneNode(!0), n = [e, ...e.querySelectorAll("*")], r = [t, ...t.querySelectorAll("*")], i = /* @__PURE__ */ new Map();
|
|
495
|
+
return n.forEach((t, n) => {
|
|
496
|
+
let a = r[n];
|
|
497
|
+
a && (i.set(t, a), a.removeAttribute("id"), a instanceof HTMLImageElement && (a.loading = "eager"), a.style.transition = a.style.animation = "none", a.style.setProperty("view-transition-name", "none"), B(t, a, t === e));
|
|
498
|
+
}), t.removeAttribute(R), {
|
|
499
|
+
root: t,
|
|
500
|
+
pairs: i
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
var ve = /* @__PURE__ */ new Set([
|
|
504
|
+
"offset",
|
|
505
|
+
"computedOffset",
|
|
506
|
+
"easing",
|
|
507
|
+
"composite"
|
|
508
|
+
]);
|
|
509
|
+
function ye(e) {
|
|
510
|
+
let t = /* @__PURE__ */ new Map();
|
|
511
|
+
if (typeof e.getAnimations != "function") return t;
|
|
512
|
+
for (let n of e.getAnimations({ subtree: !0 })) {
|
|
513
|
+
let e = n.effect;
|
|
514
|
+
if (!e?.target || e.pseudoElement) continue;
|
|
515
|
+
let r = t.get(e.target) ?? /* @__PURE__ */ new Set();
|
|
516
|
+
if ("transitionProperty" in n) r.add(String(n.transitionProperty));
|
|
517
|
+
else for (let t of e.getKeyframes()) for (let e of Object.keys(t)) ve.has(e) || r.add(_e(e));
|
|
518
|
+
t.set(e.target, r);
|
|
519
|
+
}
|
|
520
|
+
return t;
|
|
521
|
+
}
|
|
522
|
+
var be = /* @__PURE__ */ new Set([
|
|
523
|
+
"src",
|
|
524
|
+
"srcset",
|
|
525
|
+
"sizes"
|
|
526
|
+
]);
|
|
527
|
+
function xe(e, t) {
|
|
528
|
+
let n = document.createElement("div"), r = document.createElement("div");
|
|
529
|
+
n.className = "lg-glass-copy", n.setAttribute("aria-hidden", "true"), n.setAttribute("inert", ""), n.append(r), e.before(n), e.setAttribute("data-copy", "");
|
|
530
|
+
let i = getComputedStyle(e), a = "", o = () => {
|
|
531
|
+
let e = (e) => i.getPropertyValue(e).trim(), t = [
|
|
532
|
+
`blur(${e("--lg-lens-blur") || e("--lg-blur") || "15.3px"}) ${e("--lg-filter")} ${e("--lg-tone")}`,
|
|
533
|
+
i.borderRadius,
|
|
534
|
+
i.opacity,
|
|
535
|
+
i.visibility
|
|
536
|
+
];
|
|
537
|
+
t.join("|") !== a && (a = t.join("|"), n.style.filter = t[0], n.style.borderRadius = t[1], n.style.clipPath = `inset(0 round ${t[1]})`, n.style.opacity = t[2], n.style.visibility = t[3]);
|
|
538
|
+
}, s = "", c = {
|
|
539
|
+
x: 0,
|
|
540
|
+
y: 0
|
|
541
|
+
}, l = () => {
|
|
542
|
+
let i = e.offsetWidth, a = e.offsetHeight;
|
|
543
|
+
if (!i || !a || !t.offsetWidth || !t.offsetHeight) {
|
|
544
|
+
n.style.display = "none";
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
n.style.display = "";
|
|
548
|
+
let o = e.getBoundingClientRect(), l = t.getBoundingClientRect(), u = n.getBoundingClientRect(), d = o.width / i, f = o.height / a, p = o.left - (u.left - c.x), m = o.top - (u.top - c.y), h = [
|
|
549
|
+
i,
|
|
550
|
+
a,
|
|
551
|
+
`translate(${p}px, ${m}px) scale(${d}, ${f})`,
|
|
552
|
+
`translate(${(l.left - o.left) / d}px, ${(l.top - o.top) / f}px) scale(${l.width / t.offsetWidth / d}, ${l.height / t.offsetHeight / f})`
|
|
553
|
+
].join("|");
|
|
554
|
+
h !== s && (s = h, c = {
|
|
555
|
+
x: p,
|
|
556
|
+
y: m
|
|
557
|
+
}, n.style.width = `${i}px`, n.style.height = `${a}px`, n.style.transform = `translate(${p}px, ${m}px) scale(${d}, ${f})`, r.style.transform = h.split("|")[3]);
|
|
558
|
+
}, u = V(t);
|
|
559
|
+
r.append(u.root);
|
|
560
|
+
let d = !1, f = () => {
|
|
561
|
+
for (let [e, n] of u.pairs) B(e, n, e === t);
|
|
562
|
+
s = "", l();
|
|
563
|
+
}, p = 0, m = 0, h = () => {
|
|
564
|
+
p = 0;
|
|
565
|
+
let e = V(t), n = ++m, i = [...e.root.querySelectorAll("img")];
|
|
566
|
+
e.root instanceof HTMLImageElement && i.push(e.root), Promise.all(i.map((e) => typeof e.decode == "function" ? e.decode().catch(() => void 0) : void 0)).then(() => {
|
|
567
|
+
d || n !== m || (r.replaceChildren(e.root), u = e, s = "", l());
|
|
568
|
+
});
|
|
569
|
+
}, g = () => {
|
|
570
|
+
p ||= requestAnimationFrame(h);
|
|
571
|
+
}, _ = /* @__PURE__ */ new Map(), v = () => {
|
|
572
|
+
let e = ye(t);
|
|
573
|
+
for (let [n, r] of new Map([..._, ...e])) {
|
|
574
|
+
let e = u.pairs.get(n);
|
|
575
|
+
e && B(n, e, n === t, r);
|
|
576
|
+
}
|
|
577
|
+
_ = e;
|
|
578
|
+
}, y = new MutationObserver(() => {
|
|
579
|
+
o(), l();
|
|
580
|
+
});
|
|
581
|
+
y.observe(e, {
|
|
582
|
+
attributes: !0,
|
|
583
|
+
attributeFilter: [
|
|
584
|
+
"style",
|
|
585
|
+
"class",
|
|
586
|
+
"disabled"
|
|
587
|
+
]
|
|
588
|
+
});
|
|
589
|
+
let b = new MutationObserver((e) => {
|
|
590
|
+
let t = !1;
|
|
591
|
+
for (let n of e) {
|
|
592
|
+
let e = n.attributeName;
|
|
593
|
+
if (n.type !== "attributes" || be.has(e)) {
|
|
594
|
+
t = !0;
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
let r = u.pairs.get(n.target);
|
|
598
|
+
if (!r || e === "id" || e === "style" || e === R) continue;
|
|
599
|
+
let i = n.target.getAttribute(e);
|
|
600
|
+
i === null ? r.removeAttribute(e) : r.setAttribute(e, i);
|
|
601
|
+
}
|
|
602
|
+
t && g(), f();
|
|
603
|
+
});
|
|
604
|
+
b.observe(t, {
|
|
605
|
+
attributes: !0,
|
|
606
|
+
childList: !0,
|
|
607
|
+
characterData: !0,
|
|
608
|
+
subtree: !0
|
|
609
|
+
});
|
|
610
|
+
let x = new MutationObserver(f);
|
|
611
|
+
for (let e = t.parentElement; e; e = e.parentElement) x.observe(e, { attributes: !0 });
|
|
612
|
+
let S = matchMedia("(prefers-color-scheme: dark)");
|
|
613
|
+
S.addEventListener("change", f);
|
|
614
|
+
let C = new ResizeObserver(f);
|
|
615
|
+
C.observe(t), t.addEventListener("load", f, !0), t.addEventListener("transitionend", f), document.addEventListener("scroll", l, {
|
|
616
|
+
capture: !0,
|
|
617
|
+
passive: !0
|
|
618
|
+
}), window.addEventListener("resize", l), o(), l();
|
|
619
|
+
let w = 0, T = () => {
|
|
620
|
+
o(), v(), l(), w = requestAnimationFrame(T);
|
|
621
|
+
};
|
|
622
|
+
return w = requestAnimationFrame(T), () => {
|
|
623
|
+
d = !0, cancelAnimationFrame(w), cancelAnimationFrame(p), y.disconnect(), b.disconnect(), x.disconnect(), C.disconnect(), S.removeEventListener("change", f), t.removeEventListener("load", f, !0), t.removeEventListener("transitionend", f), document.removeEventListener("scroll", l, { capture: !0 }), window.removeEventListener("resize", l), n.remove(), e.removeAttribute("data-copy");
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
function H(e, t = !1) {
|
|
627
|
+
r(() => {
|
|
628
|
+
let n = e.current;
|
|
629
|
+
if (!n) return;
|
|
630
|
+
if (I()) return L(n, t, !0);
|
|
631
|
+
let r = t ? null : he(n);
|
|
632
|
+
if (!r) return L(n, t, !1);
|
|
633
|
+
let i = xe(n, r), a = L(n, t, ue());
|
|
634
|
+
return () => {
|
|
635
|
+
a(), i();
|
|
636
|
+
};
|
|
637
|
+
}, [e, t]);
|
|
638
|
+
}
|
|
639
|
+
// src/internal/spring.ts
|
|
640
|
+
var U = /* @__PURE__ */ new Set(), W = 0, G = 0, K = !1;
|
|
641
|
+
function Se(e, t) {
|
|
642
|
+
let n = e.value - e.target, r = e.velocity, i = e.damping / 2, a = i * i - e.stiffness;
|
|
643
|
+
if (Math.abs(a) < 1e-4) {
|
|
644
|
+
let a = Math.exp(-i * t), o = r + i * n;
|
|
645
|
+
e.value = e.target + a * (n + o * t), e.velocity = a * (r - i * o * t);
|
|
646
|
+
} else if (a > 0) {
|
|
647
|
+
let o = Math.sqrt(a), s = -i + o, c = -i - o, l = (r - c * n) / (s - c), u = n - l;
|
|
648
|
+
e.value = e.target + l * Math.exp(s * t) + u * Math.exp(c * t), e.velocity = l * s * Math.exp(s * t) + u * c * Math.exp(c * t);
|
|
649
|
+
} else {
|
|
650
|
+
let o = Math.sqrt(-a), s = Math.exp(-i * t), c = Math.cos(o * t), l = Math.sin(o * t);
|
|
651
|
+
e.value = e.target + s * (n * c + (r + i * n) / o * l), e.velocity = s * (r * c - (i * r + e.stiffness * n) / o * l);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
function q(e) {
|
|
655
|
+
U.delete(e), !U.size && W && (cancelAnimationFrame(W), W = 0);
|
|
656
|
+
}
|
|
657
|
+
function J(e) {
|
|
658
|
+
W = 0;
|
|
659
|
+
let t = Math.min(.1, Math.max(0, (e - G) / 1e3));
|
|
660
|
+
G = e, K = !0;
|
|
661
|
+
try {
|
|
662
|
+
for (let e of U) Se(e, t), Math.abs(e.value - e.target) < 1e-4 && Math.abs(e.velocity) < .001 && (e.value = e.target, e.velocity = 0, U.delete(e)), e.paint(e.value);
|
|
663
|
+
} finally {
|
|
664
|
+
K = !1;
|
|
665
|
+
}
|
|
666
|
+
U.size && (W = requestAnimationFrame(J));
|
|
667
|
+
}
|
|
668
|
+
function Ce(e, t = 3) {
|
|
669
|
+
if (document.hidden || Y()) return e(), () => {};
|
|
670
|
+
let n = 0, r = (t) => {
|
|
671
|
+
n = requestAnimationFrame(() => t > 1 ? r(t - 1) : e());
|
|
672
|
+
};
|
|
673
|
+
return r(t), () => cancelAnimationFrame(n);
|
|
674
|
+
}
|
|
675
|
+
function Y() {
|
|
676
|
+
return matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
677
|
+
}
|
|
678
|
+
function X(e, t, n, r) {
|
|
679
|
+
let i = {
|
|
680
|
+
value: e,
|
|
681
|
+
target: e,
|
|
682
|
+
velocity: 0,
|
|
683
|
+
stiffness: t,
|
|
684
|
+
damping: n,
|
|
685
|
+
paint: r
|
|
686
|
+
};
|
|
687
|
+
return {
|
|
688
|
+
paint: () => r(i.value),
|
|
689
|
+
set(e, t = !1) {
|
|
690
|
+
i.target = e, t || document.hidden || Y() ? (i.value = e, i.velocity = 0, q(i), r(e)) : (U.add(i), !W && !K && (G = Number(document.timeline?.currentTime ?? performance.now()), W = requestAnimationFrame(J)));
|
|
691
|
+
},
|
|
692
|
+
tune(e, t) {
|
|
693
|
+
i.stiffness = e, i.damping = t;
|
|
694
|
+
},
|
|
695
|
+
stop: () => q(i)
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
// src/internal/press.ts
|
|
699
|
+
var Z = {
|
|
700
|
+
grow: 6,
|
|
701
|
+
press: [417.6, 29.2],
|
|
702
|
+
release: [230, 23.7]
|
|
703
|
+
}, we = {
|
|
704
|
+
grow: 16,
|
|
705
|
+
press: [795, 38],
|
|
706
|
+
release: [342, 13.5]
|
|
707
|
+
}, Te = (e) => {
|
|
708
|
+
let t = e.parentElement;
|
|
709
|
+
return t?.classList.contains("lg-toolbar-group") && e.dataset.variant !== "filled" ? t : e;
|
|
710
|
+
};
|
|
711
|
+
function Ee(e) {
|
|
712
|
+
r(() => {
|
|
713
|
+
let t = e.current;
|
|
714
|
+
if (!t) return;
|
|
715
|
+
let n = [
|
|
716
|
+
1,
|
|
717
|
+
1,
|
|
718
|
+
0,
|
|
719
|
+
0
|
|
720
|
+
], r = t, i = () => {
|
|
721
|
+
r.style.scale = `${n[0]} ${n[1]}`, r.style.translate = `${n[2]}px ${n[3]}px`;
|
|
722
|
+
}, a = n.map((e, t) => X(e, ...Z.release, (e) => {
|
|
723
|
+
n[t] = e, i();
|
|
724
|
+
})), o = null, s = (e, [t, n]) => {
|
|
725
|
+
a.forEach((r, i) => {
|
|
726
|
+
r.tune(t, n), r.set(e[i] ?? 0);
|
|
727
|
+
});
|
|
728
|
+
}, c = (e) => {
|
|
729
|
+
if (!o) return;
|
|
730
|
+
let { box: t, feel: n } = o;
|
|
731
|
+
r.style.setProperty("--lg-x", `${(e.clientX - t.left) / t.width * 100}%`), r.style.setProperty("--lg-y", `${(e.clientY - t.top) / t.height * 100}%`);
|
|
732
|
+
let { width: i, height: a } = t, c = 1 + n.grow / Math.max(i, a), l = i / a, u = (e.clientX - o.x) / l, d = e.clientY - o.y, f = Math.hypot(u, d);
|
|
733
|
+
if (!f) return s([
|
|
734
|
+
c,
|
|
735
|
+
c,
|
|
736
|
+
0,
|
|
737
|
+
0
|
|
738
|
+
], n.press);
|
|
739
|
+
let p = u / f, m = d / f, h = 1 - 1 / (1 + f / a / (5 * l)), g = 1 + 6 / a * h * Math.abs(Math.abs(p) - Math.abs(m)), _ = Math.abs(p) > Math.abs(m);
|
|
740
|
+
s([
|
|
741
|
+
c * (_ ? g : 1 / g),
|
|
742
|
+
c * (_ ? 1 / g : g),
|
|
743
|
+
p * 8 * h,
|
|
744
|
+
m * 8 * h
|
|
745
|
+
], n.press);
|
|
746
|
+
}, l = (e) => {
|
|
747
|
+
e.pointerId === o?.id && c(e);
|
|
748
|
+
}, u = (e) => {
|
|
749
|
+
if (e && e.pointerId !== o?.id) return;
|
|
750
|
+
let n = o?.feel ?? Z;
|
|
751
|
+
o = null, delete t.dataset.pressed, r !== t && delete r.dataset.pressed, N(r, !1), window.removeEventListener("pointermove", l), window.removeEventListener("pointerup", u), window.removeEventListener("pointercancel", u), s([
|
|
752
|
+
1,
|
|
753
|
+
1,
|
|
754
|
+
0,
|
|
755
|
+
0
|
|
756
|
+
], n.release);
|
|
757
|
+
}, d = (e) => {
|
|
758
|
+
if (!e.isPrimary || e.button !== 0 || o || t.matches(":disabled")) return;
|
|
759
|
+
let n = Te(t);
|
|
760
|
+
n !== r && (r.style.removeProperty("scale"), r.style.removeProperty("translate"), r = n), o = {
|
|
761
|
+
id: e.pointerId,
|
|
762
|
+
x: e.clientX,
|
|
763
|
+
y: e.clientY,
|
|
764
|
+
box: r.getBoundingClientRect(),
|
|
765
|
+
feel: e.pointerType === "mouse" ? Z : we
|
|
766
|
+
}, t.dataset.pressed = "", r.dataset.pressed = "", N(r, !0), window.addEventListener("pointermove", l), window.addEventListener("pointerup", u), window.addEventListener("pointercancel", u), c(e);
|
|
767
|
+
}, f = () => u();
|
|
768
|
+
return t.addEventListener("pointerdown", d), window.addEventListener("blur", f), () => {
|
|
769
|
+
u(), a.forEach((e) => e.stop()), t.removeEventListener("pointerdown", d), window.removeEventListener("blur", f), r.style.removeProperty("scale"), r.style.removeProperty("translate");
|
|
770
|
+
};
|
|
771
|
+
}, [e]);
|
|
772
|
+
}
|
|
773
|
+
// src/config-provider.tsx
|
|
774
|
+
var De = {
|
|
775
|
+
languageTag: "zh-CN",
|
|
776
|
+
cancel: "取消",
|
|
777
|
+
applyRange: "应用范围",
|
|
778
|
+
invalidDateRange: "请选择有效的起止日期,并保持结束日期不早于开始日期。",
|
|
779
|
+
requiredDateRange: "请选择开始日期和结束日期。",
|
|
780
|
+
choose: "请选择",
|
|
781
|
+
pagination: "分页",
|
|
782
|
+
dateRange: "日期范围",
|
|
783
|
+
resetFilters: "重置筛选",
|
|
784
|
+
increase: "增加",
|
|
785
|
+
decrease: "减少",
|
|
786
|
+
showTabs: "展开标签",
|
|
787
|
+
previousMonth: "上个月",
|
|
788
|
+
nextMonth: "下个月",
|
|
789
|
+
calendarMonth: (e) => `${e.slice(0, 4)} 年 ${Number(e.slice(5))} 月`,
|
|
790
|
+
activeDays: (e) => `活跃 ${e} 天`,
|
|
791
|
+
lessActivity: "少",
|
|
792
|
+
moreActivity: "多",
|
|
793
|
+
weekdays: [
|
|
794
|
+
"一",
|
|
795
|
+
"二",
|
|
796
|
+
"三",
|
|
797
|
+
"四",
|
|
798
|
+
"五",
|
|
799
|
+
"六",
|
|
800
|
+
"日"
|
|
801
|
+
],
|
|
802
|
+
selectRow: (e) => "选择 " + e,
|
|
803
|
+
chooseAtLeastOne: "请至少选择一项",
|
|
804
|
+
dropFiles: "也可将文件拖放到这里",
|
|
805
|
+
tooManyFiles: (e) => `最多选择 ${e} 个文件`,
|
|
806
|
+
invalidFile: (e) => `${e} 的类型或大小不符合要求`,
|
|
807
|
+
close: "关闭",
|
|
808
|
+
clear: "清除",
|
|
809
|
+
previous: "上一页",
|
|
810
|
+
next: "下一页",
|
|
811
|
+
loading: "加载中",
|
|
812
|
+
empty: "暂无数据",
|
|
813
|
+
retry: "重试",
|
|
814
|
+
selectAll: "全选",
|
|
815
|
+
columns: "显示列",
|
|
816
|
+
search: "搜索",
|
|
817
|
+
startDate: "开始日期",
|
|
818
|
+
endDate: "结束日期",
|
|
819
|
+
page: (e) => `第 ${e} 页`,
|
|
820
|
+
pageSize: "每页条数",
|
|
821
|
+
pageSizeOption: (e) => `${e} / 页`,
|
|
822
|
+
total: (e) => `共 ${e} 条`
|
|
823
|
+
}, Oe = {
|
|
824
|
+
languageTag: "en-US",
|
|
825
|
+
cancel: "Cancel",
|
|
826
|
+
applyRange: "Apply range",
|
|
827
|
+
invalidDateRange: "Choose valid dates with the end on or after the start.",
|
|
828
|
+
requiredDateRange: "Choose a start and an end date.",
|
|
829
|
+
choose: "Choose an option",
|
|
830
|
+
pagination: "Pagination",
|
|
831
|
+
dateRange: "Date range",
|
|
832
|
+
resetFilters: "Reset filters",
|
|
833
|
+
increase: "Increase",
|
|
834
|
+
decrease: "Decrease",
|
|
835
|
+
showTabs: "Expand tabs",
|
|
836
|
+
previousMonth: "Previous month",
|
|
837
|
+
nextMonth: "Next month",
|
|
838
|
+
calendarMonth: (e) => new Intl.DateTimeFormat("en-US", {
|
|
839
|
+
month: "long",
|
|
840
|
+
year: "numeric",
|
|
841
|
+
timeZone: "UTC"
|
|
842
|
+
}).format(/* @__PURE__ */ new Date(e + "-01T12:00:00Z")),
|
|
843
|
+
activeDays: (e) => `${e} active days`,
|
|
844
|
+
lessActivity: "Less",
|
|
845
|
+
moreActivity: "More",
|
|
846
|
+
weekdays: [
|
|
847
|
+
"Mon",
|
|
848
|
+
"Tue",
|
|
849
|
+
"Wed",
|
|
850
|
+
"Thu",
|
|
851
|
+
"Fri",
|
|
852
|
+
"Sat",
|
|
853
|
+
"Sun"
|
|
854
|
+
],
|
|
855
|
+
selectRow: (e) => "Select " + e,
|
|
856
|
+
chooseAtLeastOne: "Select at least one option",
|
|
857
|
+
dropFiles: "Or drop files here",
|
|
858
|
+
tooManyFiles: (e) => `Choose at most ${e} files`,
|
|
859
|
+
invalidFile: (e) => `${e} has an unsupported type or size`,
|
|
860
|
+
close: "Close",
|
|
861
|
+
clear: "Clear",
|
|
862
|
+
previous: "Previous",
|
|
863
|
+
next: "Next",
|
|
864
|
+
loading: "Loading",
|
|
865
|
+
empty: "No data",
|
|
866
|
+
retry: "Retry",
|
|
867
|
+
selectAll: "Select all",
|
|
868
|
+
columns: "Columns",
|
|
869
|
+
search: "Search",
|
|
870
|
+
startDate: "Start date",
|
|
871
|
+
endDate: "End date",
|
|
872
|
+
page: (e) => `Page ${e}`,
|
|
873
|
+
pageSize: "Rows per page",
|
|
874
|
+
pageSizeOption: (e) => `${e} / page`,
|
|
875
|
+
total: (e) => `${e} items`
|
|
876
|
+
}, ke = e({
|
|
877
|
+
locale: De,
|
|
878
|
+
density: "comfortable",
|
|
879
|
+
direction: "ltr"
|
|
880
|
+
});
|
|
881
|
+
function Q() {
|
|
882
|
+
return n(ke);
|
|
883
|
+
}
|
|
884
|
+
function Ae({ locale: e, density: t, direction: n, theme: r, tokens: i, children: o, style: c, ...l }) {
|
|
885
|
+
let u = Q(), d = a(() => ({
|
|
886
|
+
locale: {
|
|
887
|
+
...u.locale,
|
|
888
|
+
...e
|
|
889
|
+
},
|
|
890
|
+
density: t ?? u.density,
|
|
891
|
+
direction: n ?? u.direction
|
|
892
|
+
}), [
|
|
893
|
+
u,
|
|
894
|
+
e,
|
|
895
|
+
t,
|
|
896
|
+
n
|
|
897
|
+
]);
|
|
898
|
+
return /* @__PURE__ */ s(ke.Provider, {
|
|
899
|
+
value: d,
|
|
900
|
+
children: /* @__PURE__ */ s("div", {
|
|
901
|
+
...l,
|
|
902
|
+
dir: d.direction,
|
|
903
|
+
"data-theme": r,
|
|
904
|
+
"data-lg-density": d.density,
|
|
905
|
+
style: {
|
|
906
|
+
...i,
|
|
907
|
+
...c
|
|
908
|
+
},
|
|
909
|
+
children: o
|
|
910
|
+
})
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
// src/progress.tsx
|
|
914
|
+
var je = /* @__PURE__ */ t(function({ value: e, className: t, style: n, ...r }, i) {
|
|
915
|
+
let a = Math.min(1, Math.max(0, e));
|
|
916
|
+
return /* @__PURE__ */ s("div", {
|
|
917
|
+
ref: i,
|
|
918
|
+
role: "progressbar",
|
|
919
|
+
"aria-valuemin": 0,
|
|
920
|
+
"aria-valuemax": 1,
|
|
921
|
+
"aria-valuenow": a,
|
|
922
|
+
className: d("lg-progress", t),
|
|
923
|
+
style: {
|
|
924
|
+
...n,
|
|
925
|
+
"--lg-progress": a
|
|
926
|
+
},
|
|
927
|
+
...r,
|
|
928
|
+
children: /* @__PURE__ */ s("span", { className: "lg-progress-fill" })
|
|
929
|
+
});
|
|
930
|
+
}), Me = [
|
|
931
|
+
0,
|
|
932
|
+
1,
|
|
933
|
+
2,
|
|
934
|
+
3,
|
|
935
|
+
4,
|
|
936
|
+
5,
|
|
937
|
+
6,
|
|
938
|
+
7
|
|
939
|
+
], $ = /* @__PURE__ */ t(function({ className: e, ...t }, n) {
|
|
940
|
+
let { locale: r } = Q();
|
|
941
|
+
return /* @__PURE__ */ s("span", {
|
|
942
|
+
ref: n,
|
|
943
|
+
role: "status",
|
|
944
|
+
"aria-label": r.loading,
|
|
945
|
+
className: d("lg-spinner", e),
|
|
946
|
+
...t,
|
|
947
|
+
children: Me.map((e) => /* @__PURE__ */ s("i", { style: { "--lg-blade": e } }, e))
|
|
948
|
+
});
|
|
949
|
+
}), Ne = /* @__PURE__ */ t(function({ icon: e, loading: t = !1, disabled: n, variant: r = "glass", size: a, destructive: l, tint: u, children: f, className: p, style: m, type: h = "button", ...g }, _) {
|
|
950
|
+
let { density: v } = Q(), y = a ?? (v === "compact" ? "small" : "regular"), b = o(null);
|
|
951
|
+
return i(_, () => b.current), Ee(b), H(b), /* @__PURE__ */ c("button", {
|
|
952
|
+
ref: b,
|
|
953
|
+
type: h,
|
|
954
|
+
disabled: n || t,
|
|
955
|
+
"aria-busy": t || void 0,
|
|
956
|
+
className: d("lg-glass lg-button", p),
|
|
957
|
+
"data-icon": e == null ? void 0 : f == null ? "only" : "",
|
|
958
|
+
"data-variant": r === "glass" ? void 0 : r,
|
|
959
|
+
"data-size": y === "regular" ? void 0 : y,
|
|
960
|
+
"data-destructive": l ? "" : void 0,
|
|
961
|
+
"data-tint": u ? "" : void 0,
|
|
962
|
+
style: u ? {
|
|
963
|
+
...m,
|
|
964
|
+
"--lg-tint": u
|
|
965
|
+
} : m,
|
|
966
|
+
...g,
|
|
967
|
+
children: [t ? /* @__PURE__ */ s($, { "aria-hidden": "true" }) : e, f]
|
|
968
|
+
});
|
|
969
|
+
});
|
|
970
|
+
export { Oe as a, Ce as c, pe as d, de as f, d as h, Ae as i, X as l, H as m, je as n, Q as o, fe as p, $ as r, De as s, Ne as t, Y as u };
|