@sakaniui/react 0.1.0 → 0.3.1
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 +64 -17
- package/dist/TopBar-B88BmNES.js +3777 -0
- package/dist/TopBar-CM5noziF.cjs +1 -0
- package/dist/blocks/AccountOverviewBlock/AccountOverviewBlock.d.ts +8 -0
- package/dist/blocks/AccountOverviewBlock/index.d.ts +2 -0
- package/dist/blocks/ActivityLogBlock/ActivityLogBlock.d.ts +8 -0
- package/dist/blocks/ActivityLogBlock/index.d.ts +2 -0
- package/dist/blocks/AppHeaderBlock/AppHeaderBlock.d.ts +19 -0
- package/dist/blocks/AppHeaderBlock/index.d.ts +2 -0
- package/dist/blocks/Billing/AddCardFormBlock/AddCardFormBlock.d.ts +20 -0
- package/dist/blocks/Billing/AddCardFormBlock/index.d.ts +2 -0
- package/dist/blocks/Billing/BillingAddressBlock/BillingAddressBlock.d.ts +24 -0
- package/dist/blocks/Billing/BillingAddressBlock/index.d.ts +2 -0
- package/dist/blocks/Billing/BillingHistoryBlock/BillingHistoryBlock.d.ts +24 -0
- package/dist/blocks/Billing/BillingHistoryBlock/index.d.ts +2 -0
- package/dist/blocks/Billing/CurrentPlanBlock/CurrentPlanBlock.d.ts +29 -0
- package/dist/blocks/Billing/CurrentPlanBlock/index.d.ts +2 -0
- package/dist/blocks/Billing/PaymentMethodBlock/PaymentMethodBlock.d.ts +23 -0
- package/dist/blocks/Billing/PaymentMethodBlock/cardBrandIcons.d.ts +3 -0
- package/dist/blocks/Billing/PaymentMethodBlock/index.d.ts +3 -0
- package/dist/blocks/BlogListingBlock/BlogListingBlock.d.ts +33 -0
- package/dist/blocks/BlogListingBlock/index.d.ts +2 -0
- package/dist/blocks/CRMDashboardBlock/CRMDashboardBlock.d.ts +6 -0
- package/dist/blocks/CRMDashboardBlock/index.d.ts +2 -0
- package/dist/blocks/CareersBlock/CareersBlock.d.ts +16 -0
- package/dist/blocks/CareersBlock/index.d.ts +2 -0
- package/dist/blocks/ChatInterfaceBlock/ChatInterfaceBlock.d.ts +8 -0
- package/dist/blocks/ChatInterfaceBlock/index.d.ts +2 -0
- package/dist/blocks/CheckoutFlowBlock/CheckoutFlowBlock.d.ts +33 -0
- package/dist/blocks/CheckoutFlowBlock/index.d.ts +2 -0
- package/dist/blocks/CtaBannerBlock/CtaBannerBlock.d.ts +19 -0
- package/dist/blocks/CtaBannerBlock/index.d.ts +2 -0
- package/dist/blocks/DataTableBlock/DataTableBlock.d.ts +8 -0
- package/dist/blocks/DataTableBlock/index.d.ts +2 -0
- package/dist/blocks/EmailVerificationBlock/EmailVerificationBlock.d.ts +13 -0
- package/dist/blocks/EmailVerificationBlock/index.d.ts +2 -0
- package/dist/blocks/FaqBlock/FaqBlock.d.ts +17 -0
- package/dist/blocks/FaqBlock/index.d.ts +2 -0
- package/dist/blocks/FeatureGridBlock/FeatureGridBlock.d.ts +15 -0
- package/dist/blocks/FeatureGridBlock/index.d.ts +2 -0
- package/dist/blocks/FileUploadPanelBlock/FileUploadPanelBlock.d.ts +9 -0
- package/dist/blocks/FileUploadPanelBlock/index.d.ts +2 -0
- package/dist/blocks/ForgotPasswordBlock/ForgotPasswordBlock.d.ts +12 -0
- package/dist/blocks/ForgotPasswordBlock/index.d.ts +2 -0
- package/dist/blocks/FormModalBlock/FormModalBlock.d.ts +8 -0
- package/dist/blocks/FormModalBlock/index.d.ts +2 -0
- package/dist/blocks/HeroBlock/HeroBlock.d.ts +27 -0
- package/dist/blocks/HeroBlock/ScratchRevealImage.d.ts +11 -0
- package/dist/blocks/HeroBlock/index.d.ts +2 -0
- package/dist/blocks/InlineCtaBlock/InlineCtaBlock.d.ts +13 -0
- package/dist/blocks/InlineCtaBlock/index.d.ts +2 -0
- package/dist/blocks/KanbanBoardBlock/KanbanBoardBlock.d.ts +8 -0
- package/dist/blocks/KanbanBoardBlock/index.d.ts +2 -0
- package/dist/blocks/LoginBlock/LoginBlock.d.ts +18 -0
- package/dist/blocks/LoginBlock/index.d.ts +2 -0
- package/dist/blocks/LogoCloudBlock/LogoCloudBlock.d.ts +12 -0
- package/dist/blocks/LogoCloudBlock/brandLogos.d.ts +10 -0
- package/dist/blocks/LogoCloudBlock/index.d.ts +3 -0
- package/dist/blocks/MultistepModalBlock/MultistepModalBlock.d.ts +10 -0
- package/dist/blocks/MultistepModalBlock/index.d.ts +2 -0
- package/dist/blocks/NotificationPanelBlock/NotificationPanelBlock.d.ts +15 -0
- package/dist/blocks/NotificationPanelBlock/index.d.ts +2 -0
- package/dist/blocks/OnboardingProgressBlock/OnboardingProgressBlock.d.ts +15 -0
- package/dist/blocks/OnboardingProgressBlock/index.d.ts +2 -0
- package/dist/blocks/OrderConfirmationBlock/OrderConfirmationBlock.d.ts +25 -0
- package/dist/blocks/OrderConfirmationBlock/index.d.ts +2 -0
- package/dist/blocks/PricingTableBlock/PricingTableBlock.d.ts +26 -0
- package/dist/blocks/PricingTableBlock/index.d.ts +2 -0
- package/dist/blocks/ProductDetailBlock/ProductDetailBlock.d.ts +39 -0
- package/dist/blocks/ProductDetailBlock/index.d.ts +2 -0
- package/dist/blocks/ProductGridBlock/ProductGridBlock.d.ts +24 -0
- package/dist/blocks/ProductGridBlock/index.d.ts +2 -0
- package/dist/blocks/ProfileSettingsBlock/ProfileSettingsBlock.d.ts +13 -0
- package/dist/blocks/ProfileSettingsBlock/index.d.ts +2 -0
- package/dist/blocks/ResetPasswordBlock/ResetPasswordBlock.d.ts +11 -0
- package/dist/blocks/ResetPasswordBlock/index.d.ts +2 -0
- package/dist/blocks/SectionFooterBlock/SectionFooterBlock.d.ts +14 -0
- package/dist/blocks/SectionFooterBlock/index.d.ts +2 -0
- package/dist/blocks/ShoppingCartBlock/ShoppingCartBlock.d.ts +23 -0
- package/dist/blocks/ShoppingCartBlock/index.d.ts +2 -0
- package/dist/blocks/SignUpBlock/SignUpBlock.d.ts +20 -0
- package/dist/blocks/SignUpBlock/index.d.ts +2 -0
- package/dist/blocks/TeamSectionBlock/TeamSectionBlock.d.ts +16 -0
- package/dist/blocks/TeamSectionBlock/index.d.ts +2 -0
- package/dist/blocks/TestimonialBlock/TestimonialBlock.d.ts +13 -0
- package/dist/blocks/TestimonialBlock/index.d.ts +2 -0
- package/dist/blocks/TwoFactorAuthBlock/TwoFactorAuthBlock.d.ts +12 -0
- package/dist/blocks/TwoFactorAuthBlock/index.d.ts +2 -0
- package/dist/blocks/index.d.ts +90 -0
- package/dist/blocks.cjs +1 -0
- package/dist/blocks.d.ts +2 -0
- package/dist/blocks.mjs +5935 -0
- package/dist/components/Combobox/Combobox.d.ts +2 -2
- package/dist/components/ECommerceComponents/CartItem/CartItem.d.ts +21 -0
- package/dist/components/ECommerceComponents/CartItem/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/CheckoutSteps/CheckoutSteps.d.ts +11 -0
- package/dist/components/ECommerceComponents/CheckoutSteps/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/ColorSwatch/ColorSwatch.d.ts +14 -0
- package/dist/components/ECommerceComponents/ColorSwatch/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/PriceDisplay/PriceDisplay.d.ts +12 -0
- package/dist/components/ECommerceComponents/PriceDisplay/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/ProductCard/ProductCard.d.ts +28 -0
- package/dist/components/ECommerceComponents/ProductCard/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/ProductGallery/ProductGallery.d.ts +17 -0
- package/dist/components/ECommerceComponents/ProductGallery/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/QuantitySelector/QuantitySelector.d.ts +12 -0
- package/dist/components/ECommerceComponents/QuantitySelector/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/SizeSelector/SizeSelector.d.ts +12 -0
- package/dist/components/ECommerceComponents/SizeSelector/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/StarRating/StarRating.d.ts +15 -0
- package/dist/components/ECommerceComponents/StarRating/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/StockStatus/StockStatus.d.ts +11 -0
- package/dist/components/ECommerceComponents/StockStatus/index.d.ts +2 -0
- package/dist/components/ECommerceComponents/WishlistButton/WishlistButton.d.ts +10 -0
- package/dist/components/ECommerceComponents/WishlistButton/index.d.ts +2 -0
- package/dist/components/MarketingComponents/BlogBlockquote/BlogBlockquote.d.ts +16 -0
- package/dist/components/MarketingComponents/BlogBlockquote/index.d.ts +2 -0
- package/dist/components/MarketingComponents/BlogFeatureText/BlogFeatureText.d.ts +10 -0
- package/dist/components/MarketingComponents/BlogFeatureText/index.d.ts +2 -0
- package/dist/components/MarketingComponents/BlogImage/BlogImage.d.ts +13 -0
- package/dist/components/MarketingComponents/BlogImage/index.d.ts +2 -0
- package/dist/components/MarketingComponents/BlogListingCard/BlogListingCard.d.ts +24 -0
- package/dist/components/MarketingComponents/BlogListingCard/index.d.ts +2 -0
- package/dist/components/MarketingComponents/BlogListingFeaturedCard/BlogListingFeaturedCard.d.ts +27 -0
- package/dist/components/MarketingComponents/BlogListingFeaturedCard/index.d.ts +2 -0
- package/dist/components/MarketingComponents/FeaturedIcon/FeaturedIcon.d.ts +13 -0
- package/dist/components/MarketingComponents/FeaturedIcon/index.d.ts +2 -0
- package/dist/components/MarketingComponents/FirstPageHeading/FirstPageHeading.d.ts +24 -0
- package/dist/components/MarketingComponents/FirstPageHeading/index.d.ts +2 -0
- package/dist/components/MarketingComponents/JobListing/JobListing.d.ts +19 -0
- package/dist/components/MarketingComponents/JobListing/index.d.ts +2 -0
- package/dist/components/MarketingComponents/List/List.d.ts +10 -0
- package/dist/components/MarketingComponents/List/index.d.ts +2 -0
- package/dist/components/MarketingComponents/LocationDot/LocationDot.d.ts +10 -0
- package/dist/components/MarketingComponents/LocationDot/index.d.ts +2 -0
- package/dist/components/MarketingComponents/Marquee/Marquee.d.ts +11 -0
- package/dist/components/MarketingComponents/Marquee/index.d.ts +2 -0
- package/dist/components/MarketingComponents/Metric/Metric.d.ts +10 -0
- package/dist/components/MarketingComponents/Metric/index.d.ts +2 -0
- package/dist/components/MarketingComponents/MobileNavigationMenu/MobileNavigationMenu.d.ts +19 -0
- package/dist/components/MarketingComponents/MobileNavigationMenu/index.d.ts +2 -0
- package/dist/components/MarketingComponents/PlaceholderLogo/PlaceholderLogo.d.ts +13 -0
- package/dist/components/MarketingComponents/PlaceholderLogo/index.d.ts +2 -0
- package/dist/components/MarketingComponents/ProfileCard/ProfileCard.d.ts +20 -0
- package/dist/components/MarketingComponents/ProfileCard/SocialIcons.d.ts +7 -0
- package/dist/components/MarketingComponents/ProfileCard/index.d.ts +2 -0
- package/dist/components/MarketingComponents/RichTextHeading/RichTextHeading.d.ts +10 -0
- package/dist/components/MarketingComponents/RichTextHeading/index.d.ts +2 -0
- package/dist/components/MarketingComponents/RichTextParagraph/RichTextParagraph.d.ts +7 -0
- package/dist/components/MarketingComponents/RichTextParagraph/index.d.ts +2 -0
- package/dist/components/MarketingComponents/SectionHeading/SectionHeading.d.ts +15 -0
- package/dist/components/MarketingComponents/SectionHeading/index.d.ts +2 -0
- package/dist/components/MarketingComponents/SubFeature/SubFeature.d.ts +14 -0
- package/dist/components/MarketingComponents/SubFeature/index.d.ts +2 -0
- package/dist/components/MarketingComponents/TeamCard/TeamCard.d.ts +23 -0
- package/dist/components/MarketingComponents/TeamCard/TeamSocialIcons.d.ts +10 -0
- package/dist/components/MarketingComponents/TeamCard/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +37 -0
- package/dist/index.mjs +2051 -4361
- package/dist/style.css +1 -1
- package/package.json +6 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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");c=s(c,1);let l=require("react/jsx-runtime"),u=require("lucide-react"),d=require("recharts"),f=require("react-dom");f=s(f,1);var p=(e,t=1.5)=>24/e*t,m={accordion:`_accordion_1njer_3`,item:`_item_1njer_10`,item__header:`_item__header_1njer_12`,item__title:`_item__title_1njer_29`,item__chevron:`_item__chevron_1njer_36`,"item__chevron--open":`_item__chevron--open_1njer_42`,item__panelWrap:`_item__panelWrap_1njer_45`,"item__panelWrap--open":`_item__panelWrap--open_1njer_50`,item__panel:`_item__panel_1njer_45`,item__panelInner:`_item__panelInner_1njer_53`},h=({title:e,children:t,open:n,defaultOpen:r=!1,className:i})=>{let a=n!==void 0,[o,s]=c.default.useState(r),u=a?n:o;return(0,l.jsxs)(`div`,{className:[m.item,i??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`button`,{type:`button`,className:m.item__header,"aria-expanded":u,onClick:()=>!a&&s(e=>!e),children:[(0,l.jsx)(`span`,{className:m.item__title,children:e}),(0,l.jsx)(`span`,{className:[m.item__chevron,u?m[`item__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:(0,l.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),(0,l.jsx)(`div`,{className:[m.item__panelWrap,u?m[`item__panelWrap--open`]:``].join(` `),children:(0,l.jsx)(`div`,{className:m.item__panel,children:(0,l.jsx)(`div`,{className:m.item__panelInner,children:t})})})]})},g=({children:e,className:t})=>(0,l.jsx)(`div`,{className:[m.accordion,t??``].filter(Boolean).join(` `),children:e}),_={avatar:`_avatar_1igqs_3`,"avatar--sm":`_avatar--sm_1igqs_17`,"avatar--md":`_avatar--md_1igqs_18`,"avatar--lg":`_avatar--lg_1igqs_19`,"avatar--xl":`_avatar--xl_1igqs_20`,"avatar--bordered":`_avatar--bordered_1igqs_25`,avatar__image:`_avatar__image_1igqs_31`,avatar__initials:`_avatar__initials_1igqs_39`,avatar__icon:`_avatar__icon_1igqs_46`},v={sm:14,md:18,lg:22,xl:26},y=({px:e})=>(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(e),strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,l.jsx)(`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`}),(0,l.jsx)(`circle`,{cx:`12`,cy:`7`,r:`4`})]}),b=({size:e=`md`,src:t,alt:n=``,initials:r,icon:i,className:a})=>{let o=[_.avatar,_[`avatar--${e}`],a??``].filter(Boolean).join(` `);if(t)return(0,l.jsx)(`span`,{className:[o,_[`avatar--bordered`]].join(` `),children:(0,l.jsx)(`img`,{src:t,alt:n,className:_.avatar__image})});if(r)return(0,l.jsx)(`span`,{className:o,role:`img`,"aria-label":n||r,children:(0,l.jsx)(`span`,{className:_.avatar__initials,children:r.slice(0,2).toUpperCase()})});let s=v[e],u=c.default.isValidElement(i)?c.default.cloneElement(i,{size:s,strokeWidth:p(s)}):i??(0,l.jsx)(y,{px:s});return(0,l.jsx)(`span`,{className:o,role:`img`,"aria-label":n||`avatar`,children:(0,l.jsx)(`span`,{className:_.avatar__icon,children:u})})},x={feed:`_feed_1pvgl_1`,"feed--compact":`_feed--compact_1pvgl_8`,"row--default":`_row--default_1pvgl_13`,rail:`_rail_1pvgl_19`,dot:`_dot_1pvgl_26`,connector:`_connector_1pvgl_42`,content:`_content_1pvgl_49`,"content--spaced":`_content--spaced_1pvgl_56`,"row--compact":`_row--compact_1pvgl_61`,compactLeft:`_compactLeft_1pvgl_68`,text:`_text_1pvgl_74`,actor:`_actor_1pvgl_88`,highlight:`_highlight_1pvgl_89`,timestamp:`_timestamp_1pvgl_92`},S=({children:e})=>(0,l.jsx)(`span`,{className:x.highlight,children:e}),C=16,w=e=>c.default.isValidElement(e)?c.default.cloneElement(e,{size:C,strokeWidth:p(C)}):e,T=({items:e,variant:t=`default`,className:n})=>{let r=t===`compact`;return(0,l.jsx)(`div`,{className:[x.feed,r?x[`feed--compact`]:``,n??``].filter(Boolean).join(` `),children:e.map((t,n)=>{let i=n===e.length-1,a=t.id??n;return r?(0,l.jsxs)(`div`,{className:x[`row--compact`],children:[(0,l.jsxs)(`div`,{className:x.compactLeft,children:[(0,l.jsx)(b,{size:`sm`,src:t.avatarSrc,alt:t.avatarAlt??t.actor}),(0,l.jsxs)(`p`,{className:x.text,children:[(0,l.jsx)(`span`,{className:x.actor,children:t.actor}),` `,t.description]})]}),(0,l.jsx)(`span`,{className:x.timestamp,children:t.timestamp})]},a):(0,l.jsxs)(`div`,{className:x[`row--default`],children:[(0,l.jsxs)(`div`,{className:x.rail,children:[(0,l.jsx)(`div`,{className:x.dot,children:w(t.icon)}),!i&&(0,l.jsx)(`div`,{className:x.connector})]}),(0,l.jsxs)(`div`,{className:[x.content,i?``:x[`content--spaced`]].filter(Boolean).join(` `),children:[(0,l.jsxs)(`p`,{className:x.text,children:[(0,l.jsx)(`span`,{className:x.actor,children:t.actor}),` `,t.description]}),(0,l.jsx)(`span`,{className:x.timestamp,children:t.timestamp})]})]},a)})})},E={link:`_link_1g7dc_3`,link__external:`_link__external_1g7dc_34`},D=c.default.forwardRef(({external:e,children:t,className:n,href:r,...i},a)=>(0,l.jsxs)(`a`,{ref:a,href:r,className:[E.link,n??``].filter(Boolean).join(` `),target:e?`_blank`:i.target,rel:e?`noopener noreferrer`:i.rel,...i,children:[t,e&&(0,l.jsx)(`span`,{className:E.link__external,"aria-label":`(opens in new tab)`,children:(0,l.jsxs)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(12),strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,l.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,l.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,l.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]})})]}));D.displayName=`Link`;var O={button:`_button_1ls4o_2`,"button--sm":`_button--sm_1ls4o_18`,"button--md":`_button--md_1ls4o_19`,"button--lg":`_button--lg_1ls4o_20`,"button--primary":`_button--primary_1ls4o_23`,"button--secondary":`_button--secondary_1ls4o_30`,"button--outline":`_button--outline_1ls4o_35`,"button--ghost":`_button--ghost_1ls4o_40`,"button--destructive":`_button--destructive_1ls4o_45`},k={sm:16,md:18,lg:20},A=c.default.forwardRef(({icon:e,variant:t=`primary`,size:n=`md`,disabled:r,className:i,...a},o)=>(0,l.jsx)(`button`,{ref:o,disabled:r,className:[O.button,O[`button--${t}`],O[`button--${n}`],i??``].filter(Boolean).join(` `),...a,children:(0,l.jsx)(e,{size:k[n],strokeWidth:p(k[n]),"aria-hidden":`true`})}));A.displayName=`IconButton`;var j={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},ee=({message:e,linkLabel:t,linkHref:n,onLinkClick:r,onDismiss:i,variant:a=`neutral`,className:o})=>{let s=a===`urgent`;return(0,l.jsxs)(`div`,{className:[j.announcement,j[`announcement--${a}`],o??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:j.content,children:[(0,l.jsx)(`span`,{className:j.icon,"aria-hidden":`true`,children:s?(0,l.jsx)(u.TriangleAlert,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,l.jsx)(u.Sparkles,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:j.icon__neutral})}),(0,l.jsx)(`p`,{className:j.message,children:e}),!s&&t&&(0,l.jsx)(D,{href:n,onClick:r,className:j.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:t})]}),i&&(0,l.jsx)(A,{icon:u.X,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:i})]})},M={button:`_button_17bv9_21`,"button--primary":`_button--primary_17bv9_72`,"button--secondary":`_button--secondary_17bv9_99`,"button--outline":`_button--outline_17bv9_122`,"button--ghost":`_button--ghost_17bv9_144`,"button--destructive":`_button--destructive_17bv9_165`,"button--sm":`_button--sm_17bv9_189`,"button--md":`_button--md_17bv9_199`,"button--lg":`_button--lg_17bv9_209`,"button--hasLeftIcon":`_button--hasLeftIcon_17bv9_220`,"button--hasRightIcon":`_button--hasRightIcon_17bv9_221`,button__icon:`_button__icon_17bv9_234`,button__label:`_button__label_17bv9_241`,"button--loading":`_button--loading_17bv9_251`,button__spinner:`_button__spinner_17bv9_255`,"sakani-btn-spin":`_sakani-btn-spin_17bv9_1`},N=c.default.forwardRef(({variant:e=`primary`,size:t=`md`,leftIcon:n,rightIcon:r,loading:i=!1,disabled:a,children:o,className:s,...c},u)=>{let d=a||i;return(0,l.jsxs)(`button`,{ref:u,className:[M.button,M[`button--${e}`],M[`button--${t}`],i?M[`button--loading`]:``,n&&!i?M[`button--hasLeftIcon`]:``,r&&!i?M[`button--hasRightIcon`]:``,s??``].filter(Boolean).join(` `),disabled:d,"aria-busy":i,...c,children:[i&&(0,l.jsx)(`span`,{className:[M.button__icon,M.button__spinner].join(` `),"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,children:(0,l.jsx)(`path`,{d:`M12 3a9 9 0 1 1-6.36 2.64`})})}),n&&!i&&(0,l.jsx)(`span`,{className:M.button__icon,"aria-hidden":`true`,children:n}),(0,l.jsx)(`span`,{className:M.button__label,children:o}),r&&!i&&(0,l.jsx)(`span`,{className:M.button__icon,"aria-hidden":`true`,children:r})]})});N.displayName=`Button`;var P={wrap:`_wrap_3mj75_1`,"wrap--vertical":`_wrap--vertical_3mj75_7`,"wrap--horizontal":`_wrap--horizontal_3mj75_11`,circleWrap:`_circleWrap_3mj75_21`,bigAvatar:`_bigAvatar_3mj75_26`,badge:`_badge_3mj75_31`,horizontalContent:`_horizontalContent_3mj75_53`,textStack:`_textStack_3mj75_60`,"textStack--center":`_textStack--center_3mj75_66`,title:`_title_3mj75_71`,hint:`_hint_3mj75_79`,link:`_link_3mj75_88`,input:`_input_3mj75_92`},te=({src:e,alt:t,orientation:n=`vertical`,accept:r=`image/jpeg,image/png`,title:i=`Upload a photo`,hint:a=`JPG or PNG, max 5MB.`,onFileSelect:o,onRemove:s,className:d})=>{let f=c.default.useRef(null),m=e!==void 0,[h,g]=c.default.useState(void 0),_=m?e:h,v=n===`horizontal`,y=!!_,x=()=>f.current?.click(),S=()=>{s?.(),m||g(void 0)},C=(0,l.jsxs)(`div`,{className:[P.textStack,v?``:P[`textStack--center`]].filter(Boolean).join(` `),children:[(0,l.jsx)(`p`,{className:P.title,children:i}),(0,l.jsx)(`p`,{className:P.hint,children:a})]});return(0,l.jsxs)(`div`,{className:[P.wrap,P[`wrap--${n}`],d??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:P.circleWrap,children:[(0,l.jsx)(b,{size:v?`lg`:`xl`,src:_,alt:t,className:v?void 0:P.bigAvatar}),!v&&(0,l.jsx)(`button`,{type:`button`,className:P.badge,onClick:x,"aria-label":`Change photo`,children:(0,l.jsx)(u.Camera,{size:16,strokeWidth:p(16)})})]}),v&&(0,l.jsxs)(`div`,{className:P.horizontalContent,children:[C,y?(0,l.jsx)(N,{variant:`outline`,size:`sm`,onClick:S,style:{color:`var(--color-danger-fg)`,borderColor:`var(--color-danger-border)`},children:`Remove`}):(0,l.jsx)(N,{variant:`outline`,size:`sm`,onClick:x,children:`Upload`})]}),!v&&(y?(0,l.jsx)(D,{href:`#`,onClick:e=>{e.preventDefault(),x()},className:P.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:`Change photo`}):C),(0,l.jsx)(`input`,{ref:f,type:`file`,accept:r,className:P.input,onChange:e=>{let t=e.target.files?.[0];t&&(o?.(t),m||g(URL.createObjectURL(t))),e.target.value=``}})]})};function ne(){let[e,t]=(0,c.useState)(0);return(0,c.useEffect)(()=>{if(typeof document>`u`)return;let e=new MutationObserver(()=>t(e=>e+1));return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),()=>e.disconnect()},[]),e}var F={balance:`_balance_kaxp5_1`,"balance--progress":`_balance--progress_kaxp5_8`,content:`_content_kaxp5_17`,labelRow:`_labelRow_kaxp5_33`,label:`_label_kaxp5_33`,hideToggle:`_hideToggle_kaxp5_50`,value:`_value_kaxp5_71`,"value--hidden":`_value--hidden_kaxp5_83`,"value--glitching":`_value--glitching_kaxp5_90`,"balance-glitch":`_balance-glitch_kaxp5_1`,changeRow:`_changeRow_kaxp5_101`,trendIcon__up:`_trendIcon__up_kaxp5_108`,trendIcon__down:`_trendIcon__down_kaxp5_109`,changeValue__up:`_changeValue__up_kaxp5_110`,changeValue__down:`_changeValue__down_kaxp5_117`,changeLabel:`_changeLabel_kaxp5_124`,ringCard:`_ringCard_kaxp5_132`},re=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`,ie=8,ae=6,oe=90,se=e=>{let t=Math.min(e,ie);return Array.from({length:t},()=>re[Math.floor(Math.random()*36)]).join(``)},ce=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,le=({progress:e})=>{ne();let t=ce(`--color-chart-1`)??`#ff4700`,n=ce(`--color-bg-subtle`)??`#f5f4f2`,r=[{value:Math.max(0,Math.min(100,e))}];return(0,l.jsx)(`div`,{className:F.ringCard,children:(0,l.jsx)(d.ResponsiveContainer,{width:64,height:64,children:(0,l.jsxs)(d.RadialBarChart,{data:r,startAngle:90,endAngle:-270,innerRadius:`72%`,outerRadius:`100%`,barSize:10,children:[(0,l.jsx)(d.PolarAngleAxis,{type:`number`,domain:[0,100],tick:!1,axisLine:!1}),(0,l.jsx)(d.RadialBar,{dataKey:`value`,cornerRadius:5,fill:t,background:{fill:n},isAnimationActive:!1})]})})})},ue=({label:e=`Available balance`,value:t,change:n,progress:r,hidden:i,onToggleHidden:a,className:o})=>{let s=i!==void 0,[d,f]=c.default.useState(!1),m=s?i:d,h=r!==void 0,g=n?.direction??`up`,_=g===`up`?u.TrendingUp:u.TrendingDown,v=()=>{let e=!m;a?.(e),s||f(e)},[y,b]=c.default.useState(!1),[x,S]=c.default.useState(0),C=c.default.useRef(!1);c.default.useEffect(()=>{if(m&&!C.current){b(!0);let e=0,t=setInterval(()=>{e+=1,S(e=>e+1),e>=ae&&(clearInterval(t),b(!1))},oe);return C.current=!0,()=>clearInterval(t)}C.current=m},[m]);let w=c.default.useMemo(()=>se(t.length),[t,x]),T=c.default.useMemo(()=>n?se(n.value.length):``,[n?.value,x]),E=(0,l.jsxs)(`div`,{className:F.content,children:[(0,l.jsxs)(`div`,{className:F.labelRow,children:[(0,l.jsx)(`p`,{className:F.label,children:e}),(0,l.jsx)(`button`,{type:`button`,className:F.hideToggle,"aria-label":m?`Show balance`:`Hide balance`,onClick:v,children:m?(0,l.jsx)(u.EyeOff,{size:16,strokeWidth:p(16)}):(0,l.jsx)(u.Eye,{size:16,strokeWidth:p(16)})})]}),(0,l.jsx)(`p`,{className:[F.value,m?F[`value--hidden`]:``,y?F[`value--glitching`]:``].filter(Boolean).join(` `),children:m?w:t}),n&&(0,l.jsxs)(`div`,{className:F.changeRow,children:[(0,l.jsx)(_,{size:24,strokeWidth:1.5,className:g===`up`?F.trendIcon__up:F.trendIcon__down}),(0,l.jsx)(`span`,{className:[g===`up`?F.changeValue__up:F.changeValue__down,y?F[`value--glitching`]:``].filter(Boolean).join(` `),children:m?T:n.value}),(0,l.jsx)(`span`,{className:F.changeLabel,children:n.label??`this month`})]})]});return(0,l.jsxs)(`div`,{className:[F.balance,h?F[`balance--progress`]:``,o??``].filter(Boolean).join(` `),children:[h&&(0,l.jsx)(le,{progress:r}),E]})},de={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},fe=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],pe=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${fe.join(`|`)})\\b)`,`g`),me=e=>e.split(pe).map((e,t)=>{if(!e)return null;let n=/^['"`]/.test(e),r=!n&&fe.includes(e);return n?(0,l.jsx)(`span`,{className:de.tokenString,children:e},t):r?(0,l.jsx)(`span`,{className:de.tokenKeyword,children:e},t):(0,l.jsx)(c.default.Fragment,{children:e},t)}),he=({code:e,filename:t,onCopy:n,editable:r=!1,onChange:i,placeholder:a,className:o})=>{let[s,d]=c.default.useState(!1),[f,p]=c.default.useState(e);c.default.useEffect(()=>p(e),[e]);let m=()=>{navigator.clipboard?.writeText(f),n?.(f),d(!0),window.setTimeout(()=>d(!1),1500)},h=e=>{p(e),i?.(e)},g=r?(0,l.jsxs)(`div`,{className:de.editableBody,children:[(0,l.jsx)(`pre`,{className:de.body,"aria-hidden":`true`,children:me(f)}),(0,l.jsx)(`textarea`,{className:de.textarea,value:f,placeholder:a,spellCheck:!1,onChange:e=>h(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${f.slice(0,n)} ${f.slice(r)}`;h(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,l.jsx)(`pre`,{className:de.body,children:me(f)});return t?(0,l.jsxs)(`div`,{className:[de.snippet,o??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:de.header,children:[(0,l.jsx)(`p`,{className:de.filename,children:t}),(0,l.jsx)(A,{icon:s?u.Check:u.Copy,variant:`ghost`,size:`sm`,"aria-label":s?`Copied`:`Copy code`,onClick:m})]}),g]}):(0,l.jsx)(`div`,{className:[de.snippet,o??``].filter(Boolean).join(` `),children:g})},ge={progress:`_progress_1qaz4_11`,"progress--sm":`_progress--sm_1qaz4_20`,"progress--md":`_progress--md_1qaz4_21`,"progress--lg":`_progress--lg_1qaz4_22`,progress__fill:`_progress__fill_1qaz4_25`,"progress__fill--indeterminate":`_progress__fill--indeterminate_1qaz4_33`,"progress-scan":`_progress-scan_1qaz4_1`},_e=({value:e,size:t=`md`,label:n=`Progress`,className:r})=>{let i=e===void 0,a=Math.min(100,Math.max(0,e??0));return(0,l.jsx)(`div`,{role:`progressbar`,"aria-label":n,"aria-valuenow":i?void 0:a,"aria-valuemin":0,"aria-valuemax":100,className:[ge.progress,ge[`progress--${t}`],r??``].filter(Boolean).join(` `),children:(0,l.jsx)(`div`,{className:[ge.progress__fill,i?ge[`progress__fill--indeterminate`]:``].filter(Boolean).join(` `),style:i?void 0:{width:`${a}%`}})})},ve={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},ye=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),be=({categories:e,variant:t=`default`,formatAmount:n=ye,className:r})=>{let i=t===`compact`,a=Math.max(1,...e.map(e=>e.amount));return(0,l.jsx)(`div`,{className:[ve.expenses,r??``].filter(Boolean).join(` `),children:e.map((e,t)=>(0,l.jsxs)(`div`,{className:ve.row,children:[(0,l.jsxs)(`div`,{className:ve.top,children:[(0,l.jsxs)(`div`,{className:ve.left,children:[(0,l.jsx)(`span`,{className:ve.icon,"aria-hidden":`true`,children:e.icon}),(0,l.jsx)(`p`,{className:ve.label,children:e.label})]}),(0,l.jsx)(`p`,{className:ve.amount,children:n(e.amount)})]}),!i&&(0,l.jsx)(_e,{value:e.amount/a*100,size:`lg`,label:`${e.label} spending`})]},e.id??t))})},xe={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},Se=14,Ce=({message:e,variant:t=`neutral`,className:n})=>{let r=t===`warning`?u.TriangleAlert:u.Info;return(0,l.jsxs)(`div`,{className:[xe.hint,xe[`hint--${t}`],n??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:xe.bar,"aria-hidden":`true`}),(0,l.jsx)(r,{size:Se,strokeWidth:p(Se),className:xe.icon}),(0,l.jsx)(`p`,{className:xe.message,children:e})]})},we={"divider--horizontal":`_divider--horizontal_nem37_4`,"divider--labeled":`_divider--labeled_nem37_13`,"divider--vertical":`_divider--vertical_nem37_27`,divider__label:`_divider__label_nem37_38`},Te=({orientation:e=`horizontal`,label:t,className:n})=>(0,l.jsx)(`div`,{role:`separator`,"aria-orientation":e,className:[we.divider,we[`divider--${e}`],t?we[`divider--labeled`]:``,n??``].filter(Boolean).join(` `),children:t&&e===`horizontal`&&(0,l.jsx)(`span`,{className:we.divider__label,children:t})}),Ee={backdrop:`_backdrop_7uc99_1`,card:`_card_7uc99_12`,header:`_header_7uc99_32`,titleGroup:`_titleGroup_7uc99_40`,iconWrap:`_iconWrap_7uc99_47`,icon:`_icon_7uc99_47`,title:`_title_7uc99_40`,description:`_description_7uc99_73`,footer:`_footer_7uc99_81`,"footer--between":`_footer--between_7uc99_92`},De=({open:e,onClose:t,title:n,description:r,variant:i=`default`,icon:a,cancelLabel:o=`Cancel`,confirmLabel:s,onCancel:d,onConfirm:m,confirmLoading:h,closeOnEscape:g=!0,closeOnBackdropClick:_=!0,children:v,hideHeader:y=!1,hideFooterDivider:b=!1,footerJustify:x=`end`,className:S})=>{let C=i===`destructive`,w=c.default.useRef(null),T=c.default.useRef(null),E=c.default.useRef(null),[D,O]=c.default.useState(!1);return c.default.useEffect(()=>{e&&O(!!E.current?.closest(`.dark`))},[e]),c.default.useEffect(()=>{if(!e)return;let n=e=>{if(g&&e.key===`Escape`){t();return}if(e.key!==`Tab`||!w.current)return;let n=w.current.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(n.length===0)return;let r=n[0],i=n[n.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),r.focus())};return document.addEventListener(`keydown`,n),()=>document.removeEventListener(`keydown`,n)},[e,g,t]),c.default.useEffect(()=>{if(!e)return;T.current=document.activeElement;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,w.current?.focus(),()=>{document.body.style.overflow=t,T.current?.focus()}},[e]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{ref:E,style:{display:`none`},"aria-hidden":`true`}),e&&(0,f.createPortal)((0,l.jsx)(`div`,{className:[Ee.backdrop,D?`dark`:``].filter(Boolean).join(` `),onMouseDown:e=>{_&&e.target===e.currentTarget&&t()},children:(0,l.jsxs)(`div`,{ref:w,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":y?void 0:`modal-title`,"aria-label":y?n:void 0,tabIndex:-1,className:[Ee.card,S??``].filter(Boolean).join(` `),children:[!y&&(0,l.jsxs)(`div`,{className:Ee.header,children:[(0,l.jsxs)(`div`,{className:Ee.titleGroup,children:[C&&(0,l.jsx)(`span`,{className:Ee.iconWrap,"aria-hidden":`true`,children:a??(0,l.jsx)(u.TriangleAlert,{size:24,strokeWidth:p(24),className:Ee.icon})}),(0,l.jsx)(`p`,{id:`modal-title`,className:Ee.title,children:n})]}),(0,l.jsx)(A,{icon:u.X,variant:`ghost`,size:`lg`,"aria-label":`Close`,onClick:t})]}),r&&(0,l.jsx)(`p`,{className:Ee.description,children:r}),v,!b&&(0,l.jsx)(Te,{}),(0,l.jsxs)(`div`,{className:[Ee.footer,x===`between`?Ee[`footer--between`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(N,{variant:`secondary`,onClick:()=>(d??t)(),style:{borderColor:`transparent`},children:o}),(0,l.jsx)(N,{variant:C?`destructive`:`primary`,onClick:m,loading:h,children:s??(C?`Delete`:`Confirm`)})]})]})}),document.body)]})},I={row:`_row_88l3n_2`,"row--unread":`_row--unread_88l3n_12`,iconWrapSurface:`_iconWrapSurface_88l3n_17`,iconWrapCanvas:`_iconWrapCanvas_88l3n_18`,content:`_content_88l3n_31`,titleBold:`_titleBold_88l3n_39`,titleMuted:`_titleMuted_88l3n_46`,timestamp:`_timestamp_88l3n_53`,dot:`_dot_88l3n_62`,card:`_card_88l3n_71`,cardTop:`_cardTop_88l3n_87`,description:`_description_88l3n_94`,actions:`_actions_88l3n_102`},Oe=({icon:e,title:t,timestamp:n,read:r=!1,description:i,onDismiss:a,dismissLabel:o=`Dismiss`,actionLabel:s,onAction:c,className:d})=>{let f=i!==void 0,m=!r&&!f,h=e??(0,l.jsx)(u.Bell,{size:24,strokeWidth:p(24)});return f?(0,l.jsxs)(`div`,{className:[I.card,d??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:I.cardTop,children:[(0,l.jsx)(`span`,{className:I.iconWrapCanvas,"aria-hidden":`true`,children:h}),(0,l.jsxs)(`div`,{className:I.content,children:[(0,l.jsx)(`p`,{className:I.titleBold,children:t}),(0,l.jsx)(`p`,{className:I.description,children:i})]}),a&&(0,l.jsx)(A,{icon:u.X,variant:`ghost`,size:`sm`,"aria-label":`Close`,onClick:a})]}),(0,l.jsxs)(`div`,{className:I.actions,children:[a&&(0,l.jsx)(N,{variant:`ghost`,size:`sm`,onClick:a,children:o}),s&&(0,l.jsx)(N,{variant:`secondary`,size:`sm`,onClick:c,style:{borderColor:`transparent`},children:s})]})]}):(0,l.jsxs)(`div`,{className:[I.row,m?I[`row--unread`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:I.iconWrapSurface,"aria-hidden":`true`,children:h}),(0,l.jsxs)(`div`,{className:I.content,children:[(0,l.jsx)(`p`,{className:m?I.titleBold:I.titleMuted,children:t}),n&&(0,l.jsx)(`p`,{className:I.timestamp,children:n})]}),m&&(0,l.jsx)(`span`,{className:I.dot,"aria-hidden":`true`})]})},L={item:`_item_mg6gs_1`,"item--horizontal":`_item--horizontal_mg6gs_6`,"item--vertical":`_item--vertical_mg6gs_11`,value:`_value_mg6gs_16`,topRow:`_topRow_mg6gs_31`,connectorHorizontal:`_connectorHorizontal_mg6gs_36`,rail:`_rail_mg6gs_44`,connectorVertical:`_connectorVertical_mg6gs_51`,text:`_text_mg6gs_59`,title:`_title_mg6gs_65`,description:`_description_mg6gs_73`},ke=({step:e,title:t,description:n,completed:r=!1,orientation:i=`horizontal`,isLast:a=!1,className:o})=>{let s=i===`vertical`,c=(0,l.jsx)(`span`,{className:L.value,"aria-hidden":`true`,children:r?(0,l.jsx)(u.Check,{size:14,strokeWidth:p(14)}):e}),d=(0,l.jsxs)(`div`,{className:L.text,children:[(0,l.jsx)(`p`,{className:L.title,children:t}),n&&(0,l.jsx)(`p`,{className:L.description,children:n})]});return s?(0,l.jsxs)(`div`,{className:[L.item,L[`item--vertical`],o??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:L.rail,children:[c,!a&&(0,l.jsx)(`div`,{className:L.connectorVertical})]}),d]}):(0,l.jsxs)(`div`,{className:[L.item,L[`item--horizontal`],o??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:L.topRow,children:[c,!a&&(0,l.jsx)(`div`,{className:L.connectorHorizontal})]}),d]})},Ae={stat:`_stat_krs8c_1`,labelRow:`_labelRow_krs8c_10`,label:`_label_krs8c_10`,value:`_value_krs8c_27`},je=({label:e,value:t,progress:n,className:r})=>(0,l.jsxs)(`div`,{className:[Ae.stat,r??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:Ae.labelRow,children:[(0,l.jsx)(`p`,{className:Ae.label,children:e}),(0,l.jsx)(`p`,{className:Ae.value,children:t})]}),(0,l.jsx)(_e,{value:n,size:`lg`,label:e})]}),Me={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},Ne=({children:e,label:t,className:n})=>(0,l.jsxs)(`div`,{className:[Me.separator,n??``].filter(Boolean).join(` `),role:`separator`,children:[(0,l.jsx)(Te,{className:Me.line}),e??(t&&(0,l.jsx)(`span`,{className:Me.overline,children:t})),(0,l.jsx)(Te,{className:Me.line})]}),Pe={balance:`_balance_5gcu5_1`,label:`_label_5gcu5_10`,amountRow:`_amountRow_5gcu5_19`,amount:`_amount_5gcu5_19`,limit:`_limit_5gcu5_34`,track:`_track_5gcu5_43`,fill:`_fill_5gcu5_50`,"fill--over":`_fill--over_5gcu5_57`,footer:`_footer_5gcu5_61`},Fe=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),Ie=({label:e=`Spent this month`,spent:t,limit:n,formatAmount:r=Fe,className:i})=>{let a=t>n,o=a?100:n>0?t/n*100:0,s=a?`${r(t-n)} over your limit`:`${r(n-t)} remaining`;return(0,l.jsxs)(`div`,{className:[Pe.balance,i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`p`,{className:Pe.label,children:e}),(0,l.jsxs)(`div`,{className:Pe.amountRow,children:[(0,l.jsx)(`p`,{className:Pe.amount,children:r(t)}),(0,l.jsxs)(`p`,{className:Pe.limit,children:[`of `,r(n),` limit`]})]}),(0,l.jsx)(`div`,{className:Pe.track,role:`progressbar`,"aria-label":e,"aria-valuenow":Math.round(o),"aria-valuemin":0,"aria-valuemax":100,children:(0,l.jsx)(`div`,{className:[Pe.fill,a?Pe[`fill--over`]:``].filter(Boolean).join(` `),style:{width:`${o}%`}})}),(0,l.jsx)(`p`,{className:Pe.footer,children:s})]})},Le={tooltip:`_tooltip_ic16u_3`,title:`_title_ic16u_23`,row:`_row_ic16u_27`,dot:`_dot_ic16u_34`,label:`_label_ic16u_41`,value:`_value_ic16u_42`},Re=({active:e,payload:t,label:n,formatter:r})=>!e||!t||t.length===0?null:(0,l.jsxs)(`div`,{className:Le.tooltip,children:[n!==void 0&&n!==``&&(0,l.jsx)(`span`,{className:Le.title,children:n}),t.map((e,t)=>(0,l.jsxs)(`div`,{className:Le.row,children:[(0,l.jsx)(`span`,{className:Le.dot,style:{background:e.color??e.payload?.fill??e.fill}}),(0,l.jsx)(`span`,{className:Le.label,children:e.name}),(0,l.jsx)(`span`,{className:Le.value,children:r?r(e.value,e.name):e.value})]},t))]}),ze={chart:`_chart_1s6lv_2`,legend:`_legend_1s6lv_31`,legendItem:`_legendItem_1s6lv_41`,legendSwatch:`_legendSwatch_1s6lv_46`},Be={sm:180,md:240,lg:320,xl:420},R=6,Ve=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,He=e=>{if(e<=0)return 1;let t=10**Math.floor(Math.log10(e)),n=e/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t},Ue=({data:e,variant:t=`default`,size:n=`md`,seriesLabels:r=[`Value`,`Value 2`],className:i})=>{let[a,o]=c.default.useState(null),[s,u]=c.default.useState(null);ne();let f=Ve(`--color-chart-2`)??`#2e90fa`,p=Ve(`--color-chart-5`)??`#78716a`,m=Ve(`--color-chart-1`)??`#ff4700`,h=[1,2,3,4,5,6].map(e=>Ve(`--color-chart-${e}`)??`#ff4700`),g=Ve(`--color-border-subtle`)??`#e5e4e7`,_=Ve(`--color-fg-muted`)??`#6b6375`,v=t===`multiple`||t===`stacked`,y=v&&e.some(e=>e.value2!==void 0),b=Ve(`--color-bg-canvas`)??`#fafaf9`,x=He(Math.max(1,...e.map(e=>Math.abs(e.value)))),S=[-x,-x/2,0,x/2,x],C=(0,l.jsx)(d.Tooltip,{cursor:!1,content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50},position:s?{y:s.y}:void 0}),w=n=>t===`active`?h[n%h.length]:t===`negative`&&e[n].value<0?m:f,T=e=>a!==null&&e!==a?.45:1,E=(e,t,n,r,i,a)=>({x:e?t+r:t+r/2,y:e?n+i/2:a<0?n+i:n}),D=n=>r=>{let{x:i,y:a,width:o,height:s,fill:c,radius:u}=r,p=Number(e[r.index]?.[n]??0),{x:m,y:h}=E(t===`horizontal`,i,a,o,s,p);return t===`stacked`&&n===`value`?(0,l.jsx)(d.Rectangle,{x:i,y:a,width:o,height:s,fill:c,radius:u}):(0,l.jsxs)(`g`,{children:[(0,l.jsx)(d.Rectangle,{x:i,y:a,width:o,height:s,fill:c,radius:u}),(0,l.jsx)(`circle`,{cx:m,cy:h,r:4,fill:c,stroke:b,strokeWidth:1.5}),t===`stacked`&&n===`value2`&&(0,l.jsx)(`circle`,{cx:i+o/2,cy:a+s,r:4,fill:f,stroke:b,strokeWidth:1.5})]})},O=n=>(r,i)=>{o(i);let a=Number(e[i]?.[n]??0);u(E(t===`horizontal`,r.x,r.y,r.width,r.height,a))},k=()=>{o(null),u(null)};return(0,l.jsx)(`div`,{className:[ze.chart,i??``].filter(Boolean).join(` `),children:(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:Be[n],children:(0,l.jsxs)(d.BarChart,{data:e,layout:t===`horizontal`?`vertical`:`horizontal`,margin:{top:8,right:8,bottom:8,left:t===`horizontal`?8:0},children:[(0,l.jsx)(d.CartesianGrid,{strokeDasharray:`3 3`,stroke:g,horizontal:!0,vertical:t===`horizontal`}),t===`horizontal`?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.XAxis,{type:`number`,stroke:_,fontSize:12,tickLine:!1,axisLine:!1}),(0,l.jsx)(d.YAxis,{type:`category`,dataKey:`label`,stroke:_,fontSize:12,tickLine:!1,axisLine:!1,width:64})]}):(0,l.jsx)(d.XAxis,{dataKey:`label`,stroke:_,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),t===`negative`&&(0,l.jsx)(d.YAxis,{hide:!0,domain:[-x,x],ticks:S}),C,v&&(0,l.jsx)(d.Legend,{content:e=>(0,l.jsx)(`ul`,{className:ze.legend,children:e.payload?.map(e=>(0,l.jsxs)(`li`,{className:ze.legendItem,children:[(0,l.jsx)(`span`,{className:ze.legendSwatch,style:{background:e.color}}),(0,l.jsx)(`span`,{style:{color:e.color},children:e.value})]},e.value))})}),v?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Bar,{dataKey:`value`,name:r[0]??`Value`,fill:f,stackId:t===`stacked`?`stack`:void 0,radius:t===`stacked`?[0,0,R,R]:[R,R,R,R],isAnimationActive:!1,activeBar:D(`value`),onMouseEnter:O(`value`),onMouseLeave:k,children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:f,fillOpacity:a!==null&&t!==a?.45:1},t))}),y&&(0,l.jsx)(d.Bar,{dataKey:`value2`,name:r[1]??`Value 2`,fill:p,stackId:t===`stacked`?`stack`:void 0,radius:t===`stacked`?[R,R,0,0]:[R,R,R,R],isAnimationActive:!1,activeBar:D(`value2`),onMouseEnter:O(`value2`),onMouseLeave:k,children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:p,fillOpacity:a!==null&&t!==a?.45:1},t))})]}):(0,l.jsx)(d.Bar,{dataKey:`value`,name:`Value`,fill:a===null?f:w(a),radius:[R,R,R,R],isAnimationActive:!1,activeBar:D(`value`),onMouseEnter:O(`value`),onMouseLeave:k,children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:w(t),fillOpacity:T(t)},t))})]})})})},z={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},We=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),Ge=({logo:e,symbol:t,name:n,price:r,change:i,formatAmount:a=We,chart:o,periodLabel:s=`Last 6 months`,onPeriodClick:c,className:d})=>{let f=i.amount>=0,m=f?u.TrendingUp:u.TrendingDown,h=f?`+`:`-`,g=`${h}${a(i.amount)} (${h}${Math.abs(i.percent)}%)`,_=f?z.trendUp:z.trendDown;return o?(0,l.jsxs)(`div`,{className:[z.card,d??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:z.header,children:[(0,l.jsx)(u.ChartColumn,{size:16,strokeWidth:p(16),className:z.headerIcon}),(0,l.jsx)(`span`,{className:z.headerLabel,children:`Stock market`})]}),(0,l.jsxs)(`div`,{className:z.tickerRow,children:[(0,l.jsx)(`span`,{className:z.logoLg,"aria-hidden":`true`,children:e}),(0,l.jsxs)(`div`,{className:z.text,children:[(0,l.jsx)(`p`,{className:z.symbol,children:t}),(0,l.jsx)(`p`,{className:z.name,children:n})]})]}),(0,l.jsxs)(`div`,{className:z.body,children:[(0,l.jsxs)(`div`,{className:z.priceRow,children:[(0,l.jsxs)(`div`,{className:z.priceGroup,children:[(0,l.jsx)(`p`,{className:z.priceLg,children:a(r)}),(0,l.jsxs)(`div`,{className:z.changeRowLg,children:[(0,l.jsx)(m,{size:24,strokeWidth:p(24),className:_}),(0,l.jsx)(`span`,{className:[z.changeTextLg,_].join(` `),children:g})]})]}),(0,l.jsx)(N,{variant:`outline`,size:`sm`,rightIcon:(0,l.jsx)(u.ChevronDown,{size:16,strokeWidth:p(16)}),onClick:c,children:s})]}),(0,l.jsx)(Ue,{data:o,className:z.chart})]})]}):(0,l.jsxs)(`div`,{className:[z.row,d??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:z.left,children:[(0,l.jsx)(`span`,{className:z.logo,"aria-hidden":`true`,children:e}),(0,l.jsxs)(`div`,{className:z.text,children:[(0,l.jsx)(`p`,{className:z.symbol,children:t}),(0,l.jsx)(`p`,{className:z.name,children:n})]})]}),(0,l.jsxs)(`div`,{className:z.right,children:[(0,l.jsx)(`p`,{className:z.price,children:a(r)}),(0,l.jsxs)(`div`,{className:z.changeRow,children:[(0,l.jsx)(m,{size:20,strokeWidth:p(20),className:_}),(0,l.jsx)(`span`,{className:[z.changeText,_].join(` `),children:g})]})]})]})},Ke={badge:`_badge_a5a38_6`,"badge--neutral-subtle":`_badge--neutral-subtle_a5a38_20`,"badge--neutral-solid":`_badge--neutral-solid_a5a38_21`,"badge--accent-subtle":`_badge--accent-subtle_a5a38_24`,"badge--accent-solid":`_badge--accent-solid_a5a38_25`,"badge--success-subtle":`_badge--success-subtle_a5a38_28`,"badge--success-solid":`_badge--success-solid_a5a38_29`,"badge--warning-subtle":`_badge--warning-subtle_a5a38_32`,"badge--warning-solid":`_badge--warning-solid_a5a38_33`,"badge--danger-subtle":`_badge--danger-subtle_a5a38_36`,"badge--danger-solid":`_badge--danger-solid_a5a38_37`,"badge--info-subtle":`_badge--info-subtle_a5a38_40`,"badge--info-solid":`_badge--info-solid_a5a38_41`,badge__icon:`_badge__icon_a5a38_44`,badge__label:`_badge__label_a5a38_45`},qe=({variant:e=`neutral`,emphasis:t=`subtle`,leftIcon:n,rightIcon:r,children:i,className:a})=>(0,l.jsxs)(`span`,{className:[Ke.badge,Ke[`badge--${e}-${t}`],a??``].filter(Boolean).join(` `),children:[n&&(0,l.jsx)(`span`,{className:Ke.badge__icon,"aria-hidden":`true`,children:n}),(0,l.jsx)(`span`,{className:Ke.badge__label,children:i}),r&&(0,l.jsx)(`span`,{className:Ke.badge__icon,"aria-hidden":`true`,children:r})]}),Je={tags:`_tags_acsad_1`,remove:`_remove_acsad_8`},Ye=({tags:e,onRemove:t,className:n})=>(0,l.jsx)(`div`,{className:[Je.tags,n??``].filter(Boolean).join(` `),children:e.map((e,n)=>(0,l.jsx)(qe,{rightIcon:t&&(0,l.jsx)(`button`,{type:`button`,className:Je.remove,onClick:()=>t(e,n),"aria-label":`Remove ${e}`,children:(0,l.jsx)(u.X,{size:12,strokeWidth:p(12)})}),children:e},e))}),Xe={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},Ze=e=>`${e>=0?`+`:``}${e}%`,Qe=({items:e,formatChange:t,ariaHidden:n})=>(0,l.jsx)(`div`,{className:Xe.row,"aria-hidden":n,children:e.map((e,n)=>{let r=e.changePercent>=0,i=r?u.TrendingUp:u.TrendingDown,a=r?Xe.trendUp:Xe.trendDown;return(0,l.jsxs)(`div`,{className:Xe.item,children:[(0,l.jsx)(`span`,{className:Xe.symbol,children:e.symbol}),(0,l.jsx)(i,{size:14,strokeWidth:p(14),className:a}),(0,l.jsx)(`span`,{className:[Xe.change,a].join(` `),children:t(e.changePercent)})]},`${e.symbol}-${n}`)})}),$e=({items:e,speed:t=40,formatChange:n=Ze,className:r})=>{let i=c.default.useRef(null),[a,o]=c.default.useState(20);return c.default.useEffect(()=>{let e=i.current;if(!e)return;let n=e.firstElementChild;if(!n)return;let r=()=>{let e=n.scrollWidth;e>0&&o(e/t)};r();let a=new ResizeObserver(r);return a.observe(n),()=>a.disconnect()},[e,t]),(0,l.jsxs)(`div`,{className:[Xe.ticker,r??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{ref:i,className:Xe.track,style:{"--ticker-duration":`${a}s`},children:[(0,l.jsx)(Qe,{items:e,formatChange:n}),(0,l.jsx)(Qe,{items:e,formatChange:n,ariaHidden:!0})]}),(0,l.jsx)(`div`,{className:Xe.fadeLeft,"aria-hidden":`true`}),(0,l.jsx)(`div`,{className:Xe.fadeRight,"aria-hidden":`true`})]})},B={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},et=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,tt=({transactions:e,formatAmount:t=et,emptyTitle:n=`No transactions yet`,emptyDescription:r=`Your activity will show up here.`,className:i})=>e.length===0?(0,l.jsxs)(`div`,{className:[B.empty,i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(u.Receipt,{size:24,strokeWidth:p(24),className:B.emptyIcon}),(0,l.jsx)(`p`,{className:B.emptyTitle,children:n}),(0,l.jsx)(`p`,{className:B.emptyDesc,children:r})]}):(0,l.jsx)(`div`,{className:[B.list,i??``].filter(Boolean).join(` `),children:e.map((n,r)=>{let i=n.amount>=0;return(0,l.jsxs)(`div`,{className:[B.row,r===e.length-1?B.rowLast:``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:B.left,children:[(0,l.jsx)(`span`,{className:B.iconWrap,"aria-hidden":`true`,children:n.icon}),(0,l.jsxs)(`div`,{className:B.info,children:[(0,l.jsx)(`p`,{className:B.name,children:n.name}),(0,l.jsx)(`p`,{className:B.category,children:n.category})]})]}),(0,l.jsx)(`p`,{className:[B.amount,i?B.amountUp:B.amountDown].join(` `),children:t(n.amount)})]},n.id??`${n.name}-${r}`)})}),nt={alert:`_alert_1hjs5_3`,alert__icon:`_alert__icon_1hjs5_12`,alert__content:`_alert__content_1hjs5_13`,alert__title:`_alert__title_1hjs5_14`,alert__description:`_alert__description_1hjs5_15`,"alert--info":`_alert--info_1hjs5_18`,"alert--success":`_alert--success_1hjs5_21`,"alert--warning":`_alert--warning_1hjs5_24`,"alert--danger":`_alert--danger_1hjs5_27`,"alert--neutral":`_alert--neutral_1hjs5_30`},rt={info:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,l.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]}),success:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,l.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),warning:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`path`,{d:`M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`}),(0,l.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,l.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),danger:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,l.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),neutral:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,l.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},it=({color:e=`info`,title:t,description:n,icon:r,className:i})=>(0,l.jsxs)(`div`,{role:`alert`,className:[nt.alert,nt[`alert--${e}`],i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:nt.alert__icon,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:r??rt[e]})}),(0,l.jsxs)(`div`,{className:nt.alert__content,children:[t&&(0,l.jsx)(`div`,{className:nt.alert__title,children:t}),n&&(0,l.jsx)(`div`,{className:nt.alert__description,children:n})]})]}),at={chart:`_chart_qqaox_2`},ot={sm:180,md:240,lg:320,xl:420},st=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,ct=({data:e,variant:t=`default`,seriesLabels:n=[`Value`,`Value 2`],size:r=`md`,height:i,className:a})=>{ne();let o=st(`--color-chart-5`)??`#dca84f`,s=st(`--color-chart-2`)??`#5b92dd`,c=st(`--color-border-subtle`)??`#e5e4e7`,u=st(`--color-fg-muted`)??`#6b6375`,f=e.some(e=>e.value2!==void 0),p=t===`step`?`step`:t===`linear`?`linear`:`monotone`,m=t===`stacked`?`stack`:void 0;return(0,l.jsx)(`div`,{className:[at.chart,a??``].filter(Boolean).join(` `),children:(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:i??ot[r],children:(0,l.jsxs)(d.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,l.jsxs)(`defs`,{children:[(0,l.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,l.jsx)(`stop`,{offset:`5%`,stopColor:o,stopOpacity:.35}),(0,l.jsx)(`stop`,{offset:`95%`,stopColor:o,stopOpacity:.02})]}),(0,l.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,l.jsx)(`stop`,{offset:`5%`,stopColor:s,stopOpacity:.35}),(0,l.jsx)(`stop`,{offset:`95%`,stopColor:s,stopOpacity:.02})]})]}),(0,l.jsx)(d.CartesianGrid,{strokeDasharray:`3 3`,stroke:c,vertical:!1}),(0,l.jsx)(d.XAxis,{dataKey:`label`,stroke:u,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,l.jsx)(d.Tooltip,{cursor:{stroke:st(`--color-border-default`)??`#d6d3ce`,strokeWidth:1},content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}}),f&&(0,l.jsx)(d.Area,{type:p,dataKey:`value2`,name:n[1]??`Value 2`,stackId:m,stroke:s,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:s,stroke:st(`--color-bg-canvas`),strokeWidth:1.5}}),(0,l.jsx)(d.Area,{type:p,dataKey:`value`,name:n[0]??`Value`,stackId:m,stroke:o,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:o,stroke:st(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},lt={group:`_group_mvlh4_3`,group__item:`_group__item_mvlh4_6`,"group--sm":`_group--sm_mvlh4_9`,"group--lg":`_group--lg_mvlh4_10`,"group--xl":`_group--xl_mvlh4_11`,overflow:`_overflow_mvlh4_14`,"overflow--sm":`_overflow--sm_mvlh4_25`,"overflow--md":`_overflow--md_mvlh4_26`,"overflow--lg":`_overflow--lg_mvlh4_27`,"overflow--xl":`_overflow--xl_mvlh4_28`},ut=({size:e=`md`,max:t=4,avatars:n,className:r})=>{let i=n.slice(0,t),a=n.length-i.length;return(0,l.jsxs)(`div`,{className:[lt.group,lt[`group--${e}`],r??``].filter(Boolean).join(` `),children:[i.map((t,n)=>(0,l.jsx)(`span`,{className:lt.group__item,children:(0,l.jsx)(b,{size:e,src:t.src,initials:t.initials,alt:t.alt})},n)),a>0&&(0,l.jsx)(`span`,{className:lt.group__item,children:(0,l.jsxs)(`span`,{className:[lt.overflow,lt[`overflow--${e}`]].join(` `),children:[`+`,a]})})]})},V={card:`_card_6iftf_2`,"card--hover":`_card--hover_6iftf_15`,"card--selected":`_card--selected_6iftf_16`,"card--dragging":`_card--dragging_6iftf_17`,"card--done":`_card--done_6iftf_18`,card__cover:`_card__cover_6iftf_20`,card__header:`_card__header_6iftf_26`,card__leading:`_card__leading_6iftf_27`,card__title:`_card__title_6iftf_28`,card__trailing:`_card__trailing_6iftf_37`,card__desc:`_card__desc_6iftf_38`,card__tags:`_card__tags_6iftf_45`,card__divider:`_card__divider_6iftf_46`,card__footer:`_card__footer_6iftf_47`,card__meta:`_card__meta_6iftf_48`,card__assignees:`_card__assignees_6iftf_49`},dt=({type:e=`default`,state:t=`default`,cover:n,leading:r,title:i,trailing:a,description:o,tags:s,meta:c,assignees:u,onClick:d,className:f})=>{let p=e!==`compact`,m=c||u;return(0,l.jsxs)(`div`,{onClick:d,"aria-selected":t===`selected`||void 0,className:[V.card,V[`card--${e}`],V[`card--${t}`],f??``].filter(Boolean).join(` `),children:[e===`cover`&&(0,l.jsx)(`div`,{className:V.card__cover,children:n}),(0,l.jsxs)(`div`,{className:V.card__header,children:[r&&(0,l.jsx)(`span`,{className:V.card__leading,children:r}),(0,l.jsx)(`span`,{className:V.card__title,children:i}),a&&(0,l.jsx)(`span`,{className:V.card__trailing,children:a})]}),p&&o&&(0,l.jsx)(`p`,{className:V.card__desc,children:o}),p&&s&&(0,l.jsx)(`div`,{className:V.card__tags,children:s}),m&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`div`,{className:V.card__divider}),(0,l.jsxs)(`div`,{className:V.card__footer,children:[c&&(0,l.jsx)(`div`,{className:V.card__meta,children:c}),u&&(0,l.jsx)(`div`,{className:V.card__assignees,children:u})]})]})]})},ft={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},pt=({state:e=`default`,title:t,count:n,dotColor:r=`var(--color-chart-1)`,children:i,onAdd:a,onMenu:o,className:s})=>(0,l.jsxs)(`div`,{className:[ft.col,s??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:ft.col__header,children:[(0,l.jsx)(`span`,{className:ft.col__dot,style:{background:r},"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:ft.col__title,children:t}),n!=null&&(0,l.jsx)(`span`,{className:ft.col__count,children:n}),(0,l.jsx)(`span`,{className:ft.col__spacer}),(0,l.jsx)(`button`,{type:`button`,className:ft.col__action,onClick:a,"aria-label":`Add task`,children:(0,l.jsx)(u.Plus,{size:16,strokeWidth:p(16)})}),(0,l.jsx)(`button`,{type:`button`,className:ft.col__action,onClick:o,"aria-label":`Column options`,children:(0,l.jsx)(u.MoreHorizontal,{size:16,strokeWidth:p(16)})})]}),(0,l.jsx)(`div`,{className:ft.col__body,children:e===`empty`?(0,l.jsx)(`div`,{className:ft.col__drop,children:`Drop tasks here`}):i}),(0,l.jsxs)(`button`,{type:`button`,className:ft.col__add,onClick:a,children:[(0,l.jsx)(u.Plus,{size:16,strokeWidth:p(16),"aria-hidden":`true`}),`Add task`]})]}),mt={breadcrumb:`_breadcrumb_1uzuh_3`,list:`_list_1uzuh_5`,item:`_item_1uzuh_15`,crumb:`_crumb_1uzuh_17`,current:`_current_1uzuh_26`,separator:`_separator_1uzuh_33`,"list--button":`_list--button_1uzuh_38`,chip:`_chip_1uzuh_41`},ht=({size:e})=>(0,l.jsx)(`span`,{className:mt.separator,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(e),strokeLinecap:`round`,strokeLinejoin:`round`,width:e,height:e,children:(0,l.jsx)(`path`,{d:`m9 18 6-6-6-6`})})}),gt=({items:e,variant:t=`text`,className:n})=>{let r=t===`button`;return(0,l.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:[mt.breadcrumb,n??``].filter(Boolean).join(` `),children:(0,l.jsx)(`ol`,{className:[mt.list,r?mt[`list--button`]:``].filter(Boolean).join(` `),children:e.map((t,n)=>{let i=n===e.length-1,a=r?mt.chip:i?mt.current:mt.crumb;return(0,l.jsxs)(`li`,{className:mt.item,children:[i||!t.href?(0,l.jsx)(`span`,{className:a,"aria-current":i?`page`:void 0,children:t.label}):(0,l.jsx)(`a`,{href:t.href,className:a,children:t.label}),!i&&(0,l.jsx)(ht,{size:r?14:16})]},n)})})})},H={calendar:`_calendar_1y1kb_2`,header:`_header_1y1kb_14`,header__label:`_header__label_1y1kb_15`,navBtn:`_navBtn_1y1kb_16`,weekdays:`_weekdays_1y1kb_27`,weekday:`_weekday_1y1kb_27`,grid:`_grid_1y1kb_34`,day:`_day_1y1kb_35`,"day--default":`_day--default_1y1kb_43`,"day--hover":`_day--hover_1y1kb_44`,"day--selected":`_day--selected_1y1kb_45`,"day--today":`_day--today_1y1kb_46`,"day--in-range":`_day--in-range_1y1kb_47`,"day--outside":`_day--outside_1y1kb_48`,"day--disabled":`_day--disabled_1y1kb_49`,dropdowns:`_dropdowns_1y1kb_52`,dropdown:`_dropdown_1y1kb_52`},_t=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],vt=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],yt=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),bt=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),xt=({mode:e=`single`,value:t,onChange:n,range:r,onRangeChange:i,headerType:a=`arrows`,defaultMonth:o,minDate:s,maxDate:d,className:f})=>{let[m,h]=c.default.useState(()=>{let e=o??t??r?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=c.default.useState({}),v=r===void 0?g:r,y=new Date,b=m.getFullYear(),x=m.getMonth(),S=new Date(b,x,1).getDay(),C=new Date(b,x,1-S),w=Array.from({length:42},(e,t)=>new Date(C.getFullYear(),C.getMonth(),C.getDate()+t)),T=e=>s&&e<bt(s)||d&&e>d,E=e=>{r===void 0&&_(e),i?.(e)},D=t=>{if(e===`single`){n?.(t);return}let{from:r,to:i}=v;E(!r||r&&i?{from:t,to:void 0}:t<r?{from:t,to:r}:{from:r,to:t})},O=n=>{if(T(n))return`disabled`;if(e===`single`){if(yt(n,t))return`selected`}else{let{from:e,to:t}=v;if(yt(n,e)||yt(n,t))return`selected`;if(e&&t&&n>e&&n<t)return`in-range`}return n.getMonth()===x?yt(n,y)?`today`:`default`:`outside`},k=s?s.getFullYear():b-10,A=d?d.getFullYear():b+10,j=Array.from({length:A-k+1},(e,t)=>k+t);return(0,l.jsxs)(`div`,{className:[H.calendar,f??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:H.header,children:[(0,l.jsx)(`button`,{type:`button`,className:H.navBtn,onClick:()=>h(new Date(b,x-1,1)),"aria-label":`Previous month`,children:(0,l.jsx)(u.ChevronLeft,{size:16,strokeWidth:p(16)})}),a===`dropdowns`?(0,l.jsxs)(`span`,{className:H.dropdowns,children:[(0,l.jsx)(`select`,{className:H.dropdown,value:x,onChange:e=>h(new Date(b,Number(e.target.value),1)),"aria-label":`Month`,children:vt.map((e,t)=>(0,l.jsx)(`option`,{value:t,children:e},e))}),(0,l.jsx)(`select`,{className:H.dropdown,value:b,onChange:e=>h(new Date(Number(e.target.value),x,1)),"aria-label":`Year`,children:j.map(e=>(0,l.jsx)(`option`,{value:e,children:e},e))})]}):(0,l.jsxs)(`span`,{className:H.header__label,children:[vt[x],` `,b]}),(0,l.jsx)(`button`,{type:`button`,className:H.navBtn,onClick:()=>h(new Date(b,x+1,1)),"aria-label":`Next month`,children:(0,l.jsx)(u.ChevronRight,{size:16,strokeWidth:p(16)})})]}),(0,l.jsx)(`div`,{className:H.weekdays,children:_t.map(e=>(0,l.jsx)(`span`,{className:H.weekday,children:e},e))}),(0,l.jsx)(`div`,{className:H.grid,children:w.map((e,t)=>{let n=O(e);return(0,l.jsx)(`button`,{type:`button`,className:[H.day,H[`day--${n}`]].filter(Boolean).join(` `),disabled:n===`disabled`,"aria-current":n===`today`?`date`:void 0,"aria-selected":n===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>D(e),children:e.getDate()},t)})})]})},St={card:`_card_1mh1i_3`,"card--interactive":`_card--interactive_1mh1i_16`,card__header:`_card__header_1mh1i_24`,card__title:`_card__title_1mh1i_25`,card__description:`_card__description_1mh1i_32`,card__body:`_card__body_1mh1i_39`,card__actions:`_card__actions_1mh1i_42`},Ct=({title:e,description:t,actions:n,interactive:r,children:i,className:a})=>(0,l.jsxs)(`div`,{className:[St.card,r?St[`card--interactive`]:``,a??``].filter(Boolean).join(` `),children:[(e||t)&&(0,l.jsxs)(`div`,{className:St.card__header,children:[e&&(0,l.jsx)(`h3`,{className:St.card__title,children:e}),t&&(0,l.jsx)(`p`,{className:St.card__description,children:t})]}),i&&(0,l.jsx)(`div`,{className:St.card__body,children:i}),n&&(0,l.jsx)(`div`,{className:St.card__actions,children:n})]}),wt={meta:`_meta_g1mpv_2`,meta__icon:`_meta__icon_g1mpv_3`,meta__label:`_meta__label_g1mpv_4`},Tt=({icon:e,children:t,className:n})=>(0,l.jsxs)(`span`,{className:[wt.meta,n??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:wt.meta__icon,"aria-hidden":`true`,children:e}),(0,l.jsx)(`span`,{className:wt.meta__label,children:t})]}),Et={composer:`_composer_vd2eo_2`,"composer--typing":`_composer--typing_vd2eo_15`,input:`_input_vd2eo_22`,"composer--disabled":`_composer--disabled_vd2eo_23`,upload:`_upload_vd2eo_25`,upload__icon:`_upload__icon_vd2eo_30`,upload__body:`_upload__body_vd2eo_31`,upload__name:`_upload__name_vd2eo_32`,upload__track:`_upload__track_vd2eo_33`,upload__fill:`_upload__fill_vd2eo_34`,row:`_row_vd2eo_36`,sendButton:`_sendButton_vd2eo_40`,icon:`_icon_vd2eo_41`,send:`_send_vd2eo_40`},Dt=({state:e=`default`,value:t,placeholder:n=`Message...`,onChange:r,onSend:i,onAttachmentsChange:a,uploadName:o,uploadProgress:s=0,onCancelUpload:d,className:m})=>{let h=e===`disabled`,[g,_]=c.default.useState(``),[v,y]=c.default.useState(!1),[b,x]=c.default.useState({top:0,right:0}),[S,C]=c.default.useState([]),w=c.default.useRef(null),T=c.default.useRef(null),E=c.default.useRef(null),D=c.default.useRef(null),O=t===void 0?g:t,k=!h&&(O.trim().length>0||e===`typing`||S.length>0),j=()=>{T.current?.click()},ee=e=>{let t=e.target.files;t&&(Array.from(t).forEach(e=>{if(e.type.startsWith(`image/`)||e.type.startsWith(`video/`)){let t=new FileReader;t.onload=t=>{let n=t.target?.result;C(t=>[...t,{name:e.name,type:e.type,dataUrl:n}])},t.readAsDataURL(e)}}),e.target.value=``)},M=e=>{C(t=>t.filter((t,n)=>n!==e))},N=()=>{if(!v&&w.current){let e=w.current.getBoundingClientRect();x({top:e.top-104-4,right:20})}y(!v)},P=e=>{if(w.current){let t=w.current.selectionStart||O.length,n=O.slice(0,t)+e+O.slice(t);_(n),r?.(n),w.current.focus(),w.current.setSelectionRange(t+e.length,t+e.length)}y(!1)};return c.default.useEffect(()=>{let e=e=>{D.current&&!D.current.contains(e.target)&&E.current&&!E.current.contains(e.target)&&y(!1)};return v&&document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[v]),c.default.useEffect(()=>{a?.(S)},[S,a]),(0,l.jsxs)(`div`,{className:[Et.composer,Et[`composer--${e}`],m??``].filter(Boolean).join(` `),children:[e===`uploading`&&(0,l.jsxs)(`div`,{className:Et.upload,children:[(0,l.jsx)(u.File,{size:16,strokeWidth:p(16),className:Et.upload__icon,"aria-hidden":`true`}),(0,l.jsxs)(`div`,{className:Et.upload__body,children:[(0,l.jsx)(`span`,{className:Et.upload__name,children:o}),(0,l.jsx)(`div`,{className:Et.upload__track,children:(0,l.jsx)(`div`,{className:Et.upload__fill,style:{width:`${s}%`}})})]}),(0,l.jsx)(A,{icon:u.X,variant:`ghost`,size:`md`,onClick:d,"aria-label":`Cancel upload`})]}),S.length>0&&(0,l.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`8px`,padding:`8px`,backgroundColor:`var(--color-bg-subtle)`,borderRadius:`8px`},children:S.map((e,t)=>(0,l.jsxs)(`div`,{style:{position:`relative`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`80px`,height:`80px`,borderRadius:`8px`,overflow:`hidden`,backgroundColor:`var(--color-bg-muted)`,border:`1px solid var(--color-border-default)`},children:[e.type.startsWith(`image/`)?(0,l.jsx)(`img`,{src:e.dataUrl,alt:e.name,style:{width:`100%`,height:`100%`,objectFit:`cover`}}):(0,l.jsxs)(`div`,{style:{textAlign:`center`,padding:`8px`},children:[(0,l.jsx)(u.File,{size:24,strokeWidth:1.5}),(0,l.jsx)(`div`,{style:{fontSize:`10px`,marginTop:`4px`,color:`var(--color-fg-muted)`},children:e.name.split(`.`).pop()?.toUpperCase()})]}),(0,l.jsx)(`button`,{type:`button`,onClick:()=>M(t),style:{position:`absolute`,top:`-8px`,right:`-8px`,width:`24px`,height:`24px`,borderRadius:`50%`,background:`var(--color-accent-default)`,border:`none`,color:`white`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`16px`,lineHeight:`1`},"aria-label":`Remove file`,children:`x`})]},t))}),(0,l.jsx)(`input`,{ref:T,type:`file`,multiple:!0,accept:`image/*,video/*`,onChange:ee,style:{display:`none`}}),(0,l.jsxs)(`div`,{className:Et.row,children:[(0,l.jsx)(A,{icon:u.Paperclip,variant:`ghost`,size:`sm`,onClick:j,disabled:h,"aria-label":`Attach file`}),(0,l.jsx)(`input`,{ref:w,type:`text`,className:Et.input,value:O,placeholder:h?`You can't reply to this conversation`:n,disabled:h,onChange:e=>{t===void 0&&_(e.target.value),r?.(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&k&&(e.preventDefault(),i?.())}}),(0,l.jsx)(A,{ref:E,icon:u.Smile,variant:`ghost`,size:`sm`,onClick:N,disabled:h,"aria-label":`Add emoji`}),v&&!h&&f.default.createPortal((0,l.jsx)(`div`,{ref:D,style:{position:`fixed`,top:`${b.top}px`,right:`${b.right}px`,zIndex:1e4,boxShadow:`0 4px 20px rgba(0, 0, 0, 0.15)`,borderRadius:`8px`,backgroundColor:`var(--color-bg-surface)`,border:`1px solid var(--color-border-default)`,padding:`12px`,display:`grid`,gridTemplateColumns:`repeat(8, 1fr)`,gap:`4px`,width:`280px`},children:[`😀`,`😂`,`❤️`,`👍`,`🎉`,`✨`,`😍`,`🤔`,`👏`,`🚀`,`🔥`,`💯`,`😢`,`😱`,`🤗`,`😎`].map(e=>(0,l.jsx)(`button`,{onClick:()=>P(e),style:{background:`none`,border:`none`,fontSize:`24px`,cursor:`pointer`,padding:`4px`,borderRadius:`4px`,transition:`background-color 0.2s`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`var(--color-bg-subtle)`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=`transparent`},children:e},e))}),document.body),(0,l.jsx)(A,{icon:u.Send,variant:`primary`,size:`sm`,className:Et.sendButton,onClick:i,disabled:!k,"aria-label":`Send message`})]})]})},Ot={wrapper:`_wrapper_1nmcn_3`,"wrapper--disabled":`_wrapper--disabled_1nmcn_11`,input:`_input_1nmcn_14`,box:`_box_1nmcn_21`,check:`_check_1nmcn_42`,dash:`_dash_1nmcn_53`,text:`_text_1nmcn_71`,text__label:`_text__label_1nmcn_72`,text__description:`_text__description_1nmcn_73`,checkbox:`_checkbox_1nmcn_77`,"wrapper--withDescription":`_wrapper--withDescription_1nmcn_81`},kt=c.default.forwardRef(({label:e,description:t,indeterminate:n,disabled:r,id:i,className:a,...o},s)=>{let u=c.default.useId(),d=i??u,f=c.default.useRef(null);return c.default.useImperativeHandle(s,()=>f.current),c.default.useEffect(()=>{f.current&&(f.current.indeterminate=!!n)},[n]),(0,l.jsxs)(`label`,{htmlFor:d,className:[Ot.wrapper,t?Ot[`wrapper--withDescription`]:``,r?Ot[`wrapper--disabled`]:``,a??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`input`,{ref:f,id:d,type:`checkbox`,disabled:r,className:Ot.input,...o}),(0,l.jsxs)(`span`,{className:Ot.box,"aria-hidden":`true`,children:[(0,l.jsx)(`svg`,{className:Ot.check,width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),(0,l.jsx)(`span`,{className:Ot.dash})]}),(e||t)&&(0,l.jsxs)(`span`,{className:Ot.text,children:[e&&(0,l.jsx)(`span`,{className:Ot.text__label,children:e}),t&&(0,l.jsx)(`span`,{className:Ot.text__description,children:t})]})]})});kt.displayName=`Checkbox`;var U={field:`_field_x766e_7`,field__label:`_field__label_x766e_8`,field__description:`_field__description_x766e_9`,field__error:`_field__error_x766e_10`,control:`_control_x766e_13`,"control--sm":`_control--sm_x766e_25`,"control--md":`_control--md_x766e_26`,"control--lg":`_control--lg_x766e_27`,"control--open":`_control--open_x766e_29`,"control--error":`_control--error_x766e_35`,"control--disabled":`_control--disabled_x766e_39`,control__value:`_control__value_x766e_45`,"control__value--placeholder":`_control__value--placeholder_x766e_55`,control__input:`_control__input_x766e_56`,control__chevron:`_control__chevron_x766e_76`,"control__chevron--open":`_control__chevron--open_x766e_77`,chips:`_chips_x766e_80`,chip:`_chip_x766e_80`,chip__remove:`_chip__remove_x766e_92`,panel:`_panel_x766e_103`,"panel--entering":`_panel--entering_x766e_125`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_x766e_1`,"panel--exiting":`_panel--exiting_x766e_126`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_x766e_1`,panel__empty:`_panel__empty_x766e_136`,option:`_option_x766e_144`,"option--disabled":`_option--disabled_x766e_158`,"option--active":`_option--active_x766e_159`,"option--selected":`_option--selected_x766e_160`,option__icon:`_option__icon_x766e_162`,option__label:`_option__label_x766e_163`,option__check:`_option__check_x766e_164`,panel__loading:`_panel__loading_x766e_167`,panel__spinner:`_panel__spinner_x766e_171`,"sakani-cb-spin":`_sakani-cb-spin_x766e_1`},At=({options:e,mode:t=`single`,size:n=`md`,label:r,description:i,error:a,placeholder:o=`Select...`,disabled:s,loading:u,value:d,onChange:f,className:m})=>{let h=c.default.useId(),[g,_]=c.default.useState(!1),[v,y]=c.default.useState(!1),[b,x]=c.default.useState(0),S=c.default.useRef(null);c.default.useEffect(()=>{g&&y(!0)},[g]);let[C,w]=c.default.useState(t===`multi`?[]:``),T=d===void 0?C:d,E=Array.isArray(T)?T:T?[T]:[],D=!!a;c.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let O=e,k=e=>{d===void 0&&w(e),f?.(e)},A=e=>{if(!e.disabled)if(t===`multi`){let t=new Set(E);t.has(e.value)?t.delete(e.value):t.add(e.value),k([...t])}else k(e.value),_(!1)},j=t=>e.find(e=>e.value===t)?.label??t,ee=E.length?j(E[0]):``,M=e=>{s||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,O.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&O[b]?A(O[b]):_(!0)):e.key===`Escape`&&_(!1))},N=s?`disabled`:D?`error`:g?`open`:`default`;return(0,l.jsxs)(`div`,{className:[U.field,m??``].filter(Boolean).join(` `),ref:S,children:[r&&(0,l.jsx)(`label`,{htmlFor:`${h}-trigger`,className:U.field__label,children:r}),(0,l.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:s?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":D||void 0,"aria-disabled":s||void 0,"aria-activedescendant":g&&O[b]?`${h}-opt-${b}`:void 0,className:[U.control,U[`control--${n}`],U[`control--${N}`]].join(` `),onClick:()=>!s&&_(e=>!e),onKeyDown:M,children:[t===`multi`&&E.length>0&&(0,l.jsx)(`div`,{className:U.chips,children:E.map(t=>(0,l.jsxs)(`span`,{className:U.chip,children:[j(t),(0,l.jsx)(`button`,{type:`button`,className:U.chip__remove,onClick:n=>{n.stopPropagation(),A(e.find(e=>e.value===t))},"aria-label":`Remove ${j(t)}`,children:`×`})]},t))}),!(t===`multi`&&E.length>0)&&(0,l.jsx)(`span`,{className:[U.control__value,t===`single`&&ee?``:U[`control__value--placeholder`]].filter(Boolean).join(` `),children:t===`single`&&ee?ee:o}),(0,l.jsx)(`span`,{className:[U.control__chevron,g?U[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!s&&(0,l.jsx)(`div`,{className:[U.panel,g?U[`panel--entering`]:U[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-busy":u||void 0,onAnimationEnd:()=>{g||y(!1)},children:u?(0,l.jsxs)(`div`,{className:U.panel__loading,children:[(0,l.jsx)(`span`,{className:U.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):O.length===0?(0,l.jsx)(`div`,{className:U.panel__empty,children:`No options available`}):O.map((e,t)=>{let n=E.includes(e.value);return(0,l.jsxs)(`div`,{id:`${h}-opt-${t}`,role:`option`,"aria-selected":n,className:[U.option,t===b?U[`option--active`]:``,n?U[`option--selected`]:``,e.disabled?U[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>x(t),onClick:()=>A(e),children:[e.icon&&(0,l.jsx)(`span`,{className:U.option__icon,"aria-hidden":`true`,children:e.icon}),(0,l.jsx)(`span`,{className:U.option__label,children:e.label}),n&&(0,l.jsx)(`span`,{className:U.option__check,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},e.value)})}),(i||a)&&(0,l.jsx)(`span`,{className:D?U.field__error:U.field__description,children:a||i})]})},W={item:`_item_1hp9t_2`,"item--hover":`_item--hover_1hp9t_12`,"item--active":`_item--active_1hp9t_13`,item__avatar:`_item__avatar_1hp9t_16`,item__presence:`_item__presence_1hp9t_17`,item__body:`_item__body_1hp9t_22`,item__row:`_item__row_1hp9t_23`,item__name:`_item__name_1hp9t_24`,"item--unread":`_item--unread_1hp9t_28`,item__mute:`_item__mute_1hp9t_29`,item__time:`_item__time_1hp9t_30`,item__preview:`_item__preview_1hp9t_31`,item__typing:`_item__typing_1hp9t_36`,item__badge:`_item__badge_1hp9t_37`},jt=({state:e=`default`,avatar:t,name:n,timestamp:r,preview:i,unreadCount:a,onClick:o,className:s})=>(0,l.jsxs)(`div`,{role:`button`,tabIndex:0,onClick:o,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o?.())},"aria-current":e===`active`||void 0,className:[W.item,W[`item--${e}`],s??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`span`,{className:W.item__avatar,children:[t,e!==`muted`&&(0,l.jsx)(`span`,{className:W.item__presence,"aria-hidden":`true`})]}),(0,l.jsxs)(`span`,{className:W.item__body,children:[(0,l.jsxs)(`span`,{className:W.item__row,children:[(0,l.jsx)(`span`,{className:W.item__name,children:n}),e===`muted`&&(0,l.jsx)(u.BellOff,{size:12,strokeWidth:p(12),className:W.item__mute,"aria-hidden":`true`}),r&&(0,l.jsx)(`span`,{className:W.item__time,children:r})]}),(0,l.jsxs)(`span`,{className:W.item__row,children:[e===`typing`?(0,l.jsx)(`span`,{className:W.item__typing,children:`typing...`}):(0,l.jsx)(`span`,{className:W.item__preview,children:i}),e===`unread`&&a!=null&&(0,l.jsx)(`span`,{className:W.item__badge,children:a})]})]})]}),Mt={chart:`_chart_aiboa_2`,center:`_center_aiboa_26`,center__value:`_center__value_aiboa_35`,center__caption:`_center__caption_aiboa_36`},Nt={sm:{h:180,inner:50,outer:72},md:{h:220,inner:62,outer:90},lg:{h:280,inner:80,outer:116},xl:{h:340,inner:98,outer:142}},Pt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Ft=({data:e,size:t=`md`,centerValue:n,centerCaption:r,height:i,className:a})=>{let[o,s]=c.default.useState(null),[u,f]=c.default.useState(null),p=e=>{let t=e.currentTarget.getBoundingClientRect();f({x:e.clientX-t.left,y:e.clientY-t.top})};ne();let m=[1,2,3,4,5].map(e=>Pt(`--color-chart-${e}`)??`#ff4700`),h={...Nt[t],h:i??Nt[t].h},g=(h.outer-h.inner)/2-7;return(0,l.jsxs)(`div`,{className:[Mt.chart,a??``].filter(Boolean).join(` `),style:{height:h.h},onMouseMove:p,children:[(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,l.jsxs)(d.PieChart,{children:[(0,l.jsx)(d.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:h.inner,outerRadius:h.outer,cornerRadius:g,paddingAngle:2,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>s(t),onMouseLeave:()=>{s(null),f(null)},children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:m[t%m.length],fillOpacity:o!==null&&t!==o?.45:1},t))}),(0,l.jsx)(d.Tooltip,{content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50},position:u??void 0})]})}),(n||r)&&(0,l.jsxs)(`div`,{className:Mt.center,children:[n&&(0,l.jsx)(`span`,{className:Mt.center__value,children:n}),r&&(0,l.jsx)(`span`,{className:Mt.center__caption,children:r})]})]})},It={empty:`_empty_15v2t_2`,empty__chip:`_empty__chip_15v2t_12`,"empty__chip--error":`_empty__chip--error_15v2t_22`,empty__title:`_empty__title_15v2t_23`,empty__desc:`_empty__desc_15v2t_31`,empty__action:`_empty__action_15v2t_39`},Lt={"no-data":{icon:(0,l.jsx)(u.Inbox,{size:18,strokeWidth:p(18)}),title:`No data yet`,description:`Records will appear here once they are added.`},"no-results":{icon:(0,l.jsx)(u.Search,{size:18,strokeWidth:p(18)}),title:`No results found`,description:`Try adjusting your search or removing filters.`},error:{icon:(0,l.jsx)(u.CircleAlert,{size:18,strokeWidth:p(18)}),title:`Couldn't load data`,description:`Something went wrong while fetching records.`}},Rt=({type:e=`no-data`,title:t,description:n,actionLabel:r,onAction:i,icon:a,className:o})=>{let s=Lt[e];return(0,l.jsxs)(`div`,{className:[It.empty,o??``].filter(Boolean).join(` `),role:`status`,children:[(0,l.jsx)(`span`,{className:[It.empty__chip,It[`empty__chip--${e}`]].join(` `),"aria-hidden":`true`,children:a??s.icon}),(0,l.jsx)(`p`,{className:It.empty__title,children:t??s.title}),(0,l.jsx)(`p`,{className:It.empty__desc,children:n??s.description}),r&&(0,l.jsx)(`button`,{type:`button`,className:It.empty__action,onClick:i,children:r})]})},G={wrap:`_wrap_1b5p5_2`,dropzone:`_dropzone_1b5p5_4`,"dropzone--dragging":`_dropzone--dragging_1b5p5_21`,dropzone__icon:`_dropzone__icon_1b5p5_23`,dropzone__label:`_dropzone__label_1b5p5_28`,dropzone__link:`_dropzone__link_1b5p5_29`,dropzone__hint:`_dropzone__hint_1b5p5_30`,input:`_input_1b5p5_32`,files:`_files_1b5p5_35`,file:`_file_1b5p5_35`,file__icon:`_file__icon_1b5p5_45`,file__name:`_file__name_1b5p5_46`,file__remove:`_file__remove_1b5p5_47`},zt=({accept:e,multiple:t,hint:n=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:r,className:i})=>{let a=c.default.useRef(null),[o,s]=c.default.useState(!1),[d,f]=c.default.useState([]),m=e=>{f(e),r?.(e)},h=e=>{if(!e)return;let n=Array.from(e);m(t?[...d,...n]:n.slice(0,1))},g=e=>m(d.filter((t,n)=>n!==e));return(0,l.jsxs)(`div`,{className:[G.wrap,i??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:[G.dropzone,o?G[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>a.current?.click(),onDragOver:e=>{e.preventDefault(),s(!0)},onDragLeave:()=>s(!1),onDrop:e=>{e.preventDefault(),s(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&a.current?.click()},children:[(0,l.jsx)(`span`,{className:G.dropzone__icon,"aria-hidden":`true`,children:(0,l.jsx)(u.UploadCloud,{size:22,strokeWidth:p(22)})}),(0,l.jsxs)(`span`,{className:G.dropzone__label,children:[(0,l.jsx)(`span`,{className:G.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,l.jsx)(`span`,{className:G.dropzone__hint,children:n}),(0,l.jsx)(`input`,{ref:a,type:`file`,accept:e,multiple:t,className:G.input,onChange:e=>h(e.target.files)})]}),d.length>0&&(0,l.jsx)(`ul`,{className:G.files,children:d.map((e,t)=>(0,l.jsxs)(`li`,{className:G.file,children:[(0,l.jsx)(`span`,{className:G.file__icon,"aria-hidden":`true`,children:(0,l.jsx)(u.File,{size:16,strokeWidth:p(16)})}),(0,l.jsx)(`span`,{className:G.file__name,children:e.name}),(0,l.jsx)(`button`,{type:`button`,className:G.file__remove,onClick:()=>g(t),"aria-label":`Remove ${e.name}`,children:(0,l.jsx)(u.X,{size:14,strokeWidth:p(14)})})]},t))})]})},Bt={chip:`_chip_rpkox_2`,chip__lead:`_chip__lead_rpkox_20`,chip__trail:`_chip__trail_rpkox_20`,"chip--active":`_chip--active_rpkox_22`,chip__remove:`_chip__remove_rpkox_29`,"chip--add":`_chip--add_rpkox_38`},Vt=({type:e=`default`,children:t,onClick:n,onRemove:r,className:i})=>(0,l.jsxs)(`button`,{type:`button`,onClick:n,className:[Bt.chip,Bt[`chip--${e}`],i??``].filter(Boolean).join(` `),children:[e===`add`&&(0,l.jsx)(u.Plus,{size:14,strokeWidth:p(14),className:Bt.chip__lead,"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:Bt.chip__label,children:t}),e==="default"&&(0,l.jsx)(u.ChevronDown,{size:14,strokeWidth:p(14),className:Bt.chip__trail,"aria-hidden":`true`}),e===`active`&&(0,l.jsx)(`span`,{role:`button`,"aria-label":`Remove filter`,className:Bt.chip__remove,onClick:e=>{e.stopPropagation(),r?.()},children:(0,l.jsx)(u.X,{size:14,strokeWidth:p(14),"aria-hidden":`true`})})]}),K={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},Ht={sm:180,md:240,lg:320,xl:420},Ut=560,Wt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Gt=.3,Kt=.55,qt=({data:e,size:t=`md`,className:n})=>{let[r,i]=c.default.useState(null);ne();let a=Wt(`--color-chart-1`)??`#ff4700`,o=Wt(`--color-bg-canvas`)??`#fafaf9`,s=e[0]?.value||1,u=Ht[t],d=u*.66,f=d/2+8,p=Ut/e.length,m=e[0]?.value||1,h=e=>e/m*d,g=e.map(e=>h(e.value));g.push(h(e[e.length-1]?.value??0)*Kt);let _=t=>e.length<=1?1:Gt+t/(e.length-1)*(1-Gt),v=r===null?null:e[r],y=r===null?0:f-g[r]/2,b=r===null?0:r*p+p/2;return(0,l.jsxs)(`div`,{className:[K.chart,n??``].filter(Boolean).join(` `),style:{height:u},children:[(0,l.jsx)(`svg`,{viewBox:`0 0 ${Ut} ${u}`,width:`100%`,height:u,className:K.svg,children:e.map((e,t)=>{let n=t*p,o=(t+1)*p,c=(n+o)/2,u=g[t]/2,d=g[t+1]/2,m=f-u,h=f-d,v=f+u,y=f+d,b=[`M ${n} ${m}`,`C ${c} ${m} ${c} ${h} ${o} ${h}`,`L ${o} ${y}`,`C ${c} ${y} ${c} ${v} ${n} ${v}`,`Z`].join(` `),x=r===null?_(t):t===r?1:.45,S=Math.round(e.value/s*100);return(0,l.jsxs)(`g`,{className:K.segment,onMouseEnter:()=>i(t),onMouseLeave:()=>i(null),children:[(0,l.jsx)(`path`,{d:b,fill:a,fillOpacity:x}),(0,l.jsxs)(`text`,{x:c,y:f,textAnchor:`middle`,dominantBaseline:`middle`,className:K.pctLabel,children:[S,`%`]})]},t)})}),(0,l.jsx)(`div`,{className:K.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,l.jsx)(`span`,{className:K.labelItem,children:e.label},t))}),v&&(0,l.jsxs)(`div`,{className:K.tooltip,style:{left:`${b/Ut*100}%`,top:`${y/u*100}%`,background:o},children:[(0,l.jsx)(`span`,{className:K.tooltip__title,children:v.label}),(0,l.jsxs)(`div`,{className:K.tooltip__row,children:[(0,l.jsx)(`span`,{className:K.tooltip__dot,style:{background:a}}),(0,l.jsx)(`span`,{className:K.tooltip__label,children:`Share`}),(0,l.jsxs)(`span`,{className:K.tooltip__value,children:[Math.round(v.value/s*100),`%`]})]})]})]})},q={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},Jt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Yt=.12,Xt=.45,Zt=({data:e,rowLabels:t,colLabels:n,valueLabel:r=`Value`,size:i=`md`,className:a})=>{ne();let o=c.default.useRef(null),[s,u]=c.default.useState(null),d=Jt(`--color-chart-1`)??`#ff4700`,f=Math.max(1,...e.flat()),p=e[0]?.length??0,m=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=o.current?.getBoundingClientRect();a&&u({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,l.jsx)(`div`,{className:[q.chart,q[`chart--${i}`],a??``].filter(Boolean).join(` `),children:(0,l.jsxs)(`div`,{ref:o,className:q.grid,style:{gridTemplateColumns:`auto repeat(${p}, 1fr)`},children:[e.map((e,n)=>(0,l.jsxs)(c.default.Fragment,{children:[(0,l.jsx)(`span`,{className:q.rowLabel,children:t?.[n]??``}),e.map((e,t)=>{let r=s?.row===n&&s?.col===t,i=s!==null&&!r,a=r?1:Yt+e/f*(1-Yt);return(0,l.jsx)(`div`,{className:q.cell,style:{background:d,opacity:i?Xt:a},onMouseEnter:m(n,t,e),onMouseLeave:()=>u(null)},t)})]},n)),n&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{}),n.map((e,t)=>(0,l.jsx)(`span`,{className:q.colLabel,children:e},t))]}),s&&(0,l.jsxs)(`div`,{className:q.tooltip,style:{left:s.left,top:s.top},children:[(0,l.jsx)(`span`,{className:q.tooltip__title,children:[t?.[s.row],n?.[s.col]].filter(Boolean).join(` · `)||`Row ${s.row+1}, Col ${s.col+1}`}),(0,l.jsxs)(`div`,{className:q.tooltip__row,children:[(0,l.jsx)(`span`,{className:q.tooltip__dot}),(0,l.jsx)(`span`,{className:q.tooltip__label,children:r}),(0,l.jsx)(`span`,{className:q.tooltip__value,children:s.value})]})]})]})})},Qt={field:`_field_14s0o_10`,field__label:`_field__label_14s0o_18`,field__description:`_field__description_14s0o_26`,field__error:`_field__error_14s0o_31`,input:`_input_14s0o_38`,"input--sm":`_input--sm_14s0o_49`,"input--md":`_input--md_14s0o_50`,"input--lg":`_input--lg_14s0o_51`,"input--error":`_input--error_14s0o_60`,"input--disabled":`_input--disabled_14s0o_67`,input__control:`_input__control_14s0o_74`,input__icon:`_input__icon_14s0o_103`,"input--unstyled":`_input--unstyled_14s0o_113`},$t=16,en=e=>c.default.isValidElement(e)?c.default.cloneElement(e,{size:$t,strokeWidth:p($t)}):e,tn=c.default.forwardRef(({label:e,description:t,error:n,size:r=`md`,unstyled:i,leadingIcon:a,trailingIcon:o,disabled:s,id:u,className:d,...f},p)=>{let m=c.default.useId(),h=u??m,g=!!n;return(0,l.jsxs)(`div`,{className:[Qt.field,d??``].filter(Boolean).join(` `),children:[e&&(0,l.jsx)(`label`,{htmlFor:h,className:Qt.field__label,children:e}),(0,l.jsxs)(`div`,{className:[Qt.input,Qt[`input--${r}`],g?Qt[`input--error`]:``,s?Qt[`input--disabled`]:``].filter(Boolean).join(` `),children:[a&&(0,l.jsx)(`span`,{className:Qt.input__icon,"aria-hidden":`true`,children:en(a)}),(0,l.jsx)(`input`,{ref:p,id:h,className:Qt.input__control,disabled:s,"aria-invalid":g||void 0,"aria-describedby":t||n?`${h}-desc`:void 0,...f}),o&&(0,l.jsx)(`span`,{className:Qt.input__icon,"aria-hidden":`true`,children:en(o)})]}),(t||n)&&(0,l.jsx)(`span`,{id:`${h}-desc`,className:g?Qt.field__error:Qt.field__description,children:n||t})]})});tn.displayName=`Input`;var nn={kbd:`_kbd_1cz4m_3`},rn=({children:e,className:t})=>(0,l.jsx)(`kbd`,{className:[nn.kbd,t??``].filter(Boolean).join(` `),children:e}),an={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},on=c.default.forwardRef(({required:e,children:t,className:n,...r},i)=>(0,l.jsxs)(`label`,{ref:i,className:[an.label,n??``].filter(Boolean).join(` `),...r,children:[t,e&&(0,l.jsx)(`span`,{className:an.label__required,"aria-hidden":`true`,children:` *`})]}));on.displayName=`Label`;var sn={chart:`_chart_18fgd_2`},cn={sm:180,md:240,lg:320,xl:420},ln=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,un=new Set([`dots`,`custom-dots`,`dots-colors`,`label`,`custom-label`]),dn=({data:e,series:t,xKey:n=`label`,variant:r=`default`,labelKey:i,size:a=`md`,height:o,showLegend:s,className:c})=>{ne();let u=[1,2,3,4,5].map(e=>ln(`--color-chart-${e}`)??`#ff4700`),f=[u[1],u[0],...u.slice(2)],p=ln(`--color-border-subtle`)??`#e5e4e7`,m=ln(`--color-fg-muted`)??`#6b6375`,h=ln(`--color-bg-canvas`)??`#fafaf9`,g=ln(`--color-fg-default`)??`#141414`,_=r===`linear`?`linear`:r===`step`?`step`:`monotone`,v=un.has(r),y=e=>t=>{let{cx:n,cy:r}=t;return(0,l.jsxs)(`g`,{stroke:e,strokeWidth:2,strokeLinecap:`round`,children:[(0,l.jsx)(`line`,{x1:n,y1:r-3,x2:n,y2:r-3-6}),(0,l.jsx)(`line`,{x1:n,y1:r+3,x2:n,y2:r+3+6}),(0,l.jsx)(`circle`,{cx:n,cy:r,r:3,fill:e,stroke:`none`})]})},b=e=>{let{cx:t,cy:n,index:r}=e,i=u[(r??0)%u.length];return(0,l.jsx)(`circle`,{cx:t,cy:n,r:4,fill:i,stroke:h,strokeWidth:1.5})},x=t=>{let{x:n,y:a,value:o,index:s}=t,c=r===`custom-label`&&i?e[s]?.[i]:o;return c===void 0?(0,l.jsx)(`g`,{}):(0,l.jsx)(`text`,{x:n,y:a-12,textAnchor:`middle`,fill:g,fontSize:12,fontWeight:500,fontFamily:`var(--font-sans)`,children:c})};return(0,l.jsx)(`div`,{className:[sn.chart,c??``].filter(Boolean).join(` `),children:(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:o??cn[a],children:(0,l.jsxs)(d.LineChart,{data:e,margin:{top:8,right:8,bottom:8,left:12},children:[(0,l.jsx)(d.CartesianGrid,{strokeDasharray:`3 3`,stroke:p,vertical:!1}),(0,l.jsx)(d.XAxis,{dataKey:n,stroke:m,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,l.jsx)(d.Tooltip,{cursor:{stroke:ln(`--color-border-default`)??`#d6d3ce`,strokeWidth:1},content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}}),s&&(0,l.jsx)(d.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),t.map((e,t)=>{let n=f[t%f.length],i=v?r===`custom-dots`?y(n):r===`dots-colors`?b:{r:4,fill:n,stroke:h,strokeWidth:1.5}:!1;return(0,l.jsx)(d.Line,{type:_,dataKey:e,stroke:n,strokeWidth:2,dot:i,activeDot:{r:4,fill:n,stroke:h,strokeWidth:1.5},label:r===`label`||r===`custom-label`?x:void 0},e)})]})})})},fn={item:`_item_1b54h_2`,"item--disabled":`_item--disabled_1b54h_16`,"item--selected":`_item--selected_1b54h_17`,item__leading:`_item__leading_1b54h_20`,item__text:`_item__text_1b54h_21`,item__title:`_item__title_1b54h_22`,item__description:`_item__description_1b54h_23`,item__trailing:`_item__trailing_1b54h_24`},pn=({title:e,description:t,leading:n,trailing:r,selected:i,disabled:a,onClick:o,className:s})=>(0,l.jsxs)(`button`,{type:`button`,disabled:a,onClick:o,"aria-current":i?`true`:void 0,className:[fn.item,i?fn[`item--selected`]:``,a?fn[`item--disabled`]:``,s??``].filter(Boolean).join(` `),children:[n&&(0,l.jsx)(`span`,{className:fn.item__leading,children:n}),(0,l.jsxs)(`span`,{className:fn.item__text,children:[(0,l.jsx)(`span`,{className:fn.item__title,children:e}),t&&(0,l.jsx)(`span`,{className:fn.item__description,children:t})]}),r&&(0,l.jsx)(`span`,{className:fn.item__trailing,children:r})]}),mn={menu:`_menu_psizn_2`,divider:`_divider_psizn_12`},hn=({children:e,minWidth:t=208,className:n,...r})=>(0,l.jsx)(`div`,{role:`menu`,"aria-label":r[`aria-label`],style:{minWidth:t},className:[mn.menu,n??``].filter(Boolean).join(` `),children:e}),gn=()=>(0,l.jsx)(`div`,{className:mn.divider,role:`separator`}),_n={item:`_item_1xzse_2`,item__icon:`_item__icon_1xzse_21`,item__label:`_item__label_1xzse_22`,item__shortcut:`_item__shortcut_1xzse_23`,item__check:`_item__check_1xzse_30`,"item--checked":`_item--checked_1xzse_32`,"item--disabled":`_item--disabled_1xzse_33`,"item--destructive":`_item--destructive_1xzse_34`},vn=({state:e=`default`,icon:t,shortcut:n,children:r,onSelect:i,className:a})=>{let o=e===`disabled`;return(0,l.jsxs)(`div`,{role:`menuitem`,"aria-disabled":o||void 0,"aria-checked":e===`checked`||void 0,tabIndex:o?-1:0,onClick:o?void 0:i,onKeyDown:e=>{o||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),i?.())},className:[_n.item,_n[`item--${e}`],a??``].filter(Boolean).join(` `),children:[t&&(0,l.jsx)(`span`,{className:_n.item__icon,"aria-hidden":`true`,children:t}),(0,l.jsx)(`span`,{className:_n.item__label,children:r}),n&&(0,l.jsx)(`kbd`,{className:_n.item__shortcut,children:n}),e===`checked`&&(0,l.jsx)(u.Check,{size:16,strokeWidth:p(16),className:_n.item__check,"aria-hidden":`true`})]})},J={row:`_row_1q1m5_2`,"row--sent":`_row--sent_1q1m5_3`,row__avatar:`_row__avatar_1q1m5_4`,col:`_col_1q1m5_5`,meta:`_meta_1q1m5_7`,meta__name:`_meta__name_1q1m5_8`,meta__time:`_meta__time_1q1m5_9`,bubble:`_bubble_1q1m5_11`,"bubble--received":`_bubble--received_1q1m5_17`,"bubble--sent":`_bubble--sent_1q1m5_18`,bubble__text:`_bubble__text_1q1m5_19`,bubble__image:`_bubble__image_1q1m5_20`,file:`_file_1q1m5_23`,file__icon:`_file__icon_1q1m5_24`,file__meta:`_file__meta_1q1m5_25`,file__name:`_file__name_1q1m5_26`,file__size:`_file__size_1q1m5_27`,file__dl:`_file__dl_1q1m5_28`,foot:`_foot_1q1m5_30`,foot__time:`_foot__time_1q1m5_31`,foot__receipt:`_foot__receipt_1q1m5_32`,system:`_system_1q1m5_34`,system__pill:`_system__pill_1q1m5_35`},yn=({type:e=`received`,content:t=`text`,avatar:n,authorName:r,timestamp:i,children:a,image:o,fileName:s,fileSize:c,reactions:d,read:f,className:m})=>{if(e===`system`)return(0,l.jsx)(`div`,{className:[J.system,m??``].filter(Boolean).join(` `),children:(0,l.jsx)(`span`,{className:J.system__pill,children:a})});let h=e===`sent`;return(0,l.jsxs)(`div`,{className:[J.row,h?J[`row--sent`]:J[`row--received`],m??``].filter(Boolean).join(` `),children:[!h&&n&&(0,l.jsx)(`span`,{className:J.row__avatar,children:n}),(0,l.jsxs)(`div`,{className:J.col,children:[!h&&(r||i)&&(0,l.jsxs)(`div`,{className:J.meta,children:[r&&(0,l.jsx)(`span`,{className:J.meta__name,children:r}),i&&(0,l.jsx)(`span`,{className:J.meta__time,children:i})]}),(0,l.jsxs)(`div`,{className:[J.bubble,h?J[`bubble--sent`]:J[`bubble--received`]].join(` `),children:[t===`image`&&(0,l.jsx)(`div`,{className:J.bubble__image,children:o}),t===`file`&&(0,l.jsxs)(`div`,{className:J.file,children:[(0,l.jsx)(u.File,{size:18,strokeWidth:p(18),className:J.file__icon,"aria-hidden":`true`}),(0,l.jsxs)(`span`,{className:J.file__meta,children:[(0,l.jsx)(`span`,{className:J.file__name,children:s}),(0,l.jsx)(`span`,{className:J.file__size,children:c})]}),(0,l.jsx)(u.Download,{size:16,strokeWidth:p(16),className:J.file__dl,"aria-hidden":`true`})]}),a&&(0,l.jsx)(`span`,{className:J.bubble__text,children:a})]}),(0,l.jsxs)(`div`,{className:J.foot,children:[!h&&d,h&&(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)(`span`,{className:J.foot__time,children:i}),f&&(0,l.jsx)(u.CheckCheck,{size:13,strokeWidth:p(13),className:J.foot__receipt,"aria-hidden":`true`})]})]})]})]})},bn={pagination:`_pagination_on2nb_2`,page:`_page_on2nb_9`,arrow:`_arrow_on2nb_9`,"page--active":`_page--active_on2nb_26`,ellipsis:`_ellipsis_on2nb_40`};function xn(e,t,n){let r=t,i=Math.min(t+n,e),a=new Set([1,e]);for(let e=r;e<=i;e++)a.add(e);let o=Array.from(a).sort((e,t)=>e-t),s=[];return o.forEach((e,t)=>{t>0&&e-o[t-1]>1&&s.push(`ellipsis`),s.push(e)}),s}var Sn=({total:e,page:t,onPageChange:n,siblings:r=1,className:i})=>{let a=xn(e,t,r);return(0,l.jsxs)(`nav`,{className:[bn.pagination,i??``].filter(Boolean).join(` `),"aria-label":`Pagination`,children:[(0,l.jsx)(`button`,{type:`button`,className:bn.arrow,disabled:t<=1,onClick:()=>n(t-1),"aria-label":`Previous page`,children:(0,l.jsx)(u.ChevronLeft,{size:16,strokeWidth:p(16)})}),a.map((e,r)=>e===`ellipsis`?(0,l.jsx)(`span`,{className:bn.ellipsis,"aria-hidden":`true`,children:`…`},`e${r}`):(0,l.jsx)(`button`,{type:`button`,className:[bn.page,e===t?bn[`page--active`]:``].filter(Boolean).join(` `),"aria-current":e===t?`page`:void 0,onClick:()=>n(e),children:e},e)),(0,l.jsx)(`button`,{type:`button`,className:bn.arrow,disabled:t>=e,onClick:()=>n(t+1),"aria-label":`Next page`,children:(0,l.jsx)(u.ChevronRight,{size:16,strokeWidth:p(16)})})]})},Cn={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},wn={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},Tn=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,En=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),Dn=new Set([`donut-active`]),On=new Set([`interactive`]),kn=new Set([`donut-with-text`]),An=Math.PI/180,jn=({data:e,variant:t=`donut`,size:n=`md`,centerValue:r,centerCaption:i,className:a})=>{ne();let[o,s]=c.default.useState(void 0),u=[1,2,3,4,5].map(e=>Tn(`--color-chart-${e}`)??`#ff4700`),f=Tn(`--color-bg-surface`)??`#ffffff`,p=Tn(`--color-fg-default`)??`#141414`,m=wn[n],h=En.has(t),g=Dn.has(t),_=On.has(t),v=h?m.outer*.6:0,y=kn.has(t)&&(r||i),b=o??(g||_?0:void 0),x=e=>{let{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o,fill:s,index:c}=e,u=c===b,f=u&&(g||_)?16:0;return u&&_?(0,l.jsxs)(`g`,{children:[(0,l.jsx)(d.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:a,endAngle:o,fill:s}),(0,l.jsx)(d.Sector,{cx:t,cy:n,innerRadius:i+f+3,outerRadius:i+f+7,startAngle:a,endAngle:o,fill:s})]}):(0,l.jsx)(d.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:a,endAngle:o,fill:s})},S=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*An),s=Math.sin(-a*An),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},C=e=>{let{value:t,fill:n}=e,{d:r,endX:i,endY:a,textAnchor:o}=S(e),s=i+(o===`start`?4:-4);return(0,l.jsxs)(`g`,{children:[(0,l.jsx)(`path`,{d:r,fill:`none`,stroke:n,strokeWidth:1}),(0,l.jsx)(`text`,{x:s,y:a,textAnchor:o,dominantBaseline:`central`,fill:p,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},w=e=>{let{x:t,y:n,textAnchor:r,value:i}=e;return(0,l.jsx)(`text`,{x:t,y:n,textAnchor:r,dominantBaseline:`central`,fill:p,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:i})},T=t=>{let{cx:n,cy:r,midAngle:i,innerRadius:a,outerRadius:o,index:s}=t,c=(a+o)/2;return(0,l.jsx)(`text`,{x:n+c*Math.cos(-i*An),y:r+c*Math.sin(-i*An),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[s]?.label})};if(t===`stacked`){let t=e=>o!==void 0&&o!==e?.45:1;return(0,l.jsx)(`div`,{className:[Cn.chart,a??``].filter(Boolean).join(` `),style:{height:m.h},children:(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,l.jsxs)(d.PieChart,{children:[(0,l.jsx)(d.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:m.outer*.82,outerRadius:m.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>s(t),onMouseLeave:()=>s(void 0),children:e.map((e,n)=>(0,l.jsx)(d.Cell,{fill:u[n%u.length],fillOpacity:t(n)},n))}),(0,l.jsx)(d.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:m.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>s(t),onMouseLeave:()=>s(void 0),children:e.map((e,n)=>(0,l.jsx)(d.Cell,{fill:u[n%u.length],fillOpacity:t(n)},n))}),(0,l.jsx)(d.Tooltip,{content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,l.jsxs)(`div`,{className:[Cn.chart,a??``].filter(Boolean).join(` `),style:{height:m.h},children:[(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,l.jsxs)(d.PieChart,{children:[(0,l.jsx)(d.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:v,outerRadius:m.outer,paddingAngle:0,stroke:t===`pie`?f:`none`,strokeWidth:t===`pie`?2:0,isAnimationActive:!1,shape:g||_?x:void 0,label:t===`label`?C:t===`custom-label`?w:t===`label-list`?T:void 0,labelLine:!1,onMouseEnter:(e,t)=>s(t),onMouseLeave:()=>s(void 0),children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:u[t%u.length]},t))}),(0,l.jsx)(d.Tooltip,{content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}})]})}),y&&(0,l.jsxs)(`div`,{className:Cn.center,children:[r&&(0,l.jsx)(`span`,{className:Cn.center__value,children:r}),i&&(0,l.jsx)(`span`,{className:Cn.center__caption,children:i})]})]})},Mn={root:`_root_l16ca_2`,trigger:`_trigger_l16ca_3`,panel:`_panel_l16ca_5`,"panel--bottom":`_panel--bottom_l16ca_22`,"panel--bottom-start":`_panel--bottom-start_l16ca_23`,"panel--bottom-end":`_panel--bottom-end_l16ca_24`,"panel--top":`_panel--top_l16ca_25`,panel__title:`_panel__title_l16ca_27`,panel__description:`_panel__description_l16ca_28`,panel__body:`_panel__body_l16ca_29`,panel__actions:`_panel__actions_l16ca_30`},Nn=({trigger:e,title:t,description:n,actions:r,placement:i=`bottom-start`,children:a,className:o})=>{let[s,u]=c.default.useState(!1),d=c.default.useRef(null),f=c.default.useRef(null);return c.default.useEffect(()=>{if(!s)return;let e=e=>{d.current&&!d.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[s]),c.default.useEffect(()=>{!s&&f.current&&(f.current.focus(),f.current=null)},[s]),(0,l.jsxs)(`div`,{className:[Mn.root,o??``].filter(Boolean).join(` `),ref:d,children:[(0,l.jsx)(`span`,{className:Mn.trigger,onClick:()=>{s||(f.current=document.activeElement),u(e=>!e)},children:e}),s&&(0,l.jsxs)(`div`,{className:[Mn.panel,Mn[`panel--${i}`]].join(` `),role:`dialog`,children:[t&&(0,l.jsx)(`div`,{className:Mn.panel__title,children:t}),n&&(0,l.jsx)(`div`,{className:Mn.panel__description,children:n}),a&&(0,l.jsx)(`div`,{className:Mn.panel__body,children:a}),r&&(0,l.jsx)(`div`,{className:Mn.panel__actions,children:r})]})]})},Pn={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},Fn={sm:200,md:260,lg:340,xl:420},In=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Ln=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Rn=new Set([`default`,`grid-custom`]),zn=new Set([`dots-grid-none`]),Bn=new Set([`grid-filled`]),Vn=e=>e===`circle-grid-filled`,Hn=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),Un=[1,.8,.6,.4,.2],Wn=({data:e,variant:t=`default`,size:n=`md`,seriesLabels:r=[`Value`,`Value 2`],className:i})=>{ne();let a=In(`--color-chart-1`)??`#ff4700`,o=In(`--color-chart-2`)??`#5b92dd`,s=In(`--color-border-default`)??`#dbdad7`,u=In(`--color-fg-subtle`)??`#78716a`,f=t===`multiple`,p=t===`lines-only`,m=f||t===`custom-label`||p,h=!p,g=t===`dots`||t===`dots-grid-none`||t===`circle-grid`||t===`circle-grid-no-lines`,_=Bn.has(t),v=Rn.has(t),y=zn.has(t),b=Vn(t),x=c.default.useRef(null),[S,C]=c.default.useState(0);c.default.useEffect(()=>{if(!b||!x.current)return;let e=x.current,t=new ResizeObserver(([e])=>C(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[b]);let w=c.default.useMemo(()=>{if(!_)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return Un.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,_]),T=t=>{let{x:n,y:r,cx:i,cy:a,payload:o,textAnchor:s}=t,c=e.find(e=>e.label===o?.value)??e[o?.index];if(!c)return(0,l.jsx)(`g`,{});let d=n-i,f=r-a,p=c.value2===void 0?`${c.value}`:`${c.value}/${c.value2}`,m=Math.abs(f)>Math.abs(d),h,g;if(m&&f<0)g=r-4-6,h=g-16;else if(m)h=r+4+10,g=h+18;else{let e=r+f/(Math.sqrt(d*d+f*f)||1)*4;h=e-8,g=e+12}let _=m?n:n+d/Math.sqrt(d*d+f*f||1)*4;return(0,l.jsxs)(`g`,{children:[(0,l.jsx)(`text`,{x:_,y:h,textAnchor:s,fill:u,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:p}),(0,l.jsx)(`text`,{x:_,y:g,textAnchor:s,fill:u,fontSize:13,fontFamily:`var(--font-sans)`,children:c.label})]})},E=Fn[n],D=(S>0?Math.min(S,E)/2-5:0)*.7;return(0,l.jsxs)(`div`,{ref:x,className:[Pn.chart,i??``].filter(Boolean).join(` `),children:[b&&S>0&&(0,l.jsx)(`svg`,{className:Pn.circleFillSvg,width:S,height:E,children:Un.map(e=>(0,l.jsx)(`circle`,{cx:S/2,cy:E/2,r:D*e,fill:o,fillOpacity:.1},e))}),(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:E,children:(0,l.jsxs)(d.RadarChart,{data:w,outerRadius:`70%`,children:[!_&&!y&&(0,l.jsx)(d.PolarGrid,{gridType:Ln.has(t)?`circle`:`polygon`,radialLines:t!==`circle-grid-no-lines`&&!v,stroke:s}),(0,l.jsx)(d.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:t===`custom-label`?T:{fill:u,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,l.jsx)(d.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:v?2:void 0}),(0,l.jsx)(d.Tooltip,{content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}}),f&&(0,l.jsx)(d.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),_&&Un.map((e,t)=>(0,l.jsx)(d.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:o,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,l.jsx)(d.Radar,{name:f?r[0]??`Value`:void 0,dataKey:`value`,stroke:Hn.has(t)?`none`:o,fill:h?o:`none`,fillOpacity:h?v?1:m?.45:.5:0,strokeWidth:Hn.has(t)?0:2,dot:g?{r:4,fill:o,stroke:`none`}:!1,isAnimationActive:!1}),m&&(0,l.jsx)(d.Radar,{name:f?r[1]??`Value 2`:void 0,dataKey:`value2`,stroke:p?a:`none`,fill:p?`none`:a,fillOpacity:p?0:.8,strokeWidth:p?2:0,dot:g?{r:4,fill:a,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},Gn={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},Kn={sm:180,md:220,lg:280,xl:340},qn=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Jn=Math.PI/180,Yn={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},Xn=({value:e,max:t,color:n,track:r,centerValue:i,centerCaption:a})=>{let o=Math.round(Math.min(e,t)/t*40);return(0,l.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:Gn.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let i=180+t/39*180;return(0,l.jsx)(`line`,{x1:100+78*Math.cos(i*Jn),y1:100+78*Math.sin(i*Jn),x2:100+92*Math.cos(i*Jn),y2:100+92*Math.sin(i*Jn),stroke:t<o?n:r,strokeWidth:2.5,strokeLinecap:`round`},t)}),(i||a)&&(0,l.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[i&&(0,l.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:qn(`--color-fg-default`)??`#141414`,children:i}),a&&(0,l.jsx)(`text`,{x:100,y:112,fontSize:12,fill:qn(`--color-fg-muted`)??`#78716a`,children:a})]})]})},Zn=({rings:e,spokes:t,color:n})=>(0,l.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:Gn.gridSvg,children:[Array.from({length:e}).map((t,r)=>(0,l.jsx)(`circle`,{cx:100,cy:100,r:(r+1)/e*96,fill:`none`,stroke:n,strokeWidth:1},r)),Array.from({length:t}).map((e,r)=>{let i=r/t*360,a=99.5*1.1;return(0,l.jsx)(`line`,{x1:100,y1:100,x2:100+a*Math.cos(i*Jn),y2:100+a*Math.sin(i*Jn),stroke:n,strokeWidth:1},r)})]}),Qn=({data:e,palette:t,track:n,centerValue:r,centerCaption:i})=>{let a=e[0]?.max??e.reduce((e,t)=>e+t.value,0),o=210,s=e.map((e,n)=>{let r=a>0?e.value/a*240:0,i=o,s=o-r;return o=s,{segStart:i,segEnd:s,fill:t[n%t.length]}});return(0,l.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:Gn.gaugeSvg,children:[s.map((e,t)=>(0,l.jsx)(d.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),o>-29.5&&(0,l.jsx)(d.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:o,endAngle:-30,fill:n,cornerRadius:4}),(r||i)&&(0,l.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[r&&(0,l.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:qn(`--color-fg-default`)??`#141414`,children:r}),i&&(0,l.jsx)(`text`,{x:100,y:112,fontSize:12,fill:qn(`--color-fg-muted`)??`#78716a`,children:i})]})]})},$n=({data:e,variant:t=`multi`,size:n=`md`,centerValue:r,centerCaption:i,className:a})=>{ne();let o=[1,2,3,4,5].map(e=>qn(`--color-chart-${e}`)??`#ff4700`),s=qn(`--color-bg-subtle`)??`#f5f4f2`,c=qn(`--color-border-subtle`)??`#e5e4e7`,u=Kn[n];if(t===`gauge-tick`){let t=e[0];return(0,l.jsx)(`div`,{className:[Gn.chart,a??``].filter(Boolean).join(` `),style:{height:u},children:(0,l.jsx)(Xn,{value:t?.value??0,max:t?.max??100,color:o[0],track:s,centerValue:r,centerCaption:i})})}if(t===`shape`||t===`stacked`||t===`stacked-3-layers`)return(0,l.jsx)(`div`,{className:[Gn.chart,a??``].filter(Boolean).join(` `),style:{height:u},children:(0,l.jsx)(Qn,{data:e,palette:o,track:s,centerValue:r,centerCaption:i})});let[f,p]=Yn[t]??[`30%`,`100%`],m=(t===`stacked-label`||t===`text`)&&(r||i);return(0,l.jsxs)(`div`,{className:[Gn.chart,a??``].filter(Boolean).join(` `),style:{height:u},children:[t===`grid`&&(0,l.jsx)(Zn,{rings:8,spokes:12,color:c}),(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,l.jsxs)(d.RadialBarChart,{data:e,innerRadius:f,outerRadius:p,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,l.jsx)(d.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,l.jsx)(d.RadialBar,{dataKey:`value`,background:t!==`grid`&&{fill:s},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:o[t%o.length]},t))})]})}),m&&(0,l.jsxs)(`div`,{className:Gn.center,children:[r&&(0,l.jsx)(`span`,{className:Gn.center__value,children:r}),i&&(0,l.jsx)(`span`,{className:Gn.center__caption,children:i})]})]})},er={wrapper:`_wrapper_1px3a_3`,"wrapper--disabled":`_wrapper--disabled_1px3a_11`,input:`_input_1px3a_13`,circle:`_circle_1px3a_15`,dot:`_dot_1px3a_31`,text:`_text_1px3a_54`,text__label:`_text__label_1px3a_55`,text__description:`_text__description_1px3a_56`,"wrapper--withDescription":`_wrapper--withDescription_1px3a_60`},tr=c.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:i,...a},o)=>{let s=c.default.useId(),u=r??s;return(0,l.jsxs)(`label`,{htmlFor:u,className:[er.wrapper,t?er[`wrapper--withDescription`]:``,n?er[`wrapper--disabled`]:``,i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`input`,{ref:o,id:u,type:`radio`,disabled:n,className:er.input,...a}),(0,l.jsx)(`span`,{className:er.circle,"aria-hidden":`true`,children:(0,l.jsx)(`span`,{className:er.dot})}),(e||t)&&(0,l.jsxs)(`span`,{className:er.text,children:[e&&(0,l.jsx)(`span`,{className:er.text__label,children:e}),t&&(0,l.jsx)(`span`,{className:er.text__description,children:t})]})]})});tr.displayName=`Radio`;var nr={track:`_track_13bev_2`,segment:`_segment_13bev_12`,"segment--active":`_segment--active_13bev_32`,thumb:`_thumb_13bev_38`,"thumb--animated":`_thumb--animated_13bev_52`,"track--fullWidth":`_track--fullWidth_13bev_58`},rr=({options:e,value:t,defaultValue:n,onChange:r,fullWidth:i,className:a})=>{let o=t!==void 0,[s,u]=c.default.useState(n??e[0]?.value),d=o?t:s,f=e=>{o||u(e),r?.(e)},p=c.default.useRef(null),m=c.default.useRef({}),[h,g]=c.default.useState(null),[_,v]=c.default.useState(!1);return c.default.useLayoutEffect(()=>{let e=()=>{let e=m.current[d],t=p.current;!e||!t||g({left:e.offsetLeft,width:e.offsetWidth})};e();let t=window.requestAnimationFrame(()=>v(!0)),n=new ResizeObserver(e);return p.current&&n.observe(p.current),()=>{window.cancelAnimationFrame(t),n.disconnect()}},[d,e]),(0,l.jsxs)(`div`,{ref:p,role:`tablist`,className:[nr.track,i?nr[`track--fullWidth`]:``,a??``].filter(Boolean).join(` `),children:[h&&(0,l.jsx)(`span`,{"aria-hidden":`true`,className:[nr.thumb,_?nr[`thumb--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateX(${h.left}px)`,width:h.width}}),e.map(e=>{let t=e.value===d;return(0,l.jsx)(`button`,{ref:t=>{m.current[e.value]=t},role:`tab`,type:`button`,"aria-selected":t,className:[nr.segment,t?nr[`segment--active`]:``].filter(Boolean).join(` `),onClick:()=>f(e.value),children:e.label},e.value)})]})},Y={field:`_field_wvw9t_6`,field__label:`_field__label_wvw9t_8`,field__description:`_field__description_wvw9t_9`,field__error:`_field__error_wvw9t_10`,select:`_select_wvw9t_12`,"select--sm":`_select--sm_wvw9t_23`,"select--md":`_select--md_wvw9t_24`,"select--lg":`_select--lg_wvw9t_25`,"select--open":`_select--open_wvw9t_27`,"select--error":`_select--error_wvw9t_34`,"select--disabled":`_select--disabled_wvw9t_39`,select__control:`_select__control_wvw9t_46`,select__chevron:`_select__chevron_wvw9t_67`,anchor:`_anchor_wvw9t_78`,select__value:`_select__value_wvw9t_82`,"select__value--placeholder":`_select__value--placeholder_wvw9t_92`,"select__chevron--open":`_select__chevron--open_wvw9t_95`,panel:`_panel_wvw9t_106`,"panel--entering":`_panel--entering_wvw9t_131`,"sakani-select-panel-in":`_sakani-select-panel-in_wvw9t_1`,"panel--exiting":`_panel--exiting_wvw9t_132`,"sakani-select-panel-out":`_sakani-select-panel-out_wvw9t_1`,option:`_option_wvw9t_143`,"option--disabled":`_option--disabled_wvw9t_157`,"option--active":`_option--active_wvw9t_158`,"option--selected":`_option--selected_wvw9t_159`,option__label:`_option__label_wvw9t_161`,option__check:`_option__check_wvw9t_162`},ir=({label:e,description:t,error:n,size:r=`md`,placeholder:i=`Select an option`,options:a,value:o,defaultValue:s,onChange:u,disabled:d,id:m,className:h})=>{let g=c.default.useId(),_=`${m??g}-trigger`,v=`${m??g}-panel`,y=!!n,[b,x]=c.default.useState(s),S=o===void 0?b:o,C=a.find(e=>e.value===S),[w,T]=c.default.useState(!1),[E,D]=c.default.useState(!1),[O,k]=c.default.useState(0),A=c.default.useRef(null),j=c.default.useRef(null),ee=c.default.useRef(null),[M,N]=c.default.useState(null);c.default.useEffect(()=>{w&&D(!0)},[w]),c.default.useLayoutEffect(()=>{if(!w)return;let e=()=>{let e=j.current;if(!e)return;let t=e.getBoundingClientRect();N({top:t.bottom+4,left:t.left,width:t.width})};return e(),window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[w]),c.default.useEffect(()=>{if(!w)return;let e=e=>{let t=e.target;A.current?.contains(t)||ee.current?.contains(t)||T(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[w]),c.default.useEffect(()=>{if(!w)return;let e=a.findIndex(e=>e.value===S);k(e>=0?e:0)},[w,a,S]);let P=e=>{e.disabled||(o===void 0&&x(e.value),u?.(e.value),T(!1))},te=e=>{k(t=>{let n=t;for(let t=0;t<a.length;t+=1)if(n=(n+e+a.length)%a.length,!a[n]?.disabled)return n;return t})};return(0,l.jsxs)(`div`,{className:[Y.field,h??``].filter(Boolean).join(` `),ref:A,children:[e&&(0,l.jsx)(`label`,{htmlFor:_,className:Y.field__label,children:e}),(0,l.jsxs)(`div`,{className:Y.anchor,children:[(0,l.jsxs)(`div`,{ref:j,id:_,role:`combobox`,tabIndex:d?-1:0,"aria-haspopup":`listbox`,"aria-expanded":w,"aria-controls":v,"aria-invalid":y||void 0,"aria-disabled":d||void 0,"aria-activedescendant":w?`${v}-opt-${O}`:void 0,onClick:()=>!d&&T(e=>!e),onKeyDown:e=>{if(!d){if(!w&&(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`)){e.preventDefault(),T(!0);return}if(w)if(e.key===`ArrowDown`)e.preventDefault(),te(1);else if(e.key===`ArrowUp`)e.preventDefault(),te(-1);else if(e.key===`Home`)e.preventDefault(),k(0);else if(e.key===`End`)e.preventDefault(),k(a.length-1);else if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=a[O];t&&P(t)}else e.key===`Escape`&&(e.preventDefault(),T(!1))}},className:[Y.select,Y[`select--${r}`],w?Y[`select--open`]:``,y?Y[`select--error`]:``,d?Y[`select--disabled`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:[Y.select__value,C?``:Y[`select__value--placeholder`]].filter(Boolean).join(` `),children:C?C.label:i}),(0,l.jsx)(`span`,{className:[Y.select__chevron,w?Y[`select__chevron--open`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),E&&M&&(0,f.createPortal)((0,l.jsx)(`div`,{ref:ee,id:v,role:`listbox`,className:[Y.panel,w?Y[`panel--entering`]:Y[`panel--exiting`]].filter(Boolean).join(` `),style:{position:`fixed`,top:M.top,left:M.left,width:M.width},onAnimationEnd:()=>{w||D(!1)},children:a.map((e,t)=>(0,l.jsxs)(`div`,{id:`${v}-opt-${t}`,role:`option`,"aria-selected":e.value===S,"aria-disabled":e.disabled||void 0,onMouseEnter:()=>!e.disabled&&k(t),onClick:()=>P(e),className:[Y.option,t===O?Y[`option--active`]:``,e.value===S?Y[`option--selected`]:``,e.disabled?Y[`option--disabled`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:Y.option__label,children:e.label}),e.value===S&&(0,l.jsx)(`span`,{className:Y.option__check,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`path`,{d:`M20 6 9 17l-5-5`})})})]},e.value))}),document.body)]}),(t||n)&&(0,l.jsx)(`span`,{className:y?Y.field__error:Y.field__description,children:n||t})]})},ar={sidebar:`_sidebar_14oy8_4`,"sidebar--collapsed":`_sidebar--collapsed_14oy8_20`},or=({collapsed:e=!1,children:t,className:n})=>(0,l.jsx)(`nav`,{className:[ar.sidebar,e?ar[`sidebar--collapsed`]:``,n??``].filter(Boolean).join(` `),"data-collapsed":e,children:t}),sr={divider:`_divider_18c5j_1`},cr=()=>(0,l.jsx)(`div`,{className:sr.divider,role:`separator`}),lr={footer:`_footer_sh6kz_4`,"footer--collapsed":`_footer--collapsed_sh6kz_12`,footer__text:`_footer__text_sh6kz_14`,footer__title:`_footer__title_sh6kz_15`,footer__subtitle:`_footer__subtitle_sh6kz_16`,footer__menu:`_footer__menu_sh6kz_17`,footer__action:`_footer__action_sh6kz_24`},ur=({type:e=`user`,title:t,subtitle:n,avatarSrc:r,avatarInitials:i,collapsed:a,onMenu:o,onSignOut:s})=>{let c=(0,l.jsx)(b,{size:`sm`,src:r,initials:i,alt:t??`User`});return a?(0,l.jsx)(`div`,{className:[lr.footer,lr[`footer--collapsed`]].join(` `),children:c}):e===`actions`?(0,l.jsx)(`div`,{className:lr.footer,children:(0,l.jsxs)(`button`,{type:`button`,className:lr.footer__action,onClick:s,children:[(0,l.jsx)(u.LogOut,{size:16,strokeWidth:p(16)}),` Sign out`]})}):(0,l.jsxs)(`div`,{className:lr.footer,children:[c,(0,l.jsxs)(`span`,{className:lr.footer__text,children:[t&&(0,l.jsx)(`span`,{className:lr.footer__title,children:t}),n&&(0,l.jsx)(`span`,{className:lr.footer__subtitle,children:n})]}),e===`user-menu`&&(0,l.jsx)(`button`,{type:`button`,className:lr.footer__menu,onClick:o,"aria-label":`Open menu`,children:(0,l.jsx)(u.EllipsisVertical,{size:16,strokeWidth:p(16)})})]})},dr={groupLabel:`_groupLabel_62q1j_2`},fr=({children:e})=>(0,l.jsx)(`div`,{className:dr.groupLabel,children:e}),X={header:`_header_1wyz2_2`,"header--collapsed":`_header--collapsed_1wyz2_12`,header__logoWrap:`_header__logoWrap_1wyz2_15`,header__logo:`_header__logo_1wyz2_14`,header__logoContent:`_header__logoContent_1wyz2_43`,header__logoIcon:`_header__logoIcon_1wyz2_44`,header__text:`_header__text_1wyz2_50`,"header__text--collapsed":`_header__text--collapsed_1wyz2_61`,header__title:`_header__title_1wyz2_65`,header__subtitle:`_header__subtitle_1wyz2_66`,header__toggle:`_header__toggle_1wyz2_67`},pr=({type:e=`brand`,title:t,subtitle:n,logo:r,collapsed:i,onToggle:a,toggleIcon:o=u.PanelLeftClose})=>(0,l.jsxs)(`div`,{className:[X.header,i?X[`header--collapsed`]:``].filter(Boolean).join(` `),children:[r&&(i&&e===`brand-toggle`&&a?(0,l.jsx)(`button`,{type:`button`,className:X.header__logoWrap,onClick:a,"aria-label":`Expand sidebar`,children:(0,l.jsxs)(`span`,{className:X.header__logo,children:[(0,l.jsx)(`span`,{className:X.header__logoContent,children:r}),(0,l.jsx)(`span`,{className:X.header__logoIcon,"aria-hidden":`true`,children:(0,l.jsx)(o,{size:16,strokeWidth:p(16)})})]})}):(0,l.jsx)(`span`,{className:X.header__logoWrap,"aria-hidden":`true`,children:(0,l.jsx)(`span`,{className:X.header__logo,children:r})})),(0,l.jsxs)(`span`,{className:[X.header__text,i?X[`header__text--collapsed`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:X.header__title,children:t}),(e===`workspace`||n)&&n&&(0,l.jsx)(`span`,{className:X.header__subtitle,children:n})]}),!i&&e===`brand-toggle`&&(0,l.jsx)(`button`,{type:`button`,className:X.header__toggle,onClick:a,"aria-label":`Collapse sidebar`,children:(0,l.jsx)(o,{size:18,strokeWidth:p(18)})})]}),mr={item:`_item_1k6es_5`,"item--disabled":`_item--disabled_1k6es_29`,"item--active":`_item--active_1k6es_29`,"item--active-flat":`_item--active-flat_1k6es_29`,item__icon:`_item__icon_1k6es_30`,item__bar:`_item__bar_1k6es_41`,item__chevron:`_item__chevron_1k6es_70`,item__badge:`_item__badge_1k6es_72`,"item--collapsed":`_item--collapsed_1k6es_88`,item__label:`_item__label_1k6es_114`,"item__label--collapsed":`_item__label--collapsed_1k6es_123`},hr=({icon:e,label:t,active:n,activeIndicator:r=!0,disabled:i,badge:a,hasSubmenu:o,collapsed:s,onClick:c,href:d,nativeTooltip:f=!0})=>{let m=n&&(s||r),h=n&&!s&&!r,g=[mr.item,m?mr[`item--active`]:``,h?mr[`item--active-flat`]:``,i?mr[`item--disabled`]:``,s?mr[`item--collapsed`]:``].filter(Boolean).join(` `),_=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:mr.item__bar,"aria-hidden":`true`}),e&&(0,l.jsx)(`span`,{className:mr.item__icon,"aria-hidden":`true`,children:(0,l.jsx)(e,{size:18,strokeWidth:p(18)})}),(0,l.jsx)(`span`,{className:[mr.item__label,s?mr[`item__label--collapsed`]:``].filter(Boolean).join(` `),children:t}),!s&&a&&(0,l.jsx)(`span`,{className:mr.item__badge,children:a}),!s&&o&&(0,l.jsx)(`span`,{className:mr.item__chevron,"aria-hidden":`true`,children:(0,l.jsx)(u.ChevronRight,{size:16,strokeWidth:p(16)})})]}),v={className:g,title:s&&f?t:void 0,"aria-label":s?t:void 0,"aria-current":n?`page`:void 0};return d&&!i?(0,l.jsx)(`a`,{href:d,...v,children:_}):(0,l.jsx)(`button`,{type:`button`,disabled:i,onClick:c,...v,children:_})},gr={promo:`_promo_1dicm_4`,promo__head:`_promo__head_1dicm_15`,promo__icon:`_promo__icon_1dicm_16`,promo__title:`_promo__title_1dicm_17`,promo__dismiss:`_promo__dismiss_1dicm_18`,promo__desc:`_promo__desc_1dicm_25`,promo__cta:`_promo__cta_1dicm_28`},_r=({type:e=`upgrade`,title:t,description:n,ctaLabel:r,onCta:i,onDismiss:a,icon:o=u.Sparkles})=>(0,l.jsxs)(`div`,{className:[gr.promo,gr[`promo--${e}`]].join(` `),children:[(0,l.jsxs)(`div`,{className:gr.promo__head,children:[(0,l.jsx)(`span`,{className:gr.promo__icon,"aria-hidden":`true`,children:(0,l.jsx)(o,{size:16,strokeWidth:p(16)})}),(0,l.jsx)(`span`,{className:gr.promo__title,children:t}),a&&(0,l.jsx)(`button`,{type:`button`,className:gr.promo__dismiss,onClick:a,"aria-label":`Dismiss`,children:(0,l.jsx)(u.X,{size:14,strokeWidth:p(14)})})]}),n&&(0,l.jsx)(`p`,{className:gr.promo__desc,children:n}),r&&(0,l.jsx)(`button`,{type:`button`,className:gr.promo__cta,onClick:i,children:r})]}),vr={search:`_search_cvwic_2`,search__icon:`_search__icon_cvwic_18`,search__input:`_search__input_cvwic_19`,search__placeholder:`_search__placeholder_cvwic_31`,search__kbd:`_search__kbd_cvwic_32`,collapsed:`_collapsed_cvwic_42`},yr=({type:e=`field`,placeholder:t=`Search…`,collapsed:n,value:r,onChange:i,onClick:a})=>n?(0,l.jsx)(`button`,{type:`button`,className:vr.collapsed,onClick:a,"aria-label":`Search`,children:(0,l.jsx)(u.Search,{size:18,strokeWidth:p(18)})}):e===`command`?(0,l.jsxs)(`button`,{type:`button`,className:vr.search,onClick:a,children:[(0,l.jsx)(u.Search,{size:16,strokeWidth:p(16),className:vr.search__icon}),(0,l.jsx)(`span`,{className:vr.search__placeholder,children:t}),(0,l.jsx)(`kbd`,{className:vr.search__kbd,children:`⌘K`})]}):(0,l.jsxs)(`div`,{className:vr.search,children:[(0,l.jsx)(u.Search,{size:16,strokeWidth:p(16),className:vr.search__icon}),(0,l.jsx)(`input`,{className:vr.search__input,placeholder:t,value:r,onChange:e=>i?.(e.target.value)})]}),br={subItem:`_subItem_b3cst_2`,"subItem--disabled":`_subItem--disabled_b3cst_24`,"subItem--active":`_subItem--active_b3cst_25`,subItem__dot:`_subItem__dot_b3cst_29`,subItem__label:`_subItem__label_b3cst_39`},xr=({label:e,active:t,disabled:n,onClick:r,href:i})=>{let a={className:[br.subItem,t?br[`subItem--active`]:``,n?br[`subItem--disabled`]:``].filter(Boolean).join(` `),"aria-current":t?`page`:void 0},o=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:br.subItem__dot,"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:br.subItem__label,children:e})]});return i&&!n?(0,l.jsx)(`a`,{href:i,...a,children:o}):(0,l.jsx)(`button`,{type:`button`,disabled:n,onClick:r,...a,children:o})},Sr={skeleton:`_skeleton_94hr3_9`,"skeleton-shimmer":`_skeleton-shimmer_94hr3_1`,"skeleton--text":`_skeleton--text_94hr3_22`,"skeleton--rect":`_skeleton--rect_94hr3_29`,"skeleton--circle":`_skeleton--circle_94hr3_35`},Cr=({variant:e=`text`,width:t,height:n,className:r})=>{let i={};return t!==void 0&&(i.width=typeof t==`number`?`${t}px`:t),n!==void 0&&(i.height=typeof n==`number`?`${n}px`:n),(0,l.jsx)(`span`,{"aria-hidden":`true`,className:[Sr.skeleton,Sr[`skeleton--${e}`],r??``].filter(Boolean).join(` `),style:i})},wr={field:`_field_drnb1_3`,header:`_header_drnb1_4`,label:`_label_drnb1_5`,value:`_value_drnb1_6`,slider:`_slider_drnb1_8`},Tr=c.default.forwardRef(({label:e,showValue:t,min:n=0,max:r=100,value:i,defaultValue:a,disabled:o,id:s,className:u,onChange:d,...f},p)=>{let m=c.default.useId(),h=s??m,g=Number(i??a??n),[_,v]=c.default.useState(g),y=i===void 0?_:Number(i),b=(y-n)/(r-n)*100;return(0,l.jsxs)(`div`,{className:[wr.field,u??``].filter(Boolean).join(` `),children:[(e||t)&&(0,l.jsxs)(`div`,{className:wr.header,children:[e&&(0,l.jsx)(`label`,{htmlFor:h,className:wr.label,children:e}),t&&(0,l.jsx)(`span`,{className:wr.value,children:y})]}),(0,l.jsx)(`input`,{ref:p,id:h,type:`range`,min:n,max:r,value:i,defaultValue:i===void 0?a:void 0,disabled:o,onChange:e=>{i===void 0&&v(Number(e.target.value)),d?.(e)},className:wr.slider,style:{"--pct":`${b}%`},...f})]})});Tr.displayName=`Slider`;var Er={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},Dr=({size:e=`md`,label:t=`Loading...`,className:n})=>(0,l.jsx)(`span`,{role:`status`,"aria-label":t,className:[Er.spinner,Er[`spinner--${e}`],n??``].filter(Boolean).join(` `),children:(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:Er.spinner__svg,children:[(0,l.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,l.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:Er.spinner__arc})]})}),Or={card:`_card_bjfuf_4`,"card--featured":`_card--featured_bjfuf_17`,card__head:`_card__head_bjfuf_19`,card__icon:`_card__icon_bjfuf_20`,card__title:`_card__title_bjfuf_28`,card__menu:`_card__menu_bjfuf_29`,card__value:`_card__value_bjfuf_37`,card__meta:`_card__meta_bjfuf_46`,card__sparkline:`_card__sparkline_bjfuf_53`,"card--trend-up":`_card--trend-up_bjfuf_55`,"card--trend-down":`_card--trend-down_bjfuf_56`,card__description:`_card__description_bjfuf_59`},kr={up:u.TrendingUp,down:u.TrendingDown,flat:u.Minus},Ar={up:`success`,down:`danger`,flat:`neutral`},jr=({data:e})=>{if(e.length<2)return null;let t=Math.min(...e),n=Math.max(...e)-t||1,r=e.map((r,i)=>`${i/(e.length-1)*100},${30-(r-t)/n*26}`).join(` `);return(0,l.jsx)(`svg`,{className:Mr,viewBox:`0 0 100 32`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,l.jsx)(`polyline`,{points:r,fill:`none`,strokeWidth:2,vectorEffect:`non-scaling-stroke`,strokeLinejoin:`round`,strokeLinecap:`round`})})},Mr=Or.card__sparkline,Nr=({title:e,value:t,description:n,sparkline:r,delta:i,trend:a=`up`,badgeVariant:o,variant:s=`minimal`,icon:c,showMenu:d,onMenu:f,className:m})=>{let h=kr[a],g=(s===`icon`||s===`featured`)&&c;return(0,l.jsxs)(`div`,{className:[Or.card,Or[`card--${s}`],Or[`card--trend-${a}`],m??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:Or.card__head,children:[g&&(0,l.jsx)(`span`,{className:Or.card__icon,"aria-hidden":`true`,children:(0,l.jsx)(c,{size:18,strokeWidth:p(18)})}),(0,l.jsx)(`span`,{className:Or.card__title,children:e}),d&&(0,l.jsx)(`button`,{type:`button`,className:Or.card__menu,onClick:f,"aria-label":`More options`,children:(0,l.jsx)(u.MoreHorizontal,{size:16,strokeWidth:p(16)})})]}),(0,l.jsx)(`div`,{className:Or.card__value,children:t}),r&&(0,l.jsx)(jr,{data:r}),(i||n)&&(0,l.jsxs)(`div`,{className:Or.card__meta,children:[i&&(0,l.jsx)(qe,{variant:o??Ar[a],leftIcon:(0,l.jsx)(h,{size:12,strokeWidth:2}),children:i}),n&&(0,l.jsx)(`p`,{className:Or.card__description,children:n})]})]})},Z={stepper:`_stepper_kxw14_3`,"stepper--horizontal":`_stepper--horizontal_kxw14_4`,"stepper--vertical":`_stepper--vertical_kxw14_5`,step:`_step_kxw14_3`,"step--horizontal":`_step--horizontal_kxw14_8`,"step--vertical":`_step--vertical_kxw14_9`,circle:`_circle_kxw14_12`,circle__num:`_circle__num_kxw14_24`,"circle--completed":`_circle--completed_kxw14_26`,"circle--current":`_circle--current_kxw14_27`,"circle--upcoming":`_circle--upcoming_kxw14_32`,step__text:`_step__text_kxw14_39`,step__label:`_step__label_kxw14_40`,"step__label--current":`_step__label--current_kxw14_41`,"step__label--upcoming":`_step__label--upcoming_kxw14_42`,step__desc:`_step__desc_kxw14_43`,connector:`_connector_kxw14_46`,"connector--horizontal":`_connector--horizontal_kxw14_47`,"connector--vertical":`_connector--vertical_kxw14_48`,"connector--filled":`_connector--filled_kxw14_49`},Pr=({index:e,state:t,label:n,description:r,orientation:i=`horizontal`})=>(0,l.jsxs)(`div`,{className:[Z.step,Z[`step--${i}`]].join(` `),children:[(0,l.jsx)(`span`,{className:[Z.circle,Z[`circle--${t}`]].join(` `),"aria-hidden":`true`,children:t===`completed`?(0,l.jsx)(u.Check,{size:14,strokeWidth:p(14)}):(0,l.jsx)(`span`,{className:Z.circle__num,children:e+1})}),(0,l.jsxs)(`span`,{className:Z.step__text,children:[(0,l.jsx)(`span`,{className:[Z.step__label,t===`current`?Z[`step__label--current`]:``,t===`upcoming`?Z[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:n}),r&&(0,l.jsx)(`span`,{className:Z.step__desc,children:r})]})]}),Fr=({steps:e,current:t,orientation:n=`horizontal`,className:r})=>{let i=e=>e<t?`completed`:e===t?`current`:`upcoming`;return(0,l.jsx)(`div`,{className:[Z.stepper,Z[`stepper--${n}`],r??``].filter(Boolean).join(` `),children:e.map((r,a)=>(0,l.jsxs)(c.default.Fragment,{children:[(0,l.jsx)(Pr,{index:a,state:i(a),label:r.label,description:r.description,orientation:n}),a<e.length-1&&(0,l.jsx)(`span`,{className:[Z.connector,Z[`connector--${n}`],a<t?Z[`connector--filled`]:``].filter(Boolean).join(` `),"aria-hidden":`true`})]},a))})},Ir={wrapper:`_wrapper_bkgd3_3`,"wrapper--disabled":`_wrapper--disabled_bkgd3_11`,input:`_input_bkgd3_13`,track:`_track_bkgd3_15`,thumb:`_thumb_bkgd3_28`,label:`_label_bkgd3_45`},Lr=c.default.forwardRef(({label:e,disabled:t,id:n,className:r,...i},a)=>{let o=c.default.useId(),s=n??o;return(0,l.jsxs)(`label`,{htmlFor:s,className:[Ir.wrapper,t?Ir[`wrapper--disabled`]:``,r??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`input`,{ref:a,id:s,type:`checkbox`,role:`switch`,disabled:t,className:Ir.input,...i}),(0,l.jsx)(`span`,{className:Ir.track,"aria-hidden":`true`,children:(0,l.jsx)(`span`,{className:Ir.thumb})}),e&&(0,l.jsx)(`span`,{className:Ir.label,children:e})]})});Lr.displayName=`Switch`;var Q={wrap:`_wrap_okjfz_6`,"wrap--bordered":`_wrap--bordered_okjfz_17`,table:`_table_okjfz_22`,headerRow:`_headerRow_okjfz_44`,headerCell:`_headerCell_okjfz_45`,bodyRow:`_bodyRow_okjfz_61`,"bodyRow--selected":`_bodyRow--selected_okjfz_66`,bodyCell:`_bodyCell_okjfz_68`,checkCell:`_checkCell_okjfz_80`,checkbox:`_checkbox_okjfz_104`,checkbox__input:`_checkbox__input_okjfz_111`,checkbox__box:`_checkbox__box_okjfz_113`,checkbox__check:`_checkbox__check_okjfz_134`,checkbox__dash:`_checkbox__dash_okjfz_141`,stackedList:`_stackedList_okjfz_160`,card:`_card_okjfz_167`,"card--selected":`_card--selected_okjfz_177`,card__field:`_card__field_okjfz_179`,card__label:`_card__label_okjfz_187`,card__value:`_card__value_okjfz_193`,card__selectRow:`_card__selectRow_okjfz_203`,"bodyRow--draggable":`_bodyRow--draggable_okjfz_213`,"bodyRow--dragging":`_bodyRow--dragging_okjfz_215`,"bodyRow--dropTarget":`_bodyRow--dropTarget_okjfz_216`},Rr=640;function zr(e){let[t,n]=c.default.useState(!1);return c.default.useEffect(()=>{if(e!==`auto`)return;let t=window.matchMedia(`(max-width: ${Rr}px)`);n(t.matches);let r=e=>n(e.matches);return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),e==="default"?`default`:e===`stacked`||t?`stacked`:`default`}var Br=({checked:e,indeterminate:t,onChange:n,label:r})=>{let i=c.default.useRef(null);return c.default.useEffect(()=>{i.current&&(i.current.indeterminate=!!t)},[t]),(0,l.jsxs)(`label`,{className:Q.checkbox,children:[(0,l.jsx)(`input`,{ref:i,type:`checkbox`,checked:e,onChange:n,className:Q.checkbox__input,"aria-label":r}),(0,l.jsxs)(`span`,{className:Q.checkbox__box,"aria-hidden":`true`,children:[(0,l.jsx)(`svg`,{className:Q.checkbox__check,width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),(0,l.jsx)(`span`,{className:Q.checkbox__dash})]})]})};function Vr({columns:e,rows:t,selectable:n,selectedRows:r,onSelectionChange:i,rowKey:a,reorderable:o,onReorder:s,bordered:u=!0,responsive:d=`auto`,className:f}){let p=zr(d),m=r!==void 0,[h,g]=c.default.useState([]),_=m?r:h,v=e=>{m||g(e),i?.(e)},y=t.length>0&&_.length===t.length,b=_.length>0&&!y,[x,S]=c.default.useState(null),[C,w]=c.default.useState(null),T=()=>{if(x===null||C===null||x===C){S(null),w(null);return}let e=[...t],[n]=e.splice(x,1);e.splice(C,0,n),s?.(e),S(null),w(null)},E=()=>v(y?[]:t.map((e,t)=>t)),D=e=>v(_.includes(e)?_.filter(t=>t!==e):[..._,e]);return p===`stacked`?(0,l.jsx)(`div`,{className:[Q.stackedList,f??``].filter(Boolean).join(` `),role:`list`,children:t.map((t,r)=>{let i=_.includes(r);return(0,l.jsxs)(`div`,{role:`listitem`,className:[Q.card,i?Q[`card--selected`]:``].filter(Boolean).join(` `),children:[n&&(0,l.jsx)(`div`,{className:Q.card__selectRow,children:(0,l.jsx)(Br,{checked:i,onChange:()=>D(r),label:`Select row ${r+1}`})}),e.map(e=>(0,l.jsxs)(`div`,{className:Q.card__field,children:[(0,l.jsx)(`span`,{className:Q.card__label,children:e.header}),(0,l.jsx)(`span`,{className:Q.card__value,children:e.render?e.render(t):String(t[e.key]??``)})]},e.key))]},a?a(t,r):r)})}):(0,l.jsx)(`div`,{className:[Q.wrap,u?Q[`wrap--bordered`]:``,f??``].filter(Boolean).join(` `),children:(0,l.jsxs)(`table`,{className:Q.table,children:[(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{className:Q.headerRow,children:[n&&(0,l.jsx)(`th`,{className:Q.checkCell,children:(0,l.jsx)(Br,{checked:y,indeterminate:b,onChange:E,label:`Select all rows`})}),e.map(e=>(0,l.jsx)(`th`,{className:Q.headerCell,style:{textAlign:e.align??`left`,width:e.width},children:e.header},e.key))]})}),(0,l.jsx)(`tbody`,{children:t.map((t,r)=>{let i=_.includes(r);return(0,l.jsxs)(`tr`,{draggable:o||void 0,onDragStart:o?()=>S(r):void 0,onDragOver:o?e=>{e.preventDefault(),w(r)}:void 0,onDrop:o?T:void 0,onDragEnd:o?()=>{S(null),w(null)}:void 0,className:[Q.bodyRow,i?Q[`bodyRow--selected`]:``,o?Q[`bodyRow--draggable`]:``,C===r&&x!==null&&x!==r?Q[`bodyRow--dropTarget`]:``,x===r?Q[`bodyRow--dragging`]:``].filter(Boolean).join(` `),children:[n&&(0,l.jsx)(`td`,{className:Q.checkCell,children:(0,l.jsx)(Br,{checked:i,onChange:()=>D(r),label:`Select row ${r+1}`})}),e.map(e=>(0,l.jsx)(`td`,{className:Q.bodyCell,style:{textAlign:e.align??`left`},children:e.render?e.render(t):String(t[e.key]??``)},e.key))]},a?a(t,r):r)})})]})})}var Hr={tabs:`_tabs_1122j_3`,"tabs--borderless":`_tabs--borderless_1122j_16`,"tabs--fill":`_tabs--fill_1122j_21`,tab:`_tab_1122j_3`,"tab--disabled":`_tab--disabled_1122j_61`,"tab--active":`_tab--active_1122j_63`,indicator:`_indicator_1122j_74`,"indicator--animated":`_indicator--animated_1122j_88`},Ur=({items:e,value:t,defaultValue:n,onChange:r,bordered:i=!0,fill:a=!1,className:o})=>{let s=t!==void 0,[u,d]=c.default.useState(n??e[0]?.value),f=s?t:u,m=e=>{s||d(e),r?.(e)},h=c.default.useRef(null),g=c.default.useRef({}),[_,v]=c.default.useState(null),[y,b]=c.default.useState(!1);return c.default.useLayoutEffect(()=>{let e=()=>{let e=g.current[f];!e||!h.current||v({left:e.offsetLeft,width:e.offsetWidth})};e();let t=window.requestAnimationFrame(()=>b(!0)),n=new ResizeObserver(e);return h.current&&n.observe(h.current),()=>{window.cancelAnimationFrame(t),n.disconnect()}},[f,e]),(0,l.jsxs)(`div`,{ref:h,role:`tablist`,className:[Hr.tabs,i?``:Hr[`tabs--borderless`],a?Hr[`tabs--fill`]:``,o??``].filter(Boolean).join(` `),children:[e.map(e=>{let t=e.value===f,n=e.icon;return(0,l.jsxs)(`button`,{ref:t=>{g.current[e.value]=t},role:`tab`,type:`button`,"aria-selected":t,disabled:e.disabled,className:[Hr.tab,t?Hr[`tab--active`]:``,e.disabled?Hr[`tab--disabled`]:``].filter(Boolean).join(` `),onClick:()=>m(e.value),children:[n&&(0,l.jsx)(n,{size:16,strokeWidth:p(16),"aria-hidden":`true`}),e.label]},e.value)}),_&&(0,l.jsx)(`span`,{"aria-hidden":`true`,className:[Hr.indicator,y?Hr[`indicator--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateX(${_.left}px)`,width:_.width}})]})},Wr={field:`_field_644oy_6`,field__label:`_field__label_644oy_8`,field__description:`_field__description_644oy_9`,field__error:`_field__error_644oy_10`,textarea:`_textarea_644oy_12`,"textarea--error":`_textarea--error_644oy_37`,"textarea--disabled":`_textarea--disabled_644oy_43`},Gr=c.default.forwardRef(({label:e,description:t,error:n,disabled:r,id:i,className:a,rows:o=4,...s},u)=>{let d=c.default.useId(),f=i??d,p=!!n;return(0,l.jsxs)(`div`,{className:[Wr.field,a??``].filter(Boolean).join(` `),children:[e&&(0,l.jsx)(`label`,{htmlFor:f,className:Wr.field__label,children:e}),(0,l.jsx)(`textarea`,{ref:u,id:f,rows:o,disabled:r,"aria-invalid":p||void 0,className:[Wr.textarea,p?Wr[`textarea--error`]:``,r?Wr[`textarea--disabled`]:``].filter(Boolean).join(` `),...s}),(t||n)&&(0,l.jsx)(`span`,{className:p?Wr.field__error:Wr.field__description,children:n||t})]})});Gr.displayName=`Textarea`;var Kr={toast:`_toast_8yqwj_3`,toast__icon:`_toast__icon_8yqwj_17`,"toast--success":`_toast--success_8yqwj_18`,"toast--error":`_toast--error_8yqwj_19`,"toast--info":`_toast--info_8yqwj_20`,toast__content:`_toast__content_8yqwj_22`,toast__title:`_toast__title_8yqwj_23`,toast__description:`_toast__description_8yqwj_24`,toast__dismiss:`_toast__dismiss_8yqwj_26`},qr={success:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,l.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,l.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,l.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},Jr=({status:e=`info`,title:t,description:n,onDismiss:r,className:i})=>(0,l.jsxs)(`div`,{role:e===`error`?`alert`:`status`,"aria-live":e===`error`?`assertive`:`polite`,className:[Kr.toast,Kr[`toast--${e}`],i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:Kr.toast__icon,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:qr[e]})}),(0,l.jsxs)(`div`,{className:Kr.toast__content,children:[t&&(0,l.jsx)(`div`,{className:Kr.toast__title,children:t}),n&&(0,l.jsx)(`div`,{className:Kr.toast__description,children:n})]}),r&&(0,l.jsx)(`button`,{type:`button`,className:Kr.toast__dismiss,onClick:r,"aria-label":`Dismiss`,children:(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,l.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,l.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),Yr={wrapper:`_wrapper_w6wtp_8`,bubble:`_bubble_w6wtp_8`,bubble__title:`_bubble__title_w6wtp_46`,bubble__subtitle:`_bubble__subtitle_w6wtp_53`,caret:`_caret_w6wtp_66`,"bubble--top-left":`_bubble--top-left_w6wtp_69`,"bubble--top-center":`_bubble--top-center_w6wtp_70`,"bubble--top-right":`_bubble--top-right_w6wtp_71`,"caret--top-left":`_caret--top-left_w6wtp_78`,"caret--top-center":`_caret--top-center_w6wtp_79`,"caret--top-right":`_caret--top-right_w6wtp_80`,"bubble--bottom-left":`_bubble--bottom-left_w6wtp_91`,"bubble--bottom-center":`_bubble--bottom-center_w6wtp_92`,"bubble--bottom-right":`_bubble--bottom-right_w6wtp_93`,"caret--bottom-left":`_caret--bottom-left_w6wtp_100`,"caret--bottom-center":`_caret--bottom-center_w6wtp_101`,"caret--bottom-right":`_caret--bottom-right_w6wtp_102`,"bubble--center-left":`_bubble--center-left_w6wtp_113`,"caret--center-left":`_caret--center-left_w6wtp_121`,"bubble--center-right":`_bubble--center-right_w6wtp_131`,"caret--center-right":`_caret--center-right_w6wtp_139`},Xr=({title:e,subtitle:t,pointer:n=`top-center`,children:r,className:i})=>{let[a,o]=c.default.useState(!1);return c.default.useEffect(()=>{let e=e=>{e.key===`Escape`&&o(!0)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,l.jsxs)(`span`,{className:[Yr.wrapper,i??``].filter(Boolean).join(` `),"data-dismissed":a||void 0,onMouseLeave:()=>o(!1),onBlur:()=>o(!1),children:[r,(0,l.jsxs)(`span`,{role:`tooltip`,className:[Yr.bubble,Yr[`bubble--${n}`]].join(` `),children:[(0,l.jsx)(`span`,{className:Yr.bubble__title,children:e}),t&&(0,l.jsx)(`span`,{className:Yr.bubble__subtitle,children:t}),(0,l.jsx)(`span`,{className:[Yr.caret,Yr[`caret--${n}`]].join(` `),"aria-hidden":`true`})]})]})},$={bar:`_bar_1fiq0_2`,"bar--md":`_bar--md_1fiq0_11`,"bar--sm":`_bar--sm_1fiq0_12`,bar__leftGroup:`_bar__leftGroup_1fiq0_20`,bar__left:`_bar__left_1fiq0_20`,bar__spacer:`_bar__spacer_1fiq0_27`,bar__right:`_bar__right_1fiq0_30`,bar__icon:`_bar__icon_1fiq0_36`,bar__bell:`_bar__bell_1fiq0_43`,bar__dot:`_bar__dot_1fiq0_44`,bar__divider:`_bar__divider_1fiq0_49`,bar__account:`_bar__account_1fiq0_50`,"bar--chat":`_bar--chat_1fiq0_56`,bar__chatAvatar:`_bar__chatAvatar_1fiq0_64`,bar__chatMeta:`_bar__chatMeta_1fiq0_65`,bar__chatTitle:`_bar__chatTitle_1fiq0_66`,bar__chatSubtitle:`_bar__chatSubtitle_1fiq0_71`,bar__chatActions:`_bar__chatActions_1fiq0_75`,"bar__left--search":`_bar__left--search_1fiq0_79`,bar__accountChevron:`_bar__accountChevron_1fiq0_91`,"bar__accountChevron--open":`_bar__accountChevron--open_1fiq0_97`},Zr=({type:e=`search`,density:t=`md`,left:n,showToggle:r=!0,onToggle:i,toggleIcon:a=u.PanelLeft,showActions:o=!0,showHelp:s=!0,hasUnread:c=!1,rightSlot:d,account:f,accountOpen:m=!1,avatar:h,title:g,subtitle:_,actions:v,className:y})=>{let b=t===`md`?20:18,x=p(b);return(0,l.jsx)(`header`,{className:[$.bar,$[`bar--${t}`],$[`bar--${e}`],y??``].filter(Boolean).join(` `),children:e===`chat`?(0,l.jsxs)(l.Fragment,{children:[h&&(0,l.jsx)(`span`,{className:$.bar__chatAvatar,children:h}),(0,l.jsxs)(`span`,{className:$.bar__chatMeta,children:[g&&(0,l.jsx)(`span`,{className:$.bar__chatTitle,children:g}),_&&(0,l.jsx)(`span`,{className:$.bar__chatSubtitle,children:_})]}),(0,l.jsx)(`div`,{className:$.bar__spacer}),v&&(0,l.jsx)(`div`,{className:$.bar__chatActions,children:v})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(`div`,{className:$.bar__leftGroup,children:[r&&(0,l.jsx)(`button`,{type:`button`,className:$.bar__icon,onClick:i,"aria-label":`Toggle sidebar`,children:(0,l.jsx)(a,{size:b,strokeWidth:x})}),(0,l.jsx)(`div`,{className:[$.bar__left,e===`search`?$[`bar__left--search`]:``].filter(Boolean).join(` `),"data-type":e,children:n})]}),(0,l.jsx)(`div`,{className:$.bar__spacer}),(0,l.jsxs)(`div`,{className:$.bar__right,children:[d,o&&(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)(`button`,{type:`button`,className:$.bar__icon,"aria-label":`Help`,children:(0,l.jsx)(u.CircleHelp,{size:b,strokeWidth:x})}),(0,l.jsx)(`button`,{type:`button`,className:$.bar__icon,"aria-label":`Notifications`,children:(0,l.jsxs)(`span`,{className:$.bar__bell,children:[(0,l.jsx)(u.Bell,{size:b,strokeWidth:x}),c&&(0,l.jsx)(`span`,{className:$.bar__dot,"aria-hidden":`true`})]})}),(0,l.jsx)(`span`,{className:$.bar__divider})]}),f&&(0,l.jsxs)(`div`,{className:$.bar__account,children:[f,(0,l.jsx)(u.ChevronDown,{size:16,strokeWidth:p(16),className:[$.bar__accountChevron,m?$[`bar__accountChevron--open`]:``].filter(Boolean).join(` `)})]})]})]})})},Qr={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},$r=({type:e=`title`,title:t,trailing:n,search:r,onMenu:i,onAction:a,onClose:o,className:s})=>(0,l.jsxs)(`header`,{className:[Qr.bar,s??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`button`,{type:`button`,className:Qr.bar__icon,onClick:i,"aria-label":`Open menu`,children:(0,l.jsx)(u.Menu,{size:18,strokeWidth:p(18)})}),e===`search`?(0,l.jsx)(`div`,{className:Qr.bar__search,children:r}):(0,l.jsx)(`span`,{className:[Qr.bar__title,e===`title-centered`?Qr[`bar__title--center`]:``].join(` `),children:t}),e===`title-action`&&(0,l.jsx)(`button`,{type:`button`,className:Qr.bar__icon,onClick:a,"aria-label":`Add`,children:(0,l.jsx)(u.Plus,{size:18,strokeWidth:p(18)})}),e===`search`&&(0,l.jsx)(`button`,{type:`button`,className:Qr.bar__icon,onClick:o,"aria-label":`Close search`,children:(0,l.jsx)(u.X,{size:18,strokeWidth:p(18)})}),(e===`title`||e===`title-centered`)&&n]});exports.Accordion=g,exports.AccordionItem=h,exports.ActivityFeed=T,exports.ActivityFeedHighlight=S,exports.Alert=it,exports.Announcement=ee,exports.AreaChart=ct,exports.Avatar=b,exports.AvatarGroup=ut,exports.AvatarUpload=te,exports.Badge=qe,exports.Balance=ue,exports.BarChart=Ue,exports.BoardCard=dt,exports.BoardColumn=pt,exports.Breadcrumb=gt,exports.Button=N,exports.Calendar=xt,exports.Card=Ct,exports.CardMetaItem=Tt,exports.ChatComposer=Dt,exports.Checkbox=kt,exports.CodeSnippet=he,exports.Combobox=At,exports.ConversationItem=jt,exports.Divider=Te,exports.DonutChart=Ft,exports.EmptyState=Rt,exports.Expenses=be,exports.FileUpload=zt,exports.FilterChip=Vt,exports.FunnelChart=qt,exports.HeatmapChart=Zt,exports.IconButton=A,exports.InlineHint=Ce,exports.Input=tn,exports.Kbd=rn,exports.Label=on,exports.LineChart=dn,exports.Link=D,exports.ListItem=pn,exports.Menu=hn,exports.MenuDivider=gn,exports.MenuItem=vn,exports.MessageBubble=yn,exports.Modal=De,exports.NotificationItem=Oe,exports.Pagination=Sn,exports.PieChart=jn,exports.Popover=Nn,exports.Progress=_e,exports.ProgressItem=ke,exports.ProgressStat=je,exports.RadarChart=Wn,exports.RadialChart=$n,exports.Radio=tr,exports.RichSeparator=Ne,exports.SegmentedControl=rr,exports.Select=ir,exports.Sidebar=or,exports.SidebarDivider=cr,exports.SidebarFooter=ur,exports.SidebarGroupLabel=fr,exports.SidebarHeader=pr,exports.SidebarItem=hr,exports.SidebarPromo=_r,exports.SidebarSearch=yr,exports.SidebarSubItem=xr,exports.Skeleton=Cr,exports.Slider=Tr,exports.SpendingBalance=Ie,exports.Spinner=Dr,exports.StatCard=Nr,exports.Stepper=Fr,exports.StepperStep=Pr,exports.StockMarket=Ge,exports.Switch=Lr,exports.Table=Vr,exports.Tabs=Ur,exports.Tags=Ye,exports.Textarea=Gr,exports.Ticker=$e,exports.Toast=Jr,exports.Tooltip=Xr,exports.TopBar=Zr,exports.TopBarMobile=$r,exports.Transactions=tt;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./TopBar-CM5noziF.cjs");let t=require("react");t=e.pt(t,1);let n=require("react/jsx-runtime"),r=require("lucide-react"),i=require("recharts");var a={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},o=({message:t,linkLabel:i,linkHref:o,onLinkClick:s,onDismiss:c,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,n.jsxs)(`div`,{className:[a.announcement,a[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:a.content,children:[(0,n.jsx)(`span`,{className:a.icon,"aria-hidden":`true`,children:d?(0,n.jsx)(r.TriangleAlert,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,n.jsx)(r.Sparkles,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:a.icon__neutral})}),(0,n.jsx)(`p`,{className:a.message,children:t}),!d&&i&&(0,n.jsx)(e.ot,{href:o,onClick:s,className:a.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:i})]}),c&&(0,n.jsx)(e.at,{icon:r.X,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:c})]})},s={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},c=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],l=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${c.join(`|`)})\\b)`,`g`),u=e=>e.split(l).map((e,r)=>{if(!e)return null;let i=/^['"`]/.test(e),a=!i&&c.includes(e);return i?(0,n.jsx)(`span`,{className:s.tokenString,children:e},r):a?(0,n.jsx)(`span`,{className:s.tokenKeyword,children:e},r):(0,n.jsx)(t.default.Fragment,{children:e},r)}),d=({code:i,filename:a,onCopy:o,editable:c=!1,onChange:l,placeholder:d,className:f})=>{let[p,m]=t.default.useState(!1),[h,g]=t.default.useState(i);t.default.useEffect(()=>g(i),[i]);let _=()=>{navigator.clipboard?.writeText(h),o?.(h),m(!0),window.setTimeout(()=>m(!1),1500)},v=e=>{g(e),l?.(e)},y=c?(0,n.jsxs)(`div`,{className:s.editableBody,children:[(0,n.jsx)(`pre`,{className:s.body,"aria-hidden":`true`,children:u(h)}),(0,n.jsx)(`textarea`,{className:s.textarea,value:h,placeholder:d,spellCheck:!1,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${h.slice(0,n)} ${h.slice(r)}`;v(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,n.jsx)(`pre`,{className:s.body,children:u(h)});return a?(0,n.jsxs)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:s.header,children:[(0,n.jsx)(`p`,{className:s.filename,children:a}),(0,n.jsx)(e.at,{icon:p?r.Check:r.Copy,variant:`ghost`,size:`sm`,"aria-label":p?`Copied`:`Copy code`,onClick:_})]}),y]}):(0,n.jsx)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:y})},f={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},p=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),m=({categories:t,variant:r=`default`,formatAmount:i=p,className:a})=>{let o=r===`compact`,s=Math.max(1,...t.map(e=>e.amount));return(0,n.jsx)(`div`,{className:[f.expenses,a??``].filter(Boolean).join(` `),children:t.map((t,r)=>(0,n.jsxs)(`div`,{className:f.row,children:[(0,n.jsxs)(`div`,{className:f.top,children:[(0,n.jsxs)(`div`,{className:f.left,children:[(0,n.jsx)(`span`,{className:f.icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`p`,{className:f.label,children:t.label})]}),(0,n.jsx)(`p`,{className:f.amount,children:i(t.amount)})]}),!o&&(0,n.jsx)(e.et,{value:t.amount/s*100,size:`lg`,label:`${t.label} spending`})]},t.id??r))})},h={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},g=14,_=({message:t,variant:i=`neutral`,className:a})=>{let o=i===`warning`?r.TriangleAlert:r.Info;return(0,n.jsxs)(`div`,{className:[h.hint,h[`hint--${i}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:h.bar,"aria-hidden":`true`}),(0,n.jsx)(o,{size:g,strokeWidth:e.ft(g),className:h.icon}),(0,n.jsx)(`p`,{className:h.message,children:t})]})},v={item:`_item_mg6gs_1`,"item--horizontal":`_item--horizontal_mg6gs_6`,"item--vertical":`_item--vertical_mg6gs_11`,value:`_value_mg6gs_16`,topRow:`_topRow_mg6gs_31`,connectorHorizontal:`_connectorHorizontal_mg6gs_36`,rail:`_rail_mg6gs_44`,connectorVertical:`_connectorVertical_mg6gs_51`,text:`_text_mg6gs_59`,title:`_title_mg6gs_65`,description:`_description_mg6gs_73`},y=({step:t,title:i,description:a,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,n.jsx)(`span`,{className:v.value,"aria-hidden":`true`,children:o?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.ft(14)}):t}),f=(0,n.jsxs)(`div`,{className:v.text,children:[(0,n.jsx)(`p`,{className:v.title,children:i}),a&&(0,n.jsx)(`p`,{className:v.description,children:a})]});return u?(0,n.jsxs)(`div`,{className:[v.item,v[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.rail,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorVertical})]}),f]}):(0,n.jsxs)(`div`,{className:[v.item,v[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.topRow,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorHorizontal})]}),f]})},b={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},x=({children:t,label:r,className:i})=>(0,n.jsxs)(`div`,{className:[b.separator,i??``].filter(Boolean).join(` `),role:`separator`,children:[(0,n.jsx)(e.$,{className:b.line}),t??(r&&(0,n.jsx)(`span`,{className:b.overline,children:r})),(0,n.jsx)(e.$,{className:b.line})]}),S={tooltip:`_tooltip_ic16u_3`,title:`_title_ic16u_23`,row:`_row_ic16u_27`,dot:`_dot_ic16u_34`,label:`_label_ic16u_41`,value:`_value_ic16u_42`},C=({active:e,payload:t,label:r,formatter:i})=>!e||!t||t.length===0?null:(0,n.jsxs)(`div`,{className:S.tooltip,children:[r!==void 0&&r!==``&&(0,n.jsx)(`span`,{className:S.title,children:r}),t.map((e,t)=>(0,n.jsxs)(`div`,{className:S.row,children:[(0,n.jsx)(`span`,{className:S.dot,style:{background:e.color??e.payload?.fill??e.fill}}),(0,n.jsx)(`span`,{className:S.label,children:e.name}),(0,n.jsx)(`span`,{className:S.value,children:i?i(e.value,e.name):e.value})]},t))]}),w={chart:`_chart_1s6lv_2`,legend:`_legend_1s6lv_31`,legendItem:`_legendItem_1s6lv_41`,legendSwatch:`_legendSwatch_1s6lv_46`},T={sm:180,md:240,lg:320,xl:420},E=6,D=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,O=e=>{if(e<=0)return 1;let t=10**Math.floor(Math.log10(e)),n=e/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t},k=({data:r,variant:a=`default`,size:o=`md`,seriesLabels:s=[`Value`,`Value 2`],className:c})=>{let[l,u]=t.default.useState(null),[d,f]=t.default.useState(null);e.nt();let p=D(`--color-chart-2`)??`#2e90fa`,m=D(`--color-chart-5`)??`#78716a`,h=D(`--color-chart-1`)??`#ff4700`,g=[1,2,3,4,5,6].map(e=>D(`--color-chart-${e}`)??`#ff4700`),_=D(`--color-border-subtle`)??`#e5e4e7`,v=D(`--color-fg-muted`)??`#6b6375`,y=a===`multiple`||a===`stacked`,b=y&&r.some(e=>e.value2!==void 0),x=D(`--color-bg-canvas`)??`#fafaf9`,S=O(Math.max(1,...r.map(e=>Math.abs(e.value)))),k=[-S,-S/2,0,S/2,S],A=(0,n.jsx)(i.Tooltip,{cursor:!1,content:(0,n.jsx)(C,{}),wrapperStyle:{zIndex:50},position:d?{y:d.y}:void 0}),ee=e=>a===`active`?g[e%g.length]:a===`negative`&&r[e].value<0?h:p,te=e=>l!==null&&e!==l?.45:1,ne=(e,t,n,r,i,a)=>({x:e?t+r:t+r/2,y:e?n+i/2:a<0?n+i:n}),re=e=>t=>{let{x:o,y:s,width:c,height:l,fill:u,radius:d}=t,f=Number(r[t.index]?.[e]??0),{x:m,y:h}=ne(a===`horizontal`,o,s,c,l,f);return a===`stacked`&&e===`value`?(0,n.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}):(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}),(0,n.jsx)(`circle`,{cx:m,cy:h,r:4,fill:u,stroke:x,strokeWidth:1.5}),a===`stacked`&&e===`value2`&&(0,n.jsx)(`circle`,{cx:o+c/2,cy:s+l,r:4,fill:p,stroke:x,strokeWidth:1.5})]})},j=e=>(t,n)=>{u(n);let i=Number(r[n]?.[e]??0);f(ne(a===`horizontal`,t.x,t.y,t.width,t.height,i))},ie=()=>{u(null),f(null)};return(0,n.jsx)(`div`,{className:[w.chart,c??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:T[o],children:(0,n.jsxs)(i.BarChart,{data:r,layout:a===`horizontal`?`vertical`:`horizontal`,margin:{top:8,right:8,bottom:8,left:a===`horizontal`?8:0},children:[(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:_,horizontal:!0,vertical:a===`horizontal`}),a===`horizontal`?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.XAxis,{type:`number`,stroke:v,fontSize:12,tickLine:!1,axisLine:!1}),(0,n.jsx)(i.YAxis,{type:`category`,dataKey:`label`,stroke:v,fontSize:12,tickLine:!1,axisLine:!1,width:64})]}):(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:v,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),a===`negative`&&(0,n.jsx)(i.YAxis,{hide:!0,domain:[-S,S],ticks:k}),A,y&&(0,n.jsx)(i.Legend,{content:e=>(0,n.jsx)(`ul`,{className:w.legend,children:e.payload?.map(e=>(0,n.jsxs)(`li`,{className:w.legendItem,children:[(0,n.jsx)(`span`,{className:w.legendSwatch,style:{background:e.color}}),(0,n.jsx)(`span`,{style:{color:e.color},children:e.value})]},e.value))})}),y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Bar,{dataKey:`value`,name:s[0]??`Value`,fill:p,stackId:a===`stacked`?`stack`:void 0,radius:a===`stacked`?[0,0,E,E]:[E,E,E,E],isAnimationActive:!1,activeBar:re(`value`),onMouseEnter:j(`value`),onMouseLeave:ie,children:r.map((e,t)=>(0,n.jsx)(i.Cell,{fill:p,fillOpacity:l!==null&&t!==l?.45:1},t))}),b&&(0,n.jsx)(i.Bar,{dataKey:`value2`,name:s[1]??`Value 2`,fill:m,stackId:a===`stacked`?`stack`:void 0,radius:a===`stacked`?[E,E,0,0]:[E,E,E,E],isAnimationActive:!1,activeBar:re(`value2`),onMouseEnter:j(`value2`),onMouseLeave:ie,children:r.map((e,t)=>(0,n.jsx)(i.Cell,{fill:m,fillOpacity:l!==null&&t!==l?.45:1},t))})]}):(0,n.jsx)(i.Bar,{dataKey:`value`,name:`Value`,fill:l===null?p:ee(l),radius:[E,E,E,E],isAnimationActive:!1,activeBar:re(`value`),onMouseEnter:j(`value`),onMouseLeave:ie,children:r.map((e,t)=>(0,n.jsx)(i.Cell,{fill:ee(t),fillOpacity:te(t)},t))})]})})})},A={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},ee=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),te=({logo:t,symbol:i,name:a,price:o,change:s,formatAmount:c=ee,chart:l,periodLabel:u=`Last 6 months`,onPeriodClick:d,className:f})=>{let p=s.amount>=0,m=p?r.TrendingUp:r.TrendingDown,h=p?`+`:`-`,g=`${h}${c(s.amount)} (${h}${Math.abs(s.percent)}%)`,_=p?A.trendUp:A.trendDown;return l?(0,n.jsxs)(`div`,{className:[A.card,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:A.header,children:[(0,n.jsx)(r.ChartColumn,{size:16,strokeWidth:e.ft(16),className:A.headerIcon}),(0,n.jsx)(`span`,{className:A.headerLabel,children:`Stock market`})]}),(0,n.jsxs)(`div`,{className:A.tickerRow,children:[(0,n.jsx)(`span`,{className:A.logoLg,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:A.text,children:[(0,n.jsx)(`p`,{className:A.symbol,children:i}),(0,n.jsx)(`p`,{className:A.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:A.body,children:[(0,n.jsxs)(`div`,{className:A.priceRow,children:[(0,n.jsxs)(`div`,{className:A.priceGroup,children:[(0,n.jsx)(`p`,{className:A.priceLg,children:c(o)}),(0,n.jsxs)(`div`,{className:A.changeRowLg,children:[(0,n.jsx)(m,{size:24,strokeWidth:e.ft(24),className:_}),(0,n.jsx)(`span`,{className:[A.changeTextLg,_].join(` `),children:g})]})]}),(0,n.jsx)(e.it,{variant:`outline`,size:`sm`,rightIcon:(0,n.jsx)(r.ChevronDown,{size:16,strokeWidth:e.ft(16)}),onClick:d,children:u})]}),(0,n.jsx)(k,{data:l,className:A.chart})]})]}):(0,n.jsxs)(`div`,{className:[A.row,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:A.left,children:[(0,n.jsx)(`span`,{className:A.logo,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:A.text,children:[(0,n.jsx)(`p`,{className:A.symbol,children:i}),(0,n.jsx)(`p`,{className:A.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:A.right,children:[(0,n.jsx)(`p`,{className:A.price,children:c(o)}),(0,n.jsxs)(`div`,{className:A.changeRow,children:[(0,n.jsx)(m,{size:20,strokeWidth:e.ft(20),className:_}),(0,n.jsx)(`span`,{className:[A.changeText,_].join(` `),children:g})]})]})]})},ne={tags:`_tags_acsad_1`,remove:`_remove_acsad_8`},re=({tags:t,onRemove:i,className:a})=>(0,n.jsx)(`div`,{className:[ne.tags,a??``].filter(Boolean).join(` `),children:t.map((t,a)=>(0,n.jsx)(e.J,{rightIcon:i&&(0,n.jsx)(`button`,{type:`button`,className:ne.remove,onClick:()=>i(t,a),"aria-label":`Remove ${t}`,children:(0,n.jsx)(r.X,{size:12,strokeWidth:e.ft(12)})}),children:t},t))}),j={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},ie=e=>`${e>=0?`+`:``}${e}%`,ae=({items:t,formatChange:i,ariaHidden:a})=>(0,n.jsx)(`div`,{className:j.row,"aria-hidden":a,children:t.map((t,a)=>{let o=t.changePercent>=0,s=o?r.TrendingUp:r.TrendingDown,c=o?j.trendUp:j.trendDown;return(0,n.jsxs)(`div`,{className:j.item,children:[(0,n.jsx)(`span`,{className:j.symbol,children:t.symbol}),(0,n.jsx)(s,{size:14,strokeWidth:e.ft(14),className:c}),(0,n.jsx)(`span`,{className:[j.change,c].join(` `),children:i(t.changePercent)})]},`${t.symbol}-${a}`)})}),oe=({items:e,speed:r=40,formatChange:i=ie,className:a})=>{let o=t.default.useRef(null),[s,c]=t.default.useState(20);return t.default.useEffect(()=>{let e=o.current;if(!e)return;let t=e.firstElementChild;if(!t)return;let n=()=>{let e=t.scrollWidth;e>0&&c(e/r)};n();let i=new ResizeObserver(n);return i.observe(t),()=>i.disconnect()},[e,r]),(0,n.jsxs)(`div`,{className:[j.ticker,a??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{ref:o,className:j.track,style:{"--ticker-duration":`${s}s`},children:[(0,n.jsx)(ae,{items:e,formatChange:i}),(0,n.jsx)(ae,{items:e,formatChange:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:j.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:j.fadeRight,"aria-hidden":`true`})]})},M={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},se=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,ce=({transactions:t,formatAmount:i=se,emptyTitle:a=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>t.length===0?(0,n.jsxs)(`div`,{className:[M.empty,s??``].filter(Boolean).join(` `),children:[(0,n.jsx)(r.Receipt,{size:24,strokeWidth:e.ft(24),className:M.emptyIcon}),(0,n.jsx)(`p`,{className:M.emptyTitle,children:a}),(0,n.jsx)(`p`,{className:M.emptyDesc,children:o})]}):(0,n.jsx)(`div`,{className:[M.list,s??``].filter(Boolean).join(` `),children:t.map((e,r)=>{let a=e.amount>=0;return(0,n.jsxs)(`div`,{className:[M.row,r===t.length-1?M.rowLast:``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:M.left,children:[(0,n.jsx)(`span`,{className:M.iconWrap,"aria-hidden":`true`,children:e.icon}),(0,n.jsxs)(`div`,{className:M.info,children:[(0,n.jsx)(`p`,{className:M.name,children:e.name}),(0,n.jsx)(`p`,{className:M.category,children:e.category})]})]}),(0,n.jsx)(`p`,{className:[M.amount,a?M.amountUp:M.amountDown].join(` `),children:i(e.amount)})]},e.id??`${e.name}-${r}`)})}),N={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},le=({quote:t,author:i,className:a})=>{let o=!!i;return(0,n.jsxs)(`div`,{className:[N.root,o?N.rootAttributed:N.rootSimple,a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.$,{orientation:`vertical`,className:N.rail}),(0,n.jsxs)(`div`,{className:N.body,children:[o&&(0,n.jsx)(`span`,{className:N.markRow,"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.ft(12),className:N.mark,fill:`currentColor`})}),(0,n.jsx)(`p`,{className:o?N.quoteAttributed:N.quoteSimple,children:o?t:`"${t}"`}),o&&(0,n.jsx)(`span`,{className:[N.markRow,N.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.ft(12),className:N.mark,fill:`currentColor`})}),i&&(0,n.jsxs)(`div`,{className:N.author,children:[(0,n.jsx)(e.lt,{size:`sm`,src:i.avatarSrc,alt:i.avatarAlt??i.name}),(0,n.jsxs)(`p`,{className:N.authorText,children:[(0,n.jsx)(`span`,{className:N.authorName,children:i.name}),(0,n.jsxs)(`span`,{className:N.authorRole,children:[`, `,i.role]})]})]})]})]})},ue={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},de=({text:e,align:t=`left`,className:r})=>(0,n.jsxs)(`div`,{className:[ue.root,t===`top`?ue.rootTop:ue.rootLeft,r??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:t===`top`?ue.ruleTop:ue.ruleLeft,"aria-hidden":`true`}),(0,n.jsx)(`p`,{className:ue.text,children:e})]}),fe={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},pe=({src:e,alt:t=``,size:r=`large`,caption:i,className:a})=>(0,n.jsxs)(`figure`,{className:[fe.root,fe[`root--${r}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:fe.imageWrap,children:(0,n.jsx)(`img`,{src:e,alt:t,className:fe.image})}),i&&(0,n.jsx)(`figcaption`,{className:fe.caption,children:i})]}),P={root:`_root_uc5r9_1`,rootCenter:`_rootCenter_uc5r9_10`,rootLeft:`_rootLeft_uc5r9_15`,title:`_title_uc5r9_20`,description:`_description_uc5r9_30`,ctaRow:`_ctaRow_uc5r9_39`,avatarBlock:`_avatarBlock_uc5r9_45`,avatarsCaption:`_avatarsCaption_uc5r9_57`},me=({title:t,description:i,badgeLabel:a,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,n.jsxs)(`div`,{className:[P.root,u===`left`?P.rootLeft:P.rootCenter,d??``].filter(Boolean).join(` `),children:[a&&(0,n.jsx)(e.J,{variant:`accent`,emphasis:`subtle`,children:a}),(0,n.jsx)(`p`,{className:P.title,children:t}),i&&(0,n.jsx)(`p`,{className:P.description,children:i}),f&&(0,n.jsxs)(`div`,{className:P.ctaRow,children:[o&&(0,n.jsx)(e.it,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,n.jsx)(e.it,{variant:`secondary`,leftIcon:(0,n.jsx)(r.Play,{size:16,strokeWidth:e.ft(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,n.jsxs)(`div`,{className:P.avatarBlock,children:[(0,n.jsx)(e.j,{size:`md`,avatars:c}),l&&(0,n.jsx)(`p`,{className:P.avatarsCaption,children:l})]})]})},he={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},ge=({items:t,style:i=`check`,className:a})=>(0,n.jsx)(`ul`,{className:[he.root,a??``].filter(Boolean).join(` `),children:t.map((t,a)=>(0,n.jsxs)(`li`,{className:he.item,children:[(0,n.jsxs)(`span`,{className:he.marker,"aria-hidden":`true`,children:[i===`check`&&(0,n.jsx)(r.Check,{size:18,strokeWidth:e.ft(18)}),i===`arrow`&&(0,n.jsx)(r.ArrowRight,{size:16,strokeWidth:e.ft(16)}),i===`bullet`&&(0,n.jsx)(`span`,{className:he.dot})]}),(0,n.jsx)(`span`,{className:he.label,children:t})]},a))}),_e={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},ve=({items:e,gap:t,ariaHidden:r})=>(0,n.jsx)(`div`,{className:_e.row,style:{gap:t,paddingRight:t},"aria-hidden":r,children:e.map((e,t)=>(0,n.jsx)(`div`,{className:_e.item,children:e},t))}),ye=({items:e,speed:r=40,gap:i,className:a})=>{let o=t.default.useRef(null),s=t.default.useRef(0),c=t.default.useRef(0),l=t.default.useRef(!1);return t.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,i]),t.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let t,n=performance.now(),i=()=>{let a=performance.now(),o=(a-n)/1e3;n=a;let u=l.current?r*.2:r,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),t=setTimeout(i,16)};return t=setTimeout(i,16),()=>clearTimeout(t)},[r]),(0,n.jsxs)(`div`,{className:[_e.marquee,a??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,n.jsxs)(`div`,{ref:o,className:_e.track,children:[(0,n.jsx)(ve,{items:e,gap:i}),(0,n.jsx)(ve,{items:e,gap:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:_e.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:_e.fadeRight,"aria-hidden":`true`})]})},F={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},be=({value:t,label:i,trend:a,className:o})=>{let s=a!==void 0,c=s&&a>=0,l=c?r.TrendingUp:r.TrendingDown;return(0,n.jsxs)(`div`,{className:[F.root,o??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:F.numRow,children:[(0,n.jsx)(`p`,{className:F.value,children:t}),s&&(0,n.jsxs)(`span`,{className:[F.trend,c?F.trendUp:F.trendDown].join(` `),children:[(0,n.jsx)(l,{size:24,strokeWidth:e.ft(24)}),Math.abs(a),`%`]})]}),(0,n.jsx)(`p`,{className:F.label,children:i})]})},I={root:`_root_scbx4_1`,header:`_header_scbx4_13`,label:`_label_scbx4_21`,toggle:`_toggle_scbx4_34`,fullWidth:`_fullWidth_scbx4_48`,collapse:`_collapse_scbx4_67`,collapseOpen:`_collapseOpen_scbx4_74`,collapseInner:`_collapseInner_scbx4_78`,navLinks:`_navLinks_scbx4_91`,navLink:`_navLink_scbx4_91`},xe=({label:i,links:a,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=t.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=t.default.useRef(null),[v,y]=t.default.useState(0);return t.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[a,o]),(0,n.jsxs)(`div`,{className:[I.root,d??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:I.header,children:[(0,n.jsx)(`p`,{className:I.label,children:i}),(0,n.jsx)(`button`,{type:`button`,className:I.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,n.jsx)(r.X,{size:16,strokeWidth:e.ft(16)}):(0,n.jsx)(r.Menu,{size:16,strokeWidth:e.ft(16)})})]}),(0,n.jsx)(`div`,{className:[I.collapse,h?I.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,n.jsxs)(`div`,{ref:_,className:I.collapseInner,children:[(0,n.jsx)(`nav`,{className:I.navLinks,"aria-label":i,children:a.map(e=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:I.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,n.jsx)(e.$,{className:I.fullWidth}),(0,n.jsx)(e.it,{variant:`primary`,className:I.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},Se={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},Ce={sm:14,md:16,lg:18},we=({size:r=`md`,logo:i,label:a,className:o})=>{let s=Ce[r],c=t.default.isValidElement(i)?t.default.cloneElement(i,{size:s,strokeWidth:e.ft(s)}):i??(0,n.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Brands'%3e%3cg%20id='Vector'%3e%3cpath%20d='M0%206.54545C0%202.9305%202.9305%200%206.54545%200H17.4545C21.0695%200%2024%202.9305%2024%206.54545V17.4545C24%2021.0695%2021.0695%2024%2017.4545%2024H6.54545C2.9305%2024%200%2021.0695%200%2017.4545V6.54545Z'%20fill='%23FF4700'/%3e%3cpath%20d='M12.0851%2016.2829C11.3811%2016.2829%2010.7731%2016.1589%2010.2611%2015.9109C9.74909%2015.6629%209.34509%2015.3189%209.04909%2014.8789C8.76109%2014.4309%208.59309%2013.9109%208.54509%2013.3189L10.1291%2013.2229C10.1771%2013.5909%2010.2811%2013.9029%2010.4411%2014.1589C10.6091%2014.4149%2010.8291%2014.6109%2011.1011%2014.7469C11.3811%2014.8749%2011.7171%2014.9389%2012.1091%2014.9389C12.4451%2014.9389%2012.7291%2014.8989%2012.9611%2014.8189C13.2011%2014.7309%2013.3811%2014.6069%2013.5011%2014.4469C13.6291%2014.2789%2013.6931%2014.0749%2013.6931%2013.8349C13.6931%2013.6189%2013.6411%2013.4269%2013.5371%2013.2589C13.4331%2013.0829%2013.2331%2012.9269%2012.9371%2012.7909C12.6411%2012.6469%2012.2011%2012.5069%2011.6171%2012.3709C10.9131%2012.2109%2010.3491%2012.0309%209.92509%2011.8309C9.50109%2011.6229%209.19309%2011.3669%209.00109%2011.0629C8.80909%2010.7509%208.71309%2010.3629%208.71309%209.89891C8.71309%209.40291%208.83709%208.96691%209.08509%208.59091C9.33309%208.20691%209.68509%207.91091%2010.1411%207.70291C10.5971%207.48691%2011.1451%207.37891%2011.7851%207.37891C12.4651%207.37891%2013.0411%207.50291%2013.5131%207.75091C13.9851%207.99091%2014.3571%208.32291%2014.6291%208.74691C14.9011%209.17091%2015.0691%209.65891%2015.1331%2010.2109L13.5611%2010.2829C13.5211%209.97091%2013.4251%209.69891%2013.2731%209.46691C13.1291%209.23491%2012.9291%209.05491%2012.6731%208.92691C12.4251%208.79091%2012.1211%208.72291%2011.7611%208.72291C11.3131%208.72291%2010.9571%208.82691%2010.6931%209.03491C10.4371%209.23491%2010.3091%209.50291%2010.3091%209.83891C10.3091%2010.0709%2010.3611%2010.2629%2010.4651%2010.4149C10.5771%2010.5669%2010.7731%2010.6989%2011.0531%2010.8109C11.3331%2010.9149%2011.7251%2011.0269%2012.2291%2011.1469C12.9891%2011.3069%2013.5931%2011.5109%2014.0411%2011.7589C14.4891%2012.0069%2014.8091%2012.2949%2015.0011%2012.6229C15.1931%2012.9509%2015.2891%2013.3269%2015.2891%2013.7509C15.2891%2014.2709%2015.1571%2014.7229%2014.8931%2015.1069C14.6291%2015.4829%2014.2571%2015.7749%2013.7771%2015.9829C13.2971%2016.1829%2012.7331%2016.2829%2012.0851%2016.2829Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,alt:``,width:s,height:s,className:Se.defaultMark});return(0,n.jsx)(`span`,{className:[Se.root,Se[`root--${r}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":a??`Logo placeholder`,children:c})},L={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},Te=({name:t,role:r,avatarSrc:i,avatarAlt:a,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,n.jsxs)(`div`,{className:[L.root,l?L.rootDetailed:L.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.lt,{size:`xl`,src:i,alt:a??t}),(0,n.jsxs)(`div`,{className:l?L.infoDetailed:L.infoCompact,children:[(0,n.jsx)(`p`,{className:L.name,children:t}),(0,n.jsx)(`p`,{className:L.role,children:r})]}),l&&o&&(0,n.jsx)(`p`,{className:L.bio,children:o}),l&&s.length>0&&(0,n.jsx)(`div`,{className:L.social,children:s.map((e,t)=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:L.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},Ee={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},De=({children:e,level:t=`h2`,className:r})=>(0,n.jsx)(t,{className:[Ee.heading,Ee[t],r??``].filter(Boolean).join(` `),children:e}),Oe={paragraph:`_paragraph_8pqdi_1`},ke=({children:e,className:t})=>(0,n.jsx)(`p`,{className:[Oe.paragraph,t??``].filter(Boolean).join(` `),children:e}),R={rootBordered:`_rootBordered_5cgsj_1`,rail:`_rail_5cgsj_12`,contentHorizontal:`_contentHorizontal_5cgsj_18`,contentVertical:`_contentVertical_5cgsj_25`,textHorizontal:`_textHorizontal_5cgsj_33`,textVertical:`_textVertical_5cgsj_41`,title:`_title_5cgsj_49`,description:`_description_5cgsj_57`},Ae=({icon:r,title:i,description:a,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,n.jsxs)(`div`,{className:l?R.contentVertical:R.contentHorizontal,children:[(0,n.jsx)(e.M,{icon:r,size:`sm`,variant:`light`}),(0,n.jsxs)(`div`,{className:l?R.textVertical:R.textHorizontal,children:[(0,n.jsx)(`p`,{className:R.title,children:i}),(0,n.jsx)(`p`,{className:R.description,children:a})]})]});return s?(0,n.jsxs)(`div`,{className:[R.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.$,{orientation:`vertical`,className:R.rail}),u]}):t.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},je={chart:`_chart_qqaox_2`},Me={sm:180,md:240,lg:320,xl:420},Ne=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Pe=({data:t,variant:r=`default`,seriesLabels:a=[`Value`,`Value 2`],size:o=`md`,height:s,className:c})=>{e.nt();let l=Ne(`--color-chart-5`)??`#dca84f`,u=Ne(`--color-chart-2`)??`#5b92dd`,d=Ne(`--color-border-subtle`)??`#e5e4e7`,f=Ne(`--color-fg-muted`)??`#6b6375`,p=t.some(e=>e.value2!==void 0),m=r===`step`?`step`:r===`linear`?`linear`:`monotone`,h=r===`stacked`?`stack`:void 0;return(0,n.jsx)(`div`,{className:[je.chart,c??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:s??Me[o],children:(0,n.jsxs)(i.AreaChart,{data:t,margin:{top:8,right:8,bottom:8,left:0},children:[(0,n.jsxs)(`defs`,{children:[(0,n.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:l,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:l,stopOpacity:.02})]}),(0,n.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:u,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:u,stopOpacity:.02})]})]}),(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:d,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:f,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:Ne(`--color-border-default`)??`#d6d3ce`,strokeWidth:1},content:(0,n.jsx)(C,{}),wrapperStyle:{zIndex:50}}),p&&(0,n.jsx)(i.Area,{type:m,dataKey:`value2`,name:a[1]??`Value 2`,stackId:h,stroke:u,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:u,stroke:Ne(`--color-bg-canvas`),strokeWidth:1.5}}),(0,n.jsx)(i.Area,{type:m,dataKey:`value`,name:a[0]??`Value`,stackId:h,stroke:l,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:l,stroke:Ne(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},z={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},Fe=({state:t=`default`,title:i,count:a,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,n.jsxs)(`div`,{className:[z.col,u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:z.col__header,children:[(0,n.jsx)(`span`,{className:z.col__dot,style:{background:o},"aria-hidden":`true`}),(0,n.jsx)(`span`,{className:z.col__title,children:i}),a!=null&&(0,n.jsx)(`span`,{className:z.col__count,children:a}),(0,n.jsx)(`span`,{className:z.col__spacer}),(0,n.jsx)(`button`,{type:`button`,className:z.col__action,onClick:c,"aria-label":`Add task`,children:(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.ft(16)})}),(0,n.jsx)(`button`,{type:`button`,className:z.col__action,onClick:l,"aria-label":`Column options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.ft(16)})})]}),(0,n.jsx)(`div`,{className:z.col__body,children:t===`empty`?(0,n.jsx)(`div`,{className:z.col__drop,children:`Drop tasks here`}):s}),(0,n.jsxs)(`button`,{type:`button`,className:z.col__add,onClick:c,children:[(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.ft(16),"aria-hidden":`true`}),`Add task`]})]}),B={calendar:`_calendar_1y1kb_2`,header:`_header_1y1kb_14`,header__label:`_header__label_1y1kb_15`,navBtn:`_navBtn_1y1kb_16`,weekdays:`_weekdays_1y1kb_27`,weekday:`_weekday_1y1kb_27`,grid:`_grid_1y1kb_34`,day:`_day_1y1kb_35`,"day--default":`_day--default_1y1kb_43`,"day--hover":`_day--hover_1y1kb_44`,"day--selected":`_day--selected_1y1kb_45`,"day--today":`_day--today_1y1kb_46`,"day--in-range":`_day--in-range_1y1kb_47`,"day--outside":`_day--outside_1y1kb_48`,"day--disabled":`_day--disabled_1y1kb_49`,dropdowns:`_dropdowns_1y1kb_52`,dropdown:`_dropdown_1y1kb_52`},Ie=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Le=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Re=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ze=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Be=({mode:i=`single`,value:a,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=t.default.useState(()=>{let e=u??a??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=t.default.useState({}),v=s===void 0?g:s,y=new Date,b=m.getFullYear(),x=m.getMonth(),S=new Date(b,x,1).getDay(),C=new Date(b,x,1-S),w=Array.from({length:42},(e,t)=>new Date(C.getFullYear(),C.getMonth(),C.getDate()+t)),T=e=>d&&e<ze(d)||f&&e>f,E=e=>{s===void 0&&_(e),c?.(e)},D=e=>{if(i===`single`){o?.(e);return}let{from:t,to:n}=v;E(!t||t&&n?{from:e,to:void 0}:e<t?{from:e,to:t}:{from:t,to:e})},O=e=>{if(T(e))return`disabled`;if(i===`single`){if(Re(e,a))return`selected`}else{let{from:t,to:n}=v;if(Re(e,t)||Re(e,n))return`selected`;if(t&&n&&e>t&&e<n)return`in-range`}return e.getMonth()===x?Re(e,y)?`today`:`default`:`outside`},k=d?d.getFullYear():b-10,A=f?f.getFullYear():b+10,ee=Array.from({length:A-k+1},(e,t)=>k+t);return(0,n.jsxs)(`div`,{className:[B.calendar,p??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:B.header,children:[(0,n.jsx)(`button`,{type:`button`,className:B.navBtn,onClick:()=>h(new Date(b,x-1,1)),"aria-label":`Previous month`,children:(0,n.jsx)(r.ChevronLeft,{size:16,strokeWidth:e.ft(16)})}),l===`dropdowns`?(0,n.jsxs)(`span`,{className:B.dropdowns,children:[(0,n.jsx)(`select`,{className:B.dropdown,value:x,onChange:e=>h(new Date(b,Number(e.target.value),1)),"aria-label":`Month`,children:Le.map((e,t)=>(0,n.jsx)(`option`,{value:t,children:e},e))}),(0,n.jsx)(`select`,{className:B.dropdown,value:b,onChange:e=>h(new Date(Number(e.target.value),x,1)),"aria-label":`Year`,children:ee.map(e=>(0,n.jsx)(`option`,{value:e,children:e},e))})]}):(0,n.jsxs)(`span`,{className:B.header__label,children:[Le[x],` `,b]}),(0,n.jsx)(`button`,{type:`button`,className:B.navBtn,onClick:()=>h(new Date(b,x+1,1)),"aria-label":`Next month`,children:(0,n.jsx)(r.ChevronRight,{size:16,strokeWidth:e.ft(16)})})]}),(0,n.jsx)(`div`,{className:B.weekdays,children:Ie.map(e=>(0,n.jsx)(`span`,{className:B.weekday,children:e},e))}),(0,n.jsx)(`div`,{className:B.grid,children:w.map((e,t)=>{let r=O(e);return(0,n.jsx)(`button`,{type:`button`,className:[B.day,B[`day--${r}`]].filter(Boolean).join(` `),disabled:r===`disabled`,"aria-current":r===`today`?`date`:void 0,"aria-selected":r===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>D(e),children:e.getDate()},t)})})]})},Ve={card:`_card_1mh1i_3`,"card--interactive":`_card--interactive_1mh1i_16`,card__header:`_card__header_1mh1i_24`,card__title:`_card__title_1mh1i_25`,card__description:`_card__description_1mh1i_32`,card__body:`_card__body_1mh1i_39`,card__actions:`_card__actions_1mh1i_42`},He=({title:e,description:t,actions:r,interactive:i,children:a,className:o})=>(0,n.jsxs)(`div`,{className:[Ve.card,i?Ve[`card--interactive`]:``,o??``].filter(Boolean).join(` `),children:[(e||t)&&(0,n.jsxs)(`div`,{className:Ve.card__header,children:[e&&(0,n.jsx)(`h3`,{className:Ve.card__title,children:e}),t&&(0,n.jsx)(`p`,{className:Ve.card__description,children:t})]}),a&&(0,n.jsx)(`div`,{className:Ve.card__body,children:a}),r&&(0,n.jsx)(`div`,{className:Ve.card__actions,children:r})]}),V={field:`_field_x766e_7`,field__label:`_field__label_x766e_8`,field__description:`_field__description_x766e_9`,field__error:`_field__error_x766e_10`,control:`_control_x766e_13`,"control--sm":`_control--sm_x766e_25`,"control--md":`_control--md_x766e_26`,"control--lg":`_control--lg_x766e_27`,"control--open":`_control--open_x766e_29`,"control--error":`_control--error_x766e_35`,"control--disabled":`_control--disabled_x766e_39`,control__value:`_control__value_x766e_45`,"control__value--placeholder":`_control__value--placeholder_x766e_55`,control__input:`_control__input_x766e_56`,control__chevron:`_control__chevron_x766e_76`,"control__chevron--open":`_control__chevron--open_x766e_77`,chips:`_chips_x766e_80`,chip:`_chip_x766e_80`,chip__remove:`_chip__remove_x766e_92`,panel:`_panel_x766e_103`,"panel--entering":`_panel--entering_x766e_125`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_x766e_1`,"panel--exiting":`_panel--exiting_x766e_126`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_x766e_1`,panel__empty:`_panel__empty_x766e_136`,option:`_option_x766e_144`,"option--disabled":`_option--disabled_x766e_158`,"option--active":`_option--active_x766e_159`,"option--selected":`_option--selected_x766e_160`,option__icon:`_option__icon_x766e_162`,option__label:`_option__label_x766e_163`,option__check:`_option__check_x766e_164`,panel__loading:`_panel__loading_x766e_167`,panel__spinner:`_panel__spinner_x766e_171`,"sakani-cb-spin":`_sakani-cb-spin_x766e_1`},Ue=({options:r,mode:i=`single`,size:a=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=t.default.useId(),[g,_]=t.default.useState(!1),[v,y]=t.default.useState(!1),[b,x]=t.default.useState(0),S=t.default.useRef(null);t.default.useEffect(()=>{g&&y(!0)},[g]);let[C,w]=t.default.useState(i===`multi`?[]:``),T=f===void 0?C:f,E=Array.isArray(T)?T:T?[T]:[],D=!!c;t.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let O=r,k=e=>{f===void 0&&w(e),p?.(e)},A=e=>{if(!e.disabled)if(i===`multi`){let t=new Set(E);t.has(e.value)?t.delete(e.value):t.add(e.value),k([...t])}else k(e.value),_(!1)},ee=e=>r.find(t=>t.value===e)?.label??e,te=E.length?ee(E[0]):``,ne=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,O.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&O[b]?A(O[b]):_(!0)):e.key===`Escape`&&_(!1))},re=u?`disabled`:D?`error`:g?`open`:`default`;return(0,n.jsxs)(`div`,{className:[V.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,n.jsx)(`label`,{htmlFor:`${h}-trigger`,className:V.field__label,children:o}),(0,n.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":D||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&O[b]?`${h}-opt-${b}`:void 0,className:[V.control,V[`control--${a}`],V[`control--${re}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:ne,children:[i===`multi`&&E.length>0&&(0,n.jsx)(`div`,{className:V.chips,children:E.map(e=>(0,n.jsxs)(`span`,{className:V.chip,children:[ee(e),(0,n.jsx)(`button`,{type:`button`,className:V.chip__remove,onClick:t=>{t.stopPropagation(),A(r.find(t=>t.value===e))},"aria-label":`Remove ${ee(e)}`,children:`×`})]},e))}),!(i===`multi`&&E.length>0)&&(0,n.jsx)(`span`,{className:[V.control__value,i===`single`&&te?``:V[`control__value--placeholder`]].filter(Boolean).join(` `),children:i===`single`&&te?te:l}),(0,n.jsx)(`span`,{className:[V.control__chevron,g?V[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.ft(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,n.jsx)(`div`,{className:[V.panel,g?V[`panel--entering`]:V[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,n.jsxs)(`div`,{className:V.panel__loading,children:[(0,n.jsx)(`span`,{className:V.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):O.length===0?(0,n.jsx)(`div`,{className:V.panel__empty,children:`No options available`}):O.map((e,t)=>{let r=E.includes(e.value);return(0,n.jsxs)(`div`,{id:`${h}-opt-${t}`,role:`option`,"aria-selected":r,className:[V.option,t===b?V[`option--active`]:``,r?V[`option--selected`]:``,e.disabled?V[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>x(t),onClick:()=>A(e),children:[e.icon&&(0,n.jsx)(`span`,{className:V.option__icon,"aria-hidden":`true`,children:e.icon}),(0,n.jsx)(`span`,{className:V.option__label,children:e.label}),r&&(0,n.jsx)(`span`,{className:V.option__check,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},e.value)})}),(s||c)&&(0,n.jsx)(`span`,{className:D?V.field__error:V.field__description,children:c||s})]})},We={chart:`_chart_aiboa_2`,center:`_center_aiboa_26`,center__value:`_center__value_aiboa_35`,center__caption:`_center__caption_aiboa_36`},Ge={sm:{h:180,inner:50,outer:72},md:{h:220,inner:62,outer:90},lg:{h:280,inner:80,outer:116},xl:{h:340,inner:98,outer:142}},Ke=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,qe=({data:r,size:a=`md`,centerValue:o,centerCaption:s,height:c,className:l})=>{let[u,d]=t.default.useState(null),[f,p]=t.default.useState(null),m=e=>{let t=e.currentTarget.getBoundingClientRect();p({x:e.clientX-t.left,y:e.clientY-t.top})};e.nt();let h=[1,2,3,4,5].map(e=>Ke(`--color-chart-${e}`)??`#ff4700`),g={...Ge[a],h:c??Ge[a].h},_=(g.outer-g.inner)/2-7;return(0,n.jsxs)(`div`,{className:[We.chart,l??``].filter(Boolean).join(` `),style:{height:g.h},onMouseMove:m,children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:r,dataKey:`value`,nameKey:`label`,innerRadius:g.inner,outerRadius:g.outer,cornerRadius:_,paddingAngle:2,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>d(t),onMouseLeave:()=>{d(null),p(null)},children:r.map((e,t)=>(0,n.jsx)(i.Cell,{fill:h[t%h.length],fillOpacity:u!==null&&t!==u?.45:1},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(C,{}),wrapperStyle:{zIndex:50},position:f??void 0})]})}),(o||s)&&(0,n.jsxs)(`div`,{className:We.center,children:[o&&(0,n.jsx)(`span`,{className:We.center__value,children:o}),s&&(0,n.jsx)(`span`,{className:We.center__caption,children:s})]})]})},H={wrap:`_wrap_1b5p5_2`,dropzone:`_dropzone_1b5p5_4`,"dropzone--dragging":`_dropzone--dragging_1b5p5_21`,dropzone__icon:`_dropzone__icon_1b5p5_23`,dropzone__label:`_dropzone__label_1b5p5_28`,dropzone__link:`_dropzone__link_1b5p5_29`,dropzone__hint:`_dropzone__hint_1b5p5_30`,input:`_input_1b5p5_32`,files:`_files_1b5p5_35`,file:`_file_1b5p5_35`,file__icon:`_file__icon_1b5p5_45`,file__name:`_file__name_1b5p5_46`,file__remove:`_file__remove_1b5p5_47`},Je=({accept:i,multiple:a,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=t.default.useRef(null),[u,d]=t.default.useState(!1),[f,p]=t.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(a?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,n.jsxs)(`div`,{className:[H.wrap,c??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:[H.dropzone,u?H[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,n.jsx)(`span`,{className:H.dropzone__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.UploadCloud,{size:22,strokeWidth:e.ft(22)})}),(0,n.jsxs)(`span`,{className:H.dropzone__label,children:[(0,n.jsx)(`span`,{className:H.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,n.jsx)(`span`,{className:H.dropzone__hint,children:o}),(0,n.jsx)(`input`,{ref:l,type:`file`,accept:i,multiple:a,className:H.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,n.jsx)(`ul`,{className:H.files,children:f.map((t,i)=>(0,n.jsxs)(`li`,{className:H.file,children:[(0,n.jsx)(`span`,{className:H.file__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.File,{size:16,strokeWidth:e.ft(16)})}),(0,n.jsx)(`span`,{className:H.file__name,children:t.name}),(0,n.jsx)(`button`,{type:`button`,className:H.file__remove,onClick:()=>g(i),"aria-label":`Remove ${t.name}`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.ft(14)})})]},i))})]})},U={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},Ye={sm:180,md:240,lg:320,xl:420},Xe=560,Ze=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Qe=.3,$e=.55,et=({data:r,size:i=`md`,className:a})=>{let[o,s]=t.default.useState(null);e.nt();let c=Ze(`--color-chart-1`)??`#ff4700`,l=Ze(`--color-bg-canvas`)??`#fafaf9`,u=r[0]?.value||1,d=Ye[i],f=d*.66,p=f/2+8,m=Xe/r.length,h=r[0]?.value||1,g=e=>e/h*f,_=r.map(e=>g(e.value));_.push(g(r[r.length-1]?.value??0)*$e);let v=e=>r.length<=1?1:Qe+e/(r.length-1)*(1-Qe),y=o===null?null:r[o],b=o===null?0:p-_[o]/2,x=o===null?0:o*m+m/2;return(0,n.jsxs)(`div`,{className:[U.chart,a??``].filter(Boolean).join(` `),style:{height:d},children:[(0,n.jsx)(`svg`,{viewBox:`0 0 ${Xe} ${d}`,width:`100%`,height:d,className:U.svg,children:r.map((e,t)=>{let r=t*m,i=(t+1)*m,a=(r+i)/2,l=_[t]/2,d=_[t+1]/2,f=p-l,h=p-d,g=p+l,y=p+d,b=[`M ${r} ${f}`,`C ${a} ${f} ${a} ${h} ${i} ${h}`,`L ${i} ${y}`,`C ${a} ${y} ${a} ${g} ${r} ${g}`,`Z`].join(` `),x=o===null?v(t):t===o?1:.45,S=Math.round(e.value/u*100);return(0,n.jsxs)(`g`,{className:U.segment,onMouseEnter:()=>s(t),onMouseLeave:()=>s(null),children:[(0,n.jsx)(`path`,{d:b,fill:c,fillOpacity:x}),(0,n.jsxs)(`text`,{x:a,y:p,textAnchor:`middle`,dominantBaseline:`middle`,className:U.pctLabel,children:[S,`%`]})]},t)})}),(0,n.jsx)(`div`,{className:U.labels,style:{gridTemplateColumns:`repeat(${r.length}, 1fr)`},children:r.map((e,t)=>(0,n.jsx)(`span`,{className:U.labelItem,children:e.label},t))}),y&&(0,n.jsxs)(`div`,{className:U.tooltip,style:{left:`${x/Xe*100}%`,top:`${b/d*100}%`,background:l},children:[(0,n.jsx)(`span`,{className:U.tooltip__title,children:y.label}),(0,n.jsxs)(`div`,{className:U.tooltip__row,children:[(0,n.jsx)(`span`,{className:U.tooltip__dot,style:{background:c}}),(0,n.jsx)(`span`,{className:U.tooltip__label,children:`Share`}),(0,n.jsxs)(`span`,{className:U.tooltip__value,children:[Math.round(y.value/u*100),`%`]})]})]})]})},W={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},tt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,nt=.12,rt=.45,it=({data:r,rowLabels:i,colLabels:a,valueLabel:o=`Value`,size:s=`md`,className:c})=>{e.nt();let l=t.default.useRef(null),[u,d]=t.default.useState(null),f=tt(`--color-chart-1`)??`#ff4700`,p=Math.max(1,...r.flat()),m=r[0]?.length??0,h=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=l.current?.getBoundingClientRect();a&&d({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,n.jsx)(`div`,{className:[W.chart,W[`chart--${s}`],c??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{ref:l,className:W.grid,style:{gridTemplateColumns:`auto repeat(${m}, 1fr)`},children:[r.map((e,r)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(`span`,{className:W.rowLabel,children:i?.[r]??``}),e.map((e,t)=>{let i=u?.row===r&&u?.col===t,a=u!==null&&!i,o=i?1:nt+e/p*(1-nt);return(0,n.jsx)(`div`,{className:W.cell,style:{background:f,opacity:a?rt:o},onMouseEnter:h(r,t,e),onMouseLeave:()=>d(null)},t)})]},r)),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{}),a.map((e,t)=>(0,n.jsx)(`span`,{className:W.colLabel,children:e},t))]}),u&&(0,n.jsxs)(`div`,{className:W.tooltip,style:{left:u.left,top:u.top},children:[(0,n.jsx)(`span`,{className:W.tooltip__title,children:[i?.[u.row],a?.[u.col]].filter(Boolean).join(` · `)||`Row ${u.row+1}, Col ${u.col+1}`}),(0,n.jsxs)(`div`,{className:W.tooltip__row,children:[(0,n.jsx)(`span`,{className:W.tooltip__dot}),(0,n.jsx)(`span`,{className:W.tooltip__label,children:o}),(0,n.jsx)(`span`,{className:W.tooltip__value,children:u.value})]})]})]})})},at={kbd:`_kbd_1cz4m_3`},ot=({children:e,className:t})=>(0,n.jsx)(`kbd`,{className:[at.kbd,t??``].filter(Boolean).join(` `),children:e}),st={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},ct=t.default.forwardRef(({required:e,children:t,className:r,...i},a)=>(0,n.jsxs)(`label`,{ref:a,className:[st.label,r??``].filter(Boolean).join(` `),...i,children:[t,e&&(0,n.jsx)(`span`,{className:st.label__required,"aria-hidden":`true`,children:` *`})]}));ct.displayName=`Label`;var lt={chart:`_chart_18fgd_2`},ut={sm:180,md:240,lg:320,xl:420},dt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,ft=new Set([`dots`,`custom-dots`,`dots-colors`,`label`,`custom-label`]),pt=({data:t,series:r,xKey:a=`label`,variant:o=`default`,labelKey:s,size:c=`md`,height:l,showLegend:u,className:d})=>{e.nt();let f=[1,2,3,4,5].map(e=>dt(`--color-chart-${e}`)??`#ff4700`),p=[f[1],f[0],...f.slice(2)],m=dt(`--color-border-subtle`)??`#e5e4e7`,h=dt(`--color-fg-muted`)??`#6b6375`,g=dt(`--color-bg-canvas`)??`#fafaf9`,_=dt(`--color-fg-default`)??`#141414`,v=o===`linear`?`linear`:o===`step`?`step`:`monotone`,y=ft.has(o),b=e=>t=>{let{cx:r,cy:i}=t;return(0,n.jsxs)(`g`,{stroke:e,strokeWidth:2,strokeLinecap:`round`,children:[(0,n.jsx)(`line`,{x1:r,y1:i-3,x2:r,y2:i-3-6}),(0,n.jsx)(`line`,{x1:r,y1:i+3,x2:r,y2:i+3+6}),(0,n.jsx)(`circle`,{cx:r,cy:i,r:3,fill:e,stroke:`none`})]})},x=e=>{let{cx:t,cy:r,index:i}=e,a=f[(i??0)%f.length];return(0,n.jsx)(`circle`,{cx:t,cy:r,r:4,fill:a,stroke:g,strokeWidth:1.5})},S=e=>{let{x:r,y:i,value:a,index:c}=e,l=o===`custom-label`&&s?t[c]?.[s]:a;return l===void 0?(0,n.jsx)(`g`,{}):(0,n.jsx)(`text`,{x:r,y:i-12,textAnchor:`middle`,fill:_,fontSize:12,fontWeight:500,fontFamily:`var(--font-sans)`,children:l})};return(0,n.jsx)(`div`,{className:[lt.chart,d??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:l??ut[c],children:(0,n.jsxs)(i.LineChart,{data:t,margin:{top:8,right:8,bottom:8,left:12},children:[(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:m,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:a,stroke:h,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:dt(`--color-border-default`)??`#d6d3ce`,strokeWidth:1},content:(0,n.jsx)(C,{}),wrapperStyle:{zIndex:50}}),u&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),r.map((e,t)=>{let r=p[t%p.length],a=y?o===`custom-dots`?b(r):o===`dots-colors`?x:{r:4,fill:r,stroke:g,strokeWidth:1.5}:!1;return(0,n.jsx)(i.Line,{type:v,dataKey:e,stroke:r,strokeWidth:2,dot:a,activeDot:{r:4,fill:r,stroke:g,strokeWidth:1.5},label:o===`label`||o===`custom-label`?S:void 0},e)})]})})})},G={item:`_item_1b54h_2`,"item--disabled":`_item--disabled_1b54h_16`,"item--selected":`_item--selected_1b54h_17`,item__leading:`_item__leading_1b54h_20`,item__text:`_item__text_1b54h_21`,item__title:`_item__title_1b54h_22`,item__description:`_item__description_1b54h_23`,item__trailing:`_item__trailing_1b54h_24`},mt=({title:e,description:t,leading:r,trailing:i,selected:a,disabled:o,onClick:s,className:c})=>(0,n.jsxs)(`button`,{type:`button`,disabled:o,onClick:s,"aria-current":a?`true`:void 0,className:[G.item,a?G[`item--selected`]:``,o?G[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[r&&(0,n.jsx)(`span`,{className:G.item__leading,children:r}),(0,n.jsxs)(`span`,{className:G.item__text,children:[(0,n.jsx)(`span`,{className:G.item__title,children:e}),t&&(0,n.jsx)(`span`,{className:G.item__description,children:t})]}),i&&(0,n.jsx)(`span`,{className:G.item__trailing,children:i})]}),ht={menu:`_menu_psizn_2`,divider:`_divider_psizn_12`},gt=({children:e,minWidth:t=208,className:r,...i})=>(0,n.jsx)(`div`,{role:`menu`,"aria-label":i[`aria-label`],style:{minWidth:t},className:[ht.menu,r??``].filter(Boolean).join(` `),children:e}),_t=()=>(0,n.jsx)(`div`,{className:ht.divider,role:`separator`}),vt={item:`_item_1xzse_2`,item__icon:`_item__icon_1xzse_21`,item__label:`_item__label_1xzse_22`,item__shortcut:`_item__shortcut_1xzse_23`,item__check:`_item__check_1xzse_30`,"item--checked":`_item--checked_1xzse_32`,"item--disabled":`_item--disabled_1xzse_33`,"item--destructive":`_item--destructive_1xzse_34`},yt=({state:t=`default`,icon:i,shortcut:a,children:o,onSelect:s,className:c})=>{let l=t===`disabled`;return(0,n.jsxs)(`div`,{role:`menuitem`,"aria-disabled":l||void 0,"aria-checked":t===`checked`||void 0,tabIndex:l?-1:0,onClick:l?void 0:s,onKeyDown:e=>{l||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s?.())},className:[vt.item,vt[`item--${t}`],c??``].filter(Boolean).join(` `),children:[i&&(0,n.jsx)(`span`,{className:vt.item__icon,"aria-hidden":`true`,children:i}),(0,n.jsx)(`span`,{className:vt.item__label,children:o}),a&&(0,n.jsx)(`kbd`,{className:vt.item__shortcut,children:a}),t===`checked`&&(0,n.jsx)(r.Check,{size:16,strokeWidth:e.ft(16),className:vt.item__check,"aria-hidden":`true`})]})},bt={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},xt={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},St=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Ct=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),wt=new Set([`donut-active`]),Tt=new Set([`interactive`]),Et=new Set([`donut-with-text`]),Dt=Math.PI/180,Ot=({data:r,variant:a=`donut`,size:o=`md`,centerValue:s,centerCaption:c,className:l})=>{e.nt();let[u,d]=t.default.useState(void 0),f=[1,2,3,4,5].map(e=>St(`--color-chart-${e}`)??`#ff4700`),p=St(`--color-bg-surface`)??`#ffffff`,m=St(`--color-fg-default`)??`#141414`,h=xt[o],g=Ct.has(a),_=wt.has(a),v=Tt.has(a),y=g?h.outer*.6:0,b=Et.has(a)&&(s||c),x=u??(_||v?0:void 0),S=e=>{let{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===x,f=d&&(_||v)?16:0;return d&&v?(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l}),(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:o+f+3,outerRadius:o+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l})},w=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*Dt),s=Math.sin(-a*Dt),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},T=e=>{let{value:t,fill:r}=e,{d:i,endX:a,endY:o,textAnchor:s}=w(e),c=a+(s===`start`?4:-4);return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`path`,{d:i,fill:`none`,stroke:r,strokeWidth:1}),(0,n.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:m,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},E=e=>{let{x:t,y:r,textAnchor:i,value:a}=e;return(0,n.jsx)(`text`,{x:t,y:r,textAnchor:i,dominantBaseline:`central`,fill:m,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:a})},D=e=>{let{cx:t,cy:i,midAngle:a,innerRadius:o,outerRadius:s,index:c}=e,l=(o+s)/2;return(0,n.jsx)(`text`,{x:t+l*Math.cos(-a*Dt),y:i+l*Math.sin(-a*Dt),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:r[c]?.label})};if(a===`stacked`){let e=e=>u!==void 0&&u!==e?.45:1;return(0,n.jsx)(`div`,{className:[bt.chart,l??``].filter(Boolean).join(` `),style:{height:h.h},children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:r,dataKey:`value`,nameKey:`label`,innerRadius:h.outer*.82,outerRadius:h.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>d(t),onMouseLeave:()=>d(void 0),children:r.map((t,r)=>(0,n.jsx)(i.Cell,{fill:f[r%f.length],fillOpacity:e(r)},r))}),(0,n.jsx)(i.Pie,{data:r,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:h.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>d(t),onMouseLeave:()=>d(void 0),children:r.map((t,r)=>(0,n.jsx)(i.Cell,{fill:f[r%f.length],fillOpacity:e(r)},r))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(C,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,n.jsxs)(`div`,{className:[bt.chart,l??``].filter(Boolean).join(` `),style:{height:h.h},children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:r,dataKey:`value`,nameKey:`label`,innerRadius:y,outerRadius:h.outer,paddingAngle:0,stroke:a===`pie`?p:`none`,strokeWidth:a===`pie`?2:0,isAnimationActive:!1,shape:_||v?S:void 0,label:a===`label`?T:a===`custom-label`?E:a===`label-list`?D:void 0,labelLine:!1,onMouseEnter:(e,t)=>d(t),onMouseLeave:()=>d(void 0),children:r.map((e,t)=>(0,n.jsx)(i.Cell,{fill:f[t%f.length]},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(C,{}),wrapperStyle:{zIndex:50}})]})}),b&&(0,n.jsxs)(`div`,{className:bt.center,children:[s&&(0,n.jsx)(`span`,{className:bt.center__value,children:s}),c&&(0,n.jsx)(`span`,{className:bt.center__caption,children:c})]})]})},K={root:`_root_l16ca_2`,trigger:`_trigger_l16ca_3`,panel:`_panel_l16ca_5`,"panel--bottom":`_panel--bottom_l16ca_22`,"panel--bottom-start":`_panel--bottom-start_l16ca_23`,"panel--bottom-end":`_panel--bottom-end_l16ca_24`,"panel--top":`_panel--top_l16ca_25`,panel__title:`_panel__title_l16ca_27`,panel__description:`_panel__description_l16ca_28`,panel__body:`_panel__body_l16ca_29`,panel__actions:`_panel__actions_l16ca_30`},kt=({trigger:e,title:r,description:i,actions:a,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=t.default.useState(!1),d=t.default.useRef(null),f=t.default.useRef(null);return t.default.useEffect(()=>{if(!l)return;let e=e=>{d.current&&!d.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),t.default.useEffect(()=>{!l&&f.current&&(f.current.focus(),f.current=null)},[l]),(0,n.jsxs)(`div`,{className:[K.root,c??``].filter(Boolean).join(` `),ref:d,children:[(0,n.jsx)(`span`,{className:K.trigger,onClick:()=>{l||(f.current=document.activeElement),u(e=>!e)},children:e}),l&&(0,n.jsxs)(`div`,{className:[K.panel,K[`panel--${o}`]].join(` `),role:`dialog`,children:[r&&(0,n.jsx)(`div`,{className:K.panel__title,children:r}),i&&(0,n.jsx)(`div`,{className:K.panel__description,children:i}),s&&(0,n.jsx)(`div`,{className:K.panel__body,children:s}),a&&(0,n.jsx)(`div`,{className:K.panel__actions,children:a})]})]})},At={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},jt={sm:200,md:260,lg:340,xl:420},Mt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Nt=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Pt=new Set([`default`,`grid-custom`]),Ft=new Set([`dots-grid-none`]),It=new Set([`grid-filled`]),Lt=e=>e===`circle-grid-filled`,Rt=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),zt=[1,.8,.6,.4,.2],Bt=({data:r,variant:a=`default`,size:o=`md`,seriesLabels:s=[`Value`,`Value 2`],className:c})=>{e.nt();let l=Mt(`--color-chart-1`)??`#ff4700`,u=Mt(`--color-chart-2`)??`#5b92dd`,d=Mt(`--color-border-default`)??`#dbdad7`,f=Mt(`--color-fg-subtle`)??`#78716a`,p=a===`multiple`,m=a===`lines-only`,h=p||a===`custom-label`||m,g=!m,_=a===`dots`||a===`dots-grid-none`||a===`circle-grid`||a===`circle-grid-no-lines`,v=It.has(a),y=Pt.has(a),b=Ft.has(a),x=Lt(a),S=t.default.useRef(null),[w,T]=t.default.useState(0);t.default.useEffect(()=>{if(!x||!S.current)return;let e=S.current,t=new ResizeObserver(([e])=>T(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[x]);let E=t.default.useMemo(()=>{if(!v)return r;let e=Math.max(1,...r.flatMap(e=>[e.value,e.value2??0]));return r.map(t=>{let n={};return zt.forEach((t,r)=>{n[`ring${r}`]=t*e}),{...t,...n}})},[r,v]),D=e=>{let{x:t,y:i,cx:a,cy:o,payload:s,textAnchor:c}=e,l=r.find(e=>e.label===s?.value)??r[s?.index];if(!l)return(0,n.jsx)(`g`,{});let u=t-a,d=i-o,p=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,m=Math.abs(d)>Math.abs(u),h,g;if(m&&d<0)g=i-4-6,h=g-16;else if(m)h=i+4+10,g=h+18;else{let e=i+d/(Math.sqrt(u*u+d*d)||1)*4;h=e-8,g=e+12}let _=m?t:t+u/Math.sqrt(u*u+d*d||1)*4;return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`text`,{x:_,y:h,textAnchor:c,fill:f,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:p}),(0,n.jsx)(`text`,{x:_,y:g,textAnchor:c,fill:f,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},O=jt[o],k=(w>0?Math.min(w,O)/2-5:0)*.7;return(0,n.jsxs)(`div`,{ref:S,className:[At.chart,c??``].filter(Boolean).join(` `),children:[x&&w>0&&(0,n.jsx)(`svg`,{className:At.circleFillSvg,width:w,height:O,children:zt.map(e=>(0,n.jsx)(`circle`,{cx:w/2,cy:O/2,r:k*e,fill:u,fillOpacity:.1},e))}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:O,children:(0,n.jsxs)(i.RadarChart,{data:E,outerRadius:`70%`,children:[!v&&!b&&(0,n.jsx)(i.PolarGrid,{gridType:Nt.has(a)?`circle`:`polygon`,radialLines:a!==`circle-grid-no-lines`&&!y,stroke:d}),(0,n.jsx)(i.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:a===`custom-label`?D:{fill:f,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,n.jsx)(i.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:y?2:void 0}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(C,{}),wrapperStyle:{zIndex:50}}),p&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),v&&zt.map((e,t)=>(0,n.jsx)(i.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:u,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,n.jsx)(i.Radar,{name:p?s[0]??`Value`:void 0,dataKey:`value`,stroke:Rt.has(a)?`none`:u,fill:g?u:`none`,fillOpacity:g?y?1:h?.45:.5:0,strokeWidth:Rt.has(a)?0:2,dot:_?{r:4,fill:u,stroke:`none`}:!1,isAnimationActive:!1}),h&&(0,n.jsx)(i.Radar,{name:p?s[1]??`Value 2`:void 0,dataKey:`value2`,stroke:m?l:`none`,fill:m?`none`:l,fillOpacity:m?0:.8,strokeWidth:m?2:0,dot:_?{r:4,fill:l,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},q={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},Vt={sm:180,md:220,lg:280,xl:340},Ht=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Ut=Math.PI/180,Wt={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},Gt=({value:e,max:t,color:r,track:i,centerValue:a,centerCaption:o})=>{let s=Math.round(Math.min(e,t)/t*40);return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:q.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let a=180+t/39*180;return(0,n.jsx)(`line`,{x1:100+78*Math.cos(a*Ut),y1:100+78*Math.sin(a*Ut),x2:100+92*Math.cos(a*Ut),y2:100+92*Math.sin(a*Ut),stroke:t<s?r:i,strokeWidth:2.5,strokeLinecap:`round`},t)}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:Ht(`--color-fg-default`)??`#141414`,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:Ht(`--color-fg-muted`)??`#78716a`,children:o})]})]})},Kt=({rings:e,spokes:t,color:r})=>(0,n.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:q.gridSvg,children:[Array.from({length:e}).map((t,i)=>(0,n.jsx)(`circle`,{cx:100,cy:100,r:(i+1)/e*96,fill:`none`,stroke:r,strokeWidth:1},i)),Array.from({length:t}).map((e,i)=>{let a=i/t*360,o=99.5*1.1;return(0,n.jsx)(`line`,{x1:100,y1:100,x2:100+o*Math.cos(a*Ut),y2:100+o*Math.sin(a*Ut),stroke:r,strokeWidth:1},i)})]}),qt=({data:e,palette:t,track:r,centerValue:a,centerCaption:o})=>{let s=e[0]?.max??e.reduce((e,t)=>e+t.value,0),c=210,l=e.map((e,n)=>{let r=s>0?e.value/s*240:0,i=c,a=c-r;return c=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:q.gaugeSvg,children:[l.map((e,t)=>(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),c>-29.5&&(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:c,endAngle:-30,fill:r,cornerRadius:4}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:Ht(`--color-fg-default`)??`#141414`,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:Ht(`--color-fg-muted`)??`#78716a`,children:o})]})]})},Jt=({data:t,variant:r=`multi`,size:a=`md`,centerValue:o,centerCaption:s,className:c})=>{e.nt();let l=[1,2,3,4,5].map(e=>Ht(`--color-chart-${e}`)??`#ff4700`),u=Ht(`--color-bg-subtle`)??`#f5f4f2`,d=Ht(`--color-border-subtle`)??`#e5e4e7`,f=Vt[a];if(r===`gauge-tick`){let e=t[0];return(0,n.jsx)(`div`,{className:[q.chart,c??``].filter(Boolean).join(` `),style:{height:f},children:(0,n.jsx)(Gt,{value:e?.value??0,max:e?.max??100,color:l[0],track:u,centerValue:o,centerCaption:s})})}if(r===`shape`||r===`stacked`||r===`stacked-3-layers`)return(0,n.jsx)(`div`,{className:[q.chart,c??``].filter(Boolean).join(` `),style:{height:f},children:(0,n.jsx)(qt,{data:t,palette:l,track:u,centerValue:o,centerCaption:s})});let[p,m]=Wt[r]??[`30%`,`100%`],h=(r===`stacked-label`||r===`text`)&&(o||s);return(0,n.jsxs)(`div`,{className:[q.chart,c??``].filter(Boolean).join(` `),style:{height:f},children:[r===`grid`&&(0,n.jsx)(Kt,{rings:8,spokes:12,color:d}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.RadialBarChart,{data:t,innerRadius:p,outerRadius:m,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,n.jsx)(i.PolarAngleAxis,{type:`number`,domain:[0,t[0]?.max??100],tick:!1,axisLine:!1}),(0,n.jsx)(i.RadialBar,{dataKey:`value`,background:r!==`grid`&&{fill:u},cornerRadius:8,isAnimationActive:!1,children:t.map((e,t)=>(0,n.jsx)(i.Cell,{fill:l[t%l.length]},t))})]})}),h&&(0,n.jsxs)(`div`,{className:q.center,children:[o&&(0,n.jsx)(`span`,{className:q.center__value,children:o}),s&&(0,n.jsx)(`span`,{className:q.center__caption,children:s})]})]})},J={wrapper:`_wrapper_1px3a_3`,"wrapper--disabled":`_wrapper--disabled_1px3a_11`,input:`_input_1px3a_13`,circle:`_circle_1px3a_15`,dot:`_dot_1px3a_31`,text:`_text_1px3a_54`,text__label:`_text__label_1px3a_55`,text__description:`_text__description_1px3a_56`,"wrapper--withDescription":`_wrapper--withDescription_1px3a_60`},Yt=t.default.forwardRef(({label:e,description:r,disabled:i,id:a,className:o,...s},c)=>{let l=t.default.useId(),u=a??l;return(0,n.jsxs)(`label`,{htmlFor:u,className:[J.wrapper,r?J[`wrapper--withDescription`]:``,i?J[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:i,className:J.input,...s}),(0,n.jsx)(`span`,{className:J.circle,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:J.dot})}),(e||r)&&(0,n.jsxs)(`span`,{className:J.text,children:[e&&(0,n.jsx)(`span`,{className:J.text__label,children:e}),r&&(0,n.jsx)(`span`,{className:J.text__description,children:r})]})]})});Yt.displayName=`Radio`;var Y={footer:`_footer_sh6kz_4`,"footer--collapsed":`_footer--collapsed_sh6kz_12`,footer__text:`_footer__text_sh6kz_14`,footer__title:`_footer__title_sh6kz_15`,footer__subtitle:`_footer__subtitle_sh6kz_16`,footer__menu:`_footer__menu_sh6kz_17`,footer__action:`_footer__action_sh6kz_24`},Xt=({type:t=`user`,title:i,subtitle:a,avatarSrc:o,avatarInitials:s,collapsed:c,onMenu:l,onSignOut:u})=>{let d=(0,n.jsx)(e.lt,{size:`sm`,src:o,initials:s,alt:i??`User`});return c?(0,n.jsx)(`div`,{className:[Y.footer,Y[`footer--collapsed`]].join(` `),children:d}):t===`actions`?(0,n.jsx)(`div`,{className:Y.footer,children:(0,n.jsxs)(`button`,{type:`button`,className:Y.footer__action,onClick:u,children:[(0,n.jsx)(r.LogOut,{size:16,strokeWidth:e.ft(16)}),` Sign out`]})}):(0,n.jsxs)(`div`,{className:Y.footer,children:[d,(0,n.jsxs)(`span`,{className:Y.footer__text,children:[i&&(0,n.jsx)(`span`,{className:Y.footer__title,children:i}),a&&(0,n.jsx)(`span`,{className:Y.footer__subtitle,children:a})]}),t===`user-menu`&&(0,n.jsx)(`button`,{type:`button`,className:Y.footer__menu,onClick:l,"aria-label":`Open menu`,children:(0,n.jsx)(r.EllipsisVertical,{size:16,strokeWidth:e.ft(16)})})]})},X={promo:`_promo_1dicm_4`,promo__head:`_promo__head_1dicm_15`,promo__icon:`_promo__icon_1dicm_16`,promo__title:`_promo__title_1dicm_17`,promo__dismiss:`_promo__dismiss_1dicm_18`,promo__desc:`_promo__desc_1dicm_25`,promo__cta:`_promo__cta_1dicm_28`},Zt=({type:t=`upgrade`,title:i,description:a,ctaLabel:o,onCta:s,onDismiss:c,icon:l=r.Sparkles})=>(0,n.jsxs)(`div`,{className:[X.promo,X[`promo--${t}`]].join(` `),children:[(0,n.jsxs)(`div`,{className:X.promo__head,children:[(0,n.jsx)(`span`,{className:X.promo__icon,"aria-hidden":`true`,children:(0,n.jsx)(l,{size:16,strokeWidth:e.ft(16)})}),(0,n.jsx)(`span`,{className:X.promo__title,children:i}),c&&(0,n.jsx)(`button`,{type:`button`,className:X.promo__dismiss,onClick:c,"aria-label":`Dismiss`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.ft(14)})})]}),a&&(0,n.jsx)(`p`,{className:X.promo__desc,children:a}),o&&(0,n.jsx)(`button`,{type:`button`,className:X.promo__cta,onClick:s,children:o})]}),Z={search:`_search_cvwic_2`,search__icon:`_search__icon_cvwic_18`,search__input:`_search__input_cvwic_19`,search__placeholder:`_search__placeholder_cvwic_31`,search__kbd:`_search__kbd_cvwic_32`,collapsed:`_collapsed_cvwic_42`},Qt=({type:t=`field`,placeholder:i=`Search…`,collapsed:a,value:o,onChange:s,onClick:c})=>a?(0,n.jsx)(`button`,{type:`button`,className:Z.collapsed,onClick:c,"aria-label":`Search`,children:(0,n.jsx)(r.Search,{size:18,strokeWidth:e.ft(18)})}):t===`command`?(0,n.jsxs)(`button`,{type:`button`,className:Z.search,onClick:c,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.ft(16),className:Z.search__icon}),(0,n.jsx)(`span`,{className:Z.search__placeholder,children:i}),(0,n.jsx)(`kbd`,{className:Z.search__kbd,children:`⌘K`})]}):(0,n.jsxs)(`div`,{className:Z.search,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.ft(16),className:Z.search__icon}),(0,n.jsx)(`input`,{className:Z.search__input,placeholder:i,value:o,onChange:e=>s?.(e.target.value)})]}),$t={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},en=({size:e=`md`,label:t=`Loading...`,className:r})=>(0,n.jsx)(`span`,{role:`status`,"aria-label":t,className:[$t.spinner,$t[`spinner--${e}`],r??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:$t.spinner__svg,children:[(0,n.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,n.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:$t.spinner__arc})]})}),Q={card:`_card_bjfuf_4`,"card--featured":`_card--featured_bjfuf_17`,card__head:`_card__head_bjfuf_19`,card__icon:`_card__icon_bjfuf_20`,card__title:`_card__title_bjfuf_28`,card__menu:`_card__menu_bjfuf_29`,card__value:`_card__value_bjfuf_37`,card__meta:`_card__meta_bjfuf_46`,card__sparkline:`_card__sparkline_bjfuf_53`,"card--trend-up":`_card--trend-up_bjfuf_55`,"card--trend-down":`_card--trend-down_bjfuf_56`,card__description:`_card__description_bjfuf_59`},tn={up:r.TrendingUp,down:r.TrendingDown,flat:r.Minus},nn={up:`success`,down:`danger`,flat:`neutral`},rn=({data:e})=>{if(e.length<2)return null;let t=Math.min(...e),r=Math.max(...e)-t||1,i=e.map((n,i)=>`${i/(e.length-1)*100},${30-(n-t)/r*26}`).join(` `);return(0,n.jsx)(`svg`,{className:an,viewBox:`0 0 100 32`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`polyline`,{points:i,fill:`none`,strokeWidth:2,vectorEffect:`non-scaling-stroke`,strokeLinejoin:`round`,strokeLinecap:`round`})})},an=Q.card__sparkline,on=({title:t,value:i,description:a,sparkline:o,delta:s,trend:c=`up`,badgeVariant:l,variant:u=`minimal`,icon:d,showMenu:f,onMenu:p,className:m})=>{let h=tn[c],g=(u===`icon`||u===`featured`)&&d;return(0,n.jsxs)(`div`,{className:[Q.card,Q[`card--${u}`],Q[`card--trend-${c}`],m??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:Q.card__head,children:[g&&(0,n.jsx)(`span`,{className:Q.card__icon,"aria-hidden":`true`,children:(0,n.jsx)(d,{size:18,strokeWidth:e.ft(18)})}),(0,n.jsx)(`span`,{className:Q.card__title,children:t}),f&&(0,n.jsx)(`button`,{type:`button`,className:Q.card__menu,onClick:p,"aria-label":`More options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.ft(16)})})]}),(0,n.jsx)(`div`,{className:Q.card__value,children:i}),o&&(0,n.jsx)(rn,{data:o}),(s||a)&&(0,n.jsxs)(`div`,{className:Q.card__meta,children:[s&&(0,n.jsx)(e.J,{variant:l??nn[c],leftIcon:(0,n.jsx)(h,{size:12,strokeWidth:2}),children:s}),a&&(0,n.jsx)(`p`,{className:Q.card__description,children:a})]})]})},$={stepper:`_stepper_kxw14_3`,"stepper--horizontal":`_stepper--horizontal_kxw14_4`,"stepper--vertical":`_stepper--vertical_kxw14_5`,step:`_step_kxw14_3`,"step--horizontal":`_step--horizontal_kxw14_8`,"step--vertical":`_step--vertical_kxw14_9`,circle:`_circle_kxw14_12`,circle__num:`_circle__num_kxw14_24`,"circle--completed":`_circle--completed_kxw14_26`,"circle--current":`_circle--current_kxw14_27`,"circle--upcoming":`_circle--upcoming_kxw14_32`,step__text:`_step__text_kxw14_39`,step__label:`_step__label_kxw14_40`,"step__label--current":`_step__label--current_kxw14_41`,"step__label--upcoming":`_step__label--upcoming_kxw14_42`,step__desc:`_step__desc_kxw14_43`,connector:`_connector_kxw14_46`,"connector--horizontal":`_connector--horizontal_kxw14_47`,"connector--vertical":`_connector--vertical_kxw14_48`,"connector--filled":`_connector--filled_kxw14_49`},sn=({index:t,state:i,label:a,description:o,orientation:s=`horizontal`})=>(0,n.jsxs)(`div`,{className:[$.step,$[`step--${s}`]].join(` `),children:[(0,n.jsx)(`span`,{className:[$.circle,$[`circle--${i}`]].join(` `),"aria-hidden":`true`,children:i===`completed`?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.ft(14)}):(0,n.jsx)(`span`,{className:$.circle__num,children:t+1})}),(0,n.jsxs)(`span`,{className:$.step__text,children:[(0,n.jsx)(`span`,{className:[$.step__label,i===`current`?$[`step__label--current`]:``,i===`upcoming`?$[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:a}),o&&(0,n.jsx)(`span`,{className:$.step__desc,children:o})]})]}),cn=({steps:e,current:r,orientation:i=`horizontal`,className:a})=>{let o=e=>e<r?`completed`:e===r?`current`:`upcoming`;return(0,n.jsx)(`div`,{className:[$.stepper,$[`stepper--${i}`],a??``].filter(Boolean).join(` `),children:e.map((a,s)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(sn,{index:s,state:o(s),label:a.label,description:a.description,orientation:i}),s<e.length-1&&(0,n.jsx)(`span`,{className:[$.connector,$[`connector--${i}`],s<r?$[`connector--filled`]:``].filter(Boolean).join(` `),"aria-hidden":`true`})]},s))})},ln={wrapper:`_wrapper_bkgd3_3`,"wrapper--disabled":`_wrapper--disabled_bkgd3_11`,input:`_input_bkgd3_13`,track:`_track_bkgd3_15`,thumb:`_thumb_bkgd3_28`,label:`_label_bkgd3_45`},un=t.default.forwardRef(({label:e,disabled:r,id:i,className:a,...o},s)=>{let c=t.default.useId(),l=i??c;return(0,n.jsxs)(`label`,{htmlFor:l,className:[ln.wrapper,r?ln[`wrapper--disabled`]:``,a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:s,id:l,type:`checkbox`,role:`switch`,disabled:r,className:ln.input,...o}),(0,n.jsx)(`span`,{className:ln.track,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:ln.thumb})}),e&&(0,n.jsx)(`span`,{className:ln.label,children:e})]})});un.displayName=`Switch`;var dn={field:`_field_644oy_6`,field__label:`_field__label_644oy_8`,field__description:`_field__description_644oy_9`,field__error:`_field__error_644oy_10`,textarea:`_textarea_644oy_12`,"textarea--error":`_textarea--error_644oy_37`,"textarea--disabled":`_textarea--disabled_644oy_43`},fn=t.default.forwardRef(({label:e,description:r,error:i,disabled:a,id:o,className:s,rows:c=4,...l},u)=>{let d=t.default.useId(),f=o??d,p=!!i;return(0,n.jsxs)(`div`,{className:[dn.field,s??``].filter(Boolean).join(` `),children:[e&&(0,n.jsx)(`label`,{htmlFor:f,className:dn.field__label,children:e}),(0,n.jsx)(`textarea`,{ref:u,id:f,rows:c,disabled:a,"aria-invalid":p||void 0,className:[dn.textarea,p?dn[`textarea--error`]:``,a?dn[`textarea--disabled`]:``].filter(Boolean).join(` `),...l}),(r||i)&&(0,n.jsx)(`span`,{className:p?dn.field__error:dn.field__description,children:i||r})]})});fn.displayName=`Textarea`;var pn={toast:`_toast_8yqwj_3`,toast__icon:`_toast__icon_8yqwj_17`,"toast--success":`_toast--success_8yqwj_18`,"toast--error":`_toast--error_8yqwj_19`,"toast--info":`_toast--info_8yqwj_20`,toast__content:`_toast__content_8yqwj_22`,toast__title:`_toast__title_8yqwj_23`,toast__description:`_toast__description_8yqwj_24`,toast__dismiss:`_toast__dismiss_8yqwj_26`},mn={success:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,n.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,n.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,n.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},hn=({status:t=`info`,title:r,description:i,onDismiss:a,className:o})=>(0,n.jsxs)(`div`,{role:t===`error`?`alert`:`status`,"aria-live":t===`error`?`assertive`:`polite`,className:[pn.toast,pn[`toast--${t}`],o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:pn.toast__icon,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.ft(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:mn[t]})}),(0,n.jsxs)(`div`,{className:pn.toast__content,children:[r&&(0,n.jsx)(`div`,{className:pn.toast__title,children:r}),i&&(0,n.jsx)(`div`,{className:pn.toast__description,children:i})]}),a&&(0,n.jsx)(`button`,{type:`button`,className:pn.toast__dismiss,onClick:a,"aria-label":`Dismiss`,children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.ft(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,n.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,n.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),gn={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},_n=({type:t=`title`,title:i,trailing:a,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,n.jsxs)(`header`,{className:[gn.bar,u??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`button`,{type:`button`,className:gn.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,n.jsx)(r.Menu,{size:18,strokeWidth:e.ft(18)})}),t===`search`?(0,n.jsx)(`div`,{className:gn.bar__search,children:o}):(0,n.jsx)(`span`,{className:[gn.bar__title,t===`title-centered`?gn[`bar__title--center`]:``].join(` `),children:i}),t===`title-action`&&(0,n.jsx)(`button`,{type:`button`,className:gn.bar__icon,onClick:c,"aria-label":`Add`,children:(0,n.jsx)(r.Plus,{size:18,strokeWidth:e.ft(18)})}),t===`search`&&(0,n.jsx)(`button`,{type:`button`,className:gn.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,n.jsx)(r.X,{size:18,strokeWidth:e.ft(18)})}),(t===`title`||t===`title-centered`)&&a]});exports.Accordion=e.ut,exports.AccordionItem=e.dt,exports.ActivityFeed=e.st,exports.ActivityFeedHighlight=e.ct,exports.Alert=e.E,exports.Announcement=o,exports.AreaChart=Pe,exports.Avatar=e.lt,exports.AvatarGroup=e.j,exports.AvatarUpload=e.rt,exports.Badge=e.J,exports.Balance=e.tt,exports.BarChart=k,exports.BlogBlockquote=le,exports.BlogFeatureText=de,exports.BlogImage=pe,exports.BlogListingCard=e.P,exports.BlogListingFeaturedCard=e.N,exports.BoardCard=e.T,exports.BoardColumn=Fe,exports.Breadcrumb=e.w,exports.Button=e.it,exports.Calendar=Be,exports.Card=He,exports.CardMetaItem=e.C,exports.CartItem=e.K,exports.ChatComposer=e.S,exports.Checkbox=e.x,exports.CheckoutSteps=e.W,exports.CodeSnippet=d,exports.ColorSwatch=e.H,exports.Combobox=Ue,exports.ConversationItem=e.b,exports.DEFAULT_CHECKOUT_STEPS=e.G,exports.Divider=e.$,exports.DonutChart=qe,exports.EmptyState=e.y,exports.Expenses=m,exports.FeaturedIcon=e.M,exports.FileUpload=Je,exports.FilterChip=e.v,exports.FirstPageHeading=me,exports.FunnelChart=et,exports.HeatmapChart=it,exports.IconButton=e.at,exports.InlineHint=_,exports.Input=e._,exports.JobListing=e.k,exports.Kbd=ot,exports.Label=ct,exports.LineChart=pt,exports.Link=e.ot,exports.List=ge,exports.ListItem=mt,exports.LocationDot=e.A,exports.Marquee=ye,exports.Menu=gt,exports.MenuDivider=_t,exports.MenuItem=yt,exports.MessageBubble=e.g,exports.Metric=be,exports.MobileNavigationMenu=xe,exports.Modal=e.Q,exports.NotificationItem=e.Z,exports.Pagination=e.h,exports.PieChart=Ot,exports.PlaceholderLogo=we,exports.Popover=kt,exports.PriceDisplay=e.V,exports.ProductCard=e.z,exports.ProductGallery=e.R,exports.ProfileCard=Te,exports.Progress=e.et,exports.ProgressItem=y,exports.ProgressStat=e.X,exports.QuantitySelector=e.q,exports.RadarChart=Bt,exports.RadialChart=Jt,exports.Radio=Yt,exports.RichSeparator=x,exports.RichTextHeading=De,exports.RichTextParagraph=ke,exports.SectionHeading=e.O,exports.SegmentedControl=e.m,exports.Select=e.p,exports.Sidebar=e.f,exports.SidebarDivider=e.d,exports.SidebarFooter=Xt,exports.SidebarGroupLabel=e.u,exports.SidebarHeader=e.l,exports.SidebarItem=e.c,exports.SidebarPromo=Zt,exports.SidebarSearch=Qt,exports.SidebarSubItem=e.s,exports.SizeSelector=e.L,exports.Skeleton=e.o,exports.Slider=e.a,exports.SpendingBalance=e.Y,exports.Spinner=en,exports.StarRating=e.I,exports.StatCard=on,exports.Stepper=cn,exports.StepperStep=sn,exports.StockMarket=te,exports.StockStatus=e.F,exports.SubFeature=Ae,exports.Switch=un,exports.Table=e.i,exports.Tabs=e.r,exports.Tags=re,exports.TeamCard=e.D,exports.Textarea=fn,exports.Ticker=oe,exports.Toast=hn,exports.Tooltip=e.n,exports.TopBar=e.t,exports.TopBarMobile=_n,exports.Transactions=ce,exports.WishlistButton=e.B,exports.getContrastColor=e.U,exports.iconStrokeWidth=e.ft;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,37 @@ export * from './components/ApplicationComponents/StockMarket';
|
|
|
22
22
|
export * from './components/ApplicationComponents/Tags';
|
|
23
23
|
export * from './components/ApplicationComponents/Ticker';
|
|
24
24
|
export * from './components/ApplicationComponents/Transactions';
|
|
25
|
+
export * from './components/ECommerceComponents/CartItem';
|
|
26
|
+
export * from './components/ECommerceComponents/CheckoutSteps';
|
|
27
|
+
export * from './components/ECommerceComponents/ColorSwatch';
|
|
28
|
+
export * from './components/ECommerceComponents/PriceDisplay';
|
|
29
|
+
export * from './components/ECommerceComponents/ProductCard';
|
|
30
|
+
export * from './components/ECommerceComponents/ProductGallery';
|
|
31
|
+
export * from './components/ECommerceComponents/QuantitySelector';
|
|
32
|
+
export * from './components/ECommerceComponents/SizeSelector';
|
|
33
|
+
export * from './components/ECommerceComponents/StarRating';
|
|
34
|
+
export * from './components/ECommerceComponents/StockStatus';
|
|
35
|
+
export * from './components/ECommerceComponents/WishlistButton';
|
|
36
|
+
export * from './components/MarketingComponents/BlogBlockquote';
|
|
37
|
+
export * from './components/MarketingComponents/BlogFeatureText';
|
|
38
|
+
export * from './components/MarketingComponents/BlogImage';
|
|
39
|
+
export * from './components/MarketingComponents/BlogListingCard';
|
|
40
|
+
export * from './components/MarketingComponents/BlogListingFeaturedCard';
|
|
41
|
+
export * from './components/MarketingComponents/FeaturedIcon';
|
|
42
|
+
export * from './components/MarketingComponents/FirstPageHeading';
|
|
43
|
+
export * from './components/MarketingComponents/JobListing';
|
|
44
|
+
export * from './components/MarketingComponents/List';
|
|
45
|
+
export * from './components/MarketingComponents/LocationDot';
|
|
46
|
+
export * from './components/MarketingComponents/Marquee';
|
|
47
|
+
export * from './components/MarketingComponents/Metric';
|
|
48
|
+
export * from './components/MarketingComponents/MobileNavigationMenu';
|
|
49
|
+
export * from './components/MarketingComponents/PlaceholderLogo';
|
|
50
|
+
export * from './components/MarketingComponents/ProfileCard';
|
|
51
|
+
export * from './components/MarketingComponents/RichTextHeading';
|
|
52
|
+
export * from './components/MarketingComponents/RichTextParagraph';
|
|
53
|
+
export * from './components/MarketingComponents/SectionHeading';
|
|
54
|
+
export * from './components/MarketingComponents/SubFeature';
|
|
55
|
+
export * from './components/MarketingComponents/TeamCard';
|
|
25
56
|
export * from './components/Alert';
|
|
26
57
|
export { AreaChart } from './components/AreaChart';
|
|
27
58
|
export type { AreaChartProps, AreaChartDatum, AreaChartVariant } from './components/AreaChart';
|
|
@@ -96,3 +127,9 @@ export * from './components/Toast';
|
|
|
96
127
|
export * from './components/Tooltip';
|
|
97
128
|
export * from './components/TopBar';
|
|
98
129
|
export * from './components/TopBarMobile';
|
|
130
|
+
/** Icon-scaling helper -- public because several Blocks (and any consumer
|
|
131
|
+
* rendering a Lucide icon below 24px) need it to match Figma's 1.5px stroke. */
|
|
132
|
+
export { iconStrokeWidth } from './lib/iconStrokeWidth';
|
|
133
|
+
/** WCAG contrast helper -- public because any consumer overlaying an icon
|
|
134
|
+
* or glyph on an arbitrary color (not just ColorSwatch) needs this same check. */
|
|
135
|
+
export { getContrastColor } from './lib/getContrastColor';
|