@gnome-ui/react-native 1.7.0 → 1.8.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/README.md +326 -3
- package/dist/components/Blockquote/Blockquote.d.ts +40 -0
- package/dist/components/Blockquote/index.d.ts +2 -0
- package/dist/components/BottomTabBar/BottomTabBar.d.ts +106 -0
- package/dist/components/BottomTabBar/index.d.ts +2 -0
- package/dist/components/ButtonRow/ButtonRow.d.ts +41 -0
- package/dist/components/ButtonRow/index.d.ts +2 -0
- package/dist/components/Callout/Callout.d.ts +36 -0
- package/dist/components/Callout/index.d.ts +2 -0
- package/dist/components/CheckRow/CheckRow.d.ts +47 -0
- package/dist/components/CheckRow/index.d.ts +2 -0
- package/dist/components/ExpanderRow/ExpanderRow.d.ts +58 -0
- package/dist/components/ExpanderRow/index.d.ts +2 -0
- package/dist/components/FieldGroup/FieldGroup.d.ts +52 -0
- package/dist/components/FieldGroup/index.d.ts +2 -0
- package/dist/components/FilterableMultiSelectDropdown/FilterableMultiSelectDropdown.d.ts +46 -0
- package/dist/components/FilterableMultiSelectDropdown/index.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +11 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +55 -0
- package/dist/components/MultiSelectDropdown/index.d.ts +2 -0
- package/dist/components/PasswordField/PasswordField.d.ts +48 -0
- package/dist/components/PasswordField/index.d.ts +2 -0
- package/dist/components/RangeSlider/RangeSlider.d.ts +73 -0
- package/dist/components/RangeSlider/index.d.ts +2 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +47 -0
- package/dist/components/StatusBadge/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1884 -526
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("react"),l=require("react-native"),u=require("react/jsx-runtime"),d=require("@gnome-ui/icons"),f=require("react-native-svg");f=s(f,1);var p={accentBgColor:`#3584e4`,accentColor:`#3584e4`,accentFgColor:`#fff`,activeOverlay:`rgba(0, 0, 0, 0.12)`,blockquoteBorderWidth:3,blue1:`#99c1f1`,blue2:`#62a0ea`,blue3:`#3584e4`,blue4:`#1c71d8`,blue5:`#1a5fb4`,borderSubtle:`rgba(0, 0, 0, 0.15)`,brown1:`#cdab8f`,brown2:`#b5835a`,brown3:`#986a44`,brown4:`#865e3c`,brown5:`#63452c`,cardBgColor:`#fff`,cardFgColor:`rgba(0, 0, 0, 0.8)`,cardShadeColor:`rgba(0, 0, 0, 0.12)`,dark1:`#77767b`,dark2:`#5e5c64`,dark3:`#3d3846`,dark4:`#241f31`,dark5:`#000`,destructiveBgColor:`#e01b24`,destructiveColor:`#e01b24`,destructiveFgColor:`#fff`,dialogBackdropBlur:4,dialogBackdropColor:`rgba(0, 0, 0, 0.5)`,dialogBgColor:`#fafafa`,dialogFgColor:`rgba(0, 0, 0, 0.8)`,dividerColor:`rgba(0, 0, 0, 0.07)`,durationFast:100,durationNormal:200,durationSlow:400,easingDefault:[.25,.46,.45,.94],errorBgColor:`#e01b24`,errorColor:`#e01b24`,errorFgColor:`#fff`,focusRingColor:`#3584e4`,focusRingOffset:2,focusRingWidth:3,fontFamily:`Adwaita Sans`,fontFamilyMono:`Adwaita Mono`,fontSizeBody:16,fontSizeCaption:12,fontSizeLargeTitle:36,fontSizeTitle1:30,fontSizeTitle2:24,fontSizeTitle3:20,fontSizeTitle4:18,fontWeightBold:700,fontWeightNormal:400,fontWeightSemibold:600,green1:`#8ff0a4`,green2:`#57e389`,green3:`#33d17a`,green4:`#2ec27e`,green5:`#26a269`,headerbarBgColor:`#ebebeb`,headerbarBorderColor:`rgba(0, 0, 0, 0.12)`,headerbarFgColor:`rgba(0, 0, 0, 0.8)`,headerbarShadeColor:`rgba(0, 0, 0, 0.12)`,hoverOverlay:`rgba(0, 0, 0, 0.06)`,layoutBreakpointMedium:550,layoutBreakpointNarrow:400,layoutBreakpointWide:860,layoutContentPadding:24,layoutContentPaddingCompact:12,layoutContentPaddingSpacious:36,layoutSidebarDefaultWidth:240,layoutSidebarMaxWidth:280,layoutSidebarMinWidth:180,layoutSidebarRailWidth:56,light1:`#fff`,light2:`#f6f5f4`,light3:`#deddda`,light4:`#c0bfbc`,light5:`#9a9996`,lineHeightBody:1.5,lineHeightHeading:1.2,lineHeightTitle:1.2,newBgColor:`#9141ac`,newColor:`#9141ac`,newFgColor:`#fff`,opacityBorder:.15,opacityDim:.55,opacityDisabled:.5,orange1:`#ffbe6f`,orange2:`#ffa348`,orange3:`#ff7800`,orange4:`#e66100`,orange5:`#c64600`,popoverBgColor:`#fff`,popoverFgColor:`rgba(0, 0, 0, 0.8)`,purple1:`#dc8add`,purple2:`#c061cb`,purple3:`#9141ac`,purple4:`#813d9c`,purple5:`#613583`,radiusLg:12,radiusMd:8,radiusPill:9999,radiusSm:4,radiusXl:15,red1:`#f66151`,red2:`#ed333b`,red3:`#e01b24`,red4:`#c01c28`,red5:`#a51d2d`,sidebarBgColor:`#ebebeb`,sidebarFgColor:`rgba(0, 0, 0, 0.8)`,skeletonBaseColor:`rgba(0, 0, 0, 0.09)`,skeletonHighlightColor:`rgba(255, 255, 255, 0.55)`,space1:6,space2:12,space3:18,space4:24,space5:36,space6:48,successBgColor:`#2ec27e`,successColor:`#2ec27e`,successFgColor:`#fff`,viewBgColor:`#fff`,viewFgColor:`rgba(0, 0, 0, 0.8)`,warningBgColor:`#f6d32d`,warningColor:`#e5a50a`,warningFgColor:`rgba(0, 0, 0, 0.8)`,windowBgColor:`#fafafa`,windowFgColor:`rgba(0, 0, 0, 0.8)`,yellow1:`#f9f06b`,yellow2:`#f8e45c`,yellow3:`#f6d32d`,yellow4:`#f5c211`,yellow5:`#e5a50a`},m={accentBgColor:`#3584e4`,accentColor:`#62a0ea`,accentFgColor:`#fff`,activeOverlay:`rgba(255, 255, 255, 0.14)`,blockquoteBorderWidth:3,blue1:`#99c1f1`,blue2:`#62a0ea`,blue3:`#3584e4`,blue4:`#1c71d8`,blue5:`#1a5fb4`,borderSubtle:`rgba(255, 255, 255, 0.15)`,brown1:`#cdab8f`,brown2:`#b5835a`,brown3:`#986a44`,brown4:`#865e3c`,brown5:`#63452c`,cardBgColor:`#383838`,cardFgColor:`rgba(255, 255, 255, 0.87)`,cardShadeColor:`rgba(255, 255, 255, 0.12)`,dark1:`#77767b`,dark2:`#5e5c64`,dark3:`#3d3846`,dark4:`#241f31`,dark5:`#000`,destructiveBgColor:`#e01b24`,destructiveColor:`#e01b24`,destructiveFgColor:`#fff`,dialogBackdropBlur:4,dialogBackdropColor:`rgba(0, 0, 0, 0.65)`,dialogBgColor:`#242424`,dialogFgColor:`rgba(255, 255, 255, 0.87)`,dividerColor:`rgba(255, 255, 255, 0.07)`,durationFast:100,durationNormal:200,durationSlow:400,easingDefault:[.25,.46,.45,.94],errorBgColor:`#e01b24`,errorColor:`#e01b24`,errorFgColor:`#fff`,focusRingColor:`#62a0ea`,focusRingOffset:2,focusRingWidth:3,fontFamily:`Adwaita Sans`,fontFamilyMono:`Adwaita Mono`,fontSizeBody:16,fontSizeCaption:12,fontSizeLargeTitle:36,fontSizeTitle1:30,fontSizeTitle2:24,fontSizeTitle3:20,fontSizeTitle4:18,fontWeightBold:700,fontWeightNormal:400,fontWeightSemibold:600,green1:`#8ff0a4`,green2:`#57e389`,green3:`#33d17a`,green4:`#2ec27e`,green5:`#26a269`,headerbarBgColor:`#303030`,headerbarBorderColor:`rgba(255, 255, 255, 0.1)`,headerbarFgColor:`rgba(255, 255, 255, 0.87)`,headerbarShadeColor:`rgba(0, 0, 0, 0.36)`,hoverOverlay:`rgba(255, 255, 255, 0.08)`,layoutBreakpointMedium:550,layoutBreakpointNarrow:400,layoutBreakpointWide:860,layoutContentPadding:24,layoutContentPaddingCompact:12,layoutContentPaddingSpacious:36,layoutSidebarDefaultWidth:240,layoutSidebarMaxWidth:280,layoutSidebarMinWidth:180,layoutSidebarRailWidth:56,light1:`#fff`,light2:`#f6f5f4`,light3:`#deddda`,light4:`#c0bfbc`,light5:`#9a9996`,lineHeightBody:1.5,lineHeightHeading:1.2,lineHeightTitle:1.2,newBgColor:`#9141ac`,newColor:`#9141ac`,newFgColor:`#fff`,opacityBorder:.15,opacityDim:.55,opacityDisabled:.5,orange1:`#ffbe6f`,orange2:`#ffa348`,orange3:`#ff7800`,orange4:`#e66100`,orange5:`#c64600`,popoverBgColor:`#383838`,popoverFgColor:`rgba(255, 255, 255, 0.87)`,purple1:`#dc8add`,purple2:`#c061cb`,purple3:`#9141ac`,purple4:`#813d9c`,purple5:`#613583`,radiusLg:12,radiusMd:8,radiusPill:9999,radiusSm:4,radiusXl:15,red1:`#f66151`,red2:`#ed333b`,red3:`#e01b24`,red4:`#c01c28`,red5:`#a51d2d`,sidebarBgColor:`#303030`,sidebarFgColor:`rgba(255, 255, 255, 0.87)`,skeletonBaseColor:`rgba(255, 255, 255, 0.12)`,skeletonHighlightColor:`rgba(255, 255, 255, 0.18)`,space1:6,space2:12,space3:18,space4:24,space5:36,space6:48,successBgColor:`#2ec27e`,successColor:`#2ec27e`,successFgColor:`#fff`,viewBgColor:`#1e1e1e`,viewFgColor:`rgba(255, 255, 255, 0.87)`,warningBgColor:`#f6d32d`,warningColor:`#e5a50a`,warningFgColor:`rgba(0, 0, 0, 0.8)`,windowBgColor:`#242424`,windowFgColor:`rgba(255, 255, 255, 0.87)`,yellow1:`#f9f06b`,yellow2:`#f8e45c`,yellow3:`#f6d32d`,yellow4:`#f5c211`,yellow5:`#e5a50a`},h={accentBgColor:`#1a5fb4`,accentColor:`#1a5fb4`,accentFgColor:`#fff`,activeOverlay:`rgba(0, 0, 0, 0.22)`,blockquoteBorderWidth:3,blue1:`#99c1f1`,blue2:`#62a0ea`,blue3:`#3584e4`,blue4:`#1c71d8`,blue5:`#1a5fb4`,borderSubtle:`rgba(0, 0, 0, 0.5)`,brown1:`#cdab8f`,brown2:`#b5835a`,brown3:`#986a44`,brown4:`#865e3c`,brown5:`#63452c`,cardBgColor:`#fff`,cardFgColor:`rgba(0, 0, 0, 0.8)`,cardShadeColor:`rgba(0, 0, 0, 0.12)`,dark1:`#77767b`,dark2:`#5e5c64`,dark3:`#3d3846`,dark4:`#241f31`,dark5:`#000`,destructiveBgColor:`#a51d2d`,destructiveColor:`#a51d2d`,destructiveFgColor:`#fff`,dialogBackdropBlur:4,dialogBackdropColor:`rgba(0, 0, 0, 0.5)`,dialogBgColor:`#fafafa`,dialogFgColor:`rgba(0, 0, 0, 0.8)`,dividerColor:`rgba(0, 0, 0, 0.2)`,durationFast:100,durationNormal:200,durationSlow:400,easingDefault:[.25,.46,.45,.94],errorBgColor:`#a51d2d`,errorColor:`#a51d2d`,errorFgColor:`#fff`,focusRingColor:`#1a5fb4`,focusRingOffset:2,focusRingWidth:3,fontFamily:`Adwaita Sans`,fontFamilyMono:`Adwaita Mono`,fontSizeBody:16,fontSizeCaption:12,fontSizeLargeTitle:36,fontSizeTitle1:30,fontSizeTitle2:24,fontSizeTitle3:20,fontSizeTitle4:18,fontWeightBold:700,fontWeightNormal:400,fontWeightSemibold:600,green1:`#8ff0a4`,green2:`#57e389`,green3:`#33d17a`,green4:`#2ec27e`,green5:`#26a269`,headerbarBgColor:`#ebebeb`,headerbarBorderColor:`rgba(0, 0, 0, 0.12)`,headerbarFgColor:`rgba(0, 0, 0, 0.8)`,headerbarShadeColor:`rgba(0, 0, 0, 0.12)`,hoverOverlay:`rgba(0, 0, 0, 0.12)`,layoutBreakpointMedium:550,layoutBreakpointNarrow:400,layoutBreakpointWide:860,layoutContentPadding:24,layoutContentPaddingCompact:12,layoutContentPaddingSpacious:36,layoutSidebarDefaultWidth:240,layoutSidebarMaxWidth:280,layoutSidebarMinWidth:180,layoutSidebarRailWidth:56,light1:`#fff`,light2:`#f6f5f4`,light3:`#deddda`,light4:`#c0bfbc`,light5:`#9a9996`,lineHeightBody:1.5,lineHeightHeading:1.2,lineHeightTitle:1.2,newBgColor:`#613583`,newColor:`#613583`,newFgColor:`#fff`,opacityBorder:.4,opacityDim:.7,opacityDisabled:.6,orange1:`#ffbe6f`,orange2:`#ffa348`,orange3:`#ff7800`,orange4:`#e66100`,orange5:`#c64600`,popoverBgColor:`#fff`,popoverFgColor:`rgba(0, 0, 0, 0.8)`,purple1:`#dc8add`,purple2:`#c061cb`,purple3:`#9141ac`,purple4:`#813d9c`,purple5:`#613583`,radiusLg:12,radiusMd:8,radiusPill:9999,radiusSm:4,radiusXl:15,red1:`#f66151`,red2:`#ed333b`,red3:`#e01b24`,red4:`#c01c28`,red5:`#a51d2d`,sidebarBgColor:`#ebebeb`,sidebarFgColor:`rgba(0, 0, 0, 0.8)`,skeletonBaseColor:`rgba(0, 0, 0, 0.09)`,skeletonHighlightColor:`rgba(255, 255, 255, 0.55)`,space1:6,space2:12,space3:18,space4:24,space5:36,space6:48,successBgColor:`#26a269`,successColor:`#26a269`,successFgColor:`#fff`,viewBgColor:`#fff`,viewFgColor:`rgba(0, 0, 0, 0.8)`,warningBgColor:`#e66100`,warningColor:`#c64600`,warningFgColor:`rgba(0, 0, 0, 0.8)`,windowBgColor:`#fafafa`,windowFgColor:`rgba(0, 0, 0, 0.8)`,yellow1:`#f9f06b`,yellow2:`#f8e45c`,yellow3:`#f6d32d`,yellow4:`#f5c211`,yellow5:`#e5a50a`},g={accentBgColor:`#62a0ea`,accentColor:`#99c1f1`,accentFgColor:`#fff`,activeOverlay:`rgba(255, 255, 255, 0.22)`,blockquoteBorderWidth:3,blue1:`#99c1f1`,blue2:`#62a0ea`,blue3:`#3584e4`,blue4:`#1c71d8`,blue5:`#1a5fb4`,borderSubtle:`rgba(255, 255, 255, 0.5)`,brown1:`#cdab8f`,brown2:`#b5835a`,brown3:`#986a44`,brown4:`#865e3c`,brown5:`#63452c`,cardBgColor:`#383838`,cardFgColor:`#fff`,cardShadeColor:`rgba(255, 255, 255, 0.12)`,dark1:`#77767b`,dark2:`#5e5c64`,dark3:`#3d3846`,dark4:`#241f31`,dark5:`#000`,destructiveBgColor:`#ed333b`,destructiveColor:`#f66151`,destructiveFgColor:`#fff`,dialogBackdropBlur:4,dialogBackdropColor:`rgba(0, 0, 0, 0.65)`,dialogBgColor:`#242424`,dialogFgColor:`#fff`,dividerColor:`rgba(255, 255, 255, 0.2)`,durationFast:100,durationNormal:200,durationSlow:400,easingDefault:[.25,.46,.45,.94],errorBgColor:`#ed333b`,errorColor:`#f66151`,errorFgColor:`#fff`,focusRingColor:`#99c1f1`,focusRingOffset:2,focusRingWidth:3,fontFamily:`Adwaita Sans`,fontFamilyMono:`Adwaita Mono`,fontSizeBody:16,fontSizeCaption:12,fontSizeLargeTitle:36,fontSizeTitle1:30,fontSizeTitle2:24,fontSizeTitle3:20,fontSizeTitle4:18,fontWeightBold:700,fontWeightNormal:400,fontWeightSemibold:600,green1:`#8ff0a4`,green2:`#57e389`,green3:`#33d17a`,green4:`#2ec27e`,green5:`#26a269`,headerbarBgColor:`#303030`,headerbarBorderColor:`rgba(255, 255, 255, 0.3)`,headerbarFgColor:`#fff`,headerbarShadeColor:`rgba(0, 0, 0, 0.36)`,hoverOverlay:`rgba(255, 255, 255, 0.12)`,layoutBreakpointMedium:550,layoutBreakpointNarrow:400,layoutBreakpointWide:860,layoutContentPadding:24,layoutContentPaddingCompact:12,layoutContentPaddingSpacious:36,layoutSidebarDefaultWidth:240,layoutSidebarMaxWidth:280,layoutSidebarMinWidth:180,layoutSidebarRailWidth:56,light1:`#fff`,light2:`#f6f5f4`,light3:`#deddda`,light4:`#c0bfbc`,light5:`#9a9996`,lineHeightBody:1.5,lineHeightHeading:1.2,lineHeightTitle:1.2,newBgColor:`#c061cb`,newColor:`#dc8add`,newFgColor:`#fff`,opacityBorder:.4,opacityDim:.7,opacityDisabled:.6,orange1:`#ffbe6f`,orange2:`#ffa348`,orange3:`#ff7800`,orange4:`#e66100`,orange5:`#c64600`,popoverBgColor:`#383838`,popoverFgColor:`#fff`,purple1:`#dc8add`,purple2:`#c061cb`,purple3:`#9141ac`,purple4:`#813d9c`,purple5:`#613583`,radiusLg:12,radiusMd:8,radiusPill:9999,radiusSm:4,radiusXl:15,red1:`#f66151`,red2:`#ed333b`,red3:`#e01b24`,red4:`#c01c28`,red5:`#a51d2d`,sidebarBgColor:`#303030`,sidebarFgColor:`#fff`,skeletonBaseColor:`rgba(255, 255, 255, 0.12)`,skeletonHighlightColor:`rgba(255, 255, 255, 0.18)`,space1:6,space2:12,space3:18,space4:24,space5:36,space6:48,successBgColor:`#57e389`,successColor:`#8ff0a4`,successFgColor:`#fff`,viewBgColor:`#1e1e1e`,viewFgColor:`#fff`,warningBgColor:`#f8e45c`,warningColor:`#f9f06b`,warningFgColor:`rgba(0, 0, 0, 0.9)`,windowBgColor:`#242424`,windowFgColor:`#fff`,yellow1:`#f9f06b`,yellow2:`#f8e45c`,yellow3:`#f6d32d`,yellow4:`#f5c211`,yellow5:`#e5a50a`},_={"--gnome-accent-bg-color":`#3584e4`,"--gnome-accent-color":`#3584e4`,"--gnome-accent-fg-color":`#fff`,"--gnome-active-overlay":`rgb(0 0 0 / 0.12)`,"--gnome-blockquote-border-width":`3px`,"--gnome-blue-1":`#99c1f1`,"--gnome-blue-2":`#62a0ea`,"--gnome-blue-3":`#3584e4`,"--gnome-blue-4":`#1c71d8`,"--gnome-blue-5":`#1a5fb4`,"--gnome-border-subtle":`rgb(0 0 0 / 0.15)`,"--gnome-brown-1":`#cdab8f`,"--gnome-brown-2":`#b5835a`,"--gnome-brown-3":`#986a44`,"--gnome-brown-4":`#865e3c`,"--gnome-brown-5":`#63452c`,"--gnome-card-bg-color":`#fff`,"--gnome-card-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-card-shade-color":`rgb(0 0 0 / 0.12)`,"--gnome-dark-1":`#77767b`,"--gnome-dark-2":`#5e5c64`,"--gnome-dark-3":`#3d3846`,"--gnome-dark-4":`#241f31`,"--gnome-dark-5":`#000`,"--gnome-destructive-bg-color":`#e01b24`,"--gnome-destructive-color":`#e01b24`,"--gnome-destructive-fg-color":`#fff`,"--gnome-dialog-backdrop-blur":`4px`,"--gnome-dialog-backdrop-color":`rgb(0 0 0 / 0.5)`,"--gnome-dialog-bg-color":`#fafafa`,"--gnome-dialog-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-divider-color":`rgb(0 0 0 / 0.07)`,"--gnome-duration-fast":`100ms`,"--gnome-duration-normal":`200ms`,"--gnome-duration-slow":`400ms`,"--gnome-easing-default":`cubic-bezier(0.25, 0.46, 0.45, 0.94)`,"--gnome-error-bg-color":`#e01b24`,"--gnome-error-color":`#e01b24`,"--gnome-error-fg-color":`#fff`,"--gnome-focus-ring-color":`#3584e4`,"--gnome-focus-ring-offset":`2px`,"--gnome-focus-ring-width":`3px`,"--gnome-font-family":`"Adwaita Sans", cantarell, "Inter", system-ui, sans-serif`,"--gnome-font-family-mono":`"Adwaita Mono", "Source Code Pro", monospace`,"--gnome-font-size-body":`1rem`,"--gnome-font-size-caption":`0.75rem`,"--gnome-font-size-large-title":`2.25rem`,"--gnome-font-size-title-1":`1.875rem`,"--gnome-font-size-title-2":`1.5rem`,"--gnome-font-size-title-3":`1.25rem`,"--gnome-font-size-title-4":`1.125rem`,"--gnome-font-weight-bold":`700`,"--gnome-font-weight-normal":`400`,"--gnome-font-weight-semibold":`600`,"--gnome-green-1":`#8ff0a4`,"--gnome-green-2":`#57e389`,"--gnome-green-3":`#33d17a`,"--gnome-green-4":`#2ec27e`,"--gnome-green-5":`#26a269`,"--gnome-headerbar-bg-color":`#ebebeb`,"--gnome-headerbar-border-color":`rgb(0 0 0 / 0.12)`,"--gnome-headerbar-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-headerbar-shade-color":`rgb(0 0 0 / 0.12)`,"--gnome-hover-overlay":`rgb(0 0 0 / 0.06)`,"--gnome-layout-breakpoint-medium":`550px`,"--gnome-layout-breakpoint-narrow":`400px`,"--gnome-layout-breakpoint-wide":`860px`,"--gnome-layout-content-padding":`24px`,"--gnome-layout-content-padding-compact":`12px`,"--gnome-layout-content-padding-spacious":`36px`,"--gnome-layout-sidebar-default-width":`240px`,"--gnome-layout-sidebar-max-width":`280px`,"--gnome-layout-sidebar-min-width":`180px`,"--gnome-layout-sidebar-overlay-width":`clamp( 180px, 75%, 280px )`,"--gnome-layout-sidebar-rail-width":`56px`,"--gnome-layout-sidebar-width":`clamp( 180px, 25%, 280px )`,"--gnome-light-1":`#fff`,"--gnome-light-2":`#f6f5f4`,"--gnome-light-3":`#deddda`,"--gnome-light-4":`#c0bfbc`,"--gnome-light-5":`#9a9996`,"--gnome-line-height-body":`1.5`,"--gnome-line-height-heading":`1.2`,"--gnome-line-height-title":`1.2`,"--gnome-new-bg-color":`#9141ac`,"--gnome-new-color":`#9141ac`,"--gnome-new-fg-color":`#fff`,"--gnome-opacity-border":`0.15`,"--gnome-opacity-dim":`0.55`,"--gnome-opacity-disabled":`0.5`,"--gnome-orange-1":`#ffbe6f`,"--gnome-orange-2":`#ffa348`,"--gnome-orange-3":`#ff7800`,"--gnome-orange-4":`#e66100`,"--gnome-orange-5":`#c64600`,"--gnome-popover-bg-color":`#fff`,"--gnome-popover-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-purple-1":`#dc8add`,"--gnome-purple-2":`#c061cb`,"--gnome-purple-3":`#9141ac`,"--gnome-purple-4":`#813d9c`,"--gnome-purple-5":`#613583`,"--gnome-radius-lg":`12px`,"--gnome-radius-md":`8px`,"--gnome-radius-pill":`9999px`,"--gnome-radius-sm":`4px`,"--gnome-radius-xl":`15px`,"--gnome-red-1":`#f66151`,"--gnome-red-2":`#ed333b`,"--gnome-red-3":`#e01b24`,"--gnome-red-4":`#c01c28`,"--gnome-red-5":`#a51d2d`,"--gnome-shadow-lg":`0 3px 9px 1px rgb(0 0 0 / 0.1), 0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(28 31 31 / 0.9)`,"--gnome-shadow-md":`0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.08)`,"--gnome-shadow-sm":`0 1px 2px rgb(0 0 0 / 0.12)`,"--gnome-sidebar-bg-color":`#ebebeb`,"--gnome-sidebar-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-skeleton-base-color":`rgb(0 0 0 / 0.09)`,"--gnome-skeleton-highlight-color":`rgb(255 255 255 / 0.55)`,"--gnome-space-1":`6px`,"--gnome-space-2":`12px`,"--gnome-space-3":`18px`,"--gnome-space-4":`24px`,"--gnome-space-5":`36px`,"--gnome-space-6":`48px`,"--gnome-success-bg-color":`#2ec27e`,"--gnome-success-color":`#2ec27e`,"--gnome-success-fg-color":`#fff`,"--gnome-view-bg-color":`#fff`,"--gnome-view-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-warning-bg-color":`#f6d32d`,"--gnome-warning-color":`#e5a50a`,"--gnome-warning-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-window-bg-color":`#fafafa`,"--gnome-window-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-yellow-1":`#f9f06b`,"--gnome-yellow-2":`#f8e45c`,"--gnome-yellow-3":`#f6d32d`,"--gnome-yellow-4":`#f5c211`,"--gnome-yellow-5":`#e5a50a`},v={"--gnome-accent-bg-color":`#3584e4`,"--gnome-accent-color":`#62a0ea`,"--gnome-accent-fg-color":`#fff`,"--gnome-active-overlay":`rgb(255 255 255 / 0.14)`,"--gnome-blockquote-border-width":`3px`,"--gnome-blue-1":`#99c1f1`,"--gnome-blue-2":`#62a0ea`,"--gnome-blue-3":`#3584e4`,"--gnome-blue-4":`#1c71d8`,"--gnome-blue-5":`#1a5fb4`,"--gnome-border-subtle":`rgb(255 255 255 / 0.15)`,"--gnome-brown-1":`#cdab8f`,"--gnome-brown-2":`#b5835a`,"--gnome-brown-3":`#986a44`,"--gnome-brown-4":`#865e3c`,"--gnome-brown-5":`#63452c`,"--gnome-card-bg-color":`#383838`,"--gnome-card-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-card-shade-color":`rgb(255 255 255 / 0.12)`,"--gnome-dark-1":`#77767b`,"--gnome-dark-2":`#5e5c64`,"--gnome-dark-3":`#3d3846`,"--gnome-dark-4":`#241f31`,"--gnome-dark-5":`#000`,"--gnome-destructive-bg-color":`#e01b24`,"--gnome-destructive-color":`#e01b24`,"--gnome-destructive-fg-color":`#fff`,"--gnome-dialog-backdrop-blur":`4px`,"--gnome-dialog-backdrop-color":`rgb(0 0 0 / 0.65)`,"--gnome-dialog-bg-color":`#242424`,"--gnome-dialog-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-divider-color":`rgb(255 255 255 / 0.07)`,"--gnome-duration-fast":`100ms`,"--gnome-duration-normal":`200ms`,"--gnome-duration-slow":`400ms`,"--gnome-easing-default":`cubic-bezier(0.25, 0.46, 0.45, 0.94)`,"--gnome-error-bg-color":`#e01b24`,"--gnome-error-color":`#e01b24`,"--gnome-error-fg-color":`#fff`,"--gnome-focus-ring-color":`#62a0ea`,"--gnome-focus-ring-offset":`2px`,"--gnome-focus-ring-width":`3px`,"--gnome-font-family":`"Adwaita Sans", cantarell, "Inter", system-ui, sans-serif`,"--gnome-font-family-mono":`"Adwaita Mono", "Source Code Pro", monospace`,"--gnome-font-size-body":`1rem`,"--gnome-font-size-caption":`0.75rem`,"--gnome-font-size-large-title":`2.25rem`,"--gnome-font-size-title-1":`1.875rem`,"--gnome-font-size-title-2":`1.5rem`,"--gnome-font-size-title-3":`1.25rem`,"--gnome-font-size-title-4":`1.125rem`,"--gnome-font-weight-bold":`700`,"--gnome-font-weight-normal":`400`,"--gnome-font-weight-semibold":`600`,"--gnome-green-1":`#8ff0a4`,"--gnome-green-2":`#57e389`,"--gnome-green-3":`#33d17a`,"--gnome-green-4":`#2ec27e`,"--gnome-green-5":`#26a269`,"--gnome-headerbar-bg-color":`#303030`,"--gnome-headerbar-border-color":`rgb(255 255 255 / 0.1)`,"--gnome-headerbar-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-headerbar-shade-color":`rgb(0 0 0 / 0.36)`,"--gnome-hover-overlay":`rgb(255 255 255 / 0.08)`,"--gnome-layout-breakpoint-medium":`550px`,"--gnome-layout-breakpoint-narrow":`400px`,"--gnome-layout-breakpoint-wide":`860px`,"--gnome-layout-content-padding":`24px`,"--gnome-layout-content-padding-compact":`12px`,"--gnome-layout-content-padding-spacious":`36px`,"--gnome-layout-sidebar-default-width":`240px`,"--gnome-layout-sidebar-max-width":`280px`,"--gnome-layout-sidebar-min-width":`180px`,"--gnome-layout-sidebar-overlay-width":`clamp( 180px, 75%, 280px )`,"--gnome-layout-sidebar-rail-width":`56px`,"--gnome-layout-sidebar-width":`clamp( 180px, 25%, 280px )`,"--gnome-light-1":`#fff`,"--gnome-light-2":`#f6f5f4`,"--gnome-light-3":`#deddda`,"--gnome-light-4":`#c0bfbc`,"--gnome-light-5":`#9a9996`,"--gnome-line-height-body":`1.5`,"--gnome-line-height-heading":`1.2`,"--gnome-line-height-title":`1.2`,"--gnome-new-bg-color":`#9141ac`,"--gnome-new-color":`#9141ac`,"--gnome-new-fg-color":`#fff`,"--gnome-opacity-border":`0.15`,"--gnome-opacity-dim":`0.55`,"--gnome-opacity-disabled":`0.5`,"--gnome-orange-1":`#ffbe6f`,"--gnome-orange-2":`#ffa348`,"--gnome-orange-3":`#ff7800`,"--gnome-orange-4":`#e66100`,"--gnome-orange-5":`#c64600`,"--gnome-popover-bg-color":`#383838`,"--gnome-popover-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-purple-1":`#dc8add`,"--gnome-purple-2":`#c061cb`,"--gnome-purple-3":`#9141ac`,"--gnome-purple-4":`#813d9c`,"--gnome-purple-5":`#613583`,"--gnome-radius-lg":`12px`,"--gnome-radius-md":`8px`,"--gnome-radius-pill":`9999px`,"--gnome-radius-sm":`4px`,"--gnome-radius-xl":`15px`,"--gnome-red-1":`#f66151`,"--gnome-red-2":`#ed333b`,"--gnome-red-3":`#e01b24`,"--gnome-red-4":`#c01c28`,"--gnome-red-5":`#a51d2d`,"--gnome-shadow-lg":`0 3px 9px 1px rgb(0 0 0 / 0.1), 0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(28 31 31 / 0.9)`,"--gnome-shadow-md":`0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.08)`,"--gnome-shadow-sm":`0 1px 2px rgb(0 0 0 / 0.12)`,"--gnome-sidebar-bg-color":`#303030`,"--gnome-sidebar-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-skeleton-base-color":`rgb(255 255 255 / 0.12)`,"--gnome-skeleton-highlight-color":`rgb(255 255 255 / 0.18)`,"--gnome-space-1":`6px`,"--gnome-space-2":`12px`,"--gnome-space-3":`18px`,"--gnome-space-4":`24px`,"--gnome-space-5":`36px`,"--gnome-space-6":`48px`,"--gnome-success-bg-color":`#2ec27e`,"--gnome-success-color":`#2ec27e`,"--gnome-success-fg-color":`#fff`,"--gnome-view-bg-color":`#1e1e1e`,"--gnome-view-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-warning-bg-color":`#f6d32d`,"--gnome-warning-color":`#e5a50a`,"--gnome-warning-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-window-bg-color":`#242424`,"--gnome-window-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-yellow-1":`#f9f06b`,"--gnome-yellow-2":`#f8e45c`,"--gnome-yellow-3":`#f6d32d`,"--gnome-yellow-4":`#f5c211`,"--gnome-yellow-5":`#e5a50a`},y={"--gnome-accent-bg-color":`#1a5fb4`,"--gnome-accent-color":`#1a5fb4`,"--gnome-accent-fg-color":`#fff`,"--gnome-active-overlay":`rgb(0 0 0 / 0.22)`,"--gnome-blockquote-border-width":`3px`,"--gnome-blue-1":`#99c1f1`,"--gnome-blue-2":`#62a0ea`,"--gnome-blue-3":`#3584e4`,"--gnome-blue-4":`#1c71d8`,"--gnome-blue-5":`#1a5fb4`,"--gnome-border-subtle":`rgb(0 0 0 / 0.5)`,"--gnome-brown-1":`#cdab8f`,"--gnome-brown-2":`#b5835a`,"--gnome-brown-3":`#986a44`,"--gnome-brown-4":`#865e3c`,"--gnome-brown-5":`#63452c`,"--gnome-card-bg-color":`#fff`,"--gnome-card-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-card-shade-color":`rgb(0 0 0 / 0.12)`,"--gnome-dark-1":`#77767b`,"--gnome-dark-2":`#5e5c64`,"--gnome-dark-3":`#3d3846`,"--gnome-dark-4":`#241f31`,"--gnome-dark-5":`#000`,"--gnome-destructive-bg-color":`#a51d2d`,"--gnome-destructive-color":`#a51d2d`,"--gnome-destructive-fg-color":`#fff`,"--gnome-dialog-backdrop-blur":`4px`,"--gnome-dialog-backdrop-color":`rgb(0 0 0 / 0.5)`,"--gnome-dialog-bg-color":`#fafafa`,"--gnome-dialog-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-divider-color":`rgb(0 0 0 / 0.2)`,"--gnome-duration-fast":`100ms`,"--gnome-duration-normal":`200ms`,"--gnome-duration-slow":`400ms`,"--gnome-easing-default":`cubic-bezier(0.25, 0.46, 0.45, 0.94)`,"--gnome-error-bg-color":`#a51d2d`,"--gnome-error-color":`#a51d2d`,"--gnome-error-fg-color":`#fff`,"--gnome-focus-ring-color":`#1a5fb4`,"--gnome-focus-ring-offset":`2px`,"--gnome-focus-ring-width":`3px`,"--gnome-font-family":`"Adwaita Sans", cantarell, "Inter", system-ui, sans-serif`,"--gnome-font-family-mono":`"Adwaita Mono", "Source Code Pro", monospace`,"--gnome-font-size-body":`1rem`,"--gnome-font-size-caption":`0.75rem`,"--gnome-font-size-large-title":`2.25rem`,"--gnome-font-size-title-1":`1.875rem`,"--gnome-font-size-title-2":`1.5rem`,"--gnome-font-size-title-3":`1.25rem`,"--gnome-font-size-title-4":`1.125rem`,"--gnome-font-weight-bold":`700`,"--gnome-font-weight-normal":`400`,"--gnome-font-weight-semibold":`600`,"--gnome-green-1":`#8ff0a4`,"--gnome-green-2":`#57e389`,"--gnome-green-3":`#33d17a`,"--gnome-green-4":`#2ec27e`,"--gnome-green-5":`#26a269`,"--gnome-headerbar-bg-color":`#ebebeb`,"--gnome-headerbar-border-color":`rgb(0 0 0 / 0.12)`,"--gnome-headerbar-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-headerbar-shade-color":`rgb(0 0 0 / 0.12)`,"--gnome-hover-overlay":`rgb(0 0 0 / 0.12)`,"--gnome-layout-breakpoint-medium":`550px`,"--gnome-layout-breakpoint-narrow":`400px`,"--gnome-layout-breakpoint-wide":`860px`,"--gnome-layout-content-padding":`24px`,"--gnome-layout-content-padding-compact":`12px`,"--gnome-layout-content-padding-spacious":`36px`,"--gnome-layout-sidebar-default-width":`240px`,"--gnome-layout-sidebar-max-width":`280px`,"--gnome-layout-sidebar-min-width":`180px`,"--gnome-layout-sidebar-overlay-width":`clamp( 180px, 75%, 280px )`,"--gnome-layout-sidebar-rail-width":`56px`,"--gnome-layout-sidebar-width":`clamp( 180px, 25%, 280px )`,"--gnome-light-1":`#fff`,"--gnome-light-2":`#f6f5f4`,"--gnome-light-3":`#deddda`,"--gnome-light-4":`#c0bfbc`,"--gnome-light-5":`#9a9996`,"--gnome-line-height-body":`1.5`,"--gnome-line-height-heading":`1.2`,"--gnome-line-height-title":`1.2`,"--gnome-new-bg-color":`#613583`,"--gnome-new-color":`#613583`,"--gnome-new-fg-color":`#fff`,"--gnome-opacity-border":`0.4`,"--gnome-opacity-dim":`0.7`,"--gnome-opacity-disabled":`0.6`,"--gnome-orange-1":`#ffbe6f`,"--gnome-orange-2":`#ffa348`,"--gnome-orange-3":`#ff7800`,"--gnome-orange-4":`#e66100`,"--gnome-orange-5":`#c64600`,"--gnome-popover-bg-color":`#fff`,"--gnome-popover-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-purple-1":`#dc8add`,"--gnome-purple-2":`#c061cb`,"--gnome-purple-3":`#9141ac`,"--gnome-purple-4":`#813d9c`,"--gnome-purple-5":`#613583`,"--gnome-radius-lg":`12px`,"--gnome-radius-md":`8px`,"--gnome-radius-pill":`9999px`,"--gnome-radius-sm":`4px`,"--gnome-radius-xl":`15px`,"--gnome-red-1":`#f66151`,"--gnome-red-2":`#ed333b`,"--gnome-red-3":`#e01b24`,"--gnome-red-4":`#c01c28`,"--gnome-red-5":`#a51d2d`,"--gnome-shadow-lg":`0 3px 9px 1px rgb(0 0 0 / 0.1), 0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(28 31 31 / 0.9)`,"--gnome-shadow-md":`0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.08)`,"--gnome-shadow-sm":`0 1px 2px rgb(0 0 0 / 0.12)`,"--gnome-sidebar-bg-color":`#ebebeb`,"--gnome-sidebar-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-skeleton-base-color":`rgb(0 0 0 / 0.09)`,"--gnome-skeleton-highlight-color":`rgb(255 255 255 / 0.55)`,"--gnome-space-1":`6px`,"--gnome-space-2":`12px`,"--gnome-space-3":`18px`,"--gnome-space-4":`24px`,"--gnome-space-5":`36px`,"--gnome-space-6":`48px`,"--gnome-success-bg-color":`#26a269`,"--gnome-success-color":`#26a269`,"--gnome-success-fg-color":`#fff`,"--gnome-view-bg-color":`#fff`,"--gnome-view-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-warning-bg-color":`#e66100`,"--gnome-warning-color":`#c64600`,"--gnome-warning-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-window-bg-color":`#fafafa`,"--gnome-window-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-yellow-1":`#f9f06b`,"--gnome-yellow-2":`#f8e45c`,"--gnome-yellow-3":`#f6d32d`,"--gnome-yellow-4":`#f5c211`,"--gnome-yellow-5":`#e5a50a`},b={"--gnome-accent-bg-color":`#62a0ea`,"--gnome-accent-color":`#99c1f1`,"--gnome-accent-fg-color":`#fff`,"--gnome-active-overlay":`rgb(255 255 255 / 0.22)`,"--gnome-blockquote-border-width":`3px`,"--gnome-blue-1":`#99c1f1`,"--gnome-blue-2":`#62a0ea`,"--gnome-blue-3":`#3584e4`,"--gnome-blue-4":`#1c71d8`,"--gnome-blue-5":`#1a5fb4`,"--gnome-border-subtle":`rgb(255 255 255 / 0.5)`,"--gnome-brown-1":`#cdab8f`,"--gnome-brown-2":`#b5835a`,"--gnome-brown-3":`#986a44`,"--gnome-brown-4":`#865e3c`,"--gnome-brown-5":`#63452c`,"--gnome-card-bg-color":`#383838`,"--gnome-card-fg-color":`#fff`,"--gnome-card-shade-color":`rgb(255 255 255 / 0.12)`,"--gnome-dark-1":`#77767b`,"--gnome-dark-2":`#5e5c64`,"--gnome-dark-3":`#3d3846`,"--gnome-dark-4":`#241f31`,"--gnome-dark-5":`#000`,"--gnome-destructive-bg-color":`#ed333b`,"--gnome-destructive-color":`#f66151`,"--gnome-destructive-fg-color":`#fff`,"--gnome-dialog-backdrop-blur":`4px`,"--gnome-dialog-backdrop-color":`rgb(0 0 0 / 0.65)`,"--gnome-dialog-bg-color":`#242424`,"--gnome-dialog-fg-color":`#fff`,"--gnome-divider-color":`rgb(255 255 255 / 0.2)`,"--gnome-duration-fast":`100ms`,"--gnome-duration-normal":`200ms`,"--gnome-duration-slow":`400ms`,"--gnome-easing-default":`cubic-bezier(0.25, 0.46, 0.45, 0.94)`,"--gnome-error-bg-color":`#ed333b`,"--gnome-error-color":`#f66151`,"--gnome-error-fg-color":`#fff`,"--gnome-focus-ring-color":`#99c1f1`,"--gnome-focus-ring-offset":`2px`,"--gnome-focus-ring-width":`3px`,"--gnome-font-family":`"Adwaita Sans", cantarell, "Inter", system-ui, sans-serif`,"--gnome-font-family-mono":`"Adwaita Mono", "Source Code Pro", monospace`,"--gnome-font-size-body":`1rem`,"--gnome-font-size-caption":`0.75rem`,"--gnome-font-size-large-title":`2.25rem`,"--gnome-font-size-title-1":`1.875rem`,"--gnome-font-size-title-2":`1.5rem`,"--gnome-font-size-title-3":`1.25rem`,"--gnome-font-size-title-4":`1.125rem`,"--gnome-font-weight-bold":`700`,"--gnome-font-weight-normal":`400`,"--gnome-font-weight-semibold":`600`,"--gnome-green-1":`#8ff0a4`,"--gnome-green-2":`#57e389`,"--gnome-green-3":`#33d17a`,"--gnome-green-4":`#2ec27e`,"--gnome-green-5":`#26a269`,"--gnome-headerbar-bg-color":`#303030`,"--gnome-headerbar-border-color":`rgb(255 255 255 / 0.3)`,"--gnome-headerbar-fg-color":`#fff`,"--gnome-headerbar-shade-color":`rgb(0 0 0 / 0.36)`,"--gnome-hover-overlay":`rgb(255 255 255 / 0.12)`,"--gnome-layout-breakpoint-medium":`550px`,"--gnome-layout-breakpoint-narrow":`400px`,"--gnome-layout-breakpoint-wide":`860px`,"--gnome-layout-content-padding":`24px`,"--gnome-layout-content-padding-compact":`12px`,"--gnome-layout-content-padding-spacious":`36px`,"--gnome-layout-sidebar-default-width":`240px`,"--gnome-layout-sidebar-max-width":`280px`,"--gnome-layout-sidebar-min-width":`180px`,"--gnome-layout-sidebar-overlay-width":`clamp( 180px, 75%, 280px )`,"--gnome-layout-sidebar-rail-width":`56px`,"--gnome-layout-sidebar-width":`clamp( 180px, 25%, 280px )`,"--gnome-light-1":`#fff`,"--gnome-light-2":`#f6f5f4`,"--gnome-light-3":`#deddda`,"--gnome-light-4":`#c0bfbc`,"--gnome-light-5":`#9a9996`,"--gnome-line-height-body":`1.5`,"--gnome-line-height-heading":`1.2`,"--gnome-line-height-title":`1.2`,"--gnome-new-bg-color":`#c061cb`,"--gnome-new-color":`#dc8add`,"--gnome-new-fg-color":`#fff`,"--gnome-opacity-border":`0.4`,"--gnome-opacity-dim":`0.7`,"--gnome-opacity-disabled":`0.6`,"--gnome-orange-1":`#ffbe6f`,"--gnome-orange-2":`#ffa348`,"--gnome-orange-3":`#ff7800`,"--gnome-orange-4":`#e66100`,"--gnome-orange-5":`#c64600`,"--gnome-popover-bg-color":`#383838`,"--gnome-popover-fg-color":`#fff`,"--gnome-purple-1":`#dc8add`,"--gnome-purple-2":`#c061cb`,"--gnome-purple-3":`#9141ac`,"--gnome-purple-4":`#813d9c`,"--gnome-purple-5":`#613583`,"--gnome-radius-lg":`12px`,"--gnome-radius-md":`8px`,"--gnome-radius-pill":`9999px`,"--gnome-radius-sm":`4px`,"--gnome-radius-xl":`15px`,"--gnome-red-1":`#f66151`,"--gnome-red-2":`#ed333b`,"--gnome-red-3":`#e01b24`,"--gnome-red-4":`#c01c28`,"--gnome-red-5":`#a51d2d`,"--gnome-shadow-lg":`0 3px 9px 1px rgb(0 0 0 / 0.1), 0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(28 31 31 / 0.9)`,"--gnome-shadow-md":`0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.08)`,"--gnome-shadow-sm":`0 1px 2px rgb(0 0 0 / 0.12)`,"--gnome-sidebar-bg-color":`#303030`,"--gnome-sidebar-fg-color":`#fff`,"--gnome-skeleton-base-color":`rgb(255 255 255 / 0.12)`,"--gnome-skeleton-highlight-color":`rgb(255 255 255 / 0.18)`,"--gnome-space-1":`6px`,"--gnome-space-2":`12px`,"--gnome-space-3":`18px`,"--gnome-space-4":`24px`,"--gnome-space-5":`36px`,"--gnome-space-6":`48px`,"--gnome-success-bg-color":`#57e389`,"--gnome-success-color":`#8ff0a4`,"--gnome-success-fg-color":`#fff`,"--gnome-view-bg-color":`#1e1e1e`,"--gnome-view-fg-color":`#fff`,"--gnome-warning-bg-color":`#f8e45c`,"--gnome-warning-color":`#f9f06b`,"--gnome-warning-fg-color":`rgb(0 0 0 / 0.9)`,"--gnome-window-bg-color":`#242424`,"--gnome-window-fg-color":`#fff`,"--gnome-yellow-1":`#f9f06b`,"--gnome-yellow-2":`#f8e45c`,"--gnome-yellow-3":`#f6d32d`,"--gnome-yellow-4":`#f5c211`,"--gnome-yellow-5":`#e5a50a`},x=(0,c.createContext)({locale:void 0,dir:`ltr`,numberFormat:void 0,dateTimeFormat:void 0,colorScheme:`system`,resolvedColorScheme:`light`,contrast:`system`,resolvedContrast:`normal`,accentColor:`blue`,theme:p});function S(){return(0,c.useContext)(x).locale}function C(){return(0,c.useContext)(x).dir}function w(e){let{locale:t,numberFormat:n}=(0,c.useContext)(x);return(0,c.useMemo)(()=>new Intl.NumberFormat(t,{...n,...e}),[t,n,e])}function T(e){let{locale:t,dateTimeFormat:n}=(0,c.useContext)(x);return(0,c.useMemo)(()=>new Intl.DateTimeFormat(t,{...n,...e}),[t,n,e])}function E(){return(0,c.useContext)(x).colorScheme}function D(){return(0,c.useContext)(x).resolvedColorScheme}function O(){return(0,c.useContext)(x).contrast}function k(){return(0,c.useContext)(x).resolvedContrast}function A(){return(0,c.useContext)(x).accentColor}function j(){return(0,c.useContext)(x).theme}function M({colorScheme:e,contrast:t=`normal`}){return t===`more`?e===`dark`?g:h:e===`dark`?m:p}var N=new Set([`blue`,`green`,`yellow`,`orange`,`red`,`purple`,`brown`]);function P(e,t){return e===`system`?t===`dark`?`dark`:`light`:e}function F(e,t){return e===`system`?t?`more`:`normal`:e}function I(e,t,n,r){if(t===`blue`)return e;let i=N.has(t),a=i?e[`${t}${n===`dark`?2:3}`]:t,o=i?e[`${t}3`]:t;return{...e,accentColor:a,accentBgColor:o,...r===`normal`?{focusRingColor:a}:{}}}function L(){let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=l.Platform.OS===`android`?l.AccessibilityInfo.isHighTextContrastEnabled:l.Platform.OS===`ios`?l.AccessibilityInfo.isDarkerSystemColorsEnabled:void 0;if(!e)return;let n=!0;(async()=>{let r=await e();n&&t(r)})();let r=l.Platform.OS===`android`?`highTextContrastChanged`:`darkerSystemColorsChanged`,i=l.AccessibilityInfo.addEventListener(r,t);return()=>{n=!1,i.remove()}},[]),e}function R(){let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=!0;(async()=>{let n=await l.AccessibilityInfo.isReduceMotionEnabled();e&&t(n)})();let n=l.AccessibilityInfo.addEventListener(`reduceMotionChanged`,t);return()=>{e=!1,n.remove()}},[]),e}var ee=({locale:e,dir:t,numberFormat:n,dateTimeFormat:r,colorScheme:i=`system`,contrast:a=`system`,accentColor:o=`blue`,children:s})=>{let d=(0,l.useColorScheme)(),f=L(),p=P(i,d),m=F(a,f),h=t??(l.I18nManager.isRTL?`rtl`:`ltr`),g=(0,c.useMemo)(()=>({locale:e,dir:h,numberFormat:n,dateTimeFormat:r,colorScheme:i,resolvedColorScheme:p,contrast:a,resolvedContrast:m,accentColor:o,theme:I(M({colorScheme:p,contrast:m}),o,p,m)}),[e,h,n,r,i,p,a,m,o]);return(0,u.jsx)(x.Provider,{value:g,children:s})},te=new Set([`large-title`,`title-1`,`title-2`,`title-3`,`title-4`,`heading`]);function ne(e,t){let n=e=>String(e);switch(t){case`large-title`:return{fontSize:e.fontSizeLargeTitle,fontWeight:n(300),lineHeight:Math.round(e.fontSizeLargeTitle*e.lineHeightHeading),letterSpacing:e.fontSizeLargeTitle*-.02};case`title-1`:return{fontSize:e.fontSizeTitle1,fontWeight:n(e.fontWeightBold),lineHeight:Math.round(e.fontSizeTitle1*e.lineHeightHeading)};case`title-2`:return{fontSize:e.fontSizeTitle2,fontWeight:n(e.fontWeightBold),lineHeight:Math.round(e.fontSizeTitle2*e.lineHeightHeading)};case`title-3`:return{fontSize:e.fontSizeTitle3,fontWeight:n(e.fontWeightBold),lineHeight:Math.round(e.fontSizeTitle3*e.lineHeightHeading)};case`title-4`:return{fontSize:e.fontSizeTitle4,fontWeight:n(e.fontWeightSemibold),lineHeight:Math.round(e.fontSizeTitle4*e.lineHeightHeading)};case`heading`:return{fontSize:e.fontSizeBody,fontWeight:n(e.fontWeightBold),lineHeight:Math.round(e.fontSizeBody*e.lineHeightHeading)};case`document`:return{fontSize:e.fontSizeBody,fontWeight:n(e.fontWeightNormal),lineHeight:Math.round(e.fontSizeBody*1.65)};case`caption`:return{fontSize:e.fontSizeCaption,fontWeight:n(e.fontWeightNormal),lineHeight:Math.round(e.fontSizeCaption*e.lineHeightBody)};case`caption-heading`:return{fontSize:e.fontSizeCaption,fontWeight:n(e.fontWeightSemibold),lineHeight:Math.round(e.fontSizeCaption*e.lineHeightHeading),letterSpacing:e.fontSizeCaption*.06,textTransform:`uppercase`};case`monospace`:return{fontFamily:e.fontFamilyMono,fontSize:14,lineHeight:Math.round(14*e.lineHeightBody)};case`numeric`:return{fontSize:e.fontSizeBody,fontWeight:n(e.fontWeightNormal),lineHeight:Math.round(e.fontSizeBody*e.lineHeightBody),fontVariant:[`tabular-nums`]};default:return{fontSize:e.fontSizeBody,fontWeight:n(e.fontWeightNormal),lineHeight:Math.round(e.fontSizeBody*e.lineHeightBody)}}}function re(e,t){switch(t){case`dim`:return{color:e.windowFgColor,opacity:e.opacityDim};case`accent`:return{color:e.accentColor};case`destructive`:return{color:e.destructiveColor};case`success`:return{color:e.successColor};case`warning`:return{color:e.warningColor};case`error`:return{color:e.errorColor};default:return{color:e.windowFgColor}}}var z=(0,c.forwardRef)(function({variant:e=`body`,color:t=`default`,style:n,children:r,accessibilityRole:i,...a},o){let s=j();return(0,u.jsx)(l.Text,{ref:o,accessibilityRole:i??(te.has(e)?`header`:void 0),style:[{fontFamily:s.fontFamily},ne(s,e),re(s,t),n],...a,children:r})}),ie=(0,c.forwardRef)(function({title:e,subtitle:t,leading:n,trailing:r,interactive:i=!1,variant:a=`default`,style:o,disabled:s,...c},d){let f=j(),p=a===`property`,m={flexDirection:`row`,alignItems:`center`,gap:f.space2,paddingVertical:f.space2,paddingHorizontal:f.space4,minHeight:52,width:`100%`},h=(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n}),(0,u.jsxs)(l.View,{style:{flex:1,gap:2},children:[(0,u.jsx)(z,{variant:p?`caption`:`body`,color:p?`dim`:`default`,numberOfLines:1,ellipsizeMode:`tail`,children:e}),t&&(0,u.jsx)(z,{variant:p?`body`:`caption`,color:p?`default`:`dim`,numberOfLines:1,ellipsizeMode:`tail`,children:t})]}),r&&(0,u.jsx)(l.View,{style:{flexShrink:0,flexDirection:`row`,alignItems:`center`,gap:f.space1},children:r})]});return i?(0,u.jsx)(l.Pressable,{ref:d,disabled:s,accessibilityRole:`button`,accessibilityState:{disabled:!!s},style:[m,{position:`relative`,opacity:s?f.opacityDisabled:1},o],...c,children:({pressed:e})=>(0,u.jsxs)(u.Fragment,{children:[h,e&&!s?(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:f.activeOverlay}]}):null]})}):(0,u.jsx)(l.View,{ref:d,style:[m,o],...c,children:h})}),ae={sm:12,md:16,lg:20};function oe(e,t){switch(t){case`blue`:return e.blue3;case`green`:return e.green4;case`yellow`:return e.yellow4;case`orange`:return e.orange3;case`red`:return e.red3;case`purple`:return e.purple3;case`brown`:return e.brown3;default:return e.windowFgColor}}function se(e){return e?{accessible:!0,accessibilityLabel:e,accessibilityRole:`image`}:{accessible:!1,accessibilityRole:`none`}}function ce(e){return`paths`in e&&Array.isArray(e.paths)?!0:typeof e.svg==`string`&&!(`path`in e)}function le(e){return e===`nonzero`||e===`evenodd`?e:void 0}var B=({icon:e,size:t=`md`,width:n,height:r,label:i,color:a,style:o})=>{let s=j(),c=ae[t],l=oe(s,a),d=ce(e)?e.viewBox:e.viewBox??`0 0 24 24`,p=ce(e)?e.svg:void 0,m=ce(e)?e.svg?void 0:e.paths?.map((e,t)=>(0,u.jsx)(f.Path,{d:e.d,fillRule:le(e.fillRule),clipRule:le(e.clipRule),transform:e.transform},t)):[(0,u.jsx)(f.Path,{d:e.path},0)],h=se(i);return p?(0,u.jsx)(f.SvgXml,{xml:`<svg viewBox="${d}">${p}</svg>`,width:n??c,height:r??c,fill:l,style:o,...h}):(0,u.jsx)(f.Svg,{viewBox:d,width:n??c,height:r??c,fill:l,style:o,...h,children:m})},ue=l.Animated.createAnimatedComponent(f.G),de=l.Animated.createAnimatedComponent(f.Path),fe=l.Animated.createAnimatedComponent(f.Circle);function pe(e){let t=(0,c.useRef)(new l.Animated.Value(0)).current;return(0,c.useEffect)(()=>{let n=l.Animated.loop(l.Animated.timing(t,{toValue:1,duration:e,easing:l.Easing.linear,useNativeDriver:!1}));return n.start(),()=>n.stop()},[t,e]),t}function me(e,t){let n=(0,c.useRef)(new l.Animated.Value(0)).current;return(0,c.useEffect)(()=>{let r=l.Animated.sequence([l.Animated.delay(t),l.Animated.loop(l.Animated.timing(n,{toValue:1,duration:e,easing:l.Easing.linear,useNativeDriver:!1}))]);return r.start(),()=>r.stop()},[n,e,t]),n}var he=({fill:e})=>(0,u.jsx)(ue,{transform:pe(1500).interpolate({inputRange:[0,1],outputRange:[`rotate(0, 8, 8)`,`rotate(360, 8, 8)`]}),children:(0,u.jsx)(f.Path,{fill:e,fillRule:`evenodd`,d:`M8 2a6 6 0 0 0-6 6h2a4 4 0 0 1 4-4 4 4 0 0 1 4 4 4 4 0 0 1-4 4v-2L5 13l3 3v-2a6 6 0 0 0 6-6 6 6 0 0 0-6-6z`})}),ge=({fill:e})=>{let t=(0,c.useRef)(new l.Animated.Value(1)).current;return(0,c.useEffect)(()=>{let e=l.Easing.inOut(l.Easing.ease),n=l.Animated.loop(l.Animated.sequence([l.Animated.timing(t,{toValue:.35,duration:600,easing:e,useNativeDriver:!1}),l.Animated.timing(t,{toValue:1,duration:600,easing:e,useNativeDriver:!1})]));return n.start(),()=>n.stop()},[t]),(0,u.jsx)(de,{fill:e,opacity:t,d:`m 15 8 c 0 3.867188 -3.132812 7 -7 7 s -7 -3.132812 -7 -7 s 3.132812 -7 7 -7 s 7 3.132812 7 7 z m 0 0`})},_e=({fill:e})=>{let t=pe(1400),n=[0,.2,.5,.55,.8,1],r=t.interpolate({inputRange:n,outputRange:[`translate(0, 0)`,`translate(0, 0)`,`translate(0, 3)`,`translate(0, -3)`,`translate(0, 0)`,`translate(0, 0)`]}),i=t.interpolate({inputRange:n,outputRange:[1,1,0,0,1,1]});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f.Path,{fill:e,d:`M2 13h12v2H2z`}),(0,u.jsx)(ue,{transform:r,opacity:i,children:(0,u.jsx)(f.Path,{fill:e,fillRule:`evenodd`,d:`m2.5 5 5.5 6 5.5-6z`})})]})};function V(e,t,n){return`translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`}var ve=({cx:e,cy:t,fill:n,delay:r})=>{let i=me(1200,r),a=[0,.2,.4,1];return(0,u.jsx)(fe,{cx:e,cy:t,r:2,fill:n,opacity:i.interpolate({inputRange:a,outputRange:[1,.3,1,1]}),transform:i.interpolate({inputRange:a,outputRange:[V(e,t,1),V(e,t,.7),V(e,t,1),V(e,t,1)]})})},ye=new Map([[d.Syncing,he],[d.Recording,ge],[d.Downloading,_e],[d.Connecting,({fill:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f.Path,{fill:e,d:`m 8 1.992188 c -2.617188 0 -5.238281 0.933593 -7.195312 2.808593 l -0.496094 0.480469 c -0.3984378 0.378906 -0.410156 1.011719 -0.03125 1.410156 c 0.003906 0.007813 0.011718 0.011719 0.019531 0.015625 c 0.480469 -1.011719 1.503906 -1.707031 2.703125 -1.707031 h 0.9375 c 2.480469 -1.292969 5.644531 -1.292969 8.125 0 h 0.9375 c 1.199219 0 2.222656 0.695312 2.707031 1.707031 c 0.003907 -0.007812 0.011719 -0.011719 0.015625 -0.015625 c 0.378906 -0.398437 0.367188 -1.03125 -0.03125 -1.410156 l -0.496094 -0.480469 c -1.957031 -1.875 -4.578124 -2.808593 -7.195312 -2.808593 z m -1.730469 9.007812 c -0.441406 0.765625 -0.339843 1.757812 0.316407 2.414062 c 0.78125 0.78125 2.046874 0.78125 2.828124 0 c 0.65625 -0.65625 0.757813 -1.648437 0.316407 -2.414062 z m 0 0`}),(0,u.jsx)(ve,{cx:3,cy:8,fill:e,delay:0}),(0,u.jsx)(ve,{cx:8,cy:8,fill:e,delay:150}),(0,u.jsx)(ve,{cx:13,cy:8,fill:e,delay:300})]})]]),be=({icon:e,playing:t=!0,size:n=`md`,width:r,height:i,label:a,color:o})=>{let s=j(),c=R(),l=t&&!c?ye.get(e):void 0;if(!l)return(0,u.jsx)(B,{icon:e,size:n,width:r,height:i,label:a,color:o});let d=ae[n],p=oe(s,o),m=se(a);return(0,u.jsx)(f.Svg,{viewBox:e.viewBox,width:r??d,height:i??d,...m,children:(0,u.jsx)(l,{fill:p})})},xe=[`blue`,`green`,`yellow`,`orange`,`red`,`purple`,`brown`,`teal`,`slate`],Se={sm:24,md:32,lg:48,xl:64},Ce={sm:.5,md:.6,lg:1,xl:1.4};function we(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return xe[t%xe.length]}function Te(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():t[0].charAt(0).toUpperCase()+t[t.length-1].charAt(0).toUpperCase()}function Ee(e,t){switch(t){case`blue`:return{backgroundColor:e.blue3,initialsColor:`#fff`};case`green`:return{backgroundColor:e.green4,initialsColor:`#fff`};case`yellow`:return{backgroundColor:e.yellow4,initialsColor:`rgba(0, 0, 0, 0.8)`};case`orange`:return{backgroundColor:e.orange4,initialsColor:`#fff`};case`red`:return{backgroundColor:e.red3,initialsColor:`#fff`};case`purple`:return{backgroundColor:e.purple3,initialsColor:`#fff`};case`brown`:return{backgroundColor:e.brown3,initialsColor:`#fff`};case`teal`:return{backgroundColor:`#2190a4`,initialsColor:`#fff`};case`slate`:return{backgroundColor:e.dark2,initialsColor:`#fff`}}}var H=({name:e=``,src:t,alt:n,size:r=`md`,color:i,style:a})=>{let o=j(),s=D(),c=i??(e?we(e):`blue`),d=Te(e),f=Se[r],{backgroundColor:p,initialsColor:m}=Ee(o,c),h=s===`dark`?`rgba(255, 255, 255, 0.08)`:`rgba(0, 0, 0, 0.08)`;return(0,u.jsx)(l.View,{accessible:!0,role:`img`,accessibilityLabel:n??(e||void 0)??`Avatar`,style:[{width:f,height:f,borderRadius:o.radiusPill,overflow:`hidden`,alignItems:`center`,justifyContent:`center`,backgroundColor:t?void 0:p,borderWidth:1,borderColor:h},a],children:t?(0,u.jsx)(l.Image,{testID:`avatar-image`,source:{uri:t},accessibilityElementsHidden:!0,importantForAccessibility:`no`,resizeMode:`cover`,style:{width:`100%`,height:`100%`}}):(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{fontFamily:o.fontFamily,fontWeight:String(o.fontWeightSemibold),fontSize:o.fontSizeBody*Ce[r],lineHeight:o.fontSizeBody*Ce[r],color:m},children:d})})},De={sm:6,md:8,lg:12,xl:16},Oe={sm:24,md:32,lg:48,xl:64},ke={sm:8,md:9.6,lg:14,xl:17.6},Ae=({avatars:e,max:t=5,size:n=`md`,accessibilityLabel:r,style:i,testID:a})=>{let o=j(),s=e.length>t?e.slice(0,t):e,c=e.length>t?e.length-t:0,d=e.map(e=>e.name).filter(Boolean).join(`, `),f=r??(d?c>0?`${d} and ${c} more`:d:`Avatar group`),p=De[n];return(0,u.jsxs)(l.View,{testID:a,accessible:!0,role:`group`,accessibilityLabel:f,style:[{flexDirection:`row`,alignItems:`center`},i],children:[s.map((e,t)=>(0,u.jsx)(H,{name:e.name,src:e.src,alt:e.alt??e.name,color:e.color,size:n,style:{marginStart:t===0?0:-p,borderWidth:2,borderColor:o.windowBgColor}},`${e.name??``}-${e.src??``}-${t}`)),c>0&&(0,u.jsx)(l.View,{accessible:!0,accessibilityLabel:`+${c} more`,style:{width:Oe[n],height:Oe[n],marginStart:-p,borderRadius:o.radiusPill,borderWidth:2,borderColor:o.windowBgColor,backgroundColor:o.dark2,alignItems:`center`,justifyContent:`center`},children:(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{fontFamily:o.fontFamily,fontWeight:String(o.fontWeightSemibold),fontSize:ke[n],color:`#fff`},children:`+${c}`})})]})};function je(e,t){return t<=0?0:(e%t+t)%t}var Me={sm:24,md:32,lg:48,xl:64},Ne=({active:e,duration:t,reducedMotion:n,children:r})=>{let i=(0,c.useRef)(new l.Animated.Value(+!!e)).current;return(0,c.useEffect)(()=>{if(n){i.setValue(+!!e);return}l.Animated.timing(i,{toValue:+!!e,duration:t,useNativeDriver:!0}).start()},[e,t,n,i]),(0,u.jsx)(l.Animated.View,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:[l.StyleSheet.absoluteFill,{opacity:i}],children:r})},Pe=({name:e=``,avatars:t=[],alt:n,size:r=`md`,color:i,interval:a=3e3,transitionDuration:o=240,pauseOnPress:s=!0,activeIndex:d,defaultActiveIndex:f=0,onIndexChange:p,style:m,testID:h})=>{let g=R(),_=t.map(e=>e.trim()).filter(Boolean),v=d!==void 0,[y,b]=(0,c.useState)(f),[x,S]=(0,c.useState)(!1),C=je(v?d:y,_.length);if((0,c.useEffect)(()=>{if(_.length<=1||a<=0||x||g)return;let e=setInterval(()=>{let e=je(C+1,_.length);v||b(e),p?.(e)},a);return()=>clearInterval(e)},[C,a,v,x,p,g,_.length]),_.length===0)return(0,u.jsx)(H,{name:e,alt:n,size:r,color:i,style:m});let w=n??(e||void 0)??`Avatar`,T=Me[r];return(0,u.jsx)(l.Pressable,{testID:h,accessible:!0,role:`img`,accessibilityLabel:w,onPressIn:()=>s&&S(!0),onPressOut:()=>s&&S(!1),style:[{width:T,height:T,borderRadius:T/2,overflow:`hidden`},m],children:_.map((t,n)=>(0,u.jsx)(Ne,{active:n===C,duration:Math.max(0,o),reducedMotion:g,children:(0,u.jsx)(H,{name:e,src:t,size:r})},`${t}-${n}`))})};function Fe(e,t,n){switch(n){case`accent`:return{backgroundColor:e.accentBgColor,color:e.accentFgColor};case`success`:return{backgroundColor:e.successBgColor,color:e.successFgColor};case`warning`:return{backgroundColor:e.warningBgColor,color:e.warningFgColor};case`error`:return{backgroundColor:e.errorBgColor,color:e.errorFgColor};case`neutral`:return{backgroundColor:t===`dark`?e.dark2:e.light4,color:e.windowFgColor}}}var Ie=({variant:e=`accent`,dot:t=!1,children:n,anchor:r,style:i})=>{let a=j(),{backgroundColor:o,color:s}=Fe(a,D(),e),c=(0,u.jsx)(l.View,{testID:`badge-ring`,style:[{padding:2,borderRadius:a.radiusPill,backgroundColor:a.windowBgColor},r?{position:`absolute`,top:t?-2:-4,right:t?-2:-4,zIndex:1}:null],children:(0,u.jsx)(l.View,{testID:`badge`,style:[{minWidth:t?10:18,height:t?10:18,paddingHorizontal:t?0:5,borderRadius:a.radiusPill,backgroundColor:o,alignItems:`center`,justifyContent:`center`},i],children:!t&&(typeof n==`string`||typeof n==`number`?(0,u.jsx)(l.Text,{style:{fontFamily:a.fontFamily,fontWeight:String(a.fontWeightSemibold),fontSize:11,lineHeight:13,color:s},children:n}):n)})});return r?(0,u.jsxs)(l.View,{style:{alignSelf:`flex-start`},children:[r,c]}):c},Le=({variant:e=`info`,children:t,actionLabel:n,onAction:r,dismissible:i=!1,onDismiss:a,style:o,...s})=>{let c=j(),d={info:{bg:c.accentBgColor,fg:c.accentFgColor},warning:{bg:c.warningBgColor,fg:c.warningFgColor},error:{bg:c.errorBgColor,fg:c.errorFgColor},success:{bg:c.successBgColor,fg:c.successFgColor}}[e],f=e===`warning`?`rgba(0, 0, 0, 0.14)`:`rgba(255, 255, 255, 0.25)`;return(0,u.jsxs)(l.View,{accessible:!0,accessibilityRole:`alert`,accessibilityLiveRegion:`polite`,style:[{flexDirection:`row`,alignItems:`center`,gap:c.space2,paddingVertical:10,paddingHorizontal:c.space4,minHeight:44,width:`100%`,backgroundColor:d.bg},o],...s,children:[(0,u.jsx)(z,{variant:`body`,style:{flex:1,minWidth:0,color:d.fg},children:t}),(n||i)&&(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:c.space1,flexShrink:0},children:[n&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:n,onPress:r,style:({pressed:e})=>({paddingVertical:4,paddingHorizontal:c.space2,borderRadius:c.radiusMd,backgroundColor:e?f:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontFamily:c.fontFamily,fontSize:c.fontSizeBody,fontWeight:String(c.fontWeightSemibold),color:d.fg},children:n})}),i&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Dismiss`,hitSlop:4,onPress:a,style:({pressed:e})=>({width:28,height:28,alignItems:`center`,justifyContent:`center`,borderRadius:c.radiusMd,opacity:e?1:.6,backgroundColor:e?f:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontSize:c.fontSizeBody,color:d.fg},children:`×`})})]})]})},Re=(0,c.forwardRef)(function(e,t){return(0,u.jsx)(l.View,{ref:t,...e})}),ze=l.Animated.createAnimatedComponent(l.Pressable),Be=150,Ve=({open:e,title:t,children:n,onClose:r,closeOnBackdrop:i=!0,style:a,testID:o})=>{let s=j(),d=R(),[f,p]=(0,c.useState)(e),[m,h]=(0,c.useState)(0),g=(0,c.useRef)(new l.Animated.Value(l.Dimensions.get(`window`).height)).current,_=(0,c.useRef)(new l.Animated.Value(0)).current,v=(0,c.useRef)(!1);(0,c.useEffect)(()=>{e&&p(!0)},[e]),(0,c.useEffect)(()=>{if(!(!f||v.current))if(e){if(d){g.setValue(0),_.setValue(1);return}m>0&&(g.setValue(m),l.Animated.timing(g,{toValue:0,duration:s.durationNormal,useNativeDriver:!0}).start()),l.Animated.timing(_,{toValue:1,duration:s.durationNormal,useNativeDriver:!0}).start()}else{if(d){p(!1);return}l.Animated.timing(g,{toValue:m||l.Dimensions.get(`window`).height,duration:s.durationNormal,useNativeDriver:!0}).start(({finished:e})=>{e&&p(!1)}),l.Animated.timing(_,{toValue:0,duration:s.durationNormal,useNativeDriver:!0}).start()}},[e,f,m,d,g,_,s.durationNormal]),(0,c.useEffect)(()=>{if(!e)return;let t=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(r?.(),!0));return()=>t.remove()},[e,r]);let y=(0,c.useMemo)(()=>l.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onPanResponderGrant:()=>{v.current=!0},onPanResponderMove:(e,t)=>{g.setValue(Math.max(0,t.dy))},onPanResponderRelease:(e,t)=>{v.current=!1,Math.max(0,t.dy)>=Be?r?.():l.Animated.timing(g,{toValue:0,duration:s.durationNormal,useNativeDriver:!0}).start()}}),[g,s.durationNormal,r]);return f?(0,u.jsx)(l.Modal,{visible:f,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:r,children:(0,u.jsx)(ze,{testID:o,onPress:i?r:void 0,accessible:!1,style:{flex:1,justifyContent:`flex-end`,backgroundColor:s.dialogBackdropColor,opacity:_},children:(0,u.jsx)(l.Pressable,{onPress:()=>{},accessible:!1,children:(0,u.jsxs)(l.Animated.View,{onLayout:e=>{h(e.nativeEvent.layout.height)},accessible:!0,role:`dialog`,accessibilityViewIsModal:!0,style:[{alignSelf:`center`,width:`100%`,maxWidth:560,backgroundColor:s.dialogBgColor,borderTopLeftRadius:s.radiusXl,borderTopRightRadius:s.radiusXl,shadowColor:`#000`,shadowOffset:{width:0,height:-4},shadowOpacity:.18,shadowRadius:24,elevation:12,transform:[{translateY:g}]},a],children:[(0,u.jsx)(l.View,{testID:`bottom-sheet-handle`,accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{alignItems:`center`,paddingTop:s.space2,paddingBottom:s.space1},...y.panHandlers,children:(0,u.jsx)(l.View,{style:{width:36,height:4,borderRadius:2,backgroundColor:s.windowFgColor,opacity:.2}})}),t&&(0,u.jsx)(z,{variant:`title-4`,style:{paddingHorizontal:s.space4,paddingBottom:s.space2,textAlign:`center`,fontWeight:String(s.fontWeightBold)},children:t}),n&&(0,u.jsx)(l.View,{style:{paddingHorizontal:s.space4,paddingBottom:s.space4},children:typeof n==`string`?(0,u.jsx)(z,{variant:`body`,children:n}):n})]})})})}):null},He={start:`flex-start`,center:`center`,end:`flex-end`,stretch:`stretch`,baseline:`baseline`},Ue={start:`flex-start`,center:`center`,end:`flex-end`,"space-between":`space-between`,"space-around":`space-around`,"space-evenly":`space-evenly`},We=(0,c.forwardRef)(function({orientation:e=`vertical`,spacing:t=6,align:n,justify:r=`start`,padding:i,children:a,style:o,...s},c){return(0,u.jsx)(l.View,{ref:c,style:[{flexDirection:e===`horizontal`?`row`:`column`,gap:t,alignItems:He[n??(e===`horizontal`?`center`:`stretch`)],justifyContent:Ue[r]},i!==void 0&&{padding:i},o],...s,children:a})}),Ge=(0,c.forwardRef)(function({orientation:e=`horizontal`,style:t,...n},r){return(0,u.jsx)(l.View,{ref:r,accessible:!1,style:[{backgroundColor:j().cardShadeColor,flexShrink:0},e===`vertical`?{width:1,height:`100%`,alignSelf:`stretch`}:{width:`100%`,height:1},t],...n})}),Ke=(0,c.forwardRef)(function({children:e,variant:t=`default`,style:n,...r},i){let a=j(),o=c.Children.toArray(e).filter(Boolean);return t===`separate`?(0,u.jsx)(l.View,{ref:i,accessible:!0,accessibilityRole:`list`,style:[{gap:a.space2},n],...r,children:o.map((e,t)=>(0,u.jsx)(l.View,{style:{backgroundColor:a.cardBgColor,borderWidth:1,borderColor:a.dividerColor,borderRadius:a.radiusLg,overflow:`hidden`},children:e},t))}):(0,u.jsx)(l.View,{ref:i,accessible:!0,accessibilityRole:`list`,style:[{backgroundColor:a.cardBgColor,borderWidth:1,borderColor:a.dividerColor,borderRadius:a.radiusLg,overflow:`hidden`},n],...r,children:o.map((e,t)=>(0,u.jsxs)(l.View,{children:[t>0&&(0,u.jsx)(Ge,{testID:`boxed-list-separator`}),e]},t))})});function qe(e,t){switch(t){case`sm`:return{minHeight:28,minWidth:64,paddingVertical:4,paddingHorizontal:e.space1,fontSize:e.fontSizeCaption};case`lg`:return{minHeight:42,minWidth:88,paddingVertical:e.space1,paddingHorizontal:e.space3,fontSize:e.fontSizeTitle4};default:return{minHeight:34,minWidth:88,paddingVertical:e.space1,paddingHorizontal:e.space2,fontSize:e.fontSizeBody}}}function Je(e){switch(e){case`sm`:return 28;case`lg`:return 42;default:return 34}}function Ye(e,t,n,r){if(r)return{backgroundColor:n?`rgba(0, 0, 0, 0.85)`:`rgba(0, 0, 0, 0.65)`,borderColor:`rgba(255, 255, 255, 0.12)`,color:`rgba(255, 255, 255, 0.95)`};switch(t){case`suggested`:return{backgroundColor:e.accentBgColor,borderColor:`transparent`,color:e.accentFgColor};case`destructive`:return{backgroundColor:e.destructiveBgColor,borderColor:`transparent`,color:e.destructiveFgColor};case`flat`:return{backgroundColor:n?e.activeOverlay:`transparent`,borderColor:`transparent`,color:e.windowFgColor};default:return{backgroundColor:n?e.light3:e.cardBgColor,borderColor:e.light3,color:e.windowFgColor}}}var U=(0,c.forwardRef)(function({variant:e=`default`,size:t=`md`,shape:n=`default`,osd:r=!1,leadingIcon:i,trailingIcon:a,children:o,style:s,textStyle:c,disabled:d,...f},p){let m=j(),h=k();return(0,u.jsx)(l.Pressable,{ref:p,disabled:d,accessibilityRole:`button`,accessibilityState:{disabled:!!d},style:({pressed:i})=>{let{backgroundColor:a,borderColor:o}=Ye(m,e,i,r),c=!r&&(e===`suggested`||e===`destructive`),l=n===`circular`?Je(t):void 0,{minHeight:u,minWidth:f,paddingVertical:p,paddingHorizontal:g}=qe(m,t);return[{flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:m.space1,minHeight:l??u,minWidth:l??(n===`pill`?void 0:f),width:l,height:l,paddingVertical:l?m.space1:p,paddingHorizontal:l?m.space1:n===`pill`?m.space3:g,borderRadius:n==="default"?m.radiusMd:m.radiusPill,borderWidth:e==="default"&&h===`more`?2:1,borderColor:o,backgroundColor:a,opacity:d?m.opacityDisabled:i&&c?.85:1},s]},...f,children:({pressed:n})=>{let{fontSize:s}=qe(m,t),{color:d}=Ye(m,e,n,r);return(0,u.jsxs)(u.Fragment,{children:[i,typeof o==`string`?(0,u.jsx)(l.Text,{style:[{fontFamily:m.fontFamily,fontWeight:String(m.fontWeightSemibold),fontSize:s,color:d},c],children:o}):o,a]})}})});function Xe(e,t){switch(t){case`none`:return 0;case`sm`:return e.space2;case`lg`:return e.space5;default:return e.space4}}var Ze=(0,c.forwardRef)(function({interactive:e=!1,padding:t=`md`,style:n,children:r,disabled:i,...a},o){let s=j(),c={backgroundColor:s.cardBgColor,borderWidth:1,borderColor:s.cardShadeColor,borderRadius:s.radiusLg,overflow:`hidden`,padding:Xe(s,t)};return e?(0,u.jsx)(l.Pressable,{ref:o,disabled:i,accessibilityRole:`button`,accessibilityState:{disabled:!!i},style:[c,{position:`relative`,opacity:i?s.opacityDisabled:1},n],...a,children:({pressed:e})=>(0,u.jsxs)(u.Fragment,{children:[r,e&&!i?(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:s.activeOverlay,borderRadius:s.radiusLg}]}):null]})}):(0,u.jsx)(l.View,{ref:o,style:[c,n],...a,children:r})}),Qe=18,$e=(0,c.forwardRef)(function({value:e,indeterminate:t=!1,onValueChange:n,disabled:r,style:i,...a},o){let s=j(),d=D(),f=k(),p=e||t,m=(0,c.useRef)(new l.Animated.Value(+!!p)).current,h=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(h.current){h.current=!1;return}let[e,t,n,r]=s.easingDefault;l.Animated.timing(m,{toValue:+!!p,duration:s.durationFast,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!1}).start()},[p,m,s.durationFast,s.easingDefault]);let g=f===`more`?s.windowFgColor:d===`dark`?s.dark1:s.light4,_=m.interpolate({inputRange:[0,1],outputRange:[g,s.accentBgColor]}),v=m.interpolate({inputRange:[0,1],outputRange:[s.cardBgColor,s.accentBgColor]});return(0,u.jsx)(l.Pressable,{ref:o,disabled:r,accessibilityRole:`checkbox`,accessibilityState:{checked:t?`mixed`:e,disabled:!!r},onPress:()=>n?.(!e),style:[{opacity:r?s.opacityDisabled:1},i],...a,children:(0,u.jsx)(l.Animated.View,{style:{width:Qe,height:Qe,alignItems:`center`,justifyContent:`center`,borderRadius:s.radiusSm,borderWidth:f===`more`?2:1.5,borderColor:_,backgroundColor:v},children:t?(0,u.jsx)(l.Animated.View,{style:{width:10,height:2,borderRadius:1,backgroundColor:`#fff`,opacity:m}}):(0,u.jsx)(l.Animated.Text,{style:{opacity:m,color:`#fff`,fontSize:13,fontWeight:`bold`,lineHeight:13},children:`✓`})})})}),et=({label:e,icon:t,onRemove:n,selectable:r=!1,selected:i=!1,onToggle:a,disabled:o=!1,style:s,testID:c})=>{let f=j(),p=r&&!n,m={flexDirection:`row`,alignItems:`center`,gap:f.space1,paddingVertical:3,paddingHorizontal:f.space2,borderRadius:f.radiusPill,borderWidth:1,borderColor:i?`${f.accentBgColor}80`:f.light3,backgroundColor:i?`${f.accentBgColor}26`:f.cardBgColor,overflow:`hidden`},h={color:i?f.accentColor:f.windowFgColor,fontWeight:String(i?f.fontWeightSemibold:f.fontWeightNormal)},g=(0,u.jsxs)(u.Fragment,{children:[t&&(0,u.jsx)(l.View,{style:{marginStart:-2},children:(0,u.jsx)(B,{icon:t,size:`sm`})}),(0,u.jsx)(z,{variant:`caption`,style:h,children:e}),n&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Remove ${e}`,disabled:o,onPress:n,hitSlop:8,style:{marginEnd:-4,opacity:o?f.opacityDisabled:1},children:(0,u.jsx)(B,{icon:d.Close,size:`sm`})})]});return p?(0,u.jsx)(l.Pressable,{testID:c,disabled:o,accessibilityRole:`checkbox`,accessibilityState:{checked:i,disabled:o},accessibilityLabel:e,onPress:a,style:[m,{opacity:o?f.opacityDisabled:1},s],children:({pressed:e})=>(0,u.jsxs)(u.Fragment,{children:[g,e&&!o&&(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:f.activeOverlay}]})]})}):(0,u.jsx)(l.View,{testID:c,style:[m,{opacity:o?f.opacityDisabled:1},s],children:g})},tt=e=>Math.min(Math.max(e,0),1),nt=(0,c.forwardRef)(function({maximumSize:e=600,tighteningThreshold:t=1,children:n,style:r,...i},a){return(0,u.jsx)(l.View,{ref:a,style:[{width:`${tt(t)*100}%`,maxWidth:e,alignSelf:`center`},r],...i,children:n})}),W=12,G=12,rt=7,it=(e,t)=>({top:e.top-t,left:e.left-t,width:e.width+t*2,height:e.height+t*2}),at=(e,t,n,r)=>{let i=e.left+e.width,a=e.top+e.height,o=e.left+e.width/2,s=e.top+e.height/2,c=[...new Set([r,{top:`bottom`,bottom:`top`,left:`right`,right:`left`}[r],`bottom`,`top`,`right`,`left`])],l=n=>{switch(n){case`bottom`:return{top:a+W,left:o-t.width/2};case`top`:return{top:e.top-t.height-W,left:o-t.width/2};case`left`:return{top:s-t.height/2,left:e.left-t.width-W};default:return{top:s-t.height/2,left:i+W}}};for(let e of c){let{top:r,left:i}=l(e),a=i>=G&&i+t.width<=n.width-G,c=r>=G&&r+t.height<=n.height-G;if(a&&c)return{top:r,left:i,placement:e,arrowOffset:e===`top`||e===`bottom`?o-i:s-r}}for(let e of c){let{top:r,left:i}=l(e);if(e===`top`||e===`bottom`){if(!(r>=G&&r+t.height<=n.height-G))continue;let a=Math.max(G,Math.min(i,n.width-t.width-G)),s=o-a;return{top:r,left:a,placement:e,arrowOffset:Math.max(11,Math.min(s,t.width-rt-4))}}if(!(i>=G&&i+t.width<=n.width-G))continue;let a=Math.max(G,Math.min(r,n.height-t.height-G)),c=s-a;return{top:a,left:i,placement:e,arrowOffset:Math.max(11,Math.min(c,t.height-rt-4))}}let u=a+W,d=o-t.width/2,f=Math.max(G,Math.min(u,n.height-t.height-G)),p=Math.max(G,Math.min(d,n.width-t.width-G)),m=o-p;return{top:f,left:p,placement:`bottom`,arrowOffset:Math.max(11,Math.min(m,t.width-rt-4))}},K=7,q=`rgba(0, 0, 0, 0.55)`,ot=({open:e,targetRef:t,title:n,description:r,placement:i=`bottom`,spotlight:a=!0,spotlightPadding:o=8,dismissOnBackdrop:s=!1,step:d,stepCount:f,primaryAction:p,secondaryAction:m,onDismiss:h,style:g,testID:_})=>{let v=j(),y=R(),[b,x]=(0,c.useState)(null),[S,C]=(0,c.useState)(null),[w,T]=(0,c.useState)(null),E=(0,c.useRef)(new l.Animated.Value(0)).current;(0,c.useEffect)(()=>{if(!e){x(null),C(null),T(null),E.setValue(0);return}let n=setTimeout(()=>{t.current?.measureInWindow((e,t,n,r)=>{x({top:t,left:e,width:n,height:r})})},50);return()=>clearTimeout(n)},[e,t,E]),(0,c.useEffect)(()=>{if(!b||!S)return;let{width:e,height:t}=l.Dimensions.get(`window`);T(at(b,S,{width:e,height:t},i))},[b,S,i]),(0,c.useEffect)(()=>{if(w){if(y){E.setValue(1);return}l.Animated.timing(E,{toValue:1,duration:v.durationFast,useNativeDriver:!0}).start()}},[w,y,E,v.durationFast]),(0,c.useEffect)(()=>{if(!e)return;let t=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(h?.(),!0));return()=>t.remove()},[e,h]);let D=e=>{let{width:t,height:n}=e.nativeEvent.layout;C({width:t,height:n})};if(!e)return null;let O=b?it(b,o):null,{width:k}=l.Dimensions.get(`window`),A={position:`absolute`,width:0,height:0,borderWidth:K,borderColor:`transparent`},M=(()=>{if(!w)return null;switch(w.placement){case`top`:return{...A,bottom:-14,left:w.arrowOffset-K,borderTopColor:v.cardBgColor};case`bottom`:return{...A,top:-14,left:w.arrowOffset-K,borderBottomColor:v.cardBgColor};case`left`:return{...A,right:-14,top:w.arrowOffset-K,borderLeftColor:v.cardBgColor};default:return{...A,left:-14,top:w.arrowOffset-K,borderRightColor:v.cardBgColor}}})();return(0,u.jsx)(l.Modal,{visible:e,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:h,children:(0,u.jsxs)(l.Animated.View,{pointerEvents:`box-none`,style:l.StyleSheet.absoluteFill,children:[a&&(0,u.jsx)(l.Pressable,{testID:_,onPress:s?h:void 0,accessible:!1,style:l.StyleSheet.absoluteFill,children:(0,u.jsx)(l.Animated.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{opacity:E}],children:O&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.View,{style:{position:`absolute`,top:0,left:0,right:0,height:Math.max(0,O.top),backgroundColor:q}}),(0,u.jsx)(l.View,{style:{position:`absolute`,top:Math.max(0,O.top+O.height),left:0,right:0,bottom:0,backgroundColor:q}}),(0,u.jsx)(l.View,{style:{position:`absolute`,top:Math.max(0,O.top),left:0,width:Math.max(0,O.left),height:O.height,backgroundColor:q}}),(0,u.jsx)(l.View,{style:{position:`absolute`,top:Math.max(0,O.top),left:Math.max(0,O.left+O.width),right:0,height:O.height,backgroundColor:q}}),(0,u.jsx)(l.View,{pointerEvents:`none`,style:{position:`absolute`,top:O.top,left:O.left,width:O.width,height:O.height,borderRadius:v.radiusMd,borderWidth:2,borderColor:v.accentColor}})]})})}),(0,u.jsxs)(l.Animated.View,{onLayout:D,accessible:!0,role:`dialog`,accessibilityViewIsModal:!0,style:[{position:`absolute`,maxWidth:Math.min(320,k-24),padding:v.space3,backgroundColor:v.cardBgColor,borderRadius:v.radiusLg,shadowColor:`#000`,shadowOffset:{width:0,height:4},shadowOpacity:.2,shadowRadius:16,elevation:8},w?{top:w.top,left:w.left,opacity:E,transform:[{scale:E.interpolate({inputRange:[0,1],outputRange:[.96,1]})}]}:{top:-9999,left:-9999,opacity:0},g],children:[M&&(0,u.jsx)(l.View,{style:M}),d!==void 0&&f!==void 0&&(0,u.jsx)(z,{variant:`caption`,style:{marginBottom:v.space1,color:v.accentColor,fontWeight:String(v.fontWeightBold)},children:`${d} of ${f}`}),n&&(0,u.jsx)(z,{variant:`title-4`,style:{marginBottom:v.space1,fontWeight:String(v.fontWeightBold)},children:n}),r&&(0,u.jsx)(z,{variant:`body`,color:`dim`,children:r}),(p||m)&&(0,u.jsxs)(l.View,{style:{flexDirection:`row`,justifyContent:`flex-end`,gap:v.space2,marginTop:v.space3},children:[m&&(0,u.jsx)(U,{variant:`flat`,size:`sm`,onPress:m.onPress,children:m.label}),p&&(0,u.jsx)(U,{variant:`suggested`,size:`sm`,onPress:p.onPress,children:p.label})]})]})]})})},st={next:`Next`,back:`Back`,skip:`Skip`,finish:`Done`},ct=({steps:e,open:t,startIndex:n=0,onFinish:r,onSkip:i,onStepChange:a,placement:o=`bottom`,spotlight:s=!0,dismissOnBackdrop:l=!1,labels:d,testID:f})=>{let[p,m]=(0,c.useState)(n);if((0,c.useEffect)(()=>{t&&m(n)},[t,n]),!t||e.length===0)return null;let h=Math.min(p,e.length-1),g=e[h],_=h===0,v=h===e.length-1,y={...st,...d},b=e=>{m(e),a?.(e)},x={label:v?y.finish:y.next,onPress:()=>v?r?.():b(h+1)},S=_?{label:y.skip,onPress:()=>i?.()}:{label:y.back,onPress:()=>b(h-1)};return(0,u.jsx)(ot,{open:t,targetRef:g.targetRef,title:g.title,description:g.description,placement:g.placement??o,spotlight:s,dismissOnBackdrop:l,step:h+1,stepCount:e.length,primaryAction:x,secondaryAction:S,onDismiss:()=>i?.(),testID:f})},lt={start:`flex-start`,center:`center`,end:`flex-end`,stretch:`stretch`},ut={start:`flex-start`,center:`center`,end:`flex-end`,"space-between":`space-between`,"space-around":`space-around`,"space-evenly":`space-evenly`},dt=(0,c.forwardRef)(function({childSpacing:e=6,lineSpacing:t,justify:n=`start`,align:r=`center`,wrapReverse:i=!1,children:a,style:o,...s},c){return(0,u.jsx)(l.View,{ref:c,style:[{flexDirection:`row`,flexWrap:i?`wrap-reverse`:`wrap`,columnGap:e,rowGap:t??e,justifyContent:ut[n],alignItems:lt[r],alignContent:`stretch`},o],...s,children:a})}),ft={sm:22,md:30,lg:38},pt=(0,c.forwardRef)(function({color:e,selected:t=!1,size:n=`md`,onSelect:r,accessibilityLabel:i,disabled:a=!1,style:o,...s},c){let d=j(),p=D()===`dark`,m=ft[n],h=p?`rgba(255, 255, 255, 0.12)`:`rgba(0, 0, 0, 0.15)`,g=Math.round(m*.55);return(0,u.jsx)(l.View,{style:[{padding:2,borderRadius:d.radiusPill,backgroundColor:t?e:`transparent`,alignSelf:`flex-start`,opacity:a?d.opacityDisabled:1},t?{transform:[{scale:1.05}]}:null,o],children:(0,u.jsx)(l.Pressable,{ref:c,disabled:a,onPress:()=>r?.(e),accessibilityRole:`radio`,accessibilityState:{checked:t,disabled:a},accessibilityLabel:i??e,style:{width:m,height:m,borderRadius:d.radiusPill,alignItems:`center`,justifyContent:`center`,backgroundColor:e,borderWidth:t?2:1,borderColor:t?`rgba(255, 255, 255, 0.9)`:h},...s,children:t?(0,u.jsxs)(f.default,{width:g,height:g,viewBox:`0 0 16 16`,children:[(0,u.jsx)(f.Path,{d:`M3 8l3.5 3.5L13 5`,stroke:`rgba(0, 0, 0, 0.35)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`,translateY:1}),(0,u.jsx)(f.Path,{d:`M3 8l3.5 3.5L13 5`,stroke:`white`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`})]}):null})})}),mt=[{value:`#3584e4`,label:`Blue`},{value:`#2ec27e`,label:`Green`},{value:`#f6d32d`,label:`Yellow`},{value:`#ff7800`,label:`Orange`},{value:`#e01b24`,label:`Red`},{value:`#9141ac`,label:`Purple`},{value:`#986a44`,label:`Brown`},{value:`#2190a4`,label:`Teal`},{value:`#5e5c64`,label:`Slate`}],ht=({value:e,onChange:t,colors:n=mt,allowCustom:r=!1,onRequestCustom:i,size:a=`md`,accessibilityLabel:o=`Color`,disabled:s=!1,style:c,testID:f})=>{let p=j(),m=D()===`dark`,h=ft[a],g=e!==void 0&&!n.some(t=>t.value===e);return(0,u.jsxs)(dt,{testID:f,accessibilityRole:`radiogroup`,accessibilityLabel:o,childSpacing:8,align:`center`,style:c,children:[n.map(n=>(0,u.jsx)(pt,{color:n.value,size:a,selected:n.value===e,disabled:s,onSelect:t,accessibilityLabel:n.label??n.value},n.value)),r?(0,u.jsxs)(u.Fragment,{children:[g&&e?(0,u.jsx)(pt,{color:e,size:a,selected:!0,disabled:s,onSelect:i,accessibilityLabel:`Custom color`}):null,(0,u.jsx)(l.View,{style:{padding:2,alignSelf:`flex-start`},children:(0,u.jsx)(l.Pressable,{disabled:s,onPress:i,accessibilityRole:`button`,accessibilityLabel:`Choose custom color`,accessibilityState:{disabled:s},style:({pressed:e})=>({width:h,height:h,borderRadius:p.radiusPill,alignItems:`center`,justifyContent:`center`,borderWidth:1.5,borderStyle:`dashed`,borderColor:m?`rgba(255, 255, 255, 0.25)`:p.cardShadeColor,backgroundColor:e&&!s?p.activeOverlay:p.cardBgColor,opacity:s?p.opacityDisabled:1}),children:(0,u.jsx)(B,{icon:d.Add,width:Math.round(h*.5),height:Math.round(h*.5)})})})]}):null]})},gt=4,_t=8,vt=280;function yt(e,t){let{height:n}=l.Dimensions.get(`window`),r=n-(e.y+e.height)<t&&e.y>t,i=r?e.y-t-gt:e.y+e.height+gt;return{top:Math.max(_t,Math.min(i,n-t-_t)),left:e.x,width:e.width,flipUp:r}}var bt=({options:e,value:t,onChange:n,placeholder:r=`Select an option`,accessibilityLabel:i,disabled:a,style:o,testID:s})=>{let f=j(),p=R(),[m,h]=(0,c.useState)(!1),[g,_]=(0,c.useState)(null),[v,y]=(0,c.useState)(null),[b,x]=(0,c.useState)(null),S=(0,c.useRef)(null),C=(0,c.useRef)(new l.Animated.Value(0)).current,w=e.find(e=>e.value===t),T=()=>{a||h(!0)},E=()=>h(!1),D=e=>{e.disabled||(n?.(e.value),E())};return(0,c.useEffect)(()=>{if(!m){_(null),y(null),x(null);return}S.current?.measureInWindow((e,t,n,r)=>{_({x:e,y:t,width:n,height:r})})},[m]),(0,c.useEffect)(()=>{g===null||v===null||x(yt(g,v))},[g,v]),(0,c.useEffect)(()=>{if(b){if(p){C.setValue(1);return}C.setValue(0),l.Animated.timing(C,{toValue:1,duration:f.durationFast,useNativeDriver:!0}).start()}},[b,p,C,f.durationFast]),(0,u.jsxs)(l.View,{style:o,children:[(0,u.jsxs)(l.Pressable,{ref:S,testID:s,role:`combobox`,accessibilityLabel:i,accessibilityState:{expanded:m,disabled:!!a},disabled:a,onPress:()=>m?E():T(),style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,gap:f.space1,minHeight:36,minWidth:160,paddingVertical:7,paddingHorizontal:f.space2,backgroundColor:e?f.activeOverlay:f.cardBgColor,borderWidth:1,borderColor:m?f.accentColor:f.cardShadeColor,borderRadius:f.radiusMd,opacity:a?f.opacityDisabled:1}),children:[(0,u.jsx)(z,{numberOfLines:1,style:{flex:1,fontSize:f.fontSizeBody,color:f.windowFgColor,opacity:w?1:f.opacityDim},children:w?.label??r}),(0,u.jsx)(B,{icon:d.PanDown,size:`md`,color:`default`,style:{transform:[{rotate:m?`180deg`:`0deg`}]}})]}),(0,u.jsx)(l.Modal,{visible:m,transparent:!0,animationType:`none`,statusBarTranslucent:!0,children:(0,u.jsx)(l.Pressable,{onPress:E,accessible:!1,style:{flex:1},testID:s?`${s}-backdrop`:void 0,children:(0,u.jsx)(l.Animated.View,{onLayout:e=>{y(Math.min(e.nativeEvent.layout.height,vt))},role:`list`,accessible:!0,style:[{position:`absolute`,maxHeight:vt,backgroundColor:f.popoverBgColor,borderWidth:1,borderColor:f.cardShadeColor,borderRadius:f.radiusMd,paddingVertical:4,shadowColor:`#000`,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:6},b?{top:b.top,left:b.left,width:b.width,opacity:C}:{top:-9999,left:-9999,width:200,opacity:0}],children:(0,u.jsx)(l.ScrollView,{bounces:!1,children:e.map(e=>{let n=e.value===t;return(0,u.jsxs)(l.Pressable,{role:`option`,accessibilityState:{selected:n,disabled:!!e.disabled},disabled:e.disabled,onPress:()=>D(e),style:({pressed:t})=>({flexDirection:`row`,alignItems:`center`,gap:f.space2,minHeight:40,paddingVertical:8,paddingHorizontal:f.space2,backgroundColor:t?f.activeOverlay:`transparent`,opacity:e.disabled?f.opacityDisabled:1}),children:[(0,u.jsxs)(l.View,{style:{flex:1,gap:1},children:[(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:f.fontSizeBody,color:f.windowFgColor,fontWeight:n?String(f.fontWeightSemibold):void 0},children:e.label}),e.description&&(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:f.fontSizeCaption,color:f.windowFgColor,opacity:f.opacityDim},children:e.description})]}),n&&(0,u.jsx)(B,{icon:d.Check,size:`md`,color:`blue`})]},e.value)})})})})})]})},xt=120,St=({title:e,subtitle:t,leading:n,options:r,value:i,defaultValue:a,onValueChange:o,placeholder:s=`—`,accessibilityLabel:l,disabled:d=!1,style:f,testID:p})=>{let m=j(),h=i!==void 0,[g,_]=(0,c.useState)(a),v=h?i:g;return(0,u.jsx)(ie,{testID:p,title:e,subtitle:t,leading:n,disabled:d,style:[d?{opacity:m.opacityDisabled}:null,f],trailing:(0,u.jsx)(bt,{options:r,value:v,placeholder:s,accessibilityLabel:l??e,disabled:d,onChange:e=>{h||_(e),o?.(e)},style:{minWidth:xt}})})},Ct=l.Animated.createAnimatedComponent(l.Pressable),wt=({open:e,title:t,children:n,buttons:r=[],onClose:i,closeOnBackdrop:a=!0,role:o=`dialog`,responses:s,onResponse:d,style:f,testID:p})=>{let m=j(),h=D(),g=R(),_=(0,c.useRef)(new l.Animated.Value(+!!g)).current,v=!!s,y=()=>{let e=s?.find(e=>e.variant!==`destructive`&&!e.disabled);e&&d?.(e.id)},b=()=>{v?y():i?.()},x=v?y:a?i:void 0;(0,c.useEffect)(()=>{if(!e)return;if(g){_.setValue(1);return}_.setValue(0);let[t,n,r,i]=m.easingDefault;l.Animated.timing(_,{toValue:1,duration:m.durationNormal,easing:l.Easing.bezier(t,n,r,i),useNativeDriver:!0}).start()},[e,g,_,m.durationNormal,m.easingDefault]),(0,c.useEffect)(()=>{if(!e)return;let t=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(b(),!0));return()=>t.remove()},[e,v,s,d,i]);let S=()=>{let e=v&&s?s:r;return e.length===0?null:(0,u.jsx)(l.View,{style:{borderTopWidth:1,borderTopColor:m.cardShadeColor},children:e.map((t,n)=>{let r=t.variant??`default`,i=r===`destructive`?m.destructiveColor:m.accentColor,a=v?()=>d?.(t.id):t.onPress;return(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityState:{disabled:t.disabled},disabled:t.disabled,onPress:a,style:({pressed:r})=>({paddingVertical:14,paddingHorizontal:m.space4,borderBottomWidth:+(n<e.length-1),borderBottomColor:m.cardShadeColor,backgroundColor:r?m.activeOverlay:`transparent`,opacity:t.disabled?m.opacityDisabled:1}),children:(0,u.jsx)(z,{variant:`body`,style:{textAlign:`center`,color:i,fontWeight:r===`suggested`?String(m.fontWeightSemibold):void 0},children:t.label})},v?t.id:t.label)})})},C=h===`dark`?{shadowOpacity:.5,shadowRadius:32,elevation:12}:{shadowOpacity:.25,shadowRadius:32,elevation:8};return(0,u.jsx)(l.Modal,{visible:e,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:b,children:(0,u.jsx)(Ct,{testID:p,onPress:x,style:{flex:1,alignItems:`center`,justifyContent:`center`,paddingHorizontal:24,backgroundColor:m.dialogBackdropColor,opacity:_},children:(0,u.jsx)(l.Pressable,{onPress:()=>{},accessible:!1,style:{width:`100%`,maxWidth:480},children:(0,u.jsxs)(l.Animated.View,{accessible:!0,role:o,accessibilityViewIsModal:!0,style:[{backgroundColor:m.dialogBgColor,borderRadius:m.radiusXl,overflow:`hidden`,shadowColor:`#000`,shadowOffset:{width:0,height:8},...C,opacity:_,transform:[{translateY:_.interpolate({inputRange:[0,1],outputRange:[-8,0]})},{scale:_.interpolate({inputRange:[0,1],outputRange:[.92,1]})}]},f],children:[t&&(0,u.jsx)(z,{variant:`title-4`,style:{padding:m.space4,paddingBottom:n?0:m.space4,textAlign:`center`,fontWeight:String(m.fontWeightBold)},children:t}),n&&(0,u.jsx)(l.View,{style:{paddingVertical:m.space2,paddingHorizontal:m.space4},children:typeof n==`string`?(0,u.jsx)(z,{variant:`body`,style:{textAlign:`center`,opacity:m.opacityDim},children:n}):n}),S()]})})})})},Tt=({children:e,accessibilityLabel:t,style:n,testID:r})=>{let i=j(),a=!!e;return(0,u.jsxs)(l.View,{testID:r,accessible:!0,role:`separator`,accessibilityLabel:t??(typeof e==`string`?e:void 0),style:[{flexDirection:`row`,alignItems:`center`,width:`100%`,gap:i.space2},n],children:[(0,u.jsx)(l.View,{style:{flex:1,height:1,backgroundColor:i.cardShadeColor}}),a&&(0,u.jsxs)(u.Fragment,{children:[typeof e==`string`?(0,u.jsx)(z,{variant:`caption`,color:`dim`,children:e}):e,(0,u.jsx)(l.View,{style:{flex:1,height:1,backgroundColor:i.cardShadeColor}})]})]})},J=6,Y=8,Et=5;function Dt(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}function Ot(e,t,n){switch(n){case`top`:return{top:e.y-t.height-J,left:e.x+e.width/2-t.width/2};case`bottom`:return{top:e.y+e.height+J,left:e.x+e.width/2-t.width/2};case`left`:return{top:e.y+e.height/2-t.height/2,left:e.x-t.width-J};case`right`:return{top:e.y+e.height/2-t.height/2,left:e.x+e.width+J}}}function kt(e,t,n){let{width:r,height:i}=l.Dimensions.get(`window`),a=[n,n===`top`?`bottom`:n===`bottom`?`top`:n===`left`?`right`:`left`,`top`,`bottom`,`left`,`right`];for(let n of a){let{top:a,left:o}=Ot(e,t,n),s=o>=Y&&o+t.width<=r-Y,c=a>=Y&&a+t.height<=i-Y;if(s&&c)return{top:Math.max(Y,Math.min(a,i-t.height-Y)),left:Math.max(Y,Math.min(o,r-t.width-Y)),placement:n}}let{top:o,left:s}=Ot(e,t,n);return{top:Math.max(Y,Math.min(o,i-t.height-Y)),left:Math.max(Y,Math.min(s,r-t.width-Y)),placement:n}}var At=({label:e,placement:t=`top`,delay:n=500,children:r})=>{let i=j(),a=D(),o=R(),[s,d]=(0,c.useState)(!1),[f,p]=(0,c.useState)(null),[m,h]=(0,c.useState)(null),[g,_]=(0,c.useState)(null),v=(0,c.useRef)(null),y=(0,c.useRef)(null),b=(0,c.useRef)(new l.Animated.Value(0)).current,x=(0,c.useCallback)(()=>{y.current&&=(clearTimeout(y.current),null)},[]),S=(0,c.useCallback)(()=>{x(),d(!0)},[x]),C=(0,c.useCallback)(()=>{x(),y.current=setTimeout(S,n)},[x,S,n]),w=(0,c.useCallback)(()=>{x(),d(!1)},[x]);(0,c.useEffect)(()=>{if(!s){p(null),h(null),_(null);return}v.current?.measureInWindow((e,t,n,r)=>{p({x:e,y:t,width:n,height:r})})},[s]),(0,c.useEffect)(()=>{!f||!m||_(kt(f,m,t))},[f,m,t]),(0,c.useEffect)(()=>{if(g){if(o){b.setValue(1);return}b.setValue(0),l.Animated.timing(b,{toValue:1,duration:i.durationFast,useNativeDriver:!0}).start()}},[g,o,b,i.durationFast]),(0,c.useEffect)(()=>x,[x]);let T=e=>{let{width:t,height:n}=e.nativeEvent.layout;h({width:t,height:n})},E=a===`dark`?`#c0bfbc`:`#3d3d3d`,O=a===`dark`?`rgba(0, 0, 0, 0.8)`:`#fff`,k=a===`dark`?{shadowOpacity:.4,shadowRadius:8,elevation:6}:{shadowOpacity:.2,shadowRadius:8,elevation:4},A={position:`absolute`,width:0,height:0,borderWidth:Et,borderColor:`transparent`},M=(()=>{switch(g?.placement){case`top`:return{...A,top:`100%`,left:`50%`,marginLeft:-5,borderTopColor:E};case`bottom`:return{...A,bottom:`100%`,left:`50%`,marginLeft:-5,borderBottomColor:E};case`left`:return{...A,left:`100%`,top:`50%`,marginTop:-5,borderLeftColor:E};case`right`:return{...A,right:`100%`,top:`50%`,marginTop:-5,borderRightColor:E};default:return null}})(),N=r.props.ref;return(0,u.jsxs)(u.Fragment,{children:[(0,c.cloneElement)(r,{ref:e=>{v.current=e,Dt(N,e)},delayLongPress:n,accessibilityHint:r.props.accessibilityHint??e,onLongPress:e=>{S(),r.props.onLongPress?.(e)},onPressOut:e=>{w(),r.props.onPressOut?.(e)},onHoverIn:e=>{C(),r.props.onHoverIn?.(e)},onHoverOut:e=>{w(),r.props.onHoverOut?.(e)},onFocus:e=>{C(),r.props.onFocus?.(e)},onBlur:e=>{w(),r.props.onBlur?.(e)}}),(0,u.jsx)(l.Modal,{visible:s,transparent:!0,animationType:`none`,statusBarTranslucent:!0,children:(0,u.jsx)(l.View,{pointerEvents:`box-none`,style:l.StyleSheet.absoluteFill,children:(0,u.jsxs)(l.Animated.View,{onLayout:T,accessible:!0,role:`tooltip`,style:[{position:`absolute`,maxWidth:240,paddingVertical:4,paddingHorizontal:i.space2,backgroundColor:E,borderRadius:i.radiusSm,shadowColor:`#000`,shadowOffset:{width:0,height:2},...k},g?{top:g.top,left:g.left,opacity:b}:{top:-9999,left:-9999,opacity:0}],children:[(0,u.jsx)(z,{style:{color:O,fontSize:i.fontSizeCaption,fontWeight:String(i.fontWeightNormal),lineHeight:i.fontSizeCaption*i.lineHeightBody,textAlign:`center`},children:e}),M&&(0,u.jsx)(l.View,{style:M})]})})})]})},jt={sm:`sm`,md:`md`,lg:`lg`},Mt=(0,c.forwardRef)(function({icon:e,label:t,variant:n=`default`,size:r=`md`,iconSize:i,tooltip:a,tooltipPlacement:o,tooltipDelay:s,...c},l){let d=(0,u.jsx)(U,{ref:l,accessibilityLabel:t,shape:`circular`,size:r,variant:n===`osd`?`flat`:n,osd:n===`osd`,...c,children:(0,u.jsx)(B,{icon:e,size:i??jt[r]})});return a?(0,u.jsx)(At,{label:a,placement:o,delay:s,children:d}):d}),Nt=l.Animated.createAnimatedComponent(l.Pressable),Pt=(0,c.createContext)(0),Ft={classic:420,wide:640},It=.85,Lt=240,Rt=({open:e,side:t=`right`,size:n=`classic`,title:r,content:i,children:a,onClose:o,closeOnBackdrop:s=!0,rail:f,style:p,testID:m})=>{let h=j(),g=D(),_=R(),v=(0,c.useContext)(Pt),y=i===void 0?a:i,b=Ft[n],x=v>0?Math.max(Lt,Math.round(b*It**v)):b,S=l.Dimensions.get(`window`).width-h.space3*2,C=Math.min(x,S),w=(0,c.useRef)(new l.Animated.Value(+!!_)).current;(0,c.useEffect)(()=>{if(!e)return;if(_){w.setValue(1);return}w.setValue(0);let[t,n,r,i]=h.easingDefault;l.Animated.timing(w,{toValue:1,duration:h.durationNormal,easing:l.Easing.bezier(t,n,r,i),useNativeDriver:!0}).start()},[e,_,w,h.durationNormal,h.easingDefault]),(0,c.useEffect)(()=>{if(!e)return;let t=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(o?.(),!0));return()=>t.remove()},[e,o]);let T=t===`left`?-C:C,E=w.interpolate({inputRange:[0,1],outputRange:[T,0]}),O=g===`dark`?{shadowOpacity:.45,shadowRadius:24,elevation:12}:{shadowOpacity:.18,shadowRadius:24,elevation:8},k=f&&f.length>0?(0,u.jsx)(l.View,{style:{width:56,flexShrink:0,alignItems:`center`,gap:h.space2,paddingVertical:h.space3,[t===`right`?`borderRightWidth`:`borderLeftWidth`]:1,borderColor:h.cardShadeColor},children:f.map(e=>(0,u.jsx)(Mt,{icon:e.icon,label:e.label,tooltip:e.label,tooltipPlacement:t===`right`?`left`:`right`,variant:`flat`,size:`sm`,disabled:e.disabled,accessibilityState:{selected:!!e.active,disabled:!!e.disabled},onPress:e.onPress},e.id))}):null;return(0,u.jsx)(l.Modal,{visible:e,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:o,children:(0,u.jsx)(Nt,{testID:m,onPress:s?o:void 0,accessible:!1,style:{flex:1,flexDirection:`row`,justifyContent:t===`left`?`flex-start`:`flex-end`,padding:h.space3,backgroundColor:h.dialogBackdropColor,opacity:w},children:(0,u.jsx)(l.Pressable,{onPress:()=>{},accessible:!1,style:{width:C},children:(0,u.jsxs)(l.Animated.View,{accessible:!0,role:`dialog`,accessibilityViewIsModal:!0,style:[{flex:1,flexDirection:`row`,overflow:`hidden`,borderRadius:h.radiusXl,backgroundColor:h.dialogBgColor,shadowColor:`#000`,shadowOffset:{width:t===`left`?4:-4,height:0},...O,transform:[{translateX:E}]},p],children:[t===`right`&&k,(0,u.jsxs)(l.View,{style:{flex:1,minWidth:0},children:[r&&(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:h.space2,padding:h.space4,paddingBottom:h.space2},children:[(0,u.jsx)(z,{variant:`title-4`,style:{flex:1,fontWeight:String(h.fontWeightBold)},children:r}),o&&(0,u.jsx)(U,{variant:`flat`,shape:`circular`,size:`sm`,accessibilityLabel:`Close`,onPress:o,children:(0,u.jsx)(B,{icon:d.Close,size:`sm`})})]}),y!==void 0&&(0,u.jsx)(l.View,{style:{flex:1,padding:h.space4,paddingTop:r?0:h.space4},children:(0,u.jsx)(Pt.Provider,{value:v+1,children:typeof y==`string`?(0,u.jsx)(z,{variant:`body`,children:y}):y})})]}),t===`left`&&k]})})})})},zt=6,Bt=(0,c.forwardRef)(function({title:e,value:t,defaultValue:n=``,onValueChange:r,onChangeText:i,leading:a,trailing:o,disabled:s=!1,onFocus:d,onBlur:f,accessibilityLabel:p,testID:m,style:h,...g},_){let v=j(),y=R(),b=t!==void 0,[x,S]=(0,c.useState)(n),C=b?t:x,[w,T]=(0,c.useState)(!1),[E,D]=(0,c.useState)(56),O=(0,c.useRef)(null),k=w||C.length>0,A=(0,c.useRef)(new l.Animated.Value(+!!k)).current;(0,c.useEffect)(()=>{if(y){A.setValue(+!!k);return}let e=l.Animated.timing(A,{toValue:+!!k,duration:v.durationFast,useNativeDriver:!1});return e.start(),()=>e.stop()},[k,y,A,v.durationFast]);let M=Math.round(v.fontSizeBody*v.lineHeightBody),N=Math.round(v.fontSizeCaption*v.lineHeightBody),P=(E-M)/2;return(0,u.jsxs)(l.Pressable,{accessible:!1,testID:m,disabled:s,onPress:()=>O.current?.focus(),style:[{flexDirection:`row`,alignItems:`center`,gap:v.space2,paddingHorizontal:v.space4,minHeight:56,width:`100%`,opacity:s?v.opacityDisabled:1},h],children:[a?(0,u.jsx)(l.View,{style:{flexShrink:0},children:a}):null,(0,u.jsxs)(l.View,{onLayout:e=>D(e.nativeEvent.layout.height),style:{flex:1,justifyContent:`center`,minHeight:56},children:[(0,u.jsx)(l.Animated.Text,{pointerEvents:`none`,accessibilityElementsHidden:!0,importantForAccessibility:`no`,numberOfLines:1,style:{position:`absolute`,left:0,right:0,top:P,fontFamily:v.fontFamily,color:v.windowFgColor,fontSize:A.interpolate({inputRange:[0,1],outputRange:[v.fontSizeBody,v.fontSizeCaption]}),lineHeight:A.interpolate({inputRange:[0,1],outputRange:[M,N]}),opacity:A.interpolate({inputRange:[0,1],outputRange:[v.opacityDim,.7]}),transform:[{translateY:A.interpolate({inputRange:[0,1],outputRange:[0,zt-P]})}]},children:e}),(0,u.jsx)(l.Animated.View,{style:{opacity:A},children:(0,u.jsx)(l.TextInput,{ref:e=>{O.current=e,typeof _==`function`?_(e):_&&(_.current=e)},value:C,editable:!s,accessibilityLabel:p??e,onFocus:e=>{T(!0),d?.(e)},onBlur:e=>{T(!1),f?.(e)},onChangeText:e=>{b||S(e),r?.(e),i?.(e)},style:{padding:0,margin:0,width:`100%`,fontFamily:v.fontFamily,fontSize:v.fontSizeBody,lineHeight:M,color:v.cardFgColor,paddingTop:v.space4,paddingBottom:4},...g})})]}),o?(0,u.jsx)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:v.space1},children:o}):null]})}),Vt=({label:e,children:t,expanded:n,defaultExpanded:r=!1,onExpandedChange:i,disabled:a=!1,style:o,testID:s})=>{let f=j(),p=R(),m=n!==void 0,[h,g]=(0,c.useState)(r),_=m?n:h,[v,y]=(0,c.useState)(0),b=(0,c.useRef)(!1),x=(0,c.useRef)(new l.Animated.Value(0)).current,S=(0,c.useRef)(new l.Animated.Value(+!!r)).current,C=()=>{if(a)return;let e=!_;m||g(e),i?.(e)},w=e=>{let t=e.nativeEvent.layout.height;if(t===v){b.current=!0;return}_&&!b.current&&x.setValue(t),b.current=!0,y(t)};(0,c.useEffect)(()=>{let[e,t,n,r]=f.easingDefault,i=l.Easing.bezier(e,t,n,r),a=_?v:0;if(p){x.setValue(a),S.setValue(+!!_);return}l.Animated.parallel([l.Animated.timing(x,{toValue:a,duration:f.durationNormal,easing:i,useNativeDriver:!1}),l.Animated.timing(S,{toValue:+!!_,duration:f.durationFast,easing:i,useNativeDriver:!0})]).start()},[_,v,p,x,S,f.durationNormal,f.durationFast,f.easingDefault]);let T=_&&!b.current,E=S.interpolate({inputRange:[0,1],outputRange:[`0deg`,`90deg`]});return(0,u.jsxs)(l.View,{testID:s,style:[{width:`100%`},o],children:[(0,u.jsxs)(l.Pressable,{role:`button`,disabled:a,accessibilityState:{expanded:_,disabled:a},onPress:C,style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,alignSelf:`flex-start`,gap:f.space2,padding:f.space1,margin:-f.space1,borderRadius:f.radiusSm,backgroundColor:e?f.activeOverlay:`transparent`,opacity:a?f.opacityDisabled:1}),children:[(0,u.jsx)(l.Animated.View,{style:{opacity:.55,transform:[{rotate:E}]},children:(0,u.jsx)(B,{icon:d.PanEnd,size:`md`})}),typeof e==`string`?(0,u.jsx)(z,{style:{color:f.windowFgColor},children:e}):e]}),(0,u.jsx)(l.Animated.View,{style:{height:T?void 0:x,overflow:`hidden`},accessibilityElementsHidden:!_,importantForAccessibility:_?`yes`:`no`,children:(0,u.jsx)(l.View,{accessible:!0,role:`region`,onLayout:w,style:{paddingTop:f.space2},children:t})})]})},Ht={folder:d.Folder,image:d.ImageXGeneric,audio:d.AudioXGeneric,video:d.VideoXGeneric,text:d.TextXGeneric,pdf:d.Document,archive:d.PackageXGeneric,document:d.XOfficeDocument,spreadsheet:d.XOfficeSpreadsheet,presentation:d.XOfficePresentation,font:d.FontXGeneric,executable:d.ApplicationXExecutable,unknown:d.TextXGeneric},Ut={folder:`Folder`,image:`Image file`,audio:`Audio file`,video:`Video file`,text:`Text file`,pdf:`PDF document`,archive:`Archive`,document:`Document`,spreadsheet:`Spreadsheet`,presentation:`Presentation`,font:`Font file`,executable:`Executable`,unknown:`File`},Wt={png:`image`,jpg:`image`,jpeg:`image`,gif:`image`,webp:`image`,svg:`image`,bmp:`image`,ico:`image`,tiff:`image`,heic:`image`,mp3:`audio`,wav:`audio`,ogg:`audio`,flac:`audio`,m4a:`audio`,aac:`audio`,mp4:`video`,mov:`video`,avi:`video`,mkv:`video`,webm:`video`,m4v:`video`,pdf:`pdf`,zip:`archive`,tar:`archive`,gz:`archive`,rar:`archive`,"7z":`archive`,xz:`archive`,doc:`document`,docx:`document`,odt:`document`,rtf:`document`,xls:`spreadsheet`,xlsx:`spreadsheet`,ods:`spreadsheet`,csv:`spreadsheet`,ppt:`presentation`,pptx:`presentation`,odp:`presentation`,ttf:`font`,otf:`font`,woff:`font`,woff2:`font`,exe:`executable`,app:`executable`,sh:`executable`,bin:`executable`,txt:`text`,md:`text`,log:`text`,json:`text`,yaml:`text`,yml:`text`,toml:`text`,xml:`text`,html:`text`,css:`text`,js:`text`,jsx:`text`,ts:`text`,tsx:`text`,py:`text`,rb:`text`,go:`text`,rs:`text`,c:`text`,cpp:`text`,h:`text`,java:`text`,sql:`text`},Gt={image:`image`,audio:`audio`,video:`video`,text:`text`,font:`font`},Kt={pdf:`pdf`,zip:`archive`,gzip:`archive`,"x-tar":`archive`,"x-7z-compressed":`archive`,"x-rar-compressed":`archive`,"vnd.rar":`archive`,msword:`document`,"vnd.openxmlformats-officedocument.wordprocessingml.document":`document`,"vnd.oasis.opendocument.text":`document`,"vnd.ms-excel":`spreadsheet`,"vnd.openxmlformats-officedocument.spreadsheetml.sheet":`spreadsheet`,"vnd.oasis.opendocument.spreadsheet":`spreadsheet`,"vnd.ms-powerpoint":`presentation`,"vnd.openxmlformats-officedocument.presentationml.presentation":`presentation`,"vnd.oasis.opendocument.presentation":`presentation`,"x-sh":`executable`,"x-executable":`executable`};function qt(e){let t=e.trim().toLowerCase();if(t===`inode/directory`)return`folder`;let[n,r]=t.split(`/`);return r&&Kt[r]?Kt[r]:Gt[n]??null}function Jt(e){let t=e.trim().replace(/^\.+/,``),n=t.lastIndexOf(`.`);return n<=0?null:Wt[t.slice(n+1).toLowerCase()]??null}function Yt(e){return Ht[e]}function Xt(e){return Ut[e]}var Zt=({name:e,mimeType:t,isFolder:n=!1,thumbnail:r,label:i,size:a=`md`,style:o,testID:s})=>{let c=j(),d=ae[a],f=n?`folder`:t&&qt(t)||e&&Jt(e)||`unknown`;return(0,u.jsx)(l.View,{testID:s,accessible:!0,role:`img`,accessibilityLabel:i??Xt(f),style:[{width:d,height:d,alignItems:`center`,justifyContent:`center`},o],children:r?(0,u.jsx)(l.Image,{testID:s?`${s}-thumbnail`:void 0,source:{uri:r},resizeMode:`cover`,style:{width:d,height:d,borderRadius:c.radiusSm}}):(0,u.jsx)(B,{icon:Yt(f),size:a})})},Qt=(0,c.forwardRef)(function({title:e,start:t,end:n,flat:r=!1,style:i,...a},o){let s=j();return(0,u.jsxs)(l.View,{ref:o,style:[{flexDirection:`row`,alignItems:`center`,gap:s.space1,paddingHorizontal:s.space2,minHeight:47,backgroundColor:s.headerbarBgColor,borderBottomWidth:+!r,borderBottomColor:s.headerbarBorderColor},i],...a,children:[(0,u.jsx)(l.View,{style:{flex:1,flexDirection:`row`,alignItems:`center`,gap:s.space1},children:t}),(0,u.jsx)(l.View,{accessibilityLiveRegion:`polite`,style:{alignItems:`center`,justifyContent:`center`,paddingHorizontal:s.space1},children:typeof e==`string`?(0,u.jsx)(l.Text,{numberOfLines:1,ellipsizeMode:`tail`,style:{fontFamily:s.fontFamily,fontSize:s.fontSizeBody,fontWeight:String(s.fontWeightSemibold),lineHeight:Math.round(s.fontSizeBody*s.lineHeightHeading),color:s.headerbarFgColor},children:e}):e}),(0,u.jsx)(l.View,{style:{flex:1,flexDirection:`row`,alignItems:`center`,justifyContent:`flex-end`,gap:s.space1},children:n})]})});function $t(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var en=({text:e,query:t,caseSensitive:n=!1,...r})=>{let i=j(),a=k(),o=(Array.isArray(t)?t:[t]).map(e=>e.trim()).filter(Boolean);if(o.length===0)return(0,u.jsx)(z,{...r,children:e});let s=RegExp(`(${o.map($t).join(`|`)})`,n?`g`:`gi`),c=e.split(s),d={fontWeight:String(i.fontWeightSemibold),...a===`more`?{backgroundColor:i.accentBgColor,color:`#fff`}:{backgroundColor:`${i.accentBgColor}4D`}};return(0,u.jsx)(z,{...r,children:c.map((e,t)=>t%2==1?(0,u.jsx)(l.Text,{style:d,children:e},t):e)})};function tn(e,t,n){let r=n?`rgba(255, 255, 255, 0.12)`:e.light3,i=`${e.accentBgColor}${n?`40`:`26`}`,a=`${e.accentBgColor}${n?`80`:`66`}`;switch(t){case`flat`:return{container:{backgroundColor:`transparent`,borderRadius:e.radiusMd,padding:2,gap:2},gap:2,padding:2,item:{borderRadius:e.radiusMd-2,paddingHorizontal:e.space2},iconOnlyItem:{paddingHorizontal:4,minWidth:28},indicator:{backgroundColor:i,borderRadius:e.radiusMd-2},indicatorInset:2,activeTextColor:e.accentColor,idleTextColor:e.windowFgColor};case`round`:return{container:{backgroundColor:e.cardBgColor,borderWidth:1,borderColor:r,borderRadius:e.radiusPill,padding:2,gap:2},gap:2,padding:2,item:{borderRadius:e.radiusPill,paddingHorizontal:e.space2},iconOnlyItem:{paddingHorizontal:4,minWidth:28},indicator:{backgroundColor:e.accentBgColor,borderRadius:e.radiusPill},indicatorInset:2,activeTextColor:e.accentFgColor,idleTextColor:e.windowFgColor};case`pill`:return{container:{backgroundColor:e.hoverOverlay,borderRadius:e.radiusPill,padding:3,gap:2},gap:2,padding:3,item:{borderRadius:e.radiusPill,paddingVertical:5,paddingHorizontal:e.space2},iconOnlyItem:{paddingHorizontal:5,minWidth:28},indicator:{backgroundColor:e.cardBgColor,borderRadius:e.radiusPill},indicatorInset:3,activeTextColor:e.windowFgColor,idleTextColor:e.windowFgColor};default:return{container:{backgroundColor:e.cardBgColor,borderWidth:1,borderColor:r,borderRadius:e.radiusMd,padding:2,gap:2},gap:2,padding:2,item:{borderRadius:e.radiusMd-2,paddingHorizontal:e.space2},iconOnlyItem:{paddingHorizontal:4,minWidth:28},indicator:{backgroundColor:i,borderRadius:e.radiusMd-2,borderWidth:1,borderColor:a},indicatorInset:2,activeTextColor:e.accentColor,idleTextColor:e.windowFgColor}}}function nn(e,t,n){return{fontFamily:e.fontFamily,fontSize:e.fontSizeBody,fontWeight:String(t?e.fontWeightSemibold:e.fontWeightNormal),color:n}}var rn=(0,c.createContext)(null);function an(){let e=(0,c.useContext)(rn);if(!e)throw Error(`InlineViewSwitcherItem must be used inside InlineViewSwitcher`);return e}var on=160,sn=30,cn=(0,c.forwardRef)(function({value:e,onValueChange:t,variant:n=`default`,overflow:r=`wrap`,accessibilityLabel:i=`View switcher`,children:a,style:o,...s},f){let p=j(),m=D()===`dark`,h=R(),g=(0,c.useMemo)(()=>tn(p,n,m),[p,n,m]),[_,v]=(0,c.useState)({}),[y,b]=(0,c.useState)(0),[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(!1),T=(0,c.useRef)(0),E=(0,c.useRef)(new l.Animated.Value(0)).current,O=(0,c.useRef)(new l.Animated.Value(0)).current,k=(0,c.useCallback)((e,t)=>{v(n=>{let r=n[e];return r&&r.x===t.x&&r.width===t.width?n:{...n,[e]:t}})},[]),A=r===`compact`||r===`menu`,M=(0,c.useMemo)(()=>c.Children.toArray(a).filter(c.isValidElement).filter(e=>e.type.displayName===`InlineViewSwitcherItem`).map(e=>e.props),[a]),N=(0,c.useMemo)(()=>{let e=M.map(e=>_[e.name]?.width??0);if(e.some(e=>e===0))return 0;let t=Math.max(M.length-1,0)*g.gap;return e.reduce((e,t)=>e+t,0)+t+2*g.padding},[M,_,g.gap,g.padding]);(0,c.useEffect)(()=>{if(!A||y===0||N===0){A||S(!1);return}S(e=>e?T.current>y+sn:N>y?(T.current=N,!0):!1)},[A,y,N]);let P=r===`compact`&&x,F=r===`menu`&&x,I=M.find(t=>t.name===e)??M[0],L=_[e];(0,c.useEffect)(()=>{if(F||!L)return;if(h){E.setValue(L.x),O.setValue(L.width);return}let e=l.Animated.parallel([l.Animated.timing(E,{toValue:L.x,duration:on,useNativeDriver:!1}),l.Animated.timing(O,{toValue:L.width,duration:on,useNativeDriver:!1})]);return e.start(),()=>e.stop()},[L,F,h,E,O]);let ee=(0,c.useMemo)(()=>({value:e,onValueChange:t,compact:P,styles:g,onItemLayout:k}),[e,t,P,g,k]),te=(0,c.useCallback)(e=>{A&&b(e.nativeEvent.layout.width)},[A]),ne=(0,c.useMemo)(()=>r===`scroll`?M.map(e=>_[e.name]?.x??0).filter((e,t)=>t===0||e>0):void 0,[r,M,_]),re=(0,u.jsx)(l.View,{ref:f,accessibilityRole:F?void 0:`radiogroup`,accessibilityLabel:i,onLayout:te,style:[{flexDirection:`row`,alignItems:`stretch`},g.container,A?{width:`100%`}:{alignSelf:`flex-start`},o],...s,children:F?(0,u.jsxs)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`${i}: ${I?.label??I?.name}`,onPress:()=>w(!0),style:[{flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:p.space1,minHeight:28,paddingVertical:4},g.item],children:[I?.icon?(0,u.jsx)(B,{icon:I.icon,size:`md`}):null,I?.label?(0,u.jsx)(l.Text,{style:nn(p,!0,g.idleTextColor),children:I.label}):null,(0,u.jsx)(B,{icon:d.PanDown,size:`sm`})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Animated.View,{pointerEvents:`none`,style:[{position:`absolute`,left:0,top:g.indicatorInset,bottom:g.indicatorInset,width:O,transform:[{translateX:E}]},g.indicator]}),a]})});return(0,u.jsxs)(rn.Provider,{value:ee,children:[r===`scroll`?(0,u.jsx)(l.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,snapToOffsets:ne,decelerationRate:`fast`,contentContainerStyle:{flexGrow:0},style:{flexGrow:0},children:re}):re,r===`menu`?(0,u.jsx)(Ve,{open:C,title:i,onClose:()=>w(!1),children:(0,u.jsx)(l.View,{accessibilityRole:`radiogroup`,accessibilityLabel:i,children:M.map(n=>{let r=n.name===e;return(0,u.jsxs)(l.Pressable,{accessibilityRole:`radio`,accessibilityState:{checked:r},accessibilityLabel:n.label??n.name,onPress:()=>{t(n.name),w(!1)},style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,gap:p.space2,paddingVertical:p.space2,paddingHorizontal:p.space3,borderRadius:p.radiusMd,backgroundColor:e?p.activeOverlay:`transparent`}),children:[n.icon?(0,u.jsx)(B,{icon:n.icon,size:`md`}):null,(0,u.jsx)(l.Text,{style:[nn(p,r,r?p.accentColor:p.windowFgColor),{flex:1}],children:n.label??n.name}),r?(0,u.jsx)(B,{icon:d.Check,size:`md`}):null]},n.name)})})}):null]})}),ln=(0,c.forwardRef)(function({name:e,label:t,icon:n,accessibilityLabel:r,disabled:i=!1,...a},o){let s=j(),{value:d,onValueChange:f,compact:p,styles:m,onItemLayout:h}=an(),g=d===e,_=!!t&&!(p&&n),v=!!n&&!_;return(0,u.jsxs)(l.Pressable,{ref:o,disabled:i,onPress:()=>f(e),onLayout:(0,c.useCallback)(t=>{let{x:n,width:r}=t.nativeEvent.layout;h(e,{x:n,width:r})},[e,h]),accessibilityRole:`radio`,accessibilityState:{checked:g,disabled:i},accessibilityLabel:r??t,style:[{flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:s.space1,minHeight:28,paddingVertical:4,opacity:i?s.opacityDisabled:1},m.item,v?m.iconOnlyItem:null],...a,children:[n?(0,u.jsx)(B,{icon:n,size:`md`}):null,_?(0,u.jsx)(l.Text,{numberOfLines:1,style:nn(s,g,g?m.activeTextColor:m.idleTextColor),children:t}):null]})});ln.displayName=`InlineViewSwitcherItem`;function un(e,t,n,r,i,a){return t!==void 0&&e<=t?n:r!==void 0&&e>=r?i:a}function dn(e,t){switch(t){case`accent`:return e.accentBgColor;case`success`:return e.successBgColor;case`warning`:return e.warningBgColor;case`error`:return e.errorBgColor}}var fn=({value:e,min:t=0,max:n=1,low:r,lowVariant:i=`warning`,high:a,highVariant:o=`error`,variant:s=`accent`,discrete:d=!1,numBlocks:f=10,accessibilityLabel:p,style:m,testID:h})=>{let g=j(),_=D(),v=R(),y=n-t,b=Math.min(n,Math.max(t,e)),x=y>0?(b-t)/y:0,S=un(b,r,i,a,o,s),C=(0,c.useRef)(new l.Animated.Value(x)).current;(0,c.useEffect)(()=>{if(d)return;let[e,t,n,r]=g.easingDefault;l.Animated.timing(C,{toValue:x,duration:v?0:g.durationNormal,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!0}).start()},[x,d,v,C,g.durationNormal,g.easingDefault]);let w=_===`dark`?g.dark2:g.light3;return(0,u.jsx)(l.View,{testID:h,accessible:!0,role:`meter`,accessibilityLabel:p,accessibilityValue:{min:t,max:n,now:b},style:[{flexDirection:`row`,width:`100%`,height:6,borderRadius:d?0:g.radiusPill,backgroundColor:d?`transparent`:w,overflow:d?`visible`:`hidden`,gap:d?2:0},m],children:d?Array.from({length:f},(e,t)=>(0,u.jsx)(l.View,{testID:`level-bar-block`,accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{flex:1,height:`100%`,minWidth:2,borderRadius:1,backgroundColor:(t+1)/f<=x?dn(g,S):w}},t)):(0,u.jsx)(l.Animated.View,{testID:h?`${h}-fill`:void 0,style:{width:`100%`,height:`100%`,borderRadius:g.radiusPill,backgroundColor:dn(g,S),transformOrigin:`left`,transform:[{scaleX:C}]}})})},pn=(0,c.forwardRef)(function({href:e,external:t=!1,children:n,style:r,textStyle:i,onPress:a,...o},s){let c=j();return(0,u.jsx)(l.Pressable,{ref:s,accessibilityRole:`link`,accessibilityHint:t?`Opens in browser`:void 0,onPress:a??(()=>l.Linking.openURL(e)),style:r,...o,children:({pressed:e})=>(0,u.jsxs)(z,{style:[{color:c.accentColor,textDecorationLine:e?`underline`:`none`,opacity:e?.7:1},i],children:[n,t&&(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{fontSize:12},children:` ↗`})]})})}),mn=l.Animated.createAnimatedComponent(l.Pressable),hn=({open:e,onDismiss:t,children:n,style:r,testID:i})=>{let a=j(),o=R(),[s,d]=(0,c.useState)(e),f=(0,c.useRef)(new l.Animated.Value(+!!e)).current;return(0,c.useEffect)(()=>{e&&d(!0)},[e]),(0,c.useEffect)(()=>{if(s)if(e){if(o){f.setValue(1);return}f.setValue(0),l.Animated.timing(f,{toValue:1,duration:a.durationNormal,useNativeDriver:!0}).start()}else{if(o){d(!1);return}l.Animated.timing(f,{toValue:0,duration:a.durationNormal,useNativeDriver:!0}).start(({finished:e})=>{e&&d(!1)})}},[e,s,o,f,a.durationNormal]),s?(0,u.jsx)(l.Modal,{visible:s,transparent:!0,animationType:`none`,statusBarTranslucent:!0,children:(0,u.jsx)(mn,{testID:i,onPress:t,accessible:!1,style:[{flex:1,alignItems:`center`,justifyContent:`center`,backgroundColor:a.dialogBackdropColor,opacity:f},r],children:(0,u.jsx)(l.Pressable,{onPress:()=>{},accessible:!1,children:n})})}):null},gn=(0,c.forwardRef)(function({trailing:e,disabled:t=!1,autoComplete:n=`current-password`,...r},i){let[a,o]=(0,c.useState)(!1);return(0,u.jsx)(Bt,{ref:i,...r,autoComplete:n,secureTextEntry:!a,disabled:t,trailing:(0,u.jsxs)(u.Fragment,{children:[e,(0,u.jsx)(Mt,{icon:a?d.ViewConceal:d.ViewReveal,label:a?`Conceal password`:`Reveal password`,variant:`flat`,disabled:t,accessibilityState:{selected:a,disabled:t},onPress:()=>o(e=>!e)})]})})}),_n=({segments:e,onNavigate:t,style:n,...r})=>{let i=j();return(0,u.jsx)(l.View,{style:[{flexDirection:`row`,flexWrap:`wrap`,alignItems:`center`},n],...r,children:e.map((n,r)=>{let a=r===e.length-1;return(0,u.jsxs)(c.Fragment,{children:[r>0&&(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{color:i.windowFgColor,opacity:.5,marginHorizontal:1,fontSize:i.fontSizeBody},children:`›`}),a?(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:4,paddingVertical:2,paddingHorizontal:i.space1,maxWidth:200},children:[n.icon&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n.icon}),(0,u.jsx)(l.Text,{numberOfLines:1,ellipsizeMode:`tail`,style:{fontFamily:i.fontFamily,fontSize:i.fontSizeBody,fontWeight:String(i.fontWeightSemibold),color:i.windowFgColor},children:n.label})]}):(0,u.jsxs)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:n.label,onPress:()=>t?.(n.path,r),style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,gap:4,paddingVertical:2,paddingHorizontal:i.space1,maxWidth:160,borderRadius:i.radiusSm,backgroundColor:e?i.activeOverlay:`transparent`}),children:[n.icon&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n.icon}),(0,u.jsx)(l.Text,{numberOfLines:1,ellipsizeMode:`tail`,style:{fontFamily:i.fontFamily,fontSize:i.fontSizeBody,color:i.windowFgColor},children:n.label})]})]},n.path)})})},X=8,Z=10,vn=6;function yn(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}function bn(e,t,n){switch(n){case`top`:return{top:e.y-t.height-X,left:e.x+e.width/2-t.width/2};case`bottom`:return{top:e.y+e.height+X,left:e.x+e.width/2-t.width/2};case`left`:return{top:e.y+e.height/2-t.height/2,left:e.x-t.width-X};case`right`:return{top:e.y+e.height/2-t.height/2,left:e.x+e.width+X}}}function xn(e,t,n){let{width:r,height:i}=l.Dimensions.get(`window`),a=[n,n===`top`?`bottom`:n===`bottom`?`top`:n===`left`?`right`:`left`,`bottom`,`top`,`left`,`right`];for(let n of a){let{top:a,left:o}=bn(e,t,n),s=o>=Z&&o+t.width<=r-Z,c=a>=Z&&a+t.height<=i-Z;if(s&&c)return{top:Math.max(Z,Math.min(a,i-t.height-Z)),left:Math.max(Z,Math.min(o,r-t.width-Z)),placement:n}}let{top:o,left:s}=bn(e,t,n);return{top:Math.max(Z,Math.min(o,i-t.height-Z)),left:Math.max(Z,Math.min(s,r-t.width-Z)),placement:n}}var Sn=({content:e,placement:t=`bottom`,open:n,onOpenChange:r,panelStyle:i,children:a})=>{let o=j(),s=R(),d=n!==void 0,[f,p]=(0,c.useState)(!1),m=d?n:f,[h,g]=(0,c.useState)(null),[_,v]=(0,c.useState)(null),[y,b]=(0,c.useState)(null),x=(0,c.useRef)(null),S=(0,c.useRef)(new l.Animated.Value(0)).current,C=(0,c.useCallback)(e=>{d||p(e),r?.(e)},[d,r]),w=(0,c.useCallback)(()=>C(!1),[C]),T=(0,c.useCallback)(()=>C(!m),[m,C]);(0,c.useEffect)(()=>{if(!m){g(null),v(null),b(null);return}x.current?.measureInWindow((e,t,n,r)=>{g({x:e,y:t,width:n,height:r})})},[m]),(0,c.useEffect)(()=>{!h||!_||b(xn(h,_,t))},[h,_,t]),(0,c.useEffect)(()=>{if(y){if(s){S.setValue(1);return}S.setValue(0),l.Animated.timing(S,{toValue:1,duration:o.durationFast,useNativeDriver:!0}).start()}},[y,s,S,o.durationFast]),(0,c.useEffect)(()=>{if(!m)return;let e=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(w(),!0));return()=>e.remove()},[m,w]);let E=e=>{let{width:t,height:n}=e.nativeEvent.layout;v({width:t,height:n})},D={position:`absolute`,width:0,height:0,borderWidth:vn,borderColor:`transparent`},O=(()=>{switch(y?.placement){case`top`:return{...D,top:`100%`,left:`50%`,marginLeft:-6,borderTopColor:o.popoverBgColor};case`bottom`:return{...D,bottom:`100%`,left:`50%`,marginLeft:-6,borderBottomColor:o.popoverBgColor};case`left`:return{...D,left:`100%`,top:`50%`,marginTop:-6,borderLeftColor:o.popoverBgColor};case`right`:return{...D,right:`100%`,top:`50%`,marginTop:-6,borderRightColor:o.popoverBgColor};default:return null}})(),k=a.props.ref;return(0,u.jsxs)(u.Fragment,{children:[(0,c.cloneElement)(a,{ref:e=>{x.current=e,yn(k,e)},accessibilityState:{expanded:m,...a.props.accessibilityState},onPress:e=>{T(),a.props.onPress?.(e)}}),(0,u.jsx)(l.Modal,{visible:m,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:w,children:(0,u.jsx)(l.Pressable,{onPress:w,accessible:!1,style:{flex:1},children:(0,u.jsxs)(l.Animated.View,{onLayout:E,role:`dialog`,accessible:!0,onStartShouldSetResponder:()=>!0,style:[{position:`absolute`,minWidth:180,maxWidth:320,backgroundColor:o.popoverBgColor,borderWidth:1,borderColor:o.cardShadeColor,borderRadius:o.radiusLg,padding:o.space2,shadowColor:`#000`,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:6},y?{top:y.top,left:y.left,opacity:S}:{top:-9999,left:-9999,opacity:0},i],children:[e,O&&(0,u.jsx)(l.View,{style:O})]})})})]})},Cn=(0,c.forwardRef)(function({title:e,description:t,headerSuffix:n,children:r,style:i,...a},o){let s=j(),c=!!(e||t||n);return(0,u.jsxs)(l.View,{ref:o,style:[{gap:s.space2},i],...a,children:[c?(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`baseline`,gap:s.space2},children:[(0,u.jsxs)(l.View,{style:{flex:1,gap:2},children:[e?(0,u.jsx)(z,{variant:`body`,accessibilityRole:`header`,style:{fontWeight:String(s.fontWeightSemibold)},children:e}):null,t?(0,u.jsx)(z,{variant:`caption`,color:`dim`,children:t}):null]}),n?(0,u.jsx)(l.View,{style:{flexShrink:0},children:n}):null]}):null,(0,u.jsx)(l.View,{children:r})]})}),wn=({value:e,variant:t=`accent`,accessibilityLabel:n,style:r,onLayout:i,...a})=>{let o=j(),s=D(),d=R(),f=e==null,p=f?void 0:Math.min(1,Math.max(0,e)),m=p===void 0?void 0:p*100,h=(0,c.useRef)(new l.Animated.Value(p??0)).current,g=(0,c.useRef)(new l.Animated.Value(0)).current,[_,v]=(0,c.useState)(0),y=e=>{v(e.nativeEvent.layout.width),i?.(e)};(0,c.useEffect)(()=>{if(f)return;let[e,t,n,r]=o.easingDefault;l.Animated.timing(h,{toValue:p??0,duration:d?0:o.durationNormal,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!0}).start()},[p,f,d,h,o.durationNormal,o.easingDefault]),(0,c.useEffect)(()=>{if(!f||d)return;g.setValue(0);let[e,t,n,r]=o.easingDefault,i=l.Animated.loop(l.Animated.timing(g,{toValue:1,duration:1400,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!0}));return i.start(),()=>i.stop()},[f,d,g,o.easingDefault]);let b=s===`dark`?o.dark2:o.light3,x={accent:o.accentBgColor,success:o.successBgColor,warning:o.warningBgColor,error:o.errorBgColor},S=f?d?{left:0,width:`100%`,opacity:.5}:{left:0,width:`40%`,transform:[{translateX:g.interpolate({inputRange:[0,1],outputRange:[-.4*_,_]})}]}:{width:`100%`,transformOrigin:`left`,transform:[{scaleX:h}]};return(0,u.jsx)(l.Animated.View,{accessible:!0,accessibilityRole:`progressbar`,accessibilityLabel:n,accessibilityValue:p===void 0?void 0:{min:0,max:100,now:Math.round(m)},onLayout:y,style:[{width:`100%`,height:6,borderRadius:o.radiusPill,backgroundColor:b,overflow:`hidden`},r],...a,children:(0,u.jsx)(l.Animated.View,{style:[{position:f?`absolute`:`relative`,top:0,height:`100%`,borderRadius:o.radiusPill,backgroundColor:x[t]},S]})})},Tn=18,En=6,Dn=(0,c.forwardRef)(function({value:e,onSelect:t,disabled:n,style:r,...i},a){let o=j(),s=D(),d=k(),f=(0,c.useRef)(new l.Animated.Value(+!!e)).current,p=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(p.current){p.current=!1;return}let[t,n,r,i]=o.easingDefault;l.Animated.timing(f,{toValue:+!!e,duration:o.durationFast,easing:l.Easing.bezier(t,n,r,i),useNativeDriver:!1}).start()},[e,f,o.durationFast,o.easingDefault]);let m=d===`more`?o.windowFgColor:s===`dark`?o.dark1:o.light4,h=f.interpolate({inputRange:[0,1],outputRange:[m,o.accentBgColor]}),g=f.interpolate({inputRange:[0,1],outputRange:[o.cardBgColor,o.accentBgColor]});return(0,u.jsx)(l.Pressable,{ref:a,disabled:n,accessibilityRole:`radio`,accessibilityState:{checked:e,disabled:!!n},onPress:()=>{e||t?.()},style:[{opacity:n?o.opacityDisabled:1},r],...i,children:(0,u.jsx)(l.Animated.View,{style:{width:Tn,height:Tn,alignItems:`center`,justifyContent:`center`,borderRadius:o.radiusPill,borderWidth:d===`more`?2:1.5,borderColor:h,backgroundColor:g},children:(0,u.jsx)(l.Animated.View,{style:{width:En,height:En,borderRadius:o.radiusPill,backgroundColor:`#fff`,opacity:f}})})})});function On(e,t){let n=e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);if(!n)return e;let[,r,i,a,o]=n,s=(o?Number.parseFloat(o):1)*t;return`rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`}var kn=(0,c.forwardRef)(function({open:e,onClose:t,onClear:n,children:r,value:i,placeholder:a=`Search…`,editable:o=!0,inline:s=!1,closeLabel:d=`Cancel`,style:f,inputStyle:p,...m},h){let g=j(),_=(0,c.useRef)(null);if((0,c.useImperativeHandle)(h,()=>_.current,[]),(0,c.useEffect)(()=>{if(!e)return;let t=requestAnimationFrame(()=>_.current?.focus());return()=>cancelAnimationFrame(t)},[e]),!e)return null;let v=!o,y=typeof i==`string`&&i.length>0,b=s?`transparent`:g.headerbarBgColor,x=s?`transparent`:g.headerbarShadeColor;return(0,u.jsxs)(l.View,{style:f,children:[(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:g.space1},children:[(0,u.jsxs)(l.View,{style:{flex:1,flexDirection:`row`,alignItems:`center`,gap:g.space1,paddingVertical:g.space1,paddingHorizontal:g.space2,backgroundColor:b,borderBottomWidth:1,borderBottomColor:x,opacity:v?g.opacityDisabled:1},children:[(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{opacity:g.opacityDim,fontSize:g.fontSizeBody},children:`🔍`}),(0,u.jsx)(l.TextInput,{ref:_,editable:o,value:i,placeholder:a,placeholderTextColor:On(g.windowFgColor,g.opacityDim),style:[{flex:1,padding:0,fontFamily:g.fontFamily,fontSize:g.fontSizeBody,lineHeight:Math.round(g.fontSizeBody*g.lineHeightBody),color:g.windowFgColor},p],...m}),y&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Clear search`,disabled:v,hitSlop:8,onPress:()=>{n?.(),_.current?.focus()},style:({pressed:e})=>({width:24,height:24,alignItems:`center`,justifyContent:`center`,borderRadius:g.radiusSm,opacity:v?g.opacityDisabled:1,backgroundColor:e?g.activeOverlay:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontSize:g.fontSizeBody,color:g.windowFgColor},children:`×`})})]}),t&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:d,onPress:t,hitSlop:8,children:(0,u.jsx)(l.Text,{style:{fontFamily:g.fontFamily,fontSize:g.fontSizeBody,color:g.accentColor},children:d})})]}),r&&(0,u.jsx)(l.View,{style:{flexDirection:`row`,flexWrap:`wrap`,gap:g.space1,padding:g.space1,paddingHorizontal:g.space2,backgroundColor:b,borderBottomWidth:1,borderBottomColor:x},children:r})]})}),An=8;function jn(e,t){switch(t%An){case 0:return e.blue3;case 1:return e.green3;case 2:return e.purple3;case 3:return e.orange3;case 4:return e.red3;case 5:return e.brown3;case 6:return e.blue5;default:return e.green5}}var Mn=({values:e,accessibilityLabel:t,style:n,testID:r})=>{let i=j(),a=D(),[o,s]=(0,c.useState)(null),d=e.reduce((e,t)=>e+t.value,0)||100,f=e.map(e=>`${e.label} ${e.value}%`).join(`, `),p=a===`dark`?i.dark2:i.light3;return(0,u.jsx)(l.View,{testID:r,accessible:!0,role:`img`,accessibilityLabel:t??f,style:[{flexDirection:`row`,width:`100%`,height:8,borderRadius:i.radiusPill,overflow:`hidden`,gap:2,backgroundColor:p},n],children:e.map((e,t)=>{let n=`${e.value/d*100}%`,r=e.value%1==0?e.value:e.value.toFixed(1);return(0,u.jsx)(At,{label:`${e.label}: ${r}%`,placement:`top`,delay:200,children:(0,u.jsx)(l.Pressable,{testID:`segmented-bar-segment`,onPressIn:()=>s(t),onPressOut:()=>s(null),style:{width:n,height:`100%`,backgroundColor:e.color??jn(i,t),opacity:o!==null&&o!==t?.35:1}})},e.label)})})};function Nn(e,t){let n=0;return c.Children.forEach(e,e=>{if(!(0,c.isValidElement)(e))return;let r=e.props;typeof r.label==`string`?r.label.toLowerCase().includes(t.toLowerCase())&&n++:r.children&&(n+=Nn(r.children,t))}),n}function Pn(e,t){if(!t||!(0,c.isValidElement)(e))return!0;let n=e.props;return typeof n.label==`string`?n.label.toLowerCase().includes(t.toLowerCase()):n.children?Nn(n.children,t)>0:!0}var Fn=(0,c.createContext)(!1);function In(){return(0,c.useContext)(Fn)}var Q=(0,c.createContext)(``),Ln=(0,c.forwardRef)(function({children:e,collapsed:t=!1,filter:n=``,style:r,...i},a){let o=j(),s=n.length>0,d=c.Children.toArray(e).filter(Boolean).filter(e=>Pn(e,n)),f=!s||d.length>0;return(0,u.jsx)(Fn.Provider,{value:t,children:(0,u.jsx)(Q.Provider,{value:n,children:(0,u.jsx)(l.View,{ref:a,style:[{flexShrink:0,width:t?o.layoutSidebarRailWidth:o.layoutSidebarDefaultWidth,backgroundColor:o.sidebarBgColor,borderRightWidth:1,borderRightColor:o.headerbarBorderColor},r],...i,children:(0,u.jsx)(l.ScrollView,{contentContainerStyle:{padding:o.space1},children:s&&!f?(0,u.jsx)(z,{variant:`caption`,color:`dim`,style:{textAlign:`center`,padding:o.space4},children:`No items match your search.`}):d.map((e,t)=>(0,u.jsxs)(c.Fragment,{children:[t>0&&(0,u.jsx)(Ge,{testID:`sidebar-separator`,style:{marginVertical:o.space1}}),e]},t))})})})})}),Rn=(0,c.forwardRef)(function({label:e,icon:t,active:n=!1,suffix:r,disabled:i,style:a,...o},s){let d=j(),f=In(),p=(0,c.useContext)(Q);return p.length>0&&!e.toLowerCase().includes(p.toLowerCase())?null:(0,u.jsxs)(l.Pressable,{ref:s,disabled:i,accessibilityRole:`button`,accessibilityState:{selected:n,disabled:!!i},accessibilityLabel:e,style:({pressed:e})=>[{flexDirection:`row`,alignItems:`center`,gap:d.space2,paddingVertical:8,paddingHorizontal:d.space2,borderRadius:d.radiusMd,opacity:i?d.opacityDisabled:1,backgroundColor:n?d.accentBgColor:e?d.hoverOverlay:`transparent`},f&&{justifyContent:`center`,paddingHorizontal:0},a],...o,children:[t&&(0,u.jsx)(l.View,{style:{flexShrink:0,opacity:n?1:.85},children:t}),!f&&(0,u.jsx)(z,{numberOfLines:1,ellipsizeMode:`tail`,style:{flex:1,fontSize:d.fontSizeBody,fontWeight:String(n?d.fontWeightSemibold:d.fontWeightNormal),color:n?d.accentFgColor:d.sidebarFgColor},children:e}),!f&&r&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:r})]})}),zn=(0,c.forwardRef)(function({title:e,icon:t,collapsible:n=!1,defaultOpen:r=!0,open:i,onOpenChange:a,children:o,style:s,...d},f){let p=j(),[m,h]=(0,c.useState)(r),g=i!==void 0,_=g?i:m,v=In(),y=(0,c.useContext)(Q),b=e=>{g||h(e),a?.(e)};if((0,c.useImperativeHandle)(f,()=>({expand:()=>b(!0),collapse:()=>b(!1),toggle:()=>b(!_)})),!(y.length===0||Nn(o,y)>0))return null;let x=v?!0:_,S=!v&&!!(e||t),C=(e||t)&&(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:p.space1,paddingHorizontal:p.space1,paddingVertical:2,marginTop:4,marginBottom:2},children:[t&&(0,u.jsx)(l.View,{style:{flexShrink:0,opacity:.7},children:t}),e&&(0,u.jsx)(z,{variant:`caption-heading`,color:`dim`,style:{flex:1},numberOfLines:1,children:e}),n&&(0,u.jsx)(z,{variant:`caption`,color:`dim`,style:{flexShrink:0},children:_?`▾`:`▸`})]});return(0,u.jsxs)(l.View,{style:s,...d,children:[S&&(n?(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityState:{expanded:_},accessibilityLabel:e,onPress:()=>b(!_),children:C}):C),(0,u.jsx)(l.View,{accessible:!0,accessibilityRole:`list`,style:{display:x?`flex`:`none`,gap:2},children:o})]})}),Bn=({variant:e=`rect`,width:t=`100%`,height:n=16,size:r=40,lines:i=3,animated:a=!0,style:o,...s})=>{let d=j(),f=R(),p=(0,c.useRef)(new l.Animated.Value(1)).current,m=a&&!f;if((0,c.useEffect)(()=>{if(!m){p.setValue(1);return}let[e,t,n,r]=d.easingDefault,i=l.Easing.bezier(e,t,n,r),a=l.Animated.loop(l.Animated.sequence([l.Animated.timing(p,{toValue:.5,duration:700,easing:i,useNativeDriver:!0}),l.Animated.timing(p,{toValue:1,duration:700,easing:i,useNativeDriver:!0})]));return a.start(),()=>a.stop()},[m,p,d.easingDefault]),e===`text`){let e=Math.max(1,Math.floor(i));return(0,u.jsx)(l.View,{accessible:!1,style:[{gap:8},o],...s,children:Array.from({length:e},(t,n)=>(0,u.jsx)(l.Animated.View,{style:{width:n===e-1?`60%`:`100%`,height:12,borderRadius:d.radiusPill,backgroundColor:d.skeletonBaseColor,opacity:p}},n))})}let h=e===`circle`?{width:r,height:r,borderRadius:r/2}:{width:t,height:n,borderRadius:d.radiusMd};return(0,u.jsx)(l.Animated.View,{accessible:!1,style:[h,{backgroundColor:d.skeletonBaseColor,opacity:p},o],...s})},Vn=6,Hn=22,Un=4;function $(e,t,n){return Math.min(n,Math.max(t,e))}function Wn(e,t,n,r){return parseFloat((Math.round((e-t)/n)*n+t).toFixed(r))}function Gn(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}var Kn=({value:e,onChange:t,min:n=0,max:r=100,step:i=1,disabled:a=!1,marks:o,accessibilityLabel:s,style:d,onLayout:f,...p})=>{let m=j(),[h,g]=(0,c.useState)(0),[_,v]=(0,c.useState)({}),y=Gn(i),b=$(e,n,r),x=(b-n)/(r-n)*100,S=(0,c.useCallback)(e=>{g(e.nativeEvent.layout.width),f?.(e)},[f]),C=(0,c.useCallback)(e=>{a||h<=0||t($(Wn(e/h*(r-n)+n,n,i,y),n,r))},[a,h,n,r,i,y,t]),w=(0,c.useMemo)(()=>l.PanResponder.create({onStartShouldSetPanResponder:()=>!a,onMoveShouldSetPanResponder:()=>!a,onPanResponderGrant:e=>C(e.nativeEvent.locationX),onPanResponderMove:e=>C(e.nativeEvent.locationX)}),[a,C]),T=(0,c.useCallback)(o=>{if(!a)switch(o.nativeEvent.actionName){case`increment`:t($(Wn(e+i,n,i,y),n,r));break;case`decrement`:t($(Wn(e-i,n,i,y),n,r));break}},[a,e,i,n,r,y,t]),E=o&&o.length>0,D=E&&o.some(e=>e.label),O=x/100*h-Hn/2;return(0,u.jsxs)(l.View,{style:[{width:`100%`,paddingTop:10,paddingBottom:D?0:10},d],...p,children:[(0,u.jsxs)(l.View,{onLayout:S,accessible:!0,accessibilityRole:`adjustable`,accessibilityLabel:s,accessibilityValue:{min:n,max:r,now:b},accessibilityState:{disabled:a},accessibilityActions:[{name:`increment`,label:`increment`},{name:`decrement`,label:`decrement`}],onAccessibilityAction:T,style:{justifyContent:`center`,height:Hn,opacity:a?m.opacityDisabled:1},...w.panHandlers,children:[(0,u.jsx)(l.View,{pointerEvents:`none`,style:{width:`100%`,height:Vn,borderRadius:m.radiusPill,backgroundColor:m.cardShadeColor,overflow:`hidden`},children:(0,u.jsx)(l.View,{style:{height:`100%`,width:`${x}%`,borderRadius:m.radiusPill,backgroundColor:m.accentBgColor}})}),(0,u.jsx)(l.View,{pointerEvents:`none`,style:{position:`absolute`,left:O,width:Hn,height:Hn,borderRadius:m.radiusPill,backgroundColor:m.accentBgColor,borderWidth:2,borderColor:m.windowBgColor,shadowColor:`#000`,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:3}}),E&&o.map(e=>(0,u.jsx)(l.View,{pointerEvents:`none`,importantForAccessibility:`no`,style:{position:`absolute`,left:($(e.value,n,r)-n)/(r-n)*100/100*h-Un/2,width:Un,height:Un,borderRadius:Un/2,backgroundColor:m.windowBgColor}},e.value))]}),D&&(0,u.jsx)(l.View,{importantForAccessibility:`no`,style:{position:`relative`,width:`100%`,height:20,marginTop:6},children:o.map(e=>(0,u.jsx)(l.Text,{numberOfLines:1,onLayout:t=>{let{layout:{width:n}}=t.nativeEvent;v(t=>t[e.value]===n?t:{...t,[e.value]:n})},style:{position:`absolute`,left:($(e.value,n,r)-n)/(r-n)*100/100*h-(_[e.value]??0)/2,fontFamily:m.fontFamily,fontSize:m.fontSizeCaption,color:m.windowFgColor,opacity:m.opacityDim},children:e.label},e.value))})]})},qn=36;function Jn(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Yn(e,t,n){return Math.min(n,Math.max(t,e))}function Xn(e,t,n,r){let i=n-t+r;return((e-t)%i+i)%i+t}var Zn=({value:e,onChange:t,min:n=0,max:r=100,step:i=1,decimals:a,wrap:o=!1,format:s,disabled:d=!1,accessibilityLabel:f,style:p})=>{let m=j(),h=a??Jn(i),g=(0,c.useCallback)(e=>{let a=o?Xn(e,n,r,i):Yn(e,n,r);t(parseFloat(a.toFixed(h)))},[t,n,r,i,h,o]),_=s?s(e):e.toFixed(h),v=(0,c.useCallback)(t=>{if(!d)switch(t.nativeEvent.actionName){case`increment`:g(e+i);break;case`decrement`:g(e-i);break}},[d,e,i,g]),y=d||!o&&e<=n,b=d||!o&&e>=r;return(0,u.jsxs)(l.View,{accessible:!0,accessibilityRole:`adjustable`,accessibilityLabel:f,accessibilityValue:{min:n,max:r,now:e,text:s?_:void 0},accessibilityState:{disabled:d},accessibilityActions:[{name:`increment`,label:`increment`},{name:`decrement`,label:`decrement`}],onAccessibilityAction:v,style:[{flexDirection:`row`,alignSelf:`flex-start`,alignItems:`center`,borderWidth:1,borderColor:m.cardShadeColor,borderRadius:m.radiusMd,backgroundColor:m.viewBgColor,overflow:`hidden`,opacity:d?m.opacityDisabled:1},p],children:[(0,u.jsx)(l.Pressable,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,disabled:y,onPress:()=>g(e-i),style:({pressed:e})=>({width:qn,height:qn,alignItems:`center`,justifyContent:`center`,borderRightWidth:1,borderRightColor:m.cardShadeColor,backgroundColor:e&&!y?m.activeOverlay:`transparent`,opacity:y?m.opacityDisabled:1}),children:(0,u.jsx)(l.Text,{style:{fontSize:17,lineHeight:20,color:m.viewFgColor},children:`−`})}),(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{minWidth:56,textAlign:`center`,paddingHorizontal:m.space2,fontFamily:m.fontFamily,fontSize:m.fontSizeBody,fontVariant:[`tabular-nums`],color:m.viewFgColor},children:_}),(0,u.jsx)(l.Pressable,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,disabled:b,onPress:()=>g(e+i),style:({pressed:e})=>({width:qn,height:qn,alignItems:`center`,justifyContent:`center`,borderLeftWidth:1,borderLeftColor:m.cardShadeColor,backgroundColor:e&&!b?m.activeOverlay:`transparent`,opacity:b?m.opacityDisabled:1}),children:(0,u.jsx)(l.Text,{style:{fontSize:17,lineHeight:20,color:m.viewFgColor},children:`+`})})]})},Qn={sm:{dimension:16,borderWidth:2},md:{dimension:24,borderWidth:2.5},lg:{dimension:36,borderWidth:3}},$n=({size:e=`md`,label:t=`Loading…`,style:n,...r})=>{let i=j(),a=D(),o=R(),s=(0,c.useRef)(new l.Animated.Value(0)).current;(0,c.useEffect)(()=>{s.setValue(0);let e=l.Animated.loop(l.Animated.timing(s,{toValue:1,duration:o?2e3:750,easing:l.Easing.linear,useNativeDriver:!0}));return e.start(),()=>e.stop()},[s,o]);let d=s.interpolate({inputRange:[0,1],outputRange:[`0deg`,`360deg`]}),{dimension:f,borderWidth:p}=Qn[e],m=a===`dark`?`rgba(255, 255, 255, 0.15)`:`rgba(0, 0, 0, 0.15)`;return(0,u.jsx)(l.Animated.View,{accessible:!0,accessibilityRole:`progressbar`,accessibilityLabel:t||void 0,accessibilityElementsHidden:t===``,importantForAccessibility:t===``?`no-hide-descendants`:`yes`,style:[{width:f,height:f,borderRadius:f/2,borderWidth:p,borderColor:m,borderTopColor:i.accentColor,transform:[{rotate:d}]},n],...r})},er=e=>Math.round(36*.5*e),tr=(0,c.forwardRef)(function({icon:e,iconNode:t,title:n,description:r,children:i,compact:a=!1,style:o,...s},c){let d=j(),f=D(),p=a?64:128,m=e?(0,u.jsx)(B,{icon:e,width:p,height:p}):t,h=a?d.fontSizeCaption:d.fontSizeBody;return(0,u.jsxs)(l.View,{ref:c,style:[{width:`100%`,alignItems:`center`,justifyContent:`center`,paddingVertical:a?d.space3:d.space6,paddingHorizontal:a?d.space3:d.space4},o],...s,children:[m?(0,u.jsx)(l.View,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{alignItems:`center`,justifyContent:`center`,marginBottom:a?d.space2:d.space4,opacity:f===`dark`?.45:.55},children:m}):null,(0,u.jsx)(z,{variant:a?`title-4`:`title-1`,style:{textAlign:`center`},children:n}),r?(0,u.jsx)(z,{variant:a?`caption`:`body`,color:`dim`,style:{textAlign:`center`,maxWidth:er(h),marginTop:a?d.space1:d.space2},children:r}):null,i?(0,u.jsx)(dt,{justify:`center`,childSpacing:a?d.space1:d.space2,style:{marginTop:a?d.space2:d.space4},children:i}):null]})}),nr=56,rr=28,ir=20,ar=3,or=28,sr=(0,c.forwardRef)(function({value:e,onValueChange:t,disabled:n,style:r,...i},a){let o=j(),s=D(),d=k(),f=(0,c.useRef)(new l.Animated.Value(+!!e)).current,p=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(p.current){p.current=!1;return}let[t,n,r,i]=o.easingDefault;l.Animated.timing(f,{toValue:+!!e,duration:o.durationFast,easing:l.Easing.bezier(t,n,r,i),useNativeDriver:!1}).start()},[e,f,o.durationFast,o.easingDefault]);let m=s===`dark`?o.dark2:o.light4,h=s===`dark`?o.light3:`#fff`,g=f.interpolate({inputRange:[0,1],outputRange:[m,o.accentBgColor]}),_=f.interpolate({inputRange:[0,1],outputRange:[o.borderSubtle,o.accentBgColor]});return(0,u.jsx)(l.Pressable,{ref:a,disabled:n,accessibilityRole:`switch`,accessibilityState:{checked:e,disabled:!!n},onPress:()=>t?.(!e),style:[{opacity:n?o.opacityDisabled:1},r],...i,children:(0,u.jsx)(l.Animated.View,{style:{width:nr,height:rr,borderRadius:o.radiusPill,borderWidth:d===`more`?2:1,borderColor:_,backgroundColor:g},children:(0,u.jsx)(l.Animated.View,{style:[{position:`absolute`,top:ar,left:ar,width:ir,height:ir,borderRadius:o.radiusPill,backgroundColor:e?`#fff`:h,transform:[{translateX:f.interpolate({inputRange:[0,1],outputRange:[0,or]})}]},d!==`more`&&{shadowColor:`#000`,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:2}]})})})}),cr=(0,c.forwardRef)(function({children:e,inline:t=!1,accessibilityLabel:n=`Tabs`,style:r,...i},a){let o=j();return(0,u.jsx)(l.ScrollView,{ref:a,horizontal:!0,showsHorizontalScrollIndicator:!1,contentInsetAdjustmentBehavior:`never`,accessible:!0,accessibilityRole:`tablist`,accessibilityLabel:n,style:[{flexGrow:0,backgroundColor:t?`transparent`:o.headerbarBgColor,borderBottomWidth:+!t,borderBottomColor:o.headerbarBorderColor},r],contentContainerStyle:{flexDirection:`row`,alignItems:`stretch`,paddingHorizontal:o.space1,gap:2,minHeight:40},...i,children:e})}),lr=(0,c.forwardRef)(function({label:e,icon:t,active:n=!1,onClose:r,closeLabel:i=`Close tab`,count:a,disabled:o,...s},c){let d=j();return(0,u.jsxs)(l.Pressable,{ref:c,disabled:o,accessibilityRole:`tab`,accessibilityState:{selected:n,disabled:!!o},accessibilityLabel:e,style:({pressed:e})=>({position:`relative`,flexDirection:`row`,alignItems:`center`,gap:d.space1,paddingHorizontal:d.space2,minWidth:80,maxWidth:200,minHeight:40,borderRadius:d.radiusMd,opacity:o?d.opacityDisabled:n?1:.7,backgroundColor:n?d.activeOverlay:e?d.hoverOverlay:`transparent`}),...s,children:[t&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:t}),(0,u.jsx)(l.Text,{numberOfLines:1,ellipsizeMode:`tail`,style:{fontFamily:d.fontFamily,fontSize:d.fontSizeBody,fontWeight:String(n?d.fontWeightSemibold:d.fontWeightNormal),color:d.headerbarFgColor},children:e}),a!==void 0&&(0,u.jsx)(l.View,{style:{flexShrink:0,minWidth:18,height:18,paddingHorizontal:5,borderRadius:9,alignItems:`center`,justifyContent:`center`,backgroundColor:d.accentBgColor},children:(0,u.jsx)(l.Text,{style:{fontFamily:d.fontFamily,fontSize:11,fontWeight:`600`,color:d.accentFgColor},children:a>99?`99+`:a})}),r&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:i,hitSlop:8,onPress:r,style:({pressed:e})=>({flexShrink:0,width:18,height:18,alignItems:`center`,justifyContent:`center`,borderRadius:d.radiusSm,backgroundColor:e?d.activeOverlay:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontFamily:d.fontFamily,fontSize:15,lineHeight:16,color:d.headerbarFgColor},children:`×`})}),n&&(0,u.jsx)(l.View,{pointerEvents:`none`,style:{position:`absolute`,bottom:0,left:d.space2,right:d.space2,height:2,borderRadius:1,backgroundColor:d.accentBgColor}})]})}),ur=(0,c.forwardRef)(function({active:e=!1,style:t,children:n,...r},i){return(0,u.jsx)(l.View,{ref:i,style:[{display:e?`flex`:`none`},t],...r,children:n})});function dr(e,t){let n=e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);if(!n)return e;let[,r,i,a,o]=n,s=(o?Number.parseFloat(o):1)*t;return`rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`}var fr=(0,c.forwardRef)(function({label:e,helperText:t,error:n,style:r,inputStyle:i,editable:a=!0,onFocus:o,onBlur:s,accessibilityLabel:d,accessibilityHint:f,...p},m){let h=j(),g=k(),[_,v]=(0,c.useState)(!1),y=!a,b=n??t,x=n?h.errorColor:_?h.accentColor:h.borderSubtle;return(0,u.jsxs)(l.View,{style:[{gap:h.space1,opacity:y?h.opacityDisabled:1},r],children:[e&&(0,u.jsx)(z,{variant:`body`,style:{fontWeight:String(h.fontWeightSemibold)},children:e}),(0,u.jsx)(l.TextInput,{ref:m,editable:a,accessibilityLabel:d??e,accessibilityHint:f??b,placeholderTextColor:dr(h.windowFgColor,h.opacityDim),onFocus:e=>{v(!0),o?.(e)},onBlur:e=>{v(!1),s?.(e)},style:[{width:`100%`,paddingVertical:8,paddingHorizontal:h.space2,fontFamily:h.fontFamily,fontSize:h.fontSizeBody,lineHeight:Math.round(h.fontSizeBody*h.lineHeightBody),color:h.viewFgColor,backgroundColor:h.viewBgColor,borderRadius:h.radiusMd,borderWidth:g===`more`?2:1,borderColor:x},i],...p}),b&&(0,u.jsx)(z,{variant:`caption`,style:{color:n?h.errorColor:h.windowFgColor,opacity:n?1:h.opacityDim},children:b})]})}),pr=l.Animated.createAnimatedComponent(l.Pressable),mr=({title:e,duration:t=3e3,onDismiss:n,actionLabel:r,onAction:i,dismissible:a=!1,style:o,...s})=>{let d=j(),f=D(),p=R(),m=(0,c.useRef)(null),h=(0,c.useRef)(t),g=(0,c.useRef)(0),_=(0,c.useRef)(new l.Animated.Value(+!!p)).current,v=(0,c.useCallback)(()=>{m.current&&=(clearTimeout(m.current),null)},[]),y=(0,c.useCallback)(e=>{e<=0||!n||(v(),g.current=Date.now(),m.current=setTimeout(()=>n(),e))},[n,v]);(0,c.useEffect)(()=>(t>0&&(h.current=t,y(t)),v),[t,y,v]),(0,c.useEffect)(()=>{if(p){_.setValue(1);return}let[e,t,n,r]=d.easingDefault;l.Animated.timing(_,{toValue:1,duration:d.durationNormal,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!0}).start()},[p,_,d.durationNormal,d.easingDefault]);let b=()=>{if(m.current){let e=Date.now()-g.current;h.current=Math.max(0,h.current-e),v()}},x=()=>{y(h.current)},S=()=>{v(),i?.(),n?.()},C=f===`dark`?{shadowOpacity:.4,shadowRadius:12,elevation:6}:{shadowOpacity:.15,shadowRadius:8,elevation:4};return(0,u.jsxs)(pr,{accessible:!0,accessibilityRole:`alert`,accessibilityLiveRegion:`polite`,onPressIn:b,onPressOut:x,style:[{flexDirection:`row`,alignItems:`center`,gap:d.space2,paddingVertical:10,paddingRight:d.space2,paddingLeft:d.space3,minHeight:44,maxWidth:480,minWidth:240,backgroundColor:d.cardBgColor,borderRadius:d.radiusLg,shadowColor:`#000`,shadowOffset:{width:0,height:2},opacity:_,transform:[{translateY:_.interpolate({inputRange:[0,1],outputRange:[12,0]})},{scale:_.interpolate({inputRange:[0,1],outputRange:[.96,1]})}],...C},o],...s,children:[(0,u.jsx)(z,{variant:`body`,style:{flex:1,minWidth:0},numberOfLines:typeof e==`string`?2:void 0,children:e}),(r||a)&&(0,u.jsxs)(u.Fragment,{children:[r&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:r,onPress:S,style:({pressed:e})=>({paddingVertical:4,paddingHorizontal:d.space1,borderRadius:d.radiusSm,backgroundColor:e?d.activeOverlay:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontFamily:d.fontFamily,fontSize:d.fontSizeBody,fontWeight:String(d.fontWeightSemibold),color:d.accentColor},children:r})}),a&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Dismiss`,hitSlop:4,onPress:()=>{v(),n?.()},style:({pressed:e})=>({width:28,height:28,alignItems:`center`,justifyContent:`center`,borderRadius:d.radiusSm,opacity:e?1:.55,backgroundColor:e?d.activeOverlay:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontSize:d.fontSizeBody,color:d.windowFgColor},children:`×`})})]})]})},hr=({position:e=`bottom`,children:t,style:n,...r})=>{let i=j();return(0,u.jsx)(l.View,{pointerEvents:`box-none`,accessibilityLabel:`Notifications`,style:[{position:`absolute`,left:0,right:0,alignItems:`center`,gap:i.space1,zIndex:9999},e===`top`?{top:i.space4}:{bottom:i.space4},n],...r,children:t})},gr=(0,c.createContext)(null);function _r(){let e=(0,c.useContext)(gr);if(!e)throw Error(`ToggleGroupItem must be used inside ToggleGroup`);return e}var vr=(0,c.forwardRef)(function({value:e,onValueChange:t,accessibilityLabel:n=`Options`,children:r,style:i,...a},o){let s=j(),d=D(),f=(0,c.useMemo)(()=>({value:e,onValueChange:t}),[e,t]);return(0,u.jsx)(gr.Provider,{value:f,children:(0,u.jsx)(l.View,{ref:o,accessibilityRole:`radiogroup`,accessibilityLabel:n,style:[{alignSelf:`flex-start`,flexDirection:`row`,alignItems:`stretch`,gap:2,padding:2,borderRadius:s.radiusMd,borderWidth:1,borderColor:d===`dark`?`rgba(255, 255, 255, 0.12)`:s.light3,backgroundColor:s.cardBgColor},i],...a,children:r})})}),yr=(0,c.forwardRef)(function({name:e,label:t,icon:n,accessibilityLabel:r,disabled:i=!1,...a},o){let s=j(),c=D(),{value:d,onValueChange:f}=_r(),p=d===e,m=!!n&&!t,h=c===`dark`;return(0,u.jsxs)(l.Pressable,{ref:o,disabled:i,onPress:()=>f(e),accessibilityRole:`radio`,accessibilityState:{checked:p,disabled:i},accessibilityLabel:r??t,style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:s.space1,minHeight:28,minWidth:m?28:void 0,paddingVertical:4,paddingHorizontal:m?4:s.space2,borderRadius:s.radiusMd-2,borderWidth:1,borderColor:p?`${s.accentBgColor}${h?`80`:`66`}`:`transparent`,backgroundColor:p?`${s.accentBgColor}${h?`40`:`26`}`:e&&!i?s.activeOverlay:`transparent`,opacity:i?s.opacityDisabled:1}),...a,children:[n?(0,u.jsx)(l.View,{style:{flexShrink:0},children:(0,u.jsx)(B,{icon:n,size:`md`})}):null,t?(0,u.jsx)(l.Text,{numberOfLines:1,style:{fontFamily:s.fontFamily,fontSize:s.fontSizeBody,fontWeight:String(p?s.fontWeightSemibold:s.fontWeightNormal),color:p?s.accentColor:s.windowFgColor},children:t}):null]})}),br=(0,c.forwardRef)(function({children:e,accessibilityLabel:t=`View switcher`,style:n,...r},i){let a=j(),o=D();return(0,u.jsxs)(l.View,{ref:i,accessible:!0,accessibilityRole:`radiogroup`,accessibilityLabel:t,style:[{alignSelf:`flex-start`,borderRadius:a.radiusPill,overflow:`hidden`,backgroundColor:a.headerbarBgColor},n],...r,children:[(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:o===`dark`?`rgba(0, 0, 0, 0.3)`:`rgba(0, 0, 0, 0.25)`}]}),(0,u.jsx)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:2,padding:3},children:e})]})}),xr=(0,c.forwardRef)(function({label:e,icon:t,active:n=!1,disabled:r,...i},a){let o=j();return(0,u.jsxs)(l.Pressable,{ref:a,disabled:r,accessibilityRole:`radio`,accessibilityState:{checked:n,disabled:!!r},accessibilityLabel:e,style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:o.space1,paddingVertical:5,paddingHorizontal:o.space2,borderRadius:o.radiusPill-3,opacity:r?o.opacityDisabled:1,backgroundColor:n?o.headerbarBgColor:e?o.activeOverlay:`transparent`}),...i,children:[t&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:t}),(0,u.jsx)(l.Text,{style:{fontFamily:o.fontFamily,fontSize:o.fontSizeBody,fontWeight:String(n?o.fontWeightSemibold:o.fontWeightNormal),color:o.headerbarFgColor},children:e})]})});exports.ActionRow=ie,exports.AnimatedIcon=be,exports.Avatar=H,exports.AvatarGroup=Ae,exports.AvatarRotator=Pe,exports.Badge=Ie,exports.Banner=Le,exports.Bin=Re,exports.BottomSheet=Ve,exports.Box=We,exports.BoxedList=Ke,exports.Button=U,exports.Card=Ze,exports.Checkbox=$e,exports.Chip=et,exports.Clamp=nt,exports.CoachMark=ot,exports.CoachMarkTour=ct,exports.ColorPicker=ht,exports.ColorSwatch=pt,exports.ComboRow=St,exports.Dialog=wt,exports.Divider=Tt,exports.Drawer=Rt,exports.Dropdown=bt,exports.EntryRow=Bt,exports.Expander=Vt,exports.FileTypeIcon=Zt,exports.GNOME_PALETTE=mt,exports.GnomeContext=x,exports.GnomeProvider=ee,exports.HeaderBar=Qt,exports.Highlight=en,exports.Icon=B,exports.IconButton=Mt,exports.InlineViewSwitcher=cn,exports.InlineViewSwitcherItem=ln,exports.LevelBar=fn,exports.Link=pn,exports.NAMED_ACCENT_COLORS=N,exports.Overlay=hn,exports.PasswordEntryRow=gn,exports.PathBar=_n,exports.Popover=Sn,exports.PreferencesGroup=Cn,exports.ProgressBar=wn,exports.RadioButton=Dn,exports.SearchBar=kn,exports.SegmentedBar=Mn,exports.Separator=Ge,exports.Sidebar=Ln,exports.SidebarCollapsedContext=Fn,exports.SidebarFilterContext=Q,exports.SidebarItem=Rn,exports.SidebarSection=zn,exports.Skeleton=Bn,exports.Slider=Kn,exports.SpinButton=Zn,exports.Spinner=$n,exports.StatusPage=tr,exports.Switch=sr,exports.TabBar=cr,exports.TabItem=lr,exports.TabPanel=ur,exports.Text=z,exports.TextField=fr,exports.Toast=mr,exports.Toaster=hr,exports.ToggleGroup=vr,exports.ToggleGroupItem=yr,exports.Tooltip=At,exports.ViewSwitcher=br,exports.ViewSwitcherItem=xr,exports.WrapBox=dt,exports.applyAccentColor=I,exports.darkRawTokens=v,exports.darkTheme=m,exports.highContrastDarkRawTokens=b,exports.highContrastDarkTheme=g,exports.highContrastRawTokens=y,exports.highContrastTheme=h,exports.lightRawTokens=_,exports.lightTheme=p,exports.resolveColorScheme=P,exports.resolveContrast=F,exports.resolveGnomeTheme=M,exports.useAccentColor=A,exports.useColorScheme=E,exports.useContrast=O,exports.useDateTimeFormatter=T,exports.useDir=C,exports.useGnomeTheme=j,exports.useLocale=S,exports.useNumberFormatter=w,exports.useReducedMotion=R,exports.useResolvedColorScheme=D,exports.useResolvedContrast=k,exports.useSidebarCollapsed=In;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("react"),l=require("react-native"),u=require("react/jsx-runtime"),d=require("@gnome-ui/icons"),f=require("react-native-svg");f=s(f,1);var p={accentBgColor:`#3584e4`,accentColor:`#3584e4`,accentFgColor:`#fff`,activeOverlay:`rgba(0, 0, 0, 0.12)`,blockquoteBorderWidth:3,blue1:`#99c1f1`,blue2:`#62a0ea`,blue3:`#3584e4`,blue4:`#1c71d8`,blue5:`#1a5fb4`,borderSubtle:`rgba(0, 0, 0, 0.15)`,brown1:`#cdab8f`,brown2:`#b5835a`,brown3:`#986a44`,brown4:`#865e3c`,brown5:`#63452c`,cardBgColor:`#fff`,cardFgColor:`rgba(0, 0, 0, 0.8)`,cardShadeColor:`rgba(0, 0, 0, 0.12)`,dark1:`#77767b`,dark2:`#5e5c64`,dark3:`#3d3846`,dark4:`#241f31`,dark5:`#000`,destructiveBgColor:`#e01b24`,destructiveColor:`#e01b24`,destructiveFgColor:`#fff`,dialogBackdropBlur:4,dialogBackdropColor:`rgba(0, 0, 0, 0.5)`,dialogBgColor:`#fafafa`,dialogFgColor:`rgba(0, 0, 0, 0.8)`,dividerColor:`rgba(0, 0, 0, 0.07)`,durationFast:100,durationNormal:200,durationSlow:400,easingDefault:[.25,.46,.45,.94],errorBgColor:`#e01b24`,errorColor:`#e01b24`,errorFgColor:`#fff`,focusRingColor:`#3584e4`,focusRingOffset:2,focusRingWidth:3,fontFamily:`Adwaita Sans`,fontFamilyMono:`Adwaita Mono`,fontSizeBody:16,fontSizeCaption:12,fontSizeLargeTitle:36,fontSizeTitle1:30,fontSizeTitle2:24,fontSizeTitle3:20,fontSizeTitle4:18,fontWeightBold:700,fontWeightNormal:400,fontWeightSemibold:600,green1:`#8ff0a4`,green2:`#57e389`,green3:`#33d17a`,green4:`#2ec27e`,green5:`#26a269`,headerbarBgColor:`#ebebeb`,headerbarBorderColor:`rgba(0, 0, 0, 0.12)`,headerbarFgColor:`rgba(0, 0, 0, 0.8)`,headerbarShadeColor:`rgba(0, 0, 0, 0.12)`,hoverOverlay:`rgba(0, 0, 0, 0.06)`,layoutBreakpointMedium:550,layoutBreakpointNarrow:400,layoutBreakpointWide:860,layoutContentPadding:24,layoutContentPaddingCompact:12,layoutContentPaddingSpacious:36,layoutSidebarDefaultWidth:240,layoutSidebarMaxWidth:280,layoutSidebarMinWidth:180,layoutSidebarRailWidth:56,light1:`#fff`,light2:`#f6f5f4`,light3:`#deddda`,light4:`#c0bfbc`,light5:`#9a9996`,lineHeightBody:1.5,lineHeightHeading:1.2,lineHeightTitle:1.2,newBgColor:`#9141ac`,newColor:`#9141ac`,newFgColor:`#fff`,opacityBorder:.15,opacityDim:.55,opacityDisabled:.5,orange1:`#ffbe6f`,orange2:`#ffa348`,orange3:`#ff7800`,orange4:`#e66100`,orange5:`#c64600`,popoverBgColor:`#fff`,popoverFgColor:`rgba(0, 0, 0, 0.8)`,purple1:`#dc8add`,purple2:`#c061cb`,purple3:`#9141ac`,purple4:`#813d9c`,purple5:`#613583`,radiusLg:12,radiusMd:8,radiusPill:9999,radiusSm:4,radiusXl:15,red1:`#f66151`,red2:`#ed333b`,red3:`#e01b24`,red4:`#c01c28`,red5:`#a51d2d`,sidebarBgColor:`#ebebeb`,sidebarFgColor:`rgba(0, 0, 0, 0.8)`,skeletonBaseColor:`rgba(0, 0, 0, 0.09)`,skeletonHighlightColor:`rgba(255, 255, 255, 0.55)`,space1:6,space2:12,space3:18,space4:24,space5:36,space6:48,successBgColor:`#2ec27e`,successColor:`#2ec27e`,successFgColor:`#fff`,viewBgColor:`#fff`,viewFgColor:`rgba(0, 0, 0, 0.8)`,warningBgColor:`#f6d32d`,warningColor:`#e5a50a`,warningFgColor:`rgba(0, 0, 0, 0.8)`,windowBgColor:`#fafafa`,windowFgColor:`rgba(0, 0, 0, 0.8)`,yellow1:`#f9f06b`,yellow2:`#f8e45c`,yellow3:`#f6d32d`,yellow4:`#f5c211`,yellow5:`#e5a50a`},m={accentBgColor:`#3584e4`,accentColor:`#62a0ea`,accentFgColor:`#fff`,activeOverlay:`rgba(255, 255, 255, 0.14)`,blockquoteBorderWidth:3,blue1:`#99c1f1`,blue2:`#62a0ea`,blue3:`#3584e4`,blue4:`#1c71d8`,blue5:`#1a5fb4`,borderSubtle:`rgba(255, 255, 255, 0.15)`,brown1:`#cdab8f`,brown2:`#b5835a`,brown3:`#986a44`,brown4:`#865e3c`,brown5:`#63452c`,cardBgColor:`#383838`,cardFgColor:`rgba(255, 255, 255, 0.87)`,cardShadeColor:`rgba(255, 255, 255, 0.12)`,dark1:`#77767b`,dark2:`#5e5c64`,dark3:`#3d3846`,dark4:`#241f31`,dark5:`#000`,destructiveBgColor:`#e01b24`,destructiveColor:`#e01b24`,destructiveFgColor:`#fff`,dialogBackdropBlur:4,dialogBackdropColor:`rgba(0, 0, 0, 0.65)`,dialogBgColor:`#242424`,dialogFgColor:`rgba(255, 255, 255, 0.87)`,dividerColor:`rgba(255, 255, 255, 0.07)`,durationFast:100,durationNormal:200,durationSlow:400,easingDefault:[.25,.46,.45,.94],errorBgColor:`#e01b24`,errorColor:`#e01b24`,errorFgColor:`#fff`,focusRingColor:`#62a0ea`,focusRingOffset:2,focusRingWidth:3,fontFamily:`Adwaita Sans`,fontFamilyMono:`Adwaita Mono`,fontSizeBody:16,fontSizeCaption:12,fontSizeLargeTitle:36,fontSizeTitle1:30,fontSizeTitle2:24,fontSizeTitle3:20,fontSizeTitle4:18,fontWeightBold:700,fontWeightNormal:400,fontWeightSemibold:600,green1:`#8ff0a4`,green2:`#57e389`,green3:`#33d17a`,green4:`#2ec27e`,green5:`#26a269`,headerbarBgColor:`#303030`,headerbarBorderColor:`rgba(255, 255, 255, 0.1)`,headerbarFgColor:`rgba(255, 255, 255, 0.87)`,headerbarShadeColor:`rgba(0, 0, 0, 0.36)`,hoverOverlay:`rgba(255, 255, 255, 0.08)`,layoutBreakpointMedium:550,layoutBreakpointNarrow:400,layoutBreakpointWide:860,layoutContentPadding:24,layoutContentPaddingCompact:12,layoutContentPaddingSpacious:36,layoutSidebarDefaultWidth:240,layoutSidebarMaxWidth:280,layoutSidebarMinWidth:180,layoutSidebarRailWidth:56,light1:`#fff`,light2:`#f6f5f4`,light3:`#deddda`,light4:`#c0bfbc`,light5:`#9a9996`,lineHeightBody:1.5,lineHeightHeading:1.2,lineHeightTitle:1.2,newBgColor:`#9141ac`,newColor:`#9141ac`,newFgColor:`#fff`,opacityBorder:.15,opacityDim:.55,opacityDisabled:.5,orange1:`#ffbe6f`,orange2:`#ffa348`,orange3:`#ff7800`,orange4:`#e66100`,orange5:`#c64600`,popoverBgColor:`#383838`,popoverFgColor:`rgba(255, 255, 255, 0.87)`,purple1:`#dc8add`,purple2:`#c061cb`,purple3:`#9141ac`,purple4:`#813d9c`,purple5:`#613583`,radiusLg:12,radiusMd:8,radiusPill:9999,radiusSm:4,radiusXl:15,red1:`#f66151`,red2:`#ed333b`,red3:`#e01b24`,red4:`#c01c28`,red5:`#a51d2d`,sidebarBgColor:`#303030`,sidebarFgColor:`rgba(255, 255, 255, 0.87)`,skeletonBaseColor:`rgba(255, 255, 255, 0.12)`,skeletonHighlightColor:`rgba(255, 255, 255, 0.18)`,space1:6,space2:12,space3:18,space4:24,space5:36,space6:48,successBgColor:`#2ec27e`,successColor:`#2ec27e`,successFgColor:`#fff`,viewBgColor:`#1e1e1e`,viewFgColor:`rgba(255, 255, 255, 0.87)`,warningBgColor:`#f6d32d`,warningColor:`#e5a50a`,warningFgColor:`rgba(0, 0, 0, 0.8)`,windowBgColor:`#242424`,windowFgColor:`rgba(255, 255, 255, 0.87)`,yellow1:`#f9f06b`,yellow2:`#f8e45c`,yellow3:`#f6d32d`,yellow4:`#f5c211`,yellow5:`#e5a50a`},h={accentBgColor:`#1a5fb4`,accentColor:`#1a5fb4`,accentFgColor:`#fff`,activeOverlay:`rgba(0, 0, 0, 0.22)`,blockquoteBorderWidth:3,blue1:`#99c1f1`,blue2:`#62a0ea`,blue3:`#3584e4`,blue4:`#1c71d8`,blue5:`#1a5fb4`,borderSubtle:`rgba(0, 0, 0, 0.5)`,brown1:`#cdab8f`,brown2:`#b5835a`,brown3:`#986a44`,brown4:`#865e3c`,brown5:`#63452c`,cardBgColor:`#fff`,cardFgColor:`rgba(0, 0, 0, 0.8)`,cardShadeColor:`rgba(0, 0, 0, 0.12)`,dark1:`#77767b`,dark2:`#5e5c64`,dark3:`#3d3846`,dark4:`#241f31`,dark5:`#000`,destructiveBgColor:`#a51d2d`,destructiveColor:`#a51d2d`,destructiveFgColor:`#fff`,dialogBackdropBlur:4,dialogBackdropColor:`rgba(0, 0, 0, 0.5)`,dialogBgColor:`#fafafa`,dialogFgColor:`rgba(0, 0, 0, 0.8)`,dividerColor:`rgba(0, 0, 0, 0.2)`,durationFast:100,durationNormal:200,durationSlow:400,easingDefault:[.25,.46,.45,.94],errorBgColor:`#a51d2d`,errorColor:`#a51d2d`,errorFgColor:`#fff`,focusRingColor:`#1a5fb4`,focusRingOffset:2,focusRingWidth:3,fontFamily:`Adwaita Sans`,fontFamilyMono:`Adwaita Mono`,fontSizeBody:16,fontSizeCaption:12,fontSizeLargeTitle:36,fontSizeTitle1:30,fontSizeTitle2:24,fontSizeTitle3:20,fontSizeTitle4:18,fontWeightBold:700,fontWeightNormal:400,fontWeightSemibold:600,green1:`#8ff0a4`,green2:`#57e389`,green3:`#33d17a`,green4:`#2ec27e`,green5:`#26a269`,headerbarBgColor:`#ebebeb`,headerbarBorderColor:`rgba(0, 0, 0, 0.12)`,headerbarFgColor:`rgba(0, 0, 0, 0.8)`,headerbarShadeColor:`rgba(0, 0, 0, 0.12)`,hoverOverlay:`rgba(0, 0, 0, 0.12)`,layoutBreakpointMedium:550,layoutBreakpointNarrow:400,layoutBreakpointWide:860,layoutContentPadding:24,layoutContentPaddingCompact:12,layoutContentPaddingSpacious:36,layoutSidebarDefaultWidth:240,layoutSidebarMaxWidth:280,layoutSidebarMinWidth:180,layoutSidebarRailWidth:56,light1:`#fff`,light2:`#f6f5f4`,light3:`#deddda`,light4:`#c0bfbc`,light5:`#9a9996`,lineHeightBody:1.5,lineHeightHeading:1.2,lineHeightTitle:1.2,newBgColor:`#613583`,newColor:`#613583`,newFgColor:`#fff`,opacityBorder:.4,opacityDim:.7,opacityDisabled:.6,orange1:`#ffbe6f`,orange2:`#ffa348`,orange3:`#ff7800`,orange4:`#e66100`,orange5:`#c64600`,popoverBgColor:`#fff`,popoverFgColor:`rgba(0, 0, 0, 0.8)`,purple1:`#dc8add`,purple2:`#c061cb`,purple3:`#9141ac`,purple4:`#813d9c`,purple5:`#613583`,radiusLg:12,radiusMd:8,radiusPill:9999,radiusSm:4,radiusXl:15,red1:`#f66151`,red2:`#ed333b`,red3:`#e01b24`,red4:`#c01c28`,red5:`#a51d2d`,sidebarBgColor:`#ebebeb`,sidebarFgColor:`rgba(0, 0, 0, 0.8)`,skeletonBaseColor:`rgba(0, 0, 0, 0.09)`,skeletonHighlightColor:`rgba(255, 255, 255, 0.55)`,space1:6,space2:12,space3:18,space4:24,space5:36,space6:48,successBgColor:`#26a269`,successColor:`#26a269`,successFgColor:`#fff`,viewBgColor:`#fff`,viewFgColor:`rgba(0, 0, 0, 0.8)`,warningBgColor:`#e66100`,warningColor:`#c64600`,warningFgColor:`rgba(0, 0, 0, 0.8)`,windowBgColor:`#fafafa`,windowFgColor:`rgba(0, 0, 0, 0.8)`,yellow1:`#f9f06b`,yellow2:`#f8e45c`,yellow3:`#f6d32d`,yellow4:`#f5c211`,yellow5:`#e5a50a`},g={accentBgColor:`#62a0ea`,accentColor:`#99c1f1`,accentFgColor:`#fff`,activeOverlay:`rgba(255, 255, 255, 0.22)`,blockquoteBorderWidth:3,blue1:`#99c1f1`,blue2:`#62a0ea`,blue3:`#3584e4`,blue4:`#1c71d8`,blue5:`#1a5fb4`,borderSubtle:`rgba(255, 255, 255, 0.5)`,brown1:`#cdab8f`,brown2:`#b5835a`,brown3:`#986a44`,brown4:`#865e3c`,brown5:`#63452c`,cardBgColor:`#383838`,cardFgColor:`#fff`,cardShadeColor:`rgba(255, 255, 255, 0.12)`,dark1:`#77767b`,dark2:`#5e5c64`,dark3:`#3d3846`,dark4:`#241f31`,dark5:`#000`,destructiveBgColor:`#ed333b`,destructiveColor:`#f66151`,destructiveFgColor:`#fff`,dialogBackdropBlur:4,dialogBackdropColor:`rgba(0, 0, 0, 0.65)`,dialogBgColor:`#242424`,dialogFgColor:`#fff`,dividerColor:`rgba(255, 255, 255, 0.2)`,durationFast:100,durationNormal:200,durationSlow:400,easingDefault:[.25,.46,.45,.94],errorBgColor:`#ed333b`,errorColor:`#f66151`,errorFgColor:`#fff`,focusRingColor:`#99c1f1`,focusRingOffset:2,focusRingWidth:3,fontFamily:`Adwaita Sans`,fontFamilyMono:`Adwaita Mono`,fontSizeBody:16,fontSizeCaption:12,fontSizeLargeTitle:36,fontSizeTitle1:30,fontSizeTitle2:24,fontSizeTitle3:20,fontSizeTitle4:18,fontWeightBold:700,fontWeightNormal:400,fontWeightSemibold:600,green1:`#8ff0a4`,green2:`#57e389`,green3:`#33d17a`,green4:`#2ec27e`,green5:`#26a269`,headerbarBgColor:`#303030`,headerbarBorderColor:`rgba(255, 255, 255, 0.3)`,headerbarFgColor:`#fff`,headerbarShadeColor:`rgba(0, 0, 0, 0.36)`,hoverOverlay:`rgba(255, 255, 255, 0.12)`,layoutBreakpointMedium:550,layoutBreakpointNarrow:400,layoutBreakpointWide:860,layoutContentPadding:24,layoutContentPaddingCompact:12,layoutContentPaddingSpacious:36,layoutSidebarDefaultWidth:240,layoutSidebarMaxWidth:280,layoutSidebarMinWidth:180,layoutSidebarRailWidth:56,light1:`#fff`,light2:`#f6f5f4`,light3:`#deddda`,light4:`#c0bfbc`,light5:`#9a9996`,lineHeightBody:1.5,lineHeightHeading:1.2,lineHeightTitle:1.2,newBgColor:`#c061cb`,newColor:`#dc8add`,newFgColor:`#fff`,opacityBorder:.4,opacityDim:.7,opacityDisabled:.6,orange1:`#ffbe6f`,orange2:`#ffa348`,orange3:`#ff7800`,orange4:`#e66100`,orange5:`#c64600`,popoverBgColor:`#383838`,popoverFgColor:`#fff`,purple1:`#dc8add`,purple2:`#c061cb`,purple3:`#9141ac`,purple4:`#813d9c`,purple5:`#613583`,radiusLg:12,radiusMd:8,radiusPill:9999,radiusSm:4,radiusXl:15,red1:`#f66151`,red2:`#ed333b`,red3:`#e01b24`,red4:`#c01c28`,red5:`#a51d2d`,sidebarBgColor:`#303030`,sidebarFgColor:`#fff`,skeletonBaseColor:`rgba(255, 255, 255, 0.12)`,skeletonHighlightColor:`rgba(255, 255, 255, 0.18)`,space1:6,space2:12,space3:18,space4:24,space5:36,space6:48,successBgColor:`#57e389`,successColor:`#8ff0a4`,successFgColor:`#fff`,viewBgColor:`#1e1e1e`,viewFgColor:`#fff`,warningBgColor:`#f8e45c`,warningColor:`#f9f06b`,warningFgColor:`rgba(0, 0, 0, 0.9)`,windowBgColor:`#242424`,windowFgColor:`#fff`,yellow1:`#f9f06b`,yellow2:`#f8e45c`,yellow3:`#f6d32d`,yellow4:`#f5c211`,yellow5:`#e5a50a`},_={"--gnome-accent-bg-color":`#3584e4`,"--gnome-accent-color":`#3584e4`,"--gnome-accent-fg-color":`#fff`,"--gnome-active-overlay":`rgb(0 0 0 / 0.12)`,"--gnome-blockquote-border-width":`3px`,"--gnome-blue-1":`#99c1f1`,"--gnome-blue-2":`#62a0ea`,"--gnome-blue-3":`#3584e4`,"--gnome-blue-4":`#1c71d8`,"--gnome-blue-5":`#1a5fb4`,"--gnome-border-subtle":`rgb(0 0 0 / 0.15)`,"--gnome-brown-1":`#cdab8f`,"--gnome-brown-2":`#b5835a`,"--gnome-brown-3":`#986a44`,"--gnome-brown-4":`#865e3c`,"--gnome-brown-5":`#63452c`,"--gnome-card-bg-color":`#fff`,"--gnome-card-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-card-shade-color":`rgb(0 0 0 / 0.12)`,"--gnome-dark-1":`#77767b`,"--gnome-dark-2":`#5e5c64`,"--gnome-dark-3":`#3d3846`,"--gnome-dark-4":`#241f31`,"--gnome-dark-5":`#000`,"--gnome-destructive-bg-color":`#e01b24`,"--gnome-destructive-color":`#e01b24`,"--gnome-destructive-fg-color":`#fff`,"--gnome-dialog-backdrop-blur":`4px`,"--gnome-dialog-backdrop-color":`rgb(0 0 0 / 0.5)`,"--gnome-dialog-bg-color":`#fafafa`,"--gnome-dialog-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-divider-color":`rgb(0 0 0 / 0.07)`,"--gnome-duration-fast":`100ms`,"--gnome-duration-normal":`200ms`,"--gnome-duration-slow":`400ms`,"--gnome-easing-default":`cubic-bezier(0.25, 0.46, 0.45, 0.94)`,"--gnome-error-bg-color":`#e01b24`,"--gnome-error-color":`#e01b24`,"--gnome-error-fg-color":`#fff`,"--gnome-focus-ring-color":`#3584e4`,"--gnome-focus-ring-offset":`2px`,"--gnome-focus-ring-width":`3px`,"--gnome-font-family":`"Adwaita Sans", cantarell, "Inter", system-ui, sans-serif`,"--gnome-font-family-mono":`"Adwaita Mono", "Source Code Pro", monospace`,"--gnome-font-size-body":`1rem`,"--gnome-font-size-caption":`0.75rem`,"--gnome-font-size-large-title":`2.25rem`,"--gnome-font-size-title-1":`1.875rem`,"--gnome-font-size-title-2":`1.5rem`,"--gnome-font-size-title-3":`1.25rem`,"--gnome-font-size-title-4":`1.125rem`,"--gnome-font-weight-bold":`700`,"--gnome-font-weight-normal":`400`,"--gnome-font-weight-semibold":`600`,"--gnome-green-1":`#8ff0a4`,"--gnome-green-2":`#57e389`,"--gnome-green-3":`#33d17a`,"--gnome-green-4":`#2ec27e`,"--gnome-green-5":`#26a269`,"--gnome-headerbar-bg-color":`#ebebeb`,"--gnome-headerbar-border-color":`rgb(0 0 0 / 0.12)`,"--gnome-headerbar-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-headerbar-shade-color":`rgb(0 0 0 / 0.12)`,"--gnome-hover-overlay":`rgb(0 0 0 / 0.06)`,"--gnome-layout-breakpoint-medium":`550px`,"--gnome-layout-breakpoint-narrow":`400px`,"--gnome-layout-breakpoint-wide":`860px`,"--gnome-layout-content-padding":`24px`,"--gnome-layout-content-padding-compact":`12px`,"--gnome-layout-content-padding-spacious":`36px`,"--gnome-layout-sidebar-default-width":`240px`,"--gnome-layout-sidebar-max-width":`280px`,"--gnome-layout-sidebar-min-width":`180px`,"--gnome-layout-sidebar-overlay-width":`clamp( 180px, 75%, 280px )`,"--gnome-layout-sidebar-rail-width":`56px`,"--gnome-layout-sidebar-width":`clamp( 180px, 25%, 280px )`,"--gnome-light-1":`#fff`,"--gnome-light-2":`#f6f5f4`,"--gnome-light-3":`#deddda`,"--gnome-light-4":`#c0bfbc`,"--gnome-light-5":`#9a9996`,"--gnome-line-height-body":`1.5`,"--gnome-line-height-heading":`1.2`,"--gnome-line-height-title":`1.2`,"--gnome-new-bg-color":`#9141ac`,"--gnome-new-color":`#9141ac`,"--gnome-new-fg-color":`#fff`,"--gnome-opacity-border":`0.15`,"--gnome-opacity-dim":`0.55`,"--gnome-opacity-disabled":`0.5`,"--gnome-orange-1":`#ffbe6f`,"--gnome-orange-2":`#ffa348`,"--gnome-orange-3":`#ff7800`,"--gnome-orange-4":`#e66100`,"--gnome-orange-5":`#c64600`,"--gnome-popover-bg-color":`#fff`,"--gnome-popover-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-purple-1":`#dc8add`,"--gnome-purple-2":`#c061cb`,"--gnome-purple-3":`#9141ac`,"--gnome-purple-4":`#813d9c`,"--gnome-purple-5":`#613583`,"--gnome-radius-lg":`12px`,"--gnome-radius-md":`8px`,"--gnome-radius-pill":`9999px`,"--gnome-radius-sm":`4px`,"--gnome-radius-xl":`15px`,"--gnome-red-1":`#f66151`,"--gnome-red-2":`#ed333b`,"--gnome-red-3":`#e01b24`,"--gnome-red-4":`#c01c28`,"--gnome-red-5":`#a51d2d`,"--gnome-shadow-lg":`0 3px 9px 1px rgb(0 0 0 / 0.1), 0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(28 31 31 / 0.9)`,"--gnome-shadow-md":`0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.08)`,"--gnome-shadow-sm":`0 1px 2px rgb(0 0 0 / 0.12)`,"--gnome-sidebar-bg-color":`#ebebeb`,"--gnome-sidebar-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-skeleton-base-color":`rgb(0 0 0 / 0.09)`,"--gnome-skeleton-highlight-color":`rgb(255 255 255 / 0.55)`,"--gnome-space-1":`6px`,"--gnome-space-2":`12px`,"--gnome-space-3":`18px`,"--gnome-space-4":`24px`,"--gnome-space-5":`36px`,"--gnome-space-6":`48px`,"--gnome-success-bg-color":`#2ec27e`,"--gnome-success-color":`#2ec27e`,"--gnome-success-fg-color":`#fff`,"--gnome-view-bg-color":`#fff`,"--gnome-view-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-warning-bg-color":`#f6d32d`,"--gnome-warning-color":`#e5a50a`,"--gnome-warning-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-window-bg-color":`#fafafa`,"--gnome-window-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-yellow-1":`#f9f06b`,"--gnome-yellow-2":`#f8e45c`,"--gnome-yellow-3":`#f6d32d`,"--gnome-yellow-4":`#f5c211`,"--gnome-yellow-5":`#e5a50a`},v={"--gnome-accent-bg-color":`#3584e4`,"--gnome-accent-color":`#62a0ea`,"--gnome-accent-fg-color":`#fff`,"--gnome-active-overlay":`rgb(255 255 255 / 0.14)`,"--gnome-blockquote-border-width":`3px`,"--gnome-blue-1":`#99c1f1`,"--gnome-blue-2":`#62a0ea`,"--gnome-blue-3":`#3584e4`,"--gnome-blue-4":`#1c71d8`,"--gnome-blue-5":`#1a5fb4`,"--gnome-border-subtle":`rgb(255 255 255 / 0.15)`,"--gnome-brown-1":`#cdab8f`,"--gnome-brown-2":`#b5835a`,"--gnome-brown-3":`#986a44`,"--gnome-brown-4":`#865e3c`,"--gnome-brown-5":`#63452c`,"--gnome-card-bg-color":`#383838`,"--gnome-card-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-card-shade-color":`rgb(255 255 255 / 0.12)`,"--gnome-dark-1":`#77767b`,"--gnome-dark-2":`#5e5c64`,"--gnome-dark-3":`#3d3846`,"--gnome-dark-4":`#241f31`,"--gnome-dark-5":`#000`,"--gnome-destructive-bg-color":`#e01b24`,"--gnome-destructive-color":`#e01b24`,"--gnome-destructive-fg-color":`#fff`,"--gnome-dialog-backdrop-blur":`4px`,"--gnome-dialog-backdrop-color":`rgb(0 0 0 / 0.65)`,"--gnome-dialog-bg-color":`#242424`,"--gnome-dialog-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-divider-color":`rgb(255 255 255 / 0.07)`,"--gnome-duration-fast":`100ms`,"--gnome-duration-normal":`200ms`,"--gnome-duration-slow":`400ms`,"--gnome-easing-default":`cubic-bezier(0.25, 0.46, 0.45, 0.94)`,"--gnome-error-bg-color":`#e01b24`,"--gnome-error-color":`#e01b24`,"--gnome-error-fg-color":`#fff`,"--gnome-focus-ring-color":`#62a0ea`,"--gnome-focus-ring-offset":`2px`,"--gnome-focus-ring-width":`3px`,"--gnome-font-family":`"Adwaita Sans", cantarell, "Inter", system-ui, sans-serif`,"--gnome-font-family-mono":`"Adwaita Mono", "Source Code Pro", monospace`,"--gnome-font-size-body":`1rem`,"--gnome-font-size-caption":`0.75rem`,"--gnome-font-size-large-title":`2.25rem`,"--gnome-font-size-title-1":`1.875rem`,"--gnome-font-size-title-2":`1.5rem`,"--gnome-font-size-title-3":`1.25rem`,"--gnome-font-size-title-4":`1.125rem`,"--gnome-font-weight-bold":`700`,"--gnome-font-weight-normal":`400`,"--gnome-font-weight-semibold":`600`,"--gnome-green-1":`#8ff0a4`,"--gnome-green-2":`#57e389`,"--gnome-green-3":`#33d17a`,"--gnome-green-4":`#2ec27e`,"--gnome-green-5":`#26a269`,"--gnome-headerbar-bg-color":`#303030`,"--gnome-headerbar-border-color":`rgb(255 255 255 / 0.1)`,"--gnome-headerbar-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-headerbar-shade-color":`rgb(0 0 0 / 0.36)`,"--gnome-hover-overlay":`rgb(255 255 255 / 0.08)`,"--gnome-layout-breakpoint-medium":`550px`,"--gnome-layout-breakpoint-narrow":`400px`,"--gnome-layout-breakpoint-wide":`860px`,"--gnome-layout-content-padding":`24px`,"--gnome-layout-content-padding-compact":`12px`,"--gnome-layout-content-padding-spacious":`36px`,"--gnome-layout-sidebar-default-width":`240px`,"--gnome-layout-sidebar-max-width":`280px`,"--gnome-layout-sidebar-min-width":`180px`,"--gnome-layout-sidebar-overlay-width":`clamp( 180px, 75%, 280px )`,"--gnome-layout-sidebar-rail-width":`56px`,"--gnome-layout-sidebar-width":`clamp( 180px, 25%, 280px )`,"--gnome-light-1":`#fff`,"--gnome-light-2":`#f6f5f4`,"--gnome-light-3":`#deddda`,"--gnome-light-4":`#c0bfbc`,"--gnome-light-5":`#9a9996`,"--gnome-line-height-body":`1.5`,"--gnome-line-height-heading":`1.2`,"--gnome-line-height-title":`1.2`,"--gnome-new-bg-color":`#9141ac`,"--gnome-new-color":`#9141ac`,"--gnome-new-fg-color":`#fff`,"--gnome-opacity-border":`0.15`,"--gnome-opacity-dim":`0.55`,"--gnome-opacity-disabled":`0.5`,"--gnome-orange-1":`#ffbe6f`,"--gnome-orange-2":`#ffa348`,"--gnome-orange-3":`#ff7800`,"--gnome-orange-4":`#e66100`,"--gnome-orange-5":`#c64600`,"--gnome-popover-bg-color":`#383838`,"--gnome-popover-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-purple-1":`#dc8add`,"--gnome-purple-2":`#c061cb`,"--gnome-purple-3":`#9141ac`,"--gnome-purple-4":`#813d9c`,"--gnome-purple-5":`#613583`,"--gnome-radius-lg":`12px`,"--gnome-radius-md":`8px`,"--gnome-radius-pill":`9999px`,"--gnome-radius-sm":`4px`,"--gnome-radius-xl":`15px`,"--gnome-red-1":`#f66151`,"--gnome-red-2":`#ed333b`,"--gnome-red-3":`#e01b24`,"--gnome-red-4":`#c01c28`,"--gnome-red-5":`#a51d2d`,"--gnome-shadow-lg":`0 3px 9px 1px rgb(0 0 0 / 0.1), 0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(28 31 31 / 0.9)`,"--gnome-shadow-md":`0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.08)`,"--gnome-shadow-sm":`0 1px 2px rgb(0 0 0 / 0.12)`,"--gnome-sidebar-bg-color":`#303030`,"--gnome-sidebar-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-skeleton-base-color":`rgb(255 255 255 / 0.12)`,"--gnome-skeleton-highlight-color":`rgb(255 255 255 / 0.18)`,"--gnome-space-1":`6px`,"--gnome-space-2":`12px`,"--gnome-space-3":`18px`,"--gnome-space-4":`24px`,"--gnome-space-5":`36px`,"--gnome-space-6":`48px`,"--gnome-success-bg-color":`#2ec27e`,"--gnome-success-color":`#2ec27e`,"--gnome-success-fg-color":`#fff`,"--gnome-view-bg-color":`#1e1e1e`,"--gnome-view-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-warning-bg-color":`#f6d32d`,"--gnome-warning-color":`#e5a50a`,"--gnome-warning-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-window-bg-color":`#242424`,"--gnome-window-fg-color":`rgb(255 255 255 / 0.87)`,"--gnome-yellow-1":`#f9f06b`,"--gnome-yellow-2":`#f8e45c`,"--gnome-yellow-3":`#f6d32d`,"--gnome-yellow-4":`#f5c211`,"--gnome-yellow-5":`#e5a50a`},y={"--gnome-accent-bg-color":`#1a5fb4`,"--gnome-accent-color":`#1a5fb4`,"--gnome-accent-fg-color":`#fff`,"--gnome-active-overlay":`rgb(0 0 0 / 0.22)`,"--gnome-blockquote-border-width":`3px`,"--gnome-blue-1":`#99c1f1`,"--gnome-blue-2":`#62a0ea`,"--gnome-blue-3":`#3584e4`,"--gnome-blue-4":`#1c71d8`,"--gnome-blue-5":`#1a5fb4`,"--gnome-border-subtle":`rgb(0 0 0 / 0.5)`,"--gnome-brown-1":`#cdab8f`,"--gnome-brown-2":`#b5835a`,"--gnome-brown-3":`#986a44`,"--gnome-brown-4":`#865e3c`,"--gnome-brown-5":`#63452c`,"--gnome-card-bg-color":`#fff`,"--gnome-card-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-card-shade-color":`rgb(0 0 0 / 0.12)`,"--gnome-dark-1":`#77767b`,"--gnome-dark-2":`#5e5c64`,"--gnome-dark-3":`#3d3846`,"--gnome-dark-4":`#241f31`,"--gnome-dark-5":`#000`,"--gnome-destructive-bg-color":`#a51d2d`,"--gnome-destructive-color":`#a51d2d`,"--gnome-destructive-fg-color":`#fff`,"--gnome-dialog-backdrop-blur":`4px`,"--gnome-dialog-backdrop-color":`rgb(0 0 0 / 0.5)`,"--gnome-dialog-bg-color":`#fafafa`,"--gnome-dialog-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-divider-color":`rgb(0 0 0 / 0.2)`,"--gnome-duration-fast":`100ms`,"--gnome-duration-normal":`200ms`,"--gnome-duration-slow":`400ms`,"--gnome-easing-default":`cubic-bezier(0.25, 0.46, 0.45, 0.94)`,"--gnome-error-bg-color":`#a51d2d`,"--gnome-error-color":`#a51d2d`,"--gnome-error-fg-color":`#fff`,"--gnome-focus-ring-color":`#1a5fb4`,"--gnome-focus-ring-offset":`2px`,"--gnome-focus-ring-width":`3px`,"--gnome-font-family":`"Adwaita Sans", cantarell, "Inter", system-ui, sans-serif`,"--gnome-font-family-mono":`"Adwaita Mono", "Source Code Pro", monospace`,"--gnome-font-size-body":`1rem`,"--gnome-font-size-caption":`0.75rem`,"--gnome-font-size-large-title":`2.25rem`,"--gnome-font-size-title-1":`1.875rem`,"--gnome-font-size-title-2":`1.5rem`,"--gnome-font-size-title-3":`1.25rem`,"--gnome-font-size-title-4":`1.125rem`,"--gnome-font-weight-bold":`700`,"--gnome-font-weight-normal":`400`,"--gnome-font-weight-semibold":`600`,"--gnome-green-1":`#8ff0a4`,"--gnome-green-2":`#57e389`,"--gnome-green-3":`#33d17a`,"--gnome-green-4":`#2ec27e`,"--gnome-green-5":`#26a269`,"--gnome-headerbar-bg-color":`#ebebeb`,"--gnome-headerbar-border-color":`rgb(0 0 0 / 0.12)`,"--gnome-headerbar-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-headerbar-shade-color":`rgb(0 0 0 / 0.12)`,"--gnome-hover-overlay":`rgb(0 0 0 / 0.12)`,"--gnome-layout-breakpoint-medium":`550px`,"--gnome-layout-breakpoint-narrow":`400px`,"--gnome-layout-breakpoint-wide":`860px`,"--gnome-layout-content-padding":`24px`,"--gnome-layout-content-padding-compact":`12px`,"--gnome-layout-content-padding-spacious":`36px`,"--gnome-layout-sidebar-default-width":`240px`,"--gnome-layout-sidebar-max-width":`280px`,"--gnome-layout-sidebar-min-width":`180px`,"--gnome-layout-sidebar-overlay-width":`clamp( 180px, 75%, 280px )`,"--gnome-layout-sidebar-rail-width":`56px`,"--gnome-layout-sidebar-width":`clamp( 180px, 25%, 280px )`,"--gnome-light-1":`#fff`,"--gnome-light-2":`#f6f5f4`,"--gnome-light-3":`#deddda`,"--gnome-light-4":`#c0bfbc`,"--gnome-light-5":`#9a9996`,"--gnome-line-height-body":`1.5`,"--gnome-line-height-heading":`1.2`,"--gnome-line-height-title":`1.2`,"--gnome-new-bg-color":`#613583`,"--gnome-new-color":`#613583`,"--gnome-new-fg-color":`#fff`,"--gnome-opacity-border":`0.4`,"--gnome-opacity-dim":`0.7`,"--gnome-opacity-disabled":`0.6`,"--gnome-orange-1":`#ffbe6f`,"--gnome-orange-2":`#ffa348`,"--gnome-orange-3":`#ff7800`,"--gnome-orange-4":`#e66100`,"--gnome-orange-5":`#c64600`,"--gnome-popover-bg-color":`#fff`,"--gnome-popover-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-purple-1":`#dc8add`,"--gnome-purple-2":`#c061cb`,"--gnome-purple-3":`#9141ac`,"--gnome-purple-4":`#813d9c`,"--gnome-purple-5":`#613583`,"--gnome-radius-lg":`12px`,"--gnome-radius-md":`8px`,"--gnome-radius-pill":`9999px`,"--gnome-radius-sm":`4px`,"--gnome-radius-xl":`15px`,"--gnome-red-1":`#f66151`,"--gnome-red-2":`#ed333b`,"--gnome-red-3":`#e01b24`,"--gnome-red-4":`#c01c28`,"--gnome-red-5":`#a51d2d`,"--gnome-shadow-lg":`0 3px 9px 1px rgb(0 0 0 / 0.1), 0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(28 31 31 / 0.9)`,"--gnome-shadow-md":`0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.08)`,"--gnome-shadow-sm":`0 1px 2px rgb(0 0 0 / 0.12)`,"--gnome-sidebar-bg-color":`#ebebeb`,"--gnome-sidebar-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-skeleton-base-color":`rgb(0 0 0 / 0.09)`,"--gnome-skeleton-highlight-color":`rgb(255 255 255 / 0.55)`,"--gnome-space-1":`6px`,"--gnome-space-2":`12px`,"--gnome-space-3":`18px`,"--gnome-space-4":`24px`,"--gnome-space-5":`36px`,"--gnome-space-6":`48px`,"--gnome-success-bg-color":`#26a269`,"--gnome-success-color":`#26a269`,"--gnome-success-fg-color":`#fff`,"--gnome-view-bg-color":`#fff`,"--gnome-view-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-warning-bg-color":`#e66100`,"--gnome-warning-color":`#c64600`,"--gnome-warning-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-window-bg-color":`#fafafa`,"--gnome-window-fg-color":`rgb(0 0 0 / 0.8)`,"--gnome-yellow-1":`#f9f06b`,"--gnome-yellow-2":`#f8e45c`,"--gnome-yellow-3":`#f6d32d`,"--gnome-yellow-4":`#f5c211`,"--gnome-yellow-5":`#e5a50a`},b={"--gnome-accent-bg-color":`#62a0ea`,"--gnome-accent-color":`#99c1f1`,"--gnome-accent-fg-color":`#fff`,"--gnome-active-overlay":`rgb(255 255 255 / 0.22)`,"--gnome-blockquote-border-width":`3px`,"--gnome-blue-1":`#99c1f1`,"--gnome-blue-2":`#62a0ea`,"--gnome-blue-3":`#3584e4`,"--gnome-blue-4":`#1c71d8`,"--gnome-blue-5":`#1a5fb4`,"--gnome-border-subtle":`rgb(255 255 255 / 0.5)`,"--gnome-brown-1":`#cdab8f`,"--gnome-brown-2":`#b5835a`,"--gnome-brown-3":`#986a44`,"--gnome-brown-4":`#865e3c`,"--gnome-brown-5":`#63452c`,"--gnome-card-bg-color":`#383838`,"--gnome-card-fg-color":`#fff`,"--gnome-card-shade-color":`rgb(255 255 255 / 0.12)`,"--gnome-dark-1":`#77767b`,"--gnome-dark-2":`#5e5c64`,"--gnome-dark-3":`#3d3846`,"--gnome-dark-4":`#241f31`,"--gnome-dark-5":`#000`,"--gnome-destructive-bg-color":`#ed333b`,"--gnome-destructive-color":`#f66151`,"--gnome-destructive-fg-color":`#fff`,"--gnome-dialog-backdrop-blur":`4px`,"--gnome-dialog-backdrop-color":`rgb(0 0 0 / 0.65)`,"--gnome-dialog-bg-color":`#242424`,"--gnome-dialog-fg-color":`#fff`,"--gnome-divider-color":`rgb(255 255 255 / 0.2)`,"--gnome-duration-fast":`100ms`,"--gnome-duration-normal":`200ms`,"--gnome-duration-slow":`400ms`,"--gnome-easing-default":`cubic-bezier(0.25, 0.46, 0.45, 0.94)`,"--gnome-error-bg-color":`#ed333b`,"--gnome-error-color":`#f66151`,"--gnome-error-fg-color":`#fff`,"--gnome-focus-ring-color":`#99c1f1`,"--gnome-focus-ring-offset":`2px`,"--gnome-focus-ring-width":`3px`,"--gnome-font-family":`"Adwaita Sans", cantarell, "Inter", system-ui, sans-serif`,"--gnome-font-family-mono":`"Adwaita Mono", "Source Code Pro", monospace`,"--gnome-font-size-body":`1rem`,"--gnome-font-size-caption":`0.75rem`,"--gnome-font-size-large-title":`2.25rem`,"--gnome-font-size-title-1":`1.875rem`,"--gnome-font-size-title-2":`1.5rem`,"--gnome-font-size-title-3":`1.25rem`,"--gnome-font-size-title-4":`1.125rem`,"--gnome-font-weight-bold":`700`,"--gnome-font-weight-normal":`400`,"--gnome-font-weight-semibold":`600`,"--gnome-green-1":`#8ff0a4`,"--gnome-green-2":`#57e389`,"--gnome-green-3":`#33d17a`,"--gnome-green-4":`#2ec27e`,"--gnome-green-5":`#26a269`,"--gnome-headerbar-bg-color":`#303030`,"--gnome-headerbar-border-color":`rgb(255 255 255 / 0.3)`,"--gnome-headerbar-fg-color":`#fff`,"--gnome-headerbar-shade-color":`rgb(0 0 0 / 0.36)`,"--gnome-hover-overlay":`rgb(255 255 255 / 0.12)`,"--gnome-layout-breakpoint-medium":`550px`,"--gnome-layout-breakpoint-narrow":`400px`,"--gnome-layout-breakpoint-wide":`860px`,"--gnome-layout-content-padding":`24px`,"--gnome-layout-content-padding-compact":`12px`,"--gnome-layout-content-padding-spacious":`36px`,"--gnome-layout-sidebar-default-width":`240px`,"--gnome-layout-sidebar-max-width":`280px`,"--gnome-layout-sidebar-min-width":`180px`,"--gnome-layout-sidebar-overlay-width":`clamp( 180px, 75%, 280px )`,"--gnome-layout-sidebar-rail-width":`56px`,"--gnome-layout-sidebar-width":`clamp( 180px, 25%, 280px )`,"--gnome-light-1":`#fff`,"--gnome-light-2":`#f6f5f4`,"--gnome-light-3":`#deddda`,"--gnome-light-4":`#c0bfbc`,"--gnome-light-5":`#9a9996`,"--gnome-line-height-body":`1.5`,"--gnome-line-height-heading":`1.2`,"--gnome-line-height-title":`1.2`,"--gnome-new-bg-color":`#c061cb`,"--gnome-new-color":`#dc8add`,"--gnome-new-fg-color":`#fff`,"--gnome-opacity-border":`0.4`,"--gnome-opacity-dim":`0.7`,"--gnome-opacity-disabled":`0.6`,"--gnome-orange-1":`#ffbe6f`,"--gnome-orange-2":`#ffa348`,"--gnome-orange-3":`#ff7800`,"--gnome-orange-4":`#e66100`,"--gnome-orange-5":`#c64600`,"--gnome-popover-bg-color":`#383838`,"--gnome-popover-fg-color":`#fff`,"--gnome-purple-1":`#dc8add`,"--gnome-purple-2":`#c061cb`,"--gnome-purple-3":`#9141ac`,"--gnome-purple-4":`#813d9c`,"--gnome-purple-5":`#613583`,"--gnome-radius-lg":`12px`,"--gnome-radius-md":`8px`,"--gnome-radius-pill":`9999px`,"--gnome-radius-sm":`4px`,"--gnome-radius-xl":`15px`,"--gnome-red-1":`#f66151`,"--gnome-red-2":`#ed333b`,"--gnome-red-3":`#e01b24`,"--gnome-red-4":`#c01c28`,"--gnome-red-5":`#a51d2d`,"--gnome-shadow-lg":`0 3px 9px 1px rgb(0 0 0 / 0.1), 0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(28 31 31 / 0.9)`,"--gnome-shadow-md":`0 2px 6px 2px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.08)`,"--gnome-shadow-sm":`0 1px 2px rgb(0 0 0 / 0.12)`,"--gnome-sidebar-bg-color":`#303030`,"--gnome-sidebar-fg-color":`#fff`,"--gnome-skeleton-base-color":`rgb(255 255 255 / 0.12)`,"--gnome-skeleton-highlight-color":`rgb(255 255 255 / 0.18)`,"--gnome-space-1":`6px`,"--gnome-space-2":`12px`,"--gnome-space-3":`18px`,"--gnome-space-4":`24px`,"--gnome-space-5":`36px`,"--gnome-space-6":`48px`,"--gnome-success-bg-color":`#57e389`,"--gnome-success-color":`#8ff0a4`,"--gnome-success-fg-color":`#fff`,"--gnome-view-bg-color":`#1e1e1e`,"--gnome-view-fg-color":`#fff`,"--gnome-warning-bg-color":`#f8e45c`,"--gnome-warning-color":`#f9f06b`,"--gnome-warning-fg-color":`rgb(0 0 0 / 0.9)`,"--gnome-window-bg-color":`#242424`,"--gnome-window-fg-color":`#fff`,"--gnome-yellow-1":`#f9f06b`,"--gnome-yellow-2":`#f8e45c`,"--gnome-yellow-3":`#f6d32d`,"--gnome-yellow-4":`#f5c211`,"--gnome-yellow-5":`#e5a50a`},x=(0,c.createContext)({locale:void 0,dir:`ltr`,numberFormat:void 0,dateTimeFormat:void 0,colorScheme:`system`,resolvedColorScheme:`light`,contrast:`system`,resolvedContrast:`normal`,accentColor:`blue`,theme:p});function S(){return(0,c.useContext)(x).locale}function C(){return(0,c.useContext)(x).dir}function w(e){let{locale:t,numberFormat:n}=(0,c.useContext)(x);return(0,c.useMemo)(()=>new Intl.NumberFormat(t,{...n,...e}),[t,n,e])}function T(e){let{locale:t,dateTimeFormat:n}=(0,c.useContext)(x);return(0,c.useMemo)(()=>new Intl.DateTimeFormat(t,{...n,...e}),[t,n,e])}function E(){return(0,c.useContext)(x).colorScheme}function D(){return(0,c.useContext)(x).resolvedColorScheme}function O(){return(0,c.useContext)(x).contrast}function k(){return(0,c.useContext)(x).resolvedContrast}function A(){return(0,c.useContext)(x).accentColor}function j(){return(0,c.useContext)(x).theme}function M({colorScheme:e,contrast:t=`normal`}){return t===`more`?e===`dark`?g:h:e===`dark`?m:p}var N=new Set([`blue`,`green`,`yellow`,`orange`,`red`,`purple`,`brown`]);function P(e,t){return e===`system`?t===`dark`?`dark`:`light`:e}function F(e,t){return e===`system`?t?`more`:`normal`:e}function I(e,t,n,r){if(t===`blue`)return e;let i=N.has(t),a=i?e[`${t}${n===`dark`?2:3}`]:t,o=i?e[`${t}3`]:t;return{...e,accentColor:a,accentBgColor:o,...r===`normal`?{focusRingColor:a}:{}}}function L(){let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=l.Platform.OS===`android`?l.AccessibilityInfo.isHighTextContrastEnabled:l.Platform.OS===`ios`?l.AccessibilityInfo.isDarkerSystemColorsEnabled:void 0;if(!e)return;let n=!0;(async()=>{let r=await e();n&&t(r)})();let r=l.Platform.OS===`android`?`highTextContrastChanged`:`darkerSystemColorsChanged`,i=l.AccessibilityInfo.addEventListener(r,t);return()=>{n=!1,i.remove()}},[]),e}function R(){let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=!0;(async()=>{let n=await l.AccessibilityInfo.isReduceMotionEnabled();e&&t(n)})();let n=l.AccessibilityInfo.addEventListener(`reduceMotionChanged`,t);return()=>{e=!1,n.remove()}},[]),e}var ee=({locale:e,dir:t,numberFormat:n,dateTimeFormat:r,colorScheme:i=`system`,contrast:a=`system`,accentColor:o=`blue`,children:s})=>{let d=(0,l.useColorScheme)(),f=L(),p=P(i,d),m=F(a,f),h=t??(l.I18nManager.isRTL?`rtl`:`ltr`),g=(0,c.useMemo)(()=>({locale:e,dir:h,numberFormat:n,dateTimeFormat:r,colorScheme:i,resolvedColorScheme:p,contrast:a,resolvedContrast:m,accentColor:o,theme:I(M({colorScheme:p,contrast:m}),o,p,m)}),[e,h,n,r,i,p,a,m,o]);return(0,u.jsx)(x.Provider,{value:g,children:s})},te=new Set([`large-title`,`title-1`,`title-2`,`title-3`,`title-4`,`heading`]);function ne(e,t){let n=e=>String(e);switch(t){case`large-title`:return{fontSize:e.fontSizeLargeTitle,fontWeight:n(300),lineHeight:Math.round(e.fontSizeLargeTitle*e.lineHeightHeading),letterSpacing:e.fontSizeLargeTitle*-.02};case`title-1`:return{fontSize:e.fontSizeTitle1,fontWeight:n(e.fontWeightBold),lineHeight:Math.round(e.fontSizeTitle1*e.lineHeightHeading)};case`title-2`:return{fontSize:e.fontSizeTitle2,fontWeight:n(e.fontWeightBold),lineHeight:Math.round(e.fontSizeTitle2*e.lineHeightHeading)};case`title-3`:return{fontSize:e.fontSizeTitle3,fontWeight:n(e.fontWeightBold),lineHeight:Math.round(e.fontSizeTitle3*e.lineHeightHeading)};case`title-4`:return{fontSize:e.fontSizeTitle4,fontWeight:n(e.fontWeightSemibold),lineHeight:Math.round(e.fontSizeTitle4*e.lineHeightHeading)};case`heading`:return{fontSize:e.fontSizeBody,fontWeight:n(e.fontWeightBold),lineHeight:Math.round(e.fontSizeBody*e.lineHeightHeading)};case`document`:return{fontSize:e.fontSizeBody,fontWeight:n(e.fontWeightNormal),lineHeight:Math.round(e.fontSizeBody*1.65)};case`caption`:return{fontSize:e.fontSizeCaption,fontWeight:n(e.fontWeightNormal),lineHeight:Math.round(e.fontSizeCaption*e.lineHeightBody)};case`caption-heading`:return{fontSize:e.fontSizeCaption,fontWeight:n(e.fontWeightSemibold),lineHeight:Math.round(e.fontSizeCaption*e.lineHeightHeading),letterSpacing:e.fontSizeCaption*.06,textTransform:`uppercase`};case`monospace`:return{fontFamily:e.fontFamilyMono,fontSize:14,lineHeight:Math.round(14*e.lineHeightBody)};case`numeric`:return{fontSize:e.fontSizeBody,fontWeight:n(e.fontWeightNormal),lineHeight:Math.round(e.fontSizeBody*e.lineHeightBody),fontVariant:[`tabular-nums`]};default:return{fontSize:e.fontSizeBody,fontWeight:n(e.fontWeightNormal),lineHeight:Math.round(e.fontSizeBody*e.lineHeightBody)}}}function re(e,t){switch(t){case`dim`:return{color:e.windowFgColor,opacity:e.opacityDim};case`accent`:return{color:e.accentColor};case`destructive`:return{color:e.destructiveColor};case`success`:return{color:e.successColor};case`warning`:return{color:e.warningColor};case`error`:return{color:e.errorColor};default:return{color:e.windowFgColor}}}var z=(0,c.forwardRef)(function({variant:e=`body`,color:t=`default`,style:n,children:r,accessibilityRole:i,...a},o){let s=j();return(0,u.jsx)(l.Text,{ref:o,accessibilityRole:i??(te.has(e)?`header`:void 0),style:[{fontFamily:s.fontFamily},ne(s,e),re(s,t),n],...a,children:r})}),ie=(0,c.forwardRef)(function({title:e,subtitle:t,leading:n,trailing:r,interactive:i=!1,variant:a=`default`,style:o,disabled:s,...c},d){let f=j(),p=a===`property`,m={flexDirection:`row`,alignItems:`center`,gap:f.space2,paddingVertical:f.space2,paddingHorizontal:f.space4,minHeight:52,width:`100%`},h=(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n}),(0,u.jsxs)(l.View,{style:{flex:1,gap:2},children:[(0,u.jsx)(z,{variant:p?`caption`:`body`,color:p?`dim`:`default`,numberOfLines:1,ellipsizeMode:`tail`,children:e}),t&&(0,u.jsx)(z,{variant:p?`body`:`caption`,color:p?`default`:`dim`,numberOfLines:1,ellipsizeMode:`tail`,children:t})]}),r&&(0,u.jsx)(l.View,{style:{flexShrink:0,flexDirection:`row`,alignItems:`center`,gap:f.space1},children:r})]});return i?(0,u.jsx)(l.Pressable,{ref:d,disabled:s,accessibilityRole:`button`,accessibilityState:{disabled:!!s},style:[m,{position:`relative`,opacity:s?f.opacityDisabled:1},o],...c,children:({pressed:e})=>(0,u.jsxs)(u.Fragment,{children:[h,e&&!s?(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:f.activeOverlay}]}):null]})}):(0,u.jsx)(l.View,{ref:d,style:[m,o],...c,children:h})}),ae={sm:12,md:16,lg:20};function oe(e,t){switch(t){case`blue`:return e.blue3;case`green`:return e.green4;case`yellow`:return e.yellow4;case`orange`:return e.orange3;case`red`:return e.red3;case`purple`:return e.purple3;case`brown`:return e.brown3;default:return e.windowFgColor}}function se(e){return e?{accessible:!0,accessibilityLabel:e,accessibilityRole:`image`}:{accessible:!1,accessibilityRole:`none`}}function ce(e){return`paths`in e&&Array.isArray(e.paths)?!0:typeof e.svg==`string`&&!(`path`in e)}function le(e){return e===`nonzero`||e===`evenodd`?e:void 0}var B=({icon:e,size:t=`md`,width:n,height:r,label:i,color:a,tintColor:o,style:s})=>{let c=j(),l=ae[t],d=o??oe(c,a),p=ce(e)?e.viewBox:e.viewBox??`0 0 24 24`,m=ce(e)?e.svg:void 0,h=ce(e)?e.svg?void 0:e.paths?.map((e,t)=>(0,u.jsx)(f.Path,{d:e.d,fillRule:le(e.fillRule),clipRule:le(e.clipRule),transform:e.transform},t)):[(0,u.jsx)(f.Path,{d:e.path},0)],g=se(i);return m?(0,u.jsx)(f.SvgXml,{xml:`<svg viewBox="${p}">${m}</svg>`,width:n??l,height:r??l,fill:d,style:s,...g}):(0,u.jsx)(f.Svg,{viewBox:p,width:n??l,height:r??l,fill:d,style:s,...g,children:h})},ue=l.Animated.createAnimatedComponent(f.G),de=l.Animated.createAnimatedComponent(f.Path),fe=l.Animated.createAnimatedComponent(f.Circle);function pe(e){let t=(0,c.useRef)(new l.Animated.Value(0)).current;return(0,c.useEffect)(()=>{let n=l.Animated.loop(l.Animated.timing(t,{toValue:1,duration:e,easing:l.Easing.linear,useNativeDriver:!1}));return n.start(),()=>n.stop()},[t,e]),t}function me(e,t){let n=(0,c.useRef)(new l.Animated.Value(0)).current;return(0,c.useEffect)(()=>{let r=l.Animated.sequence([l.Animated.delay(t),l.Animated.loop(l.Animated.timing(n,{toValue:1,duration:e,easing:l.Easing.linear,useNativeDriver:!1}))]);return r.start(),()=>r.stop()},[n,e,t]),n}var he=({fill:e})=>(0,u.jsx)(ue,{transform:pe(1500).interpolate({inputRange:[0,1],outputRange:[`rotate(0, 8, 8)`,`rotate(360, 8, 8)`]}),children:(0,u.jsx)(f.Path,{fill:e,fillRule:`evenodd`,d:`M8 2a6 6 0 0 0-6 6h2a4 4 0 0 1 4-4 4 4 0 0 1 4 4 4 4 0 0 1-4 4v-2L5 13l3 3v-2a6 6 0 0 0 6-6 6 6 0 0 0-6-6z`})}),ge=({fill:e})=>{let t=(0,c.useRef)(new l.Animated.Value(1)).current;return(0,c.useEffect)(()=>{let e=l.Easing.inOut(l.Easing.ease),n=l.Animated.loop(l.Animated.sequence([l.Animated.timing(t,{toValue:.35,duration:600,easing:e,useNativeDriver:!1}),l.Animated.timing(t,{toValue:1,duration:600,easing:e,useNativeDriver:!1})]));return n.start(),()=>n.stop()},[t]),(0,u.jsx)(de,{fill:e,opacity:t,d:`m 15 8 c 0 3.867188 -3.132812 7 -7 7 s -7 -3.132812 -7 -7 s 3.132812 -7 7 -7 s 7 3.132812 7 7 z m 0 0`})},_e=({fill:e})=>{let t=pe(1400),n=[0,.2,.5,.55,.8,1],r=t.interpolate({inputRange:n,outputRange:[`translate(0, 0)`,`translate(0, 0)`,`translate(0, 3)`,`translate(0, -3)`,`translate(0, 0)`,`translate(0, 0)`]}),i=t.interpolate({inputRange:n,outputRange:[1,1,0,0,1,1]});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f.Path,{fill:e,d:`M2 13h12v2H2z`}),(0,u.jsx)(ue,{transform:r,opacity:i,children:(0,u.jsx)(f.Path,{fill:e,fillRule:`evenodd`,d:`m2.5 5 5.5 6 5.5-6z`})})]})};function V(e,t,n){return`translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`}var ve=({cx:e,cy:t,fill:n,delay:r})=>{let i=me(1200,r),a=[0,.2,.4,1];return(0,u.jsx)(fe,{cx:e,cy:t,r:2,fill:n,opacity:i.interpolate({inputRange:a,outputRange:[1,.3,1,1]}),transform:i.interpolate({inputRange:a,outputRange:[V(e,t,1),V(e,t,.7),V(e,t,1),V(e,t,1)]})})},ye=new Map([[d.Syncing,he],[d.Recording,ge],[d.Downloading,_e],[d.Connecting,({fill:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f.Path,{fill:e,d:`m 8 1.992188 c -2.617188 0 -5.238281 0.933593 -7.195312 2.808593 l -0.496094 0.480469 c -0.3984378 0.378906 -0.410156 1.011719 -0.03125 1.410156 c 0.003906 0.007813 0.011718 0.011719 0.019531 0.015625 c 0.480469 -1.011719 1.503906 -1.707031 2.703125 -1.707031 h 0.9375 c 2.480469 -1.292969 5.644531 -1.292969 8.125 0 h 0.9375 c 1.199219 0 2.222656 0.695312 2.707031 1.707031 c 0.003907 -0.007812 0.011719 -0.011719 0.015625 -0.015625 c 0.378906 -0.398437 0.367188 -1.03125 -0.03125 -1.410156 l -0.496094 -0.480469 c -1.957031 -1.875 -4.578124 -2.808593 -7.195312 -2.808593 z m -1.730469 9.007812 c -0.441406 0.765625 -0.339843 1.757812 0.316407 2.414062 c 0.78125 0.78125 2.046874 0.78125 2.828124 0 c 0.65625 -0.65625 0.757813 -1.648437 0.316407 -2.414062 z m 0 0`}),(0,u.jsx)(ve,{cx:3,cy:8,fill:e,delay:0}),(0,u.jsx)(ve,{cx:8,cy:8,fill:e,delay:150}),(0,u.jsx)(ve,{cx:13,cy:8,fill:e,delay:300})]})]]),be=({icon:e,playing:t=!0,size:n=`md`,width:r,height:i,label:a,color:o})=>{let s=j(),c=R(),l=t&&!c?ye.get(e):void 0;if(!l)return(0,u.jsx)(B,{icon:e,size:n,width:r,height:i,label:a,color:o});let d=ae[n],p=oe(s,o),m=se(a);return(0,u.jsx)(f.Svg,{viewBox:e.viewBox,width:r??d,height:i??d,...m,children:(0,u.jsx)(l,{fill:p})})},xe=[`blue`,`green`,`yellow`,`orange`,`red`,`purple`,`brown`,`teal`,`slate`],Se={sm:24,md:32,lg:48,xl:64},Ce={sm:.5,md:.6,lg:1,xl:1.4};function we(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return xe[t%xe.length]}function Te(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():t[0].charAt(0).toUpperCase()+t[t.length-1].charAt(0).toUpperCase()}function Ee(e,t){switch(t){case`blue`:return{backgroundColor:e.blue3,initialsColor:`#fff`};case`green`:return{backgroundColor:e.green4,initialsColor:`#fff`};case`yellow`:return{backgroundColor:e.yellow4,initialsColor:`rgba(0, 0, 0, 0.8)`};case`orange`:return{backgroundColor:e.orange4,initialsColor:`#fff`};case`red`:return{backgroundColor:e.red3,initialsColor:`#fff`};case`purple`:return{backgroundColor:e.purple3,initialsColor:`#fff`};case`brown`:return{backgroundColor:e.brown3,initialsColor:`#fff`};case`teal`:return{backgroundColor:`#2190a4`,initialsColor:`#fff`};case`slate`:return{backgroundColor:e.dark2,initialsColor:`#fff`}}}var H=({name:e=``,src:t,alt:n,size:r=`md`,color:i,style:a})=>{let o=j(),s=D(),c=i??(e?we(e):`blue`),d=Te(e),f=Se[r],{backgroundColor:p,initialsColor:m}=Ee(o,c),h=s===`dark`?`rgba(255, 255, 255, 0.08)`:`rgba(0, 0, 0, 0.08)`;return(0,u.jsx)(l.View,{accessible:!0,role:`img`,accessibilityLabel:n??(e||void 0)??`Avatar`,style:[{width:f,height:f,borderRadius:o.radiusPill,overflow:`hidden`,alignItems:`center`,justifyContent:`center`,backgroundColor:t?void 0:p,borderWidth:1,borderColor:h},a],children:t?(0,u.jsx)(l.Image,{testID:`avatar-image`,source:{uri:t},accessibilityElementsHidden:!0,importantForAccessibility:`no`,resizeMode:`cover`,style:{width:`100%`,height:`100%`}}):(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{fontFamily:o.fontFamily,fontWeight:String(o.fontWeightSemibold),fontSize:o.fontSizeBody*Ce[r],lineHeight:o.fontSizeBody*Ce[r],color:m},children:d})})},De={sm:6,md:8,lg:12,xl:16},Oe={sm:24,md:32,lg:48,xl:64},ke={sm:8,md:9.6,lg:14,xl:17.6},Ae=({avatars:e,max:t=5,size:n=`md`,accessibilityLabel:r,style:i,testID:a})=>{let o=j(),s=e.length>t?e.slice(0,t):e,c=e.length>t?e.length-t:0,d=e.map(e=>e.name).filter(Boolean).join(`, `),f=r??(d?c>0?`${d} and ${c} more`:d:`Avatar group`),p=De[n];return(0,u.jsxs)(l.View,{testID:a,accessible:!0,role:`group`,accessibilityLabel:f,style:[{flexDirection:`row`,alignItems:`center`},i],children:[s.map((e,t)=>(0,u.jsx)(H,{name:e.name,src:e.src,alt:e.alt??e.name,color:e.color,size:n,style:{marginStart:t===0?0:-p,borderWidth:2,borderColor:o.windowBgColor}},`${e.name??``}-${e.src??``}-${t}`)),c>0&&(0,u.jsx)(l.View,{accessible:!0,accessibilityLabel:`+${c} more`,style:{width:Oe[n],height:Oe[n],marginStart:-p,borderRadius:o.radiusPill,borderWidth:2,borderColor:o.windowBgColor,backgroundColor:o.dark2,alignItems:`center`,justifyContent:`center`},children:(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{fontFamily:o.fontFamily,fontWeight:String(o.fontWeightSemibold),fontSize:ke[n],color:`#fff`},children:`+${c}`})})]})};function je(e,t){return t<=0?0:(e%t+t)%t}var Me={sm:24,md:32,lg:48,xl:64},Ne=({active:e,duration:t,reducedMotion:n,children:r})=>{let i=(0,c.useRef)(new l.Animated.Value(+!!e)).current;return(0,c.useEffect)(()=>{if(n){i.setValue(+!!e);return}l.Animated.timing(i,{toValue:+!!e,duration:t,useNativeDriver:!0}).start()},[e,t,n,i]),(0,u.jsx)(l.Animated.View,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:[l.StyleSheet.absoluteFill,{opacity:i}],children:r})},Pe=({name:e=``,avatars:t=[],alt:n,size:r=`md`,color:i,interval:a=3e3,transitionDuration:o=240,pauseOnPress:s=!0,activeIndex:d,defaultActiveIndex:f=0,onIndexChange:p,style:m,testID:h})=>{let g=R(),_=t.map(e=>e.trim()).filter(Boolean),v=d!==void 0,[y,b]=(0,c.useState)(f),[x,S]=(0,c.useState)(!1),C=je(v?d:y,_.length);if((0,c.useEffect)(()=>{if(_.length<=1||a<=0||x||g)return;let e=setInterval(()=>{let e=je(C+1,_.length);v||b(e),p?.(e)},a);return()=>clearInterval(e)},[C,a,v,x,p,g,_.length]),_.length===0)return(0,u.jsx)(H,{name:e,alt:n,size:r,color:i,style:m});let w=n??(e||void 0)??`Avatar`,T=Me[r];return(0,u.jsx)(l.Pressable,{testID:h,accessible:!0,role:`img`,accessibilityLabel:w,onPressIn:()=>s&&S(!0),onPressOut:()=>s&&S(!1),style:[{width:T,height:T,borderRadius:T/2,overflow:`hidden`},m],children:_.map((t,n)=>(0,u.jsx)(Ne,{active:n===C,duration:Math.max(0,o),reducedMotion:g,children:(0,u.jsx)(H,{name:e,src:t,size:r})},`${t}-${n}`))})};function Fe(e,t,n){switch(n){case`accent`:return{backgroundColor:e.accentBgColor,color:e.accentFgColor};case`success`:return{backgroundColor:e.successBgColor,color:e.successFgColor};case`warning`:return{backgroundColor:e.warningBgColor,color:e.warningFgColor};case`error`:return{backgroundColor:e.errorBgColor,color:e.errorFgColor};case`neutral`:return{backgroundColor:t===`dark`?e.dark2:e.light4,color:e.windowFgColor}}}var Ie=({variant:e=`accent`,dot:t=!1,children:n,anchor:r,style:i})=>{let a=j(),{backgroundColor:o,color:s}=Fe(a,D(),e),c=(0,u.jsx)(l.View,{testID:`badge-ring`,style:[{padding:2,borderRadius:a.radiusPill,backgroundColor:a.windowBgColor},r?{position:`absolute`,top:t?-2:-4,right:t?-2:-4,zIndex:1}:null],children:(0,u.jsx)(l.View,{testID:`badge`,style:[{minWidth:t?10:18,height:t?10:18,paddingHorizontal:t?0:5,borderRadius:a.radiusPill,backgroundColor:o,alignItems:`center`,justifyContent:`center`},i],children:!t&&(typeof n==`string`||typeof n==`number`?(0,u.jsx)(l.Text,{style:{fontFamily:a.fontFamily,fontWeight:String(a.fontWeightSemibold),fontSize:11,lineHeight:13,color:s},children:n}):n)})});return r?(0,u.jsxs)(l.View,{style:{alignSelf:`flex-start`},children:[r,c]}):c},Le=({variant:e=`info`,children:t,actionLabel:n,onAction:r,dismissible:i=!1,onDismiss:a,style:o,...s})=>{let c=j(),d={info:{bg:c.accentBgColor,fg:c.accentFgColor},warning:{bg:c.warningBgColor,fg:c.warningFgColor},error:{bg:c.errorBgColor,fg:c.errorFgColor},success:{bg:c.successBgColor,fg:c.successFgColor}}[e],f=e===`warning`?`rgba(0, 0, 0, 0.14)`:`rgba(255, 255, 255, 0.25)`;return(0,u.jsxs)(l.View,{accessible:!0,accessibilityRole:`alert`,accessibilityLiveRegion:`polite`,style:[{flexDirection:`row`,alignItems:`center`,gap:c.space2,paddingVertical:10,paddingHorizontal:c.space4,minHeight:44,width:`100%`,backgroundColor:d.bg},o],...s,children:[(0,u.jsx)(z,{variant:`body`,style:{flex:1,minWidth:0,color:d.fg},children:t}),(n||i)&&(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:c.space1,flexShrink:0},children:[n&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:n,onPress:r,style:({pressed:e})=>({paddingVertical:4,paddingHorizontal:c.space2,borderRadius:c.radiusMd,backgroundColor:e?f:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontFamily:c.fontFamily,fontSize:c.fontSizeBody,fontWeight:String(c.fontWeightSemibold),color:d.fg},children:n})}),i&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Dismiss`,hitSlop:4,onPress:a,style:({pressed:e})=>({width:28,height:28,alignItems:`center`,justifyContent:`center`,borderRadius:c.radiusMd,opacity:e?1:.6,backgroundColor:e?f:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontSize:c.fontSizeBody,color:d.fg},children:`×`})})]})]})},Re=(0,c.forwardRef)(function(e,t){return(0,u.jsx)(l.View,{ref:t,...e})}),ze={info:`14`,warning:`24`,error:`14`,success:`14`},Be=({variant:e=`default`,icon:t,cite:n,children:r,style:i,...a})=>{let o=j(),s=o.borderSubtle,c=`transparent`;if(e!=="default"){let t={info:o.accentBgColor,warning:o.warningBgColor,error:o.errorBgColor,success:o.successBgColor}[e];s=t,c=`${t}${ze[e]}`}return(0,u.jsxs)(l.View,{style:[{paddingVertical:o.space2,paddingHorizontal:o.space3,borderLeftWidth:3,borderLeftColor:s,borderTopRightRadius:o.radiusSm,borderBottomRightRadius:o.radiusSm,backgroundColor:c},i],...a,children:[(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`flex-start`,gap:o.space2},children:[t&&(0,u.jsx)(l.View,{style:{marginTop:2},accessibilityElementsHidden:!0,importantForAccessibility:`no`,children:t}),(0,u.jsx)(z,{variant:`body`,style:{flex:1,minWidth:0},children:r})]}),n!==void 0&&(0,u.jsx)(l.View,{style:{marginTop:o.space1},children:(0,u.jsx)(z,{variant:`caption`,color:`dim`,children:n})})]})},Ve=l.Animated.createAnimatedComponent(l.Pressable),He=150,Ue=({open:e,title:t,children:n,onClose:r,closeOnBackdrop:i=!0,style:a,testID:o})=>{let s=j(),d=R(),[f,p]=(0,c.useState)(e),[m,h]=(0,c.useState)(0),g=(0,c.useRef)(new l.Animated.Value(l.Dimensions.get(`window`).height)).current,_=(0,c.useRef)(new l.Animated.Value(0)).current,v=(0,c.useRef)(!1);(0,c.useEffect)(()=>{e&&p(!0)},[e]),(0,c.useEffect)(()=>{if(!(!f||v.current))if(e){if(d){g.setValue(0),_.setValue(1);return}m>0&&(g.setValue(m),l.Animated.timing(g,{toValue:0,duration:s.durationNormal,useNativeDriver:!0}).start()),l.Animated.timing(_,{toValue:1,duration:s.durationNormal,useNativeDriver:!0}).start()}else{if(d){p(!1);return}l.Animated.timing(g,{toValue:m||l.Dimensions.get(`window`).height,duration:s.durationNormal,useNativeDriver:!0}).start(({finished:e})=>{e&&p(!1)}),l.Animated.timing(_,{toValue:0,duration:s.durationNormal,useNativeDriver:!0}).start()}},[e,f,m,d,g,_,s.durationNormal]),(0,c.useEffect)(()=>{if(!e)return;let t=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(r?.(),!0));return()=>t.remove()},[e,r]);let y=(0,c.useMemo)(()=>l.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onPanResponderGrant:()=>{v.current=!0},onPanResponderMove:(e,t)=>{g.setValue(Math.max(0,t.dy))},onPanResponderRelease:(e,t)=>{v.current=!1,Math.max(0,t.dy)>=He?r?.():l.Animated.timing(g,{toValue:0,duration:s.durationNormal,useNativeDriver:!0}).start()}}),[g,s.durationNormal,r]);return f?(0,u.jsx)(l.Modal,{visible:f,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:r,children:(0,u.jsx)(Ve,{testID:o,onPress:i?r:void 0,accessible:!1,style:{flex:1,justifyContent:`flex-end`,backgroundColor:s.dialogBackdropColor,opacity:_},children:(0,u.jsx)(l.Pressable,{onPress:()=>{},accessible:!1,children:(0,u.jsxs)(l.Animated.View,{onLayout:e=>{h(e.nativeEvent.layout.height)},accessible:!0,role:`dialog`,accessibilityViewIsModal:!0,style:[{alignSelf:`center`,width:`100%`,maxWidth:560,backgroundColor:s.dialogBgColor,borderTopLeftRadius:s.radiusXl,borderTopRightRadius:s.radiusXl,shadowColor:`#000`,shadowOffset:{width:0,height:-4},shadowOpacity:.18,shadowRadius:24,elevation:12,transform:[{translateY:g}]},a],children:[(0,u.jsx)(l.View,{testID:`bottom-sheet-handle`,accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{alignItems:`center`,paddingTop:s.space2,paddingBottom:s.space1},...y.panHandlers,children:(0,u.jsx)(l.View,{style:{width:36,height:4,borderRadius:2,backgroundColor:s.windowFgColor,opacity:.2}})}),t&&(0,u.jsx)(z,{variant:`title-4`,style:{paddingHorizontal:s.space4,paddingBottom:s.space2,textAlign:`center`,fontWeight:String(s.fontWeightBold)},children:t}),n&&(0,u.jsx)(l.View,{style:{paddingHorizontal:s.space4,paddingBottom:s.space4},children:typeof n==`string`?(0,u.jsx)(z,{variant:`body`,children:n}):n})]})})})}):null},We=({items:e,value:t,onChange:n,bottomInset:r=0,style:i,testID:a})=>{let o=j();return(0,u.jsx)(l.View,{testID:a,accessible:!0,role:`tablist`,style:[{flexDirection:`row`,backgroundColor:o.headerbarBgColor,borderTopWidth:1,borderTopColor:o.headerbarBorderColor,paddingTop:8,paddingBottom:4+r},i],children:e.map(e=>{let r=e.value===t,i=r?e.activeIcon??e.icon:e.icon,s=r?o.accentColor:o.windowFgColor,c=(0,u.jsx)(B,{icon:i,size:`lg`,tintColor:r?o.accentColor:void 0,style:r?void 0:{opacity:o.opacityDim}});return(0,u.jsxs)(l.Pressable,{testID:a?`${a}-${e.value}`:void 0,disabled:e.disabled,role:`tab`,accessibilityLabel:e.label,accessibilityState:{selected:r,disabled:!!e.disabled},onPress:()=>n(e.value),style:({pressed:t})=>({flex:1,alignItems:`center`,gap:2,paddingVertical:4,backgroundColor:t?o.activeOverlay:`transparent`,opacity:e.disabled?o.opacityDisabled:1}),children:[(0,u.jsxs)(l.View,{style:{position:`relative`},children:[c,e.badge!==void 0&&e.badge!==!1&&(0,u.jsx)(l.View,{style:{position:`absolute`,top:-4,end:-6},children:(0,u.jsx)(Ie,{variant:`error`,dot:e.badge===!0,style:e.badge===!0?{minWidth:8,height:8}:{minWidth:14,height:14,paddingHorizontal:3},children:typeof e.badge==`number`?e.badge>99?`99+`:e.badge:void 0})})]}),(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:o.fontSizeCaption,fontWeight:String(r?o.fontWeightSemibold:o.fontWeightNormal),color:s,opacity:r?1:o.opacityDim},children:e.label})]},e.value)})})},Ge={start:`flex-start`,center:`center`,end:`flex-end`,stretch:`stretch`,baseline:`baseline`},Ke={start:`flex-start`,center:`center`,end:`flex-end`,"space-between":`space-between`,"space-around":`space-around`,"space-evenly":`space-evenly`},qe=(0,c.forwardRef)(function({orientation:e=`vertical`,spacing:t=6,align:n,justify:r=`start`,padding:i,children:a,style:o,...s},c){return(0,u.jsx)(l.View,{ref:c,style:[{flexDirection:e===`horizontal`?`row`:`column`,gap:t,alignItems:Ge[n??(e===`horizontal`?`center`:`stretch`)],justifyContent:Ke[r]},i!==void 0&&{padding:i},o],...s,children:a})}),U=(0,c.forwardRef)(function({orientation:e=`horizontal`,style:t,...n},r){return(0,u.jsx)(l.View,{ref:r,accessible:!1,style:[{backgroundColor:j().cardShadeColor,flexShrink:0},e===`vertical`?{width:1,height:`100%`,alignSelf:`stretch`}:{width:`100%`,height:1},t],...n})}),Je=(0,c.forwardRef)(function({children:e,variant:t=`default`,style:n,...r},i){let a=j(),o=c.Children.toArray(e).filter(Boolean);return t===`separate`?(0,u.jsx)(l.View,{ref:i,accessible:!0,accessibilityRole:`list`,style:[{gap:a.space2},n],...r,children:o.map((e,t)=>(0,u.jsx)(l.View,{style:{backgroundColor:a.cardBgColor,borderWidth:1,borderColor:a.dividerColor,borderRadius:a.radiusLg,overflow:`hidden`},children:e},t))}):(0,u.jsx)(l.View,{ref:i,accessible:!0,accessibilityRole:`list`,style:[{backgroundColor:a.cardBgColor,borderWidth:1,borderColor:a.dividerColor,borderRadius:a.radiusLg,overflow:`hidden`},n],...r,children:o.map((e,t)=>(0,u.jsxs)(l.View,{children:[t>0&&(0,u.jsx)(U,{testID:`boxed-list-separator`}),e]},t))})});function Ye(e,t){switch(t){case`sm`:return{minHeight:28,minWidth:64,paddingVertical:4,paddingHorizontal:e.space1,fontSize:e.fontSizeCaption};case`lg`:return{minHeight:42,minWidth:88,paddingVertical:e.space1,paddingHorizontal:e.space3,fontSize:e.fontSizeTitle4};default:return{minHeight:34,minWidth:88,paddingVertical:e.space1,paddingHorizontal:e.space2,fontSize:e.fontSizeBody}}}function Xe(e){switch(e){case`sm`:return 28;case`lg`:return 42;default:return 34}}function Ze(e,t,n,r){if(r)return{backgroundColor:n?`rgba(0, 0, 0, 0.85)`:`rgba(0, 0, 0, 0.65)`,borderColor:`rgba(255, 255, 255, 0.12)`,color:`rgba(255, 255, 255, 0.95)`};switch(t){case`suggested`:return{backgroundColor:e.accentBgColor,borderColor:`transparent`,color:e.accentFgColor};case`destructive`:return{backgroundColor:e.destructiveBgColor,borderColor:`transparent`,color:e.destructiveFgColor};case`flat`:return{backgroundColor:n?e.activeOverlay:`transparent`,borderColor:`transparent`,color:e.windowFgColor};default:return{backgroundColor:n?e.light3:e.cardBgColor,borderColor:e.light3,color:e.windowFgColor}}}var W=(0,c.forwardRef)(function({variant:e=`default`,size:t=`md`,shape:n=`default`,osd:r=!1,leadingIcon:i,trailingIcon:a,children:o,style:s,textStyle:c,disabled:d,...f},p){let m=j(),h=k();return(0,u.jsx)(l.Pressable,{ref:p,disabled:d,accessibilityRole:`button`,accessibilityState:{disabled:!!d},style:({pressed:i})=>{let{backgroundColor:a,borderColor:o}=Ze(m,e,i,r),c=!r&&(e===`suggested`||e===`destructive`),l=n===`circular`?Xe(t):void 0,{minHeight:u,minWidth:f,paddingVertical:p,paddingHorizontal:g}=Ye(m,t);return[{flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:m.space1,minHeight:l??u,minWidth:l??(n===`pill`?void 0:f),width:l,height:l,paddingVertical:l?m.space1:p,paddingHorizontal:l?m.space1:n===`pill`?m.space3:g,borderRadius:n==="default"?m.radiusMd:m.radiusPill,borderWidth:e==="default"&&h===`more`?2:1,borderColor:o,backgroundColor:a,opacity:d?m.opacityDisabled:i&&c?.85:1},s]},...f,children:({pressed:n})=>{let{fontSize:s}=Ye(m,t),{color:d}=Ze(m,e,n,r);return(0,u.jsxs)(u.Fragment,{children:[i,typeof o==`string`?(0,u.jsx)(l.Text,{style:[{fontFamily:m.fontFamily,fontWeight:String(m.fontWeightSemibold),fontSize:s,color:d},c],children:o}):o,a]})}})}),Qe={default:`default`,suggested:`accent`,destructive:`destructive`},$e=(0,c.forwardRef)(function({title:e,variant:t=`default`,leading:n,trailing:r,style:i,disabled:a,...o},s){let c=j();return(0,u.jsx)(l.Pressable,{ref:s,disabled:a,accessibilityRole:`button`,accessibilityState:{disabled:!!a},accessibilityLabel:e,style:[{flexDirection:`row`,alignItems:`center`,gap:c.space2,paddingVertical:c.space2,paddingHorizontal:c.space4,minHeight:52,width:`100%`,opacity:a?c.opacityDisabled:1},i],...o,children:({pressed:i})=>(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n}),(0,u.jsx)(z,{variant:`body`,color:Qe[t],style:{flex:1,textAlign:`center`,fontWeight:String(c.fontWeightSemibold)},children:e}),r&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:r}),i&&!a?(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:c.activeOverlay}]}):null]})})}),et={info:d.DialogInformation,warning:d.DialogWarning,tip:d.DialogInformation},tt={info:`blue`,warning:`yellow`,tip:`green`},nt={info:`1a`,warning:`26`,tip:`1a`},rt=({variant:e=`info`,children:t,dismissible:n=!1,onDismiss:r,style:i,...a})=>{let o=j(),s={info:o.accentBgColor,warning:o.warningBgColor,tip:o.successBgColor}[e];return(0,u.jsxs)(l.View,{role:`note`,accessible:!0,style:[{flexDirection:`row`,alignItems:`flex-start`,gap:o.space2,padding:o.space2,paddingHorizontal:o.space3,borderRadius:o.radiusMd,borderStartWidth:3,borderStartColor:s,backgroundColor:`${s}${nt[e]}`},i],...a,children:[(0,u.jsx)(l.View,{style:{marginTop:2},accessibilityElementsHidden:!0,importantForAccessibility:`no`,children:(0,u.jsx)(B,{icon:et[e],size:`md`,color:tt[e]})}),(0,u.jsx)(z,{variant:`body`,style:{flex:1,minWidth:0},children:t}),n&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Dismiss`,hitSlop:4,onPress:r,style:({pressed:e})=>[{flexShrink:0,marginTop:-2,padding:4,borderRadius:o.radiusMd,opacity:e?1:.6,backgroundColor:e?o.activeOverlay:`transparent`}],children:(0,u.jsx)(l.View,{pointerEvents:`none`,children:(0,u.jsx)(B,{icon:d.Close,size:`sm`})})})]})};function it(e,t){switch(t){case`none`:return 0;case`sm`:return e.space2;case`lg`:return e.space5;default:return e.space4}}var at=(0,c.forwardRef)(function({interactive:e=!1,padding:t=`md`,style:n,children:r,disabled:i,...a},o){let s=j(),c={backgroundColor:s.cardBgColor,borderWidth:1,borderColor:s.cardShadeColor,borderRadius:s.radiusLg,overflow:`hidden`,padding:it(s,t)};return e?(0,u.jsx)(l.Pressable,{ref:o,disabled:i,accessibilityRole:`button`,accessibilityState:{disabled:!!i},style:[c,{position:`relative`,opacity:i?s.opacityDisabled:1},n],...a,children:({pressed:e})=>(0,u.jsxs)(u.Fragment,{children:[r,e&&!i?(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:s.activeOverlay,borderRadius:s.radiusLg}]}):null]})}):(0,u.jsx)(l.View,{ref:o,style:[c,n],...a,children:r})}),ot=18,st=(0,c.forwardRef)(function({value:e,indeterminate:t=!1,onValueChange:n,disabled:r,style:i,...a},o){let s=j(),d=D(),f=k(),p=e||t,m=(0,c.useRef)(new l.Animated.Value(+!!p)).current,h=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(h.current){h.current=!1;return}let[e,t,n,r]=s.easingDefault;l.Animated.timing(m,{toValue:+!!p,duration:s.durationFast,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!1}).start()},[p,m,s.durationFast,s.easingDefault]);let g=f===`more`?s.windowFgColor:d===`dark`?s.dark1:s.light4,_=m.interpolate({inputRange:[0,1],outputRange:[g,s.accentBgColor]}),v=m.interpolate({inputRange:[0,1],outputRange:[s.cardBgColor,s.accentBgColor]});return(0,u.jsx)(l.Pressable,{ref:o,disabled:r,accessibilityRole:`checkbox`,accessibilityState:{checked:t?`mixed`:e,disabled:!!r},onPress:()=>n?.(!e),style:[{opacity:r?s.opacityDisabled:1},i],...a,children:(0,u.jsx)(l.Animated.View,{style:{width:ot,height:ot,alignItems:`center`,justifyContent:`center`,borderRadius:s.radiusSm,borderWidth:f===`more`?2:1.5,borderColor:_,backgroundColor:v},children:t?(0,u.jsx)(l.Animated.View,{style:{width:10,height:2,borderRadius:1,backgroundColor:`#fff`,opacity:m}}):(0,u.jsx)(l.Animated.Text,{style:{opacity:m,color:`#fff`,fontSize:13,fontWeight:`bold`,lineHeight:13},children:`✓`})})})}),ct=20,lt=(0,c.forwardRef)(function({title:e,subtitle:t,leading:n,checked:r,defaultChecked:i=!1,onCheckedChange:a,disabled:o,style:s,...d},f){let p=j(),m=D(),h=k(),g=r!==void 0,[_,v]=(0,c.useState)(i),y=g?r:_,b=(0,c.useRef)(new l.Animated.Value(+!!y)).current,x=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(x.current){x.current=!1;return}let[e,t,n,r]=p.easingDefault;l.Animated.timing(b,{toValue:+!!y,duration:p.durationFast,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!1}).start()},[y,b,p.durationFast,p.easingDefault]);let S=h===`more`?p.windowFgColor:m===`dark`?p.dark1:p.light4,C=b.interpolate({inputRange:[0,1],outputRange:[S,p.accentBgColor]}),w=b.interpolate({inputRange:[0,1],outputRange:[`transparent`,p.accentBgColor]});return(0,u.jsx)(l.Pressable,{ref:f,disabled:o,accessibilityRole:`checkbox`,accessibilityState:{checked:y,disabled:!!o},accessibilityLabel:t?`${e}, ${t}`:e,onPress:()=>{let e=!y;g||v(e),a?.(e)},style:[{flexDirection:`row`,alignItems:`center`,gap:p.space2,paddingVertical:p.space2,paddingHorizontal:p.space4,minHeight:52,width:`100%`,opacity:o?p.opacityDisabled:1},s],...d,children:({pressed:r})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Animated.View,{style:{width:ct,height:ct,flexShrink:0,alignItems:`center`,justifyContent:`center`,borderRadius:p.radiusSm,borderWidth:h===`more`?2:1.5,borderColor:C,backgroundColor:w},children:(0,u.jsx)(l.Animated.Text,{style:{opacity:b,color:`#fff`,fontSize:13,fontWeight:`bold`,lineHeight:13},children:`✓`})}),n&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n}),(0,u.jsxs)(l.View,{style:{flex:1,gap:2},children:[(0,u.jsx)(z,{variant:`body`,numberOfLines:1,ellipsizeMode:`tail`,style:{color:p.cardFgColor,fontWeight:String(p.fontWeightNormal)},children:e}),t&&(0,u.jsx)(z,{variant:`caption`,color:`dim`,numberOfLines:1,ellipsizeMode:`tail`,children:t})]}),r&&!o?(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:p.activeOverlay}]}):null]})})}),ut=({label:e,icon:t,onRemove:n,selectable:r=!1,selected:i=!1,onToggle:a,disabled:o=!1,style:s,testID:c})=>{let f=j(),p=r&&!n,m={flexDirection:`row`,alignItems:`center`,gap:f.space1,paddingVertical:3,paddingHorizontal:f.space2,borderRadius:f.radiusPill,borderWidth:1,borderColor:i?`${f.accentBgColor}80`:f.light3,backgroundColor:i?`${f.accentBgColor}26`:f.cardBgColor,overflow:`hidden`},h={color:i?f.accentColor:f.windowFgColor,fontWeight:String(i?f.fontWeightSemibold:f.fontWeightNormal)},g=(0,u.jsxs)(u.Fragment,{children:[t&&(0,u.jsx)(l.View,{style:{marginStart:-2},children:(0,u.jsx)(B,{icon:t,size:`sm`})}),(0,u.jsx)(z,{variant:`caption`,style:h,children:e}),n&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Remove ${e}`,disabled:o,onPress:n,hitSlop:8,style:{marginEnd:-4,opacity:o?f.opacityDisabled:1},children:(0,u.jsx)(B,{icon:d.Close,size:`sm`})})]});return p?(0,u.jsx)(l.Pressable,{testID:c,disabled:o,accessibilityRole:`checkbox`,accessibilityState:{checked:i,disabled:o},accessibilityLabel:e,onPress:a,style:[m,{opacity:o?f.opacityDisabled:1},s],children:({pressed:e})=>(0,u.jsxs)(u.Fragment,{children:[g,e&&!o&&(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:f.activeOverlay}]})]})}):(0,u.jsx)(l.View,{testID:c,style:[m,{opacity:o?f.opacityDisabled:1},s],children:g})},dt=e=>Math.min(Math.max(e,0),1),ft=(0,c.forwardRef)(function({maximumSize:e=600,tighteningThreshold:t=1,children:n,style:r,...i},a){return(0,u.jsx)(l.View,{ref:a,style:[{width:`${dt(t)*100}%`,maxWidth:e,alignSelf:`center`},r],...i,children:n})}),G=12,K=12,pt=7,mt=(e,t)=>({top:e.top-t,left:e.left-t,width:e.width+t*2,height:e.height+t*2}),ht=(e,t,n,r)=>{let i=e.left+e.width,a=e.top+e.height,o=e.left+e.width/2,s=e.top+e.height/2,c=[...new Set([r,{top:`bottom`,bottom:`top`,left:`right`,right:`left`}[r],`bottom`,`top`,`right`,`left`])],l=n=>{switch(n){case`bottom`:return{top:a+G,left:o-t.width/2};case`top`:return{top:e.top-t.height-G,left:o-t.width/2};case`left`:return{top:s-t.height/2,left:e.left-t.width-G};default:return{top:s-t.height/2,left:i+G}}};for(let e of c){let{top:r,left:i}=l(e),a=i>=K&&i+t.width<=n.width-K,c=r>=K&&r+t.height<=n.height-K;if(a&&c)return{top:r,left:i,placement:e,arrowOffset:e===`top`||e===`bottom`?o-i:s-r}}for(let e of c){let{top:r,left:i}=l(e);if(e===`top`||e===`bottom`){if(!(r>=K&&r+t.height<=n.height-K))continue;let a=Math.max(K,Math.min(i,n.width-t.width-K)),s=o-a;return{top:r,left:a,placement:e,arrowOffset:Math.max(11,Math.min(s,t.width-pt-4))}}if(!(i>=K&&i+t.width<=n.width-K))continue;let a=Math.max(K,Math.min(r,n.height-t.height-K)),c=s-a;return{top:a,left:i,placement:e,arrowOffset:Math.max(11,Math.min(c,t.height-pt-4))}}let u=a+G,d=o-t.width/2,f=Math.max(K,Math.min(u,n.height-t.height-K)),p=Math.max(K,Math.min(d,n.width-t.width-K)),m=o-p;return{top:f,left:p,placement:`bottom`,arrowOffset:Math.max(11,Math.min(m,t.width-pt-4))}},q=7,J=`rgba(0, 0, 0, 0.55)`,gt=({open:e,targetRef:t,title:n,description:r,placement:i=`bottom`,spotlight:a=!0,spotlightPadding:o=8,dismissOnBackdrop:s=!1,step:d,stepCount:f,primaryAction:p,secondaryAction:m,onDismiss:h,style:g,testID:_})=>{let v=j(),y=R(),[b,x]=(0,c.useState)(null),[S,C]=(0,c.useState)(null),[w,T]=(0,c.useState)(null),E=(0,c.useRef)(new l.Animated.Value(0)).current;(0,c.useEffect)(()=>{if(!e){x(null),C(null),T(null),E.setValue(0);return}let n=setTimeout(()=>{t.current?.measureInWindow((e,t,n,r)=>{x({top:t,left:e,width:n,height:r})})},50);return()=>clearTimeout(n)},[e,t,E]),(0,c.useEffect)(()=>{if(!b||!S)return;let{width:e,height:t}=l.Dimensions.get(`window`);T(ht(b,S,{width:e,height:t},i))},[b,S,i]),(0,c.useEffect)(()=>{if(w){if(y){E.setValue(1);return}l.Animated.timing(E,{toValue:1,duration:v.durationFast,useNativeDriver:!0}).start()}},[w,y,E,v.durationFast]),(0,c.useEffect)(()=>{if(!e)return;let t=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(h?.(),!0));return()=>t.remove()},[e,h]);let D=e=>{let{width:t,height:n}=e.nativeEvent.layout;C({width:t,height:n})};if(!e)return null;let O=b?mt(b,o):null,{width:k}=l.Dimensions.get(`window`),A={position:`absolute`,width:0,height:0,borderWidth:q,borderColor:`transparent`},M=(()=>{if(!w)return null;switch(w.placement){case`top`:return{...A,bottom:-14,left:w.arrowOffset-q,borderTopColor:v.cardBgColor};case`bottom`:return{...A,top:-14,left:w.arrowOffset-q,borderBottomColor:v.cardBgColor};case`left`:return{...A,right:-14,top:w.arrowOffset-q,borderLeftColor:v.cardBgColor};default:return{...A,left:-14,top:w.arrowOffset-q,borderRightColor:v.cardBgColor}}})();return(0,u.jsx)(l.Modal,{visible:e,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:h,children:(0,u.jsxs)(l.Animated.View,{pointerEvents:`box-none`,style:l.StyleSheet.absoluteFill,children:[a&&(0,u.jsx)(l.Pressable,{testID:_,onPress:s?h:void 0,accessible:!1,style:l.StyleSheet.absoluteFill,children:(0,u.jsx)(l.Animated.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{opacity:E}],children:O&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.View,{style:{position:`absolute`,top:0,left:0,right:0,height:Math.max(0,O.top),backgroundColor:J}}),(0,u.jsx)(l.View,{style:{position:`absolute`,top:Math.max(0,O.top+O.height),left:0,right:0,bottom:0,backgroundColor:J}}),(0,u.jsx)(l.View,{style:{position:`absolute`,top:Math.max(0,O.top),left:0,width:Math.max(0,O.left),height:O.height,backgroundColor:J}}),(0,u.jsx)(l.View,{style:{position:`absolute`,top:Math.max(0,O.top),left:Math.max(0,O.left+O.width),right:0,height:O.height,backgroundColor:J}}),(0,u.jsx)(l.View,{pointerEvents:`none`,style:{position:`absolute`,top:O.top,left:O.left,width:O.width,height:O.height,borderRadius:v.radiusMd,borderWidth:2,borderColor:v.accentColor}})]})})}),(0,u.jsxs)(l.Animated.View,{onLayout:D,accessible:!0,role:`dialog`,accessibilityViewIsModal:!0,style:[{position:`absolute`,maxWidth:Math.min(320,k-24),padding:v.space3,backgroundColor:v.cardBgColor,borderRadius:v.radiusLg,shadowColor:`#000`,shadowOffset:{width:0,height:4},shadowOpacity:.2,shadowRadius:16,elevation:8},w?{top:w.top,left:w.left,opacity:E,transform:[{scale:E.interpolate({inputRange:[0,1],outputRange:[.96,1]})}]}:{top:-9999,left:-9999,opacity:0},g],children:[M&&(0,u.jsx)(l.View,{style:M}),d!==void 0&&f!==void 0&&(0,u.jsx)(z,{variant:`caption`,style:{marginBottom:v.space1,color:v.accentColor,fontWeight:String(v.fontWeightBold)},children:`${d} of ${f}`}),n&&(0,u.jsx)(z,{variant:`title-4`,style:{marginBottom:v.space1,fontWeight:String(v.fontWeightBold)},children:n}),r&&(0,u.jsx)(z,{variant:`body`,color:`dim`,children:r}),(p||m)&&(0,u.jsxs)(l.View,{style:{flexDirection:`row`,justifyContent:`flex-end`,gap:v.space2,marginTop:v.space3},children:[m&&(0,u.jsx)(W,{variant:`flat`,size:`sm`,onPress:m.onPress,children:m.label}),p&&(0,u.jsx)(W,{variant:`suggested`,size:`sm`,onPress:p.onPress,children:p.label})]})]})]})})},_t={next:`Next`,back:`Back`,skip:`Skip`,finish:`Done`},vt=({steps:e,open:t,startIndex:n=0,onFinish:r,onSkip:i,onStepChange:a,placement:o=`bottom`,spotlight:s=!0,dismissOnBackdrop:l=!1,labels:d,testID:f})=>{let[p,m]=(0,c.useState)(n);if((0,c.useEffect)(()=>{t&&m(n)},[t,n]),!t||e.length===0)return null;let h=Math.min(p,e.length-1),g=e[h],_=h===0,v=h===e.length-1,y={..._t,...d},b=e=>{m(e),a?.(e)},x={label:v?y.finish:y.next,onPress:()=>v?r?.():b(h+1)},S=_?{label:y.skip,onPress:()=>i?.()}:{label:y.back,onPress:()=>b(h-1)};return(0,u.jsx)(gt,{open:t,targetRef:g.targetRef,title:g.title,description:g.description,placement:g.placement??o,spotlight:s,dismissOnBackdrop:l,step:h+1,stepCount:e.length,primaryAction:x,secondaryAction:S,onDismiss:()=>i?.(),testID:f})},yt={start:`flex-start`,center:`center`,end:`flex-end`,stretch:`stretch`},bt={start:`flex-start`,center:`center`,end:`flex-end`,"space-between":`space-between`,"space-around":`space-around`,"space-evenly":`space-evenly`},xt=(0,c.forwardRef)(function({childSpacing:e=6,lineSpacing:t,justify:n=`start`,align:r=`center`,wrapReverse:i=!1,children:a,style:o,...s},c){return(0,u.jsx)(l.View,{ref:c,style:[{flexDirection:`row`,flexWrap:i?`wrap-reverse`:`wrap`,columnGap:e,rowGap:t??e,justifyContent:bt[n],alignItems:yt[r],alignContent:`stretch`},o],...s,children:a})}),St={sm:22,md:30,lg:38},Ct=(0,c.forwardRef)(function({color:e,selected:t=!1,size:n=`md`,onSelect:r,accessibilityLabel:i,disabled:a=!1,style:o,...s},c){let d=j(),p=D()===`dark`,m=St[n],h=p?`rgba(255, 255, 255, 0.12)`:`rgba(0, 0, 0, 0.15)`,g=Math.round(m*.55);return(0,u.jsx)(l.View,{style:[{padding:2,borderRadius:d.radiusPill,backgroundColor:t?e:`transparent`,alignSelf:`flex-start`,opacity:a?d.opacityDisabled:1},t?{transform:[{scale:1.05}]}:null,o],children:(0,u.jsx)(l.Pressable,{ref:c,disabled:a,onPress:()=>r?.(e),accessibilityRole:`radio`,accessibilityState:{checked:t,disabled:a},accessibilityLabel:i??e,style:{width:m,height:m,borderRadius:d.radiusPill,alignItems:`center`,justifyContent:`center`,backgroundColor:e,borderWidth:t?2:1,borderColor:t?`rgba(255, 255, 255, 0.9)`:h},...s,children:t?(0,u.jsxs)(f.default,{width:g,height:g,viewBox:`0 0 16 16`,children:[(0,u.jsx)(f.Path,{d:`M3 8l3.5 3.5L13 5`,stroke:`rgba(0, 0, 0, 0.35)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`,translateY:1}),(0,u.jsx)(f.Path,{d:`M3 8l3.5 3.5L13 5`,stroke:`white`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`})]}):null})})}),wt=[{value:`#3584e4`,label:`Blue`},{value:`#2ec27e`,label:`Green`},{value:`#f6d32d`,label:`Yellow`},{value:`#ff7800`,label:`Orange`},{value:`#e01b24`,label:`Red`},{value:`#9141ac`,label:`Purple`},{value:`#986a44`,label:`Brown`},{value:`#2190a4`,label:`Teal`},{value:`#5e5c64`,label:`Slate`}],Tt=({value:e,onChange:t,colors:n=wt,allowCustom:r=!1,onRequestCustom:i,size:a=`md`,accessibilityLabel:o=`Color`,disabled:s=!1,style:c,testID:f})=>{let p=j(),m=D()===`dark`,h=St[a],g=e!==void 0&&!n.some(t=>t.value===e);return(0,u.jsxs)(xt,{testID:f,accessibilityRole:`radiogroup`,accessibilityLabel:o,childSpacing:8,align:`center`,style:c,children:[n.map(n=>(0,u.jsx)(Ct,{color:n.value,size:a,selected:n.value===e,disabled:s,onSelect:t,accessibilityLabel:n.label??n.value},n.value)),r?(0,u.jsxs)(u.Fragment,{children:[g&&e?(0,u.jsx)(Ct,{color:e,size:a,selected:!0,disabled:s,onSelect:i,accessibilityLabel:`Custom color`}):null,(0,u.jsx)(l.View,{style:{padding:2,alignSelf:`flex-start`},children:(0,u.jsx)(l.Pressable,{disabled:s,onPress:i,accessibilityRole:`button`,accessibilityLabel:`Choose custom color`,accessibilityState:{disabled:s},style:({pressed:e})=>({width:h,height:h,borderRadius:p.radiusPill,alignItems:`center`,justifyContent:`center`,borderWidth:1.5,borderStyle:`dashed`,borderColor:m?`rgba(255, 255, 255, 0.25)`:p.cardShadeColor,backgroundColor:e&&!s?p.activeOverlay:p.cardBgColor,opacity:s?p.opacityDisabled:1}),children:(0,u.jsx)(B,{icon:d.Add,width:Math.round(h*.5),height:Math.round(h*.5)})})})]}):null]})},Et=4,Dt=8,Ot=280;function kt(e,t){let{height:n}=l.Dimensions.get(`window`),r=n-(e.y+e.height)<t&&e.y>t,i=r?e.y-t-Et:e.y+e.height+Et;return{top:Math.max(Dt,Math.min(i,n-t-Dt)),left:e.x,width:e.width,flipUp:r}}var At=({options:e,value:t,onChange:n,placeholder:r=`Select an option`,accessibilityLabel:i,disabled:a,style:o,testID:s})=>{let f=j(),p=R(),[m,h]=(0,c.useState)(!1),[g,_]=(0,c.useState)(null),[v,y]=(0,c.useState)(null),[b,x]=(0,c.useState)(null),S=(0,c.useRef)(null),C=(0,c.useRef)(new l.Animated.Value(0)).current,w=e.find(e=>e.value===t),T=()=>{a||h(!0)},E=()=>h(!1),D=e=>{e.disabled||(n?.(e.value),E())};return(0,c.useEffect)(()=>{if(!m){_(null),y(null),x(null);return}S.current?.measureInWindow((e,t,n,r)=>{_({x:e,y:t,width:n,height:r})})},[m]),(0,c.useEffect)(()=>{g===null||v===null||x(kt(g,v))},[g,v]),(0,c.useEffect)(()=>{if(b){if(p){C.setValue(1);return}C.setValue(0),l.Animated.timing(C,{toValue:1,duration:f.durationFast,useNativeDriver:!0}).start()}},[b,p,C,f.durationFast]),(0,u.jsxs)(l.View,{style:o,children:[(0,u.jsxs)(l.Pressable,{ref:S,testID:s,role:`combobox`,accessibilityLabel:i,accessibilityState:{expanded:m,disabled:!!a},disabled:a,onPress:()=>m?E():T(),style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,gap:f.space1,minHeight:36,minWidth:160,paddingVertical:7,paddingHorizontal:f.space2,backgroundColor:e?f.activeOverlay:f.cardBgColor,borderWidth:1,borderColor:m?f.accentColor:f.cardShadeColor,borderRadius:f.radiusMd,opacity:a?f.opacityDisabled:1}),children:[(0,u.jsx)(z,{numberOfLines:1,style:{flex:1,fontSize:f.fontSizeBody,color:f.windowFgColor,opacity:w?1:f.opacityDim},children:w?.label??r}),(0,u.jsx)(B,{icon:d.PanDown,size:`md`,color:`default`,style:{transform:[{rotate:m?`180deg`:`0deg`}]}})]}),(0,u.jsx)(l.Modal,{visible:m,transparent:!0,animationType:`none`,statusBarTranslucent:!0,children:(0,u.jsx)(l.Pressable,{onPress:E,accessible:!1,style:{flex:1},testID:s?`${s}-backdrop`:void 0,children:(0,u.jsx)(l.Animated.View,{onLayout:e=>{y(Math.min(e.nativeEvent.layout.height,Ot))},role:`list`,accessible:!0,style:[{position:`absolute`,maxHeight:Ot,backgroundColor:f.popoverBgColor,borderWidth:1,borderColor:f.cardShadeColor,borderRadius:f.radiusMd,paddingVertical:4,shadowColor:`#000`,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:6},b?{top:b.top,left:b.left,width:b.width,opacity:C}:{top:-9999,left:-9999,width:200,opacity:0}],children:(0,u.jsx)(l.ScrollView,{bounces:!1,children:e.map(e=>{let n=e.value===t;return(0,u.jsxs)(l.Pressable,{role:`option`,accessibilityState:{selected:n,disabled:!!e.disabled},disabled:e.disabled,onPress:()=>D(e),style:({pressed:t})=>({flexDirection:`row`,alignItems:`center`,gap:f.space2,minHeight:40,paddingVertical:8,paddingHorizontal:f.space2,backgroundColor:t?f.activeOverlay:`transparent`,opacity:e.disabled?f.opacityDisabled:1}),children:[(0,u.jsxs)(l.View,{style:{flex:1,gap:1},children:[(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:f.fontSizeBody,color:f.windowFgColor,fontWeight:n?String(f.fontWeightSemibold):void 0},children:e.label}),e.description&&(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:f.fontSizeCaption,color:f.windowFgColor,opacity:f.opacityDim},children:e.description})]}),n&&(0,u.jsx)(B,{icon:d.Check,size:`md`,color:`blue`})]},e.value)})})})})})]})},jt=120,Mt=({title:e,subtitle:t,leading:n,options:r,value:i,defaultValue:a,onValueChange:o,placeholder:s=`—`,accessibilityLabel:l,disabled:d=!1,style:f,testID:p})=>{let m=j(),h=i!==void 0,[g,_]=(0,c.useState)(a),v=h?i:g;return(0,u.jsx)(ie,{testID:p,title:e,subtitle:t,leading:n,disabled:d,style:[d?{opacity:m.opacityDisabled}:null,f],trailing:(0,u.jsx)(At,{options:r,value:v,placeholder:s,accessibilityLabel:l??e,disabled:d,onChange:e=>{h||_(e),o?.(e)},style:{minWidth:jt}})})},Nt=l.Animated.createAnimatedComponent(l.Pressable),Pt=({open:e,title:t,children:n,buttons:r=[],onClose:i,closeOnBackdrop:a=!0,role:o=`dialog`,responses:s,onResponse:d,style:f,testID:p})=>{let m=j(),h=D(),g=R(),_=(0,c.useRef)(new l.Animated.Value(+!!g)).current,v=!!s,y=()=>{let e=s?.find(e=>e.variant!==`destructive`&&!e.disabled);e&&d?.(e.id)},b=()=>{v?y():i?.()},x=v?y:a?i:void 0;(0,c.useEffect)(()=>{if(!e)return;if(g){_.setValue(1);return}_.setValue(0);let[t,n,r,i]=m.easingDefault;l.Animated.timing(_,{toValue:1,duration:m.durationNormal,easing:l.Easing.bezier(t,n,r,i),useNativeDriver:!0}).start()},[e,g,_,m.durationNormal,m.easingDefault]),(0,c.useEffect)(()=>{if(!e)return;let t=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(b(),!0));return()=>t.remove()},[e,v,s,d,i]);let S=()=>{let e=v&&s?s:r;return e.length===0?null:(0,u.jsx)(l.View,{style:{borderTopWidth:1,borderTopColor:m.cardShadeColor},children:e.map((t,n)=>{let r=t.variant??`default`,i=r===`destructive`?m.destructiveColor:m.accentColor,a=v?()=>d?.(t.id):t.onPress;return(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityState:{disabled:t.disabled},disabled:t.disabled,onPress:a,style:({pressed:r})=>({paddingVertical:14,paddingHorizontal:m.space4,borderBottomWidth:+(n<e.length-1),borderBottomColor:m.cardShadeColor,backgroundColor:r?m.activeOverlay:`transparent`,opacity:t.disabled?m.opacityDisabled:1}),children:(0,u.jsx)(z,{variant:`body`,style:{textAlign:`center`,color:i,fontWeight:r===`suggested`?String(m.fontWeightSemibold):void 0},children:t.label})},v?t.id:t.label)})})},C=h===`dark`?{shadowOpacity:.5,shadowRadius:32,elevation:12}:{shadowOpacity:.25,shadowRadius:32,elevation:8};return(0,u.jsx)(l.Modal,{visible:e,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:b,children:(0,u.jsx)(Nt,{testID:p,onPress:x,style:{flex:1,alignItems:`center`,justifyContent:`center`,paddingHorizontal:24,backgroundColor:m.dialogBackdropColor,opacity:_},children:(0,u.jsx)(l.Pressable,{onPress:()=>{},accessible:!1,style:{width:`100%`,maxWidth:480},children:(0,u.jsxs)(l.Animated.View,{accessible:!0,role:o,accessibilityViewIsModal:!0,style:[{backgroundColor:m.dialogBgColor,borderRadius:m.radiusXl,overflow:`hidden`,shadowColor:`#000`,shadowOffset:{width:0,height:8},...C,opacity:_,transform:[{translateY:_.interpolate({inputRange:[0,1],outputRange:[-8,0]})},{scale:_.interpolate({inputRange:[0,1],outputRange:[.92,1]})}]},f],children:[t&&(0,u.jsx)(z,{variant:`title-4`,style:{padding:m.space4,paddingBottom:n?0:m.space4,textAlign:`center`,fontWeight:String(m.fontWeightBold)},children:t}),n&&(0,u.jsx)(l.View,{style:{paddingVertical:m.space2,paddingHorizontal:m.space4},children:typeof n==`string`?(0,u.jsx)(z,{variant:`body`,style:{textAlign:`center`,opacity:m.opacityDim},children:n}):n}),S()]})})})})},Ft=({children:e,accessibilityLabel:t,style:n,testID:r})=>{let i=j(),a=!!e;return(0,u.jsxs)(l.View,{testID:r,accessible:!0,role:`separator`,accessibilityLabel:t??(typeof e==`string`?e:void 0),style:[{flexDirection:`row`,alignItems:`center`,width:`100%`,gap:i.space2},n],children:[(0,u.jsx)(l.View,{style:{flex:1,height:1,backgroundColor:i.cardShadeColor}}),a&&(0,u.jsxs)(u.Fragment,{children:[typeof e==`string`?(0,u.jsx)(z,{variant:`caption`,color:`dim`,children:e}):e,(0,u.jsx)(l.View,{style:{flex:1,height:1,backgroundColor:i.cardShadeColor}})]})]})},It=6,Y=8,Lt=5;function Rt(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}function zt(e,t,n){switch(n){case`top`:return{top:e.y-t.height-It,left:e.x+e.width/2-t.width/2};case`bottom`:return{top:e.y+e.height+It,left:e.x+e.width/2-t.width/2};case`left`:return{top:e.y+e.height/2-t.height/2,left:e.x-t.width-It};case`right`:return{top:e.y+e.height/2-t.height/2,left:e.x+e.width+It}}}function Bt(e,t,n){let{width:r,height:i}=l.Dimensions.get(`window`),a=[n,n===`top`?`bottom`:n===`bottom`?`top`:n===`left`?`right`:`left`,`top`,`bottom`,`left`,`right`];for(let n of a){let{top:a,left:o}=zt(e,t,n),s=o>=Y&&o+t.width<=r-Y,c=a>=Y&&a+t.height<=i-Y;if(s&&c)return{top:Math.max(Y,Math.min(a,i-t.height-Y)),left:Math.max(Y,Math.min(o,r-t.width-Y)),placement:n}}let{top:o,left:s}=zt(e,t,n);return{top:Math.max(Y,Math.min(o,i-t.height-Y)),left:Math.max(Y,Math.min(s,r-t.width-Y)),placement:n}}var Vt=({label:e,placement:t=`top`,delay:n=500,children:r})=>{let i=j(),a=D(),o=R(),[s,d]=(0,c.useState)(!1),[f,p]=(0,c.useState)(null),[m,h]=(0,c.useState)(null),[g,_]=(0,c.useState)(null),v=(0,c.useRef)(null),y=(0,c.useRef)(null),b=(0,c.useRef)(new l.Animated.Value(0)).current,x=(0,c.useCallback)(()=>{y.current&&=(clearTimeout(y.current),null)},[]),S=(0,c.useCallback)(()=>{x(),d(!0)},[x]),C=(0,c.useCallback)(()=>{x(),y.current=setTimeout(S,n)},[x,S,n]),w=(0,c.useCallback)(()=>{x(),d(!1)},[x]);(0,c.useEffect)(()=>{if(!s){p(null),h(null),_(null);return}v.current?.measureInWindow((e,t,n,r)=>{p({x:e,y:t,width:n,height:r})})},[s]),(0,c.useEffect)(()=>{!f||!m||_(Bt(f,m,t))},[f,m,t]),(0,c.useEffect)(()=>{if(g){if(o){b.setValue(1);return}b.setValue(0),l.Animated.timing(b,{toValue:1,duration:i.durationFast,useNativeDriver:!0}).start()}},[g,o,b,i.durationFast]),(0,c.useEffect)(()=>x,[x]);let T=e=>{let{width:t,height:n}=e.nativeEvent.layout;h({width:t,height:n})},E=a===`dark`?`#c0bfbc`:`#3d3d3d`,O=a===`dark`?`rgba(0, 0, 0, 0.8)`:`#fff`,k=a===`dark`?{shadowOpacity:.4,shadowRadius:8,elevation:6}:{shadowOpacity:.2,shadowRadius:8,elevation:4},A={position:`absolute`,width:0,height:0,borderWidth:Lt,borderColor:`transparent`},M=(()=>{switch(g?.placement){case`top`:return{...A,top:`100%`,left:`50%`,marginLeft:-5,borderTopColor:E};case`bottom`:return{...A,bottom:`100%`,left:`50%`,marginLeft:-5,borderBottomColor:E};case`left`:return{...A,left:`100%`,top:`50%`,marginTop:-5,borderLeftColor:E};case`right`:return{...A,right:`100%`,top:`50%`,marginTop:-5,borderRightColor:E};default:return null}})(),N=r.props.ref;return(0,u.jsxs)(u.Fragment,{children:[(0,c.cloneElement)(r,{ref:e=>{v.current=e,Rt(N,e)},delayLongPress:n,accessibilityHint:r.props.accessibilityHint??e,onLongPress:e=>{S(),r.props.onLongPress?.(e)},onPressOut:e=>{w(),r.props.onPressOut?.(e)},onHoverIn:e=>{C(),r.props.onHoverIn?.(e)},onHoverOut:e=>{w(),r.props.onHoverOut?.(e)},onFocus:e=>{C(),r.props.onFocus?.(e)},onBlur:e=>{w(),r.props.onBlur?.(e)}}),(0,u.jsx)(l.Modal,{visible:s,transparent:!0,animationType:`none`,statusBarTranslucent:!0,children:(0,u.jsx)(l.View,{pointerEvents:`box-none`,style:l.StyleSheet.absoluteFill,children:(0,u.jsxs)(l.Animated.View,{onLayout:T,accessible:!0,role:`tooltip`,style:[{position:`absolute`,maxWidth:240,paddingVertical:4,paddingHorizontal:i.space2,backgroundColor:E,borderRadius:i.radiusSm,shadowColor:`#000`,shadowOffset:{width:0,height:2},...k},g?{top:g.top,left:g.left,opacity:b}:{top:-9999,left:-9999,opacity:0}],children:[(0,u.jsx)(z,{style:{color:O,fontSize:i.fontSizeCaption,fontWeight:String(i.fontWeightNormal),lineHeight:i.fontSizeCaption*i.lineHeightBody,textAlign:`center`},children:e}),M&&(0,u.jsx)(l.View,{style:M})]})})})]})},Ht={sm:`sm`,md:`md`,lg:`lg`},Ut=(0,c.forwardRef)(function({icon:e,label:t,variant:n=`default`,size:r=`md`,iconSize:i,tooltip:a,tooltipPlacement:o,tooltipDelay:s,...c},l){let d=(0,u.jsx)(W,{ref:l,accessibilityLabel:t,shape:`circular`,size:r,variant:n===`osd`?`flat`:n,osd:n===`osd`,...c,children:(0,u.jsx)(B,{icon:e,size:i??Ht[r]})});return a?(0,u.jsx)(Vt,{label:a,placement:o,delay:s,children:d}):d}),Wt=l.Animated.createAnimatedComponent(l.Pressable),Gt=(0,c.createContext)(0),Kt={classic:420,wide:640},qt=.85,Jt=240,Yt=({open:e,side:t=`right`,size:n=`classic`,title:r,content:i,children:a,onClose:o,closeOnBackdrop:s=!0,rail:f,style:p,testID:m})=>{let h=j(),g=D(),_=R(),v=(0,c.useContext)(Gt),y=i===void 0?a:i,b=Kt[n],x=v>0?Math.max(Jt,Math.round(b*qt**v)):b,S=l.Dimensions.get(`window`).width-h.space3*2,C=Math.min(x,S),w=(0,c.useRef)(new l.Animated.Value(+!!_)).current;(0,c.useEffect)(()=>{if(!e)return;if(_){w.setValue(1);return}w.setValue(0);let[t,n,r,i]=h.easingDefault;l.Animated.timing(w,{toValue:1,duration:h.durationNormal,easing:l.Easing.bezier(t,n,r,i),useNativeDriver:!0}).start()},[e,_,w,h.durationNormal,h.easingDefault]),(0,c.useEffect)(()=>{if(!e)return;let t=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(o?.(),!0));return()=>t.remove()},[e,o]);let T=t===`left`?-C:C,E=w.interpolate({inputRange:[0,1],outputRange:[T,0]}),O=g===`dark`?{shadowOpacity:.45,shadowRadius:24,elevation:12}:{shadowOpacity:.18,shadowRadius:24,elevation:8},k=f&&f.length>0?(0,u.jsx)(l.View,{style:{width:56,flexShrink:0,alignItems:`center`,gap:h.space2,paddingVertical:h.space3,[t===`right`?`borderRightWidth`:`borderLeftWidth`]:1,borderColor:h.cardShadeColor},children:f.map(e=>(0,u.jsx)(Ut,{icon:e.icon,label:e.label,tooltip:e.label,tooltipPlacement:t===`right`?`left`:`right`,variant:`flat`,size:`sm`,disabled:e.disabled,accessibilityState:{selected:!!e.active,disabled:!!e.disabled},onPress:e.onPress},e.id))}):null;return(0,u.jsx)(l.Modal,{visible:e,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:o,children:(0,u.jsx)(Wt,{testID:m,onPress:s?o:void 0,accessible:!1,style:{flex:1,flexDirection:`row`,justifyContent:t===`left`?`flex-start`:`flex-end`,padding:h.space3,backgroundColor:h.dialogBackdropColor,opacity:w},children:(0,u.jsx)(l.Pressable,{onPress:()=>{},accessible:!1,style:{width:C},children:(0,u.jsxs)(l.Animated.View,{accessible:!0,role:`dialog`,accessibilityViewIsModal:!0,style:[{flex:1,flexDirection:`row`,overflow:`hidden`,borderRadius:h.radiusXl,backgroundColor:h.dialogBgColor,shadowColor:`#000`,shadowOffset:{width:t===`left`?4:-4,height:0},...O,transform:[{translateX:E}]},p],children:[t===`right`&&k,(0,u.jsxs)(l.View,{style:{flex:1,minWidth:0},children:[r&&(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:h.space2,padding:h.space4,paddingBottom:h.space2},children:[(0,u.jsx)(z,{variant:`title-4`,style:{flex:1,fontWeight:String(h.fontWeightBold)},children:r}),o&&(0,u.jsx)(W,{variant:`flat`,shape:`circular`,size:`sm`,accessibilityLabel:`Close`,onPress:o,children:(0,u.jsx)(B,{icon:d.Close,size:`sm`})})]}),y!==void 0&&(0,u.jsx)(l.View,{style:{flex:1,padding:h.space4,paddingTop:r?0:h.space4},children:(0,u.jsx)(Gt.Provider,{value:v+1,children:typeof y==`string`?(0,u.jsx)(z,{variant:`body`,children:y}):y})})]}),t===`left`&&k]})})})})},Xt=6,Zt=(0,c.forwardRef)(function({title:e,value:t,defaultValue:n=``,onValueChange:r,onChangeText:i,leading:a,trailing:o,disabled:s=!1,onFocus:d,onBlur:f,accessibilityLabel:p,testID:m,style:h,...g},_){let v=j(),y=R(),b=t!==void 0,[x,S]=(0,c.useState)(n),C=b?t:x,[w,T]=(0,c.useState)(!1),[E,D]=(0,c.useState)(56),O=(0,c.useRef)(null),k=w||C.length>0,A=(0,c.useRef)(new l.Animated.Value(+!!k)).current;(0,c.useEffect)(()=>{if(y){A.setValue(+!!k);return}let e=l.Animated.timing(A,{toValue:+!!k,duration:v.durationFast,useNativeDriver:!1});return e.start(),()=>e.stop()},[k,y,A,v.durationFast]);let M=Math.round(v.fontSizeBody*v.lineHeightBody),N=Math.round(v.fontSizeCaption*v.lineHeightBody),P=(E-M)/2;return(0,u.jsxs)(l.Pressable,{accessible:!1,testID:m,disabled:s,onPress:()=>O.current?.focus(),style:[{flexDirection:`row`,alignItems:`center`,gap:v.space2,paddingHorizontal:v.space4,minHeight:56,width:`100%`,opacity:s?v.opacityDisabled:1},h],children:[a?(0,u.jsx)(l.View,{style:{flexShrink:0},children:a}):null,(0,u.jsxs)(l.View,{onLayout:e=>D(e.nativeEvent.layout.height),style:{flex:1,justifyContent:`center`,minHeight:56},children:[(0,u.jsx)(l.Animated.Text,{pointerEvents:`none`,accessibilityElementsHidden:!0,importantForAccessibility:`no`,numberOfLines:1,style:{position:`absolute`,left:0,right:0,top:P,fontFamily:v.fontFamily,color:v.windowFgColor,fontSize:A.interpolate({inputRange:[0,1],outputRange:[v.fontSizeBody,v.fontSizeCaption]}),lineHeight:A.interpolate({inputRange:[0,1],outputRange:[M,N]}),opacity:A.interpolate({inputRange:[0,1],outputRange:[v.opacityDim,.7]}),transform:[{translateY:A.interpolate({inputRange:[0,1],outputRange:[0,Xt-P]})}]},children:e}),(0,u.jsx)(l.Animated.View,{style:{opacity:A},children:(0,u.jsx)(l.TextInput,{ref:e=>{O.current=e,typeof _==`function`?_(e):_&&(_.current=e)},value:C,editable:!s,accessibilityLabel:p??e,onFocus:e=>{T(!0),d?.(e)},onBlur:e=>{T(!1),f?.(e)},onChangeText:e=>{b||S(e),r?.(e),i?.(e)},style:{padding:0,margin:0,width:`100%`,fontFamily:v.fontFamily,fontSize:v.fontSizeBody,lineHeight:M,color:v.cardFgColor,paddingTop:v.space4,paddingBottom:4},...g})})]}),o?(0,u.jsx)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:v.space1},children:o}):null]})}),Qt=({label:e,children:t,expanded:n,defaultExpanded:r=!1,onExpandedChange:i,disabled:a=!1,style:o,testID:s})=>{let f=j(),p=R(),m=n!==void 0,[h,g]=(0,c.useState)(r),_=m?n:h,[v,y]=(0,c.useState)(0),b=(0,c.useRef)(!1),x=(0,c.useRef)(new l.Animated.Value(0)).current,S=(0,c.useRef)(new l.Animated.Value(+!!r)).current,C=()=>{if(a)return;let e=!_;m||g(e),i?.(e)},w=e=>{let t=e.nativeEvent.layout.height;if(t===v){b.current=!0;return}_&&!b.current&&x.setValue(t),b.current=!0,y(t)};(0,c.useEffect)(()=>{let[e,t,n,r]=f.easingDefault,i=l.Easing.bezier(e,t,n,r),a=_?v:0;if(p){x.setValue(a),S.setValue(+!!_);return}l.Animated.parallel([l.Animated.timing(x,{toValue:a,duration:f.durationNormal,easing:i,useNativeDriver:!1}),l.Animated.timing(S,{toValue:+!!_,duration:f.durationFast,easing:i,useNativeDriver:!0})]).start()},[_,v,p,x,S,f.durationNormal,f.durationFast,f.easingDefault]);let T=_&&!b.current,E=S.interpolate({inputRange:[0,1],outputRange:[`0deg`,`90deg`]});return(0,u.jsxs)(l.View,{testID:s,style:[{width:`100%`},o],children:[(0,u.jsxs)(l.Pressable,{role:`button`,disabled:a,accessibilityState:{expanded:_,disabled:a},onPress:C,style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,alignSelf:`flex-start`,gap:f.space2,padding:f.space1,margin:-f.space1,borderRadius:f.radiusSm,backgroundColor:e?f.activeOverlay:`transparent`,opacity:a?f.opacityDisabled:1}),children:[(0,u.jsx)(l.Animated.View,{style:{opacity:.55,transform:[{rotate:E}]},children:(0,u.jsx)(B,{icon:d.PanEnd,size:`md`})}),typeof e==`string`?(0,u.jsx)(z,{style:{color:f.windowFgColor},children:e}):e]}),(0,u.jsx)(l.Animated.View,{style:{height:T?void 0:x,overflow:`hidden`},accessibilityElementsHidden:!_,importantForAccessibility:_?`yes`:`no`,children:(0,u.jsx)(l.View,{accessible:!0,role:`region`,onLayout:w,style:{paddingTop:f.space2},children:t})})]})},$t=(0,c.forwardRef)(function({title:e,subtitle:t,leading:n,trailing:r,children:i,expanded:a,defaultExpanded:o=!1,onExpandedChange:s,style:f,testID:p},m){let h=j(),g=R(),_=a!==void 0,[v,y]=(0,c.useState)(o),b=_?a:v,[x,S]=(0,c.useState)(0),C=(0,c.useRef)(!1),w=(0,c.useRef)(new l.Animated.Value(0)).current,T=(0,c.useRef)(new l.Animated.Value(+!!o)).current,E=()=>{let e=!b;_||y(e),s?.(e)},D=e=>{let t=e.nativeEvent.layout.height;if(t===x){C.current=!0;return}b&&!C.current&&w.setValue(t),C.current=!0,S(t)};(0,c.useEffect)(()=>{let[e,t,n,r]=h.easingDefault,i=l.Easing.bezier(e,t,n,r),a=b?x:0;if(g){w.setValue(a),T.setValue(+!!b);return}l.Animated.parallel([l.Animated.timing(w,{toValue:a,duration:h.durationNormal,easing:i,useNativeDriver:!1}),l.Animated.timing(T,{toValue:+!!b,duration:h.durationFast,easing:i,useNativeDriver:!0})]).start()},[b,x,g,w,T,h.durationNormal,h.durationFast,h.easingDefault]);let O=b&&!C.current,k=T.interpolate({inputRange:[0,1],outputRange:[`0deg`,`180deg`]}),A=c.Children.toArray(i).filter(Boolean);return(0,u.jsxs)(l.View,{ref:m,testID:p,style:[{width:`100%`},f],children:[(0,u.jsxs)(l.Pressable,{role:`button`,accessibilityState:{expanded:b},onPress:E,style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,gap:h.space2,paddingVertical:h.space2,paddingHorizontal:h.space4,minHeight:52,width:`100%`,backgroundColor:e?h.activeOverlay:`transparent`}),children:[n&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n}),(0,u.jsxs)(l.View,{style:{flex:1,gap:2},children:[(0,u.jsx)(z,{variant:`body`,numberOfLines:1,ellipsizeMode:`tail`,style:{color:h.cardFgColor,fontWeight:String(h.fontWeightNormal)},children:e}),t&&(0,u.jsx)(z,{variant:`caption`,color:`dim`,numberOfLines:1,ellipsizeMode:`tail`,children:t})]}),r&&(0,u.jsx)(l.View,{style:{flexShrink:0,flexDirection:`row`,alignItems:`center`,gap:h.space1},children:r}),(0,u.jsx)(l.Animated.View,{style:{opacity:.55,transform:[{rotate:k}]},children:(0,u.jsx)(B,{icon:d.PanDown,size:`md`})})]}),(0,u.jsx)(l.Animated.View,{style:{height:O?void 0:w,overflow:`hidden`},accessibilityElementsHidden:!b,importantForAccessibility:b?`yes`:`no`,children:(0,u.jsx)(l.View,{accessible:!0,role:`region`,onLayout:D,children:A.map((e,t)=>(0,u.jsxs)(l.View,{children:[(0,u.jsx)(U,{testID:`expander-row-separator`}),e]},t))})})]})}),en=({label:e,helperText:t,error:n,disabled:r=!1,children:i,style:a,...o})=>{let s=j(),c=n??t;return(0,u.jsxs)(l.View,{role:`group`,style:[{gap:s.space1,opacity:r?s.opacityDisabled:1},a],...o,children:[(0,u.jsx)(z,{variant:`body`,style:{color:s.windowFgColor,fontWeight:String(s.fontWeightSemibold)},children:e}),c&&(0,u.jsx)(z,{role:n?`alert`:void 0,variant:`caption`,style:{color:n?s.errorColor:s.windowFgColor,opacity:n?1:s.opacityDim},children:c}),(0,u.jsx)(l.View,{style:{gap:s.space2},children:i})]})},tn={folder:d.Folder,image:d.ImageXGeneric,audio:d.AudioXGeneric,video:d.VideoXGeneric,text:d.TextXGeneric,pdf:d.Document,archive:d.PackageXGeneric,document:d.XOfficeDocument,spreadsheet:d.XOfficeSpreadsheet,presentation:d.XOfficePresentation,font:d.FontXGeneric,executable:d.ApplicationXExecutable,unknown:d.TextXGeneric},nn={folder:`Folder`,image:`Image file`,audio:`Audio file`,video:`Video file`,text:`Text file`,pdf:`PDF document`,archive:`Archive`,document:`Document`,spreadsheet:`Spreadsheet`,presentation:`Presentation`,font:`Font file`,executable:`Executable`,unknown:`File`},rn={png:`image`,jpg:`image`,jpeg:`image`,gif:`image`,webp:`image`,svg:`image`,bmp:`image`,ico:`image`,tiff:`image`,heic:`image`,mp3:`audio`,wav:`audio`,ogg:`audio`,flac:`audio`,m4a:`audio`,aac:`audio`,mp4:`video`,mov:`video`,avi:`video`,mkv:`video`,webm:`video`,m4v:`video`,pdf:`pdf`,zip:`archive`,tar:`archive`,gz:`archive`,rar:`archive`,"7z":`archive`,xz:`archive`,doc:`document`,docx:`document`,odt:`document`,rtf:`document`,xls:`spreadsheet`,xlsx:`spreadsheet`,ods:`spreadsheet`,csv:`spreadsheet`,ppt:`presentation`,pptx:`presentation`,odp:`presentation`,ttf:`font`,otf:`font`,woff:`font`,woff2:`font`,exe:`executable`,app:`executable`,sh:`executable`,bin:`executable`,txt:`text`,md:`text`,log:`text`,json:`text`,yaml:`text`,yml:`text`,toml:`text`,xml:`text`,html:`text`,css:`text`,js:`text`,jsx:`text`,ts:`text`,tsx:`text`,py:`text`,rb:`text`,go:`text`,rs:`text`,c:`text`,cpp:`text`,h:`text`,java:`text`,sql:`text`},an={image:`image`,audio:`audio`,video:`video`,text:`text`,font:`font`},on={pdf:`pdf`,zip:`archive`,gzip:`archive`,"x-tar":`archive`,"x-7z-compressed":`archive`,"x-rar-compressed":`archive`,"vnd.rar":`archive`,msword:`document`,"vnd.openxmlformats-officedocument.wordprocessingml.document":`document`,"vnd.oasis.opendocument.text":`document`,"vnd.ms-excel":`spreadsheet`,"vnd.openxmlformats-officedocument.spreadsheetml.sheet":`spreadsheet`,"vnd.oasis.opendocument.spreadsheet":`spreadsheet`,"vnd.ms-powerpoint":`presentation`,"vnd.openxmlformats-officedocument.presentationml.presentation":`presentation`,"vnd.oasis.opendocument.presentation":`presentation`,"x-sh":`executable`,"x-executable":`executable`};function sn(e){let t=e.trim().toLowerCase();if(t===`inode/directory`)return`folder`;let[n,r]=t.split(`/`);return r&&on[r]?on[r]:an[n]??null}function cn(e){let t=e.trim().replace(/^\.+/,``),n=t.lastIndexOf(`.`);return n<=0?null:rn[t.slice(n+1).toLowerCase()]??null}function ln(e){return tn[e]}function un(e){return nn[e]}var dn=({name:e,mimeType:t,isFolder:n=!1,thumbnail:r,label:i,size:a=`md`,style:o,testID:s})=>{let c=j(),d=ae[a],f=n?`folder`:t&&sn(t)||e&&cn(e)||`unknown`;return(0,u.jsx)(l.View,{testID:s,accessible:!0,role:`img`,accessibilityLabel:i??un(f),style:[{width:d,height:d,alignItems:`center`,justifyContent:`center`},o],children:r?(0,u.jsx)(l.Image,{testID:s?`${s}-thumbnail`:void 0,source:{uri:r},resizeMode:`cover`,style:{width:d,height:d,borderRadius:c.radiusSm}}):(0,u.jsx)(B,{icon:ln(f),size:a})})},fn=4,pn=8,mn=320;function hn(e,t){let{height:n}=l.Dimensions.get(`window`),r=n-(e.y+e.height)<t&&e.y>t,i=r?e.y-t-fn:e.y+e.height+fn;return{top:Math.max(pn,Math.min(i,n-t-pn)),left:e.x,width:e.width,flipUp:r}}function gn(e,t){return e===1?t[0].label:`${e} selected`}function _n(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>e.label.toLowerCase().includes(n)||e.description?.toLowerCase().includes(n)):e}var vn=({options:e,value:t,onChange:n,placeholder:r=`Select options`,filterPlaceholder:i=`Filter options…`,accessibilityLabel:a,disabled:o,style:s,testID:f})=>{let p=j(),m=R(),[h,g]=(0,c.useState)(!1),[_,v]=(0,c.useState)(``),[y,b]=(0,c.useState)(null),[x,S]=(0,c.useState)(null),[C,w]=(0,c.useState)(null),T=(0,c.useRef)(null),E=(0,c.useRef)(new l.Animated.Value(0)).current,D=e.filter(e=>t.includes(e.value)),O=_n(e,_),k=()=>{o||(v(``),g(!0))},A=()=>g(!1),M=e=>{e.disabled||n(t.includes(e.value)?t.filter(t=>t!==e.value):[...t,e.value])};return(0,c.useEffect)(()=>{if(!h){b(null),S(null),w(null);return}T.current?.measureInWindow((e,t,n,r)=>{b({x:e,y:t,width:n,height:r})})},[h]),(0,c.useEffect)(()=>{y===null||x===null||w(hn(y,x))},[y,x]),(0,c.useEffect)(()=>{if(C){if(m){E.setValue(1);return}E.setValue(0),l.Animated.timing(E,{toValue:1,duration:p.durationFast,useNativeDriver:!0}).start()}},[C,m,E,p.durationFast]),(0,u.jsxs)(l.View,{style:s,children:[(0,u.jsxs)(l.Pressable,{ref:T,testID:f,role:`combobox`,accessibilityLabel:a,accessibilityState:{expanded:h,disabled:!!o},disabled:o,onPress:()=>h?A():k(),style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,gap:p.space1,minHeight:36,minWidth:160,paddingVertical:7,paddingHorizontal:p.space2,backgroundColor:e?p.activeOverlay:p.cardBgColor,borderWidth:1,borderColor:h?p.accentColor:p.cardShadeColor,borderRadius:p.radiusMd,opacity:o?p.opacityDisabled:1}),children:[(0,u.jsx)(z,{numberOfLines:1,style:{flex:1,fontSize:p.fontSizeBody,color:p.windowFgColor,opacity:D.length===0?p.opacityDim:1},children:D.length===0?r:gn(D.length,D)}),(0,u.jsx)(B,{icon:d.PanDown,size:`md`,color:`default`,style:{transform:[{rotate:h?`180deg`:`0deg`}]}})]}),(0,u.jsx)(l.Modal,{visible:h,transparent:!0,animationType:`none`,statusBarTranslucent:!0,children:(0,u.jsx)(l.Pressable,{onPress:A,accessible:!1,style:{flex:1},testID:f?`${f}-backdrop`:void 0,children:(0,u.jsxs)(l.Animated.View,{onLayout:e=>{S(Math.min(e.nativeEvent.layout.height,mn))},style:[{position:`absolute`,maxHeight:mn,backgroundColor:p.popoverBgColor,borderWidth:1,borderColor:p.cardShadeColor,borderRadius:p.radiusMd,shadowColor:`#000`,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:6},C?{top:C.top,left:C.left,width:C.width,opacity:E}:{top:-9999,left:-9999,width:200,opacity:0}],children:[(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,padding:8,borderBottomWidth:1,borderBottomColor:p.cardShadeColor},children:[(0,u.jsx)(l.View,{style:{position:`absolute`,left:16,zIndex:1},children:(0,u.jsx)(B,{icon:d.Search,size:`sm`,color:`default`,style:{opacity:p.opacityDim}})}),(0,u.jsx)(l.TextInput,{value:_,onChangeText:v,placeholder:i,placeholderTextColor:p.windowFgColor,accessibilityLabel:i,autoFocus:!0,style:{flex:1,paddingVertical:6,paddingHorizontal:8,paddingLeft:28,fontFamily:p.fontFamily,fontSize:p.fontSizeBody,color:p.viewFgColor,backgroundColor:p.viewBgColor,borderWidth:1,borderColor:p.cardShadeColor,borderRadius:p.radiusMd}})]}),O.length===0?(0,u.jsx)(z,{style:{marginVertical:16,textAlign:`center`,color:p.windowFgColor,opacity:p.opacityDim},children:`No results`}):(0,u.jsx)(l.ScrollView,{role:`list`,accessible:!0,bounces:!1,style:{paddingVertical:4},children:O.map(e=>{let n=t.includes(e.value);return(0,u.jsxs)(l.Pressable,{role:`option`,accessibilityState:{selected:n,disabled:!!e.disabled},disabled:e.disabled,onPress:()=>M(e),style:({pressed:t})=>({flexDirection:`row`,alignItems:`center`,gap:p.space2,minHeight:40,paddingVertical:8,paddingHorizontal:p.space2,backgroundColor:t?p.activeOverlay:`transparent`,opacity:e.disabled?p.opacityDisabled:1}),children:[(0,u.jsx)(l.View,{style:{width:16,height:16,flexShrink:0,alignItems:`center`,justifyContent:`center`,borderRadius:p.radiusSm,borderWidth:1.5,borderColor:n?p.accentBgColor:p.cardShadeColor,backgroundColor:n?p.accentBgColor:`transparent`},children:n&&(0,u.jsx)(z,{style:{color:`#fff`,fontSize:11,fontWeight:`bold`,lineHeight:11},children:`✓`})}),(0,u.jsxs)(l.View,{style:{flex:1,gap:1},children:[(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:p.fontSizeBody,color:p.windowFgColor,fontWeight:n?String(p.fontWeightSemibold):void 0},children:e.label}),e.description&&(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:p.fontSizeCaption,color:p.windowFgColor,opacity:p.opacityDim},children:e.description})]})]},e.value)})})]})})})]})},yn=(0,c.forwardRef)(function({title:e,start:t,end:n,flat:r=!1,style:i,...a},o){let s=j();return(0,u.jsxs)(l.View,{ref:o,style:[{flexDirection:`row`,alignItems:`center`,gap:s.space1,paddingHorizontal:s.space2,minHeight:47,backgroundColor:s.headerbarBgColor,borderBottomWidth:+!r,borderBottomColor:s.headerbarBorderColor},i],...a,children:[(0,u.jsx)(l.View,{style:{flex:1,flexDirection:`row`,alignItems:`center`,gap:s.space1},children:t}),(0,u.jsx)(l.View,{accessibilityLiveRegion:`polite`,style:{alignItems:`center`,justifyContent:`center`,paddingHorizontal:s.space1},children:typeof e==`string`?(0,u.jsx)(l.Text,{numberOfLines:1,ellipsizeMode:`tail`,style:{fontFamily:s.fontFamily,fontSize:s.fontSizeBody,fontWeight:String(s.fontWeightSemibold),lineHeight:Math.round(s.fontSizeBody*s.lineHeightHeading),color:s.headerbarFgColor},children:e}):e}),(0,u.jsx)(l.View,{style:{flex:1,flexDirection:`row`,alignItems:`center`,justifyContent:`flex-end`,gap:s.space1},children:n})]})});function bn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var xn=({text:e,query:t,caseSensitive:n=!1,...r})=>{let i=j(),a=k(),o=(Array.isArray(t)?t:[t]).map(e=>e.trim()).filter(Boolean);if(o.length===0)return(0,u.jsx)(z,{...r,children:e});let s=RegExp(`(${o.map(bn).join(`|`)})`,n?`g`:`gi`),c=e.split(s),d={fontWeight:String(i.fontWeightSemibold),...a===`more`?{backgroundColor:i.accentBgColor,color:`#fff`}:{backgroundColor:`${i.accentBgColor}4D`}};return(0,u.jsx)(z,{...r,children:c.map((e,t)=>t%2==1?(0,u.jsx)(l.Text,{style:d,children:e},t):e)})};function Sn(e,t,n){let r=n?`rgba(255, 255, 255, 0.12)`:e.light3,i=`${e.accentBgColor}${n?`40`:`26`}`,a=`${e.accentBgColor}${n?`80`:`66`}`;switch(t){case`flat`:return{container:{backgroundColor:`transparent`,borderRadius:e.radiusMd,padding:2,gap:2},gap:2,padding:2,item:{borderRadius:e.radiusMd-2,paddingHorizontal:e.space2},iconOnlyItem:{paddingHorizontal:4,minWidth:28},indicator:{backgroundColor:i,borderRadius:e.radiusMd-2},indicatorInset:2,activeTextColor:e.accentColor,idleTextColor:e.windowFgColor};case`round`:return{container:{backgroundColor:e.cardBgColor,borderWidth:1,borderColor:r,borderRadius:e.radiusPill,padding:2,gap:2},gap:2,padding:2,item:{borderRadius:e.radiusPill,paddingHorizontal:e.space2},iconOnlyItem:{paddingHorizontal:4,minWidth:28},indicator:{backgroundColor:e.accentBgColor,borderRadius:e.radiusPill},indicatorInset:2,activeTextColor:e.accentFgColor,idleTextColor:e.windowFgColor};case`pill`:return{container:{backgroundColor:e.hoverOverlay,borderRadius:e.radiusPill,padding:3,gap:2},gap:2,padding:3,item:{borderRadius:e.radiusPill,paddingVertical:5,paddingHorizontal:e.space2},iconOnlyItem:{paddingHorizontal:5,minWidth:28},indicator:{backgroundColor:e.cardBgColor,borderRadius:e.radiusPill},indicatorInset:3,activeTextColor:e.windowFgColor,idleTextColor:e.windowFgColor};default:return{container:{backgroundColor:e.cardBgColor,borderWidth:1,borderColor:r,borderRadius:e.radiusMd,padding:2,gap:2},gap:2,padding:2,item:{borderRadius:e.radiusMd-2,paddingHorizontal:e.space2},iconOnlyItem:{paddingHorizontal:4,minWidth:28},indicator:{backgroundColor:i,borderRadius:e.radiusMd-2,borderWidth:1,borderColor:a},indicatorInset:2,activeTextColor:e.accentColor,idleTextColor:e.windowFgColor}}}function Cn(e,t,n){return{fontFamily:e.fontFamily,fontSize:e.fontSizeBody,fontWeight:String(t?e.fontWeightSemibold:e.fontWeightNormal),color:n}}var wn=(0,c.createContext)(null);function Tn(){let e=(0,c.useContext)(wn);if(!e)throw Error(`InlineViewSwitcherItem must be used inside InlineViewSwitcher`);return e}var En=160,Dn=30,On=(0,c.forwardRef)(function({value:e,onValueChange:t,variant:n=`default`,overflow:r=`wrap`,accessibilityLabel:i=`View switcher`,children:a,style:o,...s},f){let p=j(),m=D()===`dark`,h=R(),g=(0,c.useMemo)(()=>Sn(p,n,m),[p,n,m]),[_,v]=(0,c.useState)({}),[y,b]=(0,c.useState)(0),[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(!1),T=(0,c.useRef)(0),E=(0,c.useRef)(new l.Animated.Value(0)).current,O=(0,c.useRef)(new l.Animated.Value(0)).current,k=(0,c.useCallback)((e,t)=>{v(n=>{let r=n[e];return r&&r.x===t.x&&r.width===t.width?n:{...n,[e]:t}})},[]),A=r===`compact`||r===`menu`,M=(0,c.useMemo)(()=>c.Children.toArray(a).filter(c.isValidElement).filter(e=>e.type.displayName===`InlineViewSwitcherItem`).map(e=>e.props),[a]),N=(0,c.useMemo)(()=>{let e=M.map(e=>_[e.name]?.width??0);if(e.some(e=>e===0))return 0;let t=Math.max(M.length-1,0)*g.gap;return e.reduce((e,t)=>e+t,0)+t+2*g.padding},[M,_,g.gap,g.padding]);(0,c.useEffect)(()=>{if(!A||y===0||N===0){A||S(!1);return}S(e=>e?T.current>y+Dn:N>y?(T.current=N,!0):!1)},[A,y,N]);let P=r===`compact`&&x,F=r===`menu`&&x,I=M.find(t=>t.name===e)??M[0],L=_[e];(0,c.useEffect)(()=>{if(F||!L)return;if(h){E.setValue(L.x),O.setValue(L.width);return}let e=l.Animated.parallel([l.Animated.timing(E,{toValue:L.x,duration:En,useNativeDriver:!1}),l.Animated.timing(O,{toValue:L.width,duration:En,useNativeDriver:!1})]);return e.start(),()=>e.stop()},[L,F,h,E,O]);let ee=(0,c.useMemo)(()=>({value:e,onValueChange:t,compact:P,styles:g,onItemLayout:k}),[e,t,P,g,k]),te=(0,c.useCallback)(e=>{A&&b(e.nativeEvent.layout.width)},[A]),ne=(0,c.useMemo)(()=>r===`scroll`?M.map(e=>_[e.name]?.x??0).filter((e,t)=>t===0||e>0):void 0,[r,M,_]),re=(0,u.jsx)(l.View,{ref:f,accessibilityRole:F?void 0:`radiogroup`,accessibilityLabel:i,onLayout:te,style:[{flexDirection:`row`,alignItems:`stretch`},g.container,A?{width:`100%`}:{alignSelf:`flex-start`},o],...s,children:F?(0,u.jsxs)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`${i}: ${I?.label??I?.name}`,onPress:()=>w(!0),style:[{flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:p.space1,minHeight:28,paddingVertical:4},g.item],children:[I?.icon?(0,u.jsx)(B,{icon:I.icon,size:`md`}):null,I?.label?(0,u.jsx)(l.Text,{style:Cn(p,!0,g.idleTextColor),children:I.label}):null,(0,u.jsx)(B,{icon:d.PanDown,size:`sm`})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Animated.View,{pointerEvents:`none`,style:[{position:`absolute`,left:0,top:g.indicatorInset,bottom:g.indicatorInset,width:O,transform:[{translateX:E}]},g.indicator]}),a]})});return(0,u.jsxs)(wn.Provider,{value:ee,children:[r===`scroll`?(0,u.jsx)(l.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,snapToOffsets:ne,decelerationRate:`fast`,contentContainerStyle:{flexGrow:0},style:{flexGrow:0},children:re}):re,r===`menu`?(0,u.jsx)(Ue,{open:C,title:i,onClose:()=>w(!1),children:(0,u.jsx)(l.View,{accessibilityRole:`radiogroup`,accessibilityLabel:i,children:M.map(n=>{let r=n.name===e;return(0,u.jsxs)(l.Pressable,{accessibilityRole:`radio`,accessibilityState:{checked:r},accessibilityLabel:n.label??n.name,onPress:()=>{t(n.name),w(!1)},style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,gap:p.space2,paddingVertical:p.space2,paddingHorizontal:p.space3,borderRadius:p.radiusMd,backgroundColor:e?p.activeOverlay:`transparent`}),children:[n.icon?(0,u.jsx)(B,{icon:n.icon,size:`md`}):null,(0,u.jsx)(l.Text,{style:[Cn(p,r,r?p.accentColor:p.windowFgColor),{flex:1}],children:n.label??n.name}),r?(0,u.jsx)(B,{icon:d.Check,size:`md`}):null]},n.name)})})}):null]})}),kn=(0,c.forwardRef)(function({name:e,label:t,icon:n,accessibilityLabel:r,disabled:i=!1,...a},o){let s=j(),{value:d,onValueChange:f,compact:p,styles:m,onItemLayout:h}=Tn(),g=d===e,_=!!t&&!(p&&n),v=!!n&&!_;return(0,u.jsxs)(l.Pressable,{ref:o,disabled:i,onPress:()=>f(e),onLayout:(0,c.useCallback)(t=>{let{x:n,width:r}=t.nativeEvent.layout;h(e,{x:n,width:r})},[e,h]),accessibilityRole:`radio`,accessibilityState:{checked:g,disabled:i},accessibilityLabel:r??t,style:[{flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:s.space1,minHeight:28,paddingVertical:4,opacity:i?s.opacityDisabled:1},m.item,v?m.iconOnlyItem:null],...a,children:[n?(0,u.jsx)(B,{icon:n,size:`md`}):null,_?(0,u.jsx)(l.Text,{numberOfLines:1,style:Cn(s,g,g?m.activeTextColor:m.idleTextColor),children:t}):null]})});kn.displayName=`InlineViewSwitcherItem`;function An(e,t,n,r,i,a){return t!==void 0&&e<=t?n:r!==void 0&&e>=r?i:a}function jn(e,t){switch(t){case`accent`:return e.accentBgColor;case`success`:return e.successBgColor;case`warning`:return e.warningBgColor;case`error`:return e.errorBgColor}}var Mn=({value:e,min:t=0,max:n=1,low:r,lowVariant:i=`warning`,high:a,highVariant:o=`error`,variant:s=`accent`,discrete:d=!1,numBlocks:f=10,accessibilityLabel:p,style:m,testID:h})=>{let g=j(),_=D(),v=R(),y=n-t,b=Math.min(n,Math.max(t,e)),x=y>0?(b-t)/y:0,S=An(b,r,i,a,o,s),C=(0,c.useRef)(new l.Animated.Value(x)).current;(0,c.useEffect)(()=>{if(d)return;let[e,t,n,r]=g.easingDefault;l.Animated.timing(C,{toValue:x,duration:v?0:g.durationNormal,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!0}).start()},[x,d,v,C,g.durationNormal,g.easingDefault]);let w=_===`dark`?g.dark2:g.light3;return(0,u.jsx)(l.View,{testID:h,accessible:!0,role:`meter`,accessibilityLabel:p,accessibilityValue:{min:t,max:n,now:b},style:[{flexDirection:`row`,width:`100%`,height:6,borderRadius:d?0:g.radiusPill,backgroundColor:d?`transparent`:w,overflow:d?`visible`:`hidden`,gap:d?2:0},m],children:d?Array.from({length:f},(e,t)=>(0,u.jsx)(l.View,{testID:`level-bar-block`,accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{flex:1,height:`100%`,minWidth:2,borderRadius:1,backgroundColor:(t+1)/f<=x?jn(g,S):w}},t)):(0,u.jsx)(l.Animated.View,{testID:h?`${h}-fill`:void 0,style:{width:`100%`,height:`100%`,borderRadius:g.radiusPill,backgroundColor:jn(g,S),transformOrigin:`left`,transform:[{scaleX:C}]}})})},Nn=(0,c.forwardRef)(function({href:e,external:t=!1,children:n,style:r,textStyle:i,onPress:a,...o},s){let c=j();return(0,u.jsx)(l.Pressable,{ref:s,accessibilityRole:`link`,accessibilityHint:t?`Opens in browser`:void 0,onPress:a??(()=>l.Linking.openURL(e)),style:r,...o,children:({pressed:e})=>(0,u.jsxs)(z,{style:[{color:c.accentColor,textDecorationLine:e?`underline`:`none`,opacity:e?.7:1},i],children:[n,t&&(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{fontSize:12},children:` ↗`})]})})}),Pn=4,Fn=8,In=280;function Ln(e,t){let{height:n}=l.Dimensions.get(`window`),r=n-(e.y+e.height)<t&&e.y>t,i=r?e.y-t-Pn:e.y+e.height+Pn;return{top:Math.max(Fn,Math.min(i,n-t-Fn)),left:e.x,width:e.width,flipUp:r}}function Rn(e,t){return e===1?t[0].label:`${e} selected`}var zn=({options:e,value:t,onChange:n,placeholder:r=`Select options`,accessibilityLabel:i,disabled:a,style:o,testID:s})=>{let f=j(),p=R(),[m,h]=(0,c.useState)(!1),[g,_]=(0,c.useState)(null),[v,y]=(0,c.useState)(null),[b,x]=(0,c.useState)(null),S=(0,c.useRef)(null),C=(0,c.useRef)(new l.Animated.Value(0)).current,w=e.filter(e=>t.includes(e.value)),T=()=>{a||h(!0)},E=()=>h(!1),D=e=>{e.disabled||n(t.includes(e.value)?t.filter(t=>t!==e.value):[...t,e.value])};return(0,c.useEffect)(()=>{if(!m){_(null),y(null),x(null);return}S.current?.measureInWindow((e,t,n,r)=>{_({x:e,y:t,width:n,height:r})})},[m]),(0,c.useEffect)(()=>{g===null||v===null||x(Ln(g,v))},[g,v]),(0,c.useEffect)(()=>{if(b){if(p){C.setValue(1);return}C.setValue(0),l.Animated.timing(C,{toValue:1,duration:f.durationFast,useNativeDriver:!0}).start()}},[b,p,C,f.durationFast]),(0,u.jsxs)(l.View,{style:o,children:[(0,u.jsxs)(l.Pressable,{ref:S,testID:s,role:`combobox`,accessibilityLabel:i,accessibilityState:{expanded:m,disabled:!!a},disabled:a,onPress:()=>m?E():T(),style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,gap:f.space1,minHeight:36,minWidth:160,paddingVertical:7,paddingHorizontal:f.space2,backgroundColor:e?f.activeOverlay:f.cardBgColor,borderWidth:1,borderColor:m?f.accentColor:f.cardShadeColor,borderRadius:f.radiusMd,opacity:a?f.opacityDisabled:1}),children:[(0,u.jsx)(z,{numberOfLines:1,style:{flex:1,fontSize:f.fontSizeBody,color:f.windowFgColor,opacity:w.length===0?f.opacityDim:1},children:w.length===0?r:Rn(w.length,w)}),(0,u.jsx)(B,{icon:d.PanDown,size:`md`,color:`default`,style:{transform:[{rotate:m?`180deg`:`0deg`}]}})]}),(0,u.jsx)(l.Modal,{visible:m,transparent:!0,animationType:`none`,statusBarTranslucent:!0,children:(0,u.jsx)(l.Pressable,{onPress:E,accessible:!1,style:{flex:1},testID:s?`${s}-backdrop`:void 0,children:(0,u.jsx)(l.Animated.View,{onLayout:e=>{y(Math.min(e.nativeEvent.layout.height,In))},role:`list`,accessible:!0,style:[{position:`absolute`,maxHeight:In,backgroundColor:f.popoverBgColor,borderWidth:1,borderColor:f.cardShadeColor,borderRadius:f.radiusMd,paddingVertical:4,shadowColor:`#000`,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:6},b?{top:b.top,left:b.left,width:b.width,opacity:C}:{top:-9999,left:-9999,width:200,opacity:0}],children:(0,u.jsx)(l.ScrollView,{bounces:!1,children:e.map(e=>{let n=t.includes(e.value);return(0,u.jsxs)(l.Pressable,{role:`option`,accessibilityState:{selected:n,disabled:!!e.disabled},disabled:e.disabled,onPress:()=>D(e),style:({pressed:t})=>({flexDirection:`row`,alignItems:`center`,gap:f.space2,minHeight:40,paddingVertical:8,paddingHorizontal:f.space2,backgroundColor:t?f.activeOverlay:`transparent`,opacity:e.disabled?f.opacityDisabled:1}),children:[(0,u.jsx)(l.View,{style:{width:16,height:16,flexShrink:0,alignItems:`center`,justifyContent:`center`,borderRadius:f.radiusSm,borderWidth:1.5,borderColor:n?f.accentBgColor:f.cardShadeColor,backgroundColor:n?f.accentBgColor:`transparent`},children:n&&(0,u.jsx)(z,{style:{color:`#fff`,fontSize:11,fontWeight:`bold`,lineHeight:11},children:`✓`})}),(0,u.jsxs)(l.View,{style:{flex:1,gap:1},children:[(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:f.fontSizeBody,color:f.windowFgColor,fontWeight:n?String(f.fontWeightSemibold):void 0},children:e.label}),e.description&&(0,u.jsx)(z,{numberOfLines:1,style:{fontSize:f.fontSizeCaption,color:f.windowFgColor,opacity:f.opacityDim},children:e.description})]})]},e.value)})})})})})]})},Bn=l.Animated.createAnimatedComponent(l.Pressable),Vn=({open:e,onDismiss:t,children:n,style:r,testID:i})=>{let a=j(),o=R(),[s,d]=(0,c.useState)(e),f=(0,c.useRef)(new l.Animated.Value(+!!e)).current;return(0,c.useEffect)(()=>{e&&d(!0)},[e]),(0,c.useEffect)(()=>{if(s)if(e){if(o){f.setValue(1);return}f.setValue(0),l.Animated.timing(f,{toValue:1,duration:a.durationNormal,useNativeDriver:!0}).start()}else{if(o){d(!1);return}l.Animated.timing(f,{toValue:0,duration:a.durationNormal,useNativeDriver:!0}).start(({finished:e})=>{e&&d(!1)})}},[e,s,o,f,a.durationNormal]),s?(0,u.jsx)(l.Modal,{visible:s,transparent:!0,animationType:`none`,statusBarTranslucent:!0,children:(0,u.jsx)(Bn,{testID:i,onPress:t,accessible:!1,style:[{flex:1,alignItems:`center`,justifyContent:`center`,backgroundColor:a.dialogBackdropColor,opacity:f},r],children:(0,u.jsx)(l.Pressable,{onPress:()=>{},accessible:!1,children:n})})}):null},Hn=(0,c.forwardRef)(function({trailing:e,disabled:t=!1,autoComplete:n=`current-password`,...r},i){let[a,o]=(0,c.useState)(!1);return(0,u.jsx)(Zt,{ref:i,...r,autoComplete:n,secureTextEntry:!a,disabled:t,trailing:(0,u.jsxs)(u.Fragment,{children:[e,(0,u.jsx)(Ut,{icon:a?d.ViewConceal:d.ViewReveal,label:a?`Conceal password`:`Reveal password`,variant:`flat`,disabled:t,accessibilityState:{selected:a,disabled:t},onPress:()=>o(e=>!e)})]})})});function Un(e,t){let n=e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);if(!n)return e;let[,r,i,a,o]=n,s=(o?Number.parseFloat(o):1)*t;return`rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`}var Wn=28,Gn=(0,c.forwardRef)(function({label:e,helperText:t,error:n,revealable:r=!0,revealLabel:i=`Show password`,concealLabel:a=`Hide password`,style:o,inputStyle:s,editable:f=!0,onFocus:p,onBlur:m,accessibilityLabel:h,accessibilityHint:g,..._},v){let y=j(),b=k(),[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(!1),T=!f,E=n??t,D=r,O=n?y.errorColor:x?y.accentColor:y.borderSubtle;return(0,u.jsxs)(l.View,{style:[{gap:y.space1,opacity:T?y.opacityDisabled:1},o],children:[e&&(0,u.jsx)(z,{variant:`body`,style:{fontWeight:String(y.fontWeightSemibold)},children:e}),(0,u.jsxs)(l.View,{style:{position:`relative`,justifyContent:`center`},children:[(0,u.jsx)(l.TextInput,{ref:v,editable:f,secureTextEntry:!C,accessibilityLabel:h??e,accessibilityHint:g??E,placeholderTextColor:Un(y.windowFgColor,y.opacityDim),onFocus:e=>{S(!0),p?.(e)},onBlur:e=>{S(!1),m?.(e)},style:[{width:`100%`,paddingVertical:8,paddingHorizontal:y.space2,paddingEnd:D?Wn+y.space2+6:y.space2,fontFamily:y.fontFamily,fontSize:y.fontSizeBody,lineHeight:Math.round(y.fontSizeBody*y.lineHeightBody),color:y.viewFgColor,backgroundColor:y.viewBgColor,borderRadius:y.radiusMd,borderWidth:b===`more`?2:1,borderColor:O},s],..._}),D&&(0,u.jsx)(l.View,{style:{position:`absolute`,end:6},children:(0,u.jsx)(Ut,{icon:C?d.ViewConceal:d.ViewReveal,label:C?a:i,variant:`flat`,size:`sm`,disabled:T,accessibilityState:{selected:C,disabled:T},onPress:()=>w(e=>!e)})})]}),E&&(0,u.jsx)(z,{variant:`caption`,style:{color:n?y.errorColor:y.windowFgColor,opacity:n?1:y.opacityDim},children:E})]})}),Kn=({segments:e,onNavigate:t,style:n,...r})=>{let i=j();return(0,u.jsx)(l.View,{style:[{flexDirection:`row`,flexWrap:`wrap`,alignItems:`center`},n],...r,children:e.map((n,r)=>{let a=r===e.length-1;return(0,u.jsxs)(c.Fragment,{children:[r>0&&(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{color:i.windowFgColor,opacity:.5,marginHorizontal:1,fontSize:i.fontSizeBody},children:`›`}),a?(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:4,paddingVertical:2,paddingHorizontal:i.space1,maxWidth:200},children:[n.icon&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n.icon}),(0,u.jsx)(l.Text,{numberOfLines:1,ellipsizeMode:`tail`,style:{fontFamily:i.fontFamily,fontSize:i.fontSizeBody,fontWeight:String(i.fontWeightSemibold),color:i.windowFgColor},children:n.label})]}):(0,u.jsxs)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:n.label,onPress:()=>t?.(n.path,r),style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,gap:4,paddingVertical:2,paddingHorizontal:i.space1,maxWidth:160,borderRadius:i.radiusSm,backgroundColor:e?i.activeOverlay:`transparent`}),children:[n.icon&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:n.icon}),(0,u.jsx)(l.Text,{numberOfLines:1,ellipsizeMode:`tail`,style:{fontFamily:i.fontFamily,fontSize:i.fontSizeBody,color:i.windowFgColor},children:n.label})]})]},n.path)})})},qn=8,X=10,Jn=6;function Yn(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}function Xn(e,t,n){switch(n){case`top`:return{top:e.y-t.height-qn,left:e.x+e.width/2-t.width/2};case`bottom`:return{top:e.y+e.height+qn,left:e.x+e.width/2-t.width/2};case`left`:return{top:e.y+e.height/2-t.height/2,left:e.x-t.width-qn};case`right`:return{top:e.y+e.height/2-t.height/2,left:e.x+e.width+qn}}}function Zn(e,t,n){let{width:r,height:i}=l.Dimensions.get(`window`),a=[n,n===`top`?`bottom`:n===`bottom`?`top`:n===`left`?`right`:`left`,`bottom`,`top`,`left`,`right`];for(let n of a){let{top:a,left:o}=Xn(e,t,n),s=o>=X&&o+t.width<=r-X,c=a>=X&&a+t.height<=i-X;if(s&&c)return{top:Math.max(X,Math.min(a,i-t.height-X)),left:Math.max(X,Math.min(o,r-t.width-X)),placement:n}}let{top:o,left:s}=Xn(e,t,n);return{top:Math.max(X,Math.min(o,i-t.height-X)),left:Math.max(X,Math.min(s,r-t.width-X)),placement:n}}var Qn=({content:e,placement:t=`bottom`,open:n,onOpenChange:r,panelStyle:i,children:a})=>{let o=j(),s=R(),d=n!==void 0,[f,p]=(0,c.useState)(!1),m=d?n:f,[h,g]=(0,c.useState)(null),[_,v]=(0,c.useState)(null),[y,b]=(0,c.useState)(null),x=(0,c.useRef)(null),S=(0,c.useRef)(new l.Animated.Value(0)).current,C=(0,c.useCallback)(e=>{d||p(e),r?.(e)},[d,r]),w=(0,c.useCallback)(()=>C(!1),[C]),T=(0,c.useCallback)(()=>C(!m),[m,C]);(0,c.useEffect)(()=>{if(!m){g(null),v(null),b(null);return}x.current?.measureInWindow((e,t,n,r)=>{g({x:e,y:t,width:n,height:r})})},[m]),(0,c.useEffect)(()=>{!h||!_||b(Zn(h,_,t))},[h,_,t]),(0,c.useEffect)(()=>{if(y){if(s){S.setValue(1);return}S.setValue(0),l.Animated.timing(S,{toValue:1,duration:o.durationFast,useNativeDriver:!0}).start()}},[y,s,S,o.durationFast]),(0,c.useEffect)(()=>{if(!m)return;let e=l.BackHandler.addEventListener(`hardwareBackPress`,()=>(w(),!0));return()=>e.remove()},[m,w]);let E=e=>{let{width:t,height:n}=e.nativeEvent.layout;v({width:t,height:n})},D={position:`absolute`,width:0,height:0,borderWidth:Jn,borderColor:`transparent`},O=(()=>{switch(y?.placement){case`top`:return{...D,top:`100%`,left:`50%`,marginLeft:-6,borderTopColor:o.popoverBgColor};case`bottom`:return{...D,bottom:`100%`,left:`50%`,marginLeft:-6,borderBottomColor:o.popoverBgColor};case`left`:return{...D,left:`100%`,top:`50%`,marginTop:-6,borderLeftColor:o.popoverBgColor};case`right`:return{...D,right:`100%`,top:`50%`,marginTop:-6,borderRightColor:o.popoverBgColor};default:return null}})(),k=a.props.ref;return(0,u.jsxs)(u.Fragment,{children:[(0,c.cloneElement)(a,{ref:e=>{x.current=e,Yn(k,e)},accessibilityState:{expanded:m,...a.props.accessibilityState},onPress:e=>{T(),a.props.onPress?.(e)}}),(0,u.jsx)(l.Modal,{visible:m,transparent:!0,animationType:`none`,statusBarTranslucent:!0,onRequestClose:w,children:(0,u.jsx)(l.Pressable,{onPress:w,accessible:!1,style:{flex:1},children:(0,u.jsxs)(l.Animated.View,{onLayout:E,role:`dialog`,accessible:!0,onStartShouldSetResponder:()=>!0,style:[{position:`absolute`,minWidth:180,maxWidth:320,backgroundColor:o.popoverBgColor,borderWidth:1,borderColor:o.cardShadeColor,borderRadius:o.radiusLg,padding:o.space2,shadowColor:`#000`,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:6},y?{top:y.top,left:y.left,opacity:S}:{top:-9999,left:-9999,opacity:0},i],children:[e,O&&(0,u.jsx)(l.View,{style:O})]})})})]})},$n=(0,c.forwardRef)(function({title:e,description:t,headerSuffix:n,children:r,style:i,...a},o){let s=j(),c=!!(e||t||n);return(0,u.jsxs)(l.View,{ref:o,style:[{gap:s.space2},i],...a,children:[c?(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`baseline`,gap:s.space2},children:[(0,u.jsxs)(l.View,{style:{flex:1,gap:2},children:[e?(0,u.jsx)(z,{variant:`body`,accessibilityRole:`header`,style:{fontWeight:String(s.fontWeightSemibold)},children:e}):null,t?(0,u.jsx)(z,{variant:`caption`,color:`dim`,children:t}):null]}),n?(0,u.jsx)(l.View,{style:{flexShrink:0},children:n}):null]}):null,(0,u.jsx)(l.View,{children:r})]})}),er=({value:e,variant:t=`accent`,accessibilityLabel:n,style:r,onLayout:i,...a})=>{let o=j(),s=D(),d=R(),f=e==null,p=f?void 0:Math.min(1,Math.max(0,e)),m=p===void 0?void 0:p*100,h=(0,c.useRef)(new l.Animated.Value(p??0)).current,g=(0,c.useRef)(new l.Animated.Value(0)).current,[_,v]=(0,c.useState)(0),y=e=>{v(e.nativeEvent.layout.width),i?.(e)};(0,c.useEffect)(()=>{if(f)return;let[e,t,n,r]=o.easingDefault;l.Animated.timing(h,{toValue:p??0,duration:d?0:o.durationNormal,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!0}).start()},[p,f,d,h,o.durationNormal,o.easingDefault]),(0,c.useEffect)(()=>{if(!f||d)return;g.setValue(0);let[e,t,n,r]=o.easingDefault,i=l.Animated.loop(l.Animated.timing(g,{toValue:1,duration:1400,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!0}));return i.start(),()=>i.stop()},[f,d,g,o.easingDefault]);let b=s===`dark`?o.dark2:o.light3,x={accent:o.accentBgColor,success:o.successBgColor,warning:o.warningBgColor,error:o.errorBgColor},S=f?d?{left:0,width:`100%`,opacity:.5}:{left:0,width:`40%`,transform:[{translateX:g.interpolate({inputRange:[0,1],outputRange:[-.4*_,_]})}]}:{width:`100%`,transformOrigin:`left`,transform:[{scaleX:h}]};return(0,u.jsx)(l.Animated.View,{accessible:!0,accessibilityRole:`progressbar`,accessibilityLabel:n,accessibilityValue:p===void 0?void 0:{min:0,max:100,now:Math.round(m)},onLayout:y,style:[{width:`100%`,height:6,borderRadius:o.radiusPill,backgroundColor:b,overflow:`hidden`},r],...a,children:(0,u.jsx)(l.Animated.View,{style:[{position:f?`absolute`:`relative`,top:0,height:`100%`,borderRadius:o.radiusPill,backgroundColor:x[t]},S]})})},tr=18,nr=6,rr=(0,c.forwardRef)(function({value:e,onSelect:t,disabled:n,style:r,...i},a){let o=j(),s=D(),d=k(),f=(0,c.useRef)(new l.Animated.Value(+!!e)).current,p=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(p.current){p.current=!1;return}let[t,n,r,i]=o.easingDefault;l.Animated.timing(f,{toValue:+!!e,duration:o.durationFast,easing:l.Easing.bezier(t,n,r,i),useNativeDriver:!1}).start()},[e,f,o.durationFast,o.easingDefault]);let m=d===`more`?o.windowFgColor:s===`dark`?o.dark1:o.light4,h=f.interpolate({inputRange:[0,1],outputRange:[m,o.accentBgColor]}),g=f.interpolate({inputRange:[0,1],outputRange:[o.cardBgColor,o.accentBgColor]});return(0,u.jsx)(l.Pressable,{ref:a,disabled:n,accessibilityRole:`radio`,accessibilityState:{checked:e,disabled:!!n},onPress:()=>{e||t?.()},style:[{opacity:n?o.opacityDisabled:1},r],...i,children:(0,u.jsx)(l.Animated.View,{style:{width:tr,height:tr,alignItems:`center`,justifyContent:`center`,borderRadius:o.radiusPill,borderWidth:d===`more`?2:1.5,borderColor:h,backgroundColor:g},children:(0,u.jsx)(l.Animated.View,{style:{width:nr,height:nr,borderRadius:o.radiusPill,backgroundColor:`#fff`,opacity:f}})})})}),ir=6,Z=22,ar=4;function Q(e,t,n){return Math.min(n,Math.max(t,e))}function or(e,t,n,r){return parseFloat((Math.round((e-t)/n)*n+t).toFixed(r))}function sr(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}var cr=({value:e,onChange:t,min:n=0,max:r=100,step:i=1,minDistance:a=0,disabled:o=!1,marks:s,minLabel:d=`Minimum value`,maxLabel:f=`Maximum value`,style:p,onLayout:m,testID:h,...g})=>{let _=j(),[v,y]=(0,c.useState)(0),[b,x]=(0,c.useState)({}),S=(0,c.useRef)(null),C=sr(i),[w,T]=e,E=Q(w,n,r),D=Q(T,n,r),O=(E-n)/(r-n)*100,k=(D-n)/(r-n)*100,A=(0,c.useCallback)(e=>{y(e.nativeEvent.layout.width),m?.(e)},[m]),M=(0,c.useCallback)((e,o)=>{let s=or(o,n,i,C);t(e===0?[Q(s,n,T-a),T]:[w,Q(s,w+a,r)])},[n,r,i,C,a,w,T,t]),N=(0,c.useCallback)(e=>e/v*(r-n)+n,[v,n,r]),P=(0,c.useCallback)(e=>{let t=N(e);return Math.abs(t-w)<=Math.abs(t-T)?0:1},[N,w,T]),F=(0,c.useMemo)(()=>l.PanResponder.create({onStartShouldSetPanResponder:()=>!o,onMoveShouldSetPanResponder:()=>!o,onPanResponderGrant:e=>{if(v<=0)return;let{locationX:t}=e.nativeEvent,n=P(t);S.current=n,M(n,N(t))},onPanResponderMove:e=>{S.current===null||v<=0||M(S.current,N(e.nativeEvent.locationX))},onPanResponderRelease:()=>{S.current=null},onPanResponderTerminate:()=>{S.current=null}}),[o,v,P,M,N]),I=(0,c.useCallback)(e=>t=>{if(o)return;let n=e===0?w:T;switch(t.nativeEvent.actionName){case`increment`:M(e,n+i);break;case`decrement`:M(e,n-i);break}},[o,w,T,i,M]),L=s&&s.length>0,R=L&&s.some(e=>e.label),ee=O/100*v-Z/2,te=k/100*v-Z/2;return(0,u.jsxs)(l.View,{testID:h,style:[{width:`100%`,paddingTop:10,paddingBottom:R?0:10},p],...g,children:[(0,u.jsxs)(l.View,{testID:h?`${h}-track`:void 0,onLayout:A,style:{justifyContent:`center`,height:Z,opacity:o?_.opacityDisabled:1},...F.panHandlers,children:[(0,u.jsx)(l.View,{pointerEvents:`none`,style:{width:`100%`,height:ir,borderRadius:_.radiusPill,backgroundColor:_.cardShadeColor,overflow:`hidden`},children:(0,u.jsx)(l.View,{style:{position:`absolute`,height:`100%`,left:`${O}%`,width:`${k-O}%`,borderRadius:_.radiusPill,backgroundColor:_.accentBgColor}})}),(0,u.jsx)(l.View,{pointerEvents:`none`,accessible:!0,accessibilityRole:`adjustable`,accessibilityLabel:d,accessibilityValue:{min:n,max:T,now:E},accessibilityState:{disabled:o},accessibilityActions:[{name:`increment`,label:`increment`},{name:`decrement`,label:`decrement`}],onAccessibilityAction:I(0),style:{position:`absolute`,left:ee,width:Z,height:Z,borderRadius:_.radiusPill,backgroundColor:_.accentBgColor,borderWidth:2,borderColor:_.windowBgColor,shadowColor:`#000`,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:3}}),(0,u.jsx)(l.View,{pointerEvents:`none`,accessible:!0,accessibilityRole:`adjustable`,accessibilityLabel:f,accessibilityValue:{min:w,max:r,now:D},accessibilityState:{disabled:o},accessibilityActions:[{name:`increment`,label:`increment`},{name:`decrement`,label:`decrement`}],onAccessibilityAction:I(1),style:{position:`absolute`,left:te,width:Z,height:Z,borderRadius:_.radiusPill,backgroundColor:_.accentBgColor,borderWidth:2,borderColor:_.windowBgColor,shadowColor:`#000`,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:3}}),L&&s.map(e=>(0,u.jsx)(l.View,{pointerEvents:`none`,importantForAccessibility:`no`,style:{position:`absolute`,left:(Q(e.value,n,r)-n)/(r-n)*100/100*v-ar/2,width:ar,height:ar,borderRadius:ar/2,backgroundColor:_.windowBgColor}},e.value))]}),R&&(0,u.jsx)(l.View,{importantForAccessibility:`no`,style:{position:`relative`,width:`100%`,height:20,marginTop:6},children:s.map(e=>(0,u.jsx)(l.Text,{numberOfLines:1,onLayout:t=>{let{layout:{width:n}}=t.nativeEvent;x(t=>t[e.value]===n?t:{...t,[e.value]:n})},style:{position:`absolute`,left:(Q(e.value,n,r)-n)/(r-n)*100/100*v-(b[e.value]??0)/2,fontFamily:_.fontFamily,fontSize:_.fontSizeCaption,color:_.windowFgColor,opacity:_.opacityDim},children:e.label},e.value))})]})};function lr(e,t){let n=e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);if(!n)return e;let[,r,i,a,o]=n,s=(o?Number.parseFloat(o):1)*t;return`rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`}var ur=(0,c.forwardRef)(function({open:e,onClose:t,onClear:n,children:r,value:i,placeholder:a=`Search…`,editable:o=!0,inline:s=!1,closeLabel:d=`Cancel`,style:f,inputStyle:p,...m},h){let g=j(),_=(0,c.useRef)(null);if((0,c.useImperativeHandle)(h,()=>_.current,[]),(0,c.useEffect)(()=>{if(!e)return;let t=requestAnimationFrame(()=>_.current?.focus());return()=>cancelAnimationFrame(t)},[e]),!e)return null;let v=!o,y=typeof i==`string`&&i.length>0,b=s?`transparent`:g.headerbarBgColor,x=s?`transparent`:g.headerbarShadeColor;return(0,u.jsxs)(l.View,{style:f,children:[(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:g.space1},children:[(0,u.jsxs)(l.View,{style:{flex:1,flexDirection:`row`,alignItems:`center`,gap:g.space1,paddingVertical:g.space1,paddingHorizontal:g.space2,backgroundColor:b,borderBottomWidth:1,borderBottomColor:x,opacity:v?g.opacityDisabled:1},children:[(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{opacity:g.opacityDim,fontSize:g.fontSizeBody},children:`🔍`}),(0,u.jsx)(l.TextInput,{ref:_,editable:o,value:i,placeholder:a,placeholderTextColor:lr(g.windowFgColor,g.opacityDim),style:[{flex:1,padding:0,fontFamily:g.fontFamily,fontSize:g.fontSizeBody,lineHeight:Math.round(g.fontSizeBody*g.lineHeightBody),color:g.windowFgColor},p],...m}),y&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Clear search`,disabled:v,hitSlop:8,onPress:()=>{n?.(),_.current?.focus()},style:({pressed:e})=>({width:24,height:24,alignItems:`center`,justifyContent:`center`,borderRadius:g.radiusSm,opacity:v?g.opacityDisabled:1,backgroundColor:e?g.activeOverlay:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontSize:g.fontSizeBody,color:g.windowFgColor},children:`×`})})]}),t&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:d,onPress:t,hitSlop:8,children:(0,u.jsx)(l.Text,{style:{fontFamily:g.fontFamily,fontSize:g.fontSizeBody,color:g.accentColor},children:d})})]}),r&&(0,u.jsx)(l.View,{style:{flexDirection:`row`,flexWrap:`wrap`,gap:g.space1,padding:g.space1,paddingHorizontal:g.space2,backgroundColor:b,borderBottomWidth:1,borderBottomColor:x},children:r})]})}),dr=8;function fr(e,t){switch(t%dr){case 0:return e.blue3;case 1:return e.green3;case 2:return e.purple3;case 3:return e.orange3;case 4:return e.red3;case 5:return e.brown3;case 6:return e.blue5;default:return e.green5}}var pr=({values:e,accessibilityLabel:t,style:n,testID:r})=>{let i=j(),a=D(),[o,s]=(0,c.useState)(null),d=e.reduce((e,t)=>e+t.value,0)||100,f=e.map(e=>`${e.label} ${e.value}%`).join(`, `),p=a===`dark`?i.dark2:i.light3;return(0,u.jsx)(l.View,{testID:r,accessible:!0,role:`img`,accessibilityLabel:t??f,style:[{flexDirection:`row`,width:`100%`,height:8,borderRadius:i.radiusPill,overflow:`hidden`,gap:2,backgroundColor:p},n],children:e.map((e,t)=>{let n=`${e.value/d*100}%`,r=e.value%1==0?e.value:e.value.toFixed(1);return(0,u.jsx)(Vt,{label:`${e.label}: ${r}%`,placement:`top`,delay:200,children:(0,u.jsx)(l.Pressable,{testID:`segmented-bar-segment`,onPressIn:()=>s(t),onPressOut:()=>s(null),style:{width:n,height:`100%`,backgroundColor:e.color??fr(i,t),opacity:o!==null&&o!==t?.35:1}})},e.label)})})};function mr(e,t){let n=0;return c.Children.forEach(e,e=>{if(!(0,c.isValidElement)(e))return;let r=e.props;typeof r.label==`string`?r.label.toLowerCase().includes(t.toLowerCase())&&n++:r.children&&(n+=mr(r.children,t))}),n}function hr(e,t){if(!t||!(0,c.isValidElement)(e))return!0;let n=e.props;return typeof n.label==`string`?n.label.toLowerCase().includes(t.toLowerCase()):n.children?mr(n.children,t)>0:!0}var gr=(0,c.createContext)(!1);function _r(){return(0,c.useContext)(gr)}var vr=(0,c.createContext)(``),yr=(0,c.forwardRef)(function({children:e,collapsed:t=!1,filter:n=``,style:r,...i},a){let o=j(),s=n.length>0,d=c.Children.toArray(e).filter(Boolean).filter(e=>hr(e,n)),f=!s||d.length>0;return(0,u.jsx)(gr.Provider,{value:t,children:(0,u.jsx)(vr.Provider,{value:n,children:(0,u.jsx)(l.View,{ref:a,style:[{flexShrink:0,width:t?o.layoutSidebarRailWidth:o.layoutSidebarDefaultWidth,backgroundColor:o.sidebarBgColor,borderRightWidth:1,borderRightColor:o.headerbarBorderColor},r],...i,children:(0,u.jsx)(l.ScrollView,{contentContainerStyle:{padding:o.space1},children:s&&!f?(0,u.jsx)(z,{variant:`caption`,color:`dim`,style:{textAlign:`center`,padding:o.space4},children:`No items match your search.`}):d.map((e,t)=>(0,u.jsxs)(c.Fragment,{children:[t>0&&(0,u.jsx)(U,{testID:`sidebar-separator`,style:{marginVertical:o.space1}}),e]},t))})})})})}),br=(0,c.forwardRef)(function({label:e,icon:t,active:n=!1,suffix:r,disabled:i,style:a,...o},s){let d=j(),f=_r(),p=(0,c.useContext)(vr);return p.length>0&&!e.toLowerCase().includes(p.toLowerCase())?null:(0,u.jsxs)(l.Pressable,{ref:s,disabled:i,accessibilityRole:`button`,accessibilityState:{selected:n,disabled:!!i},accessibilityLabel:e,style:({pressed:e})=>[{flexDirection:`row`,alignItems:`center`,gap:d.space2,paddingVertical:8,paddingHorizontal:d.space2,borderRadius:d.radiusMd,opacity:i?d.opacityDisabled:1,backgroundColor:n?d.accentBgColor:e?d.hoverOverlay:`transparent`},f&&{justifyContent:`center`,paddingHorizontal:0},a],...o,children:[t&&(0,u.jsx)(l.View,{style:{flexShrink:0,opacity:n?1:.85},children:t}),!f&&(0,u.jsx)(z,{numberOfLines:1,ellipsizeMode:`tail`,style:{flex:1,fontSize:d.fontSizeBody,fontWeight:String(n?d.fontWeightSemibold:d.fontWeightNormal),color:n?d.accentFgColor:d.sidebarFgColor},children:e}),!f&&r&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:r})]})}),xr=(0,c.forwardRef)(function({title:e,icon:t,collapsible:n=!1,defaultOpen:r=!0,open:i,onOpenChange:a,children:o,style:s,...d},f){let p=j(),[m,h]=(0,c.useState)(r),g=i!==void 0,_=g?i:m,v=_r(),y=(0,c.useContext)(vr),b=e=>{g||h(e),a?.(e)};if((0,c.useImperativeHandle)(f,()=>({expand:()=>b(!0),collapse:()=>b(!1),toggle:()=>b(!_)})),!(y.length===0||mr(o,y)>0))return null;let x=v?!0:_,S=!v&&!!(e||t),C=(e||t)&&(0,u.jsxs)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:p.space1,paddingHorizontal:p.space1,paddingVertical:2,marginTop:4,marginBottom:2},children:[t&&(0,u.jsx)(l.View,{style:{flexShrink:0,opacity:.7},children:t}),e&&(0,u.jsx)(z,{variant:`caption-heading`,color:`dim`,style:{flex:1},numberOfLines:1,children:e}),n&&(0,u.jsx)(z,{variant:`caption`,color:`dim`,style:{flexShrink:0},children:_?`▾`:`▸`})]});return(0,u.jsxs)(l.View,{style:s,...d,children:[S&&(n?(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityState:{expanded:_},accessibilityLabel:e,onPress:()=>b(!_),children:C}):C),(0,u.jsx)(l.View,{accessible:!0,accessibilityRole:`list`,style:{display:x?`flex`:`none`,gap:2},children:o})]})}),Sr=({variant:e=`rect`,width:t=`100%`,height:n=16,size:r=40,lines:i=3,animated:a=!0,style:o,...s})=>{let d=j(),f=R(),p=(0,c.useRef)(new l.Animated.Value(1)).current,m=a&&!f;if((0,c.useEffect)(()=>{if(!m){p.setValue(1);return}let[e,t,n,r]=d.easingDefault,i=l.Easing.bezier(e,t,n,r),a=l.Animated.loop(l.Animated.sequence([l.Animated.timing(p,{toValue:.5,duration:700,easing:i,useNativeDriver:!0}),l.Animated.timing(p,{toValue:1,duration:700,easing:i,useNativeDriver:!0})]));return a.start(),()=>a.stop()},[m,p,d.easingDefault]),e===`text`){let e=Math.max(1,Math.floor(i));return(0,u.jsx)(l.View,{accessible:!1,style:[{gap:8},o],...s,children:Array.from({length:e},(t,n)=>(0,u.jsx)(l.Animated.View,{style:{width:n===e-1?`60%`:`100%`,height:12,borderRadius:d.radiusPill,backgroundColor:d.skeletonBaseColor,opacity:p}},n))})}let h=e===`circle`?{width:r,height:r,borderRadius:r/2}:{width:t,height:n,borderRadius:d.radiusMd};return(0,u.jsx)(l.Animated.View,{accessible:!1,style:[h,{backgroundColor:d.skeletonBaseColor,opacity:p},o],...s})},Cr=6,wr=22,Tr=4;function $(e,t,n){return Math.min(n,Math.max(t,e))}function Er(e,t,n,r){return parseFloat((Math.round((e-t)/n)*n+t).toFixed(r))}function Dr(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}var Or=({value:e,onChange:t,min:n=0,max:r=100,step:i=1,disabled:a=!1,marks:o,accessibilityLabel:s,style:d,onLayout:f,...p})=>{let m=j(),[h,g]=(0,c.useState)(0),[_,v]=(0,c.useState)({}),y=Dr(i),b=$(e,n,r),x=(b-n)/(r-n)*100,S=(0,c.useCallback)(e=>{g(e.nativeEvent.layout.width),f?.(e)},[f]),C=(0,c.useCallback)(e=>{a||h<=0||t($(Er(e/h*(r-n)+n,n,i,y),n,r))},[a,h,n,r,i,y,t]),w=(0,c.useMemo)(()=>l.PanResponder.create({onStartShouldSetPanResponder:()=>!a,onMoveShouldSetPanResponder:()=>!a,onPanResponderGrant:e=>C(e.nativeEvent.locationX),onPanResponderMove:e=>C(e.nativeEvent.locationX)}),[a,C]),T=(0,c.useCallback)(o=>{if(!a)switch(o.nativeEvent.actionName){case`increment`:t($(Er(e+i,n,i,y),n,r));break;case`decrement`:t($(Er(e-i,n,i,y),n,r));break}},[a,e,i,n,r,y,t]),E=o&&o.length>0,D=E&&o.some(e=>e.label),O=x/100*h-wr/2;return(0,u.jsxs)(l.View,{style:[{width:`100%`,paddingTop:10,paddingBottom:D?0:10},d],...p,children:[(0,u.jsxs)(l.View,{onLayout:S,accessible:!0,accessibilityRole:`adjustable`,accessibilityLabel:s,accessibilityValue:{min:n,max:r,now:b},accessibilityState:{disabled:a},accessibilityActions:[{name:`increment`,label:`increment`},{name:`decrement`,label:`decrement`}],onAccessibilityAction:T,style:{justifyContent:`center`,height:wr,opacity:a?m.opacityDisabled:1},...w.panHandlers,children:[(0,u.jsx)(l.View,{pointerEvents:`none`,style:{width:`100%`,height:Cr,borderRadius:m.radiusPill,backgroundColor:m.cardShadeColor,overflow:`hidden`},children:(0,u.jsx)(l.View,{style:{height:`100%`,width:`${x}%`,borderRadius:m.radiusPill,backgroundColor:m.accentBgColor}})}),(0,u.jsx)(l.View,{pointerEvents:`none`,style:{position:`absolute`,left:O,width:wr,height:wr,borderRadius:m.radiusPill,backgroundColor:m.accentBgColor,borderWidth:2,borderColor:m.windowBgColor,shadowColor:`#000`,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:3}}),E&&o.map(e=>(0,u.jsx)(l.View,{pointerEvents:`none`,importantForAccessibility:`no`,style:{position:`absolute`,left:($(e.value,n,r)-n)/(r-n)*100/100*h-Tr/2,width:Tr,height:Tr,borderRadius:Tr/2,backgroundColor:m.windowBgColor}},e.value))]}),D&&(0,u.jsx)(l.View,{importantForAccessibility:`no`,style:{position:`relative`,width:`100%`,height:20,marginTop:6},children:o.map(e=>(0,u.jsx)(l.Text,{numberOfLines:1,onLayout:t=>{let{layout:{width:n}}=t.nativeEvent;v(t=>t[e.value]===n?t:{...t,[e.value]:n})},style:{position:`absolute`,left:($(e.value,n,r)-n)/(r-n)*100/100*h-(_[e.value]??0)/2,fontFamily:m.fontFamily,fontSize:m.fontSizeCaption,color:m.windowFgColor,opacity:m.opacityDim},children:e.label},e.value))})]})},kr=36;function Ar(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function jr(e,t,n){return Math.min(n,Math.max(t,e))}function Mr(e,t,n,r){let i=n-t+r;return((e-t)%i+i)%i+t}var Nr=({value:e,onChange:t,min:n=0,max:r=100,step:i=1,decimals:a,wrap:o=!1,format:s,disabled:d=!1,accessibilityLabel:f,style:p})=>{let m=j(),h=a??Ar(i),g=(0,c.useCallback)(e=>{let a=o?Mr(e,n,r,i):jr(e,n,r);t(parseFloat(a.toFixed(h)))},[t,n,r,i,h,o]),_=s?s(e):e.toFixed(h),v=(0,c.useCallback)(t=>{if(!d)switch(t.nativeEvent.actionName){case`increment`:g(e+i);break;case`decrement`:g(e-i);break}},[d,e,i,g]),y=d||!o&&e<=n,b=d||!o&&e>=r;return(0,u.jsxs)(l.View,{accessible:!0,accessibilityRole:`adjustable`,accessibilityLabel:f,accessibilityValue:{min:n,max:r,now:e,text:s?_:void 0},accessibilityState:{disabled:d},accessibilityActions:[{name:`increment`,label:`increment`},{name:`decrement`,label:`decrement`}],onAccessibilityAction:v,style:[{flexDirection:`row`,alignSelf:`flex-start`,alignItems:`center`,borderWidth:1,borderColor:m.cardShadeColor,borderRadius:m.radiusMd,backgroundColor:m.viewBgColor,overflow:`hidden`,opacity:d?m.opacityDisabled:1},p],children:[(0,u.jsx)(l.Pressable,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,disabled:y,onPress:()=>g(e-i),style:({pressed:e})=>({width:kr,height:kr,alignItems:`center`,justifyContent:`center`,borderRightWidth:1,borderRightColor:m.cardShadeColor,backgroundColor:e&&!y?m.activeOverlay:`transparent`,opacity:y?m.opacityDisabled:1}),children:(0,u.jsx)(l.Text,{style:{fontSize:17,lineHeight:20,color:m.viewFgColor},children:`−`})}),(0,u.jsx)(l.Text,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{minWidth:56,textAlign:`center`,paddingHorizontal:m.space2,fontFamily:m.fontFamily,fontSize:m.fontSizeBody,fontVariant:[`tabular-nums`],color:m.viewFgColor},children:_}),(0,u.jsx)(l.Pressable,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,disabled:b,onPress:()=>g(e+i),style:({pressed:e})=>({width:kr,height:kr,alignItems:`center`,justifyContent:`center`,borderLeftWidth:1,borderLeftColor:m.cardShadeColor,backgroundColor:e&&!b?m.activeOverlay:`transparent`,opacity:b?m.opacityDisabled:1}),children:(0,u.jsx)(l.Text,{style:{fontSize:17,lineHeight:20,color:m.viewFgColor},children:`+`})})]})},Pr={sm:{dimension:16,borderWidth:2},md:{dimension:24,borderWidth:2.5},lg:{dimension:36,borderWidth:3}},Fr=({size:e=`md`,label:t=`Loading…`,style:n,...r})=>{let i=j(),a=D(),o=R(),s=(0,c.useRef)(new l.Animated.Value(0)).current;(0,c.useEffect)(()=>{s.setValue(0);let e=l.Animated.loop(l.Animated.timing(s,{toValue:1,duration:o?2e3:750,easing:l.Easing.linear,useNativeDriver:!0}));return e.start(),()=>e.stop()},[s,o]);let d=s.interpolate({inputRange:[0,1],outputRange:[`0deg`,`360deg`]}),{dimension:f,borderWidth:p}=Pr[e],m=a===`dark`?`rgba(255, 255, 255, 0.15)`:`rgba(0, 0, 0, 0.15)`;return(0,u.jsx)(l.Animated.View,{accessible:!0,accessibilityRole:`progressbar`,accessibilityLabel:t||void 0,accessibilityElementsHidden:t===``,importantForAccessibility:t===``?`no-hide-descendants`:`yes`,style:[{width:f,height:f,borderRadius:f/2,borderWidth:p,borderColor:m,borderTopColor:i.accentColor,transform:[{rotate:d}]},n],...r})};function Ir(e,t){switch(t){case`success`:return{backgroundColor:e.successBgColor,color:e.successFgColor};case`warning`:return{backgroundColor:e.warningBgColor,color:e.warningFgColor};case`error`:return{backgroundColor:e.errorBgColor,color:e.errorFgColor};case`new`:return{backgroundColor:e.newBgColor,color:e.newFgColor};case`accent`:return{backgroundColor:e.accentBgColor,color:e.accentFgColor};case`neutral`:return{backgroundColor:e.hoverOverlay,color:e.windowFgColor}}}var Lr=({variant:e=`neutral`,children:t,style:n,...r})=>{let i=j(),{backgroundColor:a,color:o}=Ir(i,e);return(0,u.jsx)(l.View,{style:[{alignSelf:`flex-start`,paddingVertical:2,paddingHorizontal:8,borderRadius:i.radiusPill,backgroundColor:a},n],...r,children:typeof t==`string`||typeof t==`number`?(0,u.jsx)(l.Text,{style:{fontFamily:i.fontFamily,fontWeight:String(i.fontWeightSemibold),fontSize:11,lineHeight:15,letterSpacing:.22,color:o},children:t}):t})},Rr=e=>Math.round(36*.5*e),zr=(0,c.forwardRef)(function({icon:e,iconNode:t,title:n,description:r,children:i,compact:a=!1,style:o,...s},c){let d=j(),f=D(),p=a?64:128,m=e?(0,u.jsx)(B,{icon:e,width:p,height:p}):t,h=a?d.fontSizeCaption:d.fontSizeBody;return(0,u.jsxs)(l.View,{ref:c,style:[{width:`100%`,alignItems:`center`,justifyContent:`center`,paddingVertical:a?d.space3:d.space6,paddingHorizontal:a?d.space3:d.space4},o],...s,children:[m?(0,u.jsx)(l.View,{accessibilityElementsHidden:!0,importantForAccessibility:`no`,style:{alignItems:`center`,justifyContent:`center`,marginBottom:a?d.space2:d.space4,opacity:f===`dark`?.45:.55},children:m}):null,(0,u.jsx)(z,{variant:a?`title-4`:`title-1`,style:{textAlign:`center`},children:n}),r?(0,u.jsx)(z,{variant:a?`caption`:`body`,color:`dim`,style:{textAlign:`center`,maxWidth:Rr(h),marginTop:a?d.space1:d.space2},children:r}):null,i?(0,u.jsx)(xt,{justify:`center`,childSpacing:a?d.space1:d.space2,style:{marginTop:a?d.space2:d.space4},children:i}):null]})}),Br=56,Vr=28,Hr=20,Ur=3,Wr=28,Gr=(0,c.forwardRef)(function({value:e,onValueChange:t,disabled:n,style:r,...i},a){let o=j(),s=D(),d=k(),f=(0,c.useRef)(new l.Animated.Value(+!!e)).current,p=(0,c.useRef)(!0);(0,c.useEffect)(()=>{if(p.current){p.current=!1;return}let[t,n,r,i]=o.easingDefault;l.Animated.timing(f,{toValue:+!!e,duration:o.durationFast,easing:l.Easing.bezier(t,n,r,i),useNativeDriver:!1}).start()},[e,f,o.durationFast,o.easingDefault]);let m=s===`dark`?o.dark2:o.light4,h=s===`dark`?o.light3:`#fff`,g=f.interpolate({inputRange:[0,1],outputRange:[m,o.accentBgColor]}),_=f.interpolate({inputRange:[0,1],outputRange:[o.borderSubtle,o.accentBgColor]});return(0,u.jsx)(l.Pressable,{ref:a,disabled:n,accessibilityRole:`switch`,accessibilityState:{checked:e,disabled:!!n},onPress:()=>t?.(!e),style:[{opacity:n?o.opacityDisabled:1},r],...i,children:(0,u.jsx)(l.Animated.View,{style:{width:Br,height:Vr,borderRadius:o.radiusPill,borderWidth:d===`more`?2:1,borderColor:_,backgroundColor:g},children:(0,u.jsx)(l.Animated.View,{style:[{position:`absolute`,top:Ur,left:Ur,width:Hr,height:Hr,borderRadius:o.radiusPill,backgroundColor:e?`#fff`:h,transform:[{translateX:f.interpolate({inputRange:[0,1],outputRange:[0,Wr]})}]},d!==`more`&&{shadowColor:`#000`,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:2}]})})})}),Kr=(0,c.forwardRef)(function({children:e,inline:t=!1,accessibilityLabel:n=`Tabs`,style:r,...i},a){let o=j();return(0,u.jsx)(l.ScrollView,{ref:a,horizontal:!0,showsHorizontalScrollIndicator:!1,contentInsetAdjustmentBehavior:`never`,accessible:!0,accessibilityRole:`tablist`,accessibilityLabel:n,style:[{flexGrow:0,backgroundColor:t?`transparent`:o.headerbarBgColor,borderBottomWidth:+!t,borderBottomColor:o.headerbarBorderColor},r],contentContainerStyle:{flexDirection:`row`,alignItems:`stretch`,paddingHorizontal:o.space1,gap:2,minHeight:40},...i,children:e})}),qr=(0,c.forwardRef)(function({label:e,icon:t,active:n=!1,onClose:r,closeLabel:i=`Close tab`,count:a,disabled:o,...s},c){let d=j();return(0,u.jsxs)(l.Pressable,{ref:c,disabled:o,accessibilityRole:`tab`,accessibilityState:{selected:n,disabled:!!o},accessibilityLabel:e,style:({pressed:e})=>({position:`relative`,flexDirection:`row`,alignItems:`center`,gap:d.space1,paddingHorizontal:d.space2,minWidth:80,maxWidth:200,minHeight:40,borderRadius:d.radiusMd,opacity:o?d.opacityDisabled:n?1:.7,backgroundColor:n?d.activeOverlay:e?d.hoverOverlay:`transparent`}),...s,children:[t&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:t}),(0,u.jsx)(l.Text,{numberOfLines:1,ellipsizeMode:`tail`,style:{fontFamily:d.fontFamily,fontSize:d.fontSizeBody,fontWeight:String(n?d.fontWeightSemibold:d.fontWeightNormal),color:d.headerbarFgColor},children:e}),a!==void 0&&(0,u.jsx)(l.View,{style:{flexShrink:0,minWidth:18,height:18,paddingHorizontal:5,borderRadius:9,alignItems:`center`,justifyContent:`center`,backgroundColor:d.accentBgColor},children:(0,u.jsx)(l.Text,{style:{fontFamily:d.fontFamily,fontSize:11,fontWeight:`600`,color:d.accentFgColor},children:a>99?`99+`:a})}),r&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:i,hitSlop:8,onPress:r,style:({pressed:e})=>({flexShrink:0,width:18,height:18,alignItems:`center`,justifyContent:`center`,borderRadius:d.radiusSm,backgroundColor:e?d.activeOverlay:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontFamily:d.fontFamily,fontSize:15,lineHeight:16,color:d.headerbarFgColor},children:`×`})}),n&&(0,u.jsx)(l.View,{pointerEvents:`none`,style:{position:`absolute`,bottom:0,left:d.space2,right:d.space2,height:2,borderRadius:1,backgroundColor:d.accentBgColor}})]})}),Jr=(0,c.forwardRef)(function({active:e=!1,style:t,children:n,...r},i){return(0,u.jsx)(l.View,{ref:i,style:[{display:e?`flex`:`none`},t],...r,children:n})});function Yr(e,t){let n=e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);if(!n)return e;let[,r,i,a,o]=n,s=(o?Number.parseFloat(o):1)*t;return`rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`}var Xr=(0,c.forwardRef)(function({label:e,helperText:t,error:n,style:r,inputStyle:i,editable:a=!0,onFocus:o,onBlur:s,accessibilityLabel:d,accessibilityHint:f,...p},m){let h=j(),g=k(),[_,v]=(0,c.useState)(!1),y=!a,b=n??t,x=n?h.errorColor:_?h.accentColor:h.borderSubtle;return(0,u.jsxs)(l.View,{style:[{gap:h.space1,opacity:y?h.opacityDisabled:1},r],children:[e&&(0,u.jsx)(z,{variant:`body`,style:{fontWeight:String(h.fontWeightSemibold)},children:e}),(0,u.jsx)(l.TextInput,{ref:m,editable:a,accessibilityLabel:d??e,accessibilityHint:f??b,placeholderTextColor:Yr(h.windowFgColor,h.opacityDim),onFocus:e=>{v(!0),o?.(e)},onBlur:e=>{v(!1),s?.(e)},style:[{width:`100%`,paddingVertical:8,paddingHorizontal:h.space2,fontFamily:h.fontFamily,fontSize:h.fontSizeBody,lineHeight:Math.round(h.fontSizeBody*h.lineHeightBody),color:h.viewFgColor,backgroundColor:h.viewBgColor,borderRadius:h.radiusMd,borderWidth:g===`more`?2:1,borderColor:x},i],...p}),b&&(0,u.jsx)(z,{variant:`caption`,style:{color:n?h.errorColor:h.windowFgColor,opacity:n?1:h.opacityDim},children:b})]})}),Zr=l.Animated.createAnimatedComponent(l.Pressable),Qr=({title:e,duration:t=3e3,onDismiss:n,actionLabel:r,onAction:i,dismissible:a=!1,style:o,...s})=>{let d=j(),f=D(),p=R(),m=(0,c.useRef)(null),h=(0,c.useRef)(t),g=(0,c.useRef)(0),_=(0,c.useRef)(new l.Animated.Value(+!!p)).current,v=(0,c.useCallback)(()=>{m.current&&=(clearTimeout(m.current),null)},[]),y=(0,c.useCallback)(e=>{e<=0||!n||(v(),g.current=Date.now(),m.current=setTimeout(()=>n(),e))},[n,v]);(0,c.useEffect)(()=>(t>0&&(h.current=t,y(t)),v),[t,y,v]),(0,c.useEffect)(()=>{if(p){_.setValue(1);return}let[e,t,n,r]=d.easingDefault;l.Animated.timing(_,{toValue:1,duration:d.durationNormal,easing:l.Easing.bezier(e,t,n,r),useNativeDriver:!0}).start()},[p,_,d.durationNormal,d.easingDefault]);let b=()=>{if(m.current){let e=Date.now()-g.current;h.current=Math.max(0,h.current-e),v()}},x=()=>{y(h.current)},S=()=>{v(),i?.(),n?.()},C=f===`dark`?{shadowOpacity:.4,shadowRadius:12,elevation:6}:{shadowOpacity:.15,shadowRadius:8,elevation:4};return(0,u.jsxs)(Zr,{accessible:!0,accessibilityRole:`alert`,accessibilityLiveRegion:`polite`,onPressIn:b,onPressOut:x,style:[{flexDirection:`row`,alignItems:`center`,gap:d.space2,paddingVertical:10,paddingRight:d.space2,paddingLeft:d.space3,minHeight:44,maxWidth:480,minWidth:240,backgroundColor:d.cardBgColor,borderRadius:d.radiusLg,shadowColor:`#000`,shadowOffset:{width:0,height:2},opacity:_,transform:[{translateY:_.interpolate({inputRange:[0,1],outputRange:[12,0]})},{scale:_.interpolate({inputRange:[0,1],outputRange:[.96,1]})}],...C},o],...s,children:[(0,u.jsx)(z,{variant:`body`,style:{flex:1,minWidth:0},numberOfLines:typeof e==`string`?2:void 0,children:e}),(r||a)&&(0,u.jsxs)(u.Fragment,{children:[r&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:r,onPress:S,style:({pressed:e})=>({paddingVertical:4,paddingHorizontal:d.space1,borderRadius:d.radiusSm,backgroundColor:e?d.activeOverlay:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontFamily:d.fontFamily,fontSize:d.fontSizeBody,fontWeight:String(d.fontWeightSemibold),color:d.accentColor},children:r})}),a&&(0,u.jsx)(l.Pressable,{accessibilityRole:`button`,accessibilityLabel:`Dismiss`,hitSlop:4,onPress:()=>{v(),n?.()},style:({pressed:e})=>({width:28,height:28,alignItems:`center`,justifyContent:`center`,borderRadius:d.radiusSm,opacity:e?1:.55,backgroundColor:e?d.activeOverlay:`transparent`}),children:(0,u.jsx)(l.Text,{style:{fontSize:d.fontSizeBody,color:d.windowFgColor},children:`×`})})]})]})},$r=({position:e=`bottom`,children:t,style:n,...r})=>{let i=j();return(0,u.jsx)(l.View,{pointerEvents:`box-none`,accessibilityLabel:`Notifications`,style:[{position:`absolute`,left:0,right:0,alignItems:`center`,gap:i.space1,zIndex:9999},e===`top`?{top:i.space4}:{bottom:i.space4},n],...r,children:t})},ei=(0,c.createContext)(null);function ti(){let e=(0,c.useContext)(ei);if(!e)throw Error(`ToggleGroupItem must be used inside ToggleGroup`);return e}var ni=(0,c.forwardRef)(function({value:e,onValueChange:t,accessibilityLabel:n=`Options`,children:r,style:i,...a},o){let s=j(),d=D(),f=(0,c.useMemo)(()=>({value:e,onValueChange:t}),[e,t]);return(0,u.jsx)(ei.Provider,{value:f,children:(0,u.jsx)(l.View,{ref:o,accessibilityRole:`radiogroup`,accessibilityLabel:n,style:[{alignSelf:`flex-start`,flexDirection:`row`,alignItems:`stretch`,gap:2,padding:2,borderRadius:s.radiusMd,borderWidth:1,borderColor:d===`dark`?`rgba(255, 255, 255, 0.12)`:s.light3,backgroundColor:s.cardBgColor},i],...a,children:r})})}),ri=(0,c.forwardRef)(function({name:e,label:t,icon:n,accessibilityLabel:r,disabled:i=!1,...a},o){let s=j(),c=D(),{value:d,onValueChange:f}=ti(),p=d===e,m=!!n&&!t,h=c===`dark`;return(0,u.jsxs)(l.Pressable,{ref:o,disabled:i,onPress:()=>f(e),accessibilityRole:`radio`,accessibilityState:{checked:p,disabled:i},accessibilityLabel:r??t,style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:s.space1,minHeight:28,minWidth:m?28:void 0,paddingVertical:4,paddingHorizontal:m?4:s.space2,borderRadius:s.radiusMd-2,borderWidth:1,borderColor:p?`${s.accentBgColor}${h?`80`:`66`}`:`transparent`,backgroundColor:p?`${s.accentBgColor}${h?`40`:`26`}`:e&&!i?s.activeOverlay:`transparent`,opacity:i?s.opacityDisabled:1}),...a,children:[n?(0,u.jsx)(l.View,{style:{flexShrink:0},children:(0,u.jsx)(B,{icon:n,size:`md`})}):null,t?(0,u.jsx)(l.Text,{numberOfLines:1,style:{fontFamily:s.fontFamily,fontSize:s.fontSizeBody,fontWeight:String(p?s.fontWeightSemibold:s.fontWeightNormal),color:p?s.accentColor:s.windowFgColor},children:t}):null]})}),ii=(0,c.forwardRef)(function({children:e,accessibilityLabel:t=`View switcher`,style:n,...r},i){let a=j(),o=D();return(0,u.jsxs)(l.View,{ref:i,accessible:!0,accessibilityRole:`radiogroup`,accessibilityLabel:t,style:[{alignSelf:`flex-start`,borderRadius:a.radiusPill,overflow:`hidden`,backgroundColor:a.headerbarBgColor},n],...r,children:[(0,u.jsx)(l.View,{pointerEvents:`none`,style:[l.StyleSheet.absoluteFill,{backgroundColor:o===`dark`?`rgba(0, 0, 0, 0.3)`:`rgba(0, 0, 0, 0.25)`}]}),(0,u.jsx)(l.View,{style:{flexDirection:`row`,alignItems:`center`,gap:2,padding:3},children:e})]})}),ai=(0,c.forwardRef)(function({label:e,icon:t,active:n=!1,disabled:r,...i},a){let o=j();return(0,u.jsxs)(l.Pressable,{ref:a,disabled:r,accessibilityRole:`radio`,accessibilityState:{checked:n,disabled:!!r},accessibilityLabel:e,style:({pressed:e})=>({flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:o.space1,paddingVertical:5,paddingHorizontal:o.space2,borderRadius:o.radiusPill-3,opacity:r?o.opacityDisabled:1,backgroundColor:n?o.headerbarBgColor:e?o.activeOverlay:`transparent`}),...i,children:[t&&(0,u.jsx)(l.View,{style:{flexShrink:0},children:t}),(0,u.jsx)(l.Text,{style:{fontFamily:o.fontFamily,fontSize:o.fontSizeBody,fontWeight:String(n?o.fontWeightSemibold:o.fontWeightNormal),color:o.headerbarFgColor},children:e})]})});exports.ActionRow=ie,exports.AnimatedIcon=be,exports.Avatar=H,exports.AvatarGroup=Ae,exports.AvatarRotator=Pe,exports.Badge=Ie,exports.Banner=Le,exports.Bin=Re,exports.Blockquote=Be,exports.BottomSheet=Ue,exports.BottomTabBar=We,exports.Box=qe,exports.BoxedList=Je,exports.Button=W,exports.ButtonRow=$e,exports.Callout=rt,exports.Card=at,exports.CheckRow=lt,exports.Checkbox=st,exports.Chip=ut,exports.Clamp=ft,exports.CoachMark=gt,exports.CoachMarkTour=vt,exports.ColorPicker=Tt,exports.ColorSwatch=Ct,exports.ComboRow=Mt,exports.Dialog=Pt,exports.Divider=Ft,exports.Drawer=Yt,exports.Dropdown=At,exports.EntryRow=Zt,exports.Expander=Qt,exports.ExpanderRow=$t,exports.FieldGroup=en,exports.FileTypeIcon=dn,exports.FilterableMultiSelectDropdown=vn,exports.GNOME_PALETTE=wt,exports.GnomeContext=x,exports.GnomeProvider=ee,exports.HeaderBar=yn,exports.Highlight=xn,exports.Icon=B,exports.IconButton=Ut,exports.InlineViewSwitcher=On,exports.InlineViewSwitcherItem=kn,exports.LevelBar=Mn,exports.Link=Nn,exports.MultiSelectDropdown=zn,exports.NAMED_ACCENT_COLORS=N,exports.Overlay=Vn,exports.PasswordEntryRow=Hn,exports.PasswordField=Gn,exports.PathBar=Kn,exports.Popover=Qn,exports.PreferencesGroup=$n,exports.ProgressBar=er,exports.RadioButton=rr,exports.RangeSlider=cr,exports.SearchBar=ur,exports.SegmentedBar=pr,exports.Separator=U,exports.Sidebar=yr,exports.SidebarCollapsedContext=gr,exports.SidebarFilterContext=vr,exports.SidebarItem=br,exports.SidebarSection=xr,exports.Skeleton=Sr,exports.Slider=Or,exports.SpinButton=Nr,exports.Spinner=Fr,exports.StatusBadge=Lr,exports.StatusPage=zr,exports.Switch=Gr,exports.TabBar=Kr,exports.TabItem=qr,exports.TabPanel=Jr,exports.Text=z,exports.TextField=Xr,exports.Toast=Qr,exports.Toaster=$r,exports.ToggleGroup=ni,exports.ToggleGroupItem=ri,exports.Tooltip=Vt,exports.ViewSwitcher=ii,exports.ViewSwitcherItem=ai,exports.WrapBox=xt,exports.applyAccentColor=I,exports.darkRawTokens=v,exports.darkTheme=m,exports.highContrastDarkRawTokens=b,exports.highContrastDarkTheme=g,exports.highContrastRawTokens=y,exports.highContrastTheme=h,exports.lightRawTokens=_,exports.lightTheme=p,exports.resolveColorScheme=P,exports.resolveContrast=F,exports.resolveGnomeTheme=M,exports.useAccentColor=A,exports.useColorScheme=E,exports.useContrast=O,exports.useDateTimeFormatter=T,exports.useDir=C,exports.useGnomeTheme=j,exports.useLocale=S,exports.useNumberFormatter=w,exports.useReducedMotion=R,exports.useResolvedColorScheme=D,exports.useResolvedContrast=k,exports.useSidebarCollapsed=_r;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|